Online compensation detecting for real-time reduction of compensatory motions during reaching: a pilot study with stroke survivors
Journal of NeuroEngineering and Rehabilitation volume 17, Article number: 58 (2020)
Compensations are commonly observed in patients with stroke when they engage in reaching without supervision; these behaviors may be detrimental to long-term functional improvement. Automatic detection and reduction of compensation cab help patients perform tasks correctly and promote better upper extremity recovery.
Our first objective is to verify the feasibility of detecting compensation online using machine learning methods and pressure distribution data. Second objective was to investigate whether compensations of stroke survivors can be reduced by audiovisual or force feedback. The third objective was to compare the effectiveness of audiovisual and force feedback in reducing compensation.
Eight patients with stroke performed reaching tasks while pressure distribution data were recorded. Both the offline and online recognition accuracy were investigated to assess the feasibility of applying a support vector machine (SVM) based compensation detection system. During reduction of compensation, audiovisual feedback was delivered using virtual reality technology, and force feedback was delivered through a rehabilitation robot.
Good classification performance was obtained in online compensation recognition, with an average F1-score of over 0.95. Based on accurate online detection, real-time feedback significantly decreased compensations of patients with stroke in comparison with no-feedback condition (p < 0.001). Meanwhile, the difference between audiovisual and force feedback was also significant (p < 0.001) and force feedback was more effective in reducing compensation in patients with stroke.
Accurate online recognition validated the feasibility of monitoring compensations using machine learning algorithms and pressure distribution data. Reliable online detection also paved the way for reducing compensations by providing feedback to patients with stroke. Our findings suggested that real-time feedback could be an effective approach to reducing compensatory patterns and force feedback demonstrated a more enviable potential compared with audiovisual feedback.
Stroke is the leading cause of long-term disability in adults worldwide , and many poststroke patients suffer from varying degrees of upper extremity motor dysfunction . Skilled reaching is an important aspect of upper limb motor ability but is impaired after stroke [3, 4]. Patients with stroke usually develop adaptive compensatory patterns, particularly by recruiting excessive trunk or shoulder movements during reaching [5, 6]. The use of compensatory motions could be beneficial for an immediate improvement in function; however, such a functional improvementoccurs because of a reinforcement of compensation instead of true motor recovery . Patients with stroke who commonly use compensatory strategies may form nonoptimal motion patterns, hindering long-term recovery of their impaired arms [8, 9]. Previous studies have demonstrated that reducing compensatory patterns has the potential to improve the final functional outcome. Improvements were accompanied by lager active joint range , higher FMA-UE score  and recovery of lost motor patterns . Therefore, therapists correct undesired compensatory motions when they supervise therapeutic exercises. However, stroke patients perform many exercises without supervision, such as home therapy, which highlights the need to detect and reduce compensationin unsupervised rehabilitation .
Automatic detection of compensation can ensure subsequent intervention to prompt the patient into the correct pose. Previous studies have evaluated the feasibility of sensor-based and camera-based systems to detect compensation without the supervision of a therapist [11,12,13,14,15]. However, camera systems are not appropriate for application in clinical or home settings, which face challenges such as object obstruction, complex setups and privacy [13, 16]. Sensor-based systems suffer from inducing unnatural motions due to the attachment of sensors. Moreover, the reliability of the outcome estimates from these sensors is still a challenge for researchers [14, 16]. While the detection of compensatory patterns still lacks a simple, unobtrusive and practical method, we have proposed a pressure distribution-based compensation detection system [17, 18]. With a pressure mattress mounted on the chair, participants performed seated reaching tasks, and the pressure distribution data were recorded. Several features were extracted from the pressure distribution data that reflected the information for different kinds of compensatory motions. Different models were applied to recognize compensatory patterns and achieved excellent offline recognition accuracy. Our previous studies pave the path toward detecting compensation based on pressure distribution data and machine learning methods. However, there is still a gap between online and offline detection performance, and few studies on the real-time detection of compensation have been reported. To our knowledge, no previous study has evaluated the feasibility and validity of detecting compensatory motions based on pressure distribution data and machine learning methods in real time. Therefore, the purpose of this study is to investigate whetherthe pressure distribution-based method can be implemented in the real-time monitoring of compensatory motions in patients with stroke.
Based on the real-time detection of compensation, various feedback strategies, in the form of visual [19, 20], auditory [21, 22], or force feedback , were provided to patients with stroke to modify their motion patterns. However, there is still no consensus on the kind of feedback modalities that would be effective in reducing compensation. In this study, virtual reality (VR) technology was employed to provide audiovisual feedback, while a rehabilitation robot was employed to provide force feedback. This pilot study aimed to investigate whether the compensation of stroke survivors during reaching can be reduced by audiovisual and force feedback and to examine whether one feedback method is superior to the other.
Therefore,the main contributions of this paper are as follows:
The implementation and validation of thepresented compensation-detecting method using pressure distribution data and machine learning algorithms in real time;
The use of virtual reality and a rehabilitation robot to reduce compensatory motions in patients with strokeduring reaching tasks; and
The comparison of audiovisual and force feedback for reducing compensation.
Eight poststroke subjects were recruited from the Third Affiliated Hospital, SUN Yat-sen University. A summary of the participants’ demographics was provided in Table 1. Ethical approval was obtained from the Guangzhou First People’s Hospital Department of Ethics Committee. All participants reviewed and signed an informed consent form prior to entering the study.
Participants were included if they had experienced their first-ever stroke, if they were either in the subacute (between 1 to 6 months poststroke) or chronic (over 6 months poststroke) stage of recovery, if they were able to remain in a sitting posture (without back or arm rests) for at least 10 min and if they were able to perform the required motions. Participants were excluded from the study if they had the following: upper limb pain > 4/10 on a visual analogue scale (VAS) ; upper limb spasticity > 2 on the Modified Ashworth Scale (MAS) ; Mini-Mental State Examination (MMSE) score ≤ 23 ; or visual spatial neglect based on clinical judgment.
The integrated platform comprised a pressure distribution mattress (Body Pressure Measurement System (BPMS), Model 5330, Tekscan, Inc., South Boston, MA, USA), a rehabilitation robot, 3D motion capture system (VICON, Oxford Metrics, UK), and a personal computer (see details in Fig. 1). The BPMS system was mounted on the chair to record the pressure distribution data of each patient during the seated reaching tasks. The rehabilitation robot, which is based on UR5 (Universal Robots Ltd., Odense, Denmark) , can support and guide the movement of the impaired arm in 3D space. A handle was attached at the end of UR5 for participants to hold. An admittance control scheme [28,29,30], which is a position controller with force feedback, was implemented. A 6-DOF force sensor is attached to the end effector of the ReRobot, then the input from this sensor is used to produce velocity commands for the device. The rehabilitation robot can be commanded to maintain the correct direction or provide haptic feedback in the form of assistive force to the subject. And the assistive force was provided based on the ‘assistance-as-needed’ principle [31, 32], that is, the ReRobot can adaptively generate the necessary assistive force based on the estimated user’s force output. Transmission Control Protocol/Internet Protocol (TCP/IP) was used for communication between the rehabilitation robot and the MATLAB (MathWorks Corp., Natick, MA, USA) user interface. The virtual environments (VEs) were employed to provideaudiovisual feedback, which was built in Unity3D (Unity Technologies, CA, USA)  and connected to the rehabilitation robot and pressure distribution mattress through the TCP/IP. The pressure distribution data were recorded at 50 Hz. The VICON system was used to track participants’ upper limb and trunk movements at 100 Hz.
The experiment consisted of three sessions, including no feedback,audiovisual feedback and force feedback,as shown in Fig. 2. Subjects were divided into two groups: Group 1 (S1-S6) and Group 2 (S7, S8). Several familiarization trials were performed to ensure that the subjects understood and felt comfortable with the experimental procedures. Sufficient rest periods were given to the participants between each reaching task to avoid mental and muscle fatigue.
Participants sat on a chair and held onto the handle of the rehabilitation robot. The height of the chair was adjusted to keep participants’ hips and knees flexed at approximately 90°. If participants could not hold the handle, they were provided with a strap. Each subject performed three basic kinds of reaching, including (i) back-and-forth (Fig. 3b), (ii) side-to-side (Fig. 3c), and (iii) up-and-down reaching (Fig. 3d). To avoid fatigue, each participant was allowed 10 s of rest between two reaching motions and 3 min of rest after a certain type of reaching task. The total session total approximately an hour and a half on average for each participant, including resting time. Three types of compensatory patterns were commonly elicited, including an excessive trunk rotation (TR), trunk lean-forward (TLF) and shoulder-elevation (SE) .
Session 1:no feedback
No feedback was provided in this experimental trial; that is, the visual display was turned off, and the rehabilitation robot was commanded to maintain the correct direction during the execution of each motion. Each subject in Group 1 performed three kinds of reaching tasks, and each task was repeated 30 times with his/her healthy arm and affected arm. Each patient performed 180 movements in total, with 90 motions on each arm. Reaching movements performed by the participants’ healthy arm were labeled as noncompensation (NC) motions. A therapist visually monitored these moments performed by the affected arm and labeled these compensatory motions. The raw data of each subject in Group 1 were recorded as Dataset 1 for training a classifier that could be used to detect compensation from pressure distribution data. Each subject in Group 2 performed each reaching task with his/her healthy side and affected side 15 times at a self-selected speed. This process lasted about half an hour to 45 mins, including resting time. The raw data of all the participants were recorded as Dataset 2, and the classifier trained by Dataset 1 was employed to detect compensation online. The motion data of S7 and S8 were recorded by the VICON system.
Session 2:audiovisual feedback
Each subject performed reaching movements with his/her affected side, and therehabilitation robot was commanded to maintain the correct direction. Visual display was turned on, and audiovisual feedback was provided when the online motion recognition system detected that the participant compensated during a reaching movement, as shown in Fig. 4. Virtual scenes mainly consist of a progress bar showing the progress of subjects’ movements, an avatar instructing recommended actions to reduce compensation, and some necessary guidance in the obvious places. Subjects could see their motion from the progress bar in real time, and there was an arrow beside the progress bar indicating the direction of movement. In this study, VE resembled the traditional rehabilitation items so that participants could be immersed. The avatar did not appear on the virtual scene until compensatory motions were detected by the online compensatory pattern recognition system that we previously described. For instance, when TLF was detected during back-and-forth reaching, the avatar mimicking subjects’ movements was displayed on the screen, along with an animation of trunk lean-backward, thus introducing participants to correct compensatory motions. There was also an arrow along with the avatar, indicating the direction of decreasing compensatory motions (Fig. 4a). Simultaneously, auditory feedback was provided to inform participants of compensation and to give instructions on how to reduce compensation. Audiovisual feedback was provided similarly when patients with stroke performed side-to-side and up-and-down reaching. Each reaching task was completed 15 times in total, and the participants’ kinematics were measured by the VICON system. This process lasted about 20 mins to half an hour, including resting time.
Session 3:force feedback
In this experimental trial, visual display was turned off, and the rehabilitation robotprovided force feedback when a compensatory motion was detected. When participants performed reaching tasks without compensation, the rehabilitation robot was commanded to maintain the correct direction. During the familiarization trials, each participant confirmed that he could sense the change in force when compensating and ensure the assistive force was suitable for him. Each reaching task was repeated 15 times with the paretic hand, and the participant’s kinematics were recorded by the VICON system. This process lasted about 20 mins to half an hour, including resting time.
Data preprocessing and feature extraction
The pressure maps were displayed as a color-coded real-time display in the BPMS software (Fig. 3, bottom panels). Each pressure map consists of a 32 × 32-dimensional vector, and the pressure distribution data were exported into ASCII format for processing in MATLAB. By reviewing existing research on pressure distribution mattresses [35, 36] and our previous studies [17, 18], ten features were extracted from the pressure distribution data for classification, including the average pressure sensor values (AVESSV), the maximum of the pressure sensor values (MAXSV), the average value and standard deviation of the medial/lateral center of pressure (AVEM/L-COP and SDM/L-COP), the average value and standard deviation of the anterior/posterior center of pressure (AVEA/P-COP and SDA/P-COP), average value and standard deviation of the ratio of the pressure on the medial to lateral side (AVEM/L-ratio and SDM/L-ratio), and the average value and standard deviation of the ratio of the pressure on the anterior end to the pressure on the posterior end (AVEA/P-ratio and SDA/P-ratio).
Based on previous studies on healthy subjects  and stroke patients , the support vector machine (SVM) classifier [37, 38] was employed to classify compensatory patterns. In this study, we trained an SVM classifier with a radial basis kernel function using LIBSVM in MATLAB . Extracted features from pressure distribution data of Dataset 1 were normalized and combined in a random order before implementation of SVM classifier. The classification performance was assessed using leave-one-subject-out (LOSO) cross-validation . With LOSO cross-validation, a model was trained on data from all subjects except one, who was “left out”, and the data from the one subject was used as a test dataset. The process was repeated until the data from each subject were used as a test dataset and could be used to determine the average recognition rate of the model. In the online compensation detection, an SVM classifier trained using Dataset 1 was employed to recognize compensatory patterns of subjects (S7, S8) with the aforementioned pressure features.
Confusion matrix displays information about actual and predicted classifications done by a classifier and is a convenient tool for evaluating the classification performance . For binary classification, confusion matrix contains true positives (TP), true negatives (TN), false positives (FP), false negatives (FN), as shown in Table 2.
Based on the confusion table, precision [42, 43] describes the accuracy of the detection and can be calculated with (1). Recall refers to how well the target objects are detected without being missed and can be calculated with (2).
Differences in F1 scores were tested for statistical significance using the Friedman nonparametric tests. We conducted two-way repeated measures analyses of variance (ANOVA) (random effect: participant; fixed effect: feedback condition) to determine if compensation under the three conditions was significantly different. When the test statistic was significant, Bonferroni post hoc tests were performed to determine if differences between each of the two conditions were significant. Statistical analysis was performed using IBM SPSS statistics software (ver. 24.0, IBM Corp., Armonk, NY, USA), and a level of significance of 0.05 was selected.
The offline compensatory pattern recognition performance was assessed using Dataset 1 by computing precision, recall and F1-scores. The SVM classifier exhibited excellent performance in offline detection of compensatory patterns, with an average F1-score of 0.986 ± 0.014. As shown in Table 3, the SE compensatory pattern was well detected (F1-score = 1.000), followed by TR compensation (F1-score = 0.995), NC (F1-score = 0.984) and TLF compensation (F1-score = 0.963). The Friedman nonparametric test provided statistical evidence of a significant difference in F1- scores across different compensatory patterns (p = 0.032). Furthermore, the performance of each class was analyzed using the SVM classifier across all subjects. The pressure distribution-based method generally classifies well (average F1-score > 0.90) for all participants. The minimum and maximum F1-scores of these four patterns among all subjects were 0.857 and 1.000, respectively.
The online classification performance in the recognition of compensatory patterns was evaluated using Dataset 2, as shown in Table 4. The SVM classifier performed well, with an average F1 score of 0.985, which indicated that the proposed method can accurately detect compensation online. The SE compensatory pattern was well detected (F1-score = 1.000), followed by TLF (F1-score = 0.992), NC (F1-score = 0.986) and TR (F1-score = 0.965). The classification accuracy was higher than 95% for both S7 and S8, which can be functionally useable for monitoring compensation in patients with stroke during reaching. Thus, based on real-time detection of compensatory patterns, different kinds of feedback, such as visual, auditory and force feedback, can be provided to participants to help them reduce compensation.
Different feedback modalities in reducing compensation
Three different reaching conditions were evaluated in the present study: no feedback, audiovisual feedback and force feedback. Fifteen motions of each reaching task per condition were used to generate mean kinematic data for each participant, which were used to compare differences among different conditions. All kinematic variables in the no-feedback condition were used as baseline comparisons. As shown in Fig. 5, compensation was measured by the angle of TLF (α), the angle of TR (β) and the angle of SE (γ). These three angles of S7 and S8 in the no-feedback, audiovisual feedback and force feedback conditions were analyzed. For audiovisual feedback, both S7 and S8 reduced their compensation significantly (p < 0.001) compared with baseline. Compared with the baseline, S7 showed greater improvement, with a reduction of 29.9, 19.8 and 2.4% in the angles of TLF, TR and SE, respectively. The maximum amount of reduction, which was 5.67°, was obtained in the back-and-forth reaching. A slight reduction of 0.36° was observed in the up-and-down reaching. For S8, the angles of TLF, TR and SE were reduced by 13.3, 4.2 and 10.3%, respectively. The maximum and minimum values of reduction were 2.05 ° and 0.63°, which were observed in up-and-down and side-to-side reaching tasks, respectively. This result indicated that effects of audiovisual feedback on different tasks differed. Specifically, significant differences (p < 0.001 for TLF compensation, p = 0.03 for TR compensation) between the audiovisual feedback and the no-feedback conditions were observed, while there was no significant difference (p = 0.177) in the SE compensatory pattern. Reaching with force feedback effectively reduced compensatory motions for both S7 and S8 in comparison with baseline (p < 0.001). For S7, the angles of TR, TLF and SE were reduced by 48.6, 35.7 and 23.6% in comparison with the baseline. Reduction in the side-to-side reaching task was largest, which was up to 6.77°. The minimum amount of reduction was detected in theback-and-forth reaching task, which was 3.58°. Similarly, S8 obtained a maximum reduction of 6.83° in the side-to-side reaching. When comparing the force feedback condition with the baseline, S8 reduced the angles of TR, TLF and SE by 45.3, 29.0 and 23.9%, respectively. Our observed reduction of these compensatory parameters in the audiovisual and force feedback conditions suggests that both kinds of feedback were effective in reducing compensation of patients with stroke. Surprisingly, the difference between audiovisual and force feedback was significant (p < 0.001), which indicated that force feedback seemed morepromising in reducing compensatory patterns in stroke survivors during reaching tasks. For S7, the angles of TR, TLF and SE were reduced by 28.8, 21.2 and 5.8% under force feedback when compared with audiovisual feedback. Reaching with force feedback led to greater decreases in compensation, especially in the side-to-side reaching task, and the maximal difference was 3.98°. For S8, compared with audiovisual feedback, which decreased the angles of TR, TLF and SE by 0.63°, 1.73° and 2.05°, respectively, reduction by using force feedback was more obvious with 6.83°, 3.78° and 4.73°, respectively. Overall, these results suggested that force feedback was a more appropriate approach to incorporate into the upper limb rehabilitation program, as it demonstrated a more efficient reduction of compensations during reaching.
Our first objective was to verify the feasibility of real-time monitoring compensation using a machine learning classifier from the pressure distribution data of patients with stroke. To our knowledge, this is the first time that an online pattern recognition analysis has been accomplished on compensatory motions for the population with stroke. The combination of pressure distribution data with the SVM classifier provided good classification performancein the online detection of compensations, with an average F1-score of 0.986, indicating that the pressure distribution-based system may be a viable monitoring scheme in the detection of compensatory patterns for stroke survivors during reaching tasks.
Our second objective was to investigate whether the compensatory motions of stroke survivors observed during reaching tasks can be reduced by audiovisual feedback and force feedback. Based onthe presented compensation-detection method using pressure distribution data and machine learning algorithms in real time, both audiovisual and force feedback decreased compensation exhibited by individuals with stroke in reaching; however, the effectiveness on reducing compensatory patterns varied with different individuals and reaching tasks.
Our third objective was to examine whether audiovisual feedback or force feedback was more effective in reducing compensation for patients with stroke. From the outcome measures used in this study, force feedback is a more promising approach to decreasing compensatory motions in reaching tasks. Therefore, training with force feedback is recommended for stroke patients to control motor compensation and promote motor learning during rehabilitation training.
Online detection of compensation
Thus far, there have been no reports on the real-time monitoring of compensatory motions in patients with stroke during reaching using a machine learning model from pressure distribution data. Without inducing unnatural motions or increasing concerns related to privacy, a pressure distribution-based detection system is more portable and convenient to use in clinical and home settings than are sensor-based and camera-based systems. Our previous studies [17, 18] demonstratedthe feasibility and validity of offline recognition of compensatory patterns based on pressure distribution data and machine learning algorithms. However, offline performance is insufficient for further application in upper limb rehabilitation training, and there is usually a gap between online and offlinerecognition accuracies. An SVM classifier was trained on features from the pressure distribution data to detect three types of compensatory patterns (TLF, TF and SE) and NC in stroke patients in real time. Online recognition accuracies were higher than 95% for both S7 and S8, indicating that the method proposed in this study can be used as a real-time detection system of compensatory motions and a promising adjunct to incorporate into the upper limb rehabilitation program.
Rajiv Ranganathan et al.  employed a wearable sensor-based system to detect compensation in real time and obtained a classification performance with an F1-score = 0.857 for TR and an F1-score = 1.000 for SE. A camera-based system for online compensation detection has also been studied ; however, the classification performance was worse in stroke survivors for TR (F1-score = 0.27), TLF (F1-score = 0.17), and SE automatic detection of compensation (F1-score = 0.07). Compared to the results of previous research, our method provided more reliable accuracy of online recognition, with an average F1-score of 0.992 for TLF, 0.963 for TR, and 1.000 for SE. This evidence validated that the pressure distribution-based system can reliably detect and categorize compensatory patterns in patients with stroke during seated reaching tasks and can be used as an input for feedback systems to reduce compensation.
Real-time reduction of compensation
Based on the motion data of stroke patients, reaching audiovisual feedback or force feedback effectively reduced compensation in comparison with the no-feedback condition (p < 0.001). Previous studies [19, 23, 46,47,48,49] have reported similar results for different feedback modalities on decreasing compensation in patients with stroke. Audiovisual feedbackhas been a frequent focus of research due to the popularization of VR technology. Providing auditory instructions when compensation is detected, simulating the presence of a virtual therapist, or using negative visual cues within the therapy game can improve the quality of motions so that they are more similar to therapist-supervised motions . In this study, TLF and TR compensation were significantly reduced when participants were provided audiovisual feedback; however, we did not find any statistically significant difference in the SE compensatory pattern between the audiovisual feedback and the no-feedback conditions. This may indicate that the effect of audiovisual feedback is related to different levels of task difficulty. The SE compensatory pattern is mainly employed by patients with stroke in up-and-down reaching, which is also the most difficult task, as stated by participants in the experiment. Given the challenge to motor ability, the use of increased SE to aid arm and hand positioning/orientation for reaching tends to be an adaptive compensatory strategy . Although audiovisual feedback was provided in real time to participants, it cannot make the up-and-down task easier. This result is consistent with the result of Norouzi-Gheidari, et al. , who showed that the reaching performance of patients with stroke did not differ between a physical environment and a virtual environment. As stated by Alankus, et al. , when audiovisual feedback is employed to remind patients of improper motor patterns, difficulty parameters need be adapted to user abilities. It is the difficulty of the motion itself that affects the improvement achieved under the audiovisual feedback condition; thus, providing audiovisual feedback is not enough in some exercises. Likewise, therapists sometimes need to correct motions, rather than only providing instruction when they supervise rehabilitation training. It may also be explained that reaching the performance of stroke patients was significantly improved (p < 0.001) under the force feedback condition when compared to the no-feedback or audiovisual feedback condition in this study. We noticed that neither force feedback nor audiovisual feedback was superior in reducing compensationin previous studies [23, 46]. This difference is likely the result of two kinds of force feedback. Specifically, force feedback was provided in the form of a resistive force acting in the opposite direction of motion in previous studies [23, 46], while force feedback was supplied as an assistive force acting in the same direction of motion in our study. Given that providing resistance to the participant’s limb movements makes movement tasks more difficult or challenging, providing assistive force instead of resistive force as feedback can help patients with stroke to move their affected limbs in desired patterns and reduce compensation more directly . Meanwhile, the active assist strategy is the most developed control paradigm in rehabilitation robots and is widely used in robotic therapy . Therefore, when compensatory patterns were detected during reaching, it was more reasonable to use rehabilitation robot to assist the impaired limb to reduce compensation and recover desired interjoint coordination.
There were several limitations in the current pilot study. Firstly, there were only eight patients with stroke participating in this study. Though our results suggested that force feedback showed a more promising potential than audiovisual feedback in improving reaching performance, large sample size of patients with stroke with different levels of upper limb impairment are needed to draw stronger conclusions. Secondly, the experiments were carried out in order of reaching with no feedback, reaching with audiovisual feedback and reaching with force feedback, rather than in a random order. Caution must be taken before applying our results to reducing compensation in patients with stroke and experiment with a random order is recommended. Thirdly, in this study, our classifier detect the main compensation when multiple compensation occur simultaneously. Considering that detecting compound compensation may provide more information to both the patients and therapists, we will investigate the feasibility of detecting multiple compensatory patterns. Finally, besides kinematic results, clinical outcome assessments indexes on stroke should be included in the following studies. Longitudinal studies are required to explore the long-term effects of different kinds of feedback in motor improvement and whether one kind of feedback is superior to another in the longer-term functional recovery of the upper extremities.
In this study, good classification performances were obtained, with an average F1-score of 0.985 using an SVM classifier. Based on accurate online detection, rehabilitation robot and VR technologies were applied to decrease compensation in real time by providing force and audiovisual feedback to stroke patients. Effective improvements in motion patterns were observed under both the audiovisual and force feedback conditions when compared with a no feedback condition. In addition, reaching with force feedback was more promising for reducing compensation in patients with stroke.
This study is an early step in investigating feasibility of detecting compensations in patients with stroke using a machine learning algorithm from pressure distribution data in real time. Caution must be taken before applying our results to reducing compensation and further studies are required to determine the effects of choice of feedback.
Availability of data and materials
The datasets analyzed during the current study are available from the corresponding author on reasonable request.
Body pressure measurement system
- LOSO cross-validation:
Modified Ashworth Scale
Mini-Mental State Examination
Support vector machine
Transmission Control Protocol/Internet Protocol
Upper extremity of the Fugl-Meyer Assessment
Visual analogue scale
Campbell BCV, Meretoja A, Donnan GA, Davis SM. Twenty-Year History of the Evolution of Stroke Thrombolysis With Intravenous Alteplase to Reduce Long-Term Disability. Stroke. 46:2341–6.
Members WG, Mozaffarian D, Benjamin EJ, Go AS, Arnett DK, Blaha MJ, et al. Executive Summary: Heart Disease and Stroke Statistics--2016 Update: A Report From the American Heart Association. 2016;127:143–52.
Farr TD, Whishaw IQ. Quantitative and qualitative impairments in skilled reaching in the mouse (Mus musculus) after a focal motor cortex stroke. Stroke. 2002;33:1869–75.
Newell KM. Motor skill acquisition. Annu Rev Psychol. 1991;42:213–37.
Cirstea M, Levin MF. Compensatory strategies for reaching in stroke. Brain. 2000;123:940–53.
Roby-Brami A, Feydy A, Combeaud M, Biryukova E, Bussel B, Levin M. Motor compensation and recovery for reaching in stroke patients. Acta Neurol Scand. 2003;107:369–81.
Levin MF, Kleim JA, Wolf SL. What do motor “recovery” and “compensation” mean in patients following stroke? Neurorehabil Neural Repair. 2009;23:313–9.
Pain LM, Baker R, Richardson D, Agur AM. Effect of trunk-restraint training on function and compensatory trunk, shoulder and elbow patterns during post-stroke reach: a systematic review. Disabil Rehabil. 2015;37:553–62.
Alaverdashvili M, Foroud A, Lim DH, Whishaw IQ. “Learned baduse” limits recovery of skilled reaching for food after forelimb motor cortex stroke in rats: a new analysis of the effect of gestures on success. Behav Brain Res. 2008;188:281–90.
Kwee WS, Ann-Marie H, Martin W, Burridge JH. Trunk restraint to promote upper extremity recovery in stroke patients: a systematic review and meta-analysis. Neurorehabil Neural Repair. 2014;28:660–77.
Taati B, Wang R, Huq R, Snoek J, Mihailidis A. “Vision-based posture assessment to detect and categorize compensation during robotic rehabilitation therapy,” in IEEE Ras & Embs International Conference on Biomedical Robotics and Biomechatronics; 2012. p. 1607–13.
Wittmann F, Held JP, Lambercy O, Starkey ML, Curt A, Höver R, et al. Self-directed arm therapy at home after stroke with a sensor-based virtual reality training system. J Neuroeng Rehabil. 2016;13:75.
Ranganathan R, Rui W, Gebara R, Biswas S. "Detecting compensatory trunk movements in stroke survivors using a wearable system," in Workshop on Wearable Systems & Applications; 2017.
Wang Q, Markopoulos P, Yu B, Chen W, Timmermans A. Interactive wearable systems for upper body rehabilitation: a systematic review. J Neuroeng Rehabil. 2017;14:20.
Ying XZ, Lukasik M, Li MH, Dolatabadi E, Wang RH, Taati B. Automatic detection of compensation during robotic stroke rehabilitation therapy. IEEE J Transl Eng Health Med. 2018;6:1–1.
Remoortel HV, Giavedoni S, Raste Y, Burtin C, Louvaris Z, Gimeno-Santos E, et al. Validity of activity monitors in health and chronic disease: a systematic review. Int J Behav Nutr Phys Act. 2012;9:84.
Cai S, Li G, Huang S, Zheng H, Xie L. Automatic detection of compensatory movement patterns by a pressure distribution mattress using machine learning methods: a pilot study. IEEE Access. 2019;7:80300–9.
Cai S, Li G, Zhang X, Huang S, Zheng H, Ma K, et al. Detecting compensatory movements of stroke survivors using pressure distribution data and machine learning algorithms. J Neuroeng Rehabil. 2019;16:1–11.
Lin S, Mann J, Mansfield A, Wang RH, Harris JE, Taati B. Investigating the feasibility and acceptability of real-time visual feedback in reducing compensatory motions during self-administered stroke rehabilitation exercises: a pilot study with chronic stroke survivors. J Rehabil Assist Technol Eng. 2019;6:2055668319831631.
Alankus G, Kelleher C. “Reducing compensatory motions in video games for stroke rehabilitation,” in Proceedings of the SIGCHI conference on human factors in computing systems; 2012. p. 2049–58.
Proffitt R, Lange B. Considerations in the efficacy and effectiveness of virtual reality interventions for stroke rehabilitation: moving the field forward. Phys Ther. 2015;95:441–8.
Van Vugt F, Kafczyk T, Kuhn W, Rollnik J, Tillmann B, Altenmüller E. The role of auditory feedback in music-supported stroke rehabilitation: a single-blinded randomised controlled intervention. Restor Neurol Neurosci. 2016;34:297–311.
Valdés BA, Schneider AN, Van der Loos HM. Reducing trunk compensation in stroke survivors: a randomized crossover trial comparing visual and force feedback modalities. Arch Phys Med Rehabil. 2017;98:1932–40.
Kersten P, Küçükdeveci AA, Tennant A. The use of the visual analogue scale (VAS) in rehabilitation outcomes. J Rehabil Med. 2012;44:609–10.
Bohannon RW, Smith MB. Interrater reliability of a modified Ashworth scale of muscle spasticity. Phys Ther. 1987;67:206.
Crum RM, Anthony JC, Bassett SS, Folstein MF. Population-based norms for the mini-mental state examination by age and educational level. Jama. 1993;269:2386–91.
Kebria PM, Al-Wais S, Abdi H, Nahavandi S. “Kinematic and dynamic modelling of UR5 manipulator,” in IEEE International Conference on Systems, Man, and Cybernetics; 2017. p. 004229–34.
Carmichael MG, Liu D. “Admittance control scheme for implementing model-based assistance-as-needed on a robot,” Conference proceedings: ... Annual International Conference of the IEEE Engineering in Medicine and Biology Society. IEEE Eng Med Biol Soc Conf. 2013:870, 2013–3.
T. Proietti, V. Crocher, A. Roby-Brami, and N. Jarrasse, "Upper-limb robotic exoskeletons for neurorehabilitation: a review on control strategies.” IEEE Reviews in Biomedical Engineering. 2016;9:4-14.
Landi CT, Ferraguti F, Sabattini L, Secchi C, Fantuzzi C. “Admittance control parameter adaptation for physical human-robot interaction,” in 2017 IEEE International Conference on Robotics and Automation (ICRA); 2017. p. 2911–6.
Laura, Marchal-CrespoDavid, and Reinkensmeyer, "Review of control strategies for robotic movement training after neurologic injury.” Journal of neuroengineering and rehabilitation, 2009;6(1):20.
Zanotto D, Stegall P, Agrawal SK. Adaptive assist-as-needed controller to improve gait symmetry in robot-assisted gait training. Proceedings - IEEE International Conference on Robotics and Automation. 2014:724–9.
Cikajlo I, Potisk KP. Advantages of using 3D virtual reality based training in persons with Parkinson’s disease: a parallel study. J NeuroEng Rehabil. 2019;16:119.
Joost VK, Van Wegen EEH, Gert K. Unraveling the interaction between pathological upper limb synergies and compensatory trunk movements during reach-to-grasp after stroke: a cross-sectional study. Experimental Brain Research.experimentelle Hirnforschng.experimentation Cerebrale. 2012;221:251–62.
N. Foubert, A. M. McKee, R. A. Goubran, and F. Knoefel, "Lying and sitting posture recognition and transition detection using a pressure sensor array," in 2012 IEEE International Symposium on Medical Measurements and Applications Proceedings, 2012, pp. 1–6.
Meyer J, Arnrich B, Schumm J, Troster G. Design and modeling of a textile pressure sensor for sitting posture classification. IEEE Sensors J. 2010;10:1391–8.
Thanh Noi P, Kappas M. Comparison of random forest, k-nearest neighbor, and support vector machine classifiers for land cover classification using Sentinel-2 imagery. Sensors. 2018;18:18.
Ahmadi M, O’Neil M, Fragala-Pinkham M, Lennon N, Trost S. Machine learning algorithms for activity recognition in ambulant children and adolescents with cerebral palsy. Journal of neuroengineering and rehabilitation. 2018;15:105.
Chang C-C, Lin C-J. “LIBSVM: A library for support vector machines,” ACM transactions on intelligent systems and technology (TIST), vol. 2; 2011. p. 27.
Kopke JV, Hargrove LJ, Ellis MD. Applying LDA-based pattern recognition to predict isometric shoulder and elbow torque generation in individuals with chronic stroke with moderate to severe motor impairment. J Neuroeng Rehabil. 2019;16:35.
Porter J, Berkhahn J, Zhang L. Chapter 29 – A Comparative Analysis of Read Mapping and Indel Calling Pipelines for Next-Generation Sequencing Data; 2015. p. 521–35.
M. Sokolova and G. Lapalme, "A systematic analysis of performance measures for classification tasks," Information Processing & Management, vol. 45, pp. 427–437.
Powers DM. Evaluation: from precision, recall and F-measure to ROC, informedness, markedness and correlation; 2011.
Forman G, Scholz M. Apples-to-apples in cross-validation studies: pitfalls in classifier performance measurement. ACM SIGKDD Explorations Newsletter. 2010;12:49–57.
J. Howcroft, J. Kofman, and E. D. Lemaire, "Feature selection for elderly faller classification based on wearable sensorsJ Neuroeng Rehabil. , vol. 14, p. 47, 2017.
B. A. Valdã©S and V. D. L. Hfm, "Biofeedback vs. game scores for reducing trunk compensation after stroke: a randomized crossover trial," Topics in Stroke Rehabilitation, vol. 25, pp. 1–18, 2017.
Thielman G. Rehabilitation of reaching poststroke: a randomized pilot investigation of tactile versus auditory feedback for trunk control. J Neurol Phys Ther. 2010;34:138–44.
Burdea GC, Cioi D, Martin J, Fensterheim D, Holenski M. The Rutgers arm II rehabilitation system—a feasibility study. IEEE Trans Neural Syst Rehabil Eng. 2010;18:505–14.
Alankus G, Kelleher C. Reducing compensatory motions in motion-based video games for stroke rehabilitation. Human–Computer Interaction. 2015;30:232–62.
Norouzi-Gheidari N, Archambault PS, Fung J. Robot-assisted reaching performance of chronic stroke and healthy individuals in a virtual versus a physical environment: a pilot study. IEEE Trans Neural Syst Rehabil Eng. 2019.
Marchal-Crespo L, Reinkensmeyer DJ. Review of control strategies for robotic movement training after neurologic injury. J Neuroeng Rehabil. 2009;6:20.
Proietti T, Crocher V, Roby-Brami A, Jarrasse N. Upper-limb robotic exoskeletons for neurorehabilitation: a review on control strategies. IEEE Rev Biomed Eng. 2016;9:4–14.
The authors would like to thank Ledeng Huang, Gengliang Lin and Chengqi Lin for functional assessments and useful discussions.
The authors would like to thank all families for their participationin this study.
This work was supported by the National Natural Science Foundation of China (Grant No. 51575188).
Ethics approval and consent to participate
Informed consent was obtained from all participants to complete the protocol approved by the Guangzhou First People’s Hospital Department of Ethics Committee.
Consent for publication
The authors received consent for the publication of the photographs used within the manuscript.
The authors declare that they have no competing interests.
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
About this article
Cite this article
Cai, S., Wei, X., Su, E. et al. Online compensation detecting for real-time reduction of compensatory motions during reaching: a pilot study with stroke survivors. J NeuroEngineering Rehabil 17, 58 (2020). https://doi.org/10.1186/s12984-020-00687-1