Cardioformer: Advancing AI in ECG Analysis with Multi-Granularity Patching and ResNet
Md Kamrujjaman Mobin, Md Saiful Islam, Sadik Al Barid, Md Masum

TL;DR
Cardioformer is a novel multi-granularity hybrid model that enhances ECG classification by capturing local and global features through innovative self-attention mechanisms, outperforming existing methods on multiple datasets.
Contribution
The paper introduces Cardioformer, a new hybrid model combining multi-scale token encoding and two-stage self-attention for improved ECG analysis.
Findings
Achieves high AUROC scores on MIMIC-IV, PTB-XL, and PTB datasets.
Outperforms state-of-the-art models like PatchTST, Reformer, Transformer, and Medformer.
Demonstrates strong cross-dataset generalization capabilities.
Abstract
Electrocardiogram (ECG) classification is crucial for automated cardiac disease diagnosis, yet existing methods often struggle to capture local morphological details and long-range temporal dependencies simultaneously. To address these challenges, we propose Cardioformer, a novel multi-granularity hybrid model that integrates cross-channel patching, hierarchical residual learning, and a two-stage self-attention mechanism. Cardioformer first encodes multi-scale token embeddings to capture fine-grained local features and global contextual information and then selectively fuses these representations through intra- and inter-granularity self-attention. Extensive evaluations on three benchmark ECG datasets under subject-independent settings demonstrate that model consistently outperforms four state-of-the-art baselines. Our Cardioformer model achieves the AUROC of 96.340.11,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsECG Monitoring and Analysis · Cardiac electrophysiology and arrhythmias · Atrial Fibrillation Management and Outcomes
MethodsRefunds@Expedia|||How do I get a full refund from Expedia? · Adafactor · SentencePiece · Linear Layer · Convolution · 1x1 Convolution · Reversible Residual Block · Multi-Head Attention · Locality Sensitive Hashing Attention · Dense Connections
