Abstract
In this paper, we present a general framework for learning social affordance grammar as a spatiotemporal AND-OR graph (ST-AOG) from RGB-D videos of human interactions, and transfer the grammar to humanoids to enable a real-time motion inference for human-robot interaction (HRI). Based on Gibbs sampling, our weakly supervised grammar learning can automatically construct a hierarchical representation of an interaction with long-term joint sub-tasks of both agents and short term atomic actions of individual agents. Based on a new RGB-D video dataset with rich instances of human interactions, our experiments of Baxter simulation, human evaluation, and real Baxter test demonstrate that the model learned from limited training data successfully generates human-like behaviors in unseen scenarios and outperforms both baselines.
Introduction
As robots increasingly enter human environments as service providers or co-workers, they must interact in ways that feel socially natural and comfortable. Traditional robotic "affordance" research has largely focused on object manipulation—how to grasp a cup or navigate a room. While social affordances—the unwritten physical rules of human interaction like handshakes or high-fives—have been explored, previous models often lacked the flexibility to generalize to unseen scenarios or control physical hardware in real-time. This work bridges that gap by learning complex, whole-body social interactions from video and transferring that knowledge into real-time motion control for humanoid robots.
Methodology
The core of this framework is the representation of social interactions as a visual language modeled by a spatiotemporal AND-OR graph (ST-AOG). This approach allows the system to break down continuous social interactions into a hierarchical structure of logical, reusable blocks.
Learning the Grammar
Using 3D skeletons extracted from RGB-D videos via Kinect sensors, the system employs weakly supervised learning via Gibbs sampling to construct the ST-AOG. This graph structure automatically discovers:
- Latent Joint Sub-tasks: Shared goals between agents, such as two hands meeting for a handshake.
- Atomic Actions: Individual movements like arm extension or retraction.
- Semantic Attributes: Actions are bundled with attributes such as moving, static, approaching, or holding.
Real-Time Motion Inference and Control
During human-robot interaction, the robot observes a human's skeleton and parses their current action through the learned ST-AOG to infer the most probable corresponding response. To translate these inferences into physical movement, the authors designed an optimization function that blends three control modes: reaching a target (hand moving), maintaining a pose (static), and copying human-like joint angles (motion mimicking).
Datasets and Evaluation
The researchers compiled a new RGB-D video dataset featuring 227 instances across five categories: Shake Hands, High Five, Pull Up, Wave Hands, and Hand Over. This dataset introduces diverse physical scenarios, such as interactions between standing and sitting individuals, to test the model's ability to generalize beyond its training data.
The approach was evaluated using a Baxter research robot (both in simulation and real-world) against two baselines: a previous skeleton-synthesis method (B1) and a standard RRT-connect robotic motion planner (B2).
- Kinematic Accuracy: The proposed method's generated motions closely matched ground-truth human skeletons. In the "Wave Hands" task, it achieved a mean joint angle difference of 0.551 radians, significantly outperforming the baselines (0.866 and 0.930 radians).
- Human Evaluation: In blind tests, human observers rated the simulation videos on a 1-5 scale. The proposed method scored ~4.5–4.8 for task success and ~4.0–4.6 for naturalness, while baselines struggled with scores between 1.5 and 3.2.
- Real-World Deployment: The system successfully controlled a physical Baxter robot in real-time, utilizing head-mounted vision and pressure sensors in the gripper to detect interaction states, such as "holding" during a handshake.
Discussion and Future Work
By representing interactions as a hierarchical grammar, the system achieves high data efficiency. This model inherently utilizes an "Implicit Theory of Mind," where the robot plans its actions based on its belief about the human's current atomic actions and the overarching shared goal. This allows for remarkable adaptability; for instance, a robot trained on standing humans can successfully high-five a sitting user.
Despite these successes, the authors noted that hardware constraints on the physical Baxter robot led to slower movements compared to simulation. Future work will focus on mitigating perception noise from skeleton tracking and integrating verbal communication through language models to create more proactive and communicative social robots.
Summary updated