A Markov-Switching Model Approach to Heart Sound Segmentation and Classification

Fuad Noman, Sh-Hussain Salleh, Chee-Ming Ting, S. Balqis Samdin, Hernando Ombao, Hadri Hussain · DOI

TL;DR

This paper presents a robust framework for heart sound analysis using Markov-Switching Autoregressive (MSAR) models to segment signals into fundamental components and Continuous Density HMMs for classification. By modeling raw signals directly in a state-space form, the approach significantly improves segmentation accuracy in noisy clinical environments and effectively identifies pathological heart sounds, even when signals are partially corrupted by noise.

What Problem Does This Paper Address?

Cardiac auscultation—listening to the heart—is a cornerstone of medical diagnosis, but it is inherently subjective. While Phonocardiograms (PCG) provide a digital record of these sounds, automating their analysis is notoriously difficult.

The primary challenge lies in the nature of the signal: heart sounds are non-stationary, non-linear, and often buried under "in-band" noise (like breathing or ambient room noise) that overlaps with the heart's own frequency range. Traditional Hidden Markov Models (HMMs) often struggle because they rely on a single layer of discrete states, which fails to capture the complex, continuous underlying dynamics of the heart's mechanical action. This paper aims to bridge that gap by providing a more sophisticated probabilistic framework for both segmenting the heart cycle (S1, Systole, S2, Diastole) and classifying the resulting beats as healthy or pathological.

Methods

The authors introduce a unified framework based on Markov-Switching Autoregressive (MSAR) models.

Segmentation

Instead of relying on complex feature engineering, the MSAR approach models the raw heart sound signal directly. It assumes the heart sound is a collection of stationary Autoregressive (AR) processes that switch between four states (S1, Systole, S2, Diastole) according to a hidden Markov chain.

To estimate these states, the authors formulated the MSAR into a Switching Linear-Gaussian State-Space Model (SSM). This allows the system to track two things simultaneously:

  1. Continuous hidden dynamics ($x_t$): The actual "clean" heart sound.
  2. Discrete regime switching ($S_t$): The current phase of the heart cycle.

They evaluated three inference schemes:

  • Switching Kalman Filter (SKF): A forward-only recursion.
  • Switching Kalman Smoother (SKS): A forward-backward approach that refines estimates using the entire recording.
  • SKF-Viterbi: A fusion of the SKF with a duration-dependent Viterbi algorithm. This is a key innovation that incorporates physiological constraints (e.g., a systole cannot be infinitely short or long), preventing the model from switching states too rapidly.
Figure 1: The proposed MSAR-based framework for heart sound segmentation.

Classification

Once segmented, the system extracts Mel-frequency cepstral coefficients (MFCCs)—features commonly used in speech recognition—from each beat. These features are fed into a Continuous Density HMM (CD-HMM) with 16 Gaussian mixtures per state to classify the beats into three categories: Normal, Abnormal, or "X-Factor" (unclassifiable/noisy).

Datasets

The study utilized the PhysioNet/Computing in Cardiology (CinC) Challenge 2016 database. This is a massive, heterogeneous dataset containing 3,153 heart sound recordings (over 80,000 beats) collected from both clinical and non-clinical environments across six different research groups. This diversity makes it a much more rigorous benchmark than the small, single-source datasets used in many previous studies.

Key Insights and Ideas

  • Physiological Constraints Matter: The "aha moment" in segmentation was the integration of duration probabilities. By telling the model how long a heart sound should last, the authors drastically reduced "jittery" state transitions, leading to a massive performance boost.
  • Direct Signal Modeling: By using MSAR to model the raw signal, the researchers bypassed the need for a preliminary feature extraction stage for segmentation, which often discards useful information in noisy signals.
  • Embracing the "X-Factor": In real-world clinics, some signals are just too noisy to read. By explicitly training the model to recognize an "unsure" class (X-Factor), the system becomes more reliable and reduces the rate of false alarms for abnormal heart sounds.
Figure 2: Dynamic clustering of heart sound into four fundamental components.

Key Results

  • Segmentation Breakthrough: The fusion of SKF and the duration-dependent Viterbi algorithm (SKF-Viterbi) was the clear winner, improving segmentation accuracy from 71% to 84.2%.
  • High-Accuracy Classification:
    • For abnormal beat detection without the X-Factor class, the model achieved a gross F1 score of 90.19.
  • When including the difficult X-Factor class, it maintained a respectable F1 score of 82.7.
  • Generalization: The model showed consistent performance across the diverse sub-datasets within PhysioNet, suggesting it is robust enough for varied clinical hardware and environments.

Limitations and Future Work

While the MSAR approach is powerful, the authors note it currently operates on a univariate (single-channel) heart sound sequence. Future work could extend this to a multivariate case, where the state-space model directly handles multi-dimensional feature vectors like MFCCs during the segmentation phase itself. Additionally, while the model handles noise better than standard HMMs, extremely low signal-to-noise ratios still present a challenge for perfect localization of heart sound boundaries.

Summary updated

BibTeX
@article{noman2018markov,
  author = {Fuad Noman and Sh-Hussain Salleh and Chee-Ming Ting and S. Balqis Samdin and Hernando Ombao and Hadri Hussain},
  title = {{A Markov-Switching Model Approach to Heart Sound Segmentation and Classification}},
  journal = {IEEE JBHI},
  year = {2018},
  doi = {10.1109/jbhi.2019.2925036},
}
Figure