Cardio-Dense: Diagnosis of Cardiac Abnormalities Based on Phonocardiogram Using Improved Swin Transformer Through Lightweight Dense Blocks
Executive Summary
This study introduces Cardio-Dense, a hybrid deep learning framework that combines a Swin transformer with lightweight DenseBlocks for multi-class classification of cardiac abnormalities from phonocardiogram (PCG) signals. The methodology involves denoising PCG signals using discrete wavelet transform, transforming them into 2D spectrograms via continuous wavelet transform, and applying a Swin–DenseBlock architecture with multi-scale cross-attention for robust feature extraction and classification across five heart valve disease classes. On a balanced dataset of 1000 PCG recordings, Cardio-Dense achieved up to 0.977 accuracy, 0.975 sensitivity, 0.992 specificity, and 0.978 F1-score, with low computational overhead suitable for real-time inference, demonstrating significant improvements over baseline and state-of-the-art models. The approach offers a non-invasive, efficient, and accurate tool for preliminary signal-level diagnosis of heart valve diseases, potentially reducing reliance on manual PCG analysis in clinical and portable settings.
Answer Machine Insights
Q: How does Cardio-Dense perform compared to baseline and state-of-the-art models?
Cardio-Dense outperformed VGG16, VGG19, DenseNet121, and Swin transformer baselines, as well as recent state-of-the-art methods, in all key metrics including accuracy, sensitivity, specificity, and F1-score.
Our proposed model performs the best and most consistently across all evaluation parameters, with an SE of 0.975, SP of 0.992, F1-score of 0.978, precision of 0.976, ACC of 0.977, and AUC of 0.978. This improvement is due to the successful integration of Swin transformer-based global feature extraction, cross-attention-based feature refining, and DenseBlock-driven local feature learning.
Q: What is the clinical implication of using Cardio-Dense for PCG analysis?
Cardio-Dense provides an economical, non-invasive, and automated method for preliminary identification of multiple heart valve diseases, reducing the need for manual and error-prone PCG analysis.
The findings indicate that the proposed model provides an economical, non-invasive method for preliminary signal-level identification of multi-class heart valve diseases. It benefits clinicians by decreasing the need for arduous and error-prone manual PCG analysis.
Q: How robust is the model to data augmentation and external datasets?
Data augmentation significantly improved generalization (accuracy increased from 0.961 to 0.977, p < 0.01), and external validation on the PhysioNet/CinC 2016 dataset yielded an accuracy of 0.88 and AUC of 0.91, demonstrating robustness to domain shift.
The results show that the proposed Cardio-Dense model achieved an average accuracy of 0.977 ± 0.006 with augmentation, compared to 0.961 ± 0.002 without augmentation... On the external independent dataset PhysioNet/CinC 2016 [41], the suggested model demonstrated good robustness under domain shift, with an accuracy of roughly 0.88 and an AUC of 0.91 utilizing the augmented dataset for training.
Q: What preprocessing steps were critical for model performance?
Wavelet-based denoising and bandpass filtering (15–150 Hz) were essential for noise reduction while preserving diagnostic information, and CWT-based spectrogram transformation enabled effective feature extraction.
In this paper, we preprocessed PCG signals using a combination of wavelet denoising and bandpass filtering. This method successfully lowers noise while preserving important characteristics, preparing the signals for further examination. The continuous wavelet transform-based spectrogram provides a rich time–frequency representation and is used to convert the preprocessed signals into 2D spectrograms.
Key Results
Cardio-Dense achieved 0.977 accuracy, 0.975 sensitivity, 0.992 specificity, and 0.978 F1-score in five-class PCG classification.
The model maintained low computational overhead (4.39 GFLOPs, 8.2 ms/sample), enabling real-time inference.
Visual Evidence

Figure 4. The Cardio-Dense system’s layer-by-layer architecture for classifying cardiovascular disorders.
Clinical Snapshot
Evidence Rating
Relevance
medium Priority