AI and machine learning could halve preventable errors in medicine