A systematic investigation of detectors for low signal-to-noise ratio EMG signals
Monisha Yuvaraj, Priyanka Raja, Ann David, Etienne Burdet, Varadhan SKM, Sivakumar Balasubramanian, Werner Wolf, Vincent Crocher, Monisha Yuvaraj

TL;DR
This study compares 13 EMG detection algorithms to find the best ones for detecting movement intention in stroke patients with very weak muscle signals.
Contribution
The study introduces and evaluates the Modified Hodges detector as a new, simplified algorithm for low SNR EMG signal detection.
Findings
The Modified Hodges detector showed consistent performance across different signal models and SNRs.
It performed well in ~90% of trials at 0dB and ~40% at -3dB SNR.
Statistical and Fuzzy Entropy detectors had slightly lower performance than Modified Hodges.
Abstract
Background: Active participation of stroke survivors during robot-assisted movement therapy is essential for sensorimotor recovery. Robot-assisted therapy contingent on movement intention is an effective way to encourage patients’ active engagement. For severely impaired stroke patients with no residual movements, a surface electromyogram (EMG) has been shown to be a viable option for detecting movement intention. Although numerous algorithms for EMG detection exist, the detector with the highest accuracy and lowest latency for low signal-to-noise ratio (SNR) remains unknown. Methods: This study, therefore, investigates the performance of 13 existing EMG detection algorithms on simulated low SNR (0dB and -3dB) EMG signals generated using three different EMG signal models: Gaussian, Laplacian, and biophysical model. The detector performance was quantified using the false positive rate…
Genes, proteins, chemicals, diseases, species, mutations and cell lines named across the full text — each resolved to its canonical identifier and authoritative record.
Click any figure to enlarge with its caption.
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5| Detectors | Signal Conditioning | Test function | Parameters |
|---|---|---|---|
|
| Rectification
|
| Cut-off frequency of LPF (
|
|
| Adaptive whitening | Likelihood Ratio test | Window size (W)
|
|
| Adaptive whitening | Likelihood Ratio test | Window size (W)
|
|
| - | Chebyshev distance
| Window size (W)
|
|
| Rectification
|
| Cut-off frequency of LPF (
|
|
| Rectification
|
| Cut-off frequency of LPF (
|
|
| Band pass filter | Root mean square (
| Window size (W)
|
|
| Rectification
|
| Window size (W)
|
|
| High pass filter |
| Cut-off frequency of HPF (
|
|
| Adaptive whitening |
| Weights (α)
|
|
| - | Chebyshev distance
| Window size (W)
|
|
| - | Correlation of signal with Wavelet representing shape of MUAP | Scaling parameter of the mother wavelet (a)
|
|
| - | Computation of detection statistics using Euclidean distance. | Window size (W) |
| Detector type | Parameters | SNR 0dB | SNR -3dB | ||||
|---|---|---|---|---|---|---|---|
| Gaussian | Laplacian | Biophysical | Gaussian | Laplacian | Biophysical | ||
|
| Weight | 1 | 1 | 1 | 1 | 1 | 1 |
| LPF cut-off (Hz) | 7.5 | 7.5 | 4.5 | 6.5 | 5.5 | 4.5 | |
|
| Window size (s) | 0.1 | 0.1 | 0.15 | 0.1 | 0.15 | 0.15 |
| Weight | 2 | 1 | 3 | 1 | 1 | 1 | |
|
| Window size (s) | 0.1 | 0.1 | 0.1 | 0.1 | 0.15 | 0.2 |
| Weight | 2 | 1 | 1 | 1 | 1 | 1 | |
|
| Window size (ms) | 60 | 80 | 100 | 90 | 70 | 100 |
| Weight | 1 | 1 | 2 | 1 | 1 | 1 | |
|
| LPF cut-off | 9.5 | 9.5 | 9.5 | 9.5 | 9.5 | 7.5 |
| Weight | 1 | 1 | 1 | 1 | 1 | 1 | |
| m | 20 | 25 | 5 | 25 | 55 | 25 | |
| T1 | 30 | 30 | 30 | 30 | 60 | 30 | |
|
| Window size (s) | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 |
| Weight | 1 | 1 | 1 | 1 | 1 | 1 | |
| LPF cut-off (Hz) | 9.5 | 9.5 | 9.5 | 9.5 | 8.5 | 9.5 | |
|
| Window size (s) | 0.12 | 0.12 | 0.12 | 0.12 | 0.12 | 0.12 |
| Weight | 1 | 1 | 1 | 1 | 1 | 1 | |
| Window shift (ms) | 40 | 40 | 40 | 40 | 40 | 40 | |
| Time threshold (ms) | 40 | 40 | 40 | 40 | 40 | 40 | |
|
| Window size (s) | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 |
| Weight | 1 | 1 | 1 | 1 | 1 | 1 | |
| m | 10 | 10 | 5 | 20 | 25 | 25 | |
| T1 | 30 | 30 | 30 | 30 | 30 | 30 | |
|
| HPF cut-off (Hz) | 5 | 5 | 5 | 15 | 20 | 15 |
| Window size (s) | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 | |
| Weight | 1 | 1 | 1 | 1 | 1 | 1 | |
| T1 | 30 | 30 | 30 | 30 | 30 | 30 | |
|
| Weight | 1 | 2 | 2 | 2 | 1 | 2 |
| m | 10 | 25 | 20 | 20 | 20 | 25 | |
| T1 | 30 | 30 | 30 | 30 | 60 | 30 | |
|
| Window size (ms) | 50 | 50 | 50 | 50 | 50 | 50 |
| Weight | 1 | 1 | 1 | 1 | 1 | 1 | |
| Tolerance for distance | 0.5 | 1.5 | 0.5 | 0.5 | 1.5 | 0.5 | |
|
| Weight | 1.1 | 1.2 | 1 | 1.1 | 1 | 1.4 |
|
| Window size (ms) | 52 | 50 | 50 | 50 | 50 | 50 |
| Signal Model | Gaussian | Laplacian | Biophysical | Average | ||||
|---|---|---|---|---|---|---|---|---|
| SNR | 0 dB | -3 dB | 0 dB | -3 dB | 0 dB | -3 dB | 0 dB | -3 dB |
|
| 0.34 | 0 | 0.12 | 0.02 | 0.84 | 0.7 | 0.43 | 0.24 |
|
| 0.32 | 0.26 | 0.28 | 0.02 | 0.76 | 0.5 | 0.45 | 0.26 |
|
| 0.86 | 0.4 | 0.82 | 0.06 | 1 | 0.84 | 0.89 | 0.43 |
|
| 0.82 | 0.56 | 0.76 | 0.16 | 0.7 | 0.6 | 0.76 | 0.44 |
|
| 0.8 | 0.54 | 0.68 | 0.22 | 0.68 | 0.44 | 0.72 | 0.4 |
|
| 0.86 | 0.02 | 0.54 | 0 | 0.94 | 0.98 | 0.78 | 0.33 |
|
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
|
| 0.18 | 0.04 | 0.18 | 0.02 | 0.72 | 0.46 | 0.36 | 0.17 |
|
| 0.64 | 0.08 | 0.4 | 0.02 | 0.96 | 0.64 | 0.67 | 0.25 |
|
| 0.54 | 0.02 | 0.08 | 0 | 0.06 | 0 | 0.23 | 0.01 |
|
| 0.36 | 0.04 | 0.3 | 0 | 0.64 | 0 | 0.43 | 0.01 |
|
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
|
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
- —Fluid Research grant, CMC Vellore,India
- —Prime Minister research fellowship, Ministry of Education , India
- —Horizon 2020
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMuscle activation and electromyography studies · EEG and Brain-Computer Interfaces · Stroke Rehabilitation and Recovery
Introduction
Substantial recovery of sensory-motor function after a stroke is possible with high-intensity and high-dosage movement training. ^ 1 ^ Rehabilitation robots can facilitate such high-intensity movement training while providing physical assistance to the user for completing movements consistently and precisely. About 30% of stroke survivors are severely impaired ^ 2 ^ ^,^ ^ 3 ^ and require physical assistance to actively engage in movement training. While physical assistance from a robot can motivate such subjects to attempt and train movements, they can also provide inappropriately timed or too much assistance ^ 4 ^ ^,^ ^ 5 ^ leading to slacking, where patients reduce their voluntary effort and exploit robotic assistance to perform the movements. Inappropriately timed robotic assistance also alters the patient’s sense of agency or subjective awareness of control. This could lead to a lack of intrinsic motivation and attention, affecting motor learning and performance. ^ 6 ^ Positive therapeutic effects have been observed only when patients actively engage in therapy. ^ 7 ^ ^–^ ^ 10 ^ Jo et al. ^ 11 ^ reported no improvement in clinical scales with passive range of motion therapy. Thus, active patient participation during movement therapy is an essential ingredient for sensorimotor recovery.
Robotic assistance contingent on a subject’s intention to move is an effective way to guide neuroplasticity. ^ 12 ^ However, it can be difficult to detect the intention to move in stroke patients with no residual movement. Electroencephalogram (EEG) based brain-computer interface (BCI) has been used to detect movement intention in order to trigger robotic movement assistance and the effectiveness of EEG-BCI in robot-assisted rehabilitation has been investigated in several studies. ^ 13 ^ ^–^ ^ 19 ^ Ramos et al. reported a 3 point improvement in the Fugl-Meyer assessment (FMA) score of the experimental group who were given robot-assisted therapy contingent on movement intention. ^ 17 ^ There are, however, several drawbacks to EEG-BCI systems:
- 1)They have a poor signal-to-noise ratio (SNR) with large trial-to-trial intra-subject variability. ^ 20 ^ The use of sophisticated signal processing techniques can increase the delay in intent detection, which can result in inappropriately timed robotic assistance leading to suboptimal recovery ^ 12 ^ ^,^ ^ 21 ^
- 2)EEG-BCI modalities do not precisely identify which limb segment is intended to move due to its low information rate. ^ 21 ^
- 3)Event-related desynchronization of the EEG sensorimotor rhythm may not necessarily reflect movement intention. ^ 22 ^
- 4)Critical for practical use, current EEG-BCI systems are too complex and time-consuming for clinical work. ^ 23 ^
Electromyogram (EMG) could be a viable alternative to address these drawbacks of the EEG-BCI modality for robot-assisted therapy. EMG is a simple, robust, compact modality suitable for routine clinical use. In a recent study, we identified EMG as a potential alternative to EEG-BCI to detect movement intention from severely affected stroke patients without residual movement. ^ 23 ^ About 70% (22 out of the 30) of the study participants had residual EMG in the forearm muscles that showed a consistent increase in amplitude with wrist/finger movement attempts.
However, our study reported poor agreement between the EEG and EMG modalities for detecting movement intention. The authors suggested that this discrepancy could be because of the simple root mean square detector with temporal thresholding that was used. This detector may not optimally pick up low SNR surface EMG signals ^ 23 ^ expected from severe patients with no residual movements.
Numerous EMG detection algorithms have been proposed for the automatic detection of EMG onset. ^ 24 ^ ^–^ ^ 31 ^ The review article by Staude et al. ^ 24 ^ compared different EMG detector types to identify the best detectors for detecting EMG onset. ^ 24 ^ However, this work was done on high SNR (3dB and 6dB) simulated EMG signals generated by bandpass-filtering white Gaussian noise, and it only investigated detectors reported till 2001. Other detectors have been reported in the last 20 years, and a systematic characterization of existing EMG detector types on low SNR EMG signals (generated using different signal models) is still lacking. Identifying an optimal detector is essential for further exploring the use of EMG-based movement intent detection for robot-assisted therapy in severely affected stroke subjects with no residual movements.
Our goal in this study is to systematically compare the detection accuracy and latency of existing EMG detectors on low SNR EMG signals to identify the most promising detectors, while eliminating the ones with poor performance, for further investigation. To this end, we will here:
- •Generate simulated low SNR (0dB and -3dB) EMG data using two phenomenological (Gaussian and Laplacian) models and a biophysical model to evaluate the performance of the different detector types.
- •Define an appropriate cost function considering the detection accuracy and latency to evaluate the performance of the different detector types.
- •Compare the performance of the different detector types on simulated surface EMG signals from the three signal models for two different SNRs (0dB and -3dB) and identify the most appropriate detector type(s).
We note that the detectors studied in this work produce a binary output suitable for on-off control of robotic assistance during therapy. This is in contrast to previous studies exploring continuous control paradigms using EMG amplitude estimates on less severely affected stroke patients with some residual limb movements ^ 32 ^ ^,^ ^ 33 ^ However, for severely affected patients with no residual movements, who may or may not have detectable EMG, an on-off control scheme might be the easiest modality for human-robot interaction. Continuous control schemes might be appropriate as patients gain better control of their muscles that are still too weak to produce residual movements.
Methods
Neurorehabilitation training consists of repeating specific movements of interest punctuated by periods of rest. ^ 17 ^ ^,^ ^ 34 ^ A typical training session will involve several “trials” of a particular movement, each with a period of rest (rest-phase) followed by a period of movement/movement attempt (move-phase). In EMG-triggered robot-assisted therapy, robotic assistance is triggered whenever EMG is detected in real-time in the target muscle during the move phase of a trial. In this paper, EMG always refers to surface-recorded muscle activity, as this modality will most likely be employed in routine robot-assisted therapy. The rest of this section starts with the formal definition of the signal processing problem solved by an EMG detector, followed by the details of the simulated EMG signals, a description of the general structure of EMG detectors, and the approach used to compare the performance of the different detectors.
The formal definition of the signal processing problem
Let be the recorded signal from a target muscle during the trial; is the sampling instant, where is the start of a trial, is the number of data points from each trial. Let and be the number of samples in the rest- and move-phases of a trial, respectively, then . The time segments and correspond to the rest-phase and move-phase of the trial, respectively.
Problem definition: To detect the presence of EMG in real-time in the move-phase of a trial using only the current and past EMG data from the start of the trial. Let represent the binary output of the EMG detector at the current sampling instant ,
where, is the detector function that maps the EMG signal , from the start of a trial to a binary output corresponding to the presence or absence of EMG at the current time instant ; is the set of detector parameters that control the detector’s performance. The function is often a complex mathematical operation consisting of a series of simpler operations performed on the EMG data to produce the binary output. This binary output can be used as a simple on/off control of robotic assistance by severely affected patients to relearn movement initiation. ^ 35 ^ ^,^ ^ 36 ^
Simulation of surface EMG signal
The analysis of the different EMG detectors was performed using simulated EMG data. To generate this simulated EMG, we assume that:
- •the measurement noise has a fixed variance throughout the experiment,
- •the muscle is fully relaxed in the rest-phase of any trial, i.e., there is no EMG activity from the target muscle during the rest-phase, and
- •the muscle is activated at a constant level for the entire duration of the move-phase.
These assumptions were made to evaluate the EMG detectors under the conditions that: (a) the EMG signal has a fixed signal-to-noise ratio (SNR) in the move-phase, and (b) all other intra- and inter-trial variabilities in the EMG signal characteristics are minimized. The detectors that perform poorly under these ideal conditions will likely perform worse with real EMG data from patients, since real EMG data from severely affected stroke patients might occur in random bursts and is likely to have time-varying amplitude.
We simulated 100 trials of EMG data with an individual trial duration of 13 seconds (8 s and 5 s for rest- and move-phases, respectively). The sampling frequency of the simulated signal was set to 1000 Hz. Three different EMG signal generation models were employed in the current analysis – two phenomenological (Gaussian and Laplacian) models and one biophysical model. The phenomenological models were based on the work of De Luca ^ 37 ^ where a surface EMG signal from a muscle activated at a fixed level can be treated as zero-mean white noise followed by a shaping filter (electrode properties); this model is widely accepted in the literature. ^ 24 ^ ^,^ ^ 38 ^ ^–^ ^ 41 ^ The exact probability density of the EMG signal depends on the muscle activation level, with high levels of activation following a Gaussian distribution. ^ 38 ^ ^,^ ^ 39 ^ However, at low levels of muscle activation, EMG signals have been reported to follow a distribution that lies between a Gaussian and a Laplacian distribution. ^ 42 ^ Therefore, to ensure that the detectors are tested with the appropriate signals, we generated data using both white Gaussian and white Laplacian signals, resulting in two phenomenological models.
Phenomenological models: Gaussian and Laplacian
The first step in this model is the generation of the zero-mean unit-variance white Gaussian and Laplacian noise . A step change in the signal variance, within a trial, at the transition between the rest- and move-phases of a trial was obtained by multiplying by :
where and are the noise and signal variances, respectively. The noise variance is always set to = 1 in this analysis, and the signal variance is chosen based on the desired signal-to-noise ratio (SNR) in the move-phase. The signal is then zero-phase bandpass filtered (8 ^th^ order FIR bandpass filter with cut-off frequency 10 Hz and 450 Hz) to have a signal with spectral characteristics like a surface EMG signal.
where, is the impulse response of the bandpass or shaping filter, and is the generated EMG signal that is used for the analysis. The signal-to-noise ratio (SNR) of this simulated EMG signal in the move-phase is given by,
Biophysical model
In addition to the phenomenological models, we also wanted to test the detectors on more realistic data based on the biophysics of the EMG signal, accounting for the physiological origin of the electrical muscle activity and the recording electrode geometry. In this paper, the biophysical model proposed in Devasahayam S ^ 43 ^ was employed to generate the simulated EMG data. Assuming a linear, isotropic volume conduction model, a simple muscle geometry with parallel muscles fibres ignoring the effects due to the finite muscle fibre length, the EMG recorded by a bipolar electrode configuration can be approximated using the following expression:
where is the number of motor units in the muscle, is the impulse train signal arriving at the motor unit through its corresponding motor neuron, is the number of muscle fibers in the motor unit, is the approximate electrode transfer function between the motor unit and the recording electrodes, and is the single fibre action potential, which is assumed to be the same for all fibres. The full details of the model can be found in Devasahayam. ^ 43 ^ with the associated parameters provided in Table S3 of the supplementary material.
The EMG simulator developed by Devasahayam ^ 41 ^ was employed in the current work to generate the simulated EMG signals. ^ 43 ^ A bipolar surface electrode configuration with a 10 mm interelectrode distance was considered. The simulator takes in the muscle force level as its input and computes the corresponding firing pattern for the motor units. In the current study, the force levels from the muscle were set to 0N in the rest-phase (no muscle activation) and 10N in the move-phase (average firing rate of 16.4 Hz for the muscle). The simulator generated pure muscle activity recorded by the chosen electrode configuration. The force level for the muscle in the move-phase was chosen empirically to ensure that the temporal profile of the simulated EMG signal visually resembled that of real surface EMG signals. A zero-mean white Gaussian noise of fixed noise variance was added to to introduce measurement noise. The noise variance was chosen based on the signal power ( ) of in the move-phase to obtain a signal with the desired SNR:
Following this, the noisy signal is bandpass filtered (8 ^th^ order non-causal FIR filter) between 10 Hz and 450 Hz cut-off frequencies:
where is the impulse response of the bandpass shaping filter. The characteristics of EMG generated from these three models are shown in Figure 1. We wanted to investigate the performance of the detectors under two conditions where the signal power was: (a) equal to noise power, and (b) less than the noise power. Thus, the current study employed two different SNRs of 0dB (signal power equals noise power) and -3dB (signal power is half the noise power).
Characteristics of the EMG signals generated from the three models.The three rows correspond to the three different signal models: Biophysical in the top row, Gaussian in the middle, and Laplacian in the bottom row. The left most column shows the time series of the simulated 13 seconds of data with the first 8 seconds corresponding to the rest phase and the next 5 seconds to the move phase. The middle column shows the corresponding Fourier magnitude spectrum of the 5 seconds of move phase data. The right column displays the estimate of the probability density functions of the 5 seconds of move phase data from the three models.
Detection algorithms
The general structure for EMG detectors proposed by Staude et al. ^ 24 ^ is shown in Figure 2, which consists of three steps carried out sequentially to map the given real-time EMG data into a binary output:
Signal conditioning is the first step to improve EMG signal quality for better detection, often involving high-pass filtering for movement artefact removal. Some detectors might employ additional filtering operations, such as adaptive whitening for stable EMG amplitude estimation. ^ 44 ^ ^,^ ^ 45 ^ The conditioned signal is represented by
where represents the mathematical operation performed by the signal conditioning step.
- 2. Test function computation transforms into a scalar variable or feature that can distinguish the presence or absence of EMG. The test function is computed at the current time instant over a causal window of size :
Some examples of test functions in the literature include the moving average of , test variable, ^ 46 ^ likelihood ratio ^ 47 ^ etc.
- 3.A decision rule is applied on the test function by comparing it to a threshold to identify the presence/absence of an EMG signal:
Some detectors employ a more sophisticated decision rule, such as double thresholding, to control the false positive rates of detection. ^ 46 ^ ^,^ ^ 48 ^
*A general structure for EMG detectors as proposed by Staude et al.
24*
We note that each detector has a set of parameters associated with it. The current study compares the performance of 13 detector types reported in the literature which can be implemented in real-time, listed in Table 1. Each detector type fits into the general structure shown in Figure 2. The different parameters associated with these detector types are also provided in Table 2. A detailed description of the individual detector types and the algorithms for their implementation are provided in the extended data ( Table S1). All detector algorithms were obtained from the literature and implemented in MATLAB ^ 51 ^ with appropriate modifications required for real-time detection.
Table 2.: Optimal parameters for the different detector types for the different SNRs and signal model. These parameters were identified using procedure described in Algorithm 1 on the 50 trials from the training datasets.
A measure of detector performance
The simulated EMG data from the three different signal models and the two different SNRs were used to evaluate the performance of the different detector types. Each trial of EMG signal (13 seconds long) was input to the different detectors to compute binary output indicating the presence or absence of EMG signal. The performance of a detector must consider the accuracy (false positive and false negative rate) and the detection latency. These are computed from the output of each trial ( Figure 3), where the EMG signal from each trial was analysed in the following three steps:
- 1.the first three seconds (0–3s) of the rest-phase data is used for estimating the threshold for detection:
where and are the mean and standard deviation of the test function in this period.
- 2.the remaining 5 seconds of the rest-phase are used to estimate the false positive rate .
- 3.the 5 seconds of the move-phase are used to estimate the false negative rate and the detection latency .
*A representative example of a trial from the Gaussian signal model with -3dB SNR run through the Modified Hodges detector.The plot shows the rectified EMG signals, its lowpass filtered output, and the binary output from the detector. The trial is 13 seconds long with first 8 seconds corresponding to the rest-phase and the next 5 seconds to the move-phase. The rest-phase is further divided into the baseline phase (yellow background) that is used for computing the threshold
h , and the remaining rest-phase (red background) is used for computing
rFP . The move-phase (green background) is used to compute
∆t and
rFN .*
We defined a performance measure to compute a single number referred to as the cost of detection that considers the false positive rate , the false negative rate , and the detection latency . Let be the cost vector associated with the output of the detector for a particular trial. We define the cost of detection as the infinity norm of the cost vector .
providing the worst-case performance of the detector on the given trial.
The false positive rate is defined as the ratio of the number of 1s in the detector output in the rest-phase of a trial, and the false negative rate is defined as the ratio of the number of 0s in in the move-phase.
From Figure 3, the detection latency is defined as the time delay from the start of the move-phase to when the detector output goes to 1:
where is the sampling period of data in milliseconds, and . The cost due to this latency is quantified by the function that maps to a real number in the closed interval between 0 and 1:
Latencies between 0 to 250 ms have linearly increasing costs while the ones above 250 ms are considered as bad as 250 ms. Based on the definitions of , , and , . A detector with a consistently lower cost of detection would be considered a better detector.
Comparing different detector types
A detector’s performance or cost is determined by the SNR of the input signal, the detector type, and its associated parameters. Thus, for a fixed SNR input signal, comparing two detector types must be done only after controlling for the influence of their corresponding detector parameters. In the current work, this was done by first choosing the optimal parameters for each detector type, before comparing different detector types. The optimal parameters for a detector type were selected by first splitting the 100 movement trials of simulated EMG data of the three models (which was generated as explained above) into training and validation datasets with 50 trials each. This was done for both SNRs (0dB and -3dB) and for all three signal models (Gaussian, Laplacian, and biophysical). The training dataset was used to identify the optimal parameter values for the different detector types, i.e. the values of the parameter combination that consistently resulted in the least cost for the detector on the training dataset. The exact procedure is given in Algorithm 1 (end of the document), while details are provided in the extended data.
After identifying the optimal parameter combination for each detector type, the optimal parameter values were used to run the detector on the 50 trials of the validation dataset, which resulted in the validation cost set for the detector type . The cost set from the different detector types were compared using two-way ANOVA with the detector type and signal SNR as the two factors for each of the three-signal model. The complete code for the analysis can be found here.
Results
The entire analysis – generation of the simulated data, the various detection algorithms, optimization ^ 52 ^ of the detector parameters, and analysis of the results – reported in this paper were implemented in MATLAB R2020 (RRID:SCR_001622) (alternative languages could also recreate this study i.e. Python [RRID:SCR_008394] or GNU Octave [RRID:SCR_014398]). A sample of the individual trials from the three EMG signal models is depicted in Figure 1. A sample output of the different processing stages of the Modified Hodges detector from a Gaussian EMG signal trial is shown in Figure 3. The Modified Hodges detector, filters (2 ^nd^ order Butterworth low pass filter) the rectified raw EMG signal (blue coloured trace in Figure 3). This lowpass filtered signal is the test function of the detector (red-coloured trace in Figure 3). The threshold for this trial is shown by the green-coloured horizontal line in Figure 3. The output of the detector (black coloured trace in Figure 3) is 1 whenever the test function crosses the threshold, it is 0 otherwise. The figure also shows the values of , , , and for the trial.
Optimal parameters for the different detector types
The 13 detector types were compared after choosing the optimal parameter set for each detector type using the training dataset of 50 trials for each of the six combinations of the three signal models and two SNRs. ^ 53 ^ This procedure is depicted in Figure 4 for the Modified Hodges detector for the 0 dB SNR Gaussian signal model, which shows the outcomes from the different steps in the optimization process described in Algorithm 1. Figure 4(a) shows the histograms of the cost for the different parameter combinations, in light blue traces. These histograms are estimated from the cost values obtained from the 50 trials in the training dataset for the different combinations of the detector parameters. The scatter plot of the median and inter-quartile range of these histograms are shown in Figure 4(b). The choice of the best parameter for the detector was determined to be the one with the least Euclidean norm which is shown as the red circle in Figure 4(b); its corresponding histogram is shown in the thick red trace in Figure 4(a). Figure 4(c) shows the marginal histograms of the individual contributors to the cost for the optimal parameter combination for the Modified Hodges detector. The values of the optimal parameters for the different detector types are listed in Table 2.
Outcomes of the parameter optimization process for the Modified Hodges detector as described in Algorithm 1.(a) Estimated probability density function of cost for the different combinations of parameters (in light blue traces). The red trace corresponds to the cost of the optimum parameter combination. (b) Scatter plot of median vs IQR for the cost of different parameter combinations. (c) Estimated histograms of latency, false positive rate, false negative rate and cost of the optimum parameter.
How do the different detector types perform on the different signal models and SNRs?
The performance of the different “optimal” detector types, i.e., detectors using the optimal parameter values, were compared using the 50 trials from the validation datasets. The boxplot of the performance of these different detector types for the three different signal models – Gaussian, Laplacian, and biophysical – are shown in Figure 5(a), (b), (c), respectively; each of these subplots displays the performance for the 0dB and -3dB SNRs in red and blue boxplots, respectively. Note that the order of the depiction of the different detectors is in terms of the increasing average cost across the three signal models and two SNRs; the detectors on the left are better than the ones on the right in an average sense. A two-way ANOVA on the effect of the detector type and SNR on performance revealed a significant difference between the detector types (p < 0.001) and SNRs (p < 0.001) for all three signal models. The test revealed a significant interaction between the factors for all three models (biophysical: p < 0.0001; Gaussian: p < 0.0001; Laplacian: p < 0.0001). These statistical results confirm the results shown in the boxplots in Figure 5, where the performance is different among the detector types, with consistently poorer performance for -3dB compared to 0dB. The costs for both 0dB and -3dB appear to be lower for the biophysical model compared to the Gaussian and Laplacian models.
*Boxplot of cost of performance of the different detectors in the validation datasets from the different signal models and SNRs.All detectors shown in this plot use the optimal detector parameter sets optimized on the training dataset. (a) Cost of detection for the Gaussian signal model, (b) Laplacian signal model and (c) Biophysical signal model. The red and blue colored boxplots are of 0dB and -3 dB SNR, respectively. The red dashed line is the acceptable cost
Caccept=0.2 .*
Most detector types perform similarly except for the Sample entropy, Continuous wavelet transform (CWT), and Singular spectrum analysis (SSA) detector types which perform worse across the different signal models and SNRs. Among the other detector types – the Modified Hodges, the approximate generalise likelihood ratio test- Gaussian (AGLR-G), and the approximate generalise likelihood ratio test- Laplacian (AGLR-L) detectors – have almost similar costs for the different signal models and SNRs. The other detector types – Root mean square (RMS), Hodges, Bonato, Lidierth, Modified Lidierth, Teager Kaiser Energy Operator (TKEO), and Fuzzy entropy – have slightly higher costs for one or more specific signal models and SNRs. We note that the Fuzzy entropy detector performs very well on the biophysical signal model for both SNRs with an acceptable cost for more than 95% of the validation trials.
Which detector types have an acceptable cost?
The choice of appropriate detector type(s) for use in robot-assisted therapy requires the specification of an acceptable cost of detection . To this end, we specify the upper limits for the false positive rate, false negative rate, and the latency of detection as , which corresponds to a detector with the following cost components:
We believe that these upper limits are a reasonable compromise among the three competing factors determining the cost. Any detector type with costs consistently lower than would be deemed an appropriate detector for use in robot-assisted therapy. To determine the detector types with consistently lower costs than , we computed the proportion of the 50 validation trials with acceptable for the detector for the three signal models and two SNRs using
where is the cost of detection for the validation trial for detector . The value of for the different detector types is shown in Table 3, where the cells with are highlighted. We can observe there that:
- 1.All detectors perform poorly for the -3dB Laplacian signal model. The highest value of is 0.22 for this signal model, which interestingly is from the AGLR-L detector designed for the Laplacian signal. Many detectors perform a little better with higher values for the -3dB Gaussian and biophysical signal models.
- 2.The Modified Hodges detector is the most consistent detector across the different signal models and SNRs. It has an for the three signal models at 0dB and the biophysical model at -3dB SNR.
- 3.The Fuzzy Entropy detector performs as well as the Modified Hodges detector for the Gaussian and biophysical signal models, but not on the Laplacian model.
- 4.In terms of the average value of , across the three signal models (last two columns of Table 3), the Modified Hodges detector performs the best for the 0dB signals, followed by the AGLR-G, AGLR-L, and Fuzzy Entropy detectors which have slightly lower but similar performance. For -3dB signals, the Modified Hodges, AGLR-G, and AGLR-L detectors result in similar performances.
Based on these observations, the Modified Hodges appears to be the most consistent detector for low SNR signal models, irrespective of the EMG signal model. The two statistical detectors (AGLR-G, and AGLR-L) and the fuzzy entropy detectors provide similar but slightly lower performance than the Modified Hodges detector.
Discussion
Movement intention-triggered robot-assisted therapy is one of the options available for severely impaired patients without residual movement. EMG for movement intent detection is a simpler, more direct and task-specific alternative to EEG-BCI. ^ 23 ^ The investigation of EMG-triggered robot-assisted therapy requires a sensitive and robust method for the accurate and fast detection of movement intention from residual low SNR EMG signals. This study systematically investigated existing EMG detection algorithms in the literature until 2018. The investigation was carried out on simulated EMG signals using three different signal models with low SNR of 0dB and -3dB. These SNRs correspond to feeble EMG signals compared to regular surface EMG recordings from healthy individuals. Using three different signal models – two phenomenological and one biophysical – makes the study results robust to assumptions about the simulated EMG data.
The study by Staude et al. published in 2001 ^ 24 ^ compared different EMG detectors for accurate EMG onset-time detection. They employed a Gaussian signal model with ramp variance profiles (with varying slopes) at SNR of 3dB to 12dB in their analysis ^ 24 ^ and found the AGLR statistical detector to be the best in terms of onset detection, while the Hodges detector performed poorly. ^ 24 ^ Although there are some similarities between the current study and those of Staude et al., the two differ in several ways: (a) the current study is focused on real-time detection, while Staude et al.’s primary goal was offline analysis; (b) the current study employed lower SNR signals, which is important considering its application to detect motion intention in severally affected stroke patients; (c) the current study tested three different signal models, while Staude et al. used only the Gaussian signal model; (d) the primary performance measure in Staude et al. was onset detection latency, while the current study used a composite performance measure (or cost) consisting of the false positive rate, false negative rate, and detection latency; (e) the rationale for the choice of the specific detector parameters was not explicitly mentioned in Staude et al.. In the current study, the detector parameters were optimized through a brute force search to ensure the best detectors from each detector type were compared; and (f) the current study investigates a wider class of detector types than Staude et al., including the detectors published after 2001.
The current study identified that the Modified Hodges detector performed consistently well with cost for at least 80% of the validation trials, across the different signal models and SNRs, except for the -3dB Laplacian signal model, where all detectors fail. The modified Hodges detector – a simplified version of the Hodges detector – performs better than Hodges because it does not involve the additional averaging step in computing its test function. This reduces the detection latency for the modified Hodges detector without an appreciable increase in the false positive and false negative rates ( Table S4 in the extended data in figshare (RRID:SCR_004328)). The AGLR-G, AGLR-L, and fuzzy entropy detectors perform slightly lower than modified Hodges but better than the rest of the detectors. The good performance of the statistical detectors agrees with that of Staude et al. even with the lower SNRs investigated in this study. The fuzzy entropy detector also performs well, unlike its counterpart – sample entropy. The sample entropy algorithm in this study used the local estimate of the signal’s standard deviation for normalizing the data. Sample entropy’s poor performance with the local estimate of the standard deviation was previously reported by Zhang et al. Sample entropy performs well only with the global estimate of the signal’s standard deviation. ^ 31 ^ This is not suitable for real-time implementation as estimating the global standard deviation is a non-causal operation requiring the entire signal record. The use of the fuzzy similarity measure addresses this problem with sample entropy, allowing the fuzzy entropy detector to track changes in the overall signal amplitude. Interestingly, fuzzy entropy has a low cost of detection for both 0dB and -3dB biophysical signal models, which could be due to the additional structure of the motor unit action potentials (MUAPs) in the move-phase of the biophysical signal.
Interestingly, the RMS detector we used previously to demonstrate the viability of EMG as an alternative to detect movement intention in severely impaired chronic stroke subjects ^ 23 ^ was not one of the best performers, as seen in Figure 5 and Table 3. We note that the observed performance was for the RMS detector with optimized parameters ( Table 2) using the training dataset. This optimized RMS detector had a relatively high false negative rate and higher detection latency which resulted in its poor performance. This could possibly explain the lack of agreement between the EMG and EEG detectors we had observed in our previous study, and a more sensitive detector might have identified EMG activity in a larger proportion of subjects. The current study results warrant further investigation with real EMG data from severely impaired patients using other detectors, such as the modified Hodges, AGLR-G/L, and fuzzy entropy.
In general, most detectors have a relatively lower cost of detection for the biophysical signal model, compared to the Gaussian and the Laplacian signal models. The reasons for the better performance on the biophysical model are not entirely clear, except for the fuzzy entropy detector, which might be sensitive to the temporal structure of the simulated data (MUAP) from the biophysical model. One possibility is the difference in the spectra of the signals from the biophysical model compared to the Gaussian or Laplacian modes ( Figure 1); more signal energy is concentrated in the lower frequencies for the biophysical model than in the Gaussian or Laplacian models. Most detectors compute their test functions through a lowpass filtering or averaging operation, which could be retaining a relatively larger portion of the signal in the biophysical model compared to the Gaussian and Laplacian ones, thus resulting in improved performance with the biophysical model. If this is correct, then the difference in performances between the biophysical and the Gaussian/Laplacian models should disappear when an appropriate spectral shaping filter is used in the Gaussian and Laplacian models, yielding a spectrum like the biophysical model. Finally, among the Gaussian and Laplacian models, the relatively poorer performance with the Laplacian signal model could be due to the long tails of the Laplacian distribution.
The simulated data used in the current study relies on a step-change in the signal properties between the rest- and move-phase, and an EMG signal of fixed amplitude during the move phase. These assumptions will be violated when dealing with feeble surface EMG signals recorded from impaired participants with no residual movements. In such participants, movement attempts are likely to produce intermittent bursts of EMG activity with smooth transitions between the on and off states in the target muscles. The EMG signal might have time-varying amplitude even when the participant can continuously activate the muscle for sufficient duration. Although based on idealized simulated EMG data, the current results do provide some idea about the detector types that can potentially work on real low SNR EMG signals; a detector performing poorly on ideal data is likely to perform worse with real data. Furthermore, the results from the current analysis also indicate that modified Hodges, AGLR-G, AGLR-L, and fuzzy entropy detectors are likely to pick up even bursts of EMG signals since they have small detection latency .
The detectors studied in this paper can only be used for on-off control of robotic assistance, ^ 54 ^ where once EMG activity is detected, robotic assistance drives the limb towards the target in a preprogramed fashion. This is different from continuous control of the motion where robotic assistance is proportional to the level of EMG measured from the target muscles. ^ 36 ^ Continuous control of robotic assistance is likely to be a more natural and engaging interaction for participants than simple on-off control. The most common EMG feature for continuous control has been the EMG amplitude estimate, ^ 36 ^ however, the test functions employed by the different detector types in the current study could be potential alternatives. The choice of the best control variable depends on which one of these is sensitive, robust, and provides a natural human-robot interaction with minimal lag. However, it should be noted that it is unclear how well severely impaired participants, with no residual movements, can finely modulate their EMG activity. The choice of on-off versus continuous control of robotic assistance for a participant will require a screening procedure to evaluate the ability of the participant to modulate EMG activity in the target muscle.
The study has limitations that are worth noting to ensure that the results are interpreted appropriately. The study entirely relies on simulated data to investigate the different detectors. The conclusions are thus only as good as the assumed signal models and how well they represent the residual surface EMG signals of patients with no visible movements. This is the first study investigating detectors for low SNR EMG, and thus the use of simulated data was essential to gain some understanding of the performance of the different detectors. Simulated data also allows complete control of the ground truth, which provides a more truthful characterization of different detectors’ detection accuracy and latency. The use of three different signal models to investigate the different detectors also adds some robustness to the study’s findings. Additionally, this analysis allows us to exclude the poorly performing detectors and identify the ones that warrant further investigation with real data. Another potential limitation of the use of simulated data is the availability of complete information about the ground truth against which the different detectors are compared. However, the results of the current study can’t be verified with real data because we will never know the ground truth in the surface EMG from patients with no residual movements. This is a valid concern. Nevertheless, some form of an unsupervised approach will be required for verifying the results of the current study with real data. With real data, the best detector would be the one that consistently provides the maximum separation for the probability density function of the test function from the different detectors under the rest-phase and move-phase.
Conclusions
This paper systematically investigated existing EMG detection algorithms on low SNR EMG signals simulated using three different signal models (two phenomenological – Gaussian, Laplacian models and a biophysical model) at two different SNRs (0dB and -3dB). The Modified Hodges detector – a simplified version of the threshold-based Hodges detector, introduced in the current study – was found to be the most consistent detector across the different signal models and SNRs. This detector had false positive and false negative rates of lower than 20% and a detection latency of lower than 50 ms for almost 90% of the trials on which it was tested for 0 dB SNR and more than 40% of the trials for -3 dB SNR. The two statistical detectors (Gaussian and Laplacian Approximate Generalized Likelihood Ratio) and the Fuzzy Entropy detectors have a slightly lower performance than Modified Hodges. Overall, the modified Hodges, Gaussian and Laplacian approximate generalized likelihood ratio, and fuzzy entropy detectors were identified as potential candidates for further validation with real surface EMG data on a population of severely impaired patients. The current study forms the first step towards developing a simpler, practical, and robust EMG-based human-machine interface for triggered robot-assisted therapy in severely impaired patients.
Algorithm 1: Procedure for selecting the best parameter combination for the detector type.Let the parameter set for the given detector type be .Set the parameter ranges for the individual parameters in the parameter set for the detector type, which results in different parameters combinations.For to parameter combinations:
- -Compute the output of the detector for the chosen combination of parameter values for each of the 50 trials in the training dataset.
- -Compute the cost for each of the 50 trials.
- -Compute the median and inter-quartile range of the cost values from the 50 trials.
- -Compute the overall detector performance for the trial as .
Get the best parameter combination for the detector type as the following,
Author contributions
SB conceived and brainstormed the idea with EB and VSKM. PR worked on the initial literature search and the implementation of some of the detectors. MY implemented the different EMG signal models, all the detectors, optimization of detector parameters, and the analysis of the results. AD and SB provided scientific inputs for the implementation and analysis done by MY. EB and VSKM provided critical feedback for the methodology and results. MY, AD, and SB wrote the first draft of the manuscript. All authors reviewed and approved the final submitted manuscript.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Ward NS Brander F Kelly K : Intensive upper limb neurorehabilitation in chronic stroke: outcomes from the Queen Square programme. J. Neurol. Neurosurg. Psychiatry. 2019;90:498–506. 10.1136/jnnp-2018-319954 30770457 · doi ↗ · pubmed ↗
- 2Langhorne P Coupar F Pollock A : Motor recovery after stroke: a systematic review. Lancet Neurol. 2009;8:741–754. 10.1016/S 1474-4422(09)70150-4 19608100 · doi ↗ · pubmed ↗
- 3Young J Forster A : Review of stroke rehabilitation. BMJ. 2007;334:86–90. 10.1136/bmj.39059.456794.68 17218714 PMC 1767284 · doi ↗ · pubmed ↗
- 4Israel JF Campbell DD Kahn JH : Metabolic costs and muscle activity patterns during robotic- and therapist-assisted treadmill walking in individuals with incomplete spinal cord injury. Phys. Ther. 2006;86:1466–1478. 10.2522/ptj.20050266 17079746 · doi ↗ · pubmed ↗
- 5Reinkensmeyer DJ Emken JL Cramer SC : Robotics, Motor Learning, and Neurologic Recovery. Annu. Rev. Biomed. Eng. 2004;6:497–525. 10.1146/annurev.bioeng.6.040803.140223 15255778 · doi ↗ · pubmed ↗
- 6Lewthwaite R Wulf G : Optimizing motivation and attention for motor performance and learning. Curr. Opin. Psychol. 2017;16:38–42. 10.1016/j.copsyc.2017.04.005 28813352 · doi ↗ · pubmed ↗
- 7Kaelin-Lane A Sawaki L Cohen LG : Role of voluntary drive in encoding an elementary motor memory. J. Neurophysiol. 2005;93:1099–1103. 10.1152/jn.00143.2004 15456807 · doi ↗ · pubmed ↗
- 8Lotze M Braun C Birbaumer N : Motor learning elicited by voluntary drive. Brain. 2003;126:866–872. 10.1093/brain/awg 079 12615644 · doi ↗ · pubmed ↗
