STFT-Based Multiclass Heart Sound Classification Using BiLSTM and CNN-BiLSTM Models
Executive Summary
This study presents a reproducible, leakage-free deep learning framework for multiclass phonocardiogram (PCG) classification using Short-Time Fourier Transform (STFT) spectrograms as input features. Two architectures—BiLSTM and a hybrid CNN–BiLSTM—were evaluated on the Yaseen PCG dataset (N=1000, five balanced classes: AS, MR, MS, MVP, Normal), with a strict recording-level split to prevent data leakage. The CNN–BiLSTM model achieved a mean test accuracy of 95.94% ± 0.71% across three runs, outperforming BiLSTM (93.85% ± 1.47%), and demonstrated superior stability and class-wise performance, particularly for challenging pathological classes. The methodology and results support the use of hybrid spatial-temporal models and rigorous evaluation protocols for reliable automated heart sound classification, with implications for digital stethoscope and computer-aided screening applications.
Answer Machine Insights
Q: How did the authors ensure that their reported classification accuracy was not inflated by data leakage?
They performed a strict recording-level split before segmentation and spectrogram generation, ensuring that all segments from a single recording were assigned to only one subset (training, validation, or testing).
"Unlike approaches that may evaluate segmented signals without clearly preserving recording-level separation, this study emphasizes a leakage-free splitting strategy to reduce the risk of overestimated performance and to provide a more reliable assessment of model generalization."
Q: What is the main advantage of the CNN–BiLSTM model over the BiLSTM-only model?
The CNN–BiLSTM model provides higher and more stable classification performance, especially for challenging pathological classes, by combining local time–frequency feature extraction with bidirectional temporal modeling.
"These results show that CNN-BiLSTM provides higher and more stable classification performance for five-class PCG classification, while BiLSTM remains a simpler alternative for lightweight implementation."
Q: What are the limitations of this study regarding clinical translation?
The evaluation was performed on a single public dataset, and external validation on independent datasets is required before clinical deployment.
"However, clinical claims should be made cautiously because the evaluation was performed on a single public dataset. External validation using independent datasets such as PhysioNet/CinC and PASCAL is required before considering the model for clinical decision-support use."
Q: How does this study compare to previous work in the field?
Unlike most prior studies that focused on binary classification and did not always use leakage-free evaluation, this study addresses a more challenging five-class classification task with rigorous, reproducible methodology.
"The comparison shows that previous studies achieved promising results using deep learning and time–frequency or spectrogram-based representations. However, most of them focused on binary normal–abnormal classification or used different datasets and validation strategies. In contrast, the present study addresses a five-class PCG classification task..."
Key Results
CNN–BiLSTM achieved a mean test accuracy of 95.94% ± 0.71% (single run: 95.83%) on five-class PCG classification.
BiLSTM achieved a mean test accuracy of 93.85% ± 1.47% (single run: 92.36%), with perfect classification for the Normal class.
Visual Evidence

Table 1. Dataset preparation and splitting configuration
Clinical Snapshot
Evidence Rating
Relevance
high Priority