NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SDEMG: Score-Based Diffusion Model for Surface Electromyographic Signal Denoising

Yu-Tung Liu, Kuan-Chen Wang, Kai-Chun Liu, Sheng-Yu Peng, Yu Tsao · DOI

Abstract

Surface electromyography (sEMG) recordings can be influenced by electrocardiogram (ECG) signals when the muscle being monitored is close to the heart. Several existing methods use signal-processing-based approaches, such as high-pass filter and template subtraction, while some derive mapping functions to restore clean sEMG signals from noisy sEMG (sEMG with ECG interference). Recently, the score-based diffusion model, a renowned generative model, has been introduced to generate high-quality and accurate samples with noisy input data. In this study, we proposed a novel approach, termed SDEMG, as a score-based diffusion model for sEMG signal denoising. To evaluate the proposed SDEMG approach, we conduct experiments to reduce noise in sEMG signals, employing data from an openly accessible source, the Non-Invasive Adaptive Prosthetics database, along with ECG signals from the MIT-BIH Normal Sinus Rhythm Database. The experiment result indicates that SDEMG outperformed comparative methods and produced high-quality sEMG samples.

Introduction

Surface electromyography (sEMG) is a vital tool for monitoring muscle health, controlling prosthetics, and investigating neuromuscular disorders. However, when sensors are placed near the chest, the recordings are often "polluted" by the heart's electrical activity (ECG). This is a difficult problem because the frequency bands of sEMG (10–500 Hz) and ECG (0–100 Hz) overlap significantly.

Traditional solutions like High-Pass (HP) filters often remove essential low-frequency muscle data along with the heart signal. More advanced methods like Template Subtraction (TS) rely on the assumption that ECG is perfectly periodic, which rarely holds true in real-world scenarios. While deep learning models like Fully Convolutional Networks (FCNs) have shown promise, they often introduce signal distortion that can lead to errors in clinical diagnosis.

Methodology

The authors introduce SDEMG, a conditional score-based diffusion model. Unlike standard neural networks that try to learn a direct mapping from "noisy" to "clean," SDEMG is a generative model that learns the underlying distribution of clean sEMG data.

Overview of the diffusion and sampling processes in SDEMG.

Key technical components include:

  • Diffusion Process: The model progressively adds Gaussian noise to clean sEMG signals until they become pure noise.
  • Reverse (Denoising) Process: The model learns to reverse this process. Crucially, this is conditional: the model uses the ECG-contaminated signal as a guide to "steer" the reconstruction toward the correct clean waveform.
  • Architecture: The network uses "Half Normalized Filters" (HNF) and "Bridge blocks" (modified from FiLM layers). These allow the model to fuse features from the noisy input and the current noise scale effectively.

Experimental Setup

The study utilized two primary open-source datasets to create synthetic mixtures for training and evaluation: the NINAPro DB2 (Non-Invasive Adaptive Prosthetics database) for clean sEMG recordings and the MIT-BIH Normal Sinus Rhythm Database (NSRD) for clean ECG recordings. To test the model's robustness, the researchers ensured a mismatch condition: the subjects, specific muscle movements, and noise levels (SNRs ranging from -14 dB to 0 dB) used in the testing phase were entirely different from those used during training.

Results and Discussion

SDEMG was compared against HP filters, Template Subtraction (TS), and a standard FCN-based denoising autoencoder.

Performance comparison of SDEMG against baseline methods across various noise levels.

Key findings include:

  • Signal Quality: SDEMG achieved an SNR improvement of 18.467 dB, outperforming the FCN (17.758 dB) and traditional methods (~14 dB).
  • Error Reduction: It achieved the lowest Root-Mean-Square Error (RMSE) across all tested noise levels.
  • Feature Preservation: SDEMG showed superior performance in maintaining the Average Rectified Value (ARV) and Mean Frequency (MF)—two metrics used to assess muscle fatigue and activation. Unlike discriminative models, SDEMG's generative nature leads to significantly less signal distortion.
  • Handling Short Segments: SDEMG remains stable across different segment lengths (e.g., 5 seconds vs 60 seconds), making it more practical for real-time applications where previous state-of-the-art models lost accuracy.

Conclusion

SDEMG demonstrates that score-based diffusion models can effectively denoise sEMG signals while preserving critical physiological features. While the primary trade-off is computational complexity due to the iterative sampling steps, future work involving ODE solvers or model pruning could enable real-time use. The framework's ability to handle high-noise environments and maintain visual and mathematical fidelity marks a significant advancement in physiological signal processing.

Summary updated

BibTeX
@misc{liu2024sdemg,
  author = {Yu-Tung Liu and Kuan-Chen Wang and Kai-Chun Liu and Sheng-Yu Peng and Yu Tsao},
  title = {{SDEMG: Score-Based Diffusion Model for Surface Electromyographic Signal Denoising}},
  year = {2024},
  eprint = {2402.03808},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.03808},
}
Figure