Where Would I Go Next? Large Language Models as Human Mobility Predictors

Xinglei Wang, Meng Fang, Zichao Zeng, Tao Cheng
8/29/2023
cs.AIcs.SIphysics.soc-ph

Official code: xlwang233/LLM-Mob (65 stars, MIT, last commit 2024-11-09).

Abstract

Accurate human mobility prediction underpins many important applications across a variety of domains, including epidemic modelling, transport planning, and emergency responses. Due to the sparsity of mobility data and the stochastic nature of people's daily activities, achieving precise predictions of people's locations remains a challenge. While recently developed large language models (LLMs) have demonstrated superior performance across numerous language-related tasks, their applicability to human mobility studies remains unexplored. Addressing this gap, this article delves into the potential of LLMs for human mobility prediction tasks. We introduce a novel method, LLM-Mob, which leverages the language understanding and reasoning capabilities of LLMs for analysing human mobility data. We present concepts of historical stays and context stays to capture both long-term and short-term dependencies in human movement and enable time-aware prediction by using time information of the prediction target. Additionally, we design context-inclusive prompts that enable LLMs to generate more accurate predictions. Comprehensive evaluations of our method reveal that LLM-Mob excels in providing accurate and interpretable predictions, highlighting the untapped potential of LLMs in advancing human mobility prediction techniques. We posit that our research marks a significant paradigm shift in human mobility modelling, transitioning from building complex domain-specific models to harnessing general-purpose LLMs that yield accurate predictions through language instructions. The code for this work is available at https://github.com/xlwang233/LLM-Mob.

View on arXivView PDF

Code Implementations(1)

xlwang233/LLM-MobOfficial100%
MIT

Large Language Models as Human Mobility Predictors

6514Python, Jupyter NotebookAug 30, 20231 years agoMIT

Similar Papers

Cite this paper

@article{wang2023where,
  title  = {Where Would I Go Next? Large Language Models as Human Mobility Predictors},
  author = {Xinglei Wang and Meng Fang and Zichao Zeng and Tao Cheng},
  year   = {2023},
  eprint = {2308.15197},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.15197v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.15197.svg)](https://codeofpaper.com/paper/2308.15197)

Discussion