New-Onset Diabetes Assessment Using Artificial Intelligence-Enhanced Electrocardiography
Hao Zhang, Neil Jethani, Aahlad Puli, Leonid Garber, Lior Jankelson, Yindalon Aphinyanaphongs, Rajesh Ranganath
TL;DR
This study develops an AI model that detects new-onset diabetes using a combination of 12-lead ECG signals and demographic data, explicitly adjusting for selection bias via inverse probability weighting to reflect the target population of ECG recipients. The authors extend FastSHAP to multi-modal inputs to enable efficient interpretability of the ECG-demographics model. The ECG-based approach achieves superior discrimination (AUC ≈ 0.80) and precision (PPV ≈ 0.11 at a matched threshold) compared with ADA risk and QDiabetes, and external validation confirms generalizability. Prospective analyses show higher future diabetes incidence among ECG-model high-risk individuals, supporting both screening and short-term prediction utility. The framework offers a scalable path for community and wearable-based diabetes screening and provides methodological guidance for addressing selection bias in retrospective clinical AI studies.
Abstract
Diabetes has a long asymptomatic period which can often remain undiagnosed for multiple years. In this study, we trained a deep learning model to detect new-onset diabetes using 12-lead ECG and readily available demographic information. To do so, we used retrospective data where patients have both a hemoglobin A1c and ECG measured. However, such patients may not be representative of the complete patient population. As part of the study, we proposed a methodology to evaluate our model in the target population by estimating the probability of receiving an A1c test and reweight the retrospective population to represent the general population. We also adapted an efficient algorithm to generate Shapley values for both ECG signals and demographic features at the same time for model interpretation. The model offers an automated, more accurate method for early diabetes detection compared to current screening efforts. Their potential use in wearable devices can facilitate large-scale, community-wide screening, improving healthcare outcomes.
