Next Article in Journal
GAN-AHR: A GAN-Based Adaptive Hybrid Resampling Algorithm for Imbalanced Intrusion Detection
Previous Article in Journal
Review of Fuzzy Methods Application in IIoTSecurity—Challenges and Perspectives
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Article

Denoising the ECG from the EMG Using Stationary Wavelet Transform and Template Matching

Department of Electronics and Telecommunications, Politecnico di Torino, 10129 Turin, Italy
*
Author to whom correspondence should be addressed.
Electronics 2025, 14(17), 3474; https://doi.org/10.3390/electronics14173474 (registering DOI)
Submission received: 31 July 2025 / Revised: 27 August 2025 / Accepted: 28 August 2025 / Published: 29 August 2025

Abstract

Wearable systems are increasingly adopted for health monitoring and wellness promotion. Among the most relevant biosignals, the electrocardiogram (ECG) plays a key role; however, in wearable settings (e.g., during physical activity), it is often corrupted by electromyogram (EMG) interference. This study presents a novel adaptive algorithm, template masking (TM), which integrates the stationary wavelet transform (SWT) with template matching for denoising the ECG from EMG. The method identifies the optimal wavelet and decomposition level to maximise detail sparsity. To mitigate EMG interference, after alignment in the SWT domain with a template, the detail coefficients are multiplied by a binary mask and smoothed. TM was compared with soft and hard thresholding on (1) simulations combining clinical ECGs (MIT-BIH database) and synthetic EMGs with different signal-to-noise ratios (SNRs), and (2) experimental signals including ECGs acquired with dry electrodes corrupted by EMGs (SimEMG database, also varying SNRs), as a potential wearable scenario. In both cases, TM yielded significantly lower reconstruction errors at SNRs below 5 dB (p<0.01) and significantly outperformed thresholding in the sensitivity of R-peaks estimation (p<0.001). These results demonstrate the potential of TM, highlighting the value of adaptive denoising algorithms.
Keywords: electrocardiogram; electromyography; denoising; stationary wavelet transform; simulations electrocardiogram; electromyography; denoising; stationary wavelet transform; simulations

Share and Cite

MDPI and ACS Style

Raggi, M.; Mesin, L. Denoising the ECG from the EMG Using Stationary Wavelet Transform and Template Matching. Electronics 2025, 14, 3474. https://doi.org/10.3390/electronics14173474

AMA Style

Raggi M, Mesin L. Denoising the ECG from the EMG Using Stationary Wavelet Transform and Template Matching. Electronics. 2025; 14(17):3474. https://doi.org/10.3390/electronics14173474

Chicago/Turabian Style

Raggi, Matteo, and Luca Mesin. 2025. "Denoising the ECG from the EMG Using Stationary Wavelet Transform and Template Matching" Electronics 14, no. 17: 3474. https://doi.org/10.3390/electronics14173474

APA Style

Raggi, M., & Mesin, L. (2025). Denoising the ECG from the EMG Using Stationary Wavelet Transform and Template Matching. Electronics, 14(17), 3474. https://doi.org/10.3390/electronics14173474

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop