New-Onset Diabetes Assessment Using Artificial Intelligence-Enhanced Electrocardiography

Neil Jethani, Aahlad Manas Puli, Hao Zhang, Leonid Garber, Lior Jankelson, Yindalon Aphinyanaphongs, Rajesh RanganatharXiv 2022 · DOI

TL;DR

This paper introduces an AI model that uses electrocardiograms (ECGs) and demographic data to detect new-onset diabetes, outperforming existing screening methods. By employing a novel inverse probability weighting technique, the model effectively addresses biases in retrospective data, enabling more accurate predictions for the general population and paving the way for scalable, community-wide diabetes screening.

What Problem Does This Paper Address?

Diabetes, particularly type 2, often has a long, asymptomatic period, leading to delayed diagnosis and increased risk of complications. Current screening methods, while useful, miss a significant portion of undiagnosed cases. A key challenge is that retrospective datasets used to train AI models often consist of patients who have already undergone specific tests (like HbA1c), making them unrepresentative of the broader population who might only receive an ECG. This selection bias can lead to AI models that perform poorly in real-world clinical settings. The authors aim to bridge this gap by developing an AI model that can accurately screen for new-onset diabetes using readily available ECG data and demographic information, while also accounting for data acquisition biases.

Methods

The core of this research involves a deep learning model that fuses 12-lead ECG data with demographic features (age, sex, race, ethnicity, BMI) to predict the likelihood of new-onset diabetes. A significant methodological contribution is the use of Inverse Probability Weighting (IPW). This technique is employed to re-weight the retrospective dataset to better represent the target population (those who receive an ECG but may not have an HbA1c test). This is achieved by first modeling the probability of an HbA1c test being ordered given an ECG, and then using these probabilities to adjust the data.

For model interpretation, the authors adapted the FastSHAP algorithm to generate Shapley values for both ECG signals and demographic features simultaneously, providing insights into which factors contribute most to the model's predictions. The model architecture itself is a 34-layer ResNet CNN, incorporating residual connections, designed to process the ECG time series.

Datasets

The study utilized retrospective electronic health record (EHR) data from NYU Langone Health system encounters between January 1, 2013, and September 17, 2021. This data included 12-lead ECGs and HbA1c measurements. The dataset was split into training, validation, and test sets. A crucial aspect of the evaluation involved an external validation set from a different hospital system to assess the model's generalizability.

Key Insights and Ideas

  • ECGs as a powerful, underutilized biomarker for diabetes: The study demonstrates that ECGs, which are routinely collected, contain significant information for predicting diabetes risk, even in new-onset cases.
  • Addressing data bias is critical for real-world AI: The IPW methodology highlights the importance of accounting for how data is collected (i.e., who gets tested for what) to ensure AI models generalize beyond the specific patient cohorts used for training.
  • AI can improve screening efficiency: The model's higher positive predictive value (PPV) suggests it can reduce false alarms compared to existing tools, making screening more efficient and less burdensome.
  • Explainability for multi-modal data: The adaptation of FastSHAP for both ECG and tabular data is a step towards understanding complex AI predictions in healthcare.

Key Results

  • The AI-enhanced ECG model achieved a superior Area Under the Receiver Operating Characteristic Curve (AUC) of 0.80 (95% CI, 0.79-0.80), outperforming the ADA Risk Test (AUC, 0.68) and QDiabetes-2018 (AUC, 0.70).
  • At a comparable true positive rate (TPR) to the ADA Risk Test (TPR 0.72), the ECG model demonstrated a significantly higher positive predictive value (PPV) of 0.11 (95% CI, 0.11-0.12) compared to the ADA Risk Test (0.08) and QDiabetes-2018 (0.08). This indicates fewer false alarms.
  • Prospective validation showed that patients identified as high-risk by the ECG model had a 4.5-fold increase in cumulative incidence of developing diabetes within a year, compared to a 2.7-fold increase for the ADA risk test.
  • The model showed robustness to violations of the missing-at-random assumption, indicating its reliability even under challenging data scenarios.
  • External validation confirmed the model's strong performance and generalizability, achieving an AUC of 0.81 and outperforming baselines.

Limitations and Future Work

The authors acknowledge that despite IPW, unmeasured confounding and residual bias may persist. The retrospective, single-institution design also limits generalizability, and prospective, multi-institutional studies are needed. Future work could explore incorporating other diagnostic tests like FPG and OGTT, or investigating regression models for direct HbA1c estimation. The potential for community-wide screening using single-lead ECGs via wearable devices is also highlighted as a promising avenue.

Summary updated

BibTeX
@misc{jethani2022new,
  author = {Neil Jethani and Aahlad Manas Puli and Hao Zhang and Leonid Garber and Lior Jankelson and Yindalon Aphinyanaphongs and Rajesh Ranganath},
  title = {{New-Onset Diabetes Assessment Using Artificial Intelligence-Enhanced Electrocardiography}},
  year = {2022},
  eprint = {2205.02900},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.02900},
}
Figure