Abstract
The work presented here applies deep learning to the task of automated cardiac auscultation, i.e. recognizing abnormalities in heart sounds. We describe an automated heart sound classification algorithm that combines the use of time-frequency heat map representations with a deep convolutional neural network (CNN). Given the cost-sensitive nature of misclassification, our CNN architecture is trained using a modified loss function that directly optimizes the trade-off between sensitivity and specificity. We evaluated our algorithm at the 2016 PhysioNet Computing in Cardiology challenge where the objective was to accurately classify normal and abnormal heart sounds from single, short, potentially noisy recordings. Our entry to the challenge achieved a final specificity of 0.95, sensitivity of 0.73 and overall score of 0.84. We achieved the greatest specificity score out of all challenge entries and, using just a single CNN, our algorithm differed in overall score by only 0.02 compared to the top place finisher, which used an ensemble approach.
Introduction
Cardiac auscultation—the act of listening to heart sounds with a stethoscope—is a fundamental diagnostic tool, yet it remains highly subjective and requires years of clinical experience. In many regions, limited access to expert clinicians makes automated heart sound analysis a vital goal for early screening of heart valve and coronary artery diseases.
The primary challenge in automation is the nature of the data: Phonocardiogram (PCG) recordings are often short, non-stationary, and riddled with noise such as breathing or ambient sounds. Previous attempts at automation relied on "hand-crafted" features that often failed to capture the complex patterns of a heartbeat. This research seeks to replace manual feature engineering with a deep learning approach that learns directly from the data.
Methodology
The proposed system utilizes a three-stage pipeline to process and classify heart sounds.
Segmentation and Preprocessing
First, the algorithm identifies the fundamental components of the heartbeat (the $S_1$ and $S_2$ sounds) using a logistic regression hidden semi-Markov model (HSMM). This ensures the neural network processes standardized 3-second segments, providing a consistent temporal frame for analysis.
Feature Extraction via Time-Frequency Heat Maps
The 1D audio signal is converted into a 2D time-frequency representation using Mel-frequency cepstral coefficients (MFCCs). This transformation essentially turns a sound wave into a "heat map" or image that represents how energy is distributed across different pitches over time. This allows the model to treat heart sound classification as a computer vision task.
CNN Architecture
A Deep Convolutional Neural Network (CNN) processes these heat maps to extract diagnostic features. As shown in Figure 5, the architecture consists of two convolutional layers for feature extraction, each followed by a max-pooling layer, and two fully connected layers leading to the final binary classification output.
Optimization Strategy
Unlike standard networks that use simple cross-entropy loss, this model employs a modified loss function that directly optimizes the trade-off between sensitivity (identifying all sick patients) and specificity (avoiding false alarms). This clinical focus is crucial in medical screening, where the cost of a false negative often outweighs that of a false positive.
Results
The model was evaluated using the 2016 PhysioNet Computing in Cardiology Challenge dataset, which includes 4,430 recordings from 1,072 subjects. The algorithm placed 8th out of 48 teams, achieving the highest specificity of all entries.
| Metric | Score |
|---|---|
| Specificity | 0.9521 |
| Sensitivity | 0.7278 |
| Overall Score | 0.8399 |
Notably, this single-model approach achieved an overall score within 0.02 points of the winning entry, which utilized a more computationally expensive ensemble of multiple models.
Discussion and Future Work
This work demonstrates that a streamlined deep learning architecture can rival complex ensembles in medical diagnostics. By converting 1D heart sounds into 2D heat maps, the researchers leveraged the power of CNNs to detect the signatures of heart murmurs effectively.
Future work will focus on expanding the model's output beyond a binary "normal/abnormal" classification to distinguish between specific pathologies, such as mitral valve prolapse or aortic stenosis. Additionally, incorporating an explicit "signal quality" output could improve clinical utility by prompting users to re-record noisy signals rather than providing an uncertain diagnosis.
Summary updated