Doctors have lots of tools for predicting a patient’s health. But—as even they will tell you—they’re no match for the complexity of the human body. Heart attacks in particular are hard to anticipate. Now, scientists have shown that computers capable of teaching themselves can perform even better than standard medical guidelines, significantly increasing prediction rates. If implemented, the new method could save thousands or even millions of lives a year.