How Machine Learning Detects Anomalies in Healthcare