Fine-Grained Urban Flow Inference with Multi-scale Representation Learning

Shilu Yuan, Dongfeng Li, Wei Liu, Xinxin Zhang, Meng Chen, Junjie Zhang, Yongshun GongarXiv 2024 · DOI

Introduction

Urban planners and city managers increasingly rely on high-resolution traffic and crowd flow data to optimize infrastructure and ensure public safety. However, the deployment of fine-grained sensors across an entire metropolitan area is often cost-prohibitive. Fine-Grained Urban Flow Inference (FUFI) addresses this by "upscaling" coarse-grained sensor data into high-resolution maps.

Existing FUFI methods often struggle with two primary issues: the assumption of static geographic relationships and the neglect of multi-scale spatial dynamics. This paper introduces UrbanMSR, a framework designed to dynamically learn both local neighborhood patterns and global city-wide trends to produce accurate, high-resolution flow inferences.

Methodology: The UrbanMSR Framework

UrbanMSR utilizes a three-stage training process centered on self-supervised contrastive learning to capture the complex, time-varying relationships within urban environments.

The three-stage training architecture of UrbanMSR, including pre-training for neighborhood and city-level representations followed by model fine-tuning.

Multi-Scale Representation Learning

The framework employs two distinct encoders to handle different spatial scales:

  1. Neighborhood-Level Encoder: Utilizes Deformable Convolutions to adapt to the irregular spatial correlations of local urban regions.
  2. City-Level Encoder: Employs Multi-head Self-Attention (MHA) to capture long-range dependencies and global trends across the city.

Dynamic Contrastive Learning and Constraints

To account for the dynamic nature of urban flow (e.g., changing correlations between residential and commercial zones throughout the day), UrbanMSR uses dynamic sampling for contrastive learning. Furthermore, it incorporates a Feature Differentiating Loss to minimize redundancy between scales and an $M^2$-Normalization layer to ensure the physical consistency of the output—specifically, that the sum of fine-grained flows matches the coarse-grained input.

Experimental Evaluation

The model was evaluated against 11 baseline methods using three real-world datasets: TaxiBJ (Beijing taxi flows), BikeNYC (New York City bike-sharing), and DiDi-Xi'an (Xi'an ride-hailing).

Performance comparison of UrbanMSR against baseline methods across three datasets. UrbanMSR consistently achieves the lowest error rates.

Key Results

UrbanMSR demonstrated superior performance across all metrics (RMSE, MAE, MAPE). Notably, it achieved a 10.90% improvement in MAPE for the BikeNYC dataset compared to the strongest baseline. Ablation studies confirmed that the integration of both neighborhood and city-level representations is critical for accuracy, validating the multi-scale approach.

Conclusion and Future Directions

UrbanMSR advances the state-of-the-art in urban flow inference by moving beyond static, single-scale models. By leveraging dynamic contrastive learning and enforcing physical constraints, it provides a robust tool for smart city management. Future research may focus on reducing the computational overhead of self-attention mechanisms for real-time applications and deeper integration of external environmental factors like extreme weather.

Summary updated

BibTeX
@misc{yuan2024fine,
  author = {Shilu Yuan and Dongfeng Li and Wei Liu and Xinxin Zhang and Meng Chen and Junjie Zhang and Yongshun Gong},
  title = {{Fine-Grained Urban Flow Inference with Multi-scale Representation Learning}},
  year = {2024},
  eprint = {2406.09710},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.09710},
}
Figure