Beat-Synchronous Tokenization for ECG Transformers

Ahmed Sameh, Nolan Wilson, Max Enderlein, Yogatheesan Varatharajah
8/31/2026
cs.LGeess.SP
transformer-attention

No confident code implementation found for this paper.

Abstract

Transformer-based electrocardiogram (ECG) models commonly tokenize waveforms into fixed temporal patches. Though convenient, fixed patching can split heartbeat structures across token boundaries.

Show full abstract

We study beat-synchronous tokenization as a physiologically grounded alternative, comparing fixed patches with three beat-aligned strategies: resampled beats, adaptive pooled beats, and resampled beats augmented with R--R interval information. Experiments span two settings: 10-second 12-lead diagnostic classification on PTB-XL after MIMIC-IV-ECG masked pretraining, and 60-second single-lead rhythm classification on Icentia11k after patient-level contrastive pretraining. On PTB-XL, resampled beat tokens achieve the highest mean macro Area Under the ROC Curve (AUROC; 0.8945) and nearly match the best fixed-patch macro Area Under the Precision-Recall Curve (AUPRC; 0.7414), reducing average sequence length from 100 to 11.2 tokens. On Icentia11k, beat-synchronous tokenizers obtain comparable AUPRC to fixed patching with better stability across runs. These results suggest morphology-preserving beat tokenization is a compact, competitive alternative to fixed temporal patching.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sameh2026beatsynchronous,
  title  = {Beat-Synchronous Tokenization for ECG Transformers},
  author = {Ahmed Sameh and Nolan Wilson and Max Enderlein and Yogatheesan Varatharajah},
  year   = {2026},
  eprint = {2608.30367},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.30367v1}
}

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/2608.30367.svg)](https://codeofpaper.com/paper/2608.30367)

Discussion