An explainable deep learning framework for trustworthy arrhythmia detection from ECG signals

Md Alamin Talukder1, Amira Samy Talaat2, Nusrat Jahan Muna3

  • 1Department of Computer Science and Engineering, International University of Business Agriculture and Technology, Dhaka, Bangladesh. alamin.cse@iubat.edu.

Scientific Reports
|November 11, 2025
PubMed

Insights

This study introduces an explainable deep learning framework for accurate cardiac arrhythmia detection from ECG signals. The model achieves high accuracy while providing interpretable insights, enhancing clinical trust in AI diagnostics.

Area of Science:

  • Biomedical Engineering
  • Artificial Intelligence in Medicine
  • Cardiology

Background:

  • Cardiovascular diseases (CVDs) are a major global health concern, with cardiac arrhythmias increasing mortality and morbidity.
  • Accurate detection of arrhythmias from Electrocardiogram (ECG) signals is crucial but challenging due to data complexity.
  • Current Deep Learning (DL) models for ECG analysis lack interpretability and face adoption barriers.

Purpose of the Study:

  • To develop an explainable Deep Learning (DL) framework for accurate and reliable cardiac arrhythmia detection.
  • To enhance the interpretability of DL models in ECG analysis for clinical adoption.
  • To improve the generalization and performance of DL models using advanced data balancing techniques.

Main Methods:

  • Integration of Convolutional Neural Network (CNN) and Dense Neural Network (DNN) architectures.
  • Implementation of a multi-stage pipeline including data preparation, signal preprocessing, and multi-strategy data balancing (ADASYN, SMOTE, SMOTETomek, Random Over-Sampling).
  • Incorporation of Explainable Artificial Intelligence (XAI) methods (SHAP, LIME, Feature Importance Analysis) for model transparency.

Main Results:

  • The Random Over-Sampling combined with CNN (ROS+CNN) model achieved high classification accuracies: 99.74% (MITDB), 99.43% (PTBDB), and 99.98% (NSTDB).
  • The framework demonstrated superior performance on benchmark ECG datasets.
  • XAI components provided actionable insights into the model's decision-making process.

Conclusions:

  • The developed explainable DL framework offers accurate and reliable arrhythmia detection.
  • The integration of XAI fosters clinical trust and facilitates the adoption of AI in cardiovascular diagnostics.
  • This approach paves the way for more impactful AI-driven solutions in cardiology.

Related Concept Videos

Dysrhythmias V: Evaluating Dysrhythmias01:30

Dysrhythmias V: Evaluating Dysrhythmias

Dysrhythmias, also known as arrhythmias, are disturbances in the heart's rhythm that range from benign to life-threatening. A thorough evaluation is crucial for appropriate management and involves a comprehensive medical history, physical examination, and various diagnostic tests.Medical HistorySymptoms: Collect detailed information on palpitations, dizziness, syncope, chest pain, and fatigue. Note their onset, frequency, and triggers.Previous Cardiac Issues: Document any history of heart...
315
Disturbances in Heart Rhythm01:29

Disturbances in Heart Rhythm

Arrhythmia or dysrhythmia refers to an abnormal heart rhythm caused by a defect in the heart's conduction system. It can cause the heart to beat irregularly, too quickly, or too slowly, leading to symptoms like chest pain, shortness of breath, and fainting. Factors such as stress, caffeine, alcohol, nicotine, cocaine, certain drugs, congenital defects, diseases, and electrolyte abnormalities can trigger arrhythmias.
Arrhythmias are categorized by their speed, rhythm, and origin. A slow heart...
2.5K
ECG Interpretation of Arrhythmias II: Atrial, Junctional and Ventricular Arrhythmias01:25

ECG Interpretation of Arrhythmias II: Atrial, Junctional and Ventricular Arrhythmias

Arrhythmia is a condition characterized by an irregular heart rhythm, with ECG changes that differ based on its origin and nature. The types of arrhythmias discussed below include atrial, junctional, and ventricular arrhythmias.Atrial ArrhythmiasPremature Atrial Complexes (PACs): PACs are early atrial beats caused by stress, caffeine, alcohol, electrolyte imbalances, hypoxia, hyperthyroidism, or certain medications (e.g., bronchodilators and decongestants). The ECG shows early P waves with an...
445
Correlation between ECG and Cardiac Cycle01:25

Correlation between ECG and Cardiac Cycle

The electrical signals recorded on an electrocardiogram (ECG) occur before the mechanical processes of contraction and relaxation during the cardiac cycle.
A cardiac action potential originates in the SA node and spreads throughout the atria and the AV node in approximately 0.03 seconds. This results in the P wave in an ECG and triggers atrial contraction. The action potential is then briefly slowed at the AV node, allowing the atria to contract and fill the ventricles with blood before...
11.6K
Mechanism of Cardiac Arrhythmias01:28

Mechanism of Cardiac Arrhythmias

Arrhythmias are irregular heart rhythms occurring when the heart's electrical impulses become abnormal. These disturbances can lead to various symptoms, depending on their severity and the underlying cause. Some common factors contributing to arrhythmias include hypoxia, ischemia, electrolyte imbalances, excessive catecholamine exposure, drug toxicity, and muscle overstretching. Arrhythmias can be classified into two main types based on the rate and site of origin of abnormal heart rhythms.
1.6K
Electrocardiogram Fundamentals01:28

Electrocardiogram Fundamentals

Introduction
An electrocardiogram (ECG) is a diagnostic tool for identifying cardiac conditions such as arrhythmias, conduction abnormalities, and myocardial ischemia.
Definition
An electrocardiogram (ECG) visualizes the heart's electrical activity by tracing the electrical movement associated with each heartbeat on a graph or monitor. As the heart beats, an electrical wave passes through it, correlating with the cardiac cycle events.
Parts of an ECG
An ECG utilizes electrodes on the skin...
1.4K