Next Article in Journal
Evaluating Accuracy in Five Commercial Sleep-Tracking Devices Compared to Research-Grade Actigraphy and Polysomnography
Previous Article in Journal
Decomposed Multilateral Filtering for Accelerating Filtering with Multiple Guidance Images
Previous Article in Special Issue
Application of Dynamic Mode Decomposition to Characterize Temporal Evolution of Plantar Pressures from Walkway Sensor Data in Women with Cancer
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Targeting Transcutaneous Spinal Cord Stimulation Using a Supervised Machine Learning Approach Based on Mechanomyography

1
Department of Neurology, Charité–Universitätsmedizin Berlin, Charitéplatz 1, 10117 Berlin, Germany
2
Control Systems Group, Technische Universität Berlin, Einsteinufer 17, 10587 Berlin, Germany
3
SensorStim Neurotechnology GmbH, c/o TU Berlin, Einsteinufer 17, 10587 Berlin, Germany
*
Author to whom correspondence should be addressed.
Sensors 2024, 24(2), 634; https://doi.org/10.3390/s24020634
Submission received: 18 December 2023 / Revised: 14 January 2024 / Accepted: 17 January 2024 / Published: 19 January 2024

Abstract

:
Transcutaneous spinal cord stimulation (tSCS) provides a promising therapy option for individuals with injured spinal cords and multiple sclerosis patients with spasticity and gait deficits. Before the therapy, the examiner determines a suitable electrode position and stimulation current for a controlled application. For that, amplitude characteristics of posterior root muscle (PRM) responses in the electromyography (EMG) of the legs to double pulses are examined. This laborious procedure holds potential for simplification due to time-consuming skin preparation, sensor placement, and required expert knowledge. Here, we investigate mechanomyography (MMG) that employs accelerometers instead of EMGs to assess muscle activity. A supervised machine-learning classification approach was implemented to classify the acceleration data into no activity and muscular/reflex responses, considering the EMG responses as ground truth. The acceleration-based calibration procedure achieved a mean accuracy of up to 87% relative to the classical EMG approach as ground truth on a combined cohort of 11 healthy subjects and 11 patients. Based on this classification, the identified current amplitude for the tSCS therapy was in 85%, comparable to the EMG-based ground truth. In healthy subjects, where both therapy current and position have been identified, 91% of the outcome matched well with the EMG approach. We conclude that MMG has the potential to make the tuning of tSCS feasible in clinical practice and even in home use.

1. Introduction

Damage to the upper motor neurons can lead to gait deficits, spasticity, or even full loss of motor function. Transcutaneous spinal cord stimulation (tSCS) constitutes a promising, noninvasive therapy option for these patients. Several studies describe a decrease in spasticity and even enhancement of voluntary movement through tSCS in patients with spinal cord injury [1,2,3,4,5,6]. Moreover, recent investigations have shown similar results in patients with multiple sclerosis (MS) [7,8], reporting a reduction in spasticity as well as an increase in gait velocity and improvement of postural stability.
For tSCS application, an adhesive hydrogel electrode on the lumbar spinal cord and counter electrodes on the abdomen or iliac crest conduct current through the upper body [5]. The objective is to target large- to medium-diameter afferent nerve fibers within the posterior roots, which are known to have enhancing effects on motor control and inhibiting effects on lower limb spasticity [6,9]. Prior to the application of tSCS therapy, a suitable electrode position along the spine and a therapy intensity need to be identified individually for each patient. To prevent discomfort or pain during the therapy in patients with intact body sensation, an electrode location at which a preferably low current activates afferent fibers is desired. Typically, a calibration procedure is conducted using double stimulation pulses of increasing intensity while recording the electromyogram (EMG) of posterior root muscles (PRMs) in the legs. The EMG responses evoked by the first stimulus and their suppression after the second stimulus indicate the recruitment of afferents [10]. The placement of the back electrode can then be adjusted in a manual trial-and-error manner [8] or in an automated process [11]. In the latter, the EMG responses are classified according to the amplitude of the response to the first and suppression characteristics of the response to the second stimulation pulse. The use of EMG sensors involves time-consuming skin preparation with disinfection and abrasive paste, as well as electrode placement for several leg muscles. This procedure is usually required to take place in an expert environment to position the sensors and interpret the signals (in the case of a manual procedure). Thus, current calibration approaches are not suitable for home use and continue to hold great potential for simplification.
In this paper, we introduce a concept for simplification and automation of the calibration procedure. With this novel approach, we strive to simplify the measurement setup by using mechanomyography (MMG) instead of EMGs. Mechanomyography describes the recording of mechanical muscular activity by means of accelerometers, piezoelectric sensors, or condenser microphones [12]. The applications range from fatigue detection [13,14] and examination of neuromuscular disorders [15] to prosthetic control [16]. Furthermore, previous studies have investigated MMG signals in the context of electrical evoked muscle contractions [17,18].
In our approach, we use an accelerometer-based sensor setup for activity recordings of PRMs. The accelerometers are integrated in inertial sensors, also known as inertial measurement units (IMUs) or wearables. We propose a new stimulation procedure that differs from the exclusively EMG-based tuning. In addition to double stimuli, we also apply single-pulse stimulation. We subtract the MMG response of the single stimulus from the response of the double stimulus to extract the acceleration caused by the second pulse of the double stimuli. Such a procedure is necessary because acceleration responses take much longer than EMG responses and therefore overlap in the recordings.
Calibration procedures with healthy individuals and MS patients were conducted while recording EMG and acceleration data from selected PRMs. For the first time, we deployed a machine learning (ML) approach on these data in order to automatically classify the recorded acceleration when considering the EMG classes as ground truth. Not only do IMUs simplify the process, as no skin preparation and electrode placement is necessary, but they are also associated with ecological and economical advantages, as the time savings and simplification during the preparation process decrease demand for expert knowledge and the personnel expenses. Moreover, disposable materials as EMG electrodes are avoided, which decreases the long-term costs and improves sustainability.

2. Materials and Methods

The presented approach involved several steps, which we describe extensively in the subsections following this summary. The investigation starts with EMG and IMU sensor data acquisition from the leg muscles during a tSCS calibration procedure on healthy subjects and MS patients. Subsequently, the recorded EMG and acceleration data were passed through a preprocessing pipeline. Here, we cleaned and filtered the data. In addition, the EMG signals were separated into different classes depending on the EMG’s amplitude characteristics. These class labels describe the occurrence or absence of a muscular response after a tSCS stimulus and were considered as ground truth for the subsequent machine learning approach. With this approach, we want to investigate whether muscular responses visible in acceleration signals can be classified in accordance with the EMG-based class labels. For that, we extracted characteristics (features) in the time and frequency domain from all muscular responses after a tSCS stimulus in the acceleration signals. Additionally, the metadata of each participant (e.g., age, height) as well as stimulation properties were added to this feature table. By grouping these extracted features, we generated two different feature sets. After that, three machine learning algorithms were trained and tested using the previously generated feature sets and the ground truth class labels. We trained and tested all algorithms on three datasets: only patient data, only data from healthy subjects, and a mixed dataset consisting of both groups. The output of the different algorithms includes class labels for each recorded acceleration signal. By comparing the ground truth labels and the output, we can estimate the accuracy of each algorithm. During a calibration procedure, the detected response classes provide information on each subject’s individual optimal therapy intensity and electrode position. To evaluate the performance of the classification algorithms in the context of the application, we determined these parameters from the ground truth class labels as well as from the class labels returned by the machine learning algorithms. All steps are subsequently described in more detail.

2.1. Data Acquisition Protocol

A tSCS calibration process was conducted on 11 healthy volunteers (female: 4, male: 7, age: 34.2 ± 6.9 years) and 11 MS patients (female: 6, male: 5, age: 55.9 ± 9.2 years). Individual participant characteristics are shown in Table 1. Each healthy subject underwent several calibration sessions with varying back electrode positions. The patient dataset consists of two data recordings recorded on two different days for each individual patient, to whom only one electrode position was applied per recording day. These data originate from an ongoing study, which examines the immediate effect of tSCS on gait and spasticity in MS patients. As the tuning process is not the primary focus in this study, and we strive to keep the demands of the individual patient at a low level, the number of electrode positions is minimal. However, to still investigate the electrode positions, data from several positions were recorded within the healthy cohort. In order to place a 5 × 10 cm hydrogel stimulation electrode (axion GmbH, Leonberg, Germany) on the spine, the intervertebral space L3/L4 was identified through palpation. After disinfecting the skin, the back electrode was placed on the spine. For the healthy participants, it was placed successively at three different positions: with the lower edge of the electrode 4 cm caudal to L3/L4, on L3/L4, and 4 cm cranial to L3/L4. For the subjects S4 and S10, an additional fourth calibration session with the electrode located 8 cm cranial to L3/L4 was conducted. We chose an additional, even more cranial, position due to lack of reflex activity in the quadriceps muscle, indicating that the three previously recorded positions would not be ideal for a potential therapy application. Regarding the MS patient group, only one electrode position was tested per recording day, varying from 0–4.5 cm cranial to L3/L4. Two interconnected counter electrodes of size 12 × 7 cm (axion GmbH, Leonberg, Germany) were positioned on the abdomen (cf. Figure 1A).
During one calibration session, three double (inter-pulse interval of 50 ms) and three single biphasic pulses (1 ms per phase) were applied with 5 s in between the stimulation incidences with the RehaMove3 stimulator (Hasomed GmbH, Magdeburg, Germany). This stimulation pattern was repeated with increasing stimulation intensities using an increment of 5 mA and starting at an intensity of 5 mA. The examiner terminated the calibration process when reaching the subject’s discomfort level.
Electrical and mechanical muscular responses of the quadriceps (Q), specifically the rectus femoris muscle, and triceps surae (TS) were bilaterally recorded by means of synchronized EMG sensors and IMUs (MuscleLab, Ergotest Innovation AS, Stathelle, Norway). The sample rates were 1 kHz for the EMG and 0.5 kHz for the IMU, respectively. Before the EMG electrode placement, the examiner prepared the skin using disinfection and abrasive paste. The IMUs were placed in between the electrodes of the EMG sensors (Hydrogel Kendall H124SG, Covidien LLC, Mansfield, OH, USA) using elastic straps to ensure that signals of the same muscles were acquired. The complete electrode and sensor setup is shown in Figure 1A. The stimulation and data acquisition during the calibration process were controlled via a customized QT-user interface (QT version 6.3.0 for macOS) programmed in C++11. Figure 2 shows the full measurement and stimulation equipment.

2.2. Preprocessing

To classify the EMG responses according to the response amplitude characteristics, the recorded EMG signals during double-pulse stimulation pass through a data processing pipeline implemented in Python 3.9 and adapted from our previously published algorithm for EMG-based analysis [11]. Firstly, the stimulation artifacts are detected in the EMG to synchronize the sensor acquisition precisely with the stimulation. An artifact is marked if the double derivative of the EMG signal is greater than a threshold. Subsequently, the EMG signals are cropped to a common time window, starting 10 ms before the first stimulus and ending 400 ms after the first stimulus. The cropping is followed by a 50 Hz anti-humming [19] and a sliding-median filter with a kernel size of 31 samples. The latter serves as a high-pass filter without applying a ringing effect on the signal. Finally, a similarity check among the three repetitions is conducted with connectivity matrices. Only repetitions with a sufficiently high coefficient of determination between them are averaged. If none of the repetitions are similar, the corresponding signal is marked as faulty. The averaged signals can then be classified according to the characteristics of the peak-to-peak response of the first ( A 1 ) and the suppression (S) of the second pulse ( A 2 ) [11], with S:
S = 1 A 2 A 1 × 100 .
The EMG responses of each muscle and each applied intensity can subsequently be categorized in a 2-class (distinguishing between response and no response) or 3-class (distinguishing between reflex response, direct muscular response, and no response) manner, as shown in Table 2. Note that class 1 of the 2-class classification is equivalent to ( class 1 ∩ class 2) of the 3-class classification. The classes assigned to the EMG responses are considered ground truth for the supervised classification routine. By analyzing the distribution of classes in the four muscles along the applied stimulation intensity and the different electrode positions, a suitable stimulation amplitude and electrode location can be chosen.
Regarding the MMG data, only the acceleration in the z-direction corresponding to the axis orthogonal to the skin is considered for the feature extraction. For preprocessing of the MMG responses of double as well as single pulses, the timestamps of the stimulation artifacts found in the EMG signal are used to crop the signal accordingly to the cropped EMG. Subsequently, the average of the first 10 ms is subtracted from the signal as a non-dynamic gravity filter. The similarity check of the three repetitions is conducted again using connectivity matrices. Analogous repetitions are averaged. As shown in Figure 1B, the mechanical muscular responses in the acceleration signal are much longer than the electrical muscle activity of the EMG, and the responses to the first and second impulse overlap. To separate the responses on the first and second pulse of a double stimulus, we applied the following procedure: the response to the first stimulus is directly measured by applying just a single pulse. We then subtract this response from the response of a double-pulse stimulation. The resulting signal (DIFF) represents the response to the second stimulus of a double pulse and enables direct assessment of the response suppression S (cf. Figure 1C). Finally, the averaged single- and double-pulse responses as well as the DIFF signal are used to extract features.

2.3. Data Distribution

The full dataset used for this classification approach consists of 2196 events. An event comprises an averaged EMG and MMG muscle response to a single-pulse and double-pulse stimulation for a certain muscle at a specific application current and electrode position. The composition of the data is shown in Figure 3. In total, 5% of the data events had to be excluded from the set for the ML-based classification due to errors during the similarity check in the preprocessing pipeline of the EMG and MMG signal, as none of the repetitions were marked as similar. These errors may occur due to movement of the subject during data acquisition, due to occurrence of spontaneous rhythmic muscle twitches, or due to failure of the stimulation artifact detection in the EMG signal. Less than 1% was excluded because of noise in the averaged EMG signal, also resulting from spontaneous muscular activity differing in the three repetitions. The remaining data exhibit an uneven distribution of the ground truth classification. Class 0 is dominant, with 54% of the data belonging to this class, followed by class 1 with 39%, and class 2 with only 7% of all events. As the maximum current applied during the tuning process varies among the participants, the proportion that the individual subjects contributes to the dataset ranges from 6–13% for the healthy participants and 5–17% for the patients.

2.4. Feature Extraction

We conceived a list of features in the time and frequency domain to assess mechanical muscle activity characteristics from the MMG. For each evaluated electrode position and stimulation current, these features were extracted for all investigated muscles. Features can be sorted into different categories and serve as input to the supervised classification approaches:
  • meta: subject’s metadata, e.g., age, height (four features);
  • stim: stimulation parameters: current and electrode position (two features);
  • MMG data: sensor data information from MMG (30 features).
The full list of features is displayed in Table 3. The amplitude features, such as MMG single median or MMG DIFF rms, are determined on a window basis from the MMG signals. For the thigh muscles (quadriceps), we chose a window of 10–60 ms after the first stimulation pulse (winA1) for features extracted from the MMG single-pulse response, starting before the onset of the MMG response and ending before the onset of possible muscle response to stimulus two in the double-pulse data. The corresponding window of 10–60 ms after the second stimulus (winDIFF) is selected for amplitude feature extraction from DIFF. For the calf muscles (triceps surae), we shifted both windows, winA1 and winDiff, 5 ms to the right, as the response onset is delayed compared to the thigh muscles. The features 35 and 36 in Table 3 are extracted from the second sensor of the same leg and not from the sensor from which all other MMG data features are determined. These two features were chosen as an approach to perceive possible crosstalk of other muscle activation. To simplify and automate the application of tSCS therapy, we created machine learning approaches using MMG signals and corresponding EMGs recorded from PRMs during double and single tSCS pulses. The EMG responses could easily be sorted into classes based on the amplitudes of first and second pulse responses. These classes were taken as ground truth for the supervised classification algorithms. For the ML-based classification approaches, two combinations of different feature categories were considered. MMG data & meta (SET-OBSERVE), as an observation approach as well as a combination of meta & stim (SET-PREDICT), act as a sensor-less prediction approach without any features extracted from MMG.

2.5. ML-Based Classification Approach

We investigated three standard ML approaches to classify the data. The Random Forest (RF) Classifier, the Support Vector Machine (SVM) classifier, as well as Linear Discriminant Analysis (LDA) were considered as possible solutions to the classification problem. The algorithms were applied in a leave-one-subject-out (LOSO) cross-validation loop using the python package scikit-learn (1.3.2). Thus, the dataset of each subject serves as test data for a model trained with the data of the remaining subjects. The balanced accuracy score for imbalanced datasets embedded in the sklearn package was chosen as a measure to validate the classification and avoid overestimating the model performance. To investigate the impact of the different subject groups on the classifiers, three datasets serve as an input for all models: the whole dataset including patients as well as healthy subjects (ALL), only data of healthy subjects (HEALTHY), and only data of patients (PATIENTS). Due to the lack of direct muscle responses ( class 2), especially in the patient dataset (cf. Figure 3D), all machine learning models were implemented as a 3-class classification problem as well as a 2-class classification problem (cf. Table 2).
Hyperparameter optimization for the three classifiers was implemented as a random search with 50 iterations. Table 4 shows the optimized parameters. The hyperparameter cross-validation was again realized in a LOSO manner. However, in the hyperparameter LOSO loop, only the training data, which consist of n   1 subjects, was considered. The hyperparameters were chosen according to the maximum mean balanced accuracy achieved among the LOSO cross-validation sets. Note that the hyperparameters were solely extracted for the 3-class classification problem. The parameters for the 2-class classification were chosen accordingly. The class weights were set to a balanced state according to the class distribution of the respective dataset for all classifiers.
The classification models and their results for the different datasets (ALL, HEALTHY, PATIENTS), the two feature sets (SET-OBSERVE, SET-PREDICT), the 2-class and 3-class classification, and the three classifiers (SVM, RF, LDA) were documented by means of the python package mlflow (2.8.1). Consequently, 36 different combinations of dataset, feature set, number of classes, and classifier were investigated.

2.6. Identification of Stimulation Parameters

To find a suitable therapy current and electrode position, the assigned class distribution in the four muscles along the applied stimulation intensity is analyzed for each individual. An example of the class distribution extracted from EMG data with the proposed position and therapy current is presented in Figure 4. For extracting the parameter pair (position, current), the following nested search is applied to each individual subject [11]:
  • At least two class 1 labels in one current among all muscles present in the respective electrode position;
  • Largest number of class 1 labels per current;
  • Smallest current difference between onset of leg response and presence of maximum number of class 1 labels;
  • Lowest stimulation current;
  • Largest sum of all class 1 labels in the respective position.
We chose a sub-motor-threshold therapy current of 90% of the intensity, where the first reflex occurred [8,11]. By extracting the therapy parameters for both EMG and SET-OBSERVE and SET-PREDICT classifications, the ML-based classification approach and its accuracy can be assessed in the context of tSCS application. Note that, for the patients, only the stimulation current is determined, as only one electrode position is available in the datasets.

3. Results

3.1. ML-Based Classification Approach

We first attempted to quantify the balanced accuracy of the ML-based classification approaches to determine differences in the results evolved from the different classifiers and datasets. The mean balanced accuracies for the test data of the 3-class classification problem among all subjects represented in the datasets ALL, HEALTHY, and PATIENT are displayed in Table 5. The corresponding results for the 2-class classification problem are shown in Table 6. The mean balanced accuracy and standard deviations are additionally visualized in Figure 5. The feature set that includes acceleration data (SET-OBSERVE) performs better in terms of mean balanced accuracy than the dataset consisting of stimulation information and metadata (SET-PREDICT). A clear performance lead of one classifier type is not visible. For the dataset ALL and 3-class classification, SET-OBSERVE reaches a maximum mean balanced accuracy of 0.74 for the RF, while the maximum value for SET-PREDICT is 0.68, also using the RF classifier. The standard deviation of the PATIENTS dataset is conspicuously higher than for the other datasets. Regarding the 2-class classification, the RF classifier yields the best balanced accuracy for most dataset and feature set combinations. The corresponding maximum mean balanced accuracies are 0.87 (SET-OBSERVE) for the RF and SVM classifier and 0.78 (SET-PREDICT) for the RF classifier. Therefore, we can see a clear increase in performance, differentiating only between response and no response, without distinguishing further between reflex and direct muscular response. This is reflected in an increased mean balanced accuracy as well as a decrease in the standard deviation. The inaccuracies between class 1 and class 2 response classification are also visible in the confusion matrices presented in Figure 6. The example shown refers to results regarding dataset ALL, feature set SET-OBSERVE, and the Random Forest 3-class classifier. The sensitivity of class 0 is higher than for classes 1 and 2 (Figure 6B). In particular, the proportion of falsely classified class 1 events sorted into class 2 is conspicuous. Subsequently, we determine how the reported accuracies affect the identified stimulation parameter.

3.2. Extraction of Stimulation Parameters

From the determined ML-based classifications, we identified the suitable personalized therapy current and, in the case of healthy subjects, optimal electrode position, to assess the classifier performances through their application. We extracted suitable therapy currents from the ground truth classification of the EMG as well as from all ML-based classification results for all subjects and measurement days (two for each patient, one for each healthy subject). An example of the classification overview and current extraction is shown in Figure A1. Additionally, the optimal electrode position was determined for each healthy subject. Figure 7 illustrates the difference between the ground truth therapy current and the currents extracted from all ML-based classification results. If no current was found due to a lack of class 1 events, the stimulation current was set to 0 mA. Overall, SET-OBSERVE is superior compared to SET-PREDICT in terms of discrepancy between EMG- and ML-based therapy current. Furthermore, the therapy current for healthy subjects is more accurate compared to the current identified for the patients, which has a higher variance. 2-class and 3-class classifications show a similar parameter distribution. A direct comparison between ground truth and ML-based therapy parameters for the RF classifier is additionally visualized in Figure 8 and Figure 9. Only results of the better performing SET-OBSERVE, which includes MMG data characteristics, are displayed. Most of the extracted currents are located around the optimal diagonal (cf. Figure 8). However, for the patient data, some outliers are located on the x-axis, when no current could be extracted in the ground truth, or y-axis, when no current could be extracted in the ML-based prediction. All outliers on the x-axis originate from one of the measurements of patients P1 and P2, where no stimulation current could be found in the EMG classification. The extracted electrode positions from the classification of SET-OBSERVE are, for the most part, located on the optimal diagonal (cf. Figure 9).
We additionally conducted a statistical analysis of the proportion of correctly determined therapy parameters for 3-class and 2-class classifications, respectively. These results are shown in Figure 10 and Figure 11. The same therapy current could only be found for a maximum of 36–45% of the subjects/measurement day regarding 3-class classification (Figure 10A), depending on the model and dataset. The highest proportion was achieved in the PATIENTS dataset and the RF classifiers, as well as among the healthy subgroup in the ALL dataset with the RF classifier. The corresponding maximum proportions for the 2-class classifications are 36–59% (Figure 11A). Again, the highest proportion was achieved in the PATIENTS dataset and RF, as well as the healthy subgroup in the ALL dataset. However, these numbers increased to maximum values of 79–91% for the 3-class (Figure 10C) and 82–100% for the 2-class classification (Figure 11C) when considering a small margin of 5 mA around the ground truth current. In both cases, the HEALTHY dataset with the RF classifier yields the best results. For the combined ALL dataset, up to 85% (LDA) of the extracted currents were within the applied margin. The right combination of therapy current and electrode position was determined for up to 45% of the healthy subjects for the dataset ALL and RF with regard to 3-class classification (Figure 10B). The same maximum value was achieved for dataset ALL and the SVM and LDA classifier regarding the 2-class classification (Figure 11B). With the 5 mA margin, these numbers improved to 64% (Figure 10D) and 91% (Figure 11D), respectively. The RF classifiers provide the highest proportion of correct therapy parameters for most datasets regardless of 2- or 3-class classification.

4. Discussion

To simplify and automate the application of tSCS therapy, we deployed machine learning approaches to classify a sensor-based feature set containing MMG data characteristics from PRMs to double and single tSCS pulses using the corresponding EMG classes as ground truth. Additionally, a feature set without any sensor information containing only metadata and stimulation information was determined and classified. Through the ML-based class distributions, we identified suitable therapy parameters for each subject and compared these with the ground truth parameters extracted from the EMG classes.
The results show better classification accuracy for the feature set SET-OBSERVE, which includes MMG data, implying the importance of sensory observations to target individual therapy parameters. However, the classifiers for the 3-class classification performed only moderately well for the separation between class 1 (, reflex response) and class 2 (, direct muscular response). Thus, the similarity between these classes regarding the MMG in the 3-class classification problem is very high, making a separation challenging. We suspect two reasons for this, as follows.
Firstly, the suppression (1) that is important for the 3-class EMG classification cannot be determined directly from MMG due to the non-linear summation of the forces and, therefore, the accelerations, in the case of sequential induced muscle twitches. With the same muscle activation, and accordingly the same EMG response to the first and second impulse (no suppression), the increase in force or acceleration due to the second impulse can be greater than the response to the first impulse [20,21]. This means that the amplitude of the acceleration in the DIFF signal would be increased compared to the response of the first impulse, despite the same EMG activity. Another problem is that these non-linear effects are strongly dependent on the muscle fiber type [22], and the composition of muscle fiber types can vary among patients. To reduce these non-linear force summations after the sequential muscle twitches, we could apply longer inter-pulse intervals between the double stimulation pulses. However, this would directly influence the suppression effect in the EMG signals, especially for patients with SCI [10]. As we need the post-activation suppression information to distinguish between reflex response and direct muscular response in the ground truth data, lengthening the inter-pulse interval would not be beneficial for therapy parameter identification.
The second reason for inaccuracies when distinguishing between reflex response and muscular response could be crosstalk in the acceleration signals due to movement of joints or contraction of other leg muscles. To provide knowledge on the activity of the other recorded leg muscle to the algorithm, we added two amplitude features of these muscles to the feature set SET-OBSERVE. This was done as a simple attempt to internally track and catch crosstalk. As we fastened the IMUs with elastic straps over the muscle belly, contractions from muscles with direct contact to the strap could disturb the sensor signals further. However, lower limb muscles that were not recorded during the calibration process are part of the PRMs, such as the hamstring or tibialis anterior muscle [23]. Hence, activity in these muscles can still indicate activation of afferent nerves accountable for spasticity reduction and therefore lead to suitable therapy parameters. Nonetheless, as these muscles were not part of our datasets, this assumption is not verifiable and would have to be examined in further investigations. Crosstalk of joint movement resulting from the muscle contractions due to the tSCS pulses is also a possible signal disturbance. There is a considerable delay between a contraction of a distant muscle and a perceptible movement at the sensor. Keeping the measurement interval close to the stimuli should guarantee that only local contraction forces and corresponding accelerations are sensed. If crosstalk is present, then crosstalk from antagonistic muscles across the strap is more likely than from muscles further away, which can only act on the sensor via joint or leg movements with a greater time delay. To avoid big influences of superposition because of different acceleration sources, we chose the windows winA1 and winDIFF to be very close to the pulse artifact and, therefore, to the reflex or muscle activation time stamp.
After the ML-based classification, we further identified individual therapy parameters for each subject from the classification results. The therapy current extracted from ground truth and from ML-based classification corresponded in only a fraction of the subjects. However, most of the determined currents varied around the optimal value. These fluctuations between ground truth and predicted therapy current result from inaccuracies of the classifiers, especially around the applied pulse amplitude at which the first muscle reactions occur. These inaccuracies also transfer to the choice of the electrode position in healthy subjects. However, a position that was not labeled as optimal through the ground truth classification can still be potentially suitable for tSCS when an adapted higher current is applied. Nonetheless, we strive for the most tolerable stimulation for the subject, which we assume can be extracted from the EMG data acquired at different electrode positions. Overall, the presented algorithms show good results for both therapy current and position identification. In order to successfully use MMG for personalized tSCS tuning, synchronized stimulation and IMU recording would be required, as no artifacts are visible in the acceleration signals.
In this paper, we investigated both 3-class classification as well as a simplified 2-class classification. The latter generally produced higher balanced accuracy values and more accurate stimulation parameters. Thus, we pose the question of whether a 2-class classification would be precise enough to activate afferents and, hence, achieve a therapeutic effect after tSCS therapy. Referring to the data we collected in this and in previous investigations, we observe that if a rather big electrode of 5 × 10 cm is placed over the upper lumbar spine, class 1 (reflex) responses will be most probably elicited before class 2 (direct muscular) responses occur. This corresponds with the recruitment order of different nerve fiber types. Large-diameter proprioceptive sensory nerves have the lowest activation threshold and are therefore recruited at lower stimulation intensities than motor fibers [24,25]. To conclude, since we strive for therapy currents at sub-motor level and since the first responses visible during the calibration procedures are most likely reflex responses elicited by afferents, a 2-class classification would presumably be sufficient. However, whether that is true for all groups of patients that would profit from tSCS cannot be confirmed and would have to be determined in further investigations.
The newly introduced method with single- and double-pulse stimulation was intended to improve the classification of muscle and reflex responses in the MMG. However, a disadvantage of this approach is the double time compared to the EMG-based approach, which only includes double stimuli. Given the good performance of tSCS-tuning based on 2-class classification, the question arises whether the inclusion of single-pulse data, i.e., the calculated differences and the corresponding features, is necessary to sufficiently detect any stimulus-induced activity in the MMG data. This open question will be pursued in the future.
For our investigations, we included patient tuning data as well as data from healthy subjects. Due to the limited quantity of our patient dataset, a machine learning approach using exclusively the available patient data would have been unsatisfying. Therefore, we included the larger healthy dataset in order to be able to investigate the performance of our method with several electrode positions. However, our results indicate that the accuracy of the therapy parameter choice is slightly higher for the patient cohort if we train the model solely on the PATIENT dataset instead of on the mixed ALL dataset (cf. Figure 10A and Figure 11A). This could imply that training an individual model for patients with a common medical condition is beneficial. Another patient group that was not investigated in the paper but would profit from a simplified tSCS tuning process is the group of patients with spinal cord injuries. Hence, this cohort should be included in future studies.
Another disparity in the results of the different subject groups is the larger standard deviation of the balanced accuracy among the MS patient group (cf. Figure 5, dataset PATIENTS) compared to the mixed dataset (ALL) and healthy dataset (HEALTHY). A reason for that could be the difference in composition of the two datasets (cf. Figure 3). The total number of events for the patients accounts for only one-third of the overall dataset. Additionally, the proportions of class 1 and class 2 events are smaller in the patient data. Therefore, the transition phase from no response (class 0) to response (class 1 and class 2) during the individual tuning of a patient takes up a larger proportion of the PATIENT dataset. However, in this transition phase, more natural inaccuracies in the classification approaches occur due to the small amplitudes of the responses. The smaller quantity of events and higher proportion of the transition phase could explain the larger standard deviation of the balanced accuracies. Another reason could be the disparity in severity and location of neurological defects among the MS patients, which causes a limited comparability between them. Thus, the LOSO cross-validation performance can vary considerably within the patient group. To conclude, to further improve the performance and reliability of our models, larger datasets from MS patients would be beneficial. Additional models for other patient groups, such as SCI, can be trained when the corresponding data are available.
For MMG, two sensor technologies are commonly used: piezoelectric contact (PEC) and accelerometer (ACC). In [26], the frequency responses of PEC and ACC have been experimentally determined. Results for the sensors without housing restrictions show that the PEC transducer resembled that of the double integral over time of the ACC transducer signal, acting as a displacement meter of muscle vibration. As it correlates better with muscle force, we selected ACC as the sensor technology. However, study [26] indicates the negative influence of housing restrictions on the measurements. We used a medically certified system with synchronous EMG and acceleration recording, as this was mandatory for our investigation. The inertial sensors with accelerometer have a dimension of 41 × 47 mm and a mass of 20 g. These physical quantities result from the use of rechargeable batteries for enabling wireless data transmission. The latter increases the usability of the system. Latencies in data transmission are not critical, as data from the sensors are transmitted with synchronized time stamps batch-wise to the laptop after each applied single or double pulse. Upon receiving the data, non-causal data processing is performed. The sensor size and mass (inertia) might negatively impact the detection of muscle responses as they dampen vibration. Possible advantages of smaller and lighter sensors and different mounting approaches need to be investigated in the future.
As we only looked at a small number of classifiers, there might be other algorithms that reach a similar or even better performance. We chose classifiers that are suitable for multi-class classification and tried to include linear (LDA) as well as non-linear algorithms (RF and SVM with radial basis function kernel) that vary in their computational complexity. Despite their differences, the performance of the chosen classifiers is similar. Hence, we expect that other classifier types would perform comparably. With the choice of our classifiers and their performances, we conclude that machine learning-based classification algorithms are generally suitable for this application.
Recent publications have determined that selective tSCS targets specific muscle groups for patients with SCI [27,28]. In this application, finding the accurate electrode position is more essential than in the calibration procedure that we proposed in this paper, as smaller electrodes or electrode arrays are used to selectively activate muscles. Hence, applying the proposed algorithm to these datasets would be another opportunity to investigate its performance in the context of a more advanced application.

5. Conclusions

In this paper, we investigated the suitability of MMG for tuning individual tSCS therapy parameters. Three different classifier types were examined for supervised classification, considering the typically used EMG as ground truth data. We compared the accuracy of the classification for patient data, data from healthy subjects, and for a combined dataset of n = 22. Furthermore, the classifiers were also tested without using any MMG sensor data to observe the performance of the prediction model.
Overall, the classifiers performed better with MMG sensor data present in the training data. The extraction of individual therapy parameters from the classified signals was possible. Both determined therapy currents (for healthy subjects and patients) as well as positions (for healthy subjects) show good results for most of the subjects and models. The algorithm should be further investigated with additional datasets and in different application contexts. We conclude that the presented use of inertial sensors has the potential to tune the tSCS current and position beyond clinical research in clinical practice and even in home use, where EMG-based measurements may be too difficult, time-consuming, or wasteful in terms of required materials.

Author Contributions

Conceptualization, T.S. and E.L.S.; methodology, E.L.S. and A.D.; software, E.L.S. and A.D.; validation, E.L.S., T.S. and C.S.-H.; formal analysis, E.L.S. and T.S.; investigation, E.L.S., N.W. and C.S.-H.; resources, K.R., C.O., N.W. and T.S.; data curation, E.L.S.; writing—original draft preparation, E.L.S.; writing—review and editing, E.L.S., T.S., N.W. and C.S.-H.; visualization, E.L.S.; supervision, T.S. and N.W.; project administration, N.W. and T.S.; funding acquisition, N.W., T.S. and C.S.-H. All authors have read and agreed to the published version of the manuscript.

Funding

This work was funded by the German Federal Ministry of Education and Research (BMBF) within the project STARS (FKZ 13GW0486).

Institutional Review Board Statement

The study was conducted in accordance with the Declaration of Helsinki and approved by the Ethics Committee of the Charité–Universitätsmedizin Berlin (EA1/155/20, 08/06/2021).

Informed Consent Statement

Informed consent has been obtained from all individuals included in this study.

Data Availability Statement

The data presented in this study are available upon reasonable request from the corresponding author.

Conflicts of Interest

A.D. and E.L.S. are employees and T.S. is co-founder of SensorStim Neurotechnology GmbH, which is a company developing FES stimulation devices. All other authors declare that they have no competing interests.

Abbreviations

The following abbreviations are used in this manuscript:
BMIBody Mass Index
DIFFPer value difference between double- and single-pulse MMG responses
EMGElectromyography
IMUInertial Measurement Unit
LDALinear Discriminant Analysis
LOSOLeave-One-Subject-Out
MLMachine Learning
MMGMechanomyography
MSMultiple Sclerosis
QQuadriceps
RFRandom Forest Classifier
SVMSupport Vector Machine
TSTriceps Surae
tSCSTranscutaneous Spinal Cord Stimulation
winA1Window for feature extraction in single-pulse MMG signal 10–60 ms after first stimulus
winDIFFWindow for feature in DIFF extraction 10–60 ms after second stimulus

Appendix A

Figure A1. Example of EMG 3-class classification and prediction (SET-OBSERVE, dataset ALL, SVM) (see Table 2) for P5. The best parameter choice for tSCS is marked with a red frame for both classifications. Differences in classification are marked with a bold black frame around the circles.
Figure A1. Example of EMG 3-class classification and prediction (SET-OBSERVE, dataset ALL, SVM) (see Table 2) for P5. The best parameter choice for tSCS is marked with a red frame for both classifications. Differences in classification are marked with a bold black frame around the circles.
Sensors 24 00634 g0a1

References

  1. Hofstoetter, U.S.; Freundl, B.; Danner, S.M.; Krenn, M.J.; Mayr, W.; Binder, H.; Minassian, K. Transcutaneous spinal cord stimulation induces temporary attenuation of spasticity in individuals with spinal cord injury. J. Neurotrauma 2020, 37, 481–493. [Google Scholar] [CrossRef] [PubMed]
  2. Benavides, F.D.; Jo, H.J.; Lundell, H.; Edgerton, V.R.; Gerasimenko, Y.; Perez, M.A. Cortical and subcortical effects of transcutaneous spinal cord stimulation in humans with tetraplegia. J. Neurosci. 2020, 40, 2633–2643. [Google Scholar] [CrossRef]
  3. Wiesener, C.; Spieker, L.; Axelgaard, J.; Horton, R.; Niedeggen, A.; Wenger, N.; Seel, T.; Schauer, T. Supporting front crawl swimming in paraplegics using electrical stimulation: A feasibility study. J. Neuroeng. Rehabil. 2020, 17, 1–14. [Google Scholar] [CrossRef] [PubMed]
  4. Hofstoetter, U.S.; McKay, W.B.; Tansey, K.E.; Mayr, W.; Kern, H.; Minassian, K. Modification of spasticity by transcutaneous spinal cord stimulation in individuals with incomplete spinal cord injury. J. Spinal Cord Med. 2014, 37, 202–211. [Google Scholar] [CrossRef]
  5. Taylor, C.; McHugh, C.; Mockler, D.; Minogue, C.; Reilly, R.B.; Fleming, N. Transcutaneous spinal cord stimulation and motor responses in individuals with spinal cord injury: A methodological review. PLoS ONE 2021, 16, e0260166. [Google Scholar] [CrossRef] [PubMed]
  6. Alashram, A.R.; Padua, E.; Raju, M.; Romagnoli, C.; Annino, G. Transcutaneous spinal cord stimulation effects on spasticity in patients with spinal cord injury: A systematic review. J. Spinal Cord Med. 2023, 46, 582–589. [Google Scholar] [CrossRef]
  7. Roberts, B.W.; Atkinson, D.A.; Manson, G.A.; Markley, R.; Kaldis, T.; Britz, G.W.; Horner, P.J.; Vette, A.H.; Sayenko, D.G. Transcutaneous spinal cord stimulation improves postural stability in individuals with multiple sclerosis. Mult. Scler. Relat. Disord. 2021, 52, 103009. [Google Scholar] [CrossRef]
  8. Hofstoetter, U.S.; Freundl, B.; Lackner, P.; Binder, H. Transcutaneous spinal cord stimulation enhances walking performance and reduces spasticity in individuals with multiple sclerosis. Brain Sci. 2021, 11, 472. [Google Scholar] [CrossRef]
  9. Ladenbauer, J.; Minassian, K.; Hofstoetter, U.S.; Dimitrijevic, M.R.; Rattay, F. Stimulation of the human lumbar spinal cord with implanted and surface electrodes: A computer simulation study. IEEE Trans. Neural Syst. Rehabil. Eng. 2010, 18, 637–645. [Google Scholar] [CrossRef]
  10. Hofstoetter, U.S.; Freundl, B.; Binder, H.; Minassian, K. Recovery cycles of posterior root-muscle reflexes evoked by transcutaneous spinal cord stimulation and of the H reflex in individuals with intact and injured spinal cord. PLoS ONE 2019, 14, e0227057. [Google Scholar] [CrossRef]
  11. Salchow-Hömmen, C.; Schauer, T.; Müller, P.; Kühn, A.A.; Hofstoetter, U.S.; Wenger, N. Algorithms for Automated Calibration of Transcutaneous Spinal Cord Stimulation to Facilitate Clinical Applications. J. Clin. Med. 2021, 10, 5464. [Google Scholar] [CrossRef]
  12. Ibitoye, M.O.; Hamzaid, N.A.; Zuniga, J.M.; Wahab, A.K.A. Mechanomyography and muscle function assessment: A review of current state and prospects. Clin. Biomech. 2014, 29, 691–704. [Google Scholar] [CrossRef]
  13. Al-Mulla, M.R.; Sepulveda, F. Novel Pseudo-Wavelet function for MMG signal extraction during dynamic fatiguing contractions. Sensors 2014, 14, 9489–9504. [Google Scholar] [CrossRef] [PubMed]
  14. Madeleine, P.; Farina, D.; Merletti, R.; Arendt-Nielsen, L. Upper trapezius muscle mechanomyographic and electromyographic activity in humans during low force fatiguing and non-fatiguing contractions. Eur. J. Appl. Physiol. 2002, 87, 327–336. [Google Scholar] [CrossRef] [PubMed]
  15. Krueger, E.; Scheeren, E.M.; Nogueira-Neto, G.N.; da SN Button, V.L.; Nohama, P. A new approach to assess the spasticity in hamstrings muscles using mechanomyography antagonist muscular group. In Proceedings of the 2012 Annual International Conference of the IEEE Engineering in Medicine and Biology Society, San Diego, CA, USA, 28 August–1 September 2012; IEEE: Piscataway, NJ, USA, 2012; pp. 2060–2063. [Google Scholar]
  16. Xie, H.B.; Zheng, Y.P.; Guo, J.Y. Classification of the mechanomyogram signal using a wavelet packet transform and singular value decomposition for multifunction prosthesis control. Physiol. Meas. 2009, 30, 441. [Google Scholar] [CrossRef] [PubMed]
  17. Armstrong, W.J. Wavelet-based intensity analysis of the mechanomyograph and electromyograph during the H-reflex. Eur. J. Appl. Physiol. 2014, 114, 2571–2578. [Google Scholar] [CrossRef] [PubMed]
  18. Miramonti, A.A.; Jenkins, N.D.; Oza, P.D.; Weir, J.P.; Cramer, J.T. Mechanomyographic responses during recruitment curves in the soleus muscle. Muscle Nerve 2017, 56, 107–116. [Google Scholar] [CrossRef] [PubMed]
  19. Sörnmo, L.; Laguna, P. Bioelectrical Signal Processing in Cardiac and Neurological Applications; Academic Press: Cambridge, MA, USA, 2005; Volume 8. [Google Scholar]
  20. Smith, I.C.; Adam, H.; Herzog, W. A brief contraction has complex effects on summation of twitch pairs in human adductor pollicis. Exp. Physiol. 2020, 105, 676–689. [Google Scholar] [CrossRef]
  21. Freeman, S.R.; Durfee, W.K. Twitch response of intact human tibialis anterior muscle to doublet stimulation at graded strengths. In Proceedings of the 2006 International Conference of the IEEE Engineering in Medicine and Biology Society, New York, NY, USA, 30 August–3 September 2006; IEEE: Piscataway, NJ, USA, 2006; pp. 6757–6760. [Google Scholar]
  22. Dean, J.C.; Collins, D.F. Nonlinear twitch torque summation by motor units activated at M-wave and H-reflex latencies. Muscle Nerve Off. J. Am. Assoc. Electrodiagn. Med. 2009, 40, 221–230. [Google Scholar] [CrossRef]
  23. Minassian, K.; Persy, I.; Rattay, F.; Dimitrijevic, M.R.; Hofer, C.; Kern, H. Posterior root–muscle reflexes elicited by transcutaneous stimulation of the human lumbosacral cord. Muscle Nerve Off. J. Am. Assoc. Electrodiagn. Med. 2007, 35, 327–336. [Google Scholar] [CrossRef] [PubMed]
  24. Hofstoetter, U.S.; Freundl, B.; Binder, H.; Minassian, K. Common neural structures activated by epidural and transcutaneous lumbar spinal cord stimulation: Elicitation of posterior root-muscle reflexes. PLoS ONE 2018, 13, e0192013. [Google Scholar] [CrossRef] [PubMed]
  25. Danner, S.M.; Hofstoetter, U.S.; Ladenbauer, J.; Rattay, F.; Minassian, K. Can the human lumbar posterior columns be stimulated by transcutaneous spinal cord stimulation? A modeling study. Artif. Organs 2011, 35, 257–262. [Google Scholar] [CrossRef] [PubMed]
  26. Watakabe, M.; Itoh, Y.; Mita, K.; Akataki, K. Technical aspects of mechnomyography recording with piezoelectric contact sensor. Med. Biol. Eng. Comput. 1998, 36, 557–561. [Google Scholar] [CrossRef] [PubMed]
  27. Bryson, N.; Lombardi, L.; Hawthorn, R.; Fei, J.; Keesey, R.; Peiffer, J.; Seáñez, I. Enhanced selectivity of transcutaneous spinal cord stimulation by multielectrode configuration. J. Neural Eng. 2023, 20, 046015. [Google Scholar] [CrossRef]
  28. Calvert, J.S.; Manson, G.A.; Grahn, P.J.; Sayenko, D.G. Preferential activation of spinal sensorimotor networks via lateralized transcutaneous spinal stimulation in neurologically intact humans. J. Neurophysiol. 2019, 122, 2111–2118. [Google Scholar] [CrossRef]
Figure 1. Measurement setup and determination of response suppression from subtracted MMG signals. (A) Sensor and electrode placement: Stimulation electrodes (blue) are placed on the back and abdomen. IMUs (gray) are located in between EMG (green/black) electrodes on the selected muscles. (B) Filtered and averaged EMG and MMG responses of double as well as single-pulse data. Amplitude characteristics of A 1 and A 2 of the double-pulse data are used to classify the EMG signal, while signal characteristics of single and double-pulse data are extracted from the acceleration signals as features for the machine learning algorithm (example signals extracted from the dataset of S2). The gray area indicates time windows for feature extraction. Red triangles mark the stimulation pulses. (C) Subtraction DIFF between MMG double and MMG single-pulse muscle response to evade superposition of responses. The gray area indicates time windows for feature extraction. Red triangles mark the stimulation pulses.
Figure 1. Measurement setup and determination of response suppression from subtracted MMG signals. (A) Sensor and electrode placement: Stimulation electrodes (blue) are placed on the back and abdomen. IMUs (gray) are located in between EMG (green/black) electrodes on the selected muscles. (B) Filtered and averaged EMG and MMG responses of double as well as single-pulse data. Amplitude characteristics of A 1 and A 2 of the double-pulse data are used to classify the EMG signal, while signal characteristics of single and double-pulse data are extracted from the acceleration signals as features for the machine learning algorithm (example signals extracted from the dataset of S2). The gray area indicates time windows for feature extraction. Red triangles mark the stimulation pulses. (C) Subtraction DIFF between MMG double and MMG single-pulse muscle response to evade superposition of responses. The gray area indicates time windows for feature extraction. Red triangles mark the stimulation pulses.
Sensors 24 00634 g001
Figure 2. Measurement equipment: MuscleLab synchronization unit (1) and wireless two-channel EMG sensor (2) with one of its channels connected to the quadriceps muscle (white arrows) and the other channel connected to the triceps surae muscle; IMU sensor (3) placed in between the EMG electrodes; laptop with user interface (4) showing the raw signals of acceleration and EMG for all four recorded muscles upon receiving the data after the stimulus; and RehaMove3 stimulator (5) connected to electrodes on the back and abdomen. The stimulator and sensor synchronization unit are connected to the laptop.
Figure 2. Measurement equipment: MuscleLab synchronization unit (1) and wireless two-channel EMG sensor (2) with one of its channels connected to the quadriceps muscle (white arrows) and the other channel connected to the triceps surae muscle; IMU sensor (3) placed in between the EMG electrodes; laptop with user interface (4) showing the raw signals of acceleration and EMG for all four recorded muscles upon receiving the data after the stimulus; and RehaMove3 stimulator (5) connected to electrodes on the back and abdomen. The stimulator and sensor synchronization unit are connected to the laptop.
Sensors 24 00634 g002
Figure 3. Data composition considering the 3-class EMG classification (Table 2). (A) Class distribution of the full dataset; 5% of the data points are invalid due to similarity check errors during averaging or noise in EMG. (B) Composition of the 2196 valid events, including proportion of healthy and patient data. (C) Proportion each healthy participant contributes. (D) Proportion each patient contributes. Please note, that the percentages in (C,D) are rounded and therefore do not sum up to 100%.
Figure 3. Data composition considering the 3-class EMG classification (Table 2). (A) Class distribution of the full dataset; 5% of the data points are invalid due to similarity check errors during averaging or noise in EMG. (B) Composition of the 2196 valid events, including proportion of healthy and patient data. (C) Proportion each healthy participant contributes. (D) Proportion each patient contributes. Please note, that the percentages in (C,D) are rounded and therefore do not sum up to 100%.
Sensors 24 00634 g003
Figure 4. Example of EMG 3-class classification (see Table 2) of S8. The four circles represent the EMG classification determined for the four examined muscles per applied stimulation current and electrode position. The best parameter choice for tSCS is marked with a red frame; the optimal electrode position would be 4 cm cranial to L3/L4, and the optimal therapy current 0.9 × 15 mA.
Figure 4. Example of EMG 3-class classification (see Table 2) of S8. The four circles represent the EMG classification determined for the four examined muscles per applied stimulation current and electrode position. The best parameter choice for tSCS is marked with a red frame; the optimal electrode position would be 4 cm cranial to L3/L4, and the optimal therapy current 0.9 × 15 mA.
Sensors 24 00634 g004
Figure 5. Mean balanced accuracy and standard deviation of test data among all subjects for the 3-class classification and 2-class classification problems.
Figure 5. Mean balanced accuracy and standard deviation of test data among all subjects for the 3-class classification and 2-class classification problems.
Sensors 24 00634 g005
Figure 6. Quantification of classification results through a confusion matrix example for 3-class classification of dataset ALL, feature set SET-OBSERVE, and RF model. (A) Summed confusion matrix for all subjects. (B) Ratios for each row (ground truth class) among all subjects.
Figure 6. Quantification of classification results through a confusion matrix example for 3-class classification of dataset ALL, feature set SET-OBSERVE, and RF model. (A) Summed confusion matrix for all subjects. (B) Ratios for each row (ground truth class) among all subjects.
Sensors 24 00634 g006
Figure 7. Differences between therapy currents extracted from EMG- and ML-based class distribution for both feature sets and all determined datasets and models. A negative value indicates that a higher therapy current was identified with the corresponding machine learning models compared to using the EMG. The whisker length is set to a maximum of 1.5 × the box height. (A) Differences in therapy current (EMG- minus ML-based) for SET-OBSERVE and SET-PREDICT and all datasets regarding the 3-class classification. (B) Differences in therapy current for dataset ALL, distinguishing between patients and healthy subjects regarding the 3-class classification. (C) Differences in therapy current and all datasets regarding the 2-class classification. (D) Differences in therapy current for dataset ALL, distinguishing between patients and healthy subjects regarding the 2-class classification.
Figure 7. Differences between therapy currents extracted from EMG- and ML-based class distribution for both feature sets and all determined datasets and models. A negative value indicates that a higher therapy current was identified with the corresponding machine learning models compared to using the EMG. The whisker length is set to a maximum of 1.5 × the box height. (A) Differences in therapy current (EMG- minus ML-based) for SET-OBSERVE and SET-PREDICT and all datasets regarding the 3-class classification. (B) Differences in therapy current for dataset ALL, distinguishing between patients and healthy subjects regarding the 3-class classification. (C) Differences in therapy current and all datasets regarding the 2-class classification. (D) Differences in therapy current for dataset ALL, distinguishing between patients and healthy subjects regarding the 2-class classification.
Sensors 24 00634 g007
Figure 8. Extracted therapy current from ground truth (EMG) classification and ML-based prediction of feature set SET-OBSERVE for the RF classifier. The black diagonal represents the optimal scatter location, when EMG current and ML-based current are equal. A stimulation current of 0 mA indicates that no suitable stimulation current could be found due to a lack of class 1 classifications. The scatter sizes represent the number of equal samples. (A) Therapy currents found for 3-class classification. (B) Therapy currents found for 2-class classification.
Figure 8. Extracted therapy current from ground truth (EMG) classification and ML-based prediction of feature set SET-OBSERVE for the RF classifier. The black diagonal represents the optimal scatter location, when EMG current and ML-based current are equal. A stimulation current of 0 mA indicates that no suitable stimulation current could be found due to a lack of class 1 classifications. The scatter sizes represent the number of equal samples. (A) Therapy currents found for 3-class classification. (B) Therapy currents found for 2-class classification.
Sensors 24 00634 g008
Figure 9. Extracted therapy electrode position from ground truth (EMG) classification and ML-based prediction of feature set SET-OBSERVE for the RF classifier considering all healthy subjects. The black diagonal represents the optimal scatter location, when EMG position and ML-based position are equal. The scatter sizes represent the number of equal samples. (A) Electrode location: Position is measured as a distance from L3/L4. (B) Therapy position found for 3-class classification. (C) Therapy position found for 2-class classification. Note that, for two subjects (S6, S7), two equally suitable locations were found in the ML-based classification, whereas only one suitable position was selected in the ground truth classification.
Figure 9. Extracted therapy electrode position from ground truth (EMG) classification and ML-based prediction of feature set SET-OBSERVE for the RF classifier considering all healthy subjects. The black diagonal represents the optimal scatter location, when EMG position and ML-based position are equal. The scatter sizes represent the number of equal samples. (A) Electrode location: Position is measured as a distance from L3/L4. (B) Therapy position found for 3-class classification. (C) Therapy position found for 2-class classification. Note that, for two subjects (S6, S7), two equally suitable locations were found in the ML-based classification, whereas only one suitable position was selected in the ground truth classification.
Sensors 24 00634 g009
Figure 10. Proportion of correctly identified stimulation parameters from ML-based classification regarding the 3-class classification, considering the parameters extracted from the EMG as ground truth. Only the feature set SET-OBSERVE is shown. (A) Proportion of measurements in which exactly the same therapy current was extracted as in the EMG. (B) Proportion of measurements in which exactly the same current and electrode position were found as in the EMG; only the proportion of healthy subjects is shown. (C) Proportion of measurements in which the found therapy current for ML-based classification was within the current extracted from the EMG ± 5 mA. (D) Proportion of measurements in which the found therapy current for ML-based classification was within the current extracted from the EMG ± 5 mA and in which the same electrode position was found as in the EMG; only the proportion of healthy subjects is shown.
Figure 10. Proportion of correctly identified stimulation parameters from ML-based classification regarding the 3-class classification, considering the parameters extracted from the EMG as ground truth. Only the feature set SET-OBSERVE is shown. (A) Proportion of measurements in which exactly the same therapy current was extracted as in the EMG. (B) Proportion of measurements in which exactly the same current and electrode position were found as in the EMG; only the proportion of healthy subjects is shown. (C) Proportion of measurements in which the found therapy current for ML-based classification was within the current extracted from the EMG ± 5 mA. (D) Proportion of measurements in which the found therapy current for ML-based classification was within the current extracted from the EMG ± 5 mA and in which the same electrode position was found as in the EMG; only the proportion of healthy subjects is shown.
Sensors 24 00634 g010
Figure 11. Proportion of correctly identified stimulation parameters from ML-based classification regarding the 2-class classification, considering the parameters extracted from the EMG as ground truth. Only the feature set SET-OBSERVE is shown. (A) Proportion of measurements in which exactly the same therapy current was extracted as in the EMG. (B) Proportion of measurements in which exactly the same current as well as electrode position was found as in the EMG; only the proportion of healthy subjects is shown. (C) Proportion of measurements in which the found therapy current for ML-based classification was within the current extracted from the EMG ± 5 mA. (D) Proportion of measurements in which the found therapy current for ML-based classification was within the current extracted from the EMG ± 5 mA and in which the same electrode position was found as in the EMG; only the proportion of healthy subjects is shown.
Figure 11. Proportion of correctly identified stimulation parameters from ML-based classification regarding the 2-class classification, considering the parameters extracted from the EMG as ground truth. Only the feature set SET-OBSERVE is shown. (A) Proportion of measurements in which exactly the same therapy current was extracted as in the EMG. (B) Proportion of measurements in which exactly the same current as well as electrode position was found as in the EMG; only the proportion of healthy subjects is shown. (C) Proportion of measurements in which the found therapy current for ML-based classification was within the current extracted from the EMG ± 5 mA. (D) Proportion of measurements in which the found therapy current for ML-based classification was within the current extracted from the EMG ± 5 mA and in which the same electrode position was found as in the EMG; only the proportion of healthy subjects is shown.
Sensors 24 00634 g011
Table 1. Participants; PPMS: primary progressive MS, SPMS: secondary progressive MS.
Table 1. Participants; PPMS: primary progressive MS, SPMS: secondary progressive MS.
SubjectAge (Years)SexBMIHeight (cm)DiagnosisDataset
S135M24.1173healthy3 electrode positions
S230M21.5200healthy3 electrode positions
S338M22.5180healthy3 electrode positions
S433M25.5175healthy4 electrode positions
S538M24.8184healthy3 electrode positions
S633F20.7177healthy3 electrode positions
S727F18.6159healthy3 electrode positions
S828F20.3160healthy3 electrode positions
S925F20173healthy3 electrode positions
S1040M21.6190healthy4 electrode positions
S1149M30.7176healthy3 electrode positions
P165M28.09176PPMS2 datasets of 2 days, 1 electrode position
P248F25.71159SPMS2 datasets of 2 days, 1 electrode position
P366F25.76174PPMS2 datasets of 2 days, 1 electrode position
P450F16.7173PPMS2 datasets of 2 days, 1 electrode position
P553F19.53160PPMS2 datasets of 2 days, 1 electrode position
P635F19.5181PPMS2 datasets of 2 days, 1 electrode position
P760M23.88165PPMS2 datasets of 2 days, 1 electrode position
P858M20.15174PPMS2 datasets of 2 days, 1 electrode position
P955M26.01186PPMS2 datasets of 2 days, 1 electrode position
P1065M23.67178PPMS2 datasets of 2 days, 1 electrode position
P1160F19.33164PPMS2 datasets of 2 days, 1 electrode position
Table 2. 2- and 3-class approaches, EMG (ground truth) class classification characteristics.
Table 2. 2- and 3-class approaches, EMG (ground truth) class classification characteristics.
EMG Classification (Ground Truth)
2-class Classification3-class Classification
class 0:no response, A 1 < 50 μ V class 0:no response, A 1 < 50 μ V
class 1:response, A 1 > 50 μ V class 1:reflex response, ( A 1 > 50 μ V) & (S > 60%)
class 2:muscle response, ( A 1 > 50 μ V) & (S < 60%)
invalid data: discarded due to similarity check error in EMG or MMG signal or noisy EMG data
Table 3. Features divided into the categories meta, stim, and MMG data.
Table 3. Features divided into the categories meta, stim, and MMG data.
No.Feature NameCategoryDescription
1BMImetabody mass index 2
2sexmeta0: male, 1: female
3agemetaage
4heightmetabody height
5positionstimvalue in cm distance of lower electrode edge from L3/4
6currentstimstimulation current
7sensorMMG data0 for Q; 1 for TS
8MMG single meanMMG datamean in single-pulse signal in winA1
9MMG single medianMMG datamedian in single-pulse signal in winA1
10MMG single stdMMG datastd in single-pulse signal in winA1
11MMG single RMSMMG dataRMS in single-pulse signal in winA1
12MMG DIFF meanMMG datamean in DIFF signal in winDIFF
13MMG DIFF medianMMG datamedian in DIFF signal in winDIFF
14MMG DIFF stdMMG datastd in DIFF signal in winDIFF
15MMG DIFF rmsMMG dataRMS in DIFF signal in winDIFF
16freshnet distance MMGMMG datafreshnet distance between double- and single-pulse signal in winDIFF
17p2p MMG singleMMG datapeak-to-peak amplitude in single-pulse signal in winA1
18p2p MMG DIFFMMG datapeak-to-peak amplitude in DIFF in winDIFF
19r2 MMG single doubleMMG datasquared correlation coefficient between single- and double-pulse data in a window of 50 ms:end
20r MMG single doubleMMG datacorrelation coefficient between single- and double-pulse data in a window of 50 ms:end winDIFF
21mpf doubleMMG datamean power frequency of double-pulse
signal
22mpf singleMMG datamean power frequency of single-pulse
signal
23mpf DIFFMMG datampf DIFF
24auc spectral density singleMMG dataarea under spectral density curve of single-pulse signal
25auc spectral density doubleMMG dataarea under spectral density curve of double-pulse signal
26auc spectral density DIFFMMG dataarea under spectral density curve of DIFF
27max spectral density singleMMG datamax in spectral density curve of single-pulse signal
28max spectral density doubleMMG datamax in spectral density curve of double-pulse signal
29max spectral density DIFFMMG datamax in spectral density curve of DIFF
30zcr singleMMG datazero-crossing rate in single-pulse data
31zcr doubleMMG datazero-crossing rate in double-pulse data
32zcr DIFFMMG datazero-crossing rate in DIFF
33max slope DIFFMMG datamax slope in DIFF in winDIFF
34max slope singleMMG datamax slope in single-pulse signal in winA1
35p2p MMG single 2nd muscleMMG datapeak-to-peak amplitude in single-pulse signal in winA1 of other leg muscle
36p2p MMG diff 2nd muscleMMG datapeak-to-peak amplitude in DIFF in winDIFF of other leg muscle
Table 4. Choice of hyperparameters for the python classifiers of sklearn.
Table 4. Choice of hyperparameters for the python classifiers of sklearn.
ModelPython ClassifierHyperparameters
SVMSVCgamma, C
RFRandomForestClassifiermin_samples_split, min_samples_leave, max_depth, max_samples
LDALinearDiscriminantAnalysisn_components, solver, tol
Table 5. Mean and standard deviation of balanced accuracy in test data across all subjects in the corresponding datasets for the 3-class classification approach.
Table 5. Mean and standard deviation of balanced accuracy in test data across all subjects in the corresponding datasets for the 3-class classification approach.
DatasetFeature SetSVMRFLDA
ALLSET-OBSERVE0.72 ± 0.120.74 ± 0.110.71 ± 0.14
SET-PREDICT0.64 ± 0.110.68 ± 0.090.63 ± 0.11
HEALTHYSET-OBSERVE0.78 ± 0.080.78 ± 0.070.70 ± 0.11
SET-PREDICT0.72 ± 0.090.68 ± 0.080.62 ± 0.10
PATIENTSSET-OBSERVE0.68 ± 0.180.74 ± 0.170.67 ± 0.16
SET-PREDICT0.58 ± 0.150.66 ± 0.180.57 ± 0.16
Table 6. Mean and standard deviation of balanced accuracy in test data across all subjects in the corresponding datasets for the 2-class classification approach.
Table 6. Mean and standard deviation of balanced accuracy in test data across all subjects in the corresponding datasets for the 2-class classification approach.
DatasetFeature SetSVMRFLDA
ALLSET-OBSERVE0.87 ± 0.090.87 ± 0.080.86 ± 0.07
SET-PREDICT0.77 ± 0.140.78 ± 0.10.77 ± 0.13
HEALTHYSET-OBSERVE0.89 ± 0.070.91 ± 0.050.88 ± 0.05
SET-PREDICT0.84 ± 0.060.86 ± 0.050.81 ± 0.08
PATIENTSSET-OBSERVE0.82 ± 0.120.89 ± 0.060.77 ± 0.10
SET-PREDICT0.69 ± 0.160.76 ± 0.090.65 ± 0.15
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Spieker, E.L.; Dvorani, A.; Salchow-Hömmen, C.; Otto, C.; Ruprecht, K.; Wenger, N.; Schauer, T. Targeting Transcutaneous Spinal Cord Stimulation Using a Supervised Machine Learning Approach Based on Mechanomyography. Sensors 2024, 24, 634. https://doi.org/10.3390/s24020634

AMA Style

Spieker EL, Dvorani A, Salchow-Hömmen C, Otto C, Ruprecht K, Wenger N, Schauer T. Targeting Transcutaneous Spinal Cord Stimulation Using a Supervised Machine Learning Approach Based on Mechanomyography. Sensors. 2024; 24(2):634. https://doi.org/10.3390/s24020634

Chicago/Turabian Style

Spieker, Eira Lotta, Ardit Dvorani, Christina Salchow-Hömmen, Carolin Otto, Klemens Ruprecht, Nikolaus Wenger, and Thomas Schauer. 2024. "Targeting Transcutaneous Spinal Cord Stimulation Using a Supervised Machine Learning Approach Based on Mechanomyography" Sensors 24, no. 2: 634. https://doi.org/10.3390/s24020634

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