Skip to content

Nokia-Bell-Labs/ecg-foundation-model

Repository files navigation

CLEF Logo

CLEF

Clinically-Guided Contrastive Learning for
Electrocardiogram Foundation Models

ArXiv DOI

🌟 Overview

The electrocardiogram~(ECG) is a key diagnostic tool in cardiovascular health. Single-lead ECG recording is integrated into both clinical-grade and consumer wearables. We propose CLEF, the first foundation model for single-lead ECG, leveraging metadata–derived risk scores for each patient as guided supervisory signals. CLEF was pretrained on 161K patients from MIMIC-IV-ECG using 12-lead ECGs. We evaluated on 18 clinical classification and regression tasks across 7 held-out datasets, and benchmarked against 5 foundation model baselines and 3 self-supervised learning algorithms. Overall, out method achieves an ≥ 2.6% improvement in average AUROC for classification, and ≥ 3.2% reduction in MAE for regression, outperforming all self-supervised foundation model baselines. Beyond accuracy, CLEF advances multifacet and robust single-lead ECG analysis, enabling next-generation remote health monitoring and wearable intelligence.

CLEF Model Overview

🚀 News

  • [Dec 2025] Paper released on arXiv
  • [Nov 2025] Code and pretrained weights released

✨ Introduction

CLEF is an ECG foundation model trained with clinically-guided contrastive learning. This repository contains the implementation for our paper "CLEF: Clinically-Guided Contrastive Learning for Electrocardiogram Foundation Models".

Key features:

  • Clinical-informed contrastive pretraining for better representation
  • Pretrained models on 3 sizes: small, base, large
  • Easy single-lead ECG representation extraction and downstream task evaluation

📚 Documentation

🧭 Quick Start

  • Launch the interactive quickstart notebook: notebooks/clef_quickstart.ipynb

📦 Available Models

Model Parameters Download
CLEF-Small 448K Zenodo
CLEF-Medium 30.7M Zenodo
CLEF-Large 296M Zenodo

🙏 Acknowledgements

We gratefully acknowledge the contributions of the following projects, which were instrumental in the evaluation of CLEF:

📝 Citation

If you use CLEF in your research, please cite:

@article{clef2024,
  title={CLEF: Clinically-Guided Contrastive Learning for Electrocardiogram Foundation Models},
  author={Yuxuan Shu, Peter Charlton, Fahim Kawsar, Jussi Hernesniemi, Mohammad Malekzadeh},
  journal={arXiv preprint arXiv:2512.02180},
  year={2025}
}

About

CLEF: Clinically-Guided Contrastive Learning for Electrocardiogram Foundation Models

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •