Cross-Database Evaluation of Class-Imbalance Mitigation Strategies for Normal/Abnormal Heart-Sound Classification
Executive Summary
This study systematically evaluated two common class-imbalance mitigation strategies—inverse-frequency class-weighted loss and weighted random oversampling—against a standard baseline for automated classification of normal versus abnormal phonocardiogram (PCG) recordings using ResNet-18 on Mel-spectrograms from the PhysioNet/CinC 2016 dataset. While all three approaches achieved high accuracy (0.912–0.928) under conventional pooled random splits, none generalized to unseen recording sources in a source-held-out (leave-one-database-out) protocol, with performance dropping to or below the majority-class baseline (accuracy 0.19–0.67). These findings highlight that strong within-distribution results may be driven by data leakage and source-specific information, underscoring the necessity of source- or subject-disjoint evaluation for clinically meaningful heart-sound classification.
Answer Machine Insights
Q: Do class-imbalance mitigation strategies improve generalization to new recording sources?
No, neither class-weighted loss nor oversampling led to reliable improvements in cross-source generalization compared to the baseline.
Under source-held-out evaluation, performance dropped to or below the majority-class baseline for every held-out source (accuracy 0.19–0.67), and no method reliably improved cross-source performance.
Q: How does model performance differ between random splits and source-held-out evaluation?
Performance is substantially higher with random splits but drops dramatically with source-held-out evaluation, indicating overestimation of generalizability in standard practice.
Mean accuracy decreased from 0.912–0.928 under the pooled random split to 0.191–0.667 under source-held-out evaluation, and no model exceeded the majority-class baseline in any source-held-out fold.
Q: What is the main implication for future heart-sound classification studies?
Studies should use source-held-out or subject-disjoint evaluation to avoid misleadingly optimistic performance estimates.
These findings... highlight the importance of source-held-out or subject-disjoint evaluation when reporting heart-sound classification performance.
Key Results
Within-distribution (random split) accuracy for all models was high: 0.912–0.928 (95% CI 0.914–0.940).
Source-held-out (cross-database) accuracy dropped to 0.19–0.67, never exceeding the majority-class baseline.
Visual Evidence
![Figure 1. Representative Mel-spectrogram model inputs from the PhysioNet/CinC 2016 dataset (Normal recording a0007 and Abnormal recording a0001, both from database training-a). Each panel shows a single 4-second recording after preprocessing (2,000 Hz sampling; 64 Mel bands; maximum frequency 1,000 Hz; per-recording min–max normalization to [0, 1]), i.e., the representation supplied to the ResNet-18 prior to three-channel replication, resizing to 224 × 224, and ImageNet normalization. Color denotes normalized spectral amplitude (0 = per-recording minimum, 1 = per-recording maximum). The Normal recording shows regularly spaced heart-sound bursts, whereas the Abnormal recording shows less distinct periodicity and more diffuse spectral energy.](/science-hub/images/10.70251_hyjr2348.45917926/10.70251_hyjr2348.45917926_p4_i1.webp)
Figure 1. Representative Mel-spectrogram model inputs from the PhysioNet/CinC 2016 dataset (Normal recording a0007 and Abnormal recording a0001, both from database training-a). Each panel shows a single 4-second recording after preprocessing (2,000 Hz sampling; 64 Mel bands; maximum frequency 1,000 Hz; per-recording min–max normalization to [0, 1]), i.e., the representation supplied to the ResNet-18 prior to three-channel replication, resizing to 224 × 224, and ImageNet normalization. Color denotes normalized spectral amplitude (0 = per-recording minimum, 1 = per-recording maximum). The Normal recording shows regularly spaced heart-sound bursts, whereas the Abnormal recording shows less distinct periodicity and more diffuse spectral energy.
Clinical Snapshot
Evidence Rating
Relevance
high Priority