A swin transformer with cross-task attention and gating for cardiac murmur detection and grading.
Aihui Han, Hong Tang, Miao Wang, Jinlong Long, Qianhui Zhao, Xiaoling Liang, Yan Chen
School of Information Engineering, Dalian Ocean University, Dalian, 116023, Liaoning, China. · School of Biomedical Engineering, Dalian University of Technology, Dalian, 116024, China.
Key points
From the paper's conclusion- An improved Swin Transformer, termed ST-CAG (Swin Transformer with Cross-Task Attention and Gating), was proposed for simultaneous murmur detection and three-class severity grading.
Abstract
Cardiac murmur detection and severity grading are critical for early cardiovascular screening; however, existing studies often address these tasks separately and lack sufficient post-hoc explainability. This study aimed to develop a deep learning framework with post-hoc explainability for joint murmur detection and severity grading from phonocardiogram recordings. Heart sound recordings from the CirCor DigiScope dataset were preprocessed using Butterworth band-pass filtering, normalization, and sliding-window segmentation, and transformed into CWT-based time-frequency representations. An improved Swin Transformer, termed ST-CAG (Swin Transformer with Cross-Task Attention and Gating), was proposed for simultaneous murmur detection and three-class severity grading. The framework integrates a spatial attention module for enhancing murmur-related features, a Cross-Task Attention module for information exchange between tasks, and a Grade Gate mechanism for improving severity prediction consistency. Post-hoc explainability was investigated using spatial attention heatmap visualization. ST-CAG achieved accuracies of 98.99% and 95.00% with macro-averaged F1-scores of 94.28% and 94.07% for murmur detection and severity grading, respectively, on the independent test set. Ablation studies demonstrated the contribution of the proposed modules, and attention visualization highlighted discriminative time-frequency regions associated with murmur classification. ST-CAG provides an accurate framework with post-hoc explainability for joint cardiac murmur detection and severity grading. The proposed multitask design and visualization strategy enhance model explainability and demonstrate potential for intelligent auscultation and computer-aided cardiovascular screening.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Explainable attention-based deep learning for classification and interpretation of heart murmurs using phonocardiogramsScientific Reports · 2025
- Towards Automatic Heart Murmur Characterization from Multi-spot PhonocardiogramsarXiv · 2026
- Cross-Dataset Generalization in Phonocardiogram Murmur Classification: A Benchmark Study of Domain-Conditional Performance and the Role of Multi-Representation Fusion.Journal of clinical medicine · 2026
- Advancing cardiovascular screening: deep learning-based heart-sound classification using SMOTE and temporal modelingScientific Reports · 2026
- HM-Swin: Hierarchical Multiscale Swin Transformer Network with Attention Fusion for Heart Sound Classification.Bioengineering (Basel, Switzerland) · 2026
- The Vote Hides the Failure: Aggregation Choice and Noise Robustness in Heart Murmur DetectionarXiv · 2026