Skip to content
Open access

Artificial intelligence-based ECG reconstruction error as a continuous predictor of all-cause mortality: a multi-cohort retrospective validation study

Jul 2026 · medRxiv · 0 citations
Medicine

TL;DR

This work aimed to develop a self-supervised AI-ECG risk score based on the error in reconstructing a partially masked ECG, providing a direct measure of how much each recording deviates from normal cardiac electrical patterns.

Abstract

Background Recent artificial intelligence (AI) models applied to the electrocardiogram (ECG) for risk stratification typically rely on supervised learning, defining risk as the error relative to an external target such as age or sex. This couples the risk score to the choice of target rather than the cardiac signal alone, and may limit generalisability. We aimed to develop a self-supervised AI-ECG risk score based on the error in reconstructing a partially masked ECG. Methods A transformer-based masked autoencoder was trained on 85% of the CODE dataset (n = 7,212,109 ECGs) to reconstruct ECG signals from partially masked inputs. The association between reconstruction error and all-cause mortality was assessed internally in CODE-15% and externally validated in four independent cohorts: MIMIC-IV-ECG (critical care, US), HEEDB (hospital, US), CHRIS (population-based, Italy), and Innsbruck (cardiology centre, Austria). A binary risk score (>1 SD above the CODE-15% mean) was additionally evaluated in these cohorts and in the UK Biobank (population-based, UK). Findings In Cox proportional hazards models adjusted for age and sex, each 1-SD increase in reconstruction error was associated with higher all-cause mortality (all p<0.001; cohort median follow-up 1.4-11.0 years): CODE-15% (HR 1.39, 95% CI 1.37-1.42), MIMIC-IV-ECG (HR 1.39, 95% CI 1.37-1.40), HEEDB (HR 1.41, 95% CI 1.40-1.41), Innsbruck (HR 1.23, 95% CI 1.21-1.26), and CHRIS (HR 1.25, 95% CI 1.14-1.38). The binary threshold identified a high-risk group with increased mortality in all six cohorts, including the UK Biobank (HR 1.27, 95% CI 1.08-1.50, p=0.004). Interpretation Reconstruction error is a generalisable predictor of all-cause mortality across diverse clinical and population-based settings. Unlike supervised approaches, it reflects the model's uncertainty about the ECG signal itself rather than error relative to an external target, providing a direct measure of how much each recording deviates from normal cardiac electrical patterns.

Read PDF

Similar papers

Review Open access 2026

Artificial Intelligence Applied to Electrocardiogram-Based Cardiovascular Risk Assessment: A Systematic Review

The application of AI to ECG analysis represents a promising advancement in personalized cardiovascular risk assessment, but further research is needed to ensure the safety, effectiveness, and equitable clinical integration of these technologies.

Maria Clara Mantoan Pinheiro, L. Felberg, I. Bozzi et al. · 0 citations
#explainable ai Review Open access Aug 2026

A systematic review of machine learning and explainable artificial intelligence for electrocardiogram based cardiovascular disease prediction

This review critically analyzes recent ECG-based ML/DL models for CVD prediction, with particular attention to model performance, dataset characteristics, preprocessing strategies, and the integration of explainable artificial intelligence (XAI).

Sabit Ahamed Preanto, Md. Hasan Imam Bijoy, Tapon Paul et al. · 0 citations
Open access Aug 2026

Using AI-ECG to Stratify Long-Term Mortality Risk and Prognosis in TAVR Patients.

The AI-ECG model provides noninvasive and accurate long-term risk stratification for TAVR patients, with promising clinical application value for individualized follow-up management.

Wence Shi, Peirou Yan, Qi-Feng Zhu et al. · 1 citation
Review Open access Sep 2026

Diagnostic Accuracy of Artificial Intelligence-Based Electrocardiography for the Detection of Heart Diseases: A Systematic Review and Meta-Analysis

For HF/LVSD, AI-ECG shows consistent and reproducible accuracy against echocardiography, and this estimate proved robust to the exclusion of studies at high risk of bias.

Joshuan J. Barboza, Óscar Andrés Ramírez-Terán, E. Tomás-Alvarado et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.