Abstract
Human movement prediction is difficult as humans naturally exhibit complex behaviors that can change drastically from one environment to the next. In order to alleviate this issue, we propose a prediction framework that decouples short-term prediction, linked to internal body dynamics, and long-term prediction, linked to the environment and task constraints. In this work we investigate encoding short-term dynamics in a recurrent neural network, while we account for environmental constraints, such as obstacle avoidance, using gradient-based trajectory optimization. Experiments on real motion data demonstrate that our framework improves the prediction with respect to state-of-the-art motion prediction methods, as it accounts to beforehand unseen environmental structures. Moreover we demonstrate on an example, how this framework can be used to plan robot trajectories that are optimized to coordinate with a human partner.
Introduction
Predicting human movement is a fundamental challenge for safe and efficient human-robot interaction. While state-of-the-art Recurrent Neural Networks (RNNs) excel at capturing short-term biomechanical patterns—the "how" of movement—they are often "scene-blind," failing to account for environmental geometry or specific task goals. Conversely, classical motion planning and optimization are effective at satisfying spatial constraints but frequently result in unnatural, "robotic" trajectories.
This paper introduces a hybrid framework that combines the data-driven realism of RNNs with the constraint-handling precision of trajectory optimization. By decoupling internal body dynamics from environmental factors, the system predicts full-body movements that are both biomechanically natural and context-aware, such as navigating around furniture to reach a specific object.
Methods
The proposed framework employs a two-phase approach. First, a Position-Velocity Recurrent Encoder-Decoder (VRED) serves as a neural prior. This RNN is trained on extensive motion capture data to learn low-level human dynamics. To allow for external influence, the architecture is modified to include a control input, $\delta$, which is added to the velocity inputs at each time step.
In the second phase, the RNN is treated as a differentiable function within a gradient-based optimizer (BFGS). The optimizer finds values for $\delta$ that minimize a multi-part cost function. This function balances a "low-level cost" (keeping $\delta$ small to preserve naturalness) with "goal-set costs" (reaching specific 3D coordinates) and "collision costs" (using Signed Distance Fields to avoid obstacles). Adding $\delta$ to the velocity input acts as an additional acceleration term, enabling the optimizer to steer the trajectory while maintaining the underlying biomechanical realism captured by the GRU cells.
Experimental Setup
To evaluate the framework, the authors collected a custom dataset using an Optitrack system, as standard datasets often lack detailed environmental obstacle data. The dataset includes:
- reaching1: 31 minutes of pick-and-place motions at various heights.
- walking: 60 minutes of walking data.
- reaching2: 22 minutes of pick-and-place specifically designed with chairs as obstacles to test avoidance.
Results and Discussion
The hybrid model demonstrated superior long-term accuracy compared to standard VRED baselines. In reaching tasks, the wrist error at a 1-second horizon was reduced from 0.15m (standard RNN) to nearly zero (0.01m) because the optimization was informed by the goal.
Crucially, the model exhibits obstacle awareness. In scenarios where a standard RNN might predict a path through an object, the optimization-enhanced model predicts a realistic detour. This decoupling of dynamics from context means the model generalizes to new room layouts without retraining. Furthermore, the framework supports collaborative planning, allowing robots to anticipate human detours and adjust their own paths for fluid interaction.
Limitations and Future Work
The current method requires pre-defining the duration of a trajectory, which does not account for natural variations in human movement speed. Future work will address this by dynamically adjusting trajectory duration during optimization. Additionally, the authors plan to explore more complex "human comfort" metrics and transition to an Augmented Lagrangian approach to handle hard constraints more robustly.
Summary updated