Transformer patient embedding using electronic health records enables patient stratification and progression analysis

Current studies regarding the secondary use of electronic health records (EHR) predominantly rely on domain expertise and existing medical knowledge. A powerful representation approach can unleash the potential of discovering new medical patterns underlying the EHR. Here, we introduce an unsupervised method for embedding high-dimensional EHR data at the patient level to characterize heterogeneity in complex diseases and identify novel disease patterns linked to disparities in clinical outcomes. We applied this approach to 34,851 unique medical codes across 1,046,649 longitudinal patient events, including 102,740 patients in the Electronic Medical Records and GEnomics (eMERGE) Network. The model achieved strong predictive performance in predicting future disease (median AUROC = 0.87 within one year) and bulk phenotyping (median AUROC = 0.84). Notably, these patient embeddings revealed diverse comorbidity profiles and health outcomes, including distinct subtypes and progression patterns in colorectal cancer and systemic lupus erythematosus.

Authors

Institutions

Publication Details

Journal
npj Digital Medicine
Published
2025-08-14
DOI
https://doi.org/10.1038/s41746-025-01872-z
Citations
5
Primary Topic
Machine Learning in Healthcare
Type
article
Field-Weighted Citation Impact
12.40

Funders

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

Transformer patient embedding using electronic health records enables patient stratification and progression analysis

David R. Crosslin, Monika E. Grabowska, Jordan W. Smoller, Xian Su et al.
5 citations
npj Digital Medicine
Machine Learning in Healthcare
12.40
article

Transformer patient embedding using electronic health records enables patient stratification and progression analysis

David R. Crosslin, Monika E. Grabowska, Jordan W. Smoller, Xian Su, Gail P. Jarvik, Iftikhar J. Kullo, Sean D. Mooney, Theresa L. Walunas, Yuan Luo, Wei-Qi Wei
article en
5 citations

Abstract

Current studies regarding the secondary use of electronic health records (EHR) predominantly rely on domain expertise and existing medical knowledge. A powerful representation approach can unleash the potential of discovering new medical patterns underlying the EHR. Here, we introduce an unsupervised method for embedding high-dimensional EHR data at the patient level to characterize heterogeneity in complex diseases and identify novel disease patterns linked to disparities in clinical outcomes. We applied this approach to 34,851 unique medical codes across 1,046,649 longitudinal patient events, including 102,740 patients in the Electronic Medical Records and GEnomics (eMERGE) Network. The model achieved strong predictive performance in predicting future disease (median AUROC = 0.87 within one year) and bulk phenotyping (median AUROC = 0.84). Notably, these patient embeddings revealed diverse comorbidity profiles and health outcomes, including distinct subtypes and progression patterns in colorectal cancer and systemic lupus erythematosus.

npj Digital MedicineVol. 8(1)
Northwestern University (US), Tulane University (US), National Institutes of Health (US), Mayo Clinic (US), University of Washington (US), University of Washington Medical Center (US), Center for Information Technology (US), Massachusetts General Hospital (US), Mayo Clinic in Arizona (US), Vanderbilt University Medical Center (US)
University of Washington, National Institutes of Health, National Human Genome Research Institute
Openalex Percentile: Top 2%
Machine Learning in Healthcare
12.40
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.