Abstract
Forecasting the flow of crowds is of great importance to traffic management and public safety, yet it remains a challenging task affected by complex factors such as inter-region traffic, events, and weather. In this paper, we propose a deep-learning-based approach, called ST-ResNet, to collectively forecast the in-flow and out-flow of crowds in every region across a city. By designing an end-to-end structure based on the unique properties of spatio-temporal data, ST-ResNet employs residual neural networks to model temporal closeness, period, and trend properties. Our evaluation on datasets from Beijing and New York City demonstrates that ST-ResNet significantly outperforms six well-known baseline methods.
Introduction: The Challenge of Urban Mobility
Predicting how crowds move through a city is vital for urban management—acting as a "weather forecast" for human traffic. Accurate predictions can prevent tragedies like stampedes or help planners manage congestion during massive public events. However, this task is complicated by three primary layers of dependency:
- Spatial Dependencies: Traffic in one neighborhood affects nearby areas, while distant regions are linked via transit networks.
- Temporal Dependencies: Flow is affected by recent activity (closeness), daily cycles (period), and weekly patterns (trend).
- External Factors: Weather, holidays, and special events can disrupt even the most established patterns.
Methodology: The ST-ResNet Framework
ST-ResNet models the city as an $I \times J$ grid, where each cell tracks two values: inflow (people entering) and outflow (people leaving). This effectively transforms the city's status into a 2-channel "image" at any given time interval.
Multi-Scale Temporal Branches
Instead of processing one continuous sequence, the model uses three separate residual network branches to capture data at different temporal scales: Closeness (recent hours), Period (daily cycles), and Trend (weekly patterns). This strategic sampling allows the model to capture long-term dependencies without the computational overhead of massive recurrent sequences.
Residual Learning and Fusion
To capture citywide spatial dependencies, the network must be deep. ST-ResNet utilizes Residual Units to overcome the vanishing gradient problem, enabling architectures deep enough to "see" across the entire city grid.
The outputs of the three temporal branches are combined using Parametric-Matrix-Based Fusion. Unlike static addition, this mechanism learns a weight matrix for each branch, allowing the model to adapt its logic geographically—for instance, prioritizing "Trend" in residential areas while focusing on "Closeness" in business districts. Finally, an external component integrates metadata like weather and holidays into the final prediction.
Experimental Results
The model was evaluated on two real-world datasets: TaxiBJ (taxicab GPS data from Beijing, 2013–2016) and BikeNYC (NYC Bike system data, 2014). These datasets include extreme weather and holidays, providing a rigorous test for the model's robustness.
ST-ResNet was compared against six baselines, including traditional statistical models (ARIMA, VAR) and earlier deep learning attempts (DeepST):
- Superior Accuracy: On the TaxiBJ dataset, ST-ResNet achieved an RMSE of 16.69, a significant improvement over the previous state-of-the-art (DeepST at 18.18) and traditional ARIMA (22.78).
- Generalization: On the BikeNYC dataset, ST-ResNet achieved an RMSE of 6.33, outperforming the best DeepST variant by approximately 15%.
- Depth Advantage: Experiments confirmed that increasing the number of residual units (from 2 to 12) consistently reduced error, proving that deep spatial features are crucial for citywide prediction.
Conclusion
ST-ResNet demonstrates the power of treating citywide crowd flow as a multi-channel video problem. By leveraging residual learning and multi-scale temporal branches, the framework provides a highly accurate and adaptable solution for urban traffic forecasting. Future work will explore irregular grid shapes and the incorporation of more diverse data sources like mobile phone signals and metro card swipes.
Summary updated