XAI-ECGNet: an explainable hybrid CNN-BiLSTM framework for multi-label cardiac diagnosis classification from 12-lead ECG signals using the PTB-XL dataset
Prakash B Metre, Vinay K, Deepa B G, Gauri Kalnoor
Key points
From the paper's conclusion- We also report quantitative faithfulness evaluation, SHAP background-sample-size justification, and zero-shot cross-dataset validation on CPSC 2018, demonstrating genuine generalisation for NORM and CD, and interpretable label-taxonomy mismatch for STTC.
Abstract
Cardiovascular disorders cause approximately 17.9 million deaths annually, and the 12-lead electrocardiogram remains the primary non-invasive diagnostic tool, yet interpretable deep-learning ECG classifiers remain limited, restricting clinical adoption. We present XAI-ECGNet, which is based on 1D residual CNNs, squeeze-and-excitation (SE) channel attention on learned, lead-derived feature channels, and bidirectional LSTM (BiLSTM) temporal modelling. On PTB-XL (21,799 ECGs, 18,885 patients), XAI-ECGNet outperforms all of the top performing baselines in terms of macro-AUROC, which is 0.9337, within the range of the baselines’ bootstrap confidence intervals, and four of five diagnostic superclasses have AUROC above 0.90. Ablation results indicate that the full model is within five-seed variability (σ = 0.0023) of the CNN-only backbone (0.9333); per-class analysis reveals that SE attention is crucial for BiLSTM to offer benefit, as it recovers and surpasses CNN-only performance on four out of five classes after BiLSTM alone fails to do so. Three post-hoc methods (Grad-CAM, SHAP, Integrated Gradients) show the model learns clinically consistent representations without explicit clinical priors. We also report quantitative faithfulness evaluation, SHAP background-sample-size justification, and zero-shot cross-dataset validation on CPSC 2018, demonstrating genuine generalisation for NORM and CD, and interpretable label-taxonomy mismatch for STTC. XAI-ECGNet combines accurate multi-label ECG classification with a rigorously and quantitatively assessed explainability framework, but prospective cardiologist validation is required before any claim to clinical use can be made.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- MedXpert‐AI: Context‐Aware and Explainable Deep Learning Framework for Intelligent ECG InterpretationComplexity · 2026
- AI-Assisted Multilabel Diagnosis of 12-Lead Electrocardiograms Using an Interpretable Stacked Deep Learning Model with External Validation.Diagnostics (Basel, Switzerland) · 2026
- ECG-XPLAIM: eXPlainable Locally-adaptive Artificial Intelligence Model for arrhythmia detection from large-scale electrocardiogram dataFrontiers in Cardiovascular Medicine · 2025
- MAF-Net: Multimodal cross-attention-based fusion network for cardiovascular disease classificationPLoS ONE · 2026
- A joint CNN-Bi-LSTM-transformer architecture with SHAP explanations for multi-label arrhythmia detection from 12-lead ECGsScientific Reports · 2026
- A hybrid learning framework for automated multiclass electrocardiogram classification with SimCardioNetScientific Reports · 2026