Learning deep generative spatial models for mobile robots

Andrzej Pronobis, Rajesh P. N. Rao

TL;DR

The Deep Generative Spatial Model (DGSM) is a novel probabilistic framework that allows mobile robots to learn a single, universal representation of their environment spanning both low-level geometry and high-level semantics. By leveraging Sum-Product Networks (SPNs), DGSM achieves state-of-the-art performance across diverse tasks—including place classification, novelty detection, and scene completion—outperforming specialized models like SVMs and GANs while operating with superior computational efficiency.

What Problem Does This Paper Address?

Robots need to understand their surroundings at multiple levels of abstraction, from raw sensor data (like laser scans) to geometric structures (walls, openings) and semantic labels (corridors, offices). Traditionally, robotic systems handle this by stitching together independent, hand-engineered modules. This fragmented approach makes it difficult to integrate spatial knowledge cleanly into planning and decision-making algorithms.

While deep learning models like Convolutional Neural Networks (CNNs) have successfully unified some of these layers, they are almost exclusively used as discriminative classifiers. They can tell a robot what room it is currently in, but they struggle with generative tasks: estimating uncertainty, detecting entirely new types of environments (novelty detection), generating prototypical room layouts, or predicting missing geometric data from partial sensor observations.

Methods

To build a truly universal spatial model, the authors introduce DGSM, which is built on Sum-Product Networks (SPNs). Unlike traditional deep graphical models, which suffer from intractable inference times, SPNs represent joint probability distributions in a way that guarantees exact inference in polynomial time.

Simple SPN Example

The core components of the methodology include:

  • Robot-Centric Polar Grids: Instead of standard Cartesian maps, DGSM processes laser-range data using a polar occupancy grid. This naturally provides high-resolution detail close to the robot (critical for immediate actions and identifying doorways) and lower resolution further away.
  • Hybrid Structure Generation: The network architecture combines domain knowledge with random structure generation. The polar grid is divided into eight 45-degree views. For each view, the network structure is generated recursively via random variable decompositions (similar to how random forests are built), allowing the model to learn complex, unengineered spatial dependencies.
  • Hard EM Learning: The parameters (weights) of the SPN are optimized using a variation of hard Expectation-Maximization (EM), which helps mitigate the vanishing gradient problem common in deep architectures.
  • LibSPN: To facilitate this work, the authors introduced a new general-purpose library for SPN learning and inference built on top of TensorFlow.
DGSM Architecture

Datasets

The model was evaluated using real-world laser-range data from the COLD-Stockholm dataset. The data consists of sequences captured by a mobile robot navigating four different floors of an office building. The primary evaluation focused on four standard semantic categories: large office, small office, corridor, and doorway. Other less frequent categories (like kitchens or elevators) were withheld during training to serve as unknown classes for testing novelty detection.

Key Insights and Ideas

  • The Power of Generative Universality: A single instance of DGSM, trained once, was able to perform semantic classification, novelty detection, scene generation, and data completion. It proved that a unified generative model doesn't have to sacrifice performance to achieve multi-task versatility.
  • Random Structures Work: Rather than relying on complex, computationally expensive structure-learning algorithms, simply generating random variable decompositions provided excellent results. The network can later be pruned by removing near-zero weights, acting as a simple form of structure learning.
  • SPNs vs. GANs for Inference: While Generative Adversarial Networks (GANs) are powerful visual generators, performing inference tasks like image completion requires iterative, slow optimization (stochastic gradient descent) to find the right latent variables. SPNs bypass this entirely, completing scenes in a single, highly efficient upward/downward pass through the network.

Key Results

The authors benchmarked DGSM against task-specific models optimized for individual sub-problems:

  • Semantic Place Categorization: DGSM achieved an average classification accuracy of 92.7%, significantly outperforming a well-established SVM baseline trained on geometric features (85.9%).
  • Novelty Detection: When encountering unseen room types, DGSM achieved an Area Under the ROC Curve (AUC) of 0.81, beating a one-class SVM baseline (0.76).
  • Predicting Missing Observations: In a task where 25% of the environment map was intentionally masked, DGSM correctly reconstructed 77.14% of the missing cells, outperforming a Deep Convolutional GAN (DC-GAN) which recovered 75.84%. Crucially, DGSM achieved this with a fraction of the computational cost and at speeds well beyond real-time.

Limitations and Future Work

The primary limitation of the current DGSM implementation is its reliance on 2D laser-range data represented as flat polar occupancy grids. While effective for basic geometry, it ignores rich visual textures and 3D structural data.

The authors note that SPNs have already shown immense promise in computer vision tasks. Therefore, their immediate future work focuses on extending the DGSM architecture to accommodate 3D spatial data and visual inputs from depth sensors, ultimately aiming to use these deep representations for high-level probabilistic robot planning.

Summary updated

BibTeX
@inproceedings{pronobis2017learning,
  author = {Andrzej Pronobis and Rajesh P. N. Rao},
  title = {{Learning deep generative spatial models for mobile robots}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2017},
  doi = {10.1109/iros.2017.8202235},
}
Figure