From convolutions to transformers: a comparative analysis of deep learning models for heart sound classification
Executive Summary
This study systematically compares three deep learning architectures—baseline Convolutional Neural Network (CNN), Attention-augmented CNN (Attention-CNN), and Audio Spectrogram Transformer (AST)—for automated classification of heart sound recordings (PCGs) using the PhysioNet/CinC Challenge 2016 dataset. All models were trained and evaluated under a unified preprocessing and 5-fold cross-validation protocol, with Mel-spectrograms as input features. The Attention-CNN achieved the highest performance (AUC = 0.9711, F1 = 0.7679), outperforming both the baseline CNN (AUC = 0.9636) and AST (AUC = 0.9243), demonstrating that channel-wise attention mechanisms enhance discriminative power and robustness in noisy, heterogeneous cardiac data. The findings highlight the practical trade-offs between model complexity, computational requirements, and diagnostic accuracy, with clinical implications for scalable, objective heart sound screening.
Answer Machine Insights
Q: Which model performed best for heart sound classification?
The Attention-CNN model achieved the highest performance, with an AUC of 0.9711 and F1-score of 0.7679.
Among the models being compared, the Attention-CNN performed best in terms of overall results by resulting in the highest mean AUC of 0.9711 and F1-Score of 0.7679.
Q: What was the main advantage of adding channel-wise attention to the CNN?
Channel-wise attention improved feature discrimination and reduced false positives, leading to higher precision and robustness in noisy data.
The use of channel attention resulted in better feature discrimination and fewer false positive predictions.
Q: How did the transformer-based AST model compare to CNN-based models?
The AST model had lower performance (AUC = 0.9243) due to computational constraints and limited training, despite its theoretical ability to model long-range dependencies.
Though transformers are theoretically adequate at capturing time-frequency patterns in an overall manner, the AST in this study was trained for a limited number of epochs due to computational constraints, which likely prevented full convergence of this high-capacity architecture.
Q: What dataset was used and how was validation performed?
The PhysioNet/CinC Challenge 2016 dataset was used, with stratified 5-fold cross-validation at the recording level.
Experiments were performed on the PhysioNet/CinC Challenge 2016 data set ... evaluated using a 5-fold cross-validation protocol ... record-level predictions were obtained by aggregating segment-level probabilities for each recording.
Key Results
Attention-CNN achieved an AUC of 0.9711 and F1-score of 0.7679, outperforming baseline CNN (AUC = 0.9636, F1 = 0.7362) and AST (AUC = 0.9243, F1 = 0.6557).
Channel-wise attention reduced false positives and improved precision from 0.7483 (CNN) to 0.8100 (Attention-CNN).
Visual Evidence
![independent dataset. As a result, the reported findings should be interpreted as evidence of comparative in-dataset perfor- mance rather than as a complete demonstration of cross- device or cross-population generalizability. Evaluation on additional datasets, such as CirCor DigiScope or Yaseen, would provide stronger evidence regarding robustness and external validity [63, 64].](/science-hub/images/10.1007_s44361-026-00036-2/10.1007_s44361-026-00036-2_p22_i1.webp)
independent dataset. As a result, the reported findings should be interpreted as evidence of comparative in-dataset perfor- mance rather than as a complete demonstration of cross- device or cross-population generalizability. Evaluation on additional datasets, such as CirCor DigiScope or Yaseen, would provide stronger evidence regarding robustness and external validity [63, 64].
Clinical Snapshot
Evidence Rating
Relevance
high Priority