PaperarXiv:2608.12695
The Impact of Temporal Context Length and Encoding Strategies on Self-Supervised ECG Representation Learning
arXiv preprint
TL;DR
This study tests how input length and input encoding affect self-supervised ECG models, using single-lead Icentia11k with the same Transformer throughout. It compared 16-second, 1-minute, 5-minute and 10-minute inputs, and continuous patch embeddings against fixed quantized tokens. Longer context beat 16-second snapshots for rhythm detection and patient retrieval, with the 5- and 10-minute models best.
- Data: Icentia11k single-lead ECG
- Variables: input length (16 s to 10 min), continuous vs VQ tokens
- Result: 5- and 10-minute models best
Abstract
Self-supervised electrocardiogram (ECG) models are often trained on a few seconds of ECG signal and, increasingly, on discretized token sequences. It remains unclear whether these choices sacrifice information needed for rhythm inference and longitudinal consistency in real-world ambulatory recordings. We present a controlled study on the Icentia11k single-lead dataset that varies (i) the input horizon (16 seconds, 1 minute, 5 minutes, and 10 minutes) and (ii) the front-end representation (continuous convolutional patch embeddings vs. fixed vector-quantized tokens), while holding the Transformer backbone and training protocol constant. Representations are assessed by downstream abnormal rhythm detection and by patient-level retrieval that probes cross-session stability. Our results show that increasing temporal context beyond 16-second snapshots yields stronger transfer and higher retrieval accuracy, with the strongest performance achieved by the 5- and 10-minute models, indicating improved capture of slow-varying rhythm dynamics and individual-specific structure. Across all evaluated horizons, continuous patch embeddings outperform discretized tokens, suggesting that quantization can discard clinically relevant waveform detail. These findings motivate ECG foundation models that emphasize extended context and continuous encoders for clinical prediction and similarity-based applications. Our code and pretrained models are publicly available at https://github.com/muha-0/ecg-ssl-representation-learning.
Verbatim from arXiv (opens in a new tab) · arXiv metadata (abstracts are released under CC0)
Results on ChatPPG leaderboards
All leaderboardsNo results from this paper on ChatPPG leaderboards yet. Browse the leaderboards.
Tasks & signals
Signals
Keywords
Datasets used
How it works
Cite this paper
Sameh, A., Al-Sharawi, R., & Varatharajah, Y. (2026). The Impact of Temporal Context Length and Encoding Strategies on Self-Supervised ECG Representation Learning. arXiv preprint. https://arxiv.org/abs/2608.12695
Sameh, Ahmed, Ramzi Al-Sharawi, and Yogatheesan Varatharajah. 2026. "The Impact of Temporal Context Length and Encoding Strategies on Self-Supervised ECG Representation Learning." arXiv preprint. https://arxiv.org/abs/2608.12695.
Sameh, A., Al-Sharawi, R. and Varatharajah, Y. (2026) 'The Impact of Temporal Context Length and Encoding Strategies on Self-Supervised ECG Representation Learning', arXiv preprint. Available at: https://arxiv.org/abs/2608.12695
Sameh, Ahmed, et al. "The Impact of Temporal Context Length and Encoding Strategies on Self-Supervised ECG Representation Learning." arXiv preprint, 2026. https://arxiv.org/abs/2608.12695.
A. Sameh, R. Al-Sharawi, and Y. Varatharajah, "The Impact of Temporal Context Length and Encoding Strategies on Self-Supervised ECG Representation Learning," arXiv preprint, 2026, [Online]. Available: https://arxiv.org/abs/2608.12695.
@misc{sameh2026impact,
title = {{The Impact of Temporal Context Length and Encoding Strategies on Self-Supervised ECG Representation Learning}},
author = {Sameh, Ahmed and Al-Sharawi, Ramzi and Varatharajah, Yogatheesan},
year = {2026},
howpublished = {arXiv preprint},
eprint = {2608.12695},
archivePrefix = {arXiv}
}