Abstract
Loop closure detection is a critical component of Simultaneous Localization and Mapping (SLAM), enabling robots to correct accumulated drift by recognizing previously visited locations. In environments characterized by perceptual aliasing—where distinct locations appear visually similar—traditional Bag-of-Words (BoW) methods often fail. We present Bag-of-Word-Groups (BoWG), which incorporates spatial context by clustering visual features and integrates temporal consistency directly into the scoring process. Experimental results across diverse datasets, including a challenging pipe environment, demonstrate that BoWG achieves superior precision and recall while maintaining high computational efficiency on standard CPUs.
Introduction
In SLAM, loop closure detection serves as a corrective mechanism for sensor drift. As a robot explores, small errors in odometry accumulate, leading to map inaccuracies. Recognizing a prior location allows the system to "snap" the map back into alignment. However, repetitive environments like office corridors, sewer pipes, or mines present "perceptual aliasing," where different places look nearly identical. Traditional BoW methods, which rely on feature frequency without spatial context, struggle in these scenarios. While deep learning offers solutions, it often requires high-end GPUs and lacks the real-time efficiency needed for mobile robotics. BoWG addresses these gaps by providing a context-aware, CPU-efficient framework.
Methodology
BoWG introduces several innovations to enhance loop closure robustness and speed. The core concept is the Word Group, which clusters visual "words" based on their spatial proximity. This adds a layer of context, helping to distinguish between scenes that share identical features but in different arrangements.
The system pipeline includes:
- Online Dictionary: Unlike static vocabularies, BoWG builds a context-specific dictionary of word groups dynamically.
- Integrated Temporal Consistency: Temporal logic is baked into the initial similarity score via an adaptive weighting scheme, rather than being a post-processing step.
- Feature Distribution Analysis: For extreme aliasing (e.g., pipes), images are divided into fan-shaped batches to create a "Distribution Vector." This ensures robustness against robot roll or rotation.
- Efficient Indexing: Direct and inverse index tables facilitate rapid searching across large databases.
Experimental Evaluation
The performance of BoWG was validated on three public benchmarks and one novel dataset:
- New College: Architectural features with high repetition (archways, bushes).
- City Centre: Urban environments with dynamic objects.
- Bicocca25b: Indoor office scenes with repetitive corridors.
- 6-inch PVC Pipe Dataset: A custom environment simulating extreme perceptual aliasing in feature-scarce, highly repetitive underground utilities.
Results and Discussion
BoWG demonstrates significant improvements in both accuracy and efficiency. On the New College dataset, it achieved a 94.23% recall at 100% precision, surpassing existing methods. In the Bicocca25b dataset, it processed over 17,000 images at an average of 16 ms per image, making it 25 times faster than the FAB-MAP algorithm.
A key insight is that spatial context—the "where" of features—is often more critical than the "what." By leveraging word groups, BoWG successfully distinguished true loop closures in pipe environments where standard BoW methods failed. Furthermore, the system's ability to outperform deep-learning models like FILD++ and ESA-VLAD on a CPU highlights the value of well-engineered traditional algorithms.
Conclusion
Bag-of-Word-Groups (BoWG) provides a robust solution for loop closure detection in challenging, aliased environments. While it introduces new hyperparameters that may require tuning for specific domains, its efficiency and high recall make it ideal for real-time robotic applications. Future work will explore broader robotic scenarios and integration with multi-modal sensors.
Summary updated