Next Article in Journal
Online Condition Monitoring of Rotating Machines by Self-Powered Piezoelectric Transducer from Real-Time Experimental Investigations
Next Article in Special Issue
The Influence of the sEMG Amplitude Estimation Technique on the EMG–Force Relationship
Previous Article in Journal
A Novel Steganography-Based Pattern for Print Matter Anti-Counterfeiting by Smartphone Cameras
Previous Article in Special Issue
Trunk Muscle Coactivation in People with and without Low Back Pain during Fatiguing Frequency-Dependent Lifting Activities
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Machine Learning for Detection of Muscular Activity from Surface EMG Signals

by
Francesco Di Nardo
1,*,
Antonio Nocera
1,
Alessandro Cucchiarelli
1,
Sandro Fioretti
1 and
Christian Morbidoni
2
1
Department of Information Engineering, Università Politecnica delle Marche, Via Brecce Bianche, 60131 Ancona, Italy
2
Department of Management and Business Administration, University of Chieti-Pescara, 65127 Pescara, Italy
*
Author to whom correspondence should be addressed.
Sensors 2022, 22(9), 3393; https://doi.org/10.3390/s22093393
Submission received: 18 March 2022 / Revised: 21 April 2022 / Accepted: 27 April 2022 / Published: 28 April 2022

Abstract

:
Background: Muscular-activity timing is useful information that is extractable from surface EMG signals (sEMG). However, a reference method is not available yet. The aim of this study is to investigate the reliability of a novel machine-learning-based approach (DEMANN) in detecting the onset/offset timing of muscle activation from sEMG signals. Methods: A dataset of 2880 simulated sEMG signals, stratified for signal-to-noise ratio (SNR) and time support, was generated to train a hidden single-layer fully-connected neural network. DEMANN’s performance was evaluated on simulated sEMG signals and two different datasets of real sEMG signals. DEMANN was validated against different reference algorithms, including the acknowledged double-threshold statistical algorithm (DT). Results: DEMANN provided a reliable prediction of muscle onset/offset in simulated and real sEMG signals, being minimally affected by SNR variability. When directly compared with state-of-the-art algorithms, DEMANN introduced relevant improvements in prediction performances. Conclusions: These outcomes support DEMANN’s reliability in assessing onset/offset events in different motor tasks and the condition of signal quality (different SNR), improving reference-algorithm performances. Unlike other works, DEMANN’s adopts a machine learning approach where a neural network is trained by only simulated sEMG signals, avoiding the possible complications and costs associated with a typical experimental procedure, making this approach suitable to clinical practice.

1. Introduction

Assessing muscle-recruitment timing is relevant in different fields, including clinical gait analysis and electromyography-driven assistive devices [1,2]. Traditionally, onset/offset events are detected by visual inspection of surface electromyographic (sEMG) signals by trained experts [3]. However, visual inspection may be time-consuming, not completely reproducible/repeatable, and not suitable for large datasets [4]. A further classical approach is represented by threshold-based automatic methods [5]. Among these, the double-threshold statistical algorithm (DT) is a robust approach, and nowadays it is still widely adopted for clinical and research purposes [6,7]. Further approaches are typically developed based on time-frequency analysis [8,9,10,11] and signal filtering by a Teager-Kaiser energy operator (TKEO) [12]. As reported [4,13], performances of the above-mentioned approaches could be significantly affected by the relative amount of background noise compared to the magnitude of the actual sEMG signal, i.e., low values of the signal-to-noise ratio (SNR). A further issue to consider is that the majority of these approaches do not take into account those conditions where SNR is not constant throughout the signal acquisition, such as during prolonged tasks (walking, running, cycling). Intra-signal variability of SNR during sEMG recording could be ascribed mainly to the change of noise power, due to the alteration of electrode–skin contact characteristics or to the changes in the ground reference level [7]. This could strongly affect the onset-offset event detection in those portions of the sEMG signal where SNR deteriorates.
Machine/deep learning has proven to be effective in interpreting sEMG signals for different purposes [14], such as to classify gestures [15], to detect muscle fatigue [16], and to investigate human–machine interaction [17]. Different models were adopted: convolutional and recurrent neural networks for muscle force estimation [18], unsupervised competitive learning for assessing muscle recruitment during pregnancy [19], and multi-layer perceptron to classify neuromuscular disorders [20,21]. Support vector machines were largely applied to the sEMG signal for classification purposes [22,23] and for the detection of physiological patterns and parameters [24,25]. Attempts were made even for characterizing the walking task, with particular focus on classifying gait phases and assessing gait [26,27,28,29].
In spite of the presence of a large literature on the machine-learning based interpretation of sEMG signals, this approach is scarcely adopted to face the challenge of assessing the timing of muscle activation. The problem to solve is essentially an sEMG-based prediction of a transition between the period when the muscle is silent and the period when the muscle is active, i.e., to discriminate between actual sEMG activity and noise. Given that, the possibility of adopting a machine learning approach that learns to interpret the shape of the sEMG signals for assessing muscle-activation onset and offset seems to be a feasible solution. A very recent study proposed by Ghisleri et al. adopted long short-term memory (LSTM) recurrent neural networks (RNN) for detecting muscle activity [30]. Very encouraging outcomes were achieved in this study by using a very diversified dataset of sEMG signals to train the network, including simulated signals, signals from able-bodied subjects, and signals from patients affected by neurological or orthopedic pathologies. To run this approach, a large dataset of real sEMG signals from many different subjects is needed. However, recruiting an adequate number of subjects to build the dataset could be a challenging task. This is particularly true if patients affected by different pathologies are included, as in this case. Thus, an alternative way that considers a less demanding approach to neural-network training could be valuable. A first preliminary (and at the moment the only) attempt to provide a different approach to the training phase was proposed, based on the idea of including only simulated sEMG signals in the training procedure [31]. This study used the wavelet spectrogram of sEMG signals as the input to the network. Model performances were provided only in terms of absolute latency of onset-timing detection. Validation performed against two literature methods [32] showed promising results in terms of latency, encouraging research to continue along this path. However, the prediction of the offset event is not provided, and the model performances are tested only in a single subject, questioning the clinical impact of this approach and the reliability of the validation procedure.
The goal of the present study was to investigate the suitability of a novel machine-learning-based approach in assessing the onset-offset timing of muscle activation, i.e., the Detector of Muscular Activity by Neural Networks (DEMANN). Specifically, the present approach aimed to predict both onset and offset timing using only simulated sEMG signals with a large range of SNR values for neural network training in order to explore a large range of SNRs without deterioration, which is often encountered in clinical environments. This aspect, together with the simple architecture of the neural network (based on a multi layer perceptron), should help to provide fast training and prediction, making this approach very suitable for clinical purposes. Thus, the main contributions that the present study would like to provide could be summarized as follows:
  • To develop a novel high-performance approach (DEMANN) that contributes to support the use of machine learning for muscle activity detection;
  • To highlight the advantages of the proposed machine-learning approach, such as the possibility of real-time applications, achieved without loss of accuracy and with respect to existing, non-machine-learning-based systems;
  • To limit the deterioration of event assessment associated with low SNRs and the large inter-signal variability of SNR, typical of clinical environments, by training the model with simulated sEMG signals with a large range of SNR values;
  • To reduce the complexity of the experimental protocol associated with model training, since no signal acquisition is needed to provide real time activation predictions.

2. Materials and Methods

The robustness of DEMANN was evaluated by a test bench of simulated sEMG signals and two datasets of real sEMG signals. Simulated and real sEMG signals underwent the same procedure described in the following sections. DEMANN was validated by a direct comparison with reference approaches on both simulated and real data.

2.1. Simulated sEMG Signals

A simulation study, using a test bench of signals, was carried out for assessing the performance of the DEMANN approach in predicting onset and offset events of muscular activity. sEMG signals acquired during cyclic movements could be modeled as the superimposition of the actual signal produced by muscle contraction and the background noise [33]. In this study, a Gaussian process with zero mean and variance σ n o i s e 2 was adopted to model the sEMG-signal where the muscle was silent and only background noise was acknowledged. To simulate the sEMG-signal portion where the muscle is recruited, the background uncorrelated noise was added to a band-limited stochastic process with zero-mean Gaussian distribution of amplitude and a fixed power level [6]. This distribution was achieved by band-pass filtering (80–120 Hz) a Gaussian series of uncorrelated samples, according to [6]. This Gaussian distribution was truncated to simulate the sEMG activity due to muscle activation. Each simulated sEMG signal was generated with a sampling frequency fs = 2000 Hz, a time window = 1 s, and a variable value of the Gaussian-distribution median, µ, ranging from 0 to 1. Different simulated sEMG signals were created varying the standard deviation, σ, and the time support, 2 × α × σ, of the Gaussian distribution, in order to simulate the physiological variability associated with the recruitment of different muscles. The variation of σ was achieved according to the desired value of SNR, where:
SNR = 10 log ( σ s i g n a l 2 ) ( σ n o i s e 2 )
Simulated sEMG signals were generated from all the different combinations of the values adopted for σ (50, 100, and 150 ms), for α (1, 1.5, 2, and 2.4), and SNR values from 1 dB to 30 dB, with step = 1. In [30], Ghisleri et al. trained LSTM recurrent neural networks by means of simulated sEMG signals, with SNR ranging from 3 dB to 30 dB. In the present paper, this SNR range was slightly expanded to consider even worse conditions.

2.2. Real sEMG Signals

Two different datasets of real sEMG signals were considered. The first dataset is available in [3] (https://github.com/TenanATC/EMG, accessed on 23 April 2021), including the ground truth. The experimental protocol consisted of acquiring sEMG signals from 18 participants performing knee extension and elbow flexion. Knee extension was performed in subjects seated in a stationary chair, with a mass (2.3 kg) applied to the right ankle. Elbow flexion was performed with a mass (2.3 kg) applied to the right wrist. sEMG probes were applied over vastus lateralis (VL) for monitoring knee extension and over biceps brachii (BB) for elbow flexion. A total of 103 sEMG signals were acquired with 0 dB < SNR < 13 dB. Three experts visually analyzed the signals and noted down the activation onsets in a randomized and double-blind fashion. Every trial was inspected twice by each expert. The average over the six onset values was the ground truth for the experiments in [3] and it was adopted also here. Further details can be found in [3].
The second dataset consisted of foot–floor contact and the sEMG data collected during 30 healthy adults walking, retrospectively taken from the database built at the Movement Analysis Lab, Università Politecnica delle Marche, Ancona, Italy and used for previous studies [28,29]. Data are freely available, consulting the public repository of medical research data PhysioNet [29,34,35]. Overweight and obese people (body mass index, BMI > 25) and subjects affected by any pathological condition, joint pain, or undergone orthopedic surgery were not considered. Gait data were captured (sampling rate: 2 kHz; resolution: 12 bit) by the multichannel recording system Step32 (Medical Technology, Torino, Italy). sEMG signals were acquired in each leg by single differential probes placed over gastrocnemius lateralis (GL), tibialis anterior (TA), and vastus lateralis (VL). SNR values ranged between 3 dB and 30 dB. SENIAM guidelines for sEMG-sensor positioning were respected [36]. Foot–floor contact signals were measured by three footswitches placed under the heel and the first and the fifth metatarsal heads of the foot. Subjects walked barefoot at a self-selected pace for about 5 min, following an eight-shaped path, which involved natural deceleration, acceleration, and reversing. Further details are reported in [28]. The research was undertaken following the ethical principles of the Helsinki Declaration and was approved by the local ethical committee.

2.3. Signal Pre-Processing

Simulated and real sEMG signals were band-pass filtered (2nd-order Butterworth filter, cut-off frequency 10–500 Hz). Then, signals were pre-processed to extract the linear envelope (LE), the root mean square (RMS), and the wavelet scalogram, which were concomitantly used as input to the neural network. LE was extracted by low-pass filtering of the signal (2nd-order Butterworth filter; cut-off frequency 5 Hz). RMS was extracted by computing the following formula over overlapping sliding 60-sample windows that scan the whole signal:
RMS = 1 T   0 T | x ( t ) | 2   d t
Continuous wavelet transform (CWT) was used for providing energy localization in the time-frequency domain of sEMG signals in terms of CWT scalogram function, PsEMG, defined as the square of the absolute value of CWT coefficients, WsEMG:
P s E M G   ( a , b ) = | W s E M G   ( a , b ) | 2
Wavelet transform was implemented by adopting Morse of order 4 with 6 levels of decomposition as mother wavelet.

2.4. Data Preparation

To adopt the most suitable input to the neural network, preliminary experiments were performed, evaluating four different alternatives: LE, RMS, CWT scalogram, and their concatenation (LE + RMS + CWT). The concatenation consisted of a min–max normalization of the outputs of the different processing procedures, thus mapping the values in a [0, 1] range, and a concatenation of outputs of the different processing procedures (Figure 1). These choices were motivated by the related literature, where LE and RMS of the sEMG proved to be suitable signals to train the neural network for gait analysis [27,28,29], even if the prediction tasks were different from the one addressed here. Outputs of time-frequency analysis (spectrograms, scalograms) were also features often used in sEMG analysis, as for example in [31] to predict muscle activations. Before training the classifier, the concatenated vector was segmented in overlapping sliding windows of 10 samples, where each window was shifted of one sample with respect to the previous window. Each window was used to label that single sample, according to the value of the related ground truth in the window. The single sample was labeled as 1 (muscle activity) or 0 (no muscle activity), according to the most frequent ground truth value identified in the window. The size of the processed windows, the simple neural network architecture, and the use of sliding windows provided a very low latency of 3–4 milliseconds, which could be suitable for real-time applications.

2.5. Training the Classifier

The classifier was a hidden single-layer (32 units) fully-connected neural network. A Rectified Linear Unit (ReLU) activation function was used, and a sigmoid function was adopted to map the network output to a 0–1 interval. The binary output was achieved by using a standard threshold of 0.5. The model was trained with a learning rate of 0.001, a batch size of 512 for 40 epochs using the standard stochastic gradient descent (SGD) optimization algorithm, and by adding a L2 regularization penalty set to 0.0001. The training set was composed of only simulated sEMG signals: 8 signals for each combination of σ (50, 100, and 150 ms) and α (1, 1.5, 2, and 2.4) were chosen, for a total of 96 signals for each SNR. Considering 30 SNR values (from 1 dB to 30 dB, step = 1), a total of 2880 simulated signals were included.
The classifier performances were evaluated on three different testing sets. The first one was composed of only simulated sEMG signals. Eight signals were generated for each combination of σ, α, and SNR. Nine different SNRs were considered, specifically 3, 6, 10, 13, 16, 20, 23, 26, and 30 dB, as suggested in [6]. A total of 864 simulated signals were achieved. No overlapping occurred between the training and testing set, i.e., none of the simulated signals generated to train the model were used during testing. The ground truth of muscle activity was the vector composed of the same number of samples of the simulated sEMG signal, where samples can assume only two values: “0” and “1”. The ground truth was “1” if the truncated Gaussian distribution assumed values > 0, “0” otherwise. The DEMANN performance was provided in terms of precision, recall, F1-score, and mean absolute error (MAE), assessed in true positives as defined in Section 2.6. MAE was the average time distance between the predicted event and the one of the same kind in the ground truth signal. A comparison of the results achieved in the first test set was reported in Table 1, in terms of the mean F1-score (±SD) of classification. The overall best F1-score was achieved by LE + RMS + CWT (Table 1). Thus, this input was adopted to feed the neural network.
The second test set was composed of 103 real sEMG signals proposed in [3]. The performance of the DEMANN approach was provided in terms of prediction accuracy and MAE, assessed in all 103 signals of the dataset.
The third test set included foot–floor contact and sEMG data collected during 30 healthy adults walking, as described in Section 2.2. Sequences of five consecutive gait cycles were selected randomly. Two experts analyzed three different versions of the same signal: raw sEMG signal, rectified band-pass-filtered sEMG signal, and RMS of the sEMG signal. Then, the experts identified onset-offset instants of muscular activity by visual inspection. The mean over the six onset values represented the ground truth for the experiments. A total of 538 events were identified (269 onsets and 269 offsets). The reference chosen for validation was the acknowledged double thresholding algorithm (DT) [5,6]. The performances were reported in terms of precision, recall, and F1-score of the event prediction.
For all the three test sets, model validation and performance were computed in signals never used during the training of the model.

2.6. Identification of sEMG Onset-Offset

To achieve the model output, segmented sEMG signals were provided as input to the trained model. Thus, the model output was composed of sequences of 0 (no muscle activity) alternating with sequences of 1 (muscle activity). This signal was chronologically scanned to identify the transitions between the two conditions: the transition from 0 to 1 identified the onset event and the transition from 1 to 0 detected the offset event. This was achieved by the following procedure: a time tolerance T of 100 ms was adopted, as suggested in [10]. Then, we acknowledged as true positive each predicted event at time tp if an event of the same kind occurred in the ground-truth signal at time tg, such that | t g t p | < T . Otherwise, the predicted event was acknowledged as false positive. Moreover, a post-processing procedure was performed, consisting of cleaning the signal by discarding those sequences of samples that were too short to be physiologically plausible; it was acknowledged, indeed, that muscle recruitments lasting less than 30 ms had no effect in controlling joint motion [6]. Thus, sequences of 0 (or sequences of 1) shorter than 60 samples were removed.

2.7. Statistics

The Shapiro-Wilk test was adopted to appraise the normality of data distribution. A two-tailed, non-paired Student’s t-test was applied to verify the significance of difference between the normally-distributed samples. The Mann-Whitney test was applied to verify the significance of difference between the non-normally-distributed samples. Statistical significance was established at 5%.

3. Results

3.1. Simulated sEMG Signals

The mean classification accuracy computed in the testing set stratified for different SNR is shown in Table 2. The accuracy on the simulated test set increased with increasing SNR from 3 dB (accuracy = 95.3%) to 23 dB (accuracy = 99.2%), and then it remained practically unaltered. Likewise, SD decreased with increasing SNR (from 4.8 to 0.7%).
Table 3 reports the mean classification performances in the testing set computed separately in the portions of sEMG signals where muscle activity was acknowledged (activity area) and where it was not (silent area). The effect of SNR on the classification performances was preserved.
While in the present study, a shallow neural network was used as a classifier, the DEMANN approach can be flexibly modified to embed a different machine-learning model. Support vector machines (SVM) are identified in literature as suitable modeling tools [22,23,24,25]. Thus, a direct comparison was performed, with results achieving replacing the neural network with a linear kernel SVM classifier on the same dataset of simulated sEMG signals. The SVM model was trained with the Stocastic Gradient Descent optimizer on a Hinge loss function and by applying a L2 regularization with coefficient 0.0001. The results of this comparison are shown in the following Table 4.
A significantly lower mean MAE (p < 0.05) was provided by the DEMANN approach for both onset and offset timing. No significant differences were detected in precision, recall, or F1-score between the performances of the two models.
Figure 2 reports an example of simulated sEMG signal, where onset and offset events predicted by DEMANN and DT approaches (rectangular lines) are highlighted and compared with the ground truth, i.e., the truncated Gaussian function used to model the simulated signal.
The average performances of the onset-offset prediction over the simulated-signal dataset provided by the DEMANN and DT approaches are reported in Table 5.
The variability of MAE in the function of α, σ, and SNR is quantified in Table 6. A color-level coded representation was adopted to allow a visual interpretation of results.
The direct comparison of performances achieved by DEMANN and DT is depicted in Figure 3, stratified for different SNR. An improvement of the F1-score of offset prediction was introduced by DEMANN for signals with SNR ≤ 6 dB (p < 0.05, Figure 3B). No significant differences were detected for SNR > 6 dB. The F1-score was comparable for onset prediction in the whole SNR range (p > 0.05, Figure 3A). Lower MAEs in onset-offset prediction were provided by DEMANN. Details of statistical significance are reported in Figure 3C,D.

3.2. Real sEMG signals

A first validation was performed on the sEMG dataset available in [3]. In [13], four onset-detection algorithms and two filtering approaches were tested on this dataset characterized by SNR ≤ 8 dB. The same 52 sEMG signals were considered here (first four lines, Table 7).
As in [13], the 52-signal dataset was split according to four ranges of increasing SNR values (step = 2 dB) to facilitate the comparison of results. The absolute error of the onset prediction provided by DEMANN is reported in Table 7, in terms of mean, standard deviation (SD), median, 25-percentile, and 75-percentile. Validation was performed against the four algorithms tested in [13]: the double-threshold statistical algorithm (DT) [6]; the wavelet-based approach (WLT) [9]; the method grounded on CUSUM logic [37]; and the technique based on profile-likelihood maximization, employing discrete Fibonacci search (PROLIFIC) [38]. DEMANN provided the lowest values of absolute error for all the metrics (Table 8), except for SD (best value = 114.8 ms; DEMANN-value =120.3 ms). Similar consideration could be performed for signals with 6 < SNR < 8 dB. For lower SNR (<6 dB), DEMANN provided performances comparable to the other algorithms (Table 8). The results of signals with 8 < SNR < 12 are also reported in Table 7. Precision, recall, and F1-score were dependent on the choice of the tolerance used to identify true positives. In this case, all the events were detected within the tolerance range, leading to a precision, recall, and F1-score of 100% for DEMANN and for all the algorithms chosen for validation.
A second validation was performed on the sEMG dataset acquired during walking (Section 2.2), with a direct comparison to the DT algorithm. Outcomes are reported in Figure 4. A significant mean increase over the whole population (p < 0.05) of recall and F1-score was provided by DEMANN, for onset and offset prediction. This improvement (p < 0.05) was preserved also considering signals from a single muscle, for both TA and for GL. No significant differences (p > 0.05) were identified in the VL signals and for all the prediction parameters.

4. Discussion

The present study was designed to test the capability of a novel machine-learning-based approach of estimating onset and offset timing of muscle activation. One of the main advantages of the present DEMANN approach is that the neural network was trained by means of only simulated sEMG signals (no real signal was needed to train the neural network), thus avoiding all the possible complications and costs associated with a typical experimental procedure. A further advantage was the running time. Without considering the processing time, which depends on the processing capability of the running device (in the case of the present neural network, it was less than 1 ms on an i-7 processor), once the model was trained, the maximum delay of activation prediction was 10 ms (the size of the windows). Although this paper did not explicitly target real-time applications, such a delay can be acceptable even under real-time constraints [26], making DEMANN suitable for the detection of muscle activity in sEMG-driven assistive devices, such as orthoses and exoskeletons. Otherwise, this could be an issue for the algorithmic (non-machine-learning) approaches. For example, the recent literature proposed a novel algorithm for detecting muscle activation in a time-frequency domain, based on Continuous Wavelet Transform (CWT) [11]. This study focused on quantifying the frequency content of the muscle activations and needed to detect muscle activation in the time domain in order to properly compute the frequency range (maximum and minimum). This approach could be very useful for specific aims and could open a new way to deepen the knowledge of neuromotor disorders. However, as most of the algorithm-based approaches, it was based on the computation of a threshold value in order to identify the activation onset and offset [5,6,7,8,9,10,11]. Thus, a portion of the sEMG signals must be processed to compute the threshold. This introduces a time-delay of at least the duration of the chosen portion, increasing the running time. In cyclic tasks such as walking, such a portion corresponds to a complete gait cycle. This would introduce a delay of at least 1 s, limiting the application of the approach to environments where real-time application is requested, such as in sEMG-driven exoskeletons. This is not needed in the DEMANN approach, where activations are predicted on subsequent 10 ms windows. Moreover, to identify each single gait cycle, kinematic or dynamic data are needed, such as signals from foot-switch sensors, pressure mats, stereo-photogrammetric systems, and inertial measurements units. This introduces a further complexity in experimental settings, potentially raising the costs, the time consumption, and the intrusiveness on patients. DEMANN does not suffer of these limitations, as it is based on a “blind” segmentation in short time segments.
In the present study, DEMANN proved to provide high performances in three different datasets: (1) a test bench of 864 simulated sEMG signals; (2) 103 real sEMG signals acquired in vastus lateralis during knee extension and in biceps brachii during elbow flexion; and (3) real sEMG signals from gastrocnemius lateralis, tibialis anterior, and vastus lateralis collected during 30 subjects walking. Details are reported in the following two sections.

4.1. Simulated sEMG Signals

DEMANN provided a high classification performance, quantified by a mean accuracy (±SD) of 97.8 ± 3.0% and supported by the accuracy = 95.3% in the worst-case scenario (SNR = 3 dB, Table 2). Differences due to increasing SNR values were very small (<4%), suggesting a good robustness to SNR variability. The classification performances of activity vs. silent area confirmed these findings (Table 3).
The effective classification capability and the efficient post-processing of model output provided mean prediction very close to 100% (Table 5). The variability of MAE in the function of α, σ, and SNR is reported in Table 6. Independently from the SNR effect, MAE increased where α and σ assumed the highest values. This means that the quality of prediction worsened, enlarging the activation time-duration, being the time support (i.e., the duration of a single activation) defined as 2 × α × σ. However, for activations lasting up to 45% of the simulated-signal duration (450 ms), MAE was <15 ms for both onset and offset predictions, except for sporadic low-SNR situations (<6 dB). MAE > 50 ms was reported mainly for those activations characterized by the concomitant conditions of time durations > 60% of the simulated-signal duration (600 ms) and SNR < 10 dB (red areas, Table 6). It is worth noticing that, in cyclic tasks such as walking, a single muscle activation longer than 50% of signal period (gait cycle, for walking) is rare. Continuous muscular recruitment longer than 60% of the gait cycle is practically not realistic during walking. Muscle groups such as ankle plantar flexors (gastrocnemius, soleus, peroneus) and knee extensors and flexors (vastii, rectus femoris, biceps femoris) are typically recruited for short periods, covering up to 35% of the gait cycle [39]. Only ankle dorsi flexors (tibialis anterior, extensor digitorum longus) may rarely present activations that last up to 50% of the gait cycle. Thus, for most practical applications, DEMANN can provide onset-offset estimation affected by MAE < 20 ms for a wide SNR range (3–30 dB), confirming a good classifier robustness for SNR variability.
The efficiency of the DEMANN approach was firstly proved versus a different machine-learning model. The support vector machine (SVM) was chosen among the models proposed in the literature as a suitable tool for this purpose [22,23,24,25]. A comparison, in the whole dataset of 864 simulated sEMG signals, specifically generated for the current experiments, showed DEMANN outperforming SVM, in terms of both onset and offset MAE (Table 4). Moreover, the DEMANN robustness was supported by comparison with the DT algorithm on the same simulated data (Table 5). DEMANN predicted offset values with better accuracy for the lowest SNR values (SNR < 6; Figure 3B). Moreover, DEMANN provided F1-score = 100% in offset prediction for SNR ≥ 10 dB; DT only for SNR ≥ 13. Likewise, mean offset MAE over the whole dataset was reduced in the DEMANN prediction, compared to DT (Table 5, p < 0.05). This was true also considering each single SNR value (Figure 3D); the reduction was significant (p < 0.05) for SNR = 3 and for SNR ≥ 16. An absence of statistical significance for 6 ≤ SNR ≤ 13 was likely due to the very large mean SD (28.8 ms) associated with the mean MAE computed over DT predictions in this range. Particularly relevant was the 47% reduction of MAE for SNR = 3 dB, suggesting that DEMANN improved DT performances especially in the lowest SNR values. Although an overall reduction of onset-MAE was visible in the DEMANN prediction (Figure 3C), no significant difference was detected.
One of the most reliable sEMG timing detectors reported in the literature is the wavelet-based approach described in [10]. In that study, the robustness of algorithm performances was also tested on simulated sEMG signals. However, a suitable comparison of the results of the current study with those reported in [10] was hard to accomplish because of the many differences in the generation of the simulated signals (different values of α, σ, and SNR) and in the metrics used to evaluate the algorithm performances (MAE in the present study and bias in [10]). Nevertheless, in the attempt of giving the readers further tools to evaluate the robustness of the present approach, the bias has been computed also in the present data as the relative (with sign) value of the time distance between the predicted and the ground-truth value. Results computed in the signals characterized by SNR = 20 dB (the only value in common between the present study and the one reported in [10]) were compared with those reported in [10]: mean bias was 1.7 ms for DEMANN vs. 7.1 ms in [10] for the onset and −2.8 ms for DEMANN vs. 4.1 ms in [10] for the offset. Signs “−” and “+” were adopted to indicate that the predicted event occurred earlier and later than the corresponding value in the ground-truth signal, respectively.

4.2. Real sEMG Signals

The dataset introduced in [3] was mainly chosen for the specific characteristics of the motor tasks (knee extension and elbow flexion), which allow for achieving a reliable detection of the onset event and consequently a trustworthy ground truth. Only onset events were tested, because the ground truth for offset events was not available in [3]. Outcomes of the application of DEMANN to this dataset are shown in Table 7. At first glance, it seems that a substantial difference exists between MAE values obtained for the simulated (Table 5) and real sEMG signals when using DEMANN. However, considering the same SNR range (3 dB ≤ SNR ≤ 12 dB), the distance between the two MAE values was strongly reduced (MAE-simulated = 19.1 ± 25.5 ms vs. MAE-real = 38.5 ± 56.4 ms); MAE and SD are about twice as many in real signals. This difference may be mainly due to a couple of reasons: (1) the neural network was trained with only simulated signals; (2) the larger variability of real sEMG signals due to the eight-shaped path followed by subjects during the experimental procedure that introduced further sEMG variability (caused by curves, reversing, deceleration, and acceleration [40]) and thus affected the performance of classification and prediction.
Table 8 highlights that the DEMANN approach globally outperformed the performance of the algorithms tested in [13], providing: (1) the lowest absolute error values over the whole 52-signal dataset (SNR ≤ 8 dB) for all considered metrics; (2) a relevant reduction of mean and median values over the whole 52-signal dataset of absolute error compared to the best value (ETKEO) reported for DT (mean 31.4%; median 21.8%), WLT (mean 28.7%; median 31.0%), CUSUM (mean 20.3%; median 31.0%), and PROLIFIC (mean 24.6%; median comparable); (3) the same result also for the signals with 6 dB < SNR < 8 dB; and 4) performances comparable with those achieved by the four algorithms, for SNR < 4 dB. As conducted in [13], this dataset was adopted to evaluate the performance of the proposed approach on sEMG signals characterized by a range of low SNR (≤12 dB). For 6 dB ≤ SNR ≤ 12 dB, absolute error was practically not affected by SNR variability (Table 7). It was reported that, in limb movement studies, time differences from stimulus to sEMG onset with neurological diseases, aging, and postural sets may be as low as 20 ms [41]. The performances of DEMANN in the SNR range from 6 dB to 12 dB complied with these requirements. For lower SNR values (<6 dB), the absolute error was proportionally increasing with decreasing SNR, up to 200 ms for SNR < 2 dB. For this SNR range, and for these specific motor tasks (knee extension and elbow flexion), all the algorithms considered in Table 8 reported high values of absolute error, not complying with the abovementioned clinical needs. However, for these very low SNR values, the identification of onset timing by visual inspection could be very hard also when performed by actual experts, as shown in [13]. Thus, onset prediction is affected not only by the reduction of algorithm performances but also by the uncertainty associated with ground truth identification. In our opinion, this consideration may contribute to explain the high values of absolute error, especially for SNR < 4 dB. This would contribute to also explain the fact that, for similar SNR (=3 dB), the mean MAE provided by DEMANN in the simulated signals was around 20 ms (Figure 3C).
Since walking is one of the most useful tasks to obtain insights on human movement, DEMANN was tested also on a dataset of sEMG data collected during 30 healthy adults walking. Despite the high data variability due to curves, reversing, deceleration, and acceleration during the eight-shaped path, prediction performances were >90% for both the onset and offset prediction (Figure 4). Performances provided by DEMANN were validated vs. the DT algorithm. Significantly higher values (p < 0.05, Figure 4) of recall and F1-score for onset and offset prediction showed that DEMANN outperformed the DT algorithm in correctly identifying these events. This was true (p < 0.05) also considering the mean values over the signals from the same muscle, in the case of TA and GL. Otherwise, for VL, no significant difference was detected between the two approaches. TA and GL are mainly ankle flexor muscles and VL is a knee extensor; it is acknowledged that ankle muscles are typically more involved in the walking task [39]. Given that differences between DEMANN and DT were significant for TA and GL but not VL, one interesting direction to follow in the future studies could be the analysis of possible muscle specificity of the present approach.

5. Conclusions

The present outcomes suggest the feasibility of predicting onset-offset timing of muscular recruitment of the proposed machine-learning-based method, which was able to provide high performances also in condition of large variability of the sEMG signal. The adoption of DEMANN introduced several further advantages, such as a running time compatible with real time applications, a small deterioration of event detection due to low SNR values and to a large within-signal variability of SNR, and reduced complexity of the experimental protocol associated with model training, since no real signal is needed. All these advantages make this approach suitable for clinical practice and for being included in the procedure for controlling sEMG-driven assistive devices, such as orthoses and exoskeletons.
The DEMANN approach was validated in simulated sEMG signals and in real sEMG signals acquired in young able-bodied subjects, but not in elderly and pathological populations. This is acknowledged as a limitation of the present study. Future studies will be focused on assessing the reliability of the DEMANN approach to provide a robust prediction of activation events also in these populations and on the possible improvements to implement for adapting the model to different conditions and environments. While the present study showed that relatively simple supervised methods, such as shallow neural networks, can be suitable for muscle activation detection, further experiments should be made to determine an optimal classifier to embed in the detecting system.

Author Contributions

Conceptualization, F.D.N. and C.M.; methodology, F.D.N. and C.M.; software, C.M. and A.N.; validation, A.N., C.M. and F.D.N.; investigation, C.M. and F.D.N.; resources, F.D.N. and S.F.; data curation, F.D.N., A.N. and C.M.; writing—original draft preparation, F.D.N.; writing—review and editing, F.D.N., C.M., A.C., A.N. and S.F.; supervision, A.C. and S.F. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

The study was conducted in accordance with the Declaration of Helsinki. Ethical review and approval were waived for this study because only simulated data and data available in the literature and already employed in previous studies were used.

Informed Consent Statement

Informed consent was obtained from all subjects involved in the study. Written informed consent has been obtained from the patients to publish this paper.

Data Availability Statement

Data supporting reported results can be found by contacting the corresponding author.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Sutherland, D.H. The evolution of clinical gait analysis part l: Kinesiological EMG. Gait Posture 2001, 14, 61–70. [Google Scholar] [CrossRef]
  2. Rosati, S.; Ghislieri, M.; Dotti, G.; Fortunato, D.; Agostini, V.; Knaflitz, M.; Balestra, G. Evaluation of Muscle Function by Means of a Muscle-Specific and a Global Index. Sensors 2021, 21, 7186. [Google Scholar] [CrossRef] [PubMed]
  3. Tenan, M.S.; Tweedell, A.J.; Haynes, C.A. Analysis of statistical and standard algorithms for detecting muscle onset with surface electromyography. PLoS ONE 2017, 12, e0177312. [Google Scholar] [CrossRef] [PubMed]
  4. Selvan, S.E.; Allexandre, D.; Amato, U.; Yue, G.H. Unsupervised Stochastic Strategies for Robust Detection of Muscle Activation Onsets in Surface Electromyogram. IEEE Trans. Neural Syst. Rehabil. Eng. 2018, 26, 1279–1291. [Google Scholar] [CrossRef]
  5. Staude, G.; Flachenecker, C.; Daumer, M.; Wolf, W. Onset detection in surface electromyographic signals: A systematic comparison of methods. EURASIP J. Appl. Signal Process. 2001, 2001, 867853. [Google Scholar] [CrossRef] [Green Version]
  6. Bonato, P.; D’Alessio, T.; Knaflitz, M. A statistical method for the measurement of muscle activation intervals from surface myoelectric signal during gait. IEEE Trans. Biomed. Eng. 1998, 45, 287–299. [Google Scholar] [CrossRef]
  7. Severini, G.; Conforto, S.; Schmid, M.; D’Alessio, T. Novel formulation of a double threshold algorithm for the estimation of muscle activation intervals designed for variable SNR environments. J. Electromyogr. Kinesiol. 2012, 22, 878–885. [Google Scholar] [CrossRef]
  8. Olmo, G.; Laterza, F.; Lo Presti, L. Matched wavelet approach in stretching analysis of electrically evoked surface EMG signal. Signal Process. 2000, 80, 671–684. [Google Scholar] [CrossRef]
  9. Merlo, A.; Farina, D.; Merletti, R. A fast and reliable technique for muscle activity detection from surface EMG signals. IEEE Trans. Biomed. Eng. 2003, 50, 316–323. [Google Scholar] [CrossRef]
  10. Vannozzi, G.; Conforto, S.; D’Alessio, T. Automatic detection of surface EMG activation timing using a wavelet transform based method. J. Electromyogr. Kinesiol. 2010, 10, 767–772. [Google Scholar] [CrossRef]
  11. Di Nardo, F.; Basili, T.; Meletani, S.; Scaradozzi, D. Wavelet-Based Assessment of the Muscle-Activation Frequency Range by EMG Analysis. IEEE Access 2022, 10, 9793–9805. [Google Scholar] [CrossRef]
  12. Li, X.; Zhou, P.; Aruin, A.S. Teager–Kaiser energy operation of surface EMG improves muscle activity onset detection. Ann. Biomed. Eng. 2007, 35, 1532–1538. [Google Scholar] [CrossRef] [PubMed]
  13. Tigrini, A.; Mengarelli, A.; Cardarelli, S.; Fioretti, S.; Verdini, F. Improving EMG Signal Change Point Detection for Low SNR by Using Extended Teager-Kaiser Energy Operator. IEEE Trans. Med. Robot. Bionics 2020, 2, 661–669. [Google Scholar] [CrossRef]
  14. Faust, O.; Hagiwara, Y.; Hong, T.J.; Lih, O.S.; Acharya, U.R. Deep learning for healthcare applications based on physiological signals: A review. Comput. Methods Programs Biomed. 2018, 161, 1–13. [Google Scholar] [CrossRef] [PubMed]
  15. Lee, K.H.; Min, J.Y.; Byun, S. Electromyogram-Based Classification of Hand and Finger Gestures Using Artificial Neural Networks. Sensors 2021, 22, 225. [Google Scholar] [CrossRef]
  16. Wang, J.; Sun, S.; Sun, Y. A Muscle Fatigue Classification Model Based on LSTM and Improved Wavelet Packet Threshold. Sensors 2021, 21, 6369. [Google Scholar] [CrossRef]
  17. Xiong, D.; Zhang, D.; Zhao, X.; Zhao, Y. Deep Learning for EMG-based Human-Machine Interaction: A Review. IEEE/CAA J. Autom. Sin. 2021, 8, 512–533. [Google Scholar] [CrossRef]
  18. Xu, L.; Chen, X.; Cao, S.; Zhang, X.; Chen, X. Feasibility Study of Advanced Neural Networks Applied to sEMG-Based Force Estimation. Sensors 2018, 18, 3226. [Google Scholar] [CrossRef] [Green Version]
  19. Moslem, B.; Diab, M.; Khalil, M.; Marque, C. Classification of multichannel uterine EMG signals by using unsupervised competitive learning. In Proceedings of the 2011 IEEE Workshop on Signal Processing Systems (SiPS), Beirut, Lebanon, 4–7 October 2011; pp. 267–272. [Google Scholar] [CrossRef]
  20. Subasi, A.; Yilmaz, M.; Ozcalik, H.R. Classification of EMG signals using wavelet neural network. J. Neurosci. Methods 2006, 156, 360–367. [Google Scholar] [CrossRef]
  21. Elamvazuthi, I.; Duy, N.; Ali, Z.; Su, S.; Khan, M.; Parasuraman, S. Electromyography (EMG) based Classification of Neuromuscular Disorders using Multi-Layer Perceptron. Procedia Comput. Sci. 2015, 76, 223–228. [Google Scholar] [CrossRef] [Green Version]
  22. Subasi, A. Classification of EMG signals using PSO optimized SVM for diagnosis of neuromuscular disorders. Comput. Biol. Med. 2013, 43, 576–586. [Google Scholar] [CrossRef]
  23. Cai, S.; Chen, Y.; Huang, S.; Wu, Y.; Zheng, H.; Li, X.; Xie, L. SVM-Based Classification of sEMG Signals for Upper-Limb Self-Rehabilitation Training. Front. Neurorobot. 2019, 13, 31. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  24. Li, S.S.W.; Chu, C.C.F.; Chow, D.H.K. EMG-based lumbosacral joint compression force prediction using a support vector machine. Med. Eng. Phys. 2019, 74, 15–120. [Google Scholar] [CrossRef] [PubMed]
  25. Quitadamo, L.R.; Cavrini, F.; Sbernini, L.; Riillo, F.; Bianchi, L.; Seri, S.; Saggio, G. Support vector machines to detect physiological patterns for EEG and EMG-based human-computer interaction: A review. J. Neural Eng. 2017, 14, 011001. [Google Scholar] [CrossRef] [PubMed]
  26. Kidziński, Ł.; Delp, S.; Schwartz, M. Automatic real-time gait event detection in children using deep neural networks. PLoS ONE 2019, 14, e0211466. [Google Scholar] [CrossRef] [Green Version]
  27. Nazmi, N.; Abdul Rahman, M.; Yamamoto, S.I.; Ahmad, S. Walking gait event detection based on electromyography signals using artificial neural network. Biomed. Signal Process. Control 2019, 47, 334–343. [Google Scholar] [CrossRef]
  28. Di Nardo, F.; Morbidoni, C.; Mascia, G.; Verdini, F.; Fioretti, S. Intra-subject approach for gait-event prediction by neural network interpretation of EMG signals. Biomed. Eng. Online 2020, 19, 58. [Google Scholar] [CrossRef]
  29. Di Nardo, F.; Morbidoni, C.; Cucchiarelli, A.; Fioretti, S. Influence of EMG-Signal Processing and Experimental Set-up on Prediction of Gait Events by Neural Network. Biomed. Signal Process. Control 2021, 63, 102232. [Google Scholar] [CrossRef]
  30. Ghislieri, M.; Cerone, G.L.; Knaflitz, M.; Agostini, V. Long short-term memory (LSTM) recurrent neural network for muscle activity detection. J. Neuroeng. Rehabil. 2021, 18, 153. [Google Scholar] [CrossRef]
  31. Khowailed, I.A.; Abotabl, A. Neural muscle activation detection: A deep learning approach using surface electromyography. J. Biomech. 2019, 95, 109322. [Google Scholar] [CrossRef]
  32. Staude, G.H. Precise onset detection of human motor responses using a whitening filter and the log-likelihood-ratio test. IEEE Trans. Biomed. Eng. 2001, 48, 1292–1305. [Google Scholar] [CrossRef]
  33. Agostini, V.; Knaflitz, M. An algorithm for the estimation of the signal-to-noise ratio in surface myoelectric signals generated during cyclic movements. IEEE Trans. Biomed. Eng. 2012, 59, 219–225. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  34. Di Nardo, F.; Morbidoni, C.; Fioretti, S. Surface Electromyographic Signals Collected during Long-Lasting Ground Walking of Young Able-Bodied Subjects (Version 1.0.0). PhysioNet. Available online: https://physionet.org/content/semg/1.0.0/ (accessed on 17 March 2022).
  35. Goldberger, A.; Amaral, L.; Glass, L.; Hausdorff, J.; Ivanov, P.C.; Mark, R.; Mietus, J.E.; Moody, G.B.; Peng, C.K.; Stanley, H.E. PhysioBank, PhysioToolkit, and PhysioNet: Components of a new research resource for complex physiologic signals. Circulation 2000, 101, e215–e220. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  36. Hermens, H.; Freriks, B.; Disselhorst-Klug, C.; Rau, G. Development of recommendations for SEMG sensors and sensor placement procedures. J. Electromyogr. Kinesiol. 2000, 10, 361–374. [Google Scholar] [CrossRef]
  37. Basseville, M.; Nikiforov, I. Detection of Abrupt Changes: Theory and Application; Prentice-Hall: Englewood Cliffs, NJ, USA, 1993; Volume 104. [Google Scholar]
  38. Suviseshamuthu, E.S.; Allexandre, D.; Amato, U.; Vecchia, B.D.; Guang, H.Y. Prolific: A fast and robust profile-likelihood-based muscle onset detection in electromyogram using discrete Fibonacci search. IEEE Access 2020, 8, 105362–105375. [Google Scholar] [CrossRef]
  39. Perry, J. Gait Analysis—Normal and Pathological Function, 2nd ed.; Slack Inc.: West Deptford, NJ, USA, 1992. [Google Scholar]
  40. Winter, D.A.; Yack, H.J. EMG profiles during normal human walking: Stride-to-stride and inter-subject variability. Electroencephalogr. Clin. Neurophysiol. 1987, 7, 402–411. [Google Scholar] [CrossRef]
  41. Hodges, P.W.; Bui, B.H. A comparison of computer-based methods for the determination of onset of muscle contraction using electromyography. Electroencephalogr. Clin. Neurophysiol. 1996, 101, 511–519. [Google Scholar]
Figure 1. Realization of sEMG vectors used as input to DEMANN model.
Figure 1. Realization of sEMG vectors used as input to DEMANN model.
Sensors 22 03393 g001
Figure 2. Example of simulated sEMG signal (blue line). The truncated Gaussian function used to model the simulated signal (green dashed line), predictions by DEMANN (red rectangle), and DT (yellow rectangle) of onset and offset events are superimposed.
Figure 2. Example of simulated sEMG signal (blue line). The truncated Gaussian function used to model the simulated signal (green dashed line), predictions by DEMANN (red rectangle), and DT (yellow rectangle) of onset and offset events are superimposed.
Sensors 22 03393 g002
Figure 3. Mean F1-score computed in onset (panel A) and offset (panel B) prediction and mean MAE computed in onset (panel C) and offset (panel D) prediction for each SNR value by DEMANN (blue bars) vs. DT algorithm (red bars). * indicates statistically significant difference.
Figure 3. Mean F1-score computed in onset (panel A) and offset (panel B) prediction and mean MAE computed in onset (panel C) and offset (panel D) prediction for each SNR value by DEMANN (blue bars) vs. DT algorithm (red bars). * indicates statistically significant difference.
Sensors 22 03393 g003
Figure 4. Mean (±SD) precision, recall, and F1-score computed in the onset and offset prediction by the DEMANN approach (blue bars) vs. the DT algorithm (red bars) achieved in real sEMG data during able-bodied walking. * indicates statistically significant difference.
Figure 4. Mean (±SD) precision, recall, and F1-score computed in the onset and offset prediction by the DEMANN approach (blue bars) vs. the DT algorithm (red bars) achieved in real sEMG data during able-bodied walking. * indicates statistically significant difference.
Sensors 22 03393 g004
Table 1. Mean classification accuracy in the simulated test dataset associated with different inputs.
Table 1. Mean classification accuracy in the simulated test dataset associated with different inputs.
InputF1-Score ± SD (%)
Activity AreaSilent AreaMacroWeighted
LE95.0 ± 0.487.9 ± 0.891.4 ± 0.692.8 ± 0.5
RMS96.4 ± 0.391.5 ± 0.693.9 ± 0.494.9 ± 0.4
CWT98.0 ± 0.295.5 ± 0.496.8 ± 0.397.3 ± 0.2
LE + RMS + CWT98.3 ± 0.196.0 ± 0.397.2 ± 0.297.6 ± 0.2
Table 2. Mean classification accuracy stratified for different SNR.
Table 2. Mean classification accuracy stratified for different SNR.
SNR (dB)Accuracy (%)
395.3 ± 4.8
696.2 ± 4.3
1097.3 ± 3.3
1398.1 ± 2.1
1698.4 ± 2.0
2098.9 ± 1.4
2399.2 ± 0.9
2699.1 ± 1.0
3099.1 ± 0.7
Mean ± SD97.8 ± 3.0
Table 3. Mean classification performances computed in the test set separately for the activity area and the silent area, stratified for different SNR.
Table 3. Mean classification performances computed in the test set separately for the activity area and the silent area, stratified for different SNR.
Activity Area
SNR (dB)Precision (%)Recall (%)F1-Score (%)
395.1 ± 7.691.6 ± 10.392.7 ± 6.1
696.0 ± 6.193.4 ± 8.294.2 ± 4.2
1097.8 ± 3.794.2 ± 7.395.7 ± 3.8
1398.8 ± 2.395.2 ± 6.296.7 ± 3.2
1698.8 ± 2.096.5 ± 4.597.5 ± 2.4
2098.7 ± 1.597.9 ± 3.198.2 ± 1.5
2398.9 ± 1.698.3 ± 2.498.5 ± 1.3
2698.5 ± 2.298.5 ± 2.198.5 ± 1.4
3098.4 ± 2.098.3 ± 4.298.3 ± 2.4
Mean (±SD)97.9 ± 4.096.0 ± 6.496.7 ± 3.8
Silent Area
SNR (dB)Precision (%)Recall (%)F1-Score (%)
394.8 ± 8.097.8 ± 4.796.0 ± 5.0
694.8 ± 9.598.8 ± 1.896.5 ± 5.4
1096.3 ± 6.599.3 ± 1.397.6 ± 3.7
1397.4 ± 3.899.4 ± 1.198.4± 1.9
1697.7 ± 4.699.5 ± 0.998.6 ± 2.6
2098.4 ± 3.899.5 ± 0.798.9 ± 2.0
2399.1 ± 2.199.6 ± 0.799.3 ± 1.1
2699.0 ± 2.899.3 ± 1.099.1 ± 1.5
3099.3 ± 1.499.3 ± 0.999.3 ± 0.7
Mean (±SD)97.4 ± 5.699.2 ± 1.9 98.2 ± 3.3
Table 4. Mean (±SD) performances of the onset and offset prediction provided by DEMANN and SVM over all the simulated sEMG signals.
Table 4. Mean (±SD) performances of the onset and offset prediction provided by DEMANN and SVM over all the simulated sEMG signals.
DEMANNSVM
OnsetOffsetOnsetOffset
MAE (ms)10.0 ± 17.5 *10.1 ± 17.3 §20.6 ± 28.2 *19.3 ± 23.8 §
Precision (%)99.0 ± 9.699.4 ± 7.497.0 ± 16.998.5 ± 11.9
Recall (%)99.2 ± 9.099.5 ± 6.897.1 ± 16.898.6 ± 11.7
F1-score (%)99.0 ± 9.299.4 ± 9.697.0 ± 16.898.5 ± 11.8
* means that the difference between the two mean onset values is statistically significant (p < 0.05); § means that the difference between the two mean offset values is statistically significant (p < 0.05).
Table 5. Mean (±SD) performances of onset and offset prediction provided by DEMANN and DT over all the simulated signals.
Table 5. Mean (±SD) performances of onset and offset prediction provided by DEMANN and DT over all the simulated signals.
DEMANNDT
OnsetOffsetOnsetOffset
MAE (ms)10.0 ± 17.510.1 ± 17.3 *11.5 ± 21.916.1 ± 26.9 *
Precision (%)99.0 ± 9.699.4 ± 7.498.5 ± 12.196.9 ± 17.4
Recall (%)99.2 ± 9.099.5 ± 6.898.4 ± 12.396.8 ± 17.4
F1-score (%)99.0 ± 9.299.4 ± 9.698.5 ± 12.296.9 ± 17.4
* means that the difference between the two mean values is statistically significant (p < 0.05).
Table 6. Variability of MAE in the function of simulated-signal parameters α, σ, and SNR (dB) for onset and offset prediction.
Table 6. Variability of MAE in the function of simulated-signal parameters α, σ, and SNR (dB) for onset and offset prediction.
Onset—MAE (ms)
σ = 50 msσ = 100 msσ = 150 ms
SNRα = 1α = 1.5α = 2α = 2.4α = 1α = 1.5α = 2α = 2.4α = 1α = 1.5α = 2α = 2.4
37.26.98.921.011.415.118.060.821.710.337.372.8
68.411.113.518.26.29.612.652.65.25.633.987.4
105.16.17.110.05.912.19.442.64.61.632.562.4
133.12.73.011.13.37.18.131.68.24.411.835.0
161.82.56.29.52.03.99.928.52.08.44.633.1
201.21.94.05.41.13.14.713.82.33.84.620.3
231.82.84.64.91.31.73.88.71.23.44.53.9
262.61.83.36.42.42.35.17.02.04.32.912.0
301.12.05.79.82.03.43.83.02.24.85.011.5
Offset—MAE (ms)
σ = 50 msσ = 100 msσ = 150 ms
SNRα = 1α = 1.5α = 2α = 2.4α = 1α = 1.5α = 2α = 2.4α = 1α = 1.5α = 2α = 2.4
35.26.612.129.19.814.834.855.910.213.335.1102.3
63.310.114.615.58.23.022.945.45.88.836.475.7
101.52.96.419.62.55.28.544.96.35.036.866.6
134.47.43.817.23.42.510.049.31.05.812.336.0
161.29.37.410.52.63.63.623.42.76.84.437.5
201.64.44.66.83.33.03.911.31.44.612.331.9
232.23.65.36.01.32.55.112.71.52.52.726.5
262.83.15.34.61.65.22.64.82.64.66.124.5
302.09.51.87.72.13.94.96.61.62.46.36.2
All the areas with different levels of green indicate MAE values < 10 ms. Progressively darker green indicate progressively lower MAE. All the yellow, orange, and red areas indicate MAE values ≥ 10 ms. Progressively darker colors indicate progressively higher MAE. The value of 10 ms was chosen since it was the mean MAE value over the whole dataset (Table 5).
Table 7. Absolute error of onset prediction in the function of SNR ranges in terms of mean, standard deviation (SD), median, 25-percentile, and 75-percentile.
Table 7. Absolute error of onset prediction in the function of SNR ranges in terms of mean, standard deviation (SD), median, 25-percentile, and 75-percentile.
SNR
(dB)
Number of SignalsMean
(ms)
SD
(ms)
Median (ms)25-Perc (ms)75-Perc (ms)
≤26209.9182.0131.666.9368.8
2 ÷ 410187.5163.7116.060.4338.0
4 ÷ 61576.753.777.632.7107.4
6 ÷ 82124.027.713.26.832.2
8 ÷ 102015.816.911.53.916.4
10 ÷ 12612.22.912.911.614.3
≤85292.1120.354.213.293.9
>82614.914.612.07.114.6
Table 8. Comparison among the absolute errors of the onset prediction provided in the same population by DEMANN approach and by the four algorithms introduced in Section 3.2. The best values for each parameter and each SNR are highlighted in bold.
Table 8. Comparison among the absolute errors of the onset prediction provided in the same population by DEMANN approach and by the four algorithms introduced in Section 3.2. The best values for each parameter and each SNR are highlighted in bold.
SNR
(dB)
DEMANNDTWLTCUSUMPROLIFIC
TKEOETKEOTKEOETKEOTKEOETKEOTKEOETKEO
Mean (ms)
≤2209.9733.5243.7504.5139.8827.1126.6357.9303.4
2 ÷ 4187.5225.5154.0191.5145.91143.8222.8460.0185.5
4 ÷ 676.7201.3101.3248.5165.2708.193.8371.4123.4
6 ÷ 824.0182.3116.9158.892.2618.065.5229.739.4
≤892.1259.7134.2230.9129.1769.2115.1410.4122.2
SD (ms)
≤2182.0456.4381.0578.566.9584.391.9534.6519.4
2 ÷ 4163.7115.092.0254.5146.3489.2170.4392.2185.5
4 ÷ 653.7266.9106.2335.4272.5492.292.0453.3123.4
6 ÷ 827.7305.3229.8311.4170.2579.254.8462.039.4
≤8120.3330.1203.6352.9192.3558.7114.8443.5122.2
Median (ms)
≤2131.6765.492.5208.3133.3999.0149.7111.1104.0
2 ÷ 4116.0231.2125.0121.3951134.5148.7396.7136.0
4 ÷ 677.6104.058.6122.6104.9793.555.793.850.8
6 ÷ 813.269.841.561.035.2729.048.8135.736.6
≤854.2109.669.3116.978.6958.078.6137.954.9
25-Percentile (ms)
≤266.9400.942.9127.4126.5153.890.857.656.6
2 ÷ 460.4121.187.930.333.7883.3128.9140.1124.5
4 ÷ 632.747.827.671.231.7257.123.440.420.7
6 ÷ 86.828.32519.47.835.932.330.511.7
≤813.245.231.533.025.2100.340.346.624.9
75-Percentile (ms)
≤2368.81042.9192.2861.3197.71182.1239.7409.2157.7
2 ÷ 4338.0309.1245.6191.9188.51483.9298.3746.1173.3
4 ÷ 6107.4231.9146.6223.4128.51124.8131.2680.988.6
6 ÷ 832.2107.594.2122.4130.51115.280.9884.754.8
≤893.9304.7146.5192.9146.51181.4152.6756.6125.5
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Di Nardo, F.; Nocera, A.; Cucchiarelli, A.; Fioretti, S.; Morbidoni, C. Machine Learning for Detection of Muscular Activity from Surface EMG Signals. Sensors 2022, 22, 3393. https://doi.org/10.3390/s22093393

AMA Style

Di Nardo F, Nocera A, Cucchiarelli A, Fioretti S, Morbidoni C. Machine Learning for Detection of Muscular Activity from Surface EMG Signals. Sensors. 2022; 22(9):3393. https://doi.org/10.3390/s22093393

Chicago/Turabian Style

Di Nardo, Francesco, Antonio Nocera, Alessandro Cucchiarelli, Sandro Fioretti, and Christian Morbidoni. 2022. "Machine Learning for Detection of Muscular Activity from Surface EMG Signals" Sensors 22, no. 9: 3393. https://doi.org/10.3390/s22093393

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