Abstract
This paper explores the efficacy of Mel Frequency Cepstral Coefficients (MFCCs) in detecting abnormal heart sounds using two classification strategies: a single classifier and an ensemble classifier approach. Heart sounds were first pre-processed to remove noise and then segmented into S1, systole, S2, and diastole intervals, with thirteen MFCCs estimated from each segment, yielding 52 MFCCs per beat. For the single classifier strategy, the MFCCs from nine consecutive beats were averaged to classify heart sounds by a single classifier (SVM, kNN, or DT). Conversely, the ensemble classifier strategy employed nine classifiers to individually assess beats as normal or abnormal, with the overall classification based on a majority vote. Both methods were tested on a publicly available phonocardiogram database. The heart sound classification accuracy reached 93.59% for the SVM ensemble, demonstrating that the ensemble strategy improved the accuracies of the DT and the SVM by 4.89% and 1.64%, respectively. These results establish MFCCs and ensemble voting as highly effective for non-invasive cardiovascular diagnosis.
Introduction
Detecting cardiovascular disease through phonocardiograms (PCGs)—the digital recording of heart sounds—is a non-invasive and cost-effective diagnostic tool. However, PCG signals are notoriously difficult to analyze because they are non-stationary, prone to environmental noise, and vary significantly between individuals. The challenge lies in feature engineering: capturing the complex spectral textures of the heart that signal abnormalities like murmurs. Furthermore, traditional systems often classify a patient by averaging data across several heartbeats, a process that can "wash out" the very irregularities (like transient clicks) that indicate disease.
Methodology
The proposed pipeline consists of four distinct stages: preprocessing, segmentation, feature extraction, and classification.
Preprocessing and Segmentation
Signals are downsampled to 1000 Hz and passed through a band-pass filter (25–400 Hz) to eliminate low-frequency rumble and high-frequency artifacts. Using a state-of-the-art Hidden Semi-Markov Model (HSMM), each heartbeat is divided into four functional windows: S1 (first heart sound), systole, S2 (second heart sound), and diastole.
Feature Extraction
The authors utilized Mel Frequency Cepstral Coefficients (MFCCs), a technique borrowed from speech recognition. MFCCs represent the short-term power spectrum of a sound based on the Mel scale, which mimics human frequency perception. For each of the four segments, 13 MFCCs were extracted, totaling 52 features per beat.
Classification Strategies
The core contribution of this research is the comparison of two distinct classification strategies:
- Single-Classifier Strategy: MFCCs from nine consecutive beats are averaged into one feature vector and fed into a single model (SVM, kNN, or Decision Tree).
- Ensemble-Classifier Strategy: Nine separate versions of the same classifier are trained. Each model evaluates exactly one beat. The final diagnosis for the PCG is determined by a "majority vote" among the nine models.
Experimental Results
The study utilized the PhysioNET CinC 2016 PCG database, filtering for signals with at least nine clear beats. The final evaluation set consisted of 218 abnormal and 218 normal signals.
The ensemble strategy provided a clear performance boost across different machine learning architectures:
- Support Vector Machine (SVM): Accuracy improved from 91.95% (Single) to 93.59% (Ensemble).
- Decision Tree (DT): Saw the most dramatic improvement, jumping from 87.33% to 92.22%.
- k-Nearest Neighbors (kNN): Remained stable at approximately 91.8%.
The SVM ensemble also achieved a high sensitivity of 95.4%, indicating exceptional performance in correctly identifying patients with heart disease.
Discussion and Conclusion
The most striking insight is that the ensemble strategy consistently outperformed the single-classifier strategy. Averaging features across beats is a "lossy" operation that removes individual beat differences—nuances that are often the "smoking gun" for pathology. Because heart sounds are non-stationary, perfectly aligning segments from nine different beats for a mathematical average is difficult; the ensemble approach sidesteps this by treating each beat as a discrete event.
While MFCCs provide a compact and highly discriminating spectral representation, they primarily capture frequency-based properties. Future work may benefit from combining MFCCs with temporal features and expanding the model to multi-class classification to distinguish between specific heart conditions.
Summary updated