Learning Geo-Contextual Embeddings for Commuting Flow Prediction

Zhicheng Liu, Fabio Miranda, Weiting Xiong, Junyan Yang, Qiao Wang, Cláudio T. SilvaAAAI 2020 · DOI

Predicting how people move between home and work is a cornerstone of urban planning. However, traditional models often fail to capture the complex "geographic context" of a city. This paper introduces GMEL (Geo-contextual Multitask Embedding Learner), a framework that uses Graph Attention Networks (GATs) and multitask learning to encode the relationship between nearby regions, significantly outperforming both physics-based gravity models and standard machine learning approaches.

The Challenge of Commuting Flow Prediction

Urban planners need to predict commuting flows—the volume of people traveling from an origin (labor supply) to a destination (labor demand)—to assess the impact of new developments. Traditional "Gravity Models" assume flow is a simple function of population and distance, ignoring the specific character of neighborhoods. Furthermore, most machine learning models treat regions as independent data points, violating Tobler’s First Law: "near things are more related than distant things."

Commuting flows in NYC (a) and a conceptual comparison between traditional independent modeling (b) and the proposed geo-contextual approach (c).

The GMEL Framework

The authors propose a multi-stage deep learning architecture designed to capture spatial intelligence.

Geo-Adjacency Network

The city is represented as a graph where nodes are census tracts and edges represent geographic adjacency. Each node is enriched with 65 "urban indicators" (land use, building types, etc.) from the NYC PLUTO dataset.

The graph representation of New York City census tracts, where edges connect geographically adjacent units.

Dual Graph Attention Networks (GATs)

Instead of a single model, GMEL uses two separate GATs to "disentangle" a region's role. One GAT learns supply characteristics (what makes a place a good home base), while the other learns demand characteristics (what makes a place a job center). This avoids "muddying" the features that attract residents versus those that attract businesses.

Multitask Learning and Prediction

To ensure the learned embeddings are robust, the model is trained on three tasks simultaneously:

  1. Predicting the specific flow between two points (Main Task).
  2. Predicting the total outgoing commuters from a tract.
  3. Predicting the total incoming commuters to a tract.

Finally, these high-dimensional embeddings are fed into a Gradient Boosting Regression Tree (GBRT) to make final flow predictions, combining deep learning's spatial intelligence with the robust performance of tree-based models on tabular data.

Key Results

Evaluated on New York City data (LODES 2015), GMEL achieved superior performance across all metrics:

  • Accuracy: GMEL reached the lowest RMSE (4.887) and MAE (1.747).
  • Common Part of Commuters (CPC): GMEL scored 0.741, significantly higher than the Gravity Model (0.589) and standard GBRT (0.707).

Ablation studies confirmed that removing either the multitask component or the dual-GAT structure led to a measurable drop in performance, proving that both context and role disentanglement are necessary for success.

Conclusion and Future Work

GMEL demonstrates that a neighborhood's commuting profile is defined by its surroundings as much as its internal features. While highly effective for NYC, future research will focus on incorporating temporal dynamics (time-of-day patterns) and testing the model's transferability to less dense or car-dependent urban environments.

Summary updated

BibTeX
@inproceedings{liu2020learning,
  author = {Zhicheng Liu and Fabio Miranda and Weiting Xiong and Junyan Yang and Qiao Wang and Cláudio T. Silva},
  title = {{Learning Geo-Contextual Embeddings for Commuting Flow Prediction}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i01.5425},
}
Figure