A Large-scale Benchmark Dataset for Commuting Origin-destination Matrix Generation

Can Rong, Jingtao Ding, Yan Liu, Yong LiarXiv 2024 · OpenReview

Abstract

The commuting origin-destination (OD) matrix is a cornerstone of urban planning, detailing population flows between residential and workplace regions. However, high costs and privacy concerns make these matrices difficult to acquire and update. While computational models offer a solution, they often suffer from "big city bias," failing to generalize to smaller towns or rural areas. This paper introduces a massive benchmark dataset covering 3,233 diverse U.S. areas, paired with regional sociodemographic and point-of-interest (POI) attributes. We propose a new generative paradigm, WeDAN, which treats urban areas as attributed directed weighted graphs. By leveraging diffusion-based generation and graph transformers, WeDAN captures universal mobility patterns, significantly outperforming traditional physical and predictive models.

The Challenge: Beyond Big City Bias

Urban planners rely on OD matrices to design transit systems and mitigate congestion. Traditional data collection—surveys and mobile tracking—is either prohibitively expensive or fraught with privacy issues. While AI models have attempted to generate these matrices from demographic data, they are typically trained on a handful of major metropolises. This narrow focus prevents models from effectively serving the diverse economic structures of smaller towns and rural regions where such data is most needed.

Comparison of the traditional transfer learning paradigm versus the proposed generative paradigm.

As shown in the figure above, the traditional paradigm struggles with transferability to "different" cities. Our proposed generative paradigm aims for a versatile model capable of accurately predicting flows across any distinct target city by learning from a massive, diverse training set.

Methodology: WeDAN

To address the limitations of existing models, we introduce WeDAN (Weighted Edges Diffusion condition on Attributed Nodes). This model shifts the focus from element-wise predictions (predicting flow between two points in isolation) to a matrix-wise generative approach.

Key technical components include:

  • Diffusion-Based Generation: WeDAN starts with a noisy OD matrix and iteratively refines it into a realistic commuting pattern, a process inspired by modern image generation techniques.
  • Graph Transformer Backbone: The architecture utilizes a transformer designed for graphs, capturing both local neighborhood dependencies and global urban structures.
  • Conditional Guidance: The model is guided by 133 dimensions of data, including 97 sociodemographic attributes (age, income, education) and 36 POI categories (restaurants, schools).
  • Spatial Encoding: Laplacian position encodings (d-LaPEs) are integrated to help the model understand physical distances and regional orientations.

A New Large-Scale Benchmark

The core of this work is a comprehensive dataset that dwarfs previous benchmarks. While prior studies often focused on 1 to 8 cities, our dataset encompasses 3,233 areas across the U.S., covering over 9.3 million km².

Statistical distributions of the benchmark dataset across regions, distances, and flow variance.

The data sources include:

  • Commuting Flows: Derived from the 2018 Longitudinal Employer-Household Dynamics (LODES) dataset.
  • Regional Attributes: Sourced from the U.S. Census Bureau (ACS) and OpenStreetMap (POIs).

This diversity allows models to learn the "common laws" of human mobility that transcend specific city layouts.

Key Results and Insights

WeDAN was benchmarked against ten existing models, including classical physical models like the Gravity Model and various deep learning baselines.

  • Superior Accuracy: WeDAN improved the Common Part of Commuting (CPC) metric by 11.5% over the previous state-of-the-art.
  • Error Reduction: The model achieved an 8% reduction in Root Mean Square Error (RMSE).
  • Distribution Realism: By treating the area as an interconnected system, WeDAN produced statistical distributions of inflows and outflows that closely mirrored real-world observations across all scales.

The research demonstrates that training on a sufficiently large and diverse dataset enables high-performance transferability, even between monocentric and polycentric urban structures.

Limitations and Future Directions

While this dataset and model represent a significant leap forward, several areas for future research remain:

  • Temporal Dynamics: The current dataset is a 2018 snapshot. Future iterations should incorporate post-COVID patterns and seasonal variations.
  • Global Generalization: The car-centric nature of U.S. commuting may not translate directly to the high-density transit cultures of Europe or Asia.
  • Granularity: Moving from county-level data to finer-grained neighborhood "micro-mobility" could provide even deeper insights for urban design.

By framing OD matrix generation as a graph learning problem, this work opens a new research direction for understanding the pulse of our cities.

Summary updated

BibTeX
@misc{rong2024large,
  author = {Can Rong and Jingtao Ding and Yan Liu and Yong Li},
  title = {{A Large-scale Benchmark Dataset for Commuting Origin-destination Matrix Generation}},
  year = {2024},
  eprint = {2407.15823},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.15823},
}
Figure