Code & Cure

#56 - How Deep Learning Finds Hidden Clues In A Standard EKG

Vasanth Sarathy and Laura Hagopian

Use Left/Right to seek, Home/End to jump to start or end. Hold shift to jump forward or backward.

0:00 | 23:39

Sudden cardiac death is the nightmare scenario: someone feels fine, then a lethal arrhythmia hits without warning. The problem is not a lack of tests, it is that our best screening tools still miss too many people. We talk through how clinicians use left ventricular ejection fraction to estimate risk and decide who might need an implantable cardioverter defibrillator, then confront the uncomfortable truth that EF creates false positives and false negatives when the underlying causes are more diverse than one number can capture.

From there, we shift to the ECG as an underused goldmine. We break down how modern deep learning models for ECG interpretation can learn subtle waveform patterns across large datasets, including registries that link ECGs to death certificates to identify sudden cardiac death outcomes. Because the event is rare, we discuss a multitask, multi-head approach that learns related targets at the same time to make the most of available labels, then tests whether the signal generalizes beyond the original training population.

The most exciting moment is where AI stops being an automation tool and becomes a discovery instrument. We unpack “generative morphing,” where a variational autoencoder generates realistic heartbeats and a predictor nudges them step by step toward higher risk, creating a movie that shows exactly what changes. That approach recovers known ECG risk features and proposes a new biomarker: a slurred terminal downstroke of the QRS complex in lead aVL, with a hypothesis that it reflects disorganized conduction that could set the stage for sudden arrhythmia even when EF is normal.

References:

An ECG biomarker for sudden cardiac death discovered with deep learning
Obermeyer et al.
Nature (2026)

Credits:

Theme music: Nowhere Land, Kevin MacLeod (incompetech.com)
 Licensed under Creative Commons: By Attribution 4.0
 https://creativecommons.org/licenses/by/4.0/



People on this episode