ORIGINAL RESEARCH article
Front. Med.
Sec. Precision Medicine
This article is part of the Research TopicAI-Driven Smart Sensing and Processing for Personalized HealthcareView all 5 articles
Using Deep Learning to Detect Upper Limb Compensation in Individuals Post-Stroke Using Consumer-Grade Webcams - A Feasibility Study
Provisionally accepted- 1Data Analytics & Rehabilitation Technology (DART), Lake Lucerne Institute AG, Vitznau, Switzerland
- 2ZHAW Zurcher Hochschule fur Angewandte Wissenschaften School of Management and Law, Winterthur, Switzerland
- 3ZHAW Zurcher Hochschule fur Angewandte Wissenschaften Departement Gesundheit, Winterthur, Switzerland
- 4Department of Neurology and Clinical Neuroscience Center, UniversitatsSpital Zurich, Zürich, Switzerland
- 5cereneo Schweiz AG, Weggis, Switzerland
- 6Lake Lucerne Institute AG, Vitznau, Switzerland
Select one of your emails
You have multiple emails registered with Frontiers:
Notify me on publication
Please enter your email address:
If you already have an account, please login
You don't have a Frontiers account ? You can register here
As societies age, the number of individuals experiencing stroke increases, necessitating more effective rehabilitation strategies. Over half of stroke survivors suffer from upper limb impairments, making assessments of sensory-motor function crucial for both improving interventions and tracking progress. Ideally, such assessments could also be performed at home without requiring a therapist's presence. Advances in computer vision and human pose estimation allow for human movement analysis using consumer-grade cameras. This study investigates whether a single webcam, combined with human pose estimation and deep learning algorithms, can automatically detect compensatory movements in persons with stroke performing a drinking task. 20 participants with stroke with mild to moderate upper limb impairment were recruited. Each participant performed multiple repetitions of the drinking task while being recorded by multiple cameras and an optical motion capture system (OMC) for kinematic ground truth. The videos were labeled by therapists to indicate the presence or absence of compensatory movements. Human poses were extracted from the videos using MediaPipe, and deep learning models were trained to predict these compensatory movements based on MediaPipe keypoints. Several factors affecting compensation detection accuracy were evaluated. Models trained on raw MediaPipe keypoints for inter-person compensation detection failed to generalize, achieving accuracy around 50%. Using custom features instead of raw keypoints improved the accuracy to 70%. In contrast, intraperson classification achieved high accuracy, typically exceeding 90%. Using OMC data significantly improved classification accuracy compared to using MediaPipe keypoints. Camera angle had an effect on accuracy, and convolutional neural networks outperformed long short-term memory networks. Generalizing models remain limited by (1) the measurement uncertainty of human pose estimation and (2) insufficient data representing the full spectrum of compensatory strategies (3) accurate compensation labels. The results demonstrate that deep learning approaches can differentiate between compensatory and non-compensatory movements when movement representations are sufficiently accurate. Future work should improve pose estimation and expand labeled datasets to better reflect the stroke population. While general models are limited in accuracy, personalized models using consumer cameras can support home-based rehabilitation. This digitalized assessment approach has the potential to quantify recovery progress throughout the continuum of care.
Keywords: Stroke, Assessments, Movement Quality, Upper limb, Articial intelligence, Computer Vision, Human Pose Estimation, webcam
Received: 11 Jun 2025; Accepted: 13 Oct 2025.
Copyright: © 2025 Unger, Kühnis, Sauerzopf, Spiess, De Spindler, Luft, Awai Easthope, Schönhammer and Gavagnin. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
* Correspondence:
Tim Unger, tim.unger@llui.org
Chris Awai Easthope, chris.awai@llui.org
Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.
