Abstract
Commuting Origin-Destination (OD) flows capture movements of people from residences to workplaces, representing the predominant form of intra-city mobility and serving as a critical reference for understanding urban dynamics and supporting sustainable policies. However, acquiring such data requires costly, time-consuming censuses. In this study, we introduce a commuting OD flow dataset for cities around the world, spanning 6 continents, 179 countries, and 1,625 cities, providing unprecedented coverage of dynamics under diverse urban environments. Specifically, we collected fine-grained demographic data, satellite imagery, and points of interest (POIs) for each city as foundational inputs to characterize the functional roles of urban regions. Leveraging these, a deep generative model is employed to capture the complex relationships between urban geospatial features and human mobility, enabling the generation of commuting OD flows between urban regions. Comprehensively, validation shows that the spatial distributions of the generated flows closely align with real-world observations. We believe this dataset offers a valuable resource for advancing sustainable urban development research in urban science, data science, transportation engineering, and related fields.
Introduction
To build sustainable cities, planners require precise data on where people live and where they work—a relationship captured by Origin-Destination (OD) flows. These flows are the heartbeat of urban dynamics, influencing everything from traffic congestion and carbon emissions to the spread of epidemics. However, high-quality OD data is notoriously difficult to obtain. Traditional methods rely on decennial censuses, which are slow and expensive, or mobile phone signaling data, which is often locked behind commercial silos or restricted by privacy laws.
This "data desert" is particularly severe in the Global South, where rapid urbanization often outpaces the capacity of traditional data collection. This research addresses this gap by introducing a high-fidelity, globally consistent dataset of commuting flows for 1,625 cities across 179 countries. Rather than relying on direct observation, the study employs a data-driven generative approach to synthesize mobility patterns from publicly available geospatial features.
Methodology: The WEDAN Framework
The researchers developed a three-stage pipeline to synthesize urban mobility without compromising individual privacy.
1. City Boundary and Region Division
Using the WhosOnFirst gazetteer and the Global Urban Infrastructure (GUI) dataset, the team identified 1,625 major cities. Each city was divided into an adaptive grid, with cell sizes ranging from 500m to 5km based on the city's total area. This adaptive approach ensures a balance between spatial detail and computational efficiency.
2. Multi-source Feature Extraction
For every grid cell, the team extracted three layers of data to characterize the region's functional role:
- Demographics: Population counts, age, and gender distributions sourced from WorldPop.
- Visual Features: High-resolution satellite imagery from Esri World Imagery, processed through the RemoteCLIP vision encoder to identify land-use patterns.
- Functional Features: Points of Interest (POIs) from OpenStreetMap (OSM) to distinguish between residential, industrial, and commercial zones.
3. Generative Modeling
The core of the methodology is WEDAN, a deep generative graph diffusion model. WEDAN treats urban regions as nodes and commuting flows as weighted edges. The model utilizes a "forward diffusion" process to add noise to real flow data and a "reverse denoising" process—guided by the extracted regional features—to learn how to reconstruct realistic flows for any city based on its physical and functional layout.
Validation and Performance
The synthetic dataset underwent a rigorous technical evaluation against real-world benchmarks, including mobile location data from Beijing, Shanghai, Rio de Janeiro, and Senegal, as well as official Census data from the United Kingdom and the United States.
- Accuracy: When compared to UK and US Census data, the model achieved a Common Parts of Commuting (CPC) score of 0.572. This represents a significant improvement over previous cross-continent modeling attempts, which typically achieve scores around 0.3.
- Correlation: Regression analysis against mobile phone data showed Spearman correlation coefficients between 0.74 and 0.82 for major global cities, indicating that the synthetic flows closely mirror actual human movement.
- Downstream Utility: The dataset's practical value was demonstrated by its ability to predict daytime population distributions (achieving an $R^2$ of 0.95 in Chengdu) and estimate carbon emissions (showing a 0.66 correlation with ground-truth data from Carbon Monitor Cities).
Key Insights: Resilience and Scaling
Beyond providing raw data, the study offers new insights into the science of cities:
- The Resilience Paradox: Analysis of urban resilience revealed that while larger cities generally become more vulnerable to disruptions, certain "high-resilience" megacities—such as Shanghai and Paris—maintain robust connectivity despite their size. This suggests that superior urban planning can mitigate the inherent vulnerabilities of scale.
- Universal Scaling: The generated flows follow a "scale-free" property (power-law distribution). Regardless of the city’s geography or culture, a few primary "hubs" handle a massive portion of the commuting volume, aligning with established theories in complex network science.
- Generative AI as a Privacy Proxy: The success of the WEDAN model demonstrates that aggregate urban movement can be inferred from the physical and functional layout of a city, providing a privacy-preserving alternative to tracking individual mobile devices.
Limitations and Future Work
While the dataset provides unprecedented coverage, the authors acknowledge several areas for future development. The current model focuses exclusively on intra-city movement, ignoring long-distance inter-city commuters. Furthermore, it specifically targets work-related trips, excluding leisure, shopping, or school-related travel. As the data represents a static "snapshot" of typical work hours, it does not yet account for temporal variations such as seasonal changes or the recent global shift toward hybrid work models. Finally, the accuracy of the flows remains dependent on the update frequency of underlying sources like WorldPop and OpenStreetMap.
Summary updated