Truncating Shortest Path Search for Efficient Map-Matching

Takashi Imamichi, Takayuki Osogami, Rudy RaymondIJCAI 2016

Abstract

We study the problem of map-matching, or finding the route on a road network from a trace of noisy and sparse observed points, particularly when a huge number of points are given. The algorithms based on Hidden Markov Models (HMMs) are known to achieve high accuracy for noisy and sparse data but suffer from high computational cost. We find that the bottleneck of the HMM-based map-matching is in the shortest path search for calculating transition probabilities. We propose a technique to truncate the shortest path search before finding all the shortest paths in the HMM-based map-matching without losing accuracy. We run the one-to-many shortest path search on the reversed network and terminate the search based on the log likelihood of the Viterbi algorithm. Computational experiments show that the proposed approaches can reduce the computational cost by a factor of at least 5.4.

Introduction

Map-matching serves as the critical link between raw, noisy GPS coordinates and meaningful navigation data. While raw GPS data often exhibits noise—causing location markers to appear inside buildings or on parallel streets—map-matching algorithms align these points to the most probable road segments. The Hidden Markov Model (HMM) approach is widely considered the gold standard for this task because it balances two factors: the proximity of a GPS point to a road segment (emission probability) and the logical feasibility of the path connecting consecutive points (transition probability).

However, the computational overhead of HMM-based map-matching is significant. For every pair of consecutive GPS points, the algorithm must evaluate multiple candidate road segments. Calculating the transition probabilities requires finding the shortest paths between all pairs of candidates, leading to a complexity that scales poorly with the number of candidates and the size of the road network.

The Map-Matching Challenge

In a typical HMM setup, each observed GPS point $z_t$ is associated with a set of candidate road segments $s_i$. The goal is to find the sequence of segments that maximizes the joint probability of emissions and transitions.

Figure 1: Illustration of GPS observations (red) and candidate road segments (blue) on a highway network.

As shown in the figure above, the transition between $z_{t-1}$ and $z_t$ requires evaluating paths between various candidates like $s_2, s_4,$ and $s_5$. If there are $k$ candidates per point, a naive implementation requires $k^2$ shortest-path searches per step. For large-scale "Big Data" applications, this bottleneck makes real-time or high-throughput processing nearly impossible.

Proposed Methodology

To address these inefficiencies, the researchers proposed two primary optimizations to the standard Viterbi-based HMM approach:

  1. One-to-Many Search on a Reversed Network: Instead of $k^2$ one-to-one searches, the algorithm performs $k$ one-to-many searches. By reversing the road network's graph, a single Dijkstra search starting from a "destination" candidate can identify distances to all potential "source" candidates simultaneously, reducing complexity from $O(k^2)$ to $O(k)$.
  2. Exact Truncation: This is the core innovation. During the Dijkstra search, the algorithm leverages the Viterbi algorithm's properties. Since Viterbi seeks the maximum log-likelihood, it can mathematically determine if a partial path's distance already renders its probability lower than a known better path. If so, the search for that branch is truncated immediately. Unlike heuristic methods, this truncation is "exact" and results in no loss of accuracy.
  3. LRU Caching: A Least Recently Used (LRU) cache for intermediate shortest-path trees was implemented to avoid redundant calculations in areas with high GPS point density.

Experimental Results

The approach was evaluated using the Seattle Benchmark dataset for accuracy validation and the Beijing T-drive dataset (over 1 million points) for performance scaling.

The results demonstrate a massive reduction in computational time. The proposed method was at least 5.4 times faster than the baseline HMM with $k=5$ candidates, and over 6.4 times faster for $k=10$.

Figure 2: Comparison of computation time between the proposed method and the baseline HMM across various trace IDs.

As illustrated in the bar chart, the proposed method consistently outperforms the baseline, particularly for complex traces where the baseline often exceeds the 10,000-second timeout. Crucially, this speedup comes with zero loss in accuracy; the resulting routes are identical to those produced by exhaustive search.

Conclusion

By optimizing the shortest-path search through one-to-many reversed searches and exact truncation, high-accuracy HMM map-matching becomes viable for large-scale datasets. Future work may explore integrating more complex cost functions, such as driver preferences and turn costs, to further refine matching in dense urban environments.

Summary updated

BibTeX
@inproceedings{imamichi2016truncating,
  author = {Takashi Imamichi and Takayuki Osogami and Rudy Raymond},
  title = {{Truncating Shortest Path Search for Efficient Map-Matching}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2016},
  url = {https://openreview.net/forum?id=Hy-U_NGdZS},
}
Figure