Machine learning algorithm produced fewer decision-making errors than professionals when it came to clinical diagnosis of patients.