Learning from demonstration with model-based Gaussian process

Noémie Jaquier, David Ginsbourger, Sylvain Calinon

Abstract

This paper introduces a "GMR-based GP"—a multi-output Gaussian Process that uses Gaussian Mixture Regression to define its prior mean and non-stationary kernel. This hybrid approach allows robots to learn the general "shape" and variability of a task from human demonstrations while remaining flexible enough to precisely hit new via-points or avoid obstacles. It addresses the need to adapt robot behavior based on both demonstrated variability and spatial uncertainty.

Introduction

In Robot Learning from Demonstration (LfD), we want robots to mimic human movements. However, a simple "average" of demonstrations is often insufficient. Two critical pieces of information are often missing or handled separately:

  1. Variability: How much human demonstrations differ at specific task segments. High variability suggests the robot can be compliant, while low variability demands precision.
  2. Uncertainty: The model's confidence in unexplored regions of the state space.

Existing methods like Gaussian Mixture Regression (GMR) are excellent at capturing variability but struggle with new constraints. Conversely, Gaussian Process Regression (GPR) handles uncertainty and constraints well but is often "stationary," ignoring task-specific nuances. This paper bridges this gap by proposing a GMR-based Gaussian Process.

Methodology

The proposed framework constructs a GP with several unique components:

  • Prior Mean from GMR: Instead of a zero mean, the GP uses the mean trajectory predicted by GMR, ensuring it defaults to demonstrated behavior.
  • Non-Stationary Kernel: A kernel is designed as a weighted sum of components from a Gaussian Mixture Model (GMM), allowing the GP's stiffness to vary spatially based on the task phase.
  • Linear Model of Coregionalization (LMC): This handles multi-output data simultaneously, capturing cross-dimensional correlations.
  • Efficient Conditioning: By embedding the task "shape" into the prior, the robot only needs to condition the GP on a few new via-points at runtime, significantly reducing computational overhead.
Modeling the B-shape trajectory: (a) shows the initial demonstrations and (b) shows the GMR-based GP representation capturing variability.

Experimental Validation

The approach was validated using a 2D "B-shape" trajectory and a real-world peg-in-hole task with a 7-DoF Franka Emika Panda robot. In the B-shape example, the model demonstrated its ability to handle complex geometries and varying noise levels. More importantly, it showed how the trajectory could be adapted to new constraints.

Conditioning the B-shape trajectory: (a) original demonstrations and (b) the GMR-based GP conditioned on new via-points (black dots), maintaining the overall shape while meeting constraints.

Key Insights

  • Compliance through Covariance: Robot tracking gains can be set as a function of GP covariance. The robot automatically becomes "stiff" for precision (low variability) and "soft" for transit (high variability).
  • Shape Preservation: Unlike standard Multi-Output GPs that might take unnatural shortcuts between via-points, the GMR-based GP "remembers" the demonstrated path even when stretched to meet new constraints.
  • Computational Efficiency: By discarding the original training data and only using via-points as "observations," the complexity drops from $O(N^2 D^2)$ to $O(V^2 D^2)$, where $V$ (via-points) is much smaller than $N$ (demonstration points).

Conclusion

The GMR-based GP successfully combines the strengths of GMR and GPR. In peg-in-hole experiments, it circumvented obstacles and reached relocated targets where standard methods failed. While currently time-driven, future work aims to incorporate state-space representations and active learning to further enhance robotic autonomy.

Summary updated

BibTeX
@inproceedings{jaquier2019learning,
  author = {Noémie Jaquier and David Ginsbourger and Sylvain Calinon},
  title = {{Learning from demonstration with model-based Gaussian process}},
  booktitle = {Conference on Robot Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=NBdn3L2Cz9u},
}
Figure