[Paper Review] Hi-BEHRT: Hierarchical Transformer-based model for accurate prediction of clinical events using multimodal longitudinal electronic health records
Hi-BEHRT is a hierarchical Transformer-based model that extends the receptive field of standard Transformers to capture long-term dependencies in multimodal longitudinal electronic health records (EHRs). It achieves state-of-the-art performance, improving AUROC by 1%–5% and AUPRC by 3%–6% on average for 5-year risk prediction of heart failure, diabetes, CKD, and stroke, with even greater gains for patients with long medical histories.
Electronic health records 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 these models remains their capacity in processing long sequences. 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 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 electronic health records, the Hi-BEHRT exceeds the state-of-the-art BEHRT 1% to 5% for area under the receiver operating characteristic (AUROC) curve and 3% to 6% for area under the precision recall (AUPRC) curve on average, and 3% to 6% (AUROC) and 3% 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.
Motivation & Objective
- Address the limitation of standard deep learning models in processing long sequences of longitudinal EHR data.
- Overcome the restricted receptive field of standard Transformers, which hinders capture of long-term medical dependencies.
- Enable accurate prediction of clinical events such as heart failure, diabetes, chronic kidney disease, and stroke using decades-long patient histories.
- Develop an effective end-to-end contrastive pre-training strategy for hierarchical Transformers to improve transferability on small downstream datasets.
- Enhance model performance on patients with extensive medical histories, where long-term patterns are most critical for prediction.
Proposed method
- Propose a hierarchical attention mechanism that processes EHR sequences at multiple levels of granularity, enabling longer effective context windows.
- Structure the model with a two-level Transformer architecture: local encoders process individual visits, and a global encoder aggregates visit-level representations.
- Introduce a novel end-to-end contrastive pre-training objective using EHR data to learn meaningful representations before fine-tuning on clinical prediction tasks.
- Leverage multimodal EHR data including diagnoses, medications, lab tests, and procedures, integrating them into a unified embedding space.
- Use masked self-attention with relative positional encoding to preserve temporal order and relationships in long sequences.
- Fine-tune the pre-trained model on downstream clinical event prediction tasks using binary cross-entropy loss with class-balanced sampling.
Experimental results
Research questions
- RQ1Can a hierarchical Transformer architecture effectively extend the receptive field of standard Transformers to model decades-long EHR sequences?
- RQ2How does Hi-BEHRT perform compared to state-of-the-art models like BEHRT in predicting 5-year clinical events across multiple conditions?
- RQ3To what extent does the proposed contrastive pre-training strategy improve model generalization on limited labeled EHR data?
- RQ4Does Hi-BEHRT show significant performance gains for patients with long medical histories compared to shorter ones?
- RQ5Can the model capture clinically relevant long-term dependencies that are missed by standard models?
Key findings
- Hi-BEHRT improves AUROC by 1% to 5% and AUPRC by 3% to 6% on average over the previous state-of-the-art BEHRT model for 5-year risk prediction of heart failure, diabetes, chronic kidney disease, and stroke.
- For patients with long medical histories, Hi-BEHRT achieves a 3% to 6% improvement in AUROC and up to 11% in AUPRC, demonstrating enhanced capture of long-term dependencies.
- The end-to-end contrastive pre-training strategy significantly boosts model transferability, enabling strong performance even with relatively small downstream training datasets.
- The hierarchical design successfully captures complex temporal patterns across multiple medical modalities, outperforming non-hierarchical counterparts in modeling long sequences.
- The model maintains robust performance across diverse clinical conditions, indicating generalizability to multiple chronic disease prediction tasks.
- The ablation study confirms that both the hierarchical architecture and the contrastive pre-training are critical for performance gains, with each component contributing significantly to the final results.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.