Hi-BEHRT: Hierarchical Transformer-Based Model for Accurate Prediction of Clinical Events Using Multimodal Longitudinal Electronic Health Records
Open accessAbstract
Electronic health records (EHR) represent a holistic overview of patients' trajectories. Their increasing availability has fueled new hopes to leverage them and develop accurate risk prediction models for a wide range of diseases. Given the complex interrelationships of medical records and patient outcomes, deep learning models have shown clear merits in achieving this goal. However, a key limitation of current study remains their capacity in processing long sequences, and long sequence modelling and its application in the context of healthcare and EHR remains unexplored. Capturing the whole history of medical encounters is expected to lead to more accurate predictions, but the inclusion of records collected for decades and from multiple resources can inevitably exceed the receptive field of the most existing deep learning architectures. This can result in missing crucial, long-term dependencies. To address this gap, we present Hi-BEHRT, a hierarchical Transformer-based model that can significantly expand the receptive field of Transformers and extract associations from much longer sequences. Using a multimodal large-scale linked longitudinal EHR, the Hi-BEHRT exceeds the state-of-the-art deep learning models 1% to 5% for area under the receiver operating characteristic (AUROC) curve and 1% to 8% for area under the precision recall (AUPRC) curve on average, and 2% to 8% (AUROC) and 2% to 11% (AUPRC) for patients with long medical history for 5-year heart failure, diabetes, chronic kidney disease, and stroke risk prediction. Additionally, because pretraining for hierarchical Transformer is not well-established, we provide an effective end-to-end contrastive pre-training strategy for Hi-BEHRT using EHR, improving its transferability on predicting clinical events with relatively small training dataset.
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Integrity signals
Registry
Cites
Statistics
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
Other public datasets for FEMRs vary greatly in size, from eICU's 139,000 patients to the CPRD's longitudinal records on 7% of all patients in the UK.
“Other public datasets vary greatly in size, from eICU’s 139,000 patients61 to the CPRD’s longitudinal records on 7% of all patients in the UK62.”
From The shaky foundations of large language models and foundation models for electronic health records (2023) · cites this paper as [62]
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Cites
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2019) · Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers) · doi:10.18653/v1/n19-1423 · Cited by 48,293 · see citing works
Data Resource Profile: Clinical Practice Research Datalink (CPRD)
Herrett, E., Gallagher, A. M., Bhaskaran, K., Forbes, H., Mathur, R., van Staa, T., & Smeeth, L. (2015) · International Journal of Epidemiology · doi:10.1093/ije/dyv098 · Cited by 2,667 · cited 5× · see citing works
“We undertook a cohort study in a large population of primary care patients using Clinical Practice Research Datalink (CPRD) [16].”
InfluentialLinformer: Self-Attention with Linear Complexity
Wang, S., Li, B. Z., Khabsa, M., Fang, H., & Ma, H. (2020) · arXiv · doi:10.48550/arxiv.2006.04768 · Cited by 867 · see citing works
Rethinking Attention with Performers
Choromanski, K., Likhosherstov, V., Dohan, D., Song, X., Gane, A., Sarlos, T., Hawkins, P., Davis, J., Mohiuddin, A., Kaiser, L., et al. (2020) · arXiv · doi:10.48550/arxiv.2009.14794 · Cited by 695 · cited 1× · see citing works
“Recent research has proposed two potential solutions for the Transformer-based models: (1) the use of sparse attention to replace the classic self-attention mechanism in Transformer[13], [14]; (2) and the use of hierarchical model architectures to extract local temporal features and reduce sequence length before feedi…”
BEHRT: Transformer for Electronic Health Records
Li, Y., Rao, S., Solares, J. R. A., Hassaine, A., Ramakrishnan, R., Canoy, D., Zhu, Y., Rahimi, K., & Salimi-Khorshidi, G. (2020) · Scientific Reports · doi:10.1038/s41598-020-62922-y · Cited by 595 · see citing works
Self-citation
Flagged first, then by citations
Research works printed but not linked: 22
- [1]van Staa T-P Gulliford M Ng ES-W Goldacre B Smeeth L Prediction of cardiovascular risk using Framingham, ASSIGN and QRISK2: How well do they predict individual rather than population risk? PLoS One 2014 9 10 e106455 25271417 PMC4182667
- [2]Goldstein BA Navar AM Pencina MJ Ioannidis J Opportunities and challenges in developing risk prediction models with electronic health records data: A systematic review J Amer Med Inform Assoc 2017 24 1 198 208 27189013 PMC5201180
- [3]Nguyen P Tran T Wickramasinghe N Venkatesh S Deepr: A convolutional net for medical records IEEE J Biomed Heal Inform 2017 Jan 21 1 22 30 10.1109/JBHI.2016.2633963 27913366 · DOI
- [4]Choi E Bahadori MT Kulas JA Schuetz A Stewart WF Sun J RETAIN: An interpretable predictive model for healthcare using reverse time attention mechanism Proc Adv Neural Inf Process Syst 2016 3512 3520
- [6]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 1 86 10.1038/s41746-021-00455-y 34017034 PMC8137882 · DOI · Paper page
- [7]Pang C CEHR-BERT: Incorporating temporal information from structured EHR data to improve prediction tasks Proc Mach Learn Health 2021 158 239 260 [Online].Available: https://proceedings.mlr.press/v158/pang21a.html
- [8]Banda JM Seneviratne M Hernandez-Boussard T Shah NH Advances in electronic phenotyping: From rule-based definitions to machine learning models Annu Rev Biomed Data Sci 2018 1 1 53 68 10.1146/annurev-biodatasci-080917-013315 31218278 PMC6583807 · DOI
- [9]Vaswani A Attention is all you need Proc Adv Neural Inf Process Syst 2017 5999 6009
- [11]Beltagy I Peters ME Cohan A Longformer: The long-document transformer 2020 arXiv:2004.05150 · arXiv
- [13]Pappagari R Zelasko P Villalba J Carmiel Y Dehak N Hierarchical transformers for long document classification Proc IEEE Autom Speech Recognit Understanding Workshop 2019 838 844 10.1109/ASRU46091.2019.9003958 · DOI
- [14]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 1 86 10.1038/s41746-021-00455-y 34017034 PMC8137882 · DOI · Paper page
- [15]Grill J-B Bootstrap your own latent—A new approach to self-supervised learning Adv Neural Inf Process Syst 2020 33 21271 21284 [Online]. Available: https://proceedings.neurips.cc/paper/2020/file/f3ada80d5c4ee70142b17b8192b2958e-Paper.pdf
- [17]Conrad N Temporal trends and patterns in heart failure incidence: A population-based study of 4 million individuals Lancet 2018 391 10120 572 580 29174292 PMC5814791
- [18]Kuan V A chronological map of 308 physical and mental health conditions from 4 million individuals in the English National Health Service Lancet Digit Heal 2019 1 2 e63 e77 10.1016/S2589-7500(19)30012-3 PMC6798263 31650125 · DOI · Paper page
- [19]Tran J Patterns and temporal trends of comorbidity among adult patients with incident cardiovascular disease in the U.K. between 2000 and 2014: A population-based cohort study PLoS Med 2018 15 3 e1002513 29509757 PMC5839540
- [20]Bramer GR International statistical classification of diseases and related health problems-Tenth revision World Health Statist Quarterly 1988 41 1 32 36 3376487
- [21]Chisholm J The read clinical classification BMJ Br Med J 1990 300 6732 1092 2344534 PMC1662793
- [22]Hassaine A Learning multimorbidity patterns from electronic health records using non-negative matrix factorisation 2019 Jul Accessed: Jun. 22, 2020 [Online]. Available: http://arxiv.org/abs/1907.08577 33127447 · arXiv
- [26]Li Y Deep Bayesian Gaussian processes for uncertainty estimation in electronic health records Sci Rep 2021 11 1 20685 10.1038/s41598-021-00144-6 34667200 PMC8526832 · DOI
- [27]Baevski A Zhou H Mohamed A Auli M wav2vec 2.0: A framework for self-supervised learning of speech representations Proc Adv Neural Inf Process Syst 2020 12449 12460
- [29]Hestness J Deep learning scaling is predictable, empirically 2017 arXiv:1712.00409 · arXiv
- [30]Gong C He D Tan X Qin T Wang L Liu T-Y FRAGE: Frequency-agnostic word representation Proc 32nd Int Conf Neural Inf Process Syst 2018 1341 1352
Cited by
Sorted by citations
A Review of the Role of Artificial Intelligence in Healthcare
Al Kuwaiti, A., Nazer, K., Al-Reedy, A., Al-Shehri, S., Al-Muhanna, A., Subbarayalu, A. V., Al Muhanna, D., & Al-Muhanna, F. A. (2023) · Journal of Personalized Medicine · doi:10.3390/jpm13060951 · Cited by 915 · see citing works
The shaky foundations of large language models and foundation models for electronic health records
Wornow, M., Xu, Y., Thapa, R., Patel, B., Steinberg, E., Fleming, S., Pfeffer, M. A., Fries, J., & Shah, N. H. (2023) · npj Digital Medicine · doi:10.1038/s41746-023-00879-8 · Cited by 324 · see citing works
“Other public datasets vary greatly in size, from eICU ’ s 139,000 patients 61 to the CPRD ’ s longitudinal records on 7% of all patients in the UK 62 .”
BackgroundMultimodal Large Language Models in Health Care: Applications, Challenges, and Future Outlook.
AlSaad, R., Abd-alrazaq, A., Boughorbel, S., Ahmed, A., Renault, M.-A., Damseh, R., & Sheikh, J. (2024) · Journal of medical Internet research · doi:10.2196/59505 · Cited by 349 · see citing works
“Subsequently, a series of medical BERT models were proposed to accelerate medical research [6,17-20].”
Learning the natural history of human disease with generative transformers
Shmatko, A., Jung, A. W., Gaurav, K., Brunak, S., Mortensen, L. H., Birney, E., Fitzgerald, T., & Gerstung, M. (2025) · Nature · doi:10.1038/s41586-025-09529-3 · Cited by 110 · see citing works
- Authors
- Li, Y., Mamouei, M., Salimi-Khorshidi, G., Rao, S., Hassaine, A., Canoy, D., Lukasiewicz, T., & Rahimi, K.
- Affiliations
- University of Oxford (GB)
- Deep Medicine, Oxford Martin School, University of Oxford, Oxford, U.K.
- Corresponding author
- Rahimi, Kazem
- ORCID
- Venue
- IEEE Journal of Biomedical and Health Informatics
- Published
- 2023-02
- Volume
- 27
- Issue
- 2
- Pages
- 1106-1117
- ISSN
- 2168-2194 (ISSN-L)
- 2168-2208
- PMC
- PMC7615082
- OpenAlex
- W4310645210
- Cited by
- 156
- References
- 5
- Citations by year
- 2026: 47 · 2025: 54 · 2024: 35 · 2023: 15 · 2022: 5
- FWCI
- 8.97
- Type
- journal article
- Language
- en
- Open access
- hybrid
- doi.org
- Locations
- IEEE Journal of Biomedical and Health Informatics (publishedVersion, cc-by)
- PubMed (publishedVersion)
- PubMed Central (acceptedVersion, cc-by)
- arXiv (Cornell University) (submittedVersion)
- arXiv (Cornell University)
- Funders
- British Heart Foundation (FS/PhD/21/29110)
- UKRI's Global Challenges Research Fund (ES/P0110551/1)
- Oxford NIHR Biomedical Research Centre and the Oxford Martin School, University of Oxford
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Machine Learning in Healthcare
- Health Sciences › Health Professions › Health Information Management › Electronic Health Records Systems
- Health Sciences › Medicine › Health Informatics › Artificial Intelligence in Healthcare and Education
- Keywords
- hierarchical transformer, clinical event prediction, electronic health records, receptive field expansion, contrastive pre-training, risk prediction, heart failure, diabetes mellitus, chronic kidney disease, stroke, transfer learning
- MeSH terms
- Heart Failure, Humans, Electric Power Supplies, ROC Curve, Area Under Curve, Electronic Health Records
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review