Encounter-Driven City-Scale Human Mobility Generation with Large Language Models
Organizations: The Hong Kong University of Science and Technology · The University of Tokyo · The University of Osaka
Abstract
Large language models (LLMs) have shown strong potential for human mobility generation by modeling individual routines, activities, and mobility preferences. However, existing approaches remain largely resident-centric: generating realistic individual trajectories does not necessarily recover the encounters that emerge when multiple residents co-occur at the same place and time. To this end, we study encounter-aware human mobility generation, which jointly preserves individual mobility and population-level interaction structure. We propose EncounterMob, an encounter-driven LLM framework consisting of a coarse-to-fine Encounter Generator and an Iterative Coupling Framework. The Encounter Generator first captures city-level encounter rhythms and then instantiates participant-time-venue encounters, while the Iterative Coupling Framework coordinates these encounters with personal mobility behavior through successive refinement. We further introduce an encounter recovery protocol covering encounter marginal and joint distributions over residents, times, and venues. Experiments on the Japan and NYC datasets show that EncounterMob outperforms all external baselines on all seven encounter metrics and all six personal mobility metrics. Compared with ELLMob, it reduces the participant-time-venue joint error by 40.4%/41.7% and the mean personal mobility error by 58.8%/32.7% on Japan/NYC, respectively.
Figures & tables
| Dimension | Distribution | Characterization |
|---|---|---|
| Participant group | (GroupD) | Complete participant groups involved in encounters |
| Time | (TD) | Temporal distribution of encounters |
| Venue | (VD) | Venue distribution of encounters |
| Participant–Time | Association between participant groups and times | |
| Participant–Venue | Association between participant groups and venues | |
| Time–Venue | Association between encounter times and venues |
| Japan | NYC | |||||||||||||
| Model | TD | VD | GroupD | TD | VD | GroupD | ||||||||
| LSTM | 0.09877 | 0.24476 | 0.68514 | 0.50963 | 0.69207 | 0.68664 | 0.69207 | 0.69315 | 0.66362 | 0.69315 | 0.69315 | 0.69315 | 0.69315 | 0.69315 |
| GETNext | 0.05961 | 0.23111 | 0.68071 | 0.49085 | 0.69315 | 0.68496 | 0.69315 | 0.65010 | 0.69315 | 0.69315 | 0.69315 | 0.69315 | 0.69315 | 0.69315 |
| MHSA | 0.06601 | 0.22904 | 0.68160 | 0.49340 | 0.69315 | 0.68468 | 0.69315 | 0.64424 | 0.66869 | 0.69315 | 0.69315 | 0.69315 | 0.69315 | 0.69315 |
| TrajGAIL | 0.08504 | 0.45497 | 0.68895 | 0.60298 | 0.69315 | 0.69167 | 0.69315 | 0.45976 | 0.66984 | 0.66637 | 0.69315 | 0.69315 | 0.69315 | 0.69315 |
| DiffTraj | 0.06280 | 0.22032 | 0.67645 | 0.46585 | 0.69286 | 0.68045 | 0.69286 | 0.66286 | 0.66728 | 0.69315 | 0.69315 | 0.69315 | 0.69315 | 0.69315 |
| Japan | NYC | |||||||||||
| Model | SD | SI | DARD | STVD | CD | SGD | SD | SI | DARD | STVD | CD | SGD |
| LSTM | 0.06371 | 0.10285 | 0.17937 | 0.58511 | 0.00493 | 0.11069 | 0.22653 | 0.11680 | 0.58435 | 0.68255 | 0.00870 | 0.20886 |
| GETNext | 0.05912 | 0.08853 | 0.15050 | 0.55073 | 0.01972 | 0.10460 | 0.25078 | 0.16924 | 0.57884 | 0.68183 | 0.00541 | 0.20827 |
| MHSA | 0.06143 | 0.05722 | 0.16247 | 0.55529 | 0.01929 | 0.11078 | 0.25595 | 0.15803 | 0.55372 | 0.67848 | 0.00734 | 0.19664 |
| TrajGAIL | 0.12680 | 0.08676 | 0.22410 | 0.60217 | 0.03489 | 0.22519 | 0.37290 | 0.20186 | 0.60749 | 0.68741 | 0.03541 | 0.35073 |
| DiffTraj | 0.08385 | 0.09709 | 0.14790 | 0.53861 | 0.01787 | 0.10721 | 0.23151 | 0.17015 | 0.55110 | 0.67917 | 0.01012 | 0.20594 |
| Dataset | Method | Count | Precision | Recall | F1 |
|---|---|---|---|---|---|
| Japan | ELLMob | 1,627 | 13.83 | 15.53 | 14.63 |
| w/o Rhythm | 940 | 44.55 | 38.75 | 41.45 | |
| w/o Instantiation | 1,104 | 27.86 | 28.73 | 28.29 | |
| EncounterMob | 1,111 | 49.66 | 49.86 | 49.76 | |
| NYC | ELLMob | 26 | 50.00 | 30.77 | 38.10 |
| w/o Rhythm | 123 | 69.23 | 69.23 | 69.23 |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Statistic | Japan | NYC |
|---|---|---|
| Historical period (days) | 60 | 123 |
| Test period (days) | 30 | 61 |
| Residents | 1,049 | 226 |
| Activity stops | 43,147 | 3,432 |
| Active resident-days | 12,887 | 2,017 |
| Encounters | 921 | 77 |
| Dataset | Method | Active RD | Total tokens (M) | Tokens/RD (k) |
|---|---|---|---|---|
| ELLMob | 14,279 | 130.058 | 9.11 | |
| EncounterMob | 12,887 | 587.586 | 45.60 | |
| ELLMob | 2,017 | 14.645 | 7.26 | |
| EncounterMob | 2,017 | 49.823 | 24.70 |
Human Behavior Simulation
Human behavior simulation models how individuals and groups decide, interact, move, and adapt in social, economic, educational, and physical settings.
See all 239 papers