How does downsampling affect needle electromyography signals? A generalisable workflow for understanding downsampling effects on high-frequency time series
Mathieu Cherpitel, Janne Luijten, Thomas Bäck, Camiel Verhamme, Martijn Tannemaat, Anna Kononova
TL;DR
This work addresses the challenge of high-frequency nEMG signal analysis by proposing a generalisable five-step workflow to evaluate downsampling effects on information content and classifier performance. It combines shape-based distortion metrics, a feature-based classification pipeline using tsfresh and Boruta with a random forest, and a pairwise ranking model (XGBoost) to identify downsampling configurations that preserve diagnostic information while significantly reducing computation. Using the EMGLAB dataset for a three-class neuromuscular disease task, shape-aware downsampling methods (notably LTTB and MinMaxLTTB) maintained classification accuracy up to factors around $k=30$ with ~60× feature-extraction speedups, while SHAP analysis highlighted envelope correlation and amplitude distributions as key predictors of good performance. The workflow provides practical guidance for near real-time nEMG analysis and is extensible to other high-frequency time series, enabling standardized assessment of data reduction versus model performance across domains.
Abstract
Automated analysis of needle electromyography (nEMG) signals is emerging as a tool to support the detection of neuromuscular diseases (NMDs), yet the signals' high and heterogeneous sampling rates pose substantial computational challenges for feature-based machine-learning models, particularly for near real-time analysis. Downsampling offers a potential solution, but its impact on diagnostic signal content and classification performance remains insufficiently understood. This study presents a workflow for systematically evaluating information loss caused by downsampling in high-frequency time series. The workflow combines shape-based distortion metrics with classification outcomes from available feature-based machine learning models and feature space analysis to quantify how different downsampling algorithms and factors affect both waveform integrity and predictive performance. We use a three-class NMD classification task to experimentally evaluate the workflow. We demonstrate how the workflow identifies downsampling configurations that preserve diagnostic information while substantially reducing computational load. Analysis of shape-based distortion metrics showed that shape-aware downsampling algorithms outperform standard decimation, as they better preserve peak structure and overall signal morphology. The results provide practical guidance for selecting downsampling configurations that enable near real-time nEMG analysis and highlight a generalisable workflow that can be used to balance data reduction with model performance in other high-frequency time-series applications as well.
