medRxivPreprintOpen accesscardiovascular medicine

ECG foundation models share an age-related performance disparity that originates in the data, not the models

D. Lung, M.-K. Breyer, F. Moscato, M. Haberbusch

Key points

From the paper's conclusion
  • We measured demographic disparities across four ECG foundation models, tested whether mitigation removes them, and asked whether the dominant disparity originates in the models or in the data and the clinical task.

Abstract

BackgroundElectrocardiogram (ECG) foundation models are proposed for clinical use and promoted as fair, yet such claims are rarely tested with subgroup-stratified evaluation. We measured demographic disparities across four ECG foundation models, tested whether mitigation removes them, and asked whether the dominant disparity originates in the models or in the data and the clinical task.

MethodsWe probed frozen embeddings of four architecturally distinct ECG foundation models (ECGFounder, xECG, ECG-FM, DeepECG-SSL) in thirteen cohorts on four continents (5.4 million analysed ECGs, 31 endpoints, six held-out cohorts), stratified by age, sex and race. We examined embedding geometry, tested post-hoc correction, larger labelled training sets, comorbidity exclusion and low-rank fine-tuning, and compared each network with an untrained copy of itself and with logistic regression on classical ECG measurements.

FindingsDisparities concentrated on age, not sex or race (median worst-group AUROC gap 0.028 vs 0.004 and 0.016; age exceeded sex in 97% of results) and replicated externally (ED-BWH 30-day MACE AUROC 0.81-0.90 under 40 years, 0.64-0.71 at [≥]75). Age formed a smooth gradient in the embeddings, whereas sex, though most decodable, carried no gap. No remedy closed it (low-rank adaptation: -0.007 to -0.004). Untrained copies (r=0.81, 102 pairs) and classical measurements ({rho}=0.90) reproduced the endpoint-specific gaps, and pretraining raised AUROC (+0.067) without changing them. The largest race effect, higher potassium error in Black patients, vanished at matched true potassium.

InterpretationECG foundation models carry an age-structured disparity that replicates externally and survives mitigation. Because untrained networks and a classical model reproduce it, the results indicate that it is inherited from the age structure of the ECG and its labels rather than created by the models, so switching or adapting models will not remove it. Age-stratified reporting, untrained and classical baselines, and age-specific thresholds and recalibration are therefore needed.

FundingAustrian Research Promotion Agency (FFG; CARDISENSE project, grant FO999922422).

Graphical abstract

O_FIG O_LINKSMALLFIG WIDTH=200 HEIGHT=70 SRC="FIGDIR/small/26366943v1_ufig1.gif" ALT="Figure 1"> View larger version (23K): org.highwire.dtl.DTLVardef@d89588org.highwire.dtl.DTLVardef@1414c92org.highwire.dtl.DTLVardef@a2cddorg.highwire.dtl.DTLVardef@79fc3_HPS_FORMAT_FIGEXP M_FIG C_FIG Research in contextO_ST_ABSEvidence before this studyC_ST_ABSWe searched PubMed, Google Scholar, and arXiv from database inception to October, 2026, using combinations of the terms "ECG" or "electrocardiogram", "foundation model" or "self-supervised", and "fairness", "bias", "equity", "subgroup", or "demographic", with no language restriction. Open-weight ECG foundation models have proliferated and are increasingly proposed for clinical use, and benchmarks compare them on aggregate accuracy without stratifying by subgroup. The fairness literature documents demographic performance gaps in task-specific ECG classifiers, most often for sex or race on single tasks in single cohorts, and the remedies it proposes act on the model (reweighting, adversarial debiasing, group-robust training, fine-tuning). The one subgroup analysis of ECG foundation models we found covered two models of one family on their own endpoints, stratified by age and sex only. To our knowledge, no study has evaluated several architecturally distinct ECG foundation models along age, sex and race across endpoint families and continents, and none has tested whether a disparity found in a foundation model is also present without any pretraining or without deep learning.

Added value of this studyEvaluating four architecturally distinct ECG foundation models across thirteen cohorts on four continents, including six held-out external cohorts, we show that strong average and external discrimination coexists with a disparity that concentrates on age, not sex or race, and that replicates externally. The pattern has a consistent substrate: age is encoded as a smooth gradient in the embeddings, while sex and race, both decodable, carry no comparable gap. The gap is shared across every architecture and pretraining objective, and neither post-hoc correction, larger labelled training sets, exclusion of comorbid ECGs nor low-rank fine-tuning closes it. Two controls explain why: untrained copies of the same networks and a logistic regression on classical ECG measurements reproduce the endpoint-specific age gaps, which indicates that the gap is inherited from the data and the clinical task rather than learned in pretraining.

Implications of all the available evidenceFairness evaluation of ECG foundation models should prioritise age and report age-stratified performance as a primary result, because a threshold fixed on the pooled population operates at a worse point for older patients than the headline metric implies. Because the gap persists across architectures, vendors, fine-tuning and even untrained networks, switching models will not resolve it. Evaluations should include an untrained and a classical baseline before attributing a gap to a model, and services deploying these models should use age-specific thresholds and recalibration, or at minimum report and monitor performance by age band.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers