Machine Learning in Healthcare: Two Case Studies