Translating Human Mobility Forecasting through Natural Language Generation

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

Abstract

Traditional human mobility forecasting relies on numerical regression models that often struggle to integrate diverse semantic contexts. This paper introduces SHIFT (Translating Human Mobility Forecasting), a novel framework that reimagines forecasting as a natural language translation task. By converting historical visit data and Point of Interest (POI) metadata into descriptive narratives, SHIFT leverages the sequence-to-sequence capabilities of Transformers to "translate" past behavior into future predictions. Experimental results on real-world datasets from three major U.S. cities demonstrate that SHIFT outperforms state-of-the-art time-series models by over 12% in RMSE, highlighting the potential of language models as robust numerical reasoners.

Introduction: The Context Bottleneck

Predicting visitor counts at specific Points of Interest (POI) is a cornerstone of urban planning and public health. However, conventional time-series models face a significant "context bottleneck." To generate accurate forecasts, models must ingest heterogeneous data: numerical historical counts, categorical POI semantics (e.g., "Restaurant" vs. "Park"), and external temporal factors like weather or holidays.

Typically, engineers address this by concatenating feature vectors—merging different data types into a single numerical string. This approach often fails to capture nuanced correlations, such as how a "Park" category interacts with "Sunny" weather. SHIFT proposes a simpler alternative: describing the scenario in plain English and allowing a language model to perform the heavy lifting.

Comparison between typical numerical forecasting and the proposed language-based translation framework.

Methodology

The SHIFT framework employs a pipeline that transforms raw numbers into narratives, processed through a specialized dual-branch architecture.

1. Mobility-to-Language Template

Numerical data is mapped to a natural language prompt using a fixed template. For instance, a raw data point is converted into: "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

The model consists of two primary components:

  • Natural Language (NL) Branch: A Transformer-based Sequence-to-Sequence model that ingests the prompt and generates a destination sentence containing the numerical prediction (e.g., "there will be 21 people visiting").
  • Auxiliary Mobility (Mob) Branch: A secondary branch that processes raw numerical data. This branch ensures the model maintains a focus on mathematical patterns while the NL branch handles linguistic nuances.

3. Momentum Mode

To optimize training, the authors introduce "Momentum Mode." In this configuration, the Mob branch is not trained via direct backpropagation. Instead, its weights are maintained as a momentum-based moving average of the NL branch. This mechanism forces the language branch to encode underlying mobility patterns more effectively.

The SHIFT architecture across three training modes: Basic, Siamese, and Momentum.

Experimental Setup

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

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

Key Results and Discussion

SHIFT demonstrated superior accuracy and robustness across all test environments:

  • Performance Gains: The model achieved a 12.4% improvement in RMSE compared to leading baselines like Informer and Reformer.
  • Contextual Reasoning: By using language, the model avoids ambiguity. For example, it can distinguish between a POI ID of "24" and a visit count of "24" because one is labeled as a name and the other as a quantity.
  • Efficiency: Despite the complexity of language generation, SHIFT’s computational overhead and parameter counts remain comparable to standard Transformer-based forecasting models.
  • The Power of Dual-Learning: Ablation studies confirmed that the auxiliary "Mob" branch is critical. While the language branch provides flexibility and context integration, the mobility branch provides the necessary grounding in numerical reality.

Conclusion and Future Work

SHIFT proves that framing numerical forecasting as a translation task can unlock significant performance gains by leveraging the inherent reasoning capabilities of Transformers. However, limitations remain. The current reliance on fixed human-designed templates suggests a need for automatic prompt generation to increase description diversity. Additionally, while accurate, the autoregressive nature of token-by-token decoding is slower than direct numerical output. Future research will focus on scaling this approach to global datasets and optimizing inference speed for real-time urban monitoring.

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