Translating Human Mobility Forecasting through Natural Language Generation

Hao Xue, Flora D. Salim, Yongli Ren, Charles L. A. Clarke

TL;DR

Researchers have reimagined human mobility forecasting—traditionally a numerical regression task—as a natural language translation problem. By converting historical visit data and context into descriptive sentences, their new model, SHIFT, "translates" past behavior into a future prediction sentence, outperforming state-of-the-art time-series models by over 12%.

What Problem Does This Paper Address?

Predicting how many people will visit a specific Point of Interest (POI) is crucial for urban planning and public health. However, traditional time-series models face a "context bottleneck."

To make accurate predictions, models need to ingest diverse data: historical visit counts (numbers), POI categories (semantics like "Restaurant" or "Park"), and external factors (weather or day of the week). Usually, engineers handle this by "concatenating" feature vectors—essentially smashing different data types together into one long string of numbers. This often fails to capture the subtle correlations between, say, a "Park" category and "Sunny" weather. The authors ask: Can we simply describe the scenario in plain English and let a language model do the heavy lifting?

Methods

The authors introduce a pipeline that turns numbers into narratives and a dual-architecture model called SHIFT (Translating Human Mobility Forecasting).

  1. Mobility-to-Language Template: Numerical data is transformed into a natural language prompt. For example: "Place-of-Interest 81 is an Optical Goods Store. From Aug 26 to Aug 28, there were 42, 32, 29 people visiting... On Aug 29, there will be..."
  2. The SHIFT Architecture:
    • Natural Language (NL) Branch: A Sequence-to-Sequence (Transformer) model that takes the prompt and generates a destination sentence containing the prediction (e.g., "there will be 21 people visiting").
  3. Auxiliary Mobility (Mob) Branch: A secondary branch that looks at the raw numerical data. Its job is to ensure the model doesn't lose sight of the actual mathematical patterns while it's busy learning grammar.
  4. Momentum Mode: This is the "secret sauce" for training. The Mob branch isn't trained directly via backpropagation; instead, its weights are a "momentum-based moving average" of the NL branch. This forces the language branch to encode mobility patterns more effectively.

Datasets

The model was evaluated on real-world mobility data from SafeGraph’s Weekly Patterns, focusing on three major US cities with distinct statistical profiles:

  • New York City (NYC): 479 POIs, lower visit variance.
  • Dallas: 1,374 POIs, high range of visit values (up to 2,746 visits/day).
  • Miami: 1,007 POIs.

Key Insights and Ideas

  • Context is "Free": In traditional models, adding a new variable (like "Is it a holiday?") requires changing the neural network's architecture. In SHIFT, you just append a sentence to the prompt (e.g., "Tuesday is Boxing Day"). The model architecture remains identical.
  • Language Models as Reasoners: The study suggests that Transformers are surprisingly adept at "translating" numerical trends when they are framed as linguistic sequences.
  • The Power of Dual-Learning: The ablation studies showed that the model performs significantly worse without the auxiliary "Mob" branch. The language branch provides the flexibility, but the mobility branch provides the "grounding" in numerical reality.
  • Disambiguation: Language helps the model distinguish between identical numbers with different meanings. For instance, if a POI ID is "24" and the visit count is also "24," a standard model might get confused; SHIFT understands one is a name and the other is a quantity.

Key Results

  • Superior Accuracy: SHIFT achieved a 12.4% improvement in RMSE (Root Mean Square Error) compared to the second-best baseline (Informer/Reformer).
  • Robustness: It consistently outperformed specialized time-series Transformers across all three cities, particularly in Dallas and Miami, which have more complex data distributions.
  • Efficiency: While language models are often heavy, SHIFT’s computational cost and parameter count were comparable to standard Transformer-based forecasting models, making it a viable alternative.

Limitations and Future Work

  • Template Rigidity: Currently, the model relies on a fixed human-designed template to turn numbers into text. The authors suggest that future work should involve automatic prompt generation to make the descriptions more diverse and natural.
  • Inference Speed: Generating text token-by-token (autoregressive decoding) is generally slower than outputting a single numerical value.
  • Scaling: While tested on three cities, scaling this to a global model with millions of POIs would require significant computational resources and more sophisticated tokenization strategies for large numbers.

Summary updated

BibTeX
@inproceedings{xue2022translating,
  author = {Hao Xue and Flora D. Salim and Yongli Ren and Charles L. A. Clarke},
  title = {{Translating Human Mobility Forecasting through Natural Language Generation}},
  booktitle = {WSDM},
  year = {2022},
  doi = {10.1145/3488560.3498387},
}
Figure