CHaRT: An Autoregressive Transformer for Joint Forecasting of Clinical Events and Continuous Values
Abstract
1. Introduction
2. Materials and Methods
2.1. Study Setting
2.2. Data Source and Extraction
2.3. Outcome Definition
2.4. Data Preprocessing
2.5. Tokenization and Normalization
2.6. Dataset Construction
2.7. Model Architecture
2.8. Loss Functions
2.9. Training Procedure
2.10. Sample Size and Class Imbalance
2.11. Evaluation Design
2.12. Deterioration Prediction
3. Results
3.1. Data Characteristics
3.2. Participant Characteristics
3.3. Model Performance
3.4. Qualitative Trajectory Evaluation
3.5. Deterioration Prediction
4. Discussion
4.1. Relationship to Prior Work
4.2. Clinical Interpretation of Numeric Predictions
4.3. Performance Variation Across Clinical Domains
4.4. Imputation-Free Modeling and Trajectory-Based Forecasting
4.5. Deterioration Prediction
4.6. Limitations
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Amirahmadi, A.; Ohlsson, M.; Etminani, K. Deep learning prediction models based on EHR trajectories: A systematic review. J. Biomed. Inform. 2023, 144, 104430. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zhu, M.; Liu, Y.; Luo, Z.; Zhu, T. The Taxonomies, Training, and Applications of Event Stream Modelling for Electronic Health Records. arXiv 2026, arXiv:2603.14003. [Google Scholar] [CrossRef] [Scilit]
- Romero-Brufau, S.; Whitford, D.; Johnson, M.G.; Hickman, J.; Morlan, B.W.; Therneau, T.; Naessens, J.; Huddleston, J.M. Using machine learning to improve the accuracy of patient deterioration predictions: Mayo Clinic Early Warning Score (MC-EWS). J. Am. Med. Inform. Assoc. 2021, 28, 1207–1215. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Choi, E.; Bahadori, M.T.; Schuetz, A.; Stewart, W.F.; Sun, J. Doctor AI: Predicting Clinical Events via Recurrent Neural Networks. JMLR Workshop Conf. Proc. 2016, 56, 301–318. [Google Scholar] [PubMed]
- Rajkomar, A.; Oren, E.; Chen, K.; Dai, A.M.; Hajaj, N.; Hardt, M.; Liu, P.J.; Liu, X.; Marcus, J.; Sun, M.; et al. Scalable and accurate deep learning with electronic health records. npj Digit. Med. 2018, 1, 18. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Tomašev, N.; Glorot, X.; Rae, J.W.; Zielinski, M.; Askham, H.; Saraiva, A.; Mottram, A.; Meyer, C.; Ravuri, S.; Protsyuk, I.; et al. A clinically applicable approach to continuous prediction of future acute kidney injury. Nature 2019, 572, 116–119. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Harutyunyan, H.; Khachatrian, H.; Kale, D.C.; Ver Steeg, G.; Galstyan, A. Multitask learning and benchmarking with clinical time series data. Sci. Data 2019, 6, 96. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Shickel, B.; Tighe, P.J.; Bihorac, A.; Rashidi, P. Deep EHR: A Survey of Recent Advances in Deep Learning Techniques for Electronic Health Record (EHR) Analysis. IEEE J. Biomed. Health Inf. 2018, 22, 1589–1604. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, L.; Polosukhin, I. Attention Is All You Need. arXiv 2023, arXiv:1706.03762. [Google Scholar] [CrossRef] [Scilit]
- Li, Y.; Rao, S.; Solares, J.R.A.; Hassaine, A.; Ramakrishnan, R.; Canoy, D.; Zhu, Y.; Rahimi, K.; Salimi-Khorshidi, G. BEHRT: Transformer for Electronic Health Records. Sci. Rep. 2020, 10, 7155. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Pang, C.; Jiang, X.; Kalluri, K.S.; Spotnitz, M.; Chen, R.; Perotte, A.; Natarajan, K. CEHR-BERT: Incorporating temporal information from structured EHR data to improve prediction tasks. arXiv 2021, arXiv:2111.08585. [Google Scholar] [CrossRef] [Scilit]
- Rasmy, L.; Xiang, Y.; Xie, Z.; Tao, C.; Zhi, D. Med-BERT: Pretrained contextualized embeddings on large-scale structured electronic health records for disease prediction. npj Digit. Med. 2021, 4, 86. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Kraljevic, Z.; Bean, D.; Shek, A.; Bendayan, R.; Hemingway, H.; Yeung, J.A.; Deng, A.; Balston, A.; Ross, J.; Idowu, E.; et al. Foresight—A generative pretrained transformer for modelling of patient timelines using electronic health records: A retrospective modelling study. Lancet Digit. Health 2024, 6, e281–e290. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Levine, L.; Santerre, J.; Young, A.S.; Levine, T.B.; Campion, F.; Sarrafzadeh, M. PRISM: A Transformer-based Language Model of Structured Clinical Event Data. arXiv 2025, arXiv:2506.11082. [Google Scholar] [CrossRef] [Scilit]
- Pang, C.; Jiang, X.; Pavinkurve, N.P.; Kalluri, K.S.; Minto, E.L.; Patterson, J.; Zhang, L.; Hripcsak, G.; Gürsoy, G.; Elhadad, N.; et al. CEHR-GPT: Generating Electronic Health Records with Chronological Patient Timelines. arXiv 2024, arXiv:2402.04400. [Google Scholar] [CrossRef] [Scilit]
- Rajamohan, H.R.; Gao, X.; Zhu, W.; Huang, S.-L.; Chen, L.; Cho, K.; Deniz, C.M.; Razavian, N. Foundation Models for Clinical Records at Health System Scale. arXiv 2025, arXiv:2507.00574. [Google Scholar] [CrossRef] [Scilit]
- Redekop, E.; Wang, Z.; Kulkarni, R.; Pleasure, M.; Chin, A.; Hassanzadeh, H.R.; Hill, B.L.; Emami, M.; Speier, W.F.; Arnold, C.W. Zero-shot medical event prediction using a generative pretrained transformer on electronic health records. J. Am. Med. Inform. Assoc. 2025, 32, 1833–1842. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Renc, P.; Jia, Y.; Samir, A.E.; Was, J.; Li, Q.; Bates, D.W.; Sitek, A. Zero shot health trajectory prediction using transformer. npj Digit. Med. 2024, 7, 256. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Waxler, S.; Blazek, P.; White, D.; Sneider, D.; Chung, K.; Nagarathnam, M.; Williams, P.; Voeller, H.; Wong, K.; Swanhorst, M.; et al. Generative Medical Event Models Improve with Scale. arXiv 2025, arXiv:2508.12104. [Google Scholar] [CrossRef] [Scilit]
- Loza, A.J.; Kim, J.Y.; Song, S.; Liu, Y.; Sung, J.J.Y.; Taylor, R.A.; Shung, D.L. multivariateGPT: A decoder-only transformer for multivariate categorical and numeric data. arXiv 2025, arXiv:2505.21680. [Google Scholar] [CrossRef] [Scilit]
- Su, J.; Lu, Y.; Pan, S.; Murtadha, A.; Wen, B.; Liu, Y. RoFormer: Enhanced Transformer with Rotary Position Embedding. arXiv 2021, arXiv:2104.09864. [Google Scholar] [CrossRef] [Scilit]
- Kimi Team; Chen, G.; Zhang, Y.; Su, J.; Xu, W.; Pan, S.; Wang, Y.; Wang, Y.; Chen, G.; Yin, B.; et al. Attention Residuals. arXiv 2026. [Google Scholar] [CrossRef] [Scilit]
- Shazeer, N. GLU Variants Improve Transformer. arXiv 2020, arXiv:2002.05202. [Google Scholar] [CrossRef] [Scilit]
- Shleifer, S.; Weston, J.; Ott, M. NormFormer: Improved Transformer Pretraining with Extra Normalization. arXiv 2021, arXiv:2110.09456. [Google Scholar] [CrossRef] [Scilit]
- Ankner, Z.; Blakeney, C.; Sreenivasan, K.; Marion, M.; Leavitt, M.L.; Paul, M. Perplexed by Perplexity: Perplexity-Based Data Pruning with Small Reference Models. arXiv 2024, arXiv:2405.20541. [Google Scholar] [CrossRef] [Scilit]
- Guo, C.; Pleiss, G.; Sun, Y.; Weinberger, K.Q. On Calibration of Modern Neural Networks. arXiv 2017, arXiv:1706.04599. [Google Scholar] [CrossRef] [Scilit]
- DeLong, E.R.; DeLong, D.M.; Clarke-Pearson, D.L. Comparing the areas under two or more correlated receiver operating characteristic curves: A nonparametric approach. Biometrics 1988, 44, 837–845. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Han, H.M.; Choi, S.J.; Park, E.; Chang, J.; Jung, H.H.; Im, G.J. A big data analysis of fever threshold and vital sign characteristics using tympanic temperature in hospitalized patients. Sci. Rep. 2024, 14, 27470. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Kleinig, O.; To, M.S.; Ovenden, C.D.; Kovoor, J.G.; Goh, R.; Lam, L.; Wenzel, T.; Tan, Y.; Harish, H.; Gupta, A.K.; et al. Vital sign measurements demonstrate terminal digit bias and boundary effects. Emerg. Med. Australas. 2024, 36, 543–546. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Overwyk, K.J.; Pfeiffer, C.M.; Storandt, R.J.; Zhao, L.; Zhang, Z.; Campbell, N.R.C.; Wiltz, J.L.; Merritt, R.K.; Cogswell, M.E. Serum Sodium and Potassium Distribution and Characteristics in the US Population, National Health and Nutrition Examination Survey 2009–2016. J. Appl. Lab. Med. 2021, 6, 63–78. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Muntner, P.; Shimbo, D.; Carey, R.M.; Charleston, J.B.; Gaillard, T.; Misra, S.; Myers, M.G.; Ogedegbe, G.; Schwartz, J.E.; Townsend, R.R.; et al. Measurement of Blood Pressure in Humans: A Scientific Statement from the American Heart Association. Hypertension 2019, 73, e35–e66. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Che, Z.; Purushotham, S.; Cho, K.; Sontag, D.; Liu, Y. Recurrent Neural Networks for Multivariate Time Series with Missing Values. Sci. Rep. 2018, 8, 6085. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Getzen, E.; Ungar, L.; Mowery, D.; Jiang, X.; Long, Q. Mining for equitable health: Assessing the impact of missing data in electronic health records. J. Biomed. Inform. 2023, 139, 104269. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Ghassemi, M.; Oakden-Rayner, L.; Beam, A.L. The false hope of current approaches to explainable artificial intelligence in health care. Lancet Digit. Health 2021, 3, e745–e750. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Renc, P.; Grzeszczyk, M.K.; Oufattole, N.; Goode, D.; Jia, Y.; Bieganski, S.; McDermott, M.B.A.; Was, J.; Samir, A.E.; Cunningham, J.W.; et al. Foundation model of electronic medical records for adaptive risk estimation. Gigascience 2025, 14, giaf107. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Edelson, D.P.; Churpek, M.M.; Carey, K.A.; Lin, Z.; Huang, C.; Siner, J.M.; Johnson, J.; Krumholz, H.M.; Rhodes, D.J. Early Warning Scores with and Without Artificial Intelligence. JAMA Netw. Open 2024, 7, e2438986. [Google Scholar] [CrossRef] [Scilit] [PubMed]





| Characteristic | Final Analytic Cohort |
|---|---|
| Cohort and data volume | |
| Final adult acute-care encounters, n | 4,447,625 |
| Unique patients, n | 1,301,502 |
| Non-padding clinical event tokens, n | 701,556,877 |
| Encounter class | |
| Emergency | 3,900,771 (87.7%) |
| Inpatient | 346,762 (7.8%) |
| Surgical admit | 173,386 (3.9%) |
| Observation | 26,706 (0.6%) |
| Sequence characteristics | |
| Median length (IQR), tokens | 56 (21–146) |
| Mean length, tokens | 158.0 |
| Age and legal sex | |
| Age, median (IQR), years | 48.8 (32.5–66.9) |
| Age missing, n (%) | 353 (0.01%) |
| Female, n (%) | 2,595,791 (58.4%) |
| Male, n (%) | 1,850,284 (41.6%) |
| Legal sex missing/unknown, n (%) | 1550 (0.03%) |
| Race | |
| White | 76.4% |
| Black or African American | 12.3% |
| Asian | 4.5% |
| Other | 6.8% |
| Ethnicity | |
| Not Hispanic or Latino | 71.3% |
| Hispanic or Latino | 3.3% |
| Missing/unknown | 25.5% |
| Clinical outcomes | |
| In-hospital mortality, n (%) | 26,795 (0.60%) |
| ICU transfer, n (%) | 148,493 (3.34%) |
| Train/validation/test split | |
| Train encounters, n (%) | 3,557,487 (80.0%) |
| Train tokens/windows | 560 million/8.9 million |
| Validation encounters, n (%) | 445,165 (10.0%) |
| Validation tokens/windows | 71 million/1.1 million |
| Test encounters, n (%) | 444,973 (10.0%) |
| Test tokens/windows | 71 million/1.1 million |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Walz, M.; Byrd, T.F., IV. CHaRT: An Autoregressive Transformer for Joint Forecasting of Clinical Events and Continuous Values. Informatics 2026, 13, 99. https://doi.org/10.3390/informatics13070099
Walz M, Byrd TF IV. CHaRT: An Autoregressive Transformer for Joint Forecasting of Clinical Events and Continuous Values. Informatics. 2026; 13(7):99. https://doi.org/10.3390/informatics13070099
Chicago/Turabian StyleWalz, Michael, and Thomas F. Byrd, IV. 2026. "CHaRT: An Autoregressive Transformer for Joint Forecasting of Clinical Events and Continuous Values" Informatics 13, no. 7: 99. https://doi.org/10.3390/informatics13070099
APA StyleWalz, M., & Byrd, T. F., IV. (2026). CHaRT: An Autoregressive Transformer for Joint Forecasting of Clinical Events and Continuous Values. Informatics, 13(7), 99. https://doi.org/10.3390/informatics13070099

