Opportunistic screening of type 2 diabetes with deep metric learning using electronic health records

Deep learning models leveraging electronic health records (EHR) for opportunistic screening of type 2 diabetes (T2D) can improve current practices by identifying individuals who may need further glycemic testing. Accurate onset prediction and subtyping are crucial for targeted interventions, but existing methods treat the tasks separately, thus limiting clinical utility. In this paper, we introduce a novel deep metric learning (DML) model that unifies both tasks by learning a latent space based on sample similarity. In onset prediction, the DML model predicts the onset of T2D 7 years later with an AUC of 0.754, outperforming logistic regression (AUC 0.706), clinical risk factors (AUC 0.693), and glycemic measures (AUC 0.632). For subtyping, we identify three subtypes with varying prevalences of obesity-related, cardiovascular, and mental health conditions. Additionally, the subtype with fewer comorbidities shows earlier metformin initiation and a greater reduction in HbA1c. We validated these findings using data from 300 U.S. hospitals in the All of Us program (T2D, n = 7567) and the Massachusetts General Brigham Biobank (T2D, n = 3298), demonstrating the transferability of our model and subtypes across cohorts.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2025-11-25
DOI
https://doi.org/10.1038/s41598-025-25759-x
Primary Topic
Machine Learning in Healthcare
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Opportunistic screening of type 2 diabetes with deep metric learning using electronic health records

Aaron J. Deutsch, Alisa K. Manning, Sarah Hsu, Łukasz Szczerbiński et al.
Scientific Reports
Machine Learning in Healthcare
article

Opportunistic screening of type 2 diabetes with deep metric learning using electronic health records

Aaron J. Deutsch, Alisa K. Manning, Sarah Hsu, Łukasz Szczerbiński, Miriam S. Udler, Walter Gerych, Xuhai Xu, Marzyeh Ghassemi, Jiacheng Zhu, Thomas Hartvigsen, Qixuan Jin, Josep Mercader, Ravi Mandla, Haoran Zhang, Kai Wang
article en

Abstract

Deep learning models leveraging electronic health records (EHR) for opportunistic screening of type 2 diabetes (T2D) can improve current practices by identifying individuals who may need further glycemic testing. Accurate onset prediction and subtyping are crucial for targeted interventions, but existing methods treat the tasks separately, thus limiting clinical utility. In this paper, we introduce a novel deep metric learning (DML) model that unifies both tasks by learning a latent space based on sample similarity. In onset prediction, the DML model predicts the onset of T2D 7 years later with an AUC of 0.754, outperforming logistic regression (AUC 0.706), clinical risk factors (AUC 0.693), and glycemic measures (AUC 0.632). For subtyping, we identify three subtypes with varying prevalences of obesity-related, cardiovascular, and mental health conditions. Additionally, the subtype with fewer comorbidities shows earlier metformin initiation and a greater reduction in HbA1c. We validated these findings using data from 300 U.S. hospitals in the All of Us program (T2D, n = 7567) and the Massachusetts General Brigham Biobank (T2D, n = 3298), demonstrating the transferability of our model and subtypes across cohorts.

Scientific ReportsVol. 15(1)
Worcester Polytechnic Institute (US), Broad Institute (US), Georgia Institute of Technology (US), Harvard University (US), Medical University of Białystok (PL), University of California, San Francisco (US), Massachusetts General Hospital (US), Center for Genomic Science (IT), University of Virginia (US), Massachusetts Institute of Technology (US), University of San Francisco (US), Columbia University (US)
National Science Foundation, Gordon and Betty Moore Foundation, National Institutes of Health
Openalex Percentile: Top 81%
Machine Learning in Healthcare
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.