Abstract
The increasing reliance of healthcare systems on predictive models has helped in the early diagnosis of cardiovascular disease, diabetes, and hypertension, but the performance of predictive models in the face of a temporal shift in the dataset has currently become a significant obstacle to the implementation of predictive models. This paper suggests an organized cross-dataset generalization framework of simultaneous multi-disease prediction based on harmonized National Health and Nutrition Examination Survey cycles. Models trained on 2021-2023 cycle were observed to have good internal discrimination with area under the receiver operating characteristic curves values of 0.840 in case of diabetes, 0.861 in case of hypertension and 0.802 in case of cardiovascular disease. External performance was clinically significant to 0.811, 0.815 and 0.760, respectively, and corresponded to a modest generalization gaps between 0.029 and 0.045. The deterioration of calibration was minimal with external Brier scores of 0.127 - 0.180. Simple marginal reweighting was not found to be sufficient to overcome temporal generalization gaps, which was evaluated as instance-reweighting adaptation as an exploratory sensitivity analysis. The consistency of feature attribution was found to be high across domains with Spearman correlation values up to 0.978 and subgroup analyses revealed that there was little discrimination variability below 0.02 across age and gender strata. The results provide a generalization-conscious and interpretable paradigm of resilient multi-disease clinical prediction on real-world distributional variability.
Keywords
Cross-Dataset Generalization, Multi-Disease Prediction, Scalable diagnostic systems, Explainable Artificial Intelligence,Downloads
References
- L.L. Guo, S.R. Pfohl, J. Fries, A.E. W. Johnson, J. Posada, C. Aftandilian, N. Shah, L. Sung, Evaluation of domain generalization and adaptation on improving model robustness to temporal dataset shift in clinical medicine. Scientific Reports, 12(1), (2022) 2726. https://doi.org/10.1038/s41598-022-06484-1
- Z. Wu, H. Yao, D. Liebovitz, J. Sun, An iterative self-learning framework for medical domain generalization. Advances in Neural Information Processing Systems, 36, (2023) 54833–54854. https://doi.org/10.52202/075280-2393
- A.A. Hai, M.G. Weiner, A. Livshits, J.R. Brown, A. Paranjape, W. Hwang, L.H. Kirchner, N.Mathioudakis, E.K.French, Z. Obradovic, D.J. Rubin, (2024). Domain generalization for enhanced predictions of hospital readmission on unseen domains among patients with diabetes. Artificial intelligence in medicine, 158, 103010. https://doi.org/10.1016/j.artmed.2024.103010
- M. Londschien, M. Burger, G. Rätsch, P. Bühlmann, Domain Generalization and Adaptation in Intensive Care with Anchor Regression. RSS Data Science and Artificial Intelligence, 2(1), (2026) udag001. https://doi.org/10.1093/rssdat/udag001
- J. Driever, M. Lentzen, S. Madan, H. Fröhlich, (2025) Domain Adaptation Strategies for Transformer-Based Disease Prediction Using Electronic Health Records. medRxiv. https://doi.org/10.1101/2025.06.02.25328621
- Y. Li, S. Rao, J.R.A. Solares, A. Hassaine, R. Ramakrishnan, D. Canoy, Y. Zhu, K. Rahimi, G. Salimi-Khorshidi, BEHRT: transformer for electronic health records. Scientific reports, 10(1), (2020) 7155. https://doi.org/10.1038/s41598-020-62922-y
- A. Curth, P. Thoral, W. van den Wildenberg, P. Bijlstra, D. de Bruin, P.W.G. Elbers, M. Fornasa, Transferring Clinical Prediction Models Across Hospitals and Electronic Health Record Systems. Machine Learning and Knowledge Discovery in Databases – International Workshops of ECML PKDD 2019, Communications in Computer and Information Science, 1167, (2020) 605–621. https://doi.org/10.1007/978-3-030-43823-4_48
- S. Cui, P. Mitra, Automated Multi-Task Learning for Joint Disease Prediction on Electronic Health Records. Advances in Neural Information Processing Systems, 37, (2024) 129187–129208. https://doi.org/10.52202/079017-4103
- R.D. Riley, J. Ensor, K.I.E. Snell, T.P.A. Debray, D.G. Altman, K.G.M. Moons, G.S. Collins, External Validation of Clinical Prediction Models Using Big Datasets from E-Health Records or IPD Meta-Analysis: Opportunities and Challenges. BMJ, 353, (2016) i3140. https://doi.org/10.1136/bmj.i3140
- A. Shmatko, A.W. Jung, K. Gaurav, S. Brunak, L.H. Mortensen, E. Birney, T. Fitzgerald, M. Gerstung, Learning the natural history of human disease with generative transformers. Nature, 647(8088), (2025) 248-256. https://doi.org/10.1038/s41586-025-09529-3
- S. Lee, C. Yin, P. Zhang, Stable Clinical Risk Prediction Against Distribution Shift in Electronic Health Records. Patterns, 4(9), (2023) 100818. https://doi.org/10.1016/j.patter.2023.100818
- L. Rasmy, Y. Xiang, Z. Xie, C. Tao, D. Zhi, Med-BERT: Pretrained Contextualized Embeddings on Large-Scale Structured Electronic Health Records for Disease Prediction. npj Digital Medicine, 4(1), (2021) 86. https://doi.org/10.1038/s41746-021-00455-y
- T.H. Chan, G. Yin, K. Bae, L. Yu, Multi-Task Heterogeneous Graph Learning on Electronic Health Records. Neural Networks, 180, (2024) 106644. https://doi.org/10.1016/j.neunet.2024.106644
- Z. Che, S. Purushotham, K. Cho, D. Sontag, Y. Liu, Recurrent Neural Networks for Multivariate Time Series with Missing Values. Scientific Reports, 8(1), (2018) 6085. https://doi.org/10.1038/s41598-018-24271-9
- S. Niu, J. Ma, L. Bai, Z. Wang, L. Guo, X. Yang, EHR-KnowGen: Knowledge-enhanced multimodal learning for disease diagnosis generation. Information Fusion, 102, (2024) 102069. https://doi.org/10.1016/j.inffus.2023.102069
- S. Dhiman, A. Thukral, P. Bedi, Multiple Disease Diagnoses Using Heterogeneous EHR Curated Knowledge Graph and Machine Learning Models. Applied Intelligence, 55(7), (2025) 623. https://doi.org/10.1007/s10489-024-05952-7
- E. Choi, M. T. Bahadori, J. Sun, J. Kulas, A. Schuetz, W. F. Stewart, RETAIN: An Interpretable Predictive Model for Healthcare Using Reverse Time Attention Mechanism. Advances in Neural Information Processing Systems, 29, (2016).
- National Center for Health Statistics, (2023). National Health and Nutrition Examination Survey (NHANES) August 2021–August 2023. Centers for Disease Control and Prevention, U.S. Department of Health & Human Services, https://wwwn.cdc.gov/nchs/nhanes/continuousnhanes/default.aspx?Cycle=2021-2023
- National Center for Health Statistics, (2020) National Health and Nutrition Examination Survey (NHANES) 2017–March 2020 Pre-Pandemic Laboratory Data – Continuous NHANES. Centers for Disease Control and Prevention, U.S. Department of Health & Human Services, https://wwwn.cdc.gov/nchs/nhanes/search/datapage.aspx?Component=Laboratory&Cycle=2017-2020
- X. Song, A.S. Yu, J.A. Kellum, L.R. Waitman, M.E. Matheny, S.Q. Simpson, Y. Hu, M. Liu, Cross-site transportability of an explainable artificial intelligence model for acute kidney injury prediction. Nature communications, 11(1), (2020) 5668. https://doi.org/10.1038/s41467-020-19551-w
- B. Mamandipoor, C.N. Hsu, M. Krause, U.H. Schmidt, R.A. Gabriel, (2026) Development and External Validation of a Multimodal Artificial Intelligence Mortality Prediction Model of Critically Ill Patients Using Multicenter Data. Anesthesiology Publish Ahead of Print. https://doi.org/10.1097/ALN.0000000000006294
- M.K. Siam, M.J. Hossain Faruk, B. He, J.Q. Cheng, H. Gu, Multimodal models in healthcare: Methods, challenges, and future directions for enhanced clinical decision support. Information, 16(11), (2025) 971. https://doi.org/10.3390/info16110971
- S. Niu, Q. Yin, J. Ma, Y. Song, Y. Xu, L. Bai, W. Pan, X. Yang, Enhancing healthcare decision support through explainable AI models for risk prediction. Decision Support Systems, 181, (2024) 114228. https://doi.org/10.1016/j.dss.2024.114228
- S.M. Lundberg, S.I. Lee, A unified approach to interpreting model predictions. arXiv preprint arXiv:1705.07874 (2017).
- M. Mesinovic, P. Watkinson, T. Zhu, Explainable Machine Learning for Predicting ICU Mortality in Myocardial Infarction Patients Using Pseudo-Dynamic Data. Scientific Reports, 15(1), (2025) 27887. https://doi.org/10.1038/s41598-025-12262-6
Articles

