Introduction
Visual localization and relocalization are critical components of Simultaneous Localization and Mapping (SLAM) systems, enabling robots to correct odometry drift by recognizing previously visited locations. Traditional monocular SLAM systems typically rely on low-level image features, such as SIFT or ORB, to perform "loop closure." While effective for small viewpoint variations, these methods often fail under extreme changes in perspective—for instance, when a robot enters a room from an opposite entrance.
This paper proposes a semantic approach to scene modeling that leverages 3D object cuboids as high-level, view-invariant landmarks. By shifting the focus from pixel-level matching to geometric and semantic consistency, the system achieves robust localization across translations of up to 5.9 meters and rotations exceeding 110 degrees.
Methodology
The proposed pipeline treats objects as the primary features for matching across disparate views. The process involves four main stages:
1. Feature Extraction and 2D Detection
For each input image, the system identifies objects using a Faster R-CNN detector, producing 2D bounding boxes and class labels (e.g., chair, table). Additionally, vanishing points are extracted to determine the dominant axes of the indoor environment, and a short 25-frame video snippet is processed via Structure from Motion (SfM) to recover local sparse geometry and relative depth.
2. 3D Cuboid Proposal
The system infers 3D "bounding cuboids" for each detected object. To mitigate the effects of occlusion, cuboids are sampled along rays passing through the top-center of the 2D detection boxes, as object tops are statistically more likely to be visible than their bases in cluttered indoor scenes.
3. Correspondence Matching
Object matching between views is performed using the Hungarian algorithm. Rather than relying solely on semantic labels, the system employs a spatial descriptor that encodes the relative positioning of objects, ensuring that the global configuration of the scene is preserved.
4. Inlier Optimization
To refine the initial estimates, the system utilizes Metropolis-Hastings Markov Chain Monte Carlo (MCMC) sampling. This step jointly optimizes the 3D poses of the object cuboids and the camera transformation, minimizing reprojection errors and enforcing geometric constraints, such as objects resting on a common floor plane.
Experimental Evaluation
The method was evaluated using the Sun3D dataset, focusing on 47 challenging image pairs from nine distinct indoor sequences, including offices and classrooms. These pairs featured significant baseline shifts, with translations up to 6 meters and rotations up to 127 degrees.
Key Results
- Robustness to Viewpoint Change: The system successfully localized views with a maximum translation of 5.9 meters and a rotation of 110 degrees.
- Directional Accuracy: The pipeline demonstrated high reliability in determining the general direction of movement, achieving 98% accuracy in identifying the sign of the z-axis translation.
- Matching Performance: The correspondence algorithm reached a precision of 0.87 and a recall of 0.75, validating the effectiveness of using spatial context for object matching.
Discussion and Conclusion
The primary insight of this work is that semantic objects serve as robust anchors in environments where low-level features fail. While individual pixels change appearance drastically with rotation, the identity and relative spatial arrangement of a "chair" or "table" remain stable.
However, the approach is currently limited by object sparsity; in environments with few detectable items, the system's performance may degrade. Future work suggests a hybrid approach, combining semantic object models for global relocalization with traditional local features for high-precision tracking. Additionally, optimizing the MCMC sampling process for real-time performance remains a key challenge for deployment on mobile robotic platforms.
Summary updated