Abstract
Deep learning models for camera relocalization often struggle with visual ambiguity when processing single images, particularly in repetitive or featureless environments. This paper presents a framework that utilizes image sequences and Visual Odometry (VO) to provide "local support" for global positioning. By integrating a memory-based attention mechanism and pose-graph optimization, the system achieves state-of-the-art accuracy and trajectory smoothness. Experimental results on the 7-Scenes and Oxford RobotCar datasets demonstrate the model's robustness in challenging conditions like dark streets and textureless hallways.
Introduction
Camera relocalization—determining a camera's 6-DoF pose within a known scene—is a cornerstone of autonomous driving and augmented reality. Traditional deep learning approaches, such as PoseNet, treat this as a per-image regression problem. However, single snapshots are often ambiguous; a uniform hallway or a dense forest can look identical from multiple positions, leading to erratic predictions. This research argues for a sequence-based approach, using local camera movement to anchor and refine global position estimates.
Methodology
The proposed architecture integrates three core components into a unified deep learning pipeline:
- Feature Extraction & VO Estimation: A modified ResNet34 extracts features from a sequence of frames. These are processed by a Convolutional LSTM (ConvLSTM) to estimate relative motion (Visual Odometry). The LSTM's hidden states serve as a temporal memory of the camera's recent trajectory.
- Content-Augmented Pose Estimation: To resolve local ambiguities, the model employs a soft attention mechanism. It queries the LSTM's hidden states to identify co-visible features from previous frames, effectively augmenting the current observation with historical context.
- Motion-based Refinement: The system treats predicted global poses as nodes and VO-calculated relative poses as edges in a pose graph. Optimizing this graph ensures that the final trajectory adheres to physical constraints, eliminating the "teleportation" errors common in single-image methods.
Key Insights
- Local-Global Synergy: The core innovation is the "local supports global" philosophy, where short-term consistency (VO) is used to disambiguate long-term positioning.
- Temporal Attention: Using attention to look back at hidden states allows the model to focus on stable landmarks while ignoring transient noise like moving vehicles or lens flare.
- Joint Optimization: Training the VO and relocalization tasks together forces the feature extractor to learn representations that are simultaneously discriminative for location and sensitive to motion.
Experimental Results
The model was rigorously tested on the 7-Scenes (indoor) and Oxford RobotCar (outdoor) benchmarks.
- Indoor Performance: On 7-Scenes, the method achieved a median error of 0.19m and 7.47°, outperforming PoseNet and MapNet. It showed particular strength in the "Stairs" scene, where repetitive textures typically cause high failure rates for single-image models.
- Outdoor Scalability: In the Oxford RobotCar dataset, the model handled routes up to 9.5km. On the "FULL1" route, it reduced mean translation error from 125.6m (PoseNet) to 31.65m.
- Trajectory Smoothness: Unlike previous sequence-based methods that often produced "zigzag" paths, the integrated pose-graph optimization results in physically realistic, smooth trajectories.
Conclusion
By shifting from single-image regression to sequence-enhanced estimation, this work addresses the fundamental problem of visual ambiguity in camera relocalization. Future work includes integrating semantic information to further improve robustness in dynamic environments and optimizing the computational overhead of the LSTM and pose-graph components.
Summary updated