Crowd Flow Prediction by Deep Spatio-Temporal Transfer Learning

Leye Wang, Xu Geng, Xiaojuan Ma, Feng Liu, Qiang Yang

Introduction

Deep learning has significantly advanced spatio-temporal prediction tasks, such as forecasting traffic congestion, taxi demand, or bike-sharing flows. However, these models typically require vast amounts of historical data to achieve high accuracy. While "data-rich" cities like New York may have years of records, "data-scarce" cities—perhaps those with newly launched services—often possess only a few days of data, making it difficult to train robust deep learning models from scratch.

Existing transfer learning methods often attempt to transfer knowledge at a city-wide level. This approach frequently fails because cities are rarely identical in their entirety. Forcing a global model from one city onto another can lead to "negative transfer," where the transferred model performs worse than simple statistical baselines. This paper introduces RegionTrans, a framework designed to overcome these limitations by transferring knowledge at the neighborhood level.

The RegionTrans Framework

RegionTrans is built on a "Divide-Match-Transfer" principle. Instead of treating a city as a single monolithic block, the framework decomposes it into a grid of regions and identifies similar "twin" regions across different cities.

Architecture and Region View

The model utilizes stacked ConvLSTM layers to capture complex spatio-temporal dependencies from historical service data. To ensure the model is agnostic to the overall city grid size, the authors employ a 1x1 Convolutional (Conv2D) layer. This layer acts as a "secret sauce," extracting latent representations for each region independently. This allows a model trained on a large grid (e.g., 50x50) to be seamlessly applied to a smaller grid (e.g., 20x20) in a target city.

The RegionTrans architecture (a) integrates external context and historical data, while the citywide-to-region view transformation (b) enables grid-size independent transfer.

Inter-city Region Matching

The framework employs two primary strategies to match regions between the source and target cities:

  1. S-Match: Matches regions based on correlations in the limited available service data (e.g., three days of flow data).
  2. A-Match: Uses long-term auxiliary data, such as Foursquare check-ins, to establish neighborhood similarities based on functional types or "vibes."

During optimization, the loss function includes a "representation discrepancy" term. This term penalizes the model if the latent features of a target region diverge significantly from those of its matched "twin" in the source city, ensuring effective knowledge transfer.

Experimental Setup

The researchers evaluated RegionTrans using bike-sharing data from Washington D.C., Chicago, and New York City (NYC) spanning 2015–2016. Cities were partitioned into 1km x 1km regions. The model's performance was tested in scenarios where the target city had as little as one day of historical data.

Key Results

RegionTrans consistently outperformed state-of-the-art baselines, including ST-ResNet and DeepST. The framework reduced prediction error (RMSE) by up to 10.7% compared to standard fine-tuning methods.

Performance comparison (RMSE) across different transfer scenarios. RegionTrans variants (S-Match and A-Match) consistently outperform both target-only models and standard fine-tuning (FT) approaches.

Key findings from the evaluation include:

  • Granularity Matters: Transferring knowledge between specific similar sub-domains (e.g., commercial districts) is far more effective than global city-to-city mapping.
  • Mitigating Negative Transfer: While standard fine-tuning can sometimes perform worse than a simple ARIMA model, RegionTrans avoids this by selectively transferring knowledge between regions with shared patterns.
  • Auxiliary Data Benefits: The A-Match variant, utilizing Foursquare data, was generally more effective than S-Match, suggesting that neighborhood character is a stable and powerful signal for transfer learning.

Conclusion

RegionTrans demonstrates that neighborhood-level matching and region-independent neural architectures can effectively solve the data-scarcity problem in urban computing. Future work aims to extend this framework to multi-source transfer learning, aggregating knowledge from several data-rich cities to create universal urban prediction models.

Summary updated

BibTeX
@inproceedings{wang2019crowd,
  author = {Leye Wang and Xu Geng and Xiaojuan Ma and Feng Liu and Qiang Yang},
  title = {{Crowd Flow Prediction by Deep Spatio-Temporal Transfer Learning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/262},
}
Figure