[Paper Review] BEHRT: Transformer for Electronic Health Records
BEHRT is a Transformer-based deep learning model for electronic health records (EHR) that enables multitask disease prediction and personalized disease trajectory mapping by leveraging temporal sequences of heterogeneous EHR concepts. Trained on 1.6 million patients, it achieves an 8.0–10.8% absolute improvement in average precision over state-of-the-art models across 301 conditions.
Today, despite decades of developments in medicine and the growing interest in precision healthcare, vast majority of diagnoses happen once patients begin to show noticeable signs of illness. Early indication and detection of diseases, however, can provide patients and carers with the chance of early intervention, better disease management, and efficient allocation of healthcare resources. The latest developments in machine learning (more specifically, deep learning) provides a great opportunity to address this unmet need. In this study, we introduce BEHRT: A deep neural sequence transduction model for EHR (electronic health records), capable of multitask prediction and disease trajectory mapping. When trained and evaluated on the data from nearly 1.6 million individuals, BEHRT shows a striking absolute improvement of 8.0-10.8%, in terms of Average Precision Score, compared to the existing state-of-the-art deep EHR models (in terms of average precision, when predicting for the onset of 301 conditions). In addition to its superior prediction power, BEHRT provides a personalised view of disease trajectories through its attention mechanism; its flexible architecture enables it to incorporate multiple heterogeneous concepts (e.g., diagnosis, medication, measurements, and more) to improve the accuracy of its predictions; and its (pre-)training results in disease and patient representations that can help us get a step closer to interpretable predictions.
Motivation & Objective
- To develop a deep learning model capable of accurate, multi-label prediction of future diseases from EHR data.
- To enable personalized disease trajectory mapping using attention mechanisms to reveal contextual relationships between past and future conditions.
- To create a flexible, pre-trained architecture that can incorporate diverse EHR modalities such as diagnoses, medications, lab tests, and demographic features.
- To improve interpretability of predictions through learned disease embeddings and attention visualization.
- To reduce reliance on manual feature engineering by learning representations directly from raw or minimally processed EHR sequences.
Proposed method
- BEHRT employs a Transformer encoder architecture to model sequential EHR data, treating each clinical event as a token in a sequence.
- It uses four key embeddings: disease (ICD-10 codes), age, visit segment (e.g., early/late in care), and position within a visit to encode temporal and contextual information.
- The model is pre-trained on a large EHR dataset (CPRD) using masked language modeling, learning representations of diseases and patient trajectories.
- Fine-tuning is applied for downstream multi-label disease prediction tasks, enabling transfer learning with minimal task-specific adaptation.
- Attention mechanisms are used to identify influential past events and their contextual impact on future disease predictions.
- The architecture supports easy integration of new EHR modalities (e.g., medications, lab results) via vector addition to the input embedding space.
Experimental results
Research questions
- RQ1Can a pre-trained Transformer model achieve superior performance in multi-label future disease prediction compared to existing deep EHR models?
- RQ2How effectively can BEHRT model complex, non-linear disease trajectories using attention mechanisms on heterogeneous EHR data?
- RQ3To what extent do the learned disease embeddings and attention weights improve interpretability of predictions?
- RQ4Can BEHRT generalize across diverse clinical conditions with minimal architectural changes?
- RQ5How does incorporating temporal and contextual features (e.g., age, visit sequence) enhance predictive performance?
Key findings
- BEHRT achieves an absolute improvement of 8.0–10.8% in average precision across 301 conditions when predicting disease onset within the next six months, compared to state-of-the-art models.
- The model’s attention mechanism provides interpretable insights into disease progression, revealing contextual relationships between past and future diagnoses.
- Pre-training on a large EHR corpus enables BEHRT to learn meaningful representations of diseases and patient trajectories, improving downstream prediction accuracy.
- The model’s flexible architecture allows seamless integration of additional EHR modalities such as medications and lab tests with minimal architectural changes.
- Disease embeddings learned by BEHRT capture complex relationships beyond co-occurrence, reflecting shared trajectories in large patient populations.
- Visualization of attention weights enables researchers to explore and analyze disease context patterns, supporting hypothesis generation in clinical research.
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.