Loop Closure Detection Based on Object-level Spatial Layout and Semantic Consistency

Fei Wen, Xingwu Ji, Peilin Liu, Haochen Niu, Xiang Chen, Rendong Ying, Fei Wen 0005arXiv 2023 · DOI

Abstract

Traditional Visual SLAM systems often struggle with loop closure detection under large viewpoint changes, as they rely heavily on point-cloud or appearance-based matching. This paper presents a robust alternative that represents the environment as a 3D scene graph of objects. By leveraging spatial layouts, color histograms, and semantic "fingerprints," the proposed system can recognize revisited locations even when the camera's viewpoint has shifted by more than 125 degrees.

Introduction: The Challenge of Large Viewpoint Changes

Simultaneous Localization and Mapping (SLAM) is a fundamental capability for autonomous robotics, allowing a machine to map its environment while tracking its own position. A cornerstone of SLAM is Loop Closure Detection, the process of recognizing a previously visited location to correct accumulated odometry drift.

Most contemporary systems utilize "appearance-based" features, which match pixel patterns or point clouds. However, these methods are fragile; if a robot returns to a spot from the opposite direction, the visual scene changes drastically due to perspective warping and shifting shadows. This "large viewpoint change" remains a significant hurdle for modern SLAM robustness.

Methodology

The authors propose an object-level approach that conceptualizes the world as a collection of 3D entities rather than a disorganized cloud of points. The pipeline involves four key stages:

  1. Object-Level Data Association: Utilizing the VisualDet3D CNN-based detector, the system identifies objects (e.g., vehicles) and extracts a "semantic profile" for each, including its label, 3D bounding box, color histogram, and a neural embedding.
  2. Object Pose Refinement: Through multi-view Bundle Adjustment (BA), the system optimizes the estimated positions of both the camera and the detected objects across multiple frames to minimize geometric errors.
  3. Graph-Based Loop Detection: The environment is modeled as a 3D Spatial Graph where objects serve as nodes and the spatial distances between them define the edges. Loop detection is performed by matching the topology—the specific spatial arrangement of object clusters—rather than individual visual features.
  4. Pose Graph Optimization: Upon confirming a loop, the system aligns the local and global maps, performing a final optimization to ensure global trajectory consistency.
Loop closure detection through matching object topologies and spatial layouts.

Key Insights: Topology and Semantic Consistency

The core innovation lies in the shift from pixel-level matching to topological matching. While the visual appearance of a car changes with the viewing angle, its spatial relationship to other static objects (like lamp posts or buildings) remains constant. By matching the scene graph's layout, the system achieves invariance to camera orientation.

Furthermore, the system employs Multi-Modal Similarity, combining Intersection over Union (IoU), color histograms, and deep learning embeddings into a weighted score. A "semantic check" is also enforced: a match is only accepted if the object labels (e.g., "car" vs. "tree") are consistent across the local and global maps, preventing false positives in repetitive environments like parking lots.

Experimental Results

The system was evaluated on the standard KITTI dataset and a new HALV (High-Accuracy Large Viewpoint) dataset, which features challenging loop scenarios with viewpoint changes up to 180 degrees.

  • Robustness to Rotation: The proposed method successfully detected loops with viewpoint changes exceeding 125 degrees. In comparison, traditional feature-based methods like VINS-Fusion typically fail when rotation exceeds 50 degrees.
  • Trajectory Accuracy: On the HALV dataset, the system achieved a mean square error (MSE) of 0.398m, significantly outperforming ORB-SLAM3 (1.989m) and CubeSLAM (4.228m) in high-drift scenarios.
  • Real-time Performance: The graph-matching component for loop detection requires only 1.8ms, making it suitable for real-time deployment on robotic platforms.
The completed semantic map and corrected camera trajectory after successful loop closure detection.

Conclusion and Future Work

By moving toward object-level semantic graphs, this research provides a viable path for SLAM systems to operate reliably in complex, real-world environments with significant viewpoint variations. While the system's performance is currently linked to the quality of the 3D object detector, future work aims to integrate more advanced neural networks to handle occlusions and dynamic environments more effectively, as well as expanding the semantic vocabulary of the mapping system.

Summary updated

BibTeX
@misc{wen2023loop,
  author = {Fei Wen and Xingwu Ji and Peilin Liu and Haochen Niu and Xiang Chen and Rendong Ying and Fei Wen},
  title = {{Loop Closure Detection Based on Object-level Spatial Layout and Semantic Consistency}},
  year = {2023},
  eprint = {2304.05146},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.05146},
}
Figure