Journal article icon

Journal article

A transformer-based survival model for prediction of all-cause mortality in patients with heart failure: a multi-cohort study

Abstract:
Heart failure (HF) patients have complex health profiles that existing risk models fail to capture. We developed TRisk, a Transformer-based artificial intelligence survival model for predicting mortality using routine electronic health records (EHR) in HF patients. Using UK data from 403,534 HF patients across 1418 English general practices, we trained and validated TRisk and compared it against MAGGIC-EHR, the MAGGIC model adapted for use on routine EHR by substituting variables (e.g. left-ventricular ejection fraction) that are not routinely available. External validation was conducted on 21,767 patients from USA hospitals. In the UK cohort, TRisk achieved a concordance index (C-index): 0.845 (95% CI: 0.841, 0.849), outperforming MAGGIC-EHR (C-index: 0.728 [0.723, 0.733]) for 36-month mortality prediction. In subgroup analyses, TRisk demonstrated less variability in predictive performance by sex, age, and baseline characteristics compared to MAGGIC-EHR, suggesting less biased modelling. Evaluating TRisk in USA data via transfer learning yielded a C-index of 0.802 (0.789, 0.816). Explainability analysis revealed TRisk captured established risk factors while identifying underappreciated ones, particularly cancers and hepatic failure, with cancers maintaining prognostic utility even a decade before baseline. TRisk provides more accurate, well-calibrated mortality prediction using routine data across international healthcare settings, demonstrating potential for improved risk stratification in patients with HF.
Publication status:
Published
Peer review status:
Peer reviewed

Actions

Access Document

Files:
Publisher copy:
10.1038/s41746-025-02296-5
Publication website:
https://eprints.gla.ac.uk/374636/1/374636.pdf

Authors

More by this author
Institution:
University of Oxford
Role:
Author
ORCID:
0000-0001-7331-9416
More by this author
Institution:
University of Oxford
Role:
Author
More by this author
Institution:
University of Oxford
Role:
Author
More by this author
Institution:
University of Oxford
Role:
Author
ORCID:
0000-0001-7615-8523
More by this author
Role:
Author
ORCID:
0009-0004-0639-9507


Publisher:
Nature Research
Journal:
npj Digital Medicine More from this journal
Volume:
9
Issue:
1
Article number:
ARTN 118
Publication date:
2026-01-08
Acceptance date:
2025-12-16
DOI:
EISSN:
2398-6352
ISSN:
2398-6352


Language:
English
Keywords:
Pubs id:
2357860
UUID:
uuid_325c0d27-33cd-43ef-8979-a124680375b0
Local pid:
pubs:2357860
Source identifiers:
W7118752326
Deposit date:
2026-01-13
ARK identifier:
This ORA record was generated from metadata provided by an external service. It has not been edited by the ORA Team.

Terms of use


Views and Downloads






If you are the owner of this record, you can report an update to it here: Report update to this record

TO TOP