GAF-GradCAM: Guided dynamic weighted fusion of temporal and frequency GAF 2D matrices for ECG-based arrhythmia detection using deep learning
This study introduces an innovative approach for arrhythmia classification that employs a Grad-CAM-guided dynamic weighted fusion of temporal and frequency features extracted from electrocardiogram (ECG) signals. By transforming ECG signals into two-dimensional Gramian Angular Field (GAF) matrices, the proposed method effectively captures temporal dynamics via Gramian Angular Summation Fields (GASF) and frequency dependencies from features extracted using Continuous Wavelet Transform (CWT) and refined through Principal Component Analysis (PCA). The Grad-CAM-guided dynamic fusion adaptively assigns importance to these complementary feature types based on their relevance for each input, enhancing both classification accuracy and interpretability. Optimizing this fusion process fine-tunes the balance between temporal and frequency information, thus focusing the model on the most critical ECG features. As a result, training accuracy reached 99.68% and validation accuracy 98.78%, alongside a substantial reduction in loss, underscoring the efficacy of Grad-CAM-guided fusion in integrating essential ECG features and advancing arrhythmia detection accuracy. Building on this fusion framework, this study further proposes a Hybrid Parallel-Residual Architecture specifically tailored for arrhythmia detection, integrating parallel and residual connections with Bidirectional Long Short-Term Memory (Bi-LSTM). This architecture ensures robust feature extraction and precise classification, achieving up to 98.75% accuracy, 99.14% sensitivity, and a 98.97% F1 score across multiple ECG leads, thereby surpassing traditional methods. • Grad-CAM-based dynamic fusion of ECG signals, boosting accuracy and clarity. • Parallel-Residual architecture with BiLSTM for robust arrhythmia detection. • Achieves 99% accuracy and sensitivity, surpassing traditional methods.
Authors
- Khalid Moussaid (ORCID: https://orcid.org/0000-0002-7542-9640)
- Noreddine Abghour (ORCID: https://orcid.org/0000-0002-8429-6712)
- Dounia Bentaleb (ORCID: https://orcid.org/0000-0002-4084-8108)
- Zakaria Khatar (ORCID: https://orcid.org/0000-0002-3466-9613)
Institutions
- Université Hassan II Mohammedia (MA)
- University of Hassan II Casablanca (MA)
Publication Details
- Journal
- Scientific African
- Published
- 2025-04-12
- DOI
- https://doi.org/10.1016/j.sciaf.2025.e02687
- Citations
- 3
- Primary Topic
- ECG Monitoring and Analysis
- Type
- article
- Field-Weighted Citation Impact
- 4.16