Learning Periodic Tasks from Human Demonstrations

Jingyun Yang, Junwu Zhang, Connor Settle, Akshara Rai, Rika Antonova, Jeannette Bohg

TL;DR

This paper introduces ViPTL, a novel framework for robots to learn periodic manipulation tasks from single human video demonstrations. By leveraging rhythmic Dynamic Movement Primitives (rDMPs) and an unsupervised keypoint-based visual similarity metric, ViPTL enables efficient learning of complex tasks involving deformable and granular objects with minimal robot trials.

What Problem Does This Paper Address?

Many everyday tasks, like wiping a table or stirring food, are inherently periodic. While robots can learn manipulation skills from human demonstrations, effectively capturing and replicating these periodic motions has been a challenge. Prior methods often struggle with the long-horizon nature of periodic tasks or require extensive, often kinesthetic, demonstrations. This paper aims to bridge this gap by enabling robots to learn these periodic skills from simple, readily available visual demonstrations, even when dealing with complex, deformable, or granular objects that are difficult to model precisely.

Methods

The core of ViPTL lies in two main modules:

  1. Unsupervised Visual Representation Module: This module addresses the challenge of comparing human demonstrations to robot executions without explicit object tracking or markers. It uses a variation of the Transporter architecture to train an unsupervised keypoint detection model on task-agnostic "play data" (unpaired human and robot interaction videos). This model learns to identify consistent keypoints on objects, allowing for a quantitative measure of similarity between human and robot videos based on the alignment of these keypoints over time.
  2. Parameter Optimization Module: This module uses Bayesian Optimization (BO) to learn the parameters of rhythmic Dynamic Movement Primitives (rDMPs). rDMPs are well-suited for periodic tasks as they explicitly model cyclic motion with parameters that can adjust for translation over time.
  3. Periodicity Estimation: Before optimization, a pre-trained model called RepNet is used to automatically segment the human demonstration into single-period components.
  4. Bayesian Optimization with Warm-Starting: To improve sample efficiency, BO is "warm-started." This involves generating "imagined trajectories" from segments of robot play data that exhibit high alignment with the first period of the human demonstration. These imagined trajectories provide initial candidates for BO, guiding it towards promising regions of the parameter space more quickly. The objective function for BO is the keypoint-based distance metric learned by the visual representation module.

Datasets

  • Human and Robot "Play Data": Approximately 10 minutes of random, unpaired, unlabeled human and robot interactions were collected for training the unsupervised keypoint model. This data is task-agnostic.
  • Human Video Demonstrations: A single video demonstration of the target periodic task is used for learning.
  • Countix Dataset: The RepNet model for periodicity estimation was used without finetuning, implying it was pre-trained on a dataset like Countix.

Key Insights and Ideas

  • Leveraging Periodicity: The paper's central idea is that explicitly modeling the periodic nature of tasks significantly simplifies learning. By decomposing tasks into single periods, the learning problem is reduced.
  • Keypoint-based Similarity: Using unsupervised keypoint detection provides a robust and generalizable way to compare human and robot actions, especially for tasks involving deformable or granular objects where precise state estimation is difficult. This avoids the need for explicit object models or markers.
  • Warm-starting Bayesian Optimization: The "imagined trajectories" approach is a clever way to inject prior knowledge into BO, making it much more sample-efficient for learning complex robotic skills from scratch on a real robot.
  • rDMPs for Periodic Control: Rhythmic DMPs are shown to be an effective representation for learning and executing periodic motions, allowing for runtime adjustments in speed and amplitude.

Key Results

  • ViPTL successfully learned three challenging periodic manipulation tasks (table wiping, rope winding, food stirring) involving deformable and granular objects.
  • The method achieved good performance within 50 robot trials, outperforming baselines like Direct Imitation and a Twentybn Classifier-based approach.
  • The keypoint-based objective function was crucial for the method's success, demonstrating its superiority over using latent features from a video classifier.
  • Real robot experiments validated the approach, showing consistently improving performance and the ability to execute learned skills with varying numbers of repetitions and scales without retraining.

Limitations and Future Work

  • Initial Stages of Tasks: The current method focuses on the periodic part of tasks and does not explicitly handle initial transient motions like grasping.
  • Perception Module Generalization: The authors plan to extend the perception module to generalize to unseen camera views and contexts.
  • Data Efficiency: While significantly improved by warm-starting, the method still requires a small amount of play data for initial representation learning and a single demonstration for task learning. Future work might explore even more data-efficient approaches.

Summary updated

BibTeX
@inproceedings{yang2022learning,
  author = {Jingyun Yang and Junwu Zhang and Connor Settle and Akshara Rai and Rika Antonova and Jeannette Bohg},
  title = {{Learning Periodic Tasks from Human Demonstrations}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2022},
  doi = {10.1109/icra46639.2022.9812402},
}
Figure