Abstract
Learning from Demonstration (LfD) is a cornerstone of intuitive robotics, yet it often faces a trade-off between the need for predefined action libraries and the lack of model interpretability. This paper presents a novel framework that integrates Behavior Trees (BTs) for high-level logic with Dynamic Movement Primitives (DMPs) for low-level control. By utilizing a recursive trajectory splitting mechanism based on modeling accuracy, the system autonomously discovers action primitives from human demonstrations. Experimental results with a Franka Emika Panda robot demonstrate high success rates and rapid learning times, producing modular policies that are both reactive and human-editable.
Introduction
The "predefined action bottleneck" occurs when a robot's high-level logic requires a manually crafted library of basic actions (e.g., Pick, Place). While Behavior Trees (BTs) provide a modular and reactive framework for task execution, their reliance on expert-defined actions limits their flexibility. Conversely, Dynamic Movement Primitives (DMPs) effectively capture the nuances of human motion but lack the logic required for error recovery or branching tasks. This research, conducted by David Cáceres Domínguez and colleagues at Örebro University, proposes a unified pipeline to learn both the task structure and the underlying motor skills simultaneously from a single demonstration.
Methodology
The proposed framework operates through a three-stage pipeline: data collection, trajectory segmentation through DMP fitting, and Behavior Tree synthesis.
Autonomous Trajectory Segmentation
The core innovation of this work is the use of "learnability" as a criterion for segmentation. Instead of relying on human-provided labels, the system attempts to fit a DMP to the demonstrated trajectory. The accuracy of this fit is evaluated using FastDTW (Dynamic Time Warping). If the error exceeds a predefined threshold, the trajectory is recursively split into smaller segments until each can be accurately represented by a DMP. This allows the robot to discover its own primitive actions based on its modeling capabilities.
Behavior Tree Synthesis
Once the trajectories are segmented and associated with environmental states, the RE:BT-Espresso algorithm is employed to synthesize a Behavior Tree. This tree maps environmental conditions to the discovered DMP actions, resulting in a policy that is both modular and interpretable.
Experimental Results
The system was evaluated using a Franka Emika Panda robotic arm on a dynamic manipulation task involving scooping and transporting a tennis ball. The robot had to navigate various scenarios, including full goal stations and environmental obstacles.
Key performance metrics include:
- Success Rate: The robot achieved a 94.7% success rate from a single demonstration. This rose to 98.33% when multiple demonstrations were integrated to handle mid-task disturbances.
- Efficiency: The entire learning pipeline is computationally efficient, requiring approximately 14.4 seconds for DMP fitting and 13–17 seconds for BT synthesis.
- Modularity: The resulting BTs are human-readable and modular, allowing researchers to manually insert recovery behaviors (e.g., sweeping the table if an object is dropped) without retraining the entire model.
Discussion and Conclusion
By linking trajectory segmentation to the robot's own modeling limitations, this framework eliminates the need for predefined action libraries. The integration of BTs ensures that the resulting policies remain reactive and interpretable. While the discovered actions currently lack semantic human names (e.g., "DMP_1" vs "Scoop"), the underlying logic is fully transparent. Future work will explore online learning to refine these primitives through continuous interaction and feedback.
Summary updated