Abstract
Efficient taxi dispatching requires accurate forecasting of passenger demand. However, most existing models focus solely on origin demand, neglecting the destination. This paper introduces the Contextualized Spatial-Temporal Network (CSTN), a novel deep learning framework that predicts demand between all origin-destination (OD) pairs. By integrating local spatial patterns, temporal evolution (including weather impacts), and global correlations between distant but functionally similar regions, CSTN provides a comprehensive solution for high-dimensional and sparse OD demand prediction. Evaluated on a large-scale New York City dataset, CSTN demonstrates superior performance over existing state-of-the-art models.
Introduction
Modern taxi-hailing systems rely on "preallocation"—the proactive movement of empty vehicles to areas with anticipated high demand. Traditional forecasting models typically predict where passengers will appear (origin demand), but knowing where they are going (destination demand) is equally vital. For instance, a driver might reject a trip if the destination is in an unfamiliar or restricted area, leading to system inefficiencies. Predicting the full OD matrix is challenging due to its high dimensionality and inherent data sparsity. CSTN addresses these challenges by modeling the complex spatial and temporal dependencies of urban travel.
Methodology: The CSTN Framework
The CSTN architecture is composed of three primary modules, each capturing a specific "context" of urban mobility:
- Local Spatial Context (LSC): This module employs a "Two-View" Convolutional Neural Network (ConvNet). It processes both "Origin" and "Destination" demand views simultaneously, allowing the model to learn spatial dependencies where adjacent regions share similar pickup and drop-off characteristics.
- Temporal Evolution Context (TEC): Utilizing a Convolutional Long Short-Term Memory (ConvLSTM) network, the TEC module captures the temporal dynamics of demand. Crucially, it integrates external meteorological data (e.g., temperature, precipitation) to account for non-linear shifts in travel behavior caused by weather events.
- Global Correlation Context (GCC): Unlike standard convolutions that focus on local neighborhoods, the GCC module uses a similarity-based mechanism to identify correlations between geographically distant regions that exhibit similar functional patterns, such as separate residential districts with synchronized morning outflows.
Experimental Setup and Datasets
The model was evaluated using the NYC-TOD Dataset, a new benchmark comprising 132 million taxi trip records from the New York City Taxi and Limousine Commission (2014). The Manhattan borough was partitioned into a 15 × 5 grid (75 regions total). Meteorological data from Wunderground, including 23 weather conditions and 6 numeric indicators, was incorporated to enhance temporal predictions.
Key Insights and Results
The CSTN outperformed several baselines, including ST-ResNet and standard ConvLSTM, on the NYC-TOD testing set.
- Predictive Accuracy: CSTN achieved an OD-MAPE of 27.37%, significantly lower than ST-ResNet (28.53%). In high-demand regions, accuracy further improved to a MAPE of 24.93%.
- The Impact of Weather: The TEC module's ability to integrate weather data proved essential. As shown in the demand patterns, external factors like snow can cause sharp, non-linear deviations from historical averages, which the model successfully captures.
- Global vs. Local Patterns: Ablation studies confirmed that the GCC module is critical. By identifying "functional zones" that are behaviorally linked despite being geographically distant, the model captures a more holistic view of city-wide demand.
- Real-Time Performance: Despite its architectural complexity, CSTN can generate city-wide predictions in approximately 1.187 ms on a standard GPU, making it suitable for real-time dispatching systems.
Conclusion and Future Work
The Contextualized Spatial-Temporal Network (CSTN) demonstrates that integrating destination views and global correlations significantly improves OD demand forecasting. While the current model uses a grid-based partition, future work could explore more flexible boundaries, such as Zip Codes or land-use zones. Additionally, incorporating Point of Interest (POI) data and longer-term periodic patterns could further refine the model's predictive power in sparse data environments.
Summary updated