XAI-ECGNet: an explainable hybrid CNN-BiLSTM framework for multi-label cardiac diagnosis classification from 12-lead ECG signals using the PTB-XL dataset
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.
Related
- An explainable hybrid CNN-transformer framework for multi-representation leukaemia classification
- An Explainable Disease-Aware Intelligent Histopathological Representation Learning Framework for Generalizable Breast Cancer Classification
- An explainable two stage framework for spatial temporal traffic accident prediction and injury severity classification
- An integrated explainable machine learning framework for prediction explanation and audit in high stakes binary classification
- CERVEX: A Foundation-Model Framework With Built-In Explainable AI for Automated Cervical Cytology Classification From Pap Smear Images
BibTeX
@article{metre2026xaiecgnet,
title = {{XAI-ECGNet: an explainable hybrid CNN-BiLSTM framework for multi-label cardiac diagnosis classification from 12-lead ECG signals using the PTB-XL dataset}},
author = {Prakash B Metre and Vinay K and Deepa B G and Gauri Kalnoor},
journal = {Scientific Reports},
year = {2026},
month = oct,
doi = {10.1038/s41598-026-76799-w},
url = {https://www.nature.com/articles/s41598-026-76799-w},
note = {CC BY 4.0},
}
RIS
TY - JOUR
TI - XAI-ECGNet: an explainable hybrid CNN-BiLSTM framework for multi-label cardiac diagnosis classification from 12-lead ECG signals using the PTB-XL dataset
AU - Prakash B Metre
AU - Vinay K
AU - Deepa B G
AU - Gauri Kalnoor
PY - 2026
DA - 2026/10/31
JO - Scientific Reports
DO - 10.1038/s41598-026-76799-w
UR - https://www.nature.com/articles/s41598-026-76799-w
AB - 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.
SN - 2045-2322
ER -