Abstract
Patients who suffer an acute coronary syndrome are at elevated risk for adverse cardiovascular events such as myocardial infarction and cardiovascular death. Accurate assessment of this risk is crucial to their course of care. We focus on estimating a patient’s risk of cardiovascular death after an acute coronary syndrome based on a patient’s raw electrocardiogram (ECG) signal. Learning from this signal is challenging for two reasons: 1) positive examples signifying a downstream cardiovascular event are scarce, causing drastic class imbalance, and 2) each patient’s ECG signal consists of thousands of heartbeats, accompanied by a single label for the downstream outcome. Machine learning has been previously applied to this task, but most approaches rely on hand-crafted features and domain knowledge. We propose a method that learns a representation from the raw ECG signal by using a multiple instance learning framework. We present a learned risk score for cardiovascular death that outperforms existing risk metrics in predicting cardiovascular death within 30, 60, 90, and 365 days on a dataset of 5000 patients.
The Challenge of ECG Risk Stratification
When a patient experiences an acute coronary syndrome (ACS)—such as a heart attack or unstable angina—clinicians must rapidly assess the risk of future complications to determine the appropriate intensity of care. While the electrocardiogram (ECG) is the gold-standard diagnostic tool, using it for long-term risk prediction via machine learning presents two significant hurdles:
- The Representation Challenge: ECGs are high-frequency time series. Traditional methods rely on "hand-crafted" features, such as measuring the distance between specific waves (e.g., the QRS complex). However, it is not always clear which morphological features best indicate long-term mortality risk.
- The Homogeneity Challenge: Even in high-risk patients, the vast majority of heartbeats appear normal. A single label (e.g., death within 90 days) applies to a 48-hour recording containing over 100,000 beats, but the "signal" of risk may only be present in a tiny fraction of those beats. This creates a classic "needle in a haystack" problem.
Methods: A Multiple Instance Learning Framework
To address these challenges, the researchers framed risk stratification as a Multiple Instance Learning (MIL) problem. In this framework, labels are assigned to a collection (a "bag") of data points rather than individual instances.
The proposed pipeline consists of three distinct stages:
- Instance Extractor: The raw, continuous ECG signal is segmented into individual "instances." Each instance is a 1-second window (approximately 128 samples) centered around a heartbeat.
- Instance Classifier: Instead of manual feature engineering, a compact Convolutional Neural Network (CNN) learns to extract features directly from the raw voltage signal. This network assigns a preliminary risk score to every individual heartbeat segment.
- Instance Aggregator: To produce a final patient-level risk score, the model uses a "collective assumption." It assumes that high-risk patients have a higher frequency of pathological beats. The final score is calculated as the mean of the top 20% most "risky" heartbeat predictions for that patient.
Experimental Setup and Results
The model was evaluated using the MERLIN-TIMI dataset, which contains 48-hour continuous ECG recordings from 4,975 patients admitted for ACS. The primary goal was to predict cardiovascular death (CVD) at various horizons: 30, 60, 90, and 365 days.
Performance Metrics
The MIL-CNN approach demonstrated superior predictive power compared to both traditional clinical scores and previous signal-based machine learning baselines:
- AUC Performance: The model achieved an Area Under the Curve (AUC) of 0.81 to 0.83 for predicting death within 30 to 90 days. This significantly outperformed the TIMI Risk Score (TRS), a standard clinical metric which scored between 0.68 and 0.70.
- Odds Ratios: The model's ability to identify high-risk individuals was particularly strong. At the 90-day horizon, patients in the top 25% of predicted risk were over six times more likely to die than those in the lower risk categories.
Key Insights
- Learned Representations Over Heuristics: The success of the CNN-based MIL approach suggests that deep learning can identify subtle morphological "red flags" in heartbeats that are invisible to human experts or traditional hand-crafted metrics like Morphological Variability (MVB).
- The Value of Structured Aggregation: Interestingly, simple fixed aggregation (averaging the top 20% of beats) outperformed more complex, fully learned aggregation functions. This indicates that incorporating domain-informed structure—specifically the sparsity of the risk signal—is highly effective for medical time-series data.
- Robustness to Imbalance: Despite the extreme class imbalance (with very few positive death events in the dataset), the MIL framework remained robust, maintaining high sensitivity and specificity.
Conclusion and Future Directions
This work demonstrates that Multiple Instance Learning is a powerful tool for extracting prognostic information from long-term physiological signals. While currently focused on ECGs and cardiovascular death, the authors suggest this framework is "signal-agnostic." Future applications could include using EEG data for neurological risk or respiratory signals for pulmonary monitoring. By moving away from hand-crafted features toward learned representations, we can better leverage the vast amounts of data generated by continuous clinical monitoring.
Summary updated