Related Experiment Video
Updated: Jun 20, 2026

Real-Time Cardiac Mapping with a Noninvasive Imageless Electrocardiographic Imaging System
Published on: April 11, 2025
Clinically-aligned explainable AI for atrial fibrillation detection: A U-Net inspired multi-lead ECG analysis
Amirsajjad Taleban1, Rodney Sparapani2, Sharone Zlochiver3
1Health Informatics Program, Zilber School of Public Health, University of Wisconsin-Milwaukee, Milwaukee, WI, USA.
Background And Objective:
Deep learning offers high diagnostic accuracy but often lacks interpretability, hindering clinical adoption for Electrocardiogram (ECG) analysis. This study aims to develop a clinically interpretable, U-Net-inspired deep learning framework for Atrial Fibrillation (AFib) detection that elucidates model decision-making through morphological and rhythmic feature extraction.
Methods:
We utilized a U-Net-inspired encoder-decoder architecture to analyze 12-lead ECGs as spatially structured inputs, capturing inter-lead relationships using the PTB-XL database. Model interpretability was assessed using layer-wise Gradient-weighted Class Activation Mapping (Grad-CAM) to visualize hierarchical feature focus. Additionally, we implemented RR interval variability assessment with heart rate stratification and group-specific threshold optimization to account for physiological variations.
Results:
On PTB-XL-Improved labels, the model achieved an Area Under the Curve (AUC) of 99.15%, Sensitivity of 97.81%, Specificity of 95.63%, and Precision (PPV) of 95.72%. Performance on the original PTB-XL annotations reached an AUC of 99.78%. Grad-CAM analysis confirmed hierarchical feature extraction, correctly localizing QRS complexes in over 97.5% of cases and P-wave and rhythm irregularities in over 93.1% of cases. Independent RR-interval variability analysis achieved AUCs of 95.5% (slow heart rate), 93.2% (normal), and 91.3% (fast) across three clinically stratified heart rate groups.
Conclusions:
This framework successfully combines high diagnostic performance with transparent, clinically aligned visual explanations. The principal contribution is not accuracy alone, but the demonstration that layer-wise explanations can be aligned with the clinical ECG reading sequence, from QRS localization to P-wave morphology. External validation remains necessary before broader clinical generalization can be claimed.
Related Concept Videos
Electrocardiogram Fundamentals
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 to...
ECG Interpretation of Arrhythmias II: Atrial, Junctional and Ventricular Arrhythmias