Maximizing the Probability of Arriving on Time: A Practical Q-Learning Method

Zhiguang Cao, Hongliang Guo, Jie Zhang, Frans A. Oliehoek, Ulrich Fastenrath

Abstract

Traditional navigation algorithms typically focus on the "Least Expected Time" (LET) path, which identifies the fastest route on average. However, for time-sensitive appointments like flights or critical meetings, the probability of arriving before a specific deadline is often more important than the average travel time. This paper introduces a practical Q-learning approach to solve this "stochastic shortest path" problem. By reformulating the problem as a Markov Decision Process (MDP) and employing a dynamic neural network for value function approximation, the authors demonstrate a method that achieves high accuracy and real-time computational efficiency on massive road networks, including Beijing and Munich.

Introduction

The "probability tail model"—finding the path that maximizes the likelihood of on-time arrival—is notoriously difficult. Unlike standard shortest-path problems, it is NP-hard because it violates the "principle of optimality": the optimal path from A to C may not necessarily include the optimal path from A to B when strict deadlines are involved. Previous attempts to solve this have either relied on restrictive assumptions about travel time distributions or were too computationally intensive for real-world applications.

Methodology

The authors bridge the gap between theory and practice through two primary innovations:

  1. MDP Reformulation: The state space is redefined to include both the current node and the remaining time-to-deadline. This inclusion of time restores the Markov property, allowing the use of Reinforcement Learning. With a binary reward (1 for on-time arrival, 0 otherwise), the converged Q-values directly represent the probability of success.
  2. Neural Value Function Approximation: To mitigate the "state space explosion" in large networks, a two-layer dynamic neural network approximates the value function. It uses a feature vector $z = [\tau, \mu(v), \sigma(v)]$, where $\tau$ is the remaining time, and $\mu(v), \sigma(v)$ are the mean and standard deviation of travel times for the $K$-shortest paths to the destination.
Converged Q-values representing arrival probabilities vs. remaining deadlines across different directions.

Experimental Evaluation

The method was tested on three massive real-world road networks:

  • Munich, Germany: ~51k nodes, ~115k links (Data provided by BMW Group).
  • Singapore: ~6k nodes, ~10k links (Data from OpenStreetMap).
  • Beijing, China: ~130k nodes, ~295k links (Data from real taxi trajectories).

Key Results

The Q-learning approach demonstrated superior performance across several metrics:

  • Accuracy: The method achieved approximately 95% accuracy in identifying the true optimal path. When a 2% tolerance in probability was allowed, accuracy reached nearly 100%.
  • Efficiency: On the Beijing network, the method found an optimal path in just 1.216 seconds, significantly faster than the previous state-of-the-art "Cardinality method," which required 15 seconds.
  • Robustness: The approach remained highly accurate even with sparse travel time data, outperforming LET and Mean-Risk baselines.
Accuracy of the proposed Q-learning method compared to baselines on the Beijing road network across different deadline factors (beta).

Conclusion

This work provides a scalable solution for reliable navigation in stochastic networks. While the current model is somewhat destination-specific and relies on static $K$-shortest path features, it represents a significant step toward real-time, probability-based routing. Future work will focus on incorporating dynamic external factors like weather and real-time traffic incidents into the state space.

Summary updated

BibTeX
@inproceedings{cao2017maximizing,
  author = {Zhiguang Cao and Hongliang Guo and Jie Zhang and Frans A. Oliehoek and Ulrich Fastenrath},
  title = {{Maximizing the Probability of Arriving on Time: A Practical Q-Learning Method}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.1609/aaai.v31i1.11170},
}
Figure