spot_img
HomeResearch & DevelopmentDetecting Arrhythmia with Enhanced CNN-LSTM and H-Infinity Filters

Detecting Arrhythmia with Enhanced CNN-LSTM and H-Infinity Filters

TLDR: A new deep learning model, CNN-H-Infinity-LSTM, is proposed for highly accurate arrhythmia detection from heart sound recordings. It uses an H-Infinity filter to enhance robustness against noise and variability, combined with specialized training methods (Penalty Weighted Loss and Stochastic Adaptive Probe Thresholding) to handle class imbalance. Tested on the PhysioNet CinC Challenge 2016 dataset, it achieved 99.42% accuracy and 98.85% F1-score, outperforming previous benchmarks.

Heart arrhythmias, or irregular heartbeats, are a major global health concern, contributing to millions of deaths annually. Early and accurate detection of these conditions is crucial for preventing severe complications like strokes, heart failure, and cardiac arrest. While traditional manual diagnosis by clinicians remains the standard, it can be subjective and time-consuming. In recent years, deep learning has emerged as a powerful tool to automate this process, offering the potential for improved accuracy and efficiency.

However, applying deep learning models to real-world biomedical data, such as heart sound recordings, presents significant challenges. These datasets are often small, noisy, and suffer from pronounced class imbalance—meaning there are far more recordings of healthy hearts than arrhythmic ones. Existing models frequently struggle to generalize well under these conditions.

A Novel Approach to Arrhythmia Detection

Researchers have introduced a new deep learning architecture called CNN-H-Infinity-LSTM, designed to overcome these limitations and accurately identify arrhythmic heart signals from heart sound recordings. This innovative model combines the strengths of Convolutional Neural Networks (CNNs) for spatial feature extraction and Long Short-Term Memory (LSTM) networks for capturing temporal patterns, with a unique enhancement inspired by the H-Infinity filter from control theory.

The H-Infinity filter is known for its ability to minimize worst-case estimation errors, even when dealing with unknown or non-Gaussian noise. In the CNN-H-Infinity-LSTM model, this filter concept is integrated into the LSTM unit, specifically replacing the traditional ‘forget gate’. This modification introduces trainable parameters that allow the model to dynamically control how much past memory it retains versus new information it incorporates. This adaptive memory mechanism significantly enhances the model’s robustness and generalization capabilities, particularly when faced with noisy and variable datasets common in medical applications.

Processing Heart Sounds for AI Analysis

Before feeding the heart sound recordings into the CNN-H-Infinity-LSTM model, a sophisticated pre-processing pipeline is employed. This dual-stage process first applies a Discrete Wavelet Transform to extract multi-scale time-frequency features, followed by an Infinite Impulse Response (IIR) filter to smooth the signals and suppress high-frequency noise. This ensures that the model receives a clean and rhythmically accurate input. The processed audio waveforms are then converted into Mel spectrograms, which are compact, perceptually relevant visual representations of the audio signal. These spectrograms are ideal for CNN-based image processing models, as they reduce dimensionality and make the models more robust to background noise.

Optimized Training for Imbalanced Data

To further enhance performance, especially given the class imbalance in heart sound datasets, two novel training methodologies were introduced:

  • Penalty Weighted Loss (PWL): This custom loss function dynamically adjusts the penalty for misclassifications, giving more weight to false negatives (missing an arrhythmia) and false positives (incorrectly identifying an arrhythmia). This compels the model to focus more on the minority class errors, which are critical in clinical diagnosis.
  • Stochastic Adaptive Probe Thresholding (SAPT): Instead of using a fixed classification threshold (e.g., 0.5), SAPT dynamically learns an optimal decision threshold during training. This adaptive approach helps maximize task-specific metrics like the F1-score, ensuring better sensitivity and recall for the minority class.

Also Read:

Outstanding Performance

The CNN-H-Infinity-LSTM model, trained with PWL and SAPT, was rigorously evaluated on the PhysioNet CinC Challenge 2016 dataset, a public benchmark of heart audio recordings. The results demonstrated remarkable performance, with the proposed model achieving a test accuracy of 99.42% and an F1 score of 98.85%. These figures significantly outperform existing benchmarks, including other audio-specific models, vision models like ResNet-50, and previous CNN-LSTM architectures.

This breakthrough in arrhythmia detection offers a robust and highly accurate solution that can be deployed in real-time on mobile or edge devices, paving the way for scalable and low-cost cardiac screening. The full research paper can be accessed here.

Meera Iyer
Meera Iyerhttps://blogs.edgentiq.com
Meera Iyer is an AI news editor who blends journalistic rigor with storytelling elegance. Formerly a content strategist in a leading tech firm, Meera now tracks the pulse of India's Generative AI scene, from policy updates to academic breakthroughs. She's particularly focused on bringing nuanced, balanced perspectives to the fast-evolving world of AI-powered tools and media. You can reach her out at: [email protected]

- Advertisement -

spot_img

Gen AI News and Updates

spot_img

- Advertisement -