Vision-Based Optical Simulation

Idriss Abderraouf Jedid · muscle forces and fatigue from ordinary markerless video
Abstract
Muscle activation, force and fatigue are central to rehabilitation, yet they are usually measured with electromyography, force sensors or marker-based motion capture: equipment that is costly, intrusive and confined to the laboratory. An ordinary RGB camera, by contrast, is available everywhere, but it only records how a limb moves, not how its muscles work.

This work presents a vision-based framework that estimates the internal biomechanics of the upper limb from markerless RGB video, demonstrated on the dumbbell biceps curl. Two routes recover the motion of the arm. The multi-camera route extends Pose2Sim: RTMPose detects 2D keypoints in four calibrated views, which are triangulated into 3D joints. The single-camera route extends OpenCap Monocular: ViTPose and WHAM estimate the 3D body from a single video, which is then aligned with gravity and filtered. In both routes, the shoulder, elbow and wrist give the two joint angles of the arm. Validated against Vicon motion capture, the elbow angle follows the reference with a correlation of 0.993 in both routes, with a mean error of 6.6° with four cameras and 6.94° with one camera.

The recovered motion drives a subject-scaled OpenSim Arm26 musculoskeletal model carrying a 2 kg dumbbell. Inverse dynamics, static optimisation and a three-compartment fatigue model produce thirteen time-resolved signals: the elbow torque and the activation, force and fatigue of the four elbow flexors (biceps long and short heads, brachialis and brachioradialis).

Because this physics-based pipeline takes several minutes per recording, machine-learning surrogates are trained to reproduce its outputs directly. With four cameras, LightGBM reaches R² = 0.952 against OpenSim. With a single camera, a bidirectional GRU predicts the thirteen signals from 2D keypoints alone with R² = 0.938 on unseen subjects, about 1,680 times faster than the OpenSim solve and without a GPU.

This model is integrated into a web and mobile application: the patient records an exercise at home with a phone camera, and the clinician reviews the resulting muscle signals remotely. The framework offers a low-cost, non-contact way to monitor muscle effort and fatigue in rehabilitation. Data are drawn from the Fit3D and MM-Fit datasets.
Keywords: RGB camera · markerless motion capture · human pose estimation · 3D reconstruction · musculoskeletal modelling · OpenSim · muscle activation · muscle force · muscle fatigue · surrogate model · deep learning · tele-rehabilitation
📖 Method, validation and results — in the README