Machine Learning-Based Real-Time Detection of Compensatory Trunk Movements Using Trunk-Wrist Inertial Measurement Units

arXiv cs.RO / 4/15/2026

📰 NewsSignals & Early TrendsModels & Research

Key Points

  • The study proposes a two-IMU (trunk and wrist) machine-learning approach to detect compensatory trunk movements (CTMs) in real time, addressing the complexity and limited real-time practicality of prior setups.
  • Using optical motion capture plus manually annotated video as references, the authors show that wrist and trunk kinematics are a minimal yet sufficient sensing set for reliable CTM discrimination.
  • An XGBoost classifier trained with leave-one-subject-out cross-validation achieved strong performance in simulated impairment data (macro-F1 ≈ 0.80 and ROC-AUC > 0.93), with timing suitable for real-time use.
  • Explainability findings indicate that trunk dynamics and wrist–trunk interaction features drive model decisions.
  • A preliminary test on recordings from neurologically affected participants suggests clinical generalization challenges, with retained discriminative ability (ROC-AUC ≈ 0.78) but more variable, threshold-dependent performance.

Abstract

Compensatory trunk movements (CTMs) are commonly observed after stroke and can lead to maladaptive movement patterns, limiting targeted training of affected structures. Objective, continuous detection of CTMs during therapy and activities of daily living remains challenging due to the typically complex measurements setups required, as well as limited applicability for real-time use. This study investigates whether a two-inertial measurement unit configuration enables reliable, real-time CTM detection using machine learning. Data were collected from ten able-bodied participants performing activities of daily living under simulated impairment conditions (elbow brace restricting flexion-extension, resistance band inducing flexor-synergy-like patterns), with synchronized optical motion capture (OMC) and manually annotated video recordings serving as reference. A systematic location-reduction analysis using OMC identified wrist and trunk kinematics as a minimal yet sufficient set of anatomical sensing locations. Using an extreme gradient boosting classifier (XGBoost) evaluated with leave-one-subject-out cross-validation, our two-IMU model achieved strong discriminative performance (macro-F1 = 0.80 +/- 0.07, MCC = 0.73 +/- 0.08; ROC-AUC > 0.93), with performance comparable to an OMC-based model and prediction timing suitable for real-time applications. Explainability analysis revealed dominant contributions from trunk dynamics and wrist-trunk interaction features. In preliminary evaluation using recordings from four participants with neurological conditions, the model retained good discriminative capability (ROC-AUC ~ 0.78), but showed reduced and variable threshold-dependent performance, highlighting challenges in clinical generalization. These results support sparse wearable sensing as a viable pathway toward scalable, real-time monitoring of CTMs during therapy and daily living.