From Token to Rhythm: A Multi-Scale Approach for ECG-Language Pretraining

Fuying Wang, Jiacheng Xu, Lequan Yu
2/14/2026

No official code found. Best implementation: HKU-MedAI/MELP (29 stars, MIT, last commit 2026-03-09).

Abstract

Electrocardiograms (ECGs) play a vital role in monitoring cardiac health and diagnosing heart diseases. However, traditional deep learning approaches for ECG analysis rely heavily on large-scale manual annotations, which are both time-consuming and resource-intensive to obtain. To overcome this limitation, self-supervised learning (SSL) has emerged as a promising alternative, enabling the extraction of robust ECG representations that can be efficiently transferred to various downstream tasks. While previous studies have explored SSL for ECG pretraining and multi-modal ECG-language alignment, they often fail to capture the multi-scale nature of ECG signals. As a result, these methods struggle to learn generalized representations due to their inability to model the hierarchical structure of ECG data. To address this gap, we introduce MELP, a novel Multi-scale ECG-Language Pretraining (MELP) model that fully leverages hierarchical supervision from ECG-text pairs. MELP first pretrains a cardiology-specific language model to enhance its understanding of clinical text. It then applies three levels of cross-modal supervision-at the token, beat, and rhythm levels-to align ECG signals with textual reports, capturing structured information across different time scales. We evaluate MELP on three public ECG datasets across multiple tasks, including zero-shot ECG classification, linear probing, and transfer learning. Experimental results demonstrate that MELP outperforms existing SSL methods, underscoring its effectiveness and adaptability across diverse clinical applications. Our code is available at https://github.com/HKU-MedAI/MELP.

View on arXivView PDF

Code Implementations(1)

HKU-MedAI/MELPCommunity59%
MIT

[ICML'2025] From Token to Rhythm: A Multi-Scale Approach for ECG-Language Pretraining

294PythonMay 29, 20257 months agoMIT

Similar Papers

Cite this paper

@article{wang2026from,
  title  = {From Token to Rhythm: A Multi-Scale Approach for ECG-Language Pretraining},
  author = {Fuying Wang and Jiacheng Xu and Lequan Yu},
  year   = {2026},
  eprint = {2506.21803},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2506.21803},
  journal = {ICML 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.21803.svg)](https://codeofpaper.com/paper/2506.21803)

Discussion