Inferring Driving Maps by Deep Learning-based Trail Map Extraction

Michael Hubbertz, Pascal Colling, Qi Han, Tobias Meisen

Abstract

High-definition (HD) maps are critical for autonomous vehicle navigation but traditionally require labor-intensive manual creation. While online mapping methods use real-time sensors, they struggle with occlusions and generalization across different geographic regions. This paper presents TrailTR, a novel offline mapping framework that generates HD maps from aggregated vehicle trajectories, or "trails." By representing these trails as multi-channel Bird’s-Eye View (BEV) grids and processing them with a transformer-based architecture, TrailTR achieves superior accuracy and significantly better generalization than state-of-the-art online models.

Introduction

Autonomous vehicles (AVs) rely on HD maps for precise localization. Current trends favor online mapping using onboard cameras and LiDAR. However, these methods are limited by sensor occlusions, high computational costs on edge hardware, and poor performance in unseen environments. TrailTR addresses these issues by leveraging crowdsourced historical trajectory data. This approach is sensor-agnostic and captures human driving patterns, providing a robust middle ground for scalable map generation.

Methodology

The TrailTR architecture consists of four primary stages: trail aggregation, grid map representation, feature extraction, and transformer decoding.

The TrailTR pipeline: (a) Trail aggregation from ego and object trajectories, (b) Tiling, (c) HD Map integration for training, and (d) the Deep Learning Model architecture.

First, trajectories from multiple vehicles are aggregated into "ego trails" and "object trails." These are converted into a multi-channel BEV grid. To resolve overlapping paths at intersections, the grid uses yaw binning, separating trails into channels based on travel direction. A ResNet50 backbone extracts features from this unified BEV input, which are then processed by a DETR-inspired transformer decoder using map object queries to predict vectorized lane centerlines.

Results and Discussion

TrailTR was evaluated on the nuScenes and nuPlan benchmarks. On the standard nuScenes validation set, TrailTR achieved 56.4 AP, outperforming the online MapTRv2 baseline (53.3 AP).

Qualitative comparison between MapTRv2 and TrailTR (Ours). TrailTR demonstrates significantly higher fidelity to ground truth centerlines in complex scenarios.

Crucially, TrailTR demonstrated a 46.2% improvement in Average Precision on geographically disjoint test sets, maintaining 44.6 AP where online models dropped to 30.5 AP. This highlights the model's ability to learn the underlying logic of vehicle movement rather than memorizing visual features of specific cities. Data augmentation, including random rotation and subset selection, was found to be vital, boosting performance by 77% compared to training without these techniques.

Conclusion

TrailTR offers a scalable, sensor-agnostic solution for HD map generation. While current work focuses on lane centerlines, future research aims to incorporate additional map elements like boundaries and traffic signs. The results suggest that crowdsourced trajectory data is a powerful, underutilized resource for building the next generation of autonomous driving maps.

Summary updated

BibTeX
@inproceedings{hubbertz2025inferring,
  author = {Michael Hubbertz and Pascal Colling and Qi Han and Tobias Meisen},
  title = {{Inferring Driving Maps by Deep Learning-based Trail Map Extraction}},
  booktitle = {Workshops @ CVPR},
  year = {2025},
}
Figure