Recognition and reproduction of gestures using a probabilistic framework combining PCA, ICA and HMM

Sylvain Calinon, Aude Billard

Teaching robots new skills through "Learning by Demonstration" (LbD) is a highly intuitive approach, but it faces two major hurdles. First is the Correspondence Problem: humans and robots have fundamentally different bodies, joint limits, and natural dynamics, meaning a direct mapping of joint angles rarely works. Second is High Variability: no two humans perform the same gesture identically, and even a single person's motions vary from trial to trial.

To address these challenges, researchers have developed a robust framework that allows a humanoid robot to recognize, generalize, and reproduce complex motions from very small demonstration datasets (typically 5 to 10 examples). By combining dimensionality reduction with temporal modeling, the system extracts the "essence" of a movement while discarding individual execution noise.

Methodology: A Two-Stage Pipeline

The proposed framework processes motion data—specifically 3D hand positions and joint angles—through a two-stage pipeline designed to distill and encode the core gesture.

System architecture showing dimensionality reduction and HMM encoding
  1. Dimensionality Reduction & Denoising: Before the robot learns a sequence, raw and redundant sensor data is projected onto a lower-dimensional subspace using either Principal Component Analysis (PCA) or Independent Component Analysis (ICA). This crucial step decorrelates the data, separating the core gesture from high-frequency sensor noise and making the subsequent training significantly faster and more stable.
  2. Probabilistic Encoding: The reduced signals are then fed into a continuous Hidden Markov Model (HMM). Each gesture is represented as a sequence of states, with each state describing the statistical distribution (mean and variance) of the data at that specific stage of the motion.
  3. Generalization and Reproduction: To physically move the robot, the system uses the Viterbi algorithm to find the most likely sequence of states. It then interpolates between the "key points" of these states using Piecewise Cubic Hermite polynomials, ensuring smooth and stable physical trajectories.
  4. Automatic Controller Selection: A cost function dynamically decides whether the robot should prioritize following the hand's spatial path (Direct Kinematics) or the specific joint angles (Inverse Kinematics). This decision is based on which variable exhibited the least variance during the human demonstrations.

Experimental Setup

The study validated this framework using a custom dataset of human motions collected from 8 healthy volunteers.

Human demonstrations and robot reproduction

Participants performed 6 distinct gestures: knocking on a door, bringing a cup to the mouth, waving goodbye, and drawing the stylized letters 'A', 'B', and 'C'. Motion was captured using X-sens motion sensors for joint angles and a color-based stereoscopic vision system to track a 3D marker on the hand. The framework was then deployed and tested on a Fujitsu HOAP-2 humanoid robot, utilizing its 4-DOF right arm for reproduction.

Key Results and Insights

  • Perfect Baseline Recognition: The system achieved a 100% recognition rate when tested on the original human demonstration data.
  • Robustness to Noise: The framework was stress-tested by injecting synthetic spatial and temporal noise. Even under severe conditions (20% spatial noise), the ICA-HMM combination maintained a highly resilient ~73% recognition rate. HMMs naturally provided robustness to temporal distortions, seamlessly handling demonstrators who moved faster or slower than average.
  • Variance as a Signal: A core insight of the paper is treating variability as useful information rather than just noise. If a specific joint angle varies wildly across demonstrations, the robot learns that this joint isn't critical to the task. Conversely, if the hand's 3D position is highly consistent, the robot prioritizes that path.
  • Cleaner Reproductions: The robot successfully reproduced generalized versions of all six gestures. Because the HMM effectively averaged out individual execution noise, the reconstructed signals were often "cleaner" and smoother than the original human demonstrations.
  • Automated State Optimization: By employing the Bayesian Information Criterion (BIC), the system automatically determined the optimal number of HMM states for each gesture based on its complexity (e.g., allocating 3 states for the letter 'A', but 6 states for the more complex 'B').

Limitations and Future Work

While highly effective for isolated motions, the current model has limitations. The "random" nature of ICA component ordering proved to be a bottleneck, requiring manual verification to ensure optimal encoding. Furthermore, the framework currently focuses on single, isolated gestures and does not yet scale to complex tasks involving long sequences of varied motions. Finally, the system operates with "context blindness"—it does not understand the environment. Future iterations aim to integrate external modalities, such as speech or object recognition, to provide the robot with context regarding why a specific gesture is being performed.

Summary updated

BibTeX
@inproceedings{calinon2005recognition,
  author = {Sylvain Calinon and Aude Billard},
  title = {{Recognition and reproduction of gestures using a probabilistic framework combining PCA, ICA and HMM}},
  booktitle = {International Conference on Machine Learning},
  year = {2005},
  doi = {10.1145/1102351.1102365},
}
Figure