Learning the natural history of human disease with generative transformers

Decision-making in healthcare relies on understanding patients' past and current health states to predict and, ultimately, change their future course<sup>1-3</sup>. Artificial intelligence (AI) methods promise to aid this task by learning patterns of disease progression from large corpora of health records<sup>4,5</sup>. However, their potential has not been fully investigated at scale. Here we modify the GPT<sup>6</sup> (generative pretrained transformer) architecture to model the progression and competing nature of human diseases. We train this model, Delphi-2M, on data from 0.4 million UK Biobank participants and validate it using external data from 1.9 million Danish individuals with no change in parameters. Delphi-2M predicts the rates of more than 1,000 diseases, conditional on each individual's past disease history, with accuracy comparable to that of existing single-disease models. Delphi-2M's generative nature also enables sampling of synthetic future health trajectories, providing meaningful estimates of potential disease burden for up to 20 years, and enabling the training of AI models that have never seen actual data. Explainable AI methods<sup>7</sup> provide insights into Delphi-2M's predictions, revealing clusters of co-morbidities within and across disease chapters and their time-dependent consequences on future health, but also highlight biases learnt from training data. In summary, transformer-based models appear to be well suited for predictive and generative health-related tasks, are applicable to population-scale datasets and provide insights into temporal dependencies between disease events, potentially improving the understanding of personalized health risks and informing precision medicine approaches.

Authors

Institutions

Publication Details

Journal
Nature
Published
2025-09-17
DOI
https://doi.org/10.1038/s41586-025-09529-3
Citations
34
Primary Topic
Machine Learning in Healthcare
Type
article
Field-Weighted Citation Impact
84.35
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Learning the natural history of human disease with generative transformers

Alexander W. Jung, Moritz Gerstung, Tomas Fitzgerald, Laust Hvas Mortensen et al.
34 citations
Nature
Machine Learning in Healthcare
84.35
article

Learning the natural history of human disease with generative transformers

Alexander W. Jung, Moritz Gerstung, Tomas Fitzgerald, Laust Hvas Mortensen, Søren Brunak, Artem Shmatko, Kumar Gaurav, Ewan Birney
article en
34 citations

Abstract

Decision-making in healthcare relies on understanding patients' past and current health states to predict and, ultimately, change their future course<sup>1-3</sup>. Artificial intelligence (AI) methods promise to aid this task by learning patterns of disease progression from large corpora of health records<sup>4,5</sup>. However, their potential has not been fully investigated at scale. Here we modify the GPT<sup>6</sup> (generative pretrained transformer) architecture to model the progression and competing nature of human diseases. We train this model, Delphi-2M, on data from 0.4 million UK Biobank participants and validate it using external data from 1.9 million Danish individuals with no change in parameters. Delphi-2M predicts the rates of more than 1,000 diseases, conditional on each individual's past disease history, with accuracy comparable to that of existing single-disease models. Delphi-2M's generative nature also enables sampling of synthetic future health trajectories, providing meaningful estimates of potential disease burden for up to 20 years, and enabling the training of AI models that have never seen actual data. Explainable AI methods<sup>7</sup> provide insights into Delphi-2M's predictions, revealing clusters of co-morbidities within and across disease chapters and their time-dependent consequences on future health, but also highlight biases learnt from training data. In summary, transformer-based models appear to be well suited for predictive and generative health-related tasks, are applicable to population-scale datasets and provide insights into temporal dependencies between disease events, potentially improving the understanding of personalized health risks and informing precision medicine approaches.

NatureVol. 647(8088)
University of Copenhagen (DK), European Bioinformatics Institute (GB), Statistics Denmark (DK), German Cancer Research Center (DE), Heidelberg University (DE), Novo Nordisk Foundation (DK), Robert Bosch Hospital (DE), ETH Zurich (CH), Rockwool Foundation (DK), University Children's Hospital Tübingen (DE), DKFZ-ZMBH Alliance (DE), University of Tübingen (DE), Robert Bosch (Germany) (DE)
Openalex Percentile: Top 0%
Machine Learning in Healthcare
84.35
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.