Abstract
Dynamic Movement Primitives (DMPs) have successfully been used to realize imitation learning, trial-and-error learning, reinforcement learning, movement recognition and segmentation, and control. Because of this, they have become a popular representation for motor primitives. In this work, we showcase how DMPs can be reformulated as a probabilistic linear dynamical system (LDS) with control inputs. Through this probabilistic representation of DMPs, algorithms such as Kalman filtering and smoothing are directly applicable to perform inference on proprioceptive sensor measurements during execution. We show that inference in this probabilistic model automatically leads to a feedback term to online modulate the execution of a DMP. Furthermore, we show how inference allows us to measure the likelihood that we are successfully executing a given motion primitive. In this context, we show initial results of using the probabilistic model to detect execution failures on a simulated movement primitive dataset.
Introduction
Dynamic Movement Primitives (DMPs) are a cornerstone of robotic imitation learning, enabling machines to learn and repeat complex motions—such as reaching for an object—from human demonstrations. However, traditional DMPs are deterministic; they provide a fixed trajectory but lack an inherent understanding of uncertainty. When a robot encounters a disturbance, standard DMPs typically require manually tuned "coupling terms" to adjust the motion based on sensor feedback.
This paper addresses the lack of a principled, probabilistic framework for DMPs. By reformulating DMPs as a Probabilistic Linear Dynamical System (LDS), the authors create a model that not only generates motion but also understands how much it should trust its sensors versus its internal plan, enabling natural feedback and real-time failure detection.
Methods: From Deterministic to Probabilistic
The authors transform the standard DMP differential equations into a discrete-time LDS using Euler discretization. The state-space representation explicitly tracks position, velocity, and acceleration.
Crucially, instead of a fixed "shape" for the movement, the model uses Bayesian regression to learn a distribution over the non-linear forcing term. This means the model learns not just the "average" path, but also the variance—how much the path typically fluctuates—at every point in time.
Because the model is an LDS, standard algorithms like Kalman filtering can be used for real-time inference. When the robot receives a sensor measurement (e.g., actual joint position), the Kalman update automatically modulates the trajectory. The "gain" (how much the robot reacts to the sensor) is determined by the model's learned uncertainty: the robot is more "relaxed" about deviations in phases where the movement was highly variable during demonstrations.
Failure Detection via Log-Likelihood
A significant advantage of this probabilistic approach is the ability to compute the log-likelihood of observed sensor data online. If the robot is physically blocked or the environment changes drastically, the likelihood of the observed state drops significantly compared to the learned distribution. This provides a built-in diagnostic tool to signal when a movement has failed without needing an external monitoring system.
Key Results
The model was evaluated using a dataset of 2D letter trajectories recorded via a digitizing tablet. Key findings include:
- Trajectory Equivalence: The probabilistic DMP produces the exact same mean trajectory as a standard DMP when no noise is present, ensuring no loss of original functionality.
- Robust Failure Detection: On the 2D letter dataset, the authors set a threshold based on training data. The system correctly identified 100% (220/220) of cases where execution was artificially blocked, with only 2 out of 220 "normal" test cases incorrectly flagged as failures.
Conclusion and Future Work
This work demonstrates that sensor feedback and failure detection can be treated as intrinsic mathematical properties of the movement representation. By framing DMPs as a probabilistic LDS, the Kalman innovation update serves the same purpose as traditional "coupling terms" but is derived from first principles.
Future work will focus on moving beyond heuristic thresholds for failure detection and applying this framework to high-dimensional humanoid robots and more complex sensor modalities, such as vision or tactile arrays.
Summary updated