Abstract
Visual localization in changing environments remains a significant challenge due to the fragility of local textural features. This paper presents a method that leverages high-level semantic information to enhance the robustness of 3D structure-based localization. By constructing a sparse semantic 3D map and employing a semantically-weighted RANSAC for pose estimation, the proposed approach achieves state-of-the-art performance on the RobotCar Seasons dataset, particularly in extreme night-time and weather conditions.
Introduction
Visual localization—the task of determining the precise 6-degree-of-freedom (6DoF) pose of a camera—is fundamental to robotics and augmented reality. Traditional methods typically rely on local feature descriptors like SIFT or ORB. However, these textural features are notoriously fragile under "long-term" conditions where lighting, weather, or seasons change significantly between the database and query images. This paper proposes a robust alternative by integrating high-level semantic information into the traditional 3D structure-based localization pipeline. While textures change, the semantic layout of a scene (e.g., buildings, roads, vegetation) remains relatively stable, providing a reliable anchor for localization in challenging environments.
Methodology
The proposed system fuses image retrieval, 3D reconstruction, and semantic segmentation into a unified multi-stage pipeline.
Sparse Semantic 3D Map Construction
The process begins by building a 3D point cloud from database images using standard Structure-from-Motion (SfM). Each image is processed through DeepLabv3+ to generate semantic segmentations. Semantic labels are then assigned to 3D points via a majority voting scheme. To improve map reliability, dynamic objects such as cars and pedestrians are "cleaned" from the map, ensuring that only stable landmarks are used for localization.
Localization Pipeline
For a query image, the system follows a structured workflow:
- Image Retrieval: NetVLAD identifies the top-$k$ most similar database images to provide an initial search space.
- Semantic Scoring: 2D-3D matches are established between the query and the retrieved database images. 3D points are projected into the query image using a candidate pose, and a "semantic consistency score" is calculated by comparing the 3D point labels with the query image's segmentation.
- Weighted RANSAC: Rather than hard-pruning matches that don't align semantically, semantic scores act as weights in a RANSAC-based PnP solver. This "soft constraint" approach ensures robustness even when semantic segmentation is noisy or ambiguous.
Experimental Setup
The method was rigorously evaluated on the RobotCar Seasons dataset, a benchmark specifically designed for long-term visual localization. The dataset contains over 20,000 database images and nearly 12,000 query images from Oxford, covering conditions like dawn, dusk, rain, snow, and night. To handle low-light scenarios, the authors manually annotated 20 night-condition images to fine-tune their segmentation model, ensuring better performance in low-light scenarios.
Results and Discussion
The proposed method significantly outperforms existing baselines, particularly in extreme conditions where traditional methods often fail.
As shown in the results table, the semantic weighting provides a massive performance boost in night-time scenarios. At the coarse precision level, the method reached 41.3% accuracy at night, whereas the next best traditional method (CSL) only achieved 5.3%. Ablation studies further confirmed that semantic weighting consistently improves localization rates across all weather conditions, often doubling or tripling the performance of non-semantic versions in challenging conditions like snow or night.
Notably, this approach outperforms previous semantic methods without requiring additional priors like camera height or gravity direction, demonstrating its flexibility for general-purpose applications. The primary remaining bottleneck is the initial image retrieval stage; if NetVLAD fails to find relevant images, the semantic scoring cannot recover the pose.
Conclusion
By treating semantics as a supervisor for low-level feature matching, this work bridges the gap between fragile textural descriptors and robust scene understanding. The use of weighted RANSAC and sparse semantic maps provides a powerful framework for long-term visual localization. Future research will explore dense 3D semantic models and more robust retrieval techniques to further enhance performance in the most extreme environments.
Summary updated