Foresight-England: Development of a National-Scale Generative AI Model of Electronic Health Records for Medical Event Prediction across the COVID-19 Pandemic
Not on the map. Why?
Abstract (arXiv)
Foresight-England (Foresight-E) is the first national-scale generative foundation model of electronic health records (EHRs), developed as a research pilot strictly for COVID-19 research. We evaluated its ability to model the direct and indirect effects of the pandemic. Trained from scratch entirely within the NHS England Secure Data Environment, Foresight-E is a 243-million-parameter transformer decoder. It was trained and evaluated on de-identified, longitudinal EHRs of approximately 61 million individuals, integrating primary/secondary care, death registrations, and COVID-19 data. Training and validation used a 90% subset (54.9 million) spanning November 2018 to December 2022; the remaining 10% (6.1 million) was held out for evaluation. Foresight-E models patient timelines autoregressively, predicting the next medical event given their prior history. At inference, it operates zero-shot, predicting any concept in its ~40,000-code vocabulary without task-specific training. Our tokenisation scheme retains the clinical granularity of ICD-10, OPCS-4, and SNOMED CT codes, jointly representing absolute and relative timing. We designed an evaluation framework for 30-day COVID-19 hospitalisation and mortality, including subgroup analyses by demographic factors and vaccination status. To assess generalisation to unseen future data and the pandemic's indirect effects, we tested the model on medical events from 2023 (beyond its training period), benchmarking against logistic regression and XGBoost. As detailed in the Project Status section, NHS England has paused access to data for the Foresight-E project, meaning quantitative results are currently unavailable. Instead, we share our strategy for tokenisation, architecture, training, inference, and evaluation as a methodological template and case study in the challenges of building population-scale EHR foundation models.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 20 of its 75 references that are in the map. First posted on arXiv 17 Aug 2026.
Builds on
20 of 75 references.
References · 20
- 2017Attention Is All You Needcited by 60,361
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2020Extracting Training Data from Large Language Modelscited by 2,189
- 2021Perceiver: General Perception with Iterative Attentioncited by 1,104
- 2020Med-BERT: pre-trained contextualized embeddings on large-scale structured electronic health records for disease predictioncited by 373
- 2019BEHRT: Transformer for Electronic Health Recordscited by 263
- 2023MOTOR: A Time-To-Event Foundation Model For Structured Medical Recordscited by 78
- 2024Zero Shot Health Trajectory Prediction Using Transformercited by 77
8 more
- 2024Context Clues: Evaluating Long Context Models for Clinical Prediction Tasks on EHRscited by 39
- 2025Large Language Models are Powerful Electronic Health Record Encoderscited by 26
- 2025Generative Medical Event Models Improve with Scalecited by 26
- 2024Analysing The Impact of Sequence Composition on Language Model Pre-Trainingcited by 25
- 2025Multimodal Medical Code Tokenizercited by 14
- 2025Exploring Scaling Laws for EHR Foundation Modelscited by 12
- 2024Large Language Models for Medical Forecasting -- Foresight 2cited by 5
- 2022GRAIMATTER Green Paper: Recommendations for disclosure control of trained Machine Learning (ML) models from Trusted Research Environments (TREs)cited by 4
Built on by
Not cited yet.