arXiv:2611.12307cs.AINov 2026

Manuscript Offprint

arXiv:2611.12307

PACE-ECG: Patient-Aware Contrastive ECG Pretraining; Leveraging Longitudinal Structure for Transferable Representations

Riccardo Cavarra, Lupo Lovatelli, Shaheim Ogbomo-Harmitt, Jakub Grzelak, Adelaide De Vecchi, Andrew King, Oleg Aslanidi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Foundation models for physiological signals are commonly evaluated on in-domain interpretation tasks, but their ability to transfer to longitudinal clinical prognosis across healthcare systems remains uncertain. We developed PACE-ECG, an ECG pretraining framework that combines contrastive learning across temporally neighbouring recordings from the same patient with clinically guided multitask supervision. We evaluated frozen ECG representations for post-myocardial-infarction all-cause mortality and incident heart failure prediction across MIMIC-IV and two external HEEDB cohorts, comparing the proposed representation with DeepECG-SSL, a state-of-the-art model, and two control baselines. Across both downstream tasks, the proposed model outperformed DeepECG-SSL in-domain (AUROC +1.9% for mortality and +4.0% for heart failure) and on external populations in HEEDB-Boston (+5.6% for mortality +10.3% for heart failure) and HEEDB-Atlanta (+6.9% for mortality +11.0% for heart failure) while using an encoder 41 times smaller and a fraction of the pretraining data. A matched ablation showed that patient-temporal pairing improved external mortality and heart failure AUROC over generic self-supervision by 7.0% and 9.4% on HEEDB-Boston and 8.9% and 9.3% on HEEDB-Atlanta. These findings indicate that pretraining-objective design greatly influences downstream transfer alongside model and data scale, and that in-domain performance alone is insufficient to establish the clinical generalisability of ECG foundation representations.

1 Introduction

Deep learning is increasingly used in medicine for applications ranging from diagnosis to risk prediction [1], yet most medical artificial intelligence remains built around narrow, task-specific models. Such approaches depend on large quantities of labelled data and require retraining when transferred to new tasks or data distributions. Foundation models address this issue though self-supervised learning (SSL). These models are pretrained on large, unlabelled datasets and produce reusable representations and can support multiple downstream applications with limited task-specific supervision. This is particularly attractive in medicine, where expert annotation is scarce and expensive and data distributions vary across patient populations, institutions, acquisition systems and clinical workflows [2]. The electrocardiogram (ECG) is an inexpensive, widely available measurement of cardiac electrophysiology, and large clinical archives make it a natural setting for representation learning.

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: Foundation Models for the Brain and Body.

References (25)