Skip to Content
Artificial intelligence

Algorithm matches human cardiologists in detecting heart attacks

Medical data tends to be messy and hard to annotate, which makes it hard for neural networks to learn from. But machine learning is beginning to make progress.

A myocardial infarction, or heart attack, occurs when the blood supply to the heart muscle is permanently disrupted by a blockage of some type. The treatment involves either widening the offending artery with a balloon or stent to allow the blood to flow again or circumventing the blockage entirely with coronary bypass surgery.

Either way, the intervention must be timely, and a quick diagnosis can make a huge difference. In the often chaotic environment of an emergency room, however, the signs of a heart attack are not infrequently missed, and the consequences are profound.

So an automated way of accurately and reliably spotting the telltale signs would be a significant step forward. But despite much research in this area, automated heart monitoring systems are significantly less reliable than trained cardiologists.

Today, that looks set to change thanks to the work of Nils Strodthoff at the Fraunhofer Heinrich Hertz Institute in Berlin and Claas Strodthoff at the University Medical Center Schleswig-Holstein in Kiel, both in Germany. These guys have developed a neural network that can spot the signs of myocardial infarction, and they say the machine matches the performance of human cardiologists for the first time.

First, some background. One of the best ways to diagnose a heart attack is to use an electrocardiograph to measure the electrical output from the heart. A standard ECG records the electrical signal from 12 different leads attached to different parts of the patient’s body.

These signals reveal the electrical behavior of the heart in various ways. Cardiologists have long known that the signals from some of these leads are more useful diagnostically than others when it comes to heart attacks.

But interpreting the data is hard. A clinician first has to work out some kind of base-level signal, ignore any noise or corrupted data, and then isolate individual heartbeats. The clinician then looks for predefined or automatically detected time intervals and voltage values for each beat.

Finally, he or she must identify the appropriate features in the heartbeat and classify the condition accordingly. The classification process is further complicated by the presence of a signal called an ST elevation. Patients with this signal should be treated as soon as possible, while those without it require further time-consuming tests.

None of these steps is easy. Indeed, they are all made more difficult by irregular or unusual heartbeats, by noise, and by data corruption, all of which are common in an emergency room environment.

So perhaps it’s no surprise that in all this chaos, humans significantly outperform machines.

But in recent years, neural networks have made significant progress in pattern recognition problems such as face and object identification. So there is significant interest in applying these techniques to medical data where pattern recognition is also the goal.

Strodthoff and Strodthoff have done just that with a database of 148 ECG records from patients with myocardial infarction and 52 healthy controls. They used a sliding-window technique to feed data to a neural network. Each window included at least three heartbeats.

The team used 90 percent of the data for training a neural network to spot the signs of a heart attack.

The rest of the data was used to test the network, with interesting results. “The proposed architecture beats the current state-of-the-art approaches on this dataset and reaches a similar level of performance as human cardiologists for this task,” say Strodthoff and Strodthoff.

What’s more, the machines tend to preferentially rely on the data from the same leads that human cardiologists have learned to rely on.

That impressive result shows the potential for intelligent machines to dramatically improve health care. But it is not perfect, of course.

One potential problem is that the data set used here is relatively small. Machine-learning algorithms generally require huge annotated data sets to learn well. Creating bigger data sets of the heart attack recordings will be time consuming and hard. But only with bigger data sets can clinicians be sure the algorithms will be accurate in the wide range of chaotic environments that doctors work in.

But the potential is huge. Machines can relieve some of medicine’s tedium and complexity for human doctors—and do it without tiring. And the approach developed by Strodthoff and Strodthoff is generically applicable to any time-series classification problems of raw data from devices such as ECGs and EEGs, which abound in medicine. So other applications are possible

Which means it surely won’t be long before most of us are diagnosed, at least in part, by machines.

Ref: arxiv.org/abs/1806.07385 : Detecting And Interpreting Myocardial Infarctions Using Fully Convolutional Neural Networks

Deep Dive

Artificial intelligence

Large language models can do jaw-dropping things. But nobody knows exactly why.

And that's a problem. Figuring it out is one of the biggest scientific puzzles of our time and a crucial step towards controlling more powerful future models.

OpenAI teases an amazing new generative video model called Sora

The firm is sharing Sora with a small group of safety testers but the rest of us will have to wait to learn more.

Google’s Gemini is now in everything. Here’s how you can try it out.

Gmail, Docs, and more will now come with Gemini baked in. But Europeans will have to wait before they can download the app.

Google DeepMind’s new generative model makes Super Mario–like games from scratch

Genie learns how to control games by watching hours and hours of video. It could help train next-gen robots too.

Stay connected

Illustration by Rose Wong

Get the latest updates from
MIT Technology Review

Discover special offers, top stories, upcoming events, and more.

Thank you for submitting your email!

Explore more newsletters

It looks like something went wrong.

We’re having trouble saving your preferences. Try refreshing this page and updating them one more time. If you continue to get this message, reach out to us at customer-service@technologyreview.com with a list of newsletters you’d like to receive.