Towards artificial intelligence-based learning health system for population-level mortality prediction using electrocardiograms

Weijie Sun, Sunil Vasu Kalmady, Nariman Sepehrvand, Amir Salimi, Yousef Nademi, Kevin Bainey, Justin A. Ezekowitz, Russell Greiner, Abram Hindle, Finlay A. McAlister, Roopinder K. Sandhu, Padma KaulNpj Digit. Medicine 2023

TL;DR

This study demonstrates that deep learning models using raw electrocardiogram (ECG) traces can accurately predict patient mortality at 30-day, 1-year, and 5-year intervals, outperforming traditional machine learning models that rely on pre-extracted ECG measurements. These findings pave the way for integrating ECG data into learning health systems for improved point-of-care prognostication.

What Problem Does This Paper Address?

Developing a "learning health system" – one that continuously learns from routinely collected health data to improve care – is a major goal. While Canada has a robust system for linking administrative health data, the potential of integrating electrocardiogram (ECG) data with this longitudinal information for predicting patient outcomes, specifically mortality, has been underexplored. ECGs are a common, low-cost diagnostic tool, and advances in AI and digitized ECGs offer an opportunity to extract more prognostic value. This paper aims to bridge this gap by developing and validating ECG-based machine learning models for population-level mortality prediction, demonstrating their utility in a real-world healthcare setting.

Methods

The researchers developed and compared two main types of machine learning models:

  • Deep Learning (DL) models using ResNet architecture: These models were trained on raw 12-lead ECG voltage-time series data. This approach leverages the rich, detailed information present in the raw signal.
  • Gradient Boosting (XGBoost) models: These models were trained on pre-extracted ECG measurements (e.g., QT interval, QRS duration) that are typically generated by ECG machines.

They explored different feature sets:

  1. ECG data only.
  2. ECG data combined with demographic information (age and sex).
  3. ECG data combined with demographic and laboratory (lab) data.

Model performance was evaluated using metrics like Area Under the Receiver Operating Characteristic Curve (AUROC), Precision-Recall Curve (AUPRC), F1-Score, Brier Score, and accuracy. They also used techniques like GradCAM and SHAP to interpret model decisions.

Datasets

The study utilized a large, population-level dataset from Alberta, Canada, spanning from 2007 to 2020. This dataset included:

  • ECG data: Over 1.6 million ECGs from approximately 244,000 patients.
  • Administrative Health Data: Hospitalization records (Discharge Abstract Database), emergency department visits (National Ambulatory Care Reporting System), and vital statistics (Alberta Health Care Insurance Plan Registry, vital status death registry).
  • Centralized Lab Data: Available from 2012 onwards, including creatinine, GFR, hemoglobin, potassium, sodium, and troponin I.

The data was split into a development set (60%) for training and tuning, and a holdout set (40%) for validation. To mitigate bias from patients with multiple ECGs or varying illness severity, a single, randomly selected ECG per patient was used for the final evaluation in the holdout set.

Key Insights and Ideas

  • Raw ECG Traces Hold Significant Prognostic Power: The most striking insight is that deep learning models trained on raw ECG traces significantly outperformed traditional XGBoost models that used pre-extracted measurements. This suggests that current automated ECG measurements might be losing valuable prognostic information.
  • DL Models Outperform Traditional ML: The ResNet-based DL models consistently achieved higher AUROC scores across all time points (30-day, 1-year, 5-year) compared to XGBoost models, highlighting the advantage of deep learning for complex signal data.
  • Demographics Add Modest Value: While adding age and sex to the DL models provided a small improvement in prediction accuracy, the primary predictive power came from the ECG traces themselves.
  • Lab Data Offers Incremental Gains: Incorporating lab values further improved model performance, though the gains were modest. This suggests that while ECG is a powerful predictor, a multi-modal approach combining ECG, demographics, and labs offers the most comprehensive prognostication.
  • Robustness Across Subgroups: The models demonstrated reasonable robustness across different diagnostic subgroups (though performance varied) and sexes, indicating potential for broad applicability.
  • Potential for Learning Health Systems: The study strongly supports the idea that routinely collected ECG data, when analyzed with advanced AI, can be a cornerstone for building learning health systems, enabling better risk stratification and decision-making at the point of care.

Key Results

  • 30-day Mortality Prediction: DL models with ECG traces achieved an AUROC of 0.843, significantly outperforming XGBoost models with ECG measurements (AUROC 0.782).
  • 1-year Mortality Prediction: DL models achieved an AUROC of 0.812, compared to 0.784 for XGBoost.
  • 5-year Mortality Prediction: DL models achieved an AUROC of 0.798, compared to 0.746 for XGBoost.
  • Best Performing Model: The DL model using ECG traces, age, and sex achieved the highest AUROCs across all time points, consistently above 0.82.
  • Risk Stratification: The models successfully stratified patients into five risk groups, showing a clear gradient of increasing mortality with higher predicted risk. For 1-year mortality, observed death rates ranged from 8.6% in the 'very low' risk group to 78.9% in the 'very high' risk group.
  • Performance in Subgroups: Models performed best in patients with ST-Elevation Myocardial Infarction (STEMI) and Non-ST-Elevation Myocardial Infarction (NSTEMI), with AUROCs around 0.87-0.88 for 1-year mortality.

Limitations and Future Work

  • Generalizability to Other ECG Manufacturers: The study used ECGs from a single manufacturer (Philips). The generalizability of the models to ECGs from other manufacturers needs to be established.
  • Availability of Lab Data: Lab data was only available from 2012 onwards, limiting its integration for earlier patient cohorts. The subset of patients with lab data also had slightly higher mortality, making it hard to isolate the true incremental value of lab features.
  • Limited Lab Features: The study used a select set of lab tests. Future work could explore the impact of a broader range of lab markers.
  • ECG Quality: While the models showed some robustness to poor-quality ECGs, further investigation into handling artifacts is warranted.
  • Model Interpretability: While GradCAM and SHAP were used, interpreting complex DL models remains an active area of research.
  • Future Directions: The authors plan to assess the utility of providing risk assessment based on ECG data in clinical practice and are planning future studies to incorporate more lab measures and explore other diagnostic subgroups.

Summary updated

BibTeX
@inproceedings{sun2023towards,
  author = {Weijie Sun and Sunil Vasu Kalmady and Nariman Sepehrvand and Amir Salimi and Yousef Nademi and Kevin Bainey and Justin A. Ezekowitz and Russell Greiner and Abram Hindle and Finlay A. McAlister and Roopinder K. Sandhu and Padma Kaul},
  title = {{Towards artificial intelligence-based learning health system for population-level mortality prediction using electrocardiograms}},
  booktitle = {Npj Digit. Medicine},
  year = {2023},
  url = {https://openreview.net/forum?id=X-_nFFQcDY},
}
Figure