Introduction
In the field of robotics, "Learning from Demonstration" (LfD) is a primary method for teaching machines human-like movements. However, real-world tasks are rarely isolated motions; they are typically sequences of subtasks, such as reaching for a tool, using it, and then retracting. A significant challenge in LfD is learning these complex sequences as a unified, mathematically stable system. This paper introduces a novel framework, HMM-LPV, designed to learn task sequences directly from demonstrations without requiring pre-segmented data.
Problem Statement
Traditional approaches to teaching complex tasks often rely on a two-step process: segmenting long demonstrations into subtasks and then learning a control policy for each segment. This process is inherently brittle. Segmentation algorithms frequently use oversimplified models that ignore the physical and control requirements of the robot, leading to learned controllers that may fail to reach their goals. Furthermore, most existing models require the "attractor"—the target coordinate—to be known beforehand. Ideally, a robot should be able to estimate the goal autonomously by observing human demonstrations.
Methodology
The proposed HMM-LPV framework utilizes a two-layered approach to ensure stability and accuracy:
- Linear Parameter Varying (LPV) Systems: Complex, non-linear motions are modeled as a mixture of linear systems. This effectively approximates intricate curves as a series of local linear dynamics that adapt based on the robot's state.
- The "Inverse" Formulation: To overcome the non-convexity of identifying unknown attractors in non-linear systems, the authors reformulate the problem using inverse dynamics. This transformation turns goal estimation into a bias term that can be solved efficiently via convex optimization, ensuring a global optimum is found.
- HMM Integration: These stable LPV motions are embedded within a Hidden Markov Model (HMM), where hidden states represent specific subtasks.
- Probabilistic Termination: A termination policy based on a Bernoulli distribution is implemented. As the robot approaches a subtask's attractor, the probability of transitioning to the next state in the HMM increases, enabling smooth task sequencing.
Experimental Validation
The model was validated across three diverse datasets:
- LASA Handwriting Dataset: A benchmark of 2D handwritten shapes used to evaluate dynamical system accuracy.
- 2D Human Motions: Trajectories captured via mouse input to test multi-stage task sequencing.
- Kinaesthetic Demonstrations: Real-world data from a robot arm performing a "reach-peel-retract" cycle for a zucchini-peeling task.
Key Results
The HMM-LPV approach demonstrated significant improvements over existing methods like SEDS (Stable Estimator of Dynamical Systems).
As shown in the performance metrics, the proposed LPV-EM method significantly reduces attractor estimation error when the goal is unknown. Moreover, the convex reformulation allows for much faster training times compared to iterative, non-convex alternatives.
Qualitatively, the LPV-EM method consistently converges to the target attractor even when it is not explicitly provided, whereas SEDS often fails to reach the goal in unknown-attractor scenarios. In real-world tests, the robot successfully managed the cyclic peeling task, handling physical perturbations gracefully by naturally "flowing" back to the stable dynamical path.
Conclusion
The HMM-LPV framework provides a robust, unified approach to learning stable task sequences. By ensuring convexity in the optimization process, the method guarantees both stability and efficiency. Future work will explore more complex task topologies, such as branching sequences, and investigate the use of this model as a structured prior for Reinforcement Learning to further refine robotic skills.
Summary updated