Causality Enhanced Origin-Destination Flow Prediction in Data-Scarce Cities

Tao Feng, Yunke Zhang, Huandong Wang, Yong LiarXiv 2025 · OpenReview

Abstract

Accurate origin-destination (OD) flow prediction is of great importance to developing cities, as it can contribute to optimize urban structures and layouts. However, with the common issues of missing regional features and lacking OD flow data, it is quite daunting to predict OD flow in developing cities. To address this challenge, we propose a novel Causality-Enhanced OD Flow Prediction (CE-OFP), a unified framework that aims to transfer urban knowledge between cities and achieve accuracy improvements in OD flow predictions across data-scarce cities. In specific, we propose a novel reinforcement learning model to discover universal causalities among urban features in data-rich cities and build corresponding causal graphs. Then, we further build Causality-Enhanced Variational Auto-Encoder (CE-VAE) to incorporate causal graphs for effective feature reconstruction in data-scarce cities. Finally, with the reconstructed features, we devise a knowledge distillation method with a graph attention network to migrate the OD prediction model from data-rich cities to data-scare cities. Extensive experiments on two pairs of real-world datasets validate that the proposed CE-OFP remarkably outperforms state-of-the-art baselines, which can reduce the RMSE of OD flow prediction for data-scarce cities by up to 11%.

Introduction

Origin-Destination (OD) flow prediction—estimating the volume of people traveling between urban regions—is a cornerstone of smart city infrastructure, influencing everything from taxi dispatching to subway planning. While modern machine learning models excel when data is abundant, they often fail in "data-scarce" cities. These cities typically suffer from missing regional features (e.g., demographics, POIs) due to a lack of sensors or census data, and sparse historical flow data. Existing transfer learning methods often rely on statistical correlations that do not generalize well across different urban environments.

The CE-OFP Framework

We propose Causality-Enhanced OD Flow Prediction (CE-OFP), a three-stage framework designed to transfer urban knowledge by focusing on universal causal relationships rather than simple correlations.

The CE-OFP framework consists of three stages: causal graph search, urban feature reconstruction via CE-VAE, and knowledge distillation for flow prediction.

1. Causal Knowledge Discovery

Using Reinforcement Learning (RL), the model searches for "universal causalities" among urban features in a data-rich city (e.g., New York City). For example, it might learn that high population density causes an increase in specific Points of Interest (POIs). These relationships are represented as a Causal Directed Acyclic Graph (DAG). Because these causal mechanisms are rooted in fundamental urban dynamics, they are highly transferable between cities.

An example of a discovered causal graph showing relationships between urban features like population, households, and various services.

2. Feature Reconstruction (CE-VAE)

To fill in missing data in a data-scarce city, we developed a Causality-Enhanced Variational Auto-Encoder (CE-VAE). Unlike standard VAEs, CE-VAE uses the discovered causal graph to guide the reconstruction process. Crucially, it models both the expected value (mean) and the uncertainty (variance) of the missing data, allowing the prediction model to account for the inherent "fuzziness" of reconstructed features.

3. OD Flow Prediction via Knowledge Distillation

Finally, the model uses a Graph Attention Network (GAT) to predict actual flows. To overcome the lack of training data in the target city, it employs knowledge distillation, effectively "teaching" the data-scarce city's model using the logic and patterns learned by the data-rich city's model.

Experimental Evaluation

The framework was evaluated using real-world data from New York City (source), Chicago, and Seattle (targets). Data types included demographics (US Census), POI distributions (OpenStreetMap), and commute data (LEHD).

Key Results

  • Significant Accuracy Gains: CE-OFP outperformed eight state-of-the-art baselines, reducing the Root Mean Square Error (RMSE) by up to 11%.
  • Robustness to Scarcity: In experiments where up to 50% of regional features were missing, CE-OFP's performance remained stable, while baseline models saw error rates spike.
  • Causal Similarity: Researchers found that causal structures between different cities have over 50% similarity, validating the hypothesis that causal knowledge is a highly transferable asset in urban computing.

Conclusion

CE-OFP demonstrates that causality is a "universal language" for urban knowledge transfer. By reconstructing missing features through causal graphs and distilling knowledge from data-rich cities, we can significantly improve OD flow prediction in developing regions. Future work will explore time-evolving causal discovery and cross-continental transferability.

Summary updated

BibTeX
@misc{feng2025causality,
  author = {Tao Feng and Yunke Zhang and Huandong Wang and Yong Li},
  title = {{Causality Enhanced Origin-Destination Flow Prediction in Data-Scarce Cities}},
  year = {2025},
  eprint = {2503.06398},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.06398},
}
Figure