Sparse Semantic Map-Based Monocular Localization in Traffic Scenes Using Learned 2D-3D Point-Line Correspondences

Xingyu Chen, Jianru Xue, Shanmin Pang · DOI

Introduction

Visual localization—the process of determining a vehicle's precise position and orientation using camera data—is a cornerstone of autonomous driving. Traditional methods typically rely on matching dense visual descriptors, such as SIFT or ORB, against a pre-built map. However, these texture-based features are highly susceptible to environmental changes, including seasonal variations, lighting shifts, and dynamic occlusions like heavy traffic.

This paper presents a robust alternative: a monocular localization framework that utilizes a sparse semantic map composed of long-term stable landmarks, specifically poles and traffic signs. By shifting the focus from pixel-level textures to high-level semantic objects, the proposed system achieves sub-meter accuracy and remarkable resilience to the challenges that typically degrade visual localization performance.

The Challenge of Blind Registration

Most semantic localization methods face a "chicken-and-egg" problem known as blind 2D-3D registration. To determine a vehicle's pose, one must match 2D detections in the image to 3D objects in the map. However, establishing these correspondences usually requires an accurate initial pose estimate. This paper addresses this by developing a pipeline that can establish correspondences and estimate pose without a high-accuracy starting point.

Methodology

The authors propose a three-stage pipeline designed for end-to-end efficiency and robustness.

1. Semantic Detection

The system first identifies semantic elements within the query image. Using YOLOv5 for traffic signs and DeepLabv3+ for poles, the framework extracts these features and parameterizes them geometrically: poles are represented as lines, while traffic signs are represented by their midpoints.

2. Correspondence Learning

To bridge the gap between 2D image space and 3D map space, the authors employ a two-stream neural network inspired by PointNet. This network extracts features from both the 2D image elements and the 3D map elements, encoding local geometry, global context, and semantic labels (e.g., "pole" vs. "square sign").

A key innovation here is the use of an Optimal Transport (Sinkhorn) module. This module estimates a probability matrix of matches between all 2D and 3D pairs. By incorporating one-hot semantic vectors, the network effectively filters out impossible matches (such as matching a pole to a sign), significantly reducing the search space and improving matching reliability.

3. Weighted PnPL Solver

The final stage involves a coarse-to-fine pose estimation process:

  • Coarse Pose: A P3P-RANSAC algorithm is applied to the highest-probability matches to generate an initial rough estimate.
  • Refinement: The system utilizes a novel, differentiable Weighted Perspective-n-Points-and-Lines (PnPL) optimization. This solver minimizes the reprojection error for both points (signs) and lines (poles) simultaneously. Because the solver is differentiable, the "pose loss" can be backpropagated during training, forcing the feature extractor to learn representations specifically optimized for accurate pose estimation.

Experimental Results

The framework was evaluated using the KITTI odometry dataset, supplemented by a custom-built 3D semantic map created by triangulating 2D detections from stereo imagery.

Performance Metrics

The proposed method significantly outperformed existing "blind" localization baselines, such as BPnPNet and DeepI2P, across several key metrics:

  • Accuracy: The system achieved an average Relative Translation Error (RTE) of 0.22m and a Relative Rotation Error (RRE) of 0.34°.
  • Reliability: In testing, 99.5% of frames achieved a translation error of less than 1.0 meter, demonstrating high consistency.
  • Efficiency: The entire inference process is computationally efficient, totaling approximately 0.3 seconds (0.2s for detection and 0.1s for matching and pose estimation).

Key Insights

  • Geometric Constraints: By incorporating lines (poles) rather than just points, the system gains stronger geometric constraints, as lines provide more information regarding orientation than single coordinates.
  • Robustness to Occlusion: Because the map is sparse and focuses on elevated objects, the system remains functional even when ground-level features are obscured by other vehicles or temporary obstacles.
  • End-to-End Training: The integration of a differentiable PnPL solver allows the matching network to be trained with a direct focus on the final localization error, rather than just intermediate matching accuracy.

Limitations and Future Work

While highly effective, the system requires a minimum of four visible semantic elements to estimate a full 6-DoF pose. In environments where poles and signs are sparse, the system's performance may degrade. To address this, the authors suggest that future iterations could integrate this monocular approach with visual or inertial odometry (VIO) to maintain localization during gaps in semantic feature availability. Additionally, further automation of the 3D map-building process remains a priority for scaling the technology.

Summary updated

BibTeX
@misc{chen2022sparse,
  author = {Xingyu Chen and Jianru Xue and Shanmin Pang},
  title = {{Sparse Semantic Map-Based Monocular Localization in Traffic Scenes Using Learned 2D-3D Point-Line Correspondences}},
  year = {2022},
  eprint = {2210.04543},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.04543},
}
Figure