Generating mobility networks with generative adversarial networks

Giovanni Mauro, Massimiliano Luca, Antonio Longa, Bruno Lepri, Luca Pappalardo · DOI

Abstract

MoGAN (Mobility Generative Adversarial Network) is a novel deep-learning framework designed to synthesize entire urban mobility networks with high realism. By representing city-wide movement patterns as image-like adjacency matrices, MoGAN captures complex spatial dependencies that traditional physics-inspired models often miss. Evaluated on extensive datasets from New York City and Chicago, MoGAN outperforms classical models by up to 91% in flow similarity, offering a scalable tool for urban planning and epidemic simulation.

Introduction

Understanding urban mobility is essential for addressing challenges such as traffic congestion, urban segregation, and disease spread. Traditional "flow generation" models, like the Gravity or Radiation models, typically predict movement between pairs of locations in isolation. However, these models fail to capture the global, aggregated spatial dependencies of a complete urban environment.

This research introduces a shift from pairwise predictions to generating a city's complete mobility network—a weighted directed graph where nodes represent geographic tiles and edges represent the volume of movement between them.

Methodology: The MoGAN Framework

The core of this work is MoGAN, a model based on Deep Convolutional Generative Adversarial Networks (DCGANs). The innovation lies in framing a city's mobility network as a $64 \times 64$ weighted adjacency matrix, effectively treating urban movement as a single-channel "image."

The MoGAN architecture: A Generator creates synthetic mobility matrices from noise, while a Discriminator distinguishes them from real urban data.

The framework consists of two competing components:

  • Generator ($G$): Uses transposed convolutions to upsample a random noise vector into a $64 \times 64$ matrix of synthetic mobility flows.
  • Discriminator ($D$): A CNN that learns to differentiate between real historical mobility matrices and synthetic ones.

Through adversarial training, the generator learns to replicate the intricate spatial patterns and global structures inherent in real-world human mobility.

Data and Experimental Setup

MoGAN was trained on four public datasets spanning 2018–2019: NYC Bikes, Chicago Bikes, NYC Taxis, and Chicago Taxis. For each dataset, the urban area was discretized into a $64 \times 64$ grid. This representation allows the model to leverage computer vision techniques to "see" macro-features of the city's movement and capture global distributions that isolated pairwise models miss.

Results and Discussion

MoGAN demonstrates significant improvements over traditional benchmarks:

  • Unmatched Realism: MoGAN showed a relative improvement of up to 86% over the Gravity model and 91% over the Radiation model in terms of the Common Part of Commuters (CPC) metric.
  • Superior Local Accuracy: A major finding was that MoGAN is significantly better at predicting flows between nearby locations, a common failure point for traditional models.
  • Efficiency: Once trained, MoGAN can generate a realistic city-wide mobility network in less than one second, making it orders of magnitude faster than iterative models.
Visualization of mobility networks in Manhattan, showing (a) location points and (b) the resulting network edges where thickness represents flow volume.

The synthetic networks generated are statistically indistinguishable from real data across various topological properties, including edge weights and cut distances.

Conclusion and Future Work

While MoGAN offers a powerful new approach to mobility modeling, it currently operates at a fixed $64 \times 64$ resolution and lacks geographic transferability between cities. Future research will focus on high-resolution generation, transfer learning for data-scarce regions, and conditional generation to simulate specific scenarios like extreme weather or public events.

Summary updated

BibTeX
@article{mauro2022generating,
  author = {Giovanni Mauro and Massimiliano Luca and Antonio Longa and Bruno Lepri and Luca Pappalardo},
  title = {{Generating mobility networks with generative adversarial networks}},
  journal = {EPJ Data Sci.},
  year = {2022},
  doi = {10.1140/epjds/s13688-022-00372-4},
}
Figure