Transformer-based model for EHR data-derived development for prediction of kidney function trajectories in diabetic kidney disease

Abstract We aimed to develop a transformer-based model to predict kidney outcomes from longitudinal electronic health records (EHR) of patients with diabetes and normal kidney function, and compared it with. logistic regression (LR), support vector machine (SVM), LightGBM, and XGBoost. Using EHR data from 8,772 patients (Seoul National University Bundang Hospital, 2003–2014), we predicted ≥ 30% estimated Glomerular filtration rate (eGFR) decline and advanced chronic kidney disease (CKD) stage at 1, 3, 5, and 10 years (event 1.2–8.4%). ForeGFR decline, LightGBM and XGBoost both outperformed the transformer at every horizon (AUROC 0.68–0.80 vs. 0.56–0.75), for advanced CKD, the transformer-based model achieved AUROC of 0.77–0.85, comparable to the trees. At a matched operating point (recall 0.8), F1 scores were comparable across models. The transformer was overconfident and, unlike the trees, did not exceed treat-all net benefit in decision-curve analysis. It was, however, more robust to input degradation: retaining only 25% of laboratory values reduced AUROC by 0.03 versus 0.23–0.30 for the trees. Under temporal validation (training ≤ 2009, testing 2009–2016), AUROC fell by an average of 0.09. These findings support the technical feasibility of sequence models for EHR data while highlighting the need for recalibration and external validation before clinical use.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-11-11
DOI
https://doi.org/10.1038/s41598-026-76546-1
Primary Topic
Machine Learning in Healthcare
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Transformer-based model for EHR data-derived development for prediction of kidney function trajectories in diabetic kidney disease

Seong-Eun Moon, Jinyeong Yi, Sejoong Kim, Hyung‐Jin Yoon et al.
Scientific Reports
Machine Learning in Healthcare
article

Transformer-based model for EHR data-derived development for prediction of kidney function trajectories in diabetic kidney disease

Seong-Eun Moon, Jinyeong Yi, Sejoong Kim, Hyung‐Jin Yoon, Jiwon Ryu, Haanju Yoo
article en

Abstract

Abstract We aimed to develop a transformer-based model to predict kidney outcomes from longitudinal electronic health records (EHR) of patients with diabetes and normal kidney function, and compared it with. logistic regression (LR), support vector machine (SVM), LightGBM, and XGBoost. Using EHR data from 8,772 patients (Seoul National University Bundang Hospital, 2003–2014), we predicted ≥ 30% estimated Glomerular filtration rate (eGFR) decline and advanced chronic kidney disease (CKD) stage at 1, 3, 5, and 10 years (event 1.2–8.4%). ForeGFR decline, LightGBM and XGBoost both outperformed the transformer at every horizon (AUROC 0.68–0.80 vs. 0.56–0.75), for advanced CKD, the transformer-based model achieved AUROC of 0.77–0.85, comparable to the trees. At a matched operating point (recall 0.8), F1 scores were comparable across models. The transformer was overconfident and, unlike the trees, did not exceed treat-all net benefit in decision-curve analysis. It was, however, more robust to input degradation: retaining only 25% of laboratory values reduced AUROC by 0.03 versus 0.23–0.30 for the trees. Under temporal validation (training ≤ 2009, testing 2009–2016), AUROC fell by an average of 0.09. These findings support the technical feasibility of sequence models for EHR data while highlighting the need for recalibration and external validation before clinical use.

Scientific Reports
Seoul National University (KR), Samsung (South Korea) (KR), Seoul National University Hospital (KR), Seoul National University Bundang Hospital (KR), Samsung Electronics (South Korea) (KR), Naver (South Korea) (KR)
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.

Laika access coming soon