DeScoD-ECG: Deep Score-Based Diffusion Model for ECG Baseline Wander and Noise Removal

Huayu Li, Gregory Ditzler, Janet Roveda, Ao Li

TL;DR

This paper introduces DeScoD-ECG, a novel deep score-based diffusion model for removing baseline wander and noise from ECG signals. By adapting diffusion models to learn the conditional distribution of clean ECGs given noisy observations, DeScoD-ECG achieves state-of-the-art performance, significantly outperforming existing methods, especially under challenging noise conditions.

What Problem Does This Paper Address?

Electrocardiogram (ECG) signals are crucial for diagnosing cardiovascular diseases. However, these signals are often corrupted by noise, particularly baseline wander, which is caused by factors like respiration, electrode impedance variations, and patient movement during exercise stress tests. This noise significantly degrades the accuracy of signal analysis, increasing diagnostic costs and limiting the flexibility of monitoring. While traditional filtering methods and existing deep learning approaches struggle with severe noise, there's a need for robust techniques that can accurately reconstruct ECG signals even under extreme noise conditions.

Methods

The core innovation is the DeScoD-ECG model, which extends score-based diffusion models to a conditional generative framework specifically for ECG signal restoration. Unlike traditional methods that directly map noisy to clean signals, DeScoD-ECG learns the conditional distribution of clean ECGs given noisy observations.

Here's a breakdown:

  • Diffusion Models: These generative models work by gradually adding noise to data (forward process) and then learning to reverse this process to generate clean data from noise (reverse process).
  • Conditional Diffusion: DeScoD-ECG conditions the reverse diffusion process on the observed noisy ECG signal. This allows the model to iteratively denoise the signal, guided by the actual corrupted input.
  • Score-Based Approach: The model estimates the "score" (gradient of the log probability density) of the data distribution, which is key to guiding the denoising process.
  • Multi-Shot Averaging (Self-Ensemble): To further improve reconstruction quality and stability, the paper employs an averaging strategy where multiple reconstructions from slightly different initializations are combined. This leverages the stochastic nature of diffusion models for a more robust outcome.

Datasets

The paper uses the following datasets for evaluation:

  • QT Database: Used for its ECG records.
  • MIT-BIH Noise Stress Test Database: Provides noise profiles that are added to the ECG records from the QT database to simulate realistic noisy conditions.

The authors note that they use the same test set selections as a previous benchmark (DeepFilter) for fair comparison.

Key Insights and Ideas

  • Diffusion Models Excel at Distribution Approximation: The paper highlights that diffusion models are inherently better at approximating complex data distributions compared to methods like GANs or VAEs, which is crucial for high-fidelity ECG reconstruction.
  • Conditional Generation is Key for Noise Removal: By conditioning the generative process on the noisy observation, the model can effectively learn to "undo" the specific noise and baseline wander present in the input.
  • Self-Ensembling Boosts Performance and Stability: Averaging multiple reconstructions significantly improves accuracy and makes the model more resilient to extreme noise levels, demonstrating the benefit of leveraging the inherent stochasticity of diffusion models.
  • ECG Denoising for Flexible Stress Tests: The ability to accurately remove noise opens doors for more flexible and less restrictive exercise stress tests, potentially improving patient comfort and diagnostic yield.

Key Results

  • State-of-the-Art Performance: DeScoD-ECG consistently outperformed baseline methods (FIR/IIR filters, DRNN, FCN-DAE, CGAN, DeepFilter) across four distance-based similarity metrics (SSD, MAD, PRD, Cosine Similarity).
  • Significant Improvement: The proposed method achieved at least a 20% overall improvement compared to the best baseline.
  • Robustness to Noise: The model demonstrated superior stability and consistency across various noise levels, even outperforming a strong baseline (DeepFilter) at lower noise levels with its 10-shot reconstruction.
  • Multi-Shot Advantage: Increasing the number of shots (from 1 to 10) led to a noticeable improvement in reconstruction quality and a reduction in error. For instance, 10-shot reconstruction achieved the best results on all metrics.

Limitations and Future Work

  • Computational Efficiency: While the model can run on standard hardware, the inference time for diffusion models can be a bottleneck. The authors suggest exploring ODE solvers to accelerate the sampling process.
  • Self-Ensemble Strategy: The current self-ensemble strategy uses simple averaging. Future work could explore weighted ensemble strategies to further enhance signal quality.
  • Broader Noise Types and Applications: The authors plan to evaluate DeScoD-ECG on more diverse noise types and explore its application in other downstream tasks beyond basic denoising.

Summary updated

BibTeX
@article{li2024descod,
  author = {Huayu Li and Gregory Ditzler and Janet Roveda and Ao Li},
  title = {{DeScoD-ECG: Deep Score-Based Diffusion Model for ECG Baseline Wander and Noise Removal}},
  journal = {IEEE J. Biomed. Health Informatics},
  year = {2024},
  doi = {10.1109/jbhi.2023.3237712},
}
Figure