CardioPatternFormer: Pattern-Guided Attention for Interpretable ECG Classification with Transformer Architecture

Berat Kutay Uğraş, Ömer Nezih Gerek, İbrahim Talha Saygı
5/26/2025
eess.SPcs.AIcs.LG

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Accurate ECG interpretation is vital, yet complex cardiac data and "black-box" AI models limit clinical utility. Inspired by Transformer architectures' success in NLP for understanding sequential data, we frame ECG as the heart's unique "language" of temporal patterns. We present CardioPatternFormer, a novel Transformer-based model for interpretable ECG classification. It employs a sophisticated attention mechanism to precisely identify and classify diverse cardiac patterns, excelling at discerning subtle anomalies and distinguishing multiple co-occurring conditions. This pattern-guided attention provides clear insights by highlighting influential signal regions, effectively allowing the "heart to talk" through transparent interpretations. CardioPatternFormer demonstrates robust performance on challenging ECGs, including complex multi-pathology cases. Its interpretability via attention maps enables clinicians to understand the model's rationale, fostering trust and aiding informed diagnostic decisions. This work offers a powerful, transparent solution for advanced ECG analysis, paving the way for more reliable and clinically actionable AI in cardiology.

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. 2 weaker matches are hidden by default — 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{ura2025cardiopatternformer,
  title  = {CardioPatternFormer: Pattern-Guided Attention for Interpretable ECG Classification with Transformer Architecture},
  author = {Berat Kutay Uğraş and Ömer Nezih Gerek and İbrahim Talha Saygı},
  year   = {2025},
  eprint = {2505.20481},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.20481v1}
}

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

Discussion