This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Open AccessArticle
Denoising the ECG from the EMG Using Stationary Wavelet Transform and Template Matching
by
Matteo Raggi
Matteo Raggi
and
Luca Mesin
Luca Mesin *
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 () and significantly outperformed thresholding in the sensitivity of R-peaks estimation (). These results demonstrate the potential of TM, highlighting the value of adaptive denoising algorithms.
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
Article Access Statistics
For more information on the journal statistics, click
here.
Multiple requests from the same IP address are counted as one view.