Abstract
Predicting a taxi's final destination from a partial trajectory is traditionally treated as a 1D sequence problem. This paper introduces T-CONV, a framework that models trajectories as 2D images to leverage the spatial feature extraction capabilities of Convolutional Neural Networks (CNNs). By capturing multi-scale spatial patterns and introducing a "local enhancement" module that focuses on critical trip segments, T-CONV achieves state-of-the-art prediction accuracy, significantly outperforming traditional sequence-based models.
Introduction
Accurate destination prediction is a cornerstone of modern location-based services (LBS). For instance, advertising companies can push targeted content to taxi passengers based on their likely destination, and fleet managers can optimize vehicle distribution based on predicted demand.
Historically, researchers have modeled these trajectories as 1D spatio-temporal sequences using tools like Markov models or Recurrent Neural Networks (RNNs). However, 1D models often struggle to explicitly capture 2D spatial features like complex intersections, corners, and winding roads. Furthermore, existing methods usually process data at a single spatial scale, missing the balance between micro-scale detail and macro-scale trends. T-CONV aims to bridge this gap by capturing both micro and macro patterns simultaneously.
Methodology: From Sequences to Images
The core innovation of T-CONV is treating trajectory prediction as an image classification task rather than a sequence modeling task.
T-CONV-Basic
The city map is divided into an $M \times M$ grid. GPS points from a trajectory are mapped onto this grid, creating a 2D "trajectory image" where pixels represent the presence of the vehicle. A multi-layer CNN then processes this image. Lower convolutional layers capture small-scale local patterns (e.g., specific curves), while higher layers and max-pooling operations combine these into macro-scale global trends.
Gradient Analysis and Local Enhancement (T-CONV-LE)
To understand what the CNN actually learns, the authors used a deconvolution-like gradient analysis. This visualization revealed that the start and end points of a trajectory are disproportionately important in determining the final destination. The start point indicates the passenger's origin (reflecting the motivation for the trip), while the end of the partial trajectory reveals the latest directional trend closest to the destination.
Based on this insight, the authors developed T-CONV-LE. This architecture extracts local bounding boxes around the start and end points, converting their precise coordinates into high-resolution "latitude" and "longitude" images. These are stacked with the global trajectory image, forcing the network to look deeply at these critical areas and mitigating the data sparsity issues common in trajectory datasets.
Experimental Results
The models were trained and evaluated on the ECML-PKDD 2015 competition dataset, featuring 1.7 million trajectories from Porto, Portugal. Performance was measured using the Haversine distance (error in kilometers) between the predicted and actual destinations.
| Model | Mean Error (km) |
|---|---|
| Multi-Layer Perceptron (Baseline) | 2.81 |
| Bidirectional RNN | 3.01 |
| Bidirectional RNN (Sliding Window) | 2.60 |
| T-CONV-Basic | 2.70 |
| T-CONV-LE | 2.53 |
T-CONV-LE achieved the lowest error, significantly outperforming the competition's winning architecture styles. The results demonstrate that the 2D CNN approach is highly competitive even without the local enhancement trick, while the LE module provides the final boost to state-of-the-art performance.
Conclusion
T-CONV demonstrates that viewing trajectories through a 2D spatial lens allows CNNs to capture hierarchical features that 1D models miss. The "local enhancement" strategy effectively addresses data sparsity by focusing on the most informative segments of a trip. Future work will explore making the local enhancement modules more dynamic and validating the architecture on a wider variety of real-world trajectory datasets.
Summary updated