End-to-End Pixel-Based Deep Active Inference for Body Perception and Action

Cansu Sancaktar, Marcel A. J. van Gerven, Pablo Lanillos

TL;DR

This paper introduces PixelAI, a novel end-to-end deep active inference algorithm that allows robots to perceive their own bodies and perform actions using only raw visual input. By unifying perception and action within a single framework inspired by human neuroscience, PixelAI demonstrates impressive capabilities in dynamic body estimation and goal-directed reaching, paving the way for more adaptable and embodied robots.

What Problem Does This Paper Address?

Robots often struggle with flexible body perception and robust action, especially in dynamic environments. Traditional approaches rely on rigid body models and separate perception and control modules, which can fail when faced with uncertainty or changes in the environment. Humans, on the other hand, exhibit remarkable adaptability, learning to perceive their bodies and act effectively through continuous interaction and sensory feedback. This paper aims to bridge this gap by developing a robot system that can learn to perceive its own body and execute actions in a unified, neuroscience-inspired manner, directly from visual input.

Methods

The core of this work is the PixelAI algorithm, which leverages the free energy principle from neuroscience and deep convolutional decoders. The free energy principle provides a unified framework for perception and action, where an agent aims to minimize surprise (prediction error) by updating its internal model (perception) and acting to reduce future surprise (action). PixelAI implements this by:

  • Pixel-based Input: Directly processing raw camera images, avoiding the need for pre-defined features or complex sensor fusion.
  • Deep Convolutional Decoders: Learning a generative model of the robot's body (e.g., joint angles) and its visual appearance. These decoders map the robot's internal belief about its body state to predicted visual sensations.
  • Variational Free-Energy Optimization: Minimizing a variational free-energy bound to simultaneously update the robot's internal belief about its body state (perception) and generate motor commands (action).
  • Active Inference for Goals: Incorporating desired visual goals as attractors in the body state dynamics, allowing the robot to actively pursue these goals in visual space.

This approach unifies perception and action, enabling online adaptation and learning from high-dimensional visual input without explicit task-specific policies.

Datasets

  • Simulated NAO Dataset: 3200 data samples of the left arm elbow and shoulder joint readings and corresponding observed images from the Gazebo simulator.
  • Real NAO Dataset: Images and joint readings from a real Aldebaran NAO humanoid robot.
  • Benchmark: A custom benchmark with three difficulty levels was created to evaluate PixelAI on randomized arm poses for both perceptual and active inference tasks.

Key Insights and Ideas

  • Unified Perception and Action: The paper demonstrates that perception and action can be effectively solved as a single active inference problem, guided by ongoing sensory input.
  • Neuroscience Inspiration for Robotics: By grounding the approach in human embodied research and predictive coding, the learned representations are more likely to have physical meaning and be transferable.
  • Direct Visual Control: The ability to perform perception and action directly from raw pixels bypasses the need for hand-engineered features or complex intermediate representations.
  • Goal-Directed Behavior via Attractors: Using visual goals as attractors within the active inference framework provides a natural way for robots to learn to reach desired states without explicit reward engineering.
  • Adaptability to Real-World Noise: The algorithm shows robustness to the inherent noise and imprecision of real-world robotic systems.

Key Results

  • Dynamic Body Estimation: PixelAI successfully estimated the robot's arm joint states using only monocular camera images, even with random initializations.
  • Autonomous Reaching: The robot could perform autonomous reaching to "imagined" arm poses in visual space, guided by goal images.
  • Performance Across Difficulty Levels: The algorithm showed convergence in both perception and action across different levels of difficulty, though performance degraded with more random arm poses (Level 3).
  • Real Robot Performance: The system was successfully deployed on a real NAO robot, demonstrating its practical applicability despite mechanical limitations and synchronization issues.
  • Quantitative Results: Mean absolute joint errors for perceptual inference were reported, with Level 1 and 2 showing good convergence (e.g., < 1 degree for shoulder pitch in simulation). Active inference results also showed successful convergence towards goal states.

Limitations and Future Work

  • Local Minima Problem: For highly randomized arm poses (Level 3), the algorithm encountered local minima, leading to larger errors. This suggests a need for more robust optimization strategies.
  • Real-World Imprecision: The real robot's mechanical backlash and synchronization issues with the velocity controller led to unsmooth movements and a mismatch between internal error and actual arm position.
  • Scalability to Complex Tasks: The authors suggest that a deeper analysis is needed to evaluate the algorithm's scalability to sequential complex tasks.
  • Future Directions: The paper proposes designing systems that generate desired internal beliefs transformed into expected sensations, viewing perception as a hierarchical dynamical system. Further work could explore incorporating priors (top-down modulation) while maintaining inference dynamics over observations (bottom-up).

Summary updated

BibTeX
@inproceedings{sancaktar2020end,
  author = {Cansu Sancaktar and Marcel A. J. van Gerven and Pablo Lanillos},
  title = {{End-to-End Pixel-Based Deep Active Inference for Body Perception and Action}},
  booktitle = {ICDL-EPIROB},
  year = {2020},
  doi = {10.1109/icdl-epirob48136.2020.9278105},
}
Figure