SemanticSLAM: Learning based Semantic Map Construction and Robust Camera Localization

Mingyang Li, Yue Ma, Qinru Qiu

TL;DR

SemanticSLAM is an end-to-end visual-inertial odometry system that ditches pixel-perfect matching in favor of "semantic" landmarks (like chairs or tables). By using a Convolutional LSTM to build and refine a 2D semantic map, the system achieves robust localization even with infrequent camera inputs that would cause traditional SLAM algorithms to fail.

What Problem Does This Paper Address?

Traditional Visual Simultaneous Localization and Mapping (VSLAM) systems, like ORB-SLAM, are "feature-hungry." They rely on tracking thousands of tiny geometric points (keypoints) across consecutive frames. This approach has two major drawbacks:

  1. High Computational Cost: Processing high-frequency video to maintain "scene continuity" drains memory and battery.
  2. Fragility: If the camera moves too fast, the frame rate drops, or lighting changes, the system loses its "lock" because it can't find matching pixels between frames.

The authors argue that humans don't navigate by memorizing every pixel; we navigate by recognizing objects and their relative positions. SemanticSLAM mimics this by building a map of meaning rather than a map of points.

Methods

The SemanticSLAM pipeline consists of several clever stages that move from raw pixels to a "neural-symbolic" map:

  • Semantic Extraction: Instead of generic corners or edges, the system uses YOLOv3 for object detection and the Segment Anything Model (SAM) to mask out foreground objects. Each object is assigned a class label (the "semantic" part).
  • Feature Projection: Using RGB-D (depth) data, these 2D object labels are projected into an egocentric 2D top-down "observation map."
  • Visual Pose Estimation: The system compares the current observation map against the existing global map. It rotates the observation through 360 degrees and uses 2D convolution to find the best "fit," which tells the robot its likely position and orientation.
  • IMU Bootstrapping: At the start of a mission (when the map is empty), the system uses a low-cost Inertial Measurement Unit (IMU) to provide a rough estimate of movement, preventing the "cold start" problem where the robot has no idea where it is.
  • ConvLSTM Map Update: This is the "secret sauce." Instead of just adding new observations to the map, a Convolutional Long Short-Term Memory (ConvLSTM) network manages the map. It learns to "remember" stable objects and "forget" or ignore noisy data caused by obstructions or bad sensor readings.

Datasets

The researchers evaluated the system using a simulated dataset called "IndoorScenes," generated via the Gazebo multi-robot simulator.

  • Environment: Indoor settings with various objects randomly placed.
  • Hardware Emulation: A TurtleBot3 equipped with an RGB-D camera and an IMU.
  • The Challenge: To simulate real-world constraints, they sampled images at a rate slower than 1Hz. This is a "torture test" for traditional SLAM, which typically requires 15–30Hz to function.

Key Insights and Ideas

  • Semantic Invariance: By focusing on object classes rather than raw pixels, the system is much more robust to changes in lighting, viewing angles, and distance. A "chair" remains a "chair" even if the shadows move.
  • The Map as a Hidden State: Treating the global map as the hidden state of a ConvLSTM allows the system to treat map-building as a learning problem. The network learns to filter out "hallucinations" or temporary obstructions over time.
  • Scene-Agnostic Learning: Unlike some deep-learning SLAM methods that need to be retrained for every new room, SemanticSLAM learns the process of mapping. This allows it to generalize to entirely new environments (Cross-Scene) without retraining.

Key Results

  • Accuracy Boost: SemanticSLAM improved pose estimation accuracy by 17% compared to existing state-of-the-art semantic mapping methods like MapNet.
  • Robustness to Low Frequency: In tests with low-frequency camera input, traditional ORB-SLAM2 failed to generate any pose estimation because it couldn't find enough matching keypoints. SemanticSLAM continued to function reliably.
  • Efficiency: The resulting semantic maps are 2D grid arrays, which are significantly more memory-efficient than the massive 3D point clouds generated by traditional VSLAM.
  • Ablation Success: The authors showed that adding the ConvLSTM alone reduced position error by 17% and direction error by 19% over a standard heuristic mapping approach.

Limitations and Future Work

  • Detector Dependency: The system's performance is heavily tied to the quality of the object detector (YOLO/SAM). If the robot enters an environment with objects the detector doesn't recognize, localization could degrade.
  • Simulation vs. Reality: While Gazebo is a high-fidelity simulator, the paper does not show results from physical robots in complex, dynamic real-world environments (e.g., moving people, changing furniture).
  • IMU Drift: While the IMU helps bootstrap the system, the authors acknowledge that its intrinsic error accumulates over time, meaning the system still relies heavily on visual cues to "reset" the drift.

Future work could involve deploying the system on physical hardware and exploring how it handles dynamic objects (like people walking through the scene) that might confuse a static semantic map.

Summary updated

Abstract

Current techniques in Visual Simultaneous Localization and Mapping (VSLAM) estimate camera displacement by comparing image features of consecutive scenes. These algorithms depend on scene continuity, hence requires frequent camera inputs. However, processing images frequently can lead to significant memory usage and computation overhead. In this study, we introduce SemanticSLAM, an end-to-end visual-inertial odometry system that utilizes semantic features extracted from an RGB-D sensor. This approach enables the creation of a semantic map of the environment and ensures reliable camera localization. SemanticSLAM is scene-agnostic, which means it doesn't require retraining for different environments. It operates effectively in indoor settings, even with infrequent camera input, without prior knowledge. The strength of SemanticSLAM lies in its ability to gradually refine the semantic map and improve pose estimation. This is achieved by a convolutional long-short-term-memory (ConvLSTM) network, trained to correct errors during map construction. Compared to existing VSLAM algorithms, SemanticSLAM improves pose estimation by 17%. The resulting semantic map provides interpretable information about the environment and can be easily applied to various downstream tasks, such as path planning, obstacle avoidance, and robot navigation. The code will be publicly available at https://github.com/Leomingyangli/SemanticSLAM
BibTeX
@inproceedings{li2023semanticslam,
  author = {Mingyang Li and Yue Ma and Qinru Qiu},
  title = {{SemanticSLAM: Learning based Semantic Map Construction and Robust Camera Localization}},
  booktitle = {SSCI},
  year = {2023},
  url = {https://openreview.net/forum?id=aZJeQfkvMg},
}

Loading related content...

Figure