Arrhythmia detection in multi-channel ECG images: vision transformer and explainable approaches

dc.contributor.authorDuranay, Fatma Murat
dc.contributor.authorMurat, Ender
dc.contributor.authorKatar, Oguzhan
dc.contributor.authorDemir, Yakup
dc.contributor.authorTan, Ru-San
dc.contributor.authorYildirim, Ozal
dc.contributor.authorAcharya, U. Rajendra
dc.date.accessioned2026-08-12T17:42:39Z
dc.date.issued2025
dc.departmentFırat Üniversitesi
dc.description.abstractThe electrocardiogram(ECG) signals are usually converted to spectrogram images for analysis, but this approach has significant limitations. Firstly, it loses about time information, and secondly, it lacks resolution. In our research, we introduce an approach to directly convert ECG signals into PNG format and systematically sequentially incorporate each lead data. This method offers a precise depiction by maintaining the intricate temporal and spatial attributes of the signals through the use of Vision Transformer (ViT) models. The study evaluated the arrhythmia detection capabilities of four ViT models (ViT-B/224, ViT-L/224, ViT-B/384, ViT-L/ 384) for classifying ECG images. Six different Class Activation Mapping (CAM) techniques (ScoreCAM, Eigen-CAM, EigenGradCAM, GradCAM++, XGradCAM and LayerCAM) were employed to enhance model interpretability. Our best-performing model, ViT-B/384, achieved 96.79% accuracy and an F1-score of 96.78%, outperforming recent state-of-the-art CNN-based approaches for arrhythmia detection, such as DenseNet (F1: 98.9%, binary tasks) and ResNet-based models (Acc: 95.8%) in multi-class scenarios, while providing improved interpretability. Comparative analysis shows that our method improves multi-class arrhythmia classification accuracy by up to 1-2% over prior ViT or CNN-based methods on similar datasets. These results demonstrate that integrating high-resolution ECG image transformation with ViT models enhances diagnostic precision and model transparency, representing a significant step toward trustworthy AI-based medical diagnostic tools.
dc.identifier.doi10.1016/j.knosys.2025.114889
dc.identifier.issn0950-7051
dc.identifier.issn1872-7409
dc.identifier.orcid0000-0002-5628-3543
dc.identifier.orcid0000-0002-0147-5476
dc.identifier.orcid0000-0001-6881-9117
dc.identifier.orcid0000-0003-2086-6517
dc.identifier.scopus2-s2.0-105021477517
dc.identifier.scopusqualityQ1
dc.identifier.urihttps://doi.org/10.1016/j.knosys.2025.114889
dc.identifier.urihttps://hdl.handle.net/11508/59829
dc.identifier.volume331
dc.identifier.wosWOS:001620353700011
dc.identifier.wosqualityQ1
dc.indekslendigikaynakWeb of Science
dc.indekslendigikaynakScopus
dc.language.isoen
dc.publisherElsevier
dc.relation.ispartofKnowledge-Based Systems
dc.relation.publicationcategoryMakale - Uluslararası Hakemli Dergi - Kurum Öğretim Elemanı
dc.rightsinfo:eu-repo/semantics/closedAccess
dc.snmzKA_WoS_20260511
dc.subjectECG classification
dc.subjectVision transformer (ViT)
dc.subjectExplainable AI (XAI)
dc.subjectDeep learning in cardiology
dc.titleArrhythmia detection in multi-channel ECG images: vision transformer and explainable approaches
dc.typeArticle

Dosyalar