Reconstructing Human Mobility Pattern: A Semi-Supervised Approach for Cross-Dataset Transfer Learning

Xishun Liao, Yifan Liu, Chenchen Kuai, Haoxuan Ma, Brian Yueshuai He, Shangqing Cao, Chris Stanford, Jiaqi MaarXiv 2024 · DOI

Understanding urban mobility is essential for effective city planning and public health initiatives. However, researchers often struggle with two primary data limitations: GPS logs are frequently "semantically blind," providing location without context, and "leaky," containing significant temporal gaps due to battery-saving measures or privacy settings. This research introduces a Transformer-based model designed to reconstruct complete daily activity chains from these fragmented datasets, utilizing a novel semi-supervised iterative transfer learning approach.

The Challenge of Sparse Mobility Data

Most raw mobility data consists of sparse GPS pings. While these pings indicate a user's presence at a location, they fail to describe the activity being performed (e.g., working versus shopping). Furthermore, collecting "ground truth"—complete, minute-by-minute activity diaries—is prohibitively expensive and unavailable for most regions globally. This study addresses the gap by reconstructing missing activities in data-scarce regions by leveraging patterns learned from data-rich environments.

A visualization of recorded versus reconstructed activity sequences, demonstrating how the model fills temporal gaps to create a continuous daily story.

Methodology: Transformers and Iterative Learning

The researchers treat human mobility as a sequence-to-sequence translation problem, employing a Transformer-based architecture similar to those used in large language models. The model takes a "masked" activity chain and predicts the most likely activities to fill the voids.

To ensure the reconstructed days are realistic, the model utilizes a three-part loss function:

  1. Cross-Entropy: To accurately identify activity types.
  2. Transition Loss: To prevent illogical jumps between activities (e.g., moving from "Work" to "School" in a matter of minutes).
  3. Dynamic Time Warping (DTW): To maintain the natural temporal "rhythm" of a typical day.

The core innovation is the Iterative Transfer Learning process. A base model is first trained on high-quality data from the US (NHTS and SCAG datasets). To adapt this model to a data-scarce region like Egypt, the system generates synthetic data for the new region and then retrains on its own best guesses. This process, combined with Progressive Unfreezing of neural network layers, allows the model to retain universal human behaviors while gradually adopting local cultural specifics.

Data and Activity Classification

The model categorizes mobility into 15 distinct activity types, ranging from home and work to specific errands and social visits. This granularity allows for a nuanced understanding of how different populations utilize their time.

The 15 activity categories used to classify stay points, providing the semantic framework for the reconstruction model.

For the target region, the study used anonymized GPS trajectory data from Egypt. This data was pre-processed using LLMs and rule-based methods to provide initial, albeit sparse, activity labels before being fed into the iterative reconstruction pipeline.

Key Insights and Results

The study revealed that roughly 90% of human activity follows a limited set of "motifs," which justifies using a model trained in one city (like Los Angeles) as a starting point for another (like Cairo).

Key findings include: * High Fidelity: In US-based testing, the model achieved a Jensen-Shannon Divergence (JSD) of 0.001, indicating that the synthetic data was nearly indistinguishable from real distributions. * Successful Adaptation: The iterative approach improved similarity to local Egyptian patterns by 64%, reducing the JSD from 0.09 to 0.03. * Cultural Nuance: The model successfully identified local differences without explicit instruction. For instance, it captured the unique spikes in Egyptian mobility related to religious activities and noted that shopping patterns in Egypt are more evenly distributed throughout the day compared to the midday peaks seen in the US.

Conclusion and Future Directions

This research demonstrates that high-quality mobility insights can be generated for data-scarce regions through intelligent knowledge transfer. While the model currently focuses on the what and when of mobility, future work aims to incorporate the where (precise geographic coordinates) and socio-demographic factors like age and income to create even more realistic synthetic populations. The authors also noted the importance of "early stopping" during the iterative process to prevent "model collapse," where the system might lose the nuance of rare but important activities.

Summary updated

BibTeX
@misc{liao2024reconstructing,
  author = {Xishun Liao and Yifan Liu and Chenchen Kuai and Haoxuan Ma and Brian Yueshuai He and Shangqing Cao and Chris Stanford and Jiaqi Ma},
  title = {{Reconstructing Human Mobility Pattern: A Semi-Supervised Approach for Cross-Dataset Transfer Learning}},
  year = {2024},
  eprint = {2410.03788},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.03788},
}
Figure