Improving Heart Sound Diagnosis with a Combined CNN-LSTM and Dual-Attention Deep Learning Model
Executive Summary
This study presents a deep learning approach for automated heart sound classification using a hybrid CNN-LSTM architecture enhanced with a Dual-Attention mechanism (channel and temporal attention). Heart sound recordings from the PhysioNet/CinC 2016 dataset (N=4,430 from 1,072 patients) were preprocessed with bandpass filtering (20–150 Hz) and converted to spectrograms via Short-Time Fourier Transform. The proposed model achieved an overall accuracy of 93.29%, outperforming CNN-only, LSTM-only, and baseline CNN-LSTM models, with macro-averaged precision, recall, and F1-scores of 92.05%, 90.67%, and 91.35%, respectively. These results demonstrate the model's robustness and potential for real-time, clinically relevant heart sound analysis, supporting early detection and triage of cardiovascular disorders.
Answer Machine Insights
Q: How does the Dual-Attention mechanism improve heart sound classification performance?
The Dual-Attention mechanism combines channel attention (highlighting relevant frequency bands) and temporal attention (focusing on critical time steps), enabling the model to better distinguish between normal, murmur, and extrasystole heart sounds.
Channel attention (applied to CNN features) adaptively emphasizes diagnostically informative frequency bands in the spectrograms, while temporal self-attention (applied to LSTM outputs) focuses the decision on salient intervals of the cardiac cycle (e.g., systolic regions with murmurs or premature beats).
Q: What dataset and sample size were used for model training and evaluation?
The PhysioNet/CinC 2016 dataset was used, comprising 4,430 heart sound recordings from 1,072 patients, with patient-level splits for training, validation, and testing.
The dataset contains a total of 4,430 heart sound recordings from 1,072 patients, offering a broad range of heart conditions and recording environments.
Q: How does the proposed model compare to baseline models?
The CNN–LSTM with Dual-Attention outperformed CNN-only, LSTM-only, and CNN–LSTM baseline models, achieving the highest accuracy and F1-score among all tested variants.
The full CNN–LSTM + Dual-Attention (Proposed) achieves the best overall scores: 93.29% accuracy with 92.05% precision, 90.67% recall, and 91.35% F1, representing gains over the baseline of +2.09 (accuracy), +2.40 (precision), +2.90 (recall), and +2.66 (F1) percentage points.
Q: Is the model suitable for real-time or edge deployment?
Yes, the model's inference time is approximately 0.05 seconds per recording, and quantization techniques were used to enable deployment on edge devices or cloud platforms.
Each heart sound recording was processed in approximately 0.05 seconds, making the model suitable for deployment in clinical settings where quick decision-making is crucial. Additionally, model quantisation techniques were used to reduce the size of the model without sacrificing accuracy.
Key Results
The CNN–LSTM with Dual-Attention model achieved 93.29% overall accuracy, with macro-averaged precision of 92.05%, recall of 90.67%, and F1-score of 91.35%.
Compared to the CNN–LSTM baseline (91.20% accuracy), the Dual-Attention model improved accuracy by +2.09 percentage points and F1-score by +2.66 points.
Visual Evidence
![In this research, the PhysioNet/CinC 2016 dataset [16] was utilized to classify heart sounds into three main categories: normal, murmur, and extrasystole. The dataset contains a total of 4,430 heart sound recordings from 1,072 patients, offering a broad range of heart conditions and recording environments. The recordings in the dataset are initially labeled as Normal,](/science-hub/images/10.14569_ijacsa.2026.0170405/10.14569_ijacsa.2026.0170405_p3_i1.webp)
In this research, the PhysioNet/CinC 2016 dataset [16] was utilized to classify heart sounds into three main categories: normal, murmur, and extrasystole. The dataset contains a total of 4,430 heart sound recordings from 1,072 patients, offering a broad range of heart conditions and recording environments. The recordings in the dataset are initially labeled as Normal,
Clinical Snapshot
Evidence Rating
Relevance
high Priority