TTDM: A Travel Time Difference Model for Next Location Prediction

Qingjie Liu, Yixuan Zuo, Xiaohui Yu, Meng Chen

TL;DR

TTDM (Travel Time Difference Model) is a novel approach to next-location prediction that moves beyond simple "where was the user last?" logic. By calculating the difference between the theoretical shortest travel time and the actual elapsed time from every point in a trip, the model identifies the most "reasonable" intended destinations. When combined with traditional Markov Models, TTDM improves top-1 prediction accuracy by up to 40% on real-world traffic datasets.

What Problem Does This Paper Address?

Predicting where a vehicle or person will go next is a cornerstone of smart city infrastructure, from optimizing taxi dispatching to alleviating traffic jams. Traditionally, researchers have relied on Markov Models, which operate on a "memoryless" principle: they assume the next location depends primarily on the current one.

The authors argue that this "local" view ignores the "global" context of a trip. Humans are generally purpose-driven; we usually choose efficient paths toward a specific destination. If a driver has already spent 10 minutes traveling a route that should have taken 2 minutes to reach a certain candidate destination, that destination is likely not where they are headed. Existing models struggle to incorporate this "global" temporal efficiency into their predictions.

Methods

The researchers propose a two-part solution: the Travel Time Difference Model (TTDM) and a Joint Model that blends it with traditional methods.

  1. TTDM (The Global View):
    • Graph Construction: First, they build a weighted graph of the city where nodes are locations and edges represent the average travel time between them.
  2. Shortest Path Calculation: Using Yen’s algorithm, they pre-calculate the shortest possible travel times between all points.
  3. The "Difference" Logic: For a given trip in progress, the model looks at every location the user has already passed. For any candidate "next" location, it compares the actual time spent getting there versus the shortest possible time.
  4. Probability Assignment: Candidates where the actual time is closest to the shortest time (i.e., the most efficient/reasonable routes) are assigned higher probabilities.
  5. The Joint Model: The authors recognize that while TTDM is great at global context, Markov Models (MM) are still good at capturing immediate, local transitions. They use linear interpolation to combine the two: $$P(next | T) = \lambda \cdot P_{MM} + (1 - \lambda) \cdot P_{TTDM}$$ This allows the system to balance local habits with global trip logic.

Datasets

The model was evaluated on two large-scale, real-world datasets:

  • VPR (Vehicle Passage Record) Data: Two months of data from a metropolitan surveillance system. It includes ~287,000 trajectories across 360 camera locations.
  • Taxi Trajectory Data: A full year of data from 442 taxis in Porto, Portugal. This dataset is much denser, containing over 633,000 trajectories mapped to a grid of 902 locations.

Key Insights and Ideas

  • Efficiency as a Predictor: The core "aha moment" is that human movement isn't just a sequence of random turns; it's an optimization problem. By measuring how much a user has "deviated" from an optimal path to a candidate destination, we can effectively filter out unlikely targets.
  • Long-Distance Prefix Matters: Unlike Markov Models that only care about the last step, TTDM captures the effect of "long-distance prefix locations." The origin of the trip provides vital clues about the eventual destination that the most recent stop might obscure.
  • Complementary Strengths: The local sequential transitions (MM) and global travel time logic (TTDM) are mathematically complementary. The paper shows that the best results always come from using both, rather than either in isolation.

Key Results

The experimental results showed significant jumps in performance over standard Markov Models:

  • VPR Data: The Joint Model improved Top-1 Accuracy by 40% compared to a standalone Markov Model.
  • Taxi Data: The Joint Model improved Top-1 Accuracy by 15.6%.
  • TTDM vs. MM: Even without the Markov component, TTDM outperformed the Markov Model on its own, proving that travel time is a more potent feature than simple transition frequency.
  • Top-5 Accuracy: On the Taxi dataset, the joint model achieved a staggering 0.992 accuracy in its top-5 predictions, meaning the true destination was almost always in the model's top five guesses.

Limitations and Future Work

  • Data Density and Time Slots: The authors noted that for the Taxi data, they had to use 24-hour time slots because they lacked enough data to build accurate hourly travel-time graphs. With more data, finer-grained time slots (e.g., rush hour vs. midnight) would likely improve accuracy further.
  • Deep Learning Integration: While this paper uses a linear combination with Markov Models, the authors suggest that TTDM features could be integrated into more complex architectures like Recurrent Neural Networks (RNNs) or LSTMs.
  • Expanding Data Types: The current study focuses on vehicles. Future work could explore if these "efficiency" heuristics hold true for other types of movement, such as ride-sharing (Uber/Didi) or pedestrian trajectories.

Summary updated

BibTeX
@inproceedings{liu2019ttdm,
  author = {Qingjie Liu and Yixuan Zuo and Xiaohui Yu and Meng Chen},
  title = {{TTDM: A Travel Time Difference Model for Next Location Prediction}},
  booktitle = {MDM},
  year = {2019},
  doi = {10.1109/mdm.2019.00-54},
}
Figure