ECG-NAT: A Self-supervised Neighborhood Attention Transformer for Multi-lead Electrocardiogram Classification
Not on the map. Why?
Abstract (arXiv)
Electrocardiogram (ECG) arrhythmia classification remains challenging due to signal variability, noise, limited labeled data, and the difficulty in achieving both accuracy and efficiency in models. While self-supervised learning reduces label dependency, most methods target either global contextual features or local morphological patterns, but rarely implement hierarchical multi-scale feature extraction. ECG signals require architectures that simultaneously capture fine-grained beat-level morphology and broader rhythm-level dependencies with computational efficiency. To overcome this limitation, this paper proposes the Electrocardiogram Neighborhood Attention Transformer (ECG-NAT), a novel self-supervised learning approach tailored for multi-lead ECG classification. Our two-stage approach begins with generative pretraining, using a masked autoencoder to reconstruct partially masked ECG signals across multiple diverse datasets, enabling the model to learn robust, domain-invariant representations from unlabeled data. This is followed by discriminative fine-tuning with a dual-loss function that combines supervised contrastive and cross-entropy losses, aligning representation learning with label prediction. The hierarchical attention mechanism efficiently captures multi-scale temporal features from localized beat morphology to broader rhythm patterns at low computational cost. ECG-NAT achieves robust performance on benchmark datasets, with 88.1% accuracy using only 1% labeled data, demonstrating strong efficacy in low-resource settings. The framework combines superior classification performance with computational efficiency, making it practical for real-time ECG diagnosis. The code will be made available upon acceptance at: https://github.com/Mahsagazeran/ECG-NAT.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 16 of its 51 references that are in the map. First posted on arXiv 13 May 2026.
Builds on
16 of 51 references.
References · 16
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,403
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2021An Empirical Study of Training Self-Supervised Vision Transformerscited by 1,616
- 2022Neighborhood Attention Transformercited by 239
- 2016A Decomposable Attention Model for Natural Language Inferencecited by 215
- 2020CLOCS: Contrastive Learning of Cardiac Signals Across Space, Time, and Patientscited by 171
- 2024Guiding Masked Representation Learning to Capture Spatio-Temporal Relationship of Electrocardiogramcited by 84
- 2021Self-supervised representation learning from 12-lead ECG datacited by 80
- 2019Small Data Challenges in Big Data Era: A Survey of Recent Progress on Unsupervised and Semi-Supervised Methodscited by 62
- 2022Self-Supervised Time Series Representation Learning via Cross Reconstruction Transformercited by 47
4 more
- 2022Self-supervised Contrastive Representation Learning for Semi-supervised Time-Series Classificationcited by 39
- 2022Lead-agnostic Self-supervised Learning for Local and Global Representations of Electrocardiogramcited by 38
- 2018LSTM-Based ECG Classification for Continuous Monitoring on Personal Wearable Devicescited by 13
- 2023MSW-Transformer: Multi-Scale Shifted Windows Transformer Networks for 12-Lead ECG Classificationcited by 4
Built on by
Not cited yet.