Low-Latency sEMG Conditioning with Frequency-Tracked Harmonic PLI Cancellation and Exponential RMS Envelope Estimation
Abstract
Surface electromyography (sEMG) interfaces require interference-resistant acquisition, faithful preprocessing, and a responsive envelope for downstream control. This work presents a reproducible, analog-aware digital conditioning pipeline comprising an eighth-order Butterworth band-pass, a narrow static notch, a recursive-oscillator two-harmonic normalised least-mean-squares (NLMS) canceller, a rolling mains-frequency tracker, and an exponentially weighted RMS (EMRMS) envelope. The analog common-mode analysis is separated into a complex frequency-domain decomposition and a scalar CMRR sensitivity screen; the latter is explicitly treated as a pre-prototype approximation rather than a substitute for circuit simulation or bench measurement. A running-sum rectangular RMS requires O(1) arithmetic and O(L) memory, whereas EMRMS requires O(1) arithmetic and one dynamic power state. At fs = 2 kHz and{tau} = 25 ms, the EMRMS power smoother has a weight-centroid delay of 24.75 ms and a noise-equivalent rectangular length of 100.0 samples. In a controlled drifting-line experiment, the tracker achieved an RMSE of 0.118 Hz; tracked two-harmonic cancellation improved whole-record reconstruction SNR by approximately 19.3 dB relative to the static-notch baseline. In a separate 12-channel synthetic ablation, median reconstruction SNR was 11.5 dB for tracked harmonic cancellation, compared with 8.8 dB for fixed-frequency harmonic cancellation and -11.2 dB for the static-notch baseline. Delay-aligned EMRMS and length-200 running-RMS envelopes had correlation{rho} = 0.994. The host-Python fast path required a median of 13.0 {micro}s per sample and a 99th percentile of 24.9 {micro}s; accepted frequency updates required a median of 161 {micro}s and should be scheduled as a supervisory task on embedded hardware. All numerical performance results reported here are controlled synthetic experiments. The accompanying real-data workflow never substitutes generated data when recordings are absent; multi-subject and embedded-hardware validation remain future work.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 0
- Assay
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Robust, general purpose, digital power line hum filter which is free of deformations and which can be applied to large transients
Marc H. E. de Lussanet·bioRxiv·Nov 4, 2019
- Removing mains power artefacts from EEG - a novel template-based method
S. Zhang, B. McCane, … N. McNaughton·bioRxiv·Jan 27, 2020
- Study of Motor Unit Action Potential Conduction Velocity and Firing Rate in Low Force Contractions using Empirical Mode Decomposition
A. Dogadov, J.-Y. Hogrel·bioRxiv·Oct 19, 2023
- Real-time noise cancellation for EEG monitoring and brain-computer interfaces
Matilda Makkonen, Olli‐Pekka Kahilakoski, … Tuomas P. Mutanen·bioRxiv·Oct 16, 2026
- EEG-LLAMAS: an open source, low latency, EEG-fMRI neurofeedback platform
Joshua Levitt, Zinong Yang, … Laura D. Lewis·NeuroImagePeer-reviewed·Apr 5, 2023
- 'High-Density-SleepCleaner': An open-source, semi-automatic artifact removal routine tailored to high-density sleep EEG
Sven Leach, Georgia Sousouri, Reto Huber·Journal of Neuroscience MethodsPeer-reviewed·Apr 17, 2023