530 likes | 670 Views
Movement Imitation: Linking Perception and Action. Advanced Topics in Computer Vision, 2004 Lior Noy Department of Computer Science and Applied Mathematics Weizmann Institute of Science. Movement Imitation - Example. Imitation: Linking Perception and Action.
E N D
Movement Imitation: Linking Perception and Action Advanced Topics in Computer Vision, 2004 Lior Noy Department of Computer Science and Applied Mathematics Weizmann Institute of Science
Imitation: Linking Perception and Action semantic world(objects, actions) Perception Imitation Action realm of raw-data (pixels, muscles activation)
Outline 1. MovementImitation 2. Programming By Demonstration • 3. Robotic Movement Imitation • Primitives Based Approach (Mataric’) • Real Time Tracking (“mirror-game”) (Ude et al.) 4. Direct Perception and Imitation
A Variety of Probes into Imitation Developmental psychology Ethology Imitation Human Brain Imaging Cognitive psychology Neurophysiology Robotics
Programming By Demonstration (PbD) Methods to program a robot • Human Programming • Reinforcement Learning • Programming by Demonstration
Programming By Demonstration (PbD)Applications • Navigation • Locomotion • Playing air-hockey • Manipulating blocks • Balancing a pole • Hitting a tennis-serve • Grasping unfamiliar objects • Imitating dancing movement
PbD – Application Example The “Golden Maze”
PbD – Application Example Playing Air-Hockey
PbD – Application Example Box Manipulations
Three Approaches for PbD • Symbolic • Control-Based • Statistical
Symbolic Approach for PbD • Analyze observed actions in terms of sub-goals • Match actions needed to fulfill these sub-goals • Createa symbolic description of the environment ( ”object A is above object B” ) • Learn a series of symbolic if-thenrules ( ”if object A is aboveobject B then grasp-object[ object B ]” )
Example: Symbolic Approach for PbD (Kunyushi et al., 1994) … but how do you symbolically describes “hitting a tennis serve”?
Control-Based Approach for PbD • No symbolic parsing of perceived actions • Assume a pre-defined control policy • Acquire needed parameters from observation
Forward Models motor commands jointangles end-effectorposition Inverse Models Control-Based Approach Inverse Models Sometime assume known inverse models (converting desired effect to needed commands)
Example: Control-Based Approach for PbD (Schaal, 2003) Tennis movie
Statistical Approach for PbD • No prior assumption on used control policy • Statistically match perception and action • Can this be done? More on this later…
PCA Example: Statistical Approach for PbD (Asada, 1995)
Example: Statistical Approach for PbD • Learning: • Perform random action A(i) • Record resulted optical flow f(i) • Compute principal-component p1(i), p2(i) • Learn the connection A(i) – {p1(i), p2(i)}
Outline 1. MovementImitation 2. Programming By Demonstration • 3. Robotic Movement Imitation • Primitives Based Approach (Mataric’) • Real Time Tracking (“mirror-game”) (Ude et al.) 4. Direct Perception and Imitation
PbD for Movement ImitationPre-Cursor 1: Cartoons Retargeting (Bregler et al., 2002)
y x Cartoons RetargetingTwo Types of Deformations • Affine deformation • Key shape deformation
Cartoons Retargeting - Results More on: http://www.cs.weizmann.ac.il/~hassner/cv03/“Animating human motion”, Speakers : Simon Adar, Yoram Atir
PbD for Movement ImitationPre-Cursor 2: Guided Movement Synthesis (Zelnik-Manor, Hassner & Irani, 2004)
Event-Based Analysis of Video (Zelnik-Manor & Irani, 2001)
X1X2...Xn J1J2...Jm movementprimitive1 movementprimitive2 = = ... movementprimitive K PbD for Movement ImitationCase Study: Primitive-Based Approach The Problem: How to convert visual input to motor output? A Possible Solution: Use a common, sparse representation: sensory-motor primitives. … but what primitives to use?
Movement Imitation Using Sensory-Motor Primitives Motor primitives: Sequences of action that accomplish a complete goal-directed behavior. Examples:1. Move hand in “straight line”, “parabola” (Felix…).2. Perform “grasping”, “a tennis serve”.
Imitation Learning Using Sensory-Motor Primitives (Schaal, Ijspeert & Billard, 2003)
Inspiration for Using Sensory-Motor Primitives • Evidence for: • Coding of goal-directed actions. • Shared representations of perception and action. • Example – Mirror Neurons. (Rizzolatti et al., 2002; Gallese et al. 1996)
Movement Imitation Using Sensory-Motor Primitives • General Principles: • Selective attention focusing on end-points movements. • Sensory-motor primitives as integrative representation. • Learning new skills as compositions of primitives. • Experimental test-beds. (Mataric’,1998)
What Sensory-Motor Primitives to Use? InnatePre-defined control policies (e.g., central pattern generators) LearnedUn-supervised clustering (using PCA, Isomap ) Primitives End-Points Space(“visual space”) Joints Space(“motor space”)
“Experiment in Imitation Using Perceptuo-Motor Primitives”, (Weber, Jenkins & Mataric’,2001) • Extract hand (end-point) movements. • Perform Vector-Quantization to get invariant representation.
“Experiment in Imitation Using Perceptuo-Motor Primitives” • Classify movement to primitives (line, arc, circle). • Group adjacent similar primitives.
“Experiment in Imitation Using Perceptuo-Motor Primitives” • Determine primitives parameters. • Project to ego-centric space.
“Experiment in Imitation Using Perceptuo-Motor Primitives” (Weber, Jenkins & Mataric’,2001)
PbD for Movement ImitationCase Study: Real-Time Tracker • The Goal:Mimic movements in real-time • The Problem: • Large amount of data to process (6 MB/Sec) • Need “continuous success” • The Solution: • Probabilistic approach to prevent excessive data interactions (Ude et al.,2001)
“Real-Time Visual System for Interaction with Humanoid Robot”(Ude, Shibata & Atkeson, 2001) Estimate positions of tracked “blobs” in the image Compute 3D coordinates of tracked objects using stereo Transform into via-points for robot hand trajectory Compute motor commands from desired trajectory
Real-Time Tracker Tracking “Blobs” In a Bayesian Setting probability for the pixel at location u to have Intensity Iu Given the process k a-priori probability for process k
Real-Time TrackingMinimize Log-Likelihood overall probabilityto observe image I Goal: determine the parameters that are most likely to produce this image – Maximal Likelihood Problem. computationally easier to minimize the negative log likelihood
Real-Time TrackingMinimize Log-Likelihood Find minimum (using Lagrange Multipliers) and get: probability that pixel ustems from process l
Real-Time TrackingFind Probabilities Parameters The above equations are solved iteratively by the Expectation-Minimization (EM) algorithm • Expectation stage: • compute Pu,l using the current estimate for Ө and ω. • Minimization stage: • compute new Ө and ω assuming Pu,l are constant. from probabilities of pixels to belong to a certain process (e.g. – the human hand) …
“Real-Time Visual System for Interaction with Humanoid Robot” … to object locations
Real-Time TrackingGeneral Stages Estimate positions of tracked “blobs” in the image Compute 3D coordinates of tracked objects using stereo Transform into via-points for robot hand trajectory Compute motor commands from desired trajectory
Real-Time Tracking - Results Robot Compliance Movie