A Machine Learning Approach to Modeling Human Migration

Caleb Robinson, Bistra Dilkina

Predicting where people move is a high-stakes game for city planners, public health officials, and economists. Yet, for decades, the field has relied on "Gravity" and "Radiation" models—elegant but rigid mathematical formulas that often struggle with the messy, multi-faceted reality of human migration.

In their paper, "A Machine Learning Approach to Modeling Human Migration," Caleb Robinson and Bistra Dilkina from Georgia Tech argue that it’s time to trade these fixed equations for the flexibility of machine learning (ML). By treating migration as a supervised learning problem, they demonstrate significant gains in predictive accuracy across both domestic and international datasets.

TL;DR

This paper introduces the first general machine learning framework for predicting human migration flows, outperforming traditional analytical models by incorporating a wide array of socio-economic features. By using XGBoost and Artificial Neural Networks (ANNs) with a custom loss function, the authors significantly reduce spatial biases and improve predictions for both US county-to-county and global country-to-country migration.

What Problem Does This Paper Address?

Traditional mobility models are "fixed-form." The Gravity Model, for instance, assumes the probability of a trip decays as a simple function of distance. The more recent Radiation Model improves on this by considering "intervening opportunities" (the population between two points), but it still relies on a very limited set of inputs: population and distance.

The authors identify three major gaps:

  1. Inflexibility: Traditional models can't easily incorporate "exogenous" features like median income, coastal status, or land area.
  2. Scale Mismatch: While these models work okay for daily commuting, they often fail to capture the complex dynamics of long-term migration.
  3. Zero-Inflation: In migration datasets, most pairs of locations have zero migrants between them. Standard regression techniques struggle with this massive imbalance.

Methods

The researchers reframed migration as a regression task: given features of an origin zone ($i$), a destination zone ($j$), and the relationship between them, predict the number of migrants $T_{ij}$.

The ML Toolkit

  • XGBoost: A gradient-boosted tree model known for handling non-linear relationships and providing feature importance rankings.
  • Artificial Neural Networks (ANNs): Deep learning models composed of densely connected layers.
  • Custom CPC Loss Function: Standard loss functions like Mean Squared Error (MSE) don't always align with what researchers care about in mobility. The authors derived a new, differentiable loss function based on the Common Part of Commuters (CPC) metric, which rewards the model for matching the overall distribution of flows rather than just minimizing point-wise error.

Handling the "Zero" Problem

To tackle the zero-inflated nature of the data, they implemented a strategic undersampling pipeline. For every "positive" example (a pair with observed migration), they included $k$ randomly chosen "negative" examples (zero migration) during training, where $k$ was treated as a tunable hyperparameter.

Datasets

The models were tested on two distinct scales:

  1. USA Migration: IRS Tax-Stats covering intra-county moves between 3,106 US counties over 11 years (2004–2014). This was supplemented with Census features like median income and population density.
  2. Global Migration: World Bank decadal data for 207 countries (1960–2000), supplemented with indicators like agricultural emissions and population growth.

Key Insights and Ideas

  • Feature Richness Wins: The "Extended" feature set (including income, land area, etc.) consistently led to better results. In the US, the most important feature wasn't just distance, but the number of intervening counties, a more granular take on the radiation model's core intuition.
  • Correcting Spatial Bias: Traditional models have a known habit of overestimating migration to rural areas and underestimating moves to the Western US. The ML models, particularly the ANN with extended features, were able to "learn" away these biases.
  • The Power of Custom Loss: The CPC-based loss function didn't just improve accuracy; it also led to faster training times compared to standard MSE, proving that domain-specific loss functions are vital in spatial modeling.

Key Results

The ML models outperformed traditional models across almost every metric (CPC, RMSE, $r^2$).

  • USA Results: The ANN with extended features achieved a CPC of 0.69, significantly higher than the best traditional model (Extended Radiation at 0.58).
  • Global Results: Traditional models were almost useless on the global dataset, with $r^2$ scores near zero. In contrast, the ML models achieved $r^2$ scores up to 0.53 for predicting incoming migrants.
  • Visualizing Error: As seen in the modeling error maps, the ML models (bottom and middle rows) show much more "white" (accurate prediction) and less intense "red/blue" (under/overestimation) compared to the traditional models (top row).
Figure 1: USA Migrations modeling error. These maps show the difference between the ground truth number of incoming migrants and predicted number of incoming migrants per county for 6 models in 2014. Blue corresponds to overestimation by the model, red to underestimation by the model, and white if the model accurately predicts the correct number of incoming migrants. Top row shows the results for the Extended Radiation model and Gravity model with power law distance decay. Middle row shows the results for ANN models trained with the extended and common feature sets. Bottom row shows the results for XGBoost models trained with the extended and common feature sets.

Limitations and Future Work

While a major step forward, the authors note a few areas for improvement:

  • Static Assumption: The current models assume migration flows are determined by features from the previous timestep, ignoring long-term temporal trends.
  • Interpretability vs. Accuracy: While XGBoost provides feature importance, the "black box" nature of deep learning makes it harder to extract the kind of simple socio-economic "laws" that traditional models aim for.
  • Extreme Events: The authors are keen to extend this work to model migration triggered by natural disasters (like hurricanes), where high-resolution, real-time prediction is a matter of life and death.

For researchers in spatial science and ML, this paper serves as a compelling proof-of-concept: when it comes to the complex ways humans move across the globe, the data often speaks louder than the equations.

Summary updated

BibTeX
@inproceedings{robinson2018machine,
  author = {Caleb Robinson and Bistra Dilkina},
  title = {{A Machine Learning Approach to Modeling Human Migration}},
  booktitle = {COMPASS},
  year = {2018},
  doi = {10.1145/3209811.3209868},
}
Figure