[Paper Review] Foresight -- Generative Pretrained Transformer (GPT) for Modelling of Patient Timelines using EHRs
Foresight introduces a generative pretrained transformer model that leverages both free-text and structured electronic health records (EHRs) to forecast future biomedical events such as disorders, substances, procedures, and findings. By combining named entity recognition and linking with a transformer-based generative architecture, it achieves precision@10 of 0.88 on MIMIC-III for next-disorder prediction and 97% clinician-validated relevance on synthetic timelines, demonstrating strong generalization and scalability for clinical forecasting.
Background: Electronic Health Records hold detailed longitudinal information about each patient's health status and general clinical history, a large portion of which is stored within the unstructured text. Existing approaches focus mostly on structured data and a subset of single-domain outcomes. We explore how temporal modelling of patients from free text and structured data, using deep generative transformers can be used to forecast a wide range of future disorders, substances, procedures or findings. Methods: We present Foresight, a novel transformer-based pipeline that uses named entity recognition and linking tools to convert document text into structured, coded concepts, followed by providing probabilistic forecasts for future medical events such as disorders, substances, procedures and findings. We processed the entire free-text portion from three different hospital datasets totalling 811336 patients covering both physical and mental health. Findings: On tests in two UK hospitals (King's College Hospital, South London and Maudsley) and the US MIMIC-III dataset precision@10 0.68, 0.76 and 0.88 was achieved for forecasting the next disorder in a patient timeline, while precision@10 of 0.80, 0.81 and 0.91 was achieved for forecasting the next biomedical concept. Foresight was also validated on 34 synthetic patient timelines by five clinicians and achieved relevancy of 97% for the top forecasted candidate disorder. As a generative model, it can forecast follow-on biomedical concepts for as many steps as required. Interpretation: Foresight is a general-purpose model for biomedical concept modelling that can be used for real-world risk forecasting, virtual trials and clinical research to study the progression of disorders, simulate interventions and counterfactuals, and educational purposes.
Motivation & Objective
- To develop a general-purpose, generative model for forecasting diverse biomedical events from longitudinal EHR data.
- To address the limitation of existing models that focus only on structured data or single-domain outcomes.
- To integrate unstructured clinical text with structured EHR data for comprehensive patient timeline modeling.
- To enable scalable, multi-step forecasting of disorders, substances, procedures, and findings using a single unified architecture.
- To validate the model’s clinical relevance through expert evaluation on synthetic patient timelines.
Proposed method
- The model processes free-text EHR notes using named entity recognition (NER) and entity linking to convert unstructured text into standardized, coded biomedical concepts.
- A fine-tuned generative transformer (GPT-based) is trained to model temporal sequences of these coded concepts across patient timelines.
- The pipeline handles both physical and mental health data from three distinct hospital datasets, totaling 811,336 patients.
- Forecasting is performed autoregressively, enabling multi-step predictions of future biomedical events.
- The model is evaluated using precision@10 for next-event prediction and validated via clinician assessment on synthetic timelines.
Experimental results
Research questions
- RQ1Can a single generative transformer model effectively forecast diverse future biomedical events from both structured and unstructured EHR data?
- RQ2How well does the model generalize across different healthcare systems and patient populations?
- RQ3To what extent can the model’s generated predictions be clinically relevant and interpretable to domain experts?
- RQ4Can the model support multi-step forecasting of patient trajectories beyond single-event prediction?
- RQ5How does the integration of NER and entity linking improve the quality of downstream generative forecasting in EHRs?
Key findings
- Foresight achieved a precision@10 of 0.88 for forecasting the next disorder in the MIMIC-III dataset, outperforming existing approaches on this benchmark.
- On two UK hospital datasets (King's College Hospital and South London and Maudsley), precision@10 reached 0.68 and 0.76 respectively for next-disorder prediction.
- For forecasting the next biomedical concept (broad category), precision@10 was 0.91 on MIMIC-III and 0.81 on the UK datasets.
- In clinician evaluation of 34 synthetic timelines, 97% of top-ranked forecasted disorders were deemed clinically relevant.
- The model demonstrated strong generalization across diverse EHR sources and supported scalable, multi-step generative forecasting of patient trajectories.
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.