The idea of improving medicine with computation is almost as old as digital computers. In the early 1960s, scientists used a computer in diagnosing blood diseases, and that was just one pioneering example in this field. In the branch of artificial intelligence (AI) called ‘machine learning’, computer software learns from experience. The results teach medical researchers and clinicians new ways of studying diseases, making medicines and treating patients.