Researchnpj Digital Medicine · Jan 8, 2026

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

Rao S, Ahmed N, Salimi-Khorshidi G, Yau C, Su H, Conrad N, et al
Digital Health & AIAdult

Study type: Observational study: it can show a link, but not prove that one thing causes another.

Read the full paper free at PubMed Central ↗
Top Digital Health & AI studies every Monday

The week’s key trials and guidelines, free to read, in one short email. No account; unsubscribe in one click.

Choose specialties and topics

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.

More on this topic

Heart failure

DOI: 10.1038/s41746-025-02296-5 · PubMed: 41507366

Cite this article

Rao S, Ahmed N, Salimi-Khorshidi G, et al. A transformer-based survival model for prediction of all-cause mortality in patients with heart failure: a multi-cohort study. NPJ Digit Med. 2026. doi:10.1038/s41746-025-02296-5

RIS (EndNote, Zotero, Mendeley)BibTeX

Spotted a mistake? Suggest a correction

More in Digital Health & AI

Systematic review · Lancet Digit Health · Nov 24, 2026 · Digital Health & AI

Studies of AI literacy for health-care professionals most often covered AI fundamentals, ethical reasoning and knowledge of AI tools

Research · J Med Internet Res · Nov 24, 2026 · Digital Health & AI

Proposed five level framework classifies how much authority artificial intelligence holds in clinical workflows

Research · J Med Internet Res · Nov 24, 2026 · Digital Health & AI

Fraudulent participant patterns in online research depend on study design and recruitment methods

Systematic review · J Med Internet Res · Nov 24, 2026 · Digital Health & AI, Oncology

Acceptance of AI in oncology was highest before deployment

Research · Lancet Digit Health · Nov 23, 2026 · Digital Health & AI

ClinicalAge was linked to mortality and disease risk in UK datasets