Abstract
The rapid growth of traffic trajectory data and the development of positioning technology have driven the demand for its analysis. However, current application scenarios face challenges such as deviations between positioning data and real roads and low accuracy in existing trajectory prediction models. This study proposes a map matching algorithm based on Hidden Markov Models (HMM). The algorithm identifies candidate points through K-nearest candidate paths (K=5) and utilizes changes in speed, angle, and other information to generate a state transition matrix. Experimental results show an accuracy of 95.3% with a processing time of 51 ms. The algorithm performs exceptionally well in parallel and mixed road sections, achieving over 96% accuracy, demonstrating its superiority over traditional methods.
Introduction
GPS data is rarely a perfect reflection of a vehicle's path. Due to signal interference, "urban canyons," and sensor limitations, positioning points often drift away from the actual road. Traditional map-matching (TMM) algorithms typically rely on "snapping" a GPS point to the nearest road segment based on simple geometric proximity. However, TMM fails in complex urban scenarios, such as overpasses or roads with parallel service lanes, where the geometrically "closest" road might not be the one the vehicle is actually traversing. Furthermore, TMM often ignores the temporal sequence of data, treating each GPS ping as an isolated event rather than part of a continuous, logical journey.
Methodology
The proposed algorithm utilizes an improved Hidden Markov Model (HMM) framework. In this model, the "hidden states" represent the true road segments, while the "observations" are the noisy GPS coordinates.
K-Nearest Candidate Selection
To manage computational overhead, the algorithm identifies the $K$ closest road segments for each point. Experimentation determined that $K=5$ offers the optimal balance between speed (51ms) and precision.
Multi-Feature State Transitions
The state transition matrix is built by fusing three key variables: speed changes, heading angles, and the ratio of trajectory distance to road distance. This ensures that the model accounts for physical constraints—for instance, a vehicle cannot instantaneously jump to a parallel road without a corresponding change in angle and speed.
Road Network Pre-processing
The road network is pre-processed into discrete segments with unique IDs, facilitating faster lookup and more granular matching.
Results and Discussion
The algorithm was tested using the Gaia Trajectory Data from high-density areas in Xi’an and Chengdu, China.
- Overall Accuracy: The model achieved 95.3% accuracy.
- Scenario Performance: It excelled in difficult areas, reaching over 96% accuracy in parallel and mixed road sections. In comparison, traditional HMMs achieved between 94.6% and 95.9% across various conditions.
- Stability: Accuracy remained stable (94.8% to 98.3%) across different road types (parallel, crossing, overpass), whereas direct projection methods saw significant drops in mixed sections.
- Efficiency: The processing time was optimized to 51ms per point, significantly reducing latency in complex sections compared to traditional HMM implementations.
Conclusion
This study demonstrates that an HMM-based map matching algorithm incorporating temporal logic and multi-feature fusion significantly improves accuracy over traditional geometric methods. By considering the vehicle's movement logic over time, the model effectively handles "vertical" complexity like overpasses and "horizontal" complexity like parallel roads. Future work will focus on scaling the algorithm for city-wide real-time applications and exploring deeper feature extraction to further mitigate sensor bias.
Summary updated