Extracting individual trajectories from text by fusing large language models with diverse knowledge
• Develop a method for reconstructing individual trajectories from texts. • Innovative Sampling-Induction prompting fuses theoretical models, samples, and LLMs. • Overcome rule-based limitations with low accuracy and poor cross-domain adaptability. • Demonstrate cross-scenario robustness in travel blogs, biographies, and surveys. Individual trajectories offer insights into human mobility, with data either passively recorded, such as GPS, or actively recorded, such as natural language text. While the former provides detailed movement data, it lacks important context such as personal experiences, which can be obtained from the latter. Extracting trajectories from text can enhance travel experience optimization, historical analysis, and pandemic management. However, existing trajectory extraction methods rely on rule-based frameworks that fail to capture contextual semantics, resulting in limited generalizability and loss of trajectory semantics. While general-purpose large language models (LLMs) demonstrate potential for contextual reasoning capabilities, their deficient domain-specific knowledge pertinent to trajectory patterns hinders efficient and precise trajectory extraction. To address these limitations, we propose T2TrajLLM, a novel framework that fuses LLMs with domain knowledge through three components: (1) a lightweight trajectory model for structured guidance, (2) a text-to-trajectory transformation model enabling multi-step reasoning, and (3) labelled text-trajectory samples for learning domain-adaptive constraint rules. Central to T2TrajLLM is a prompt method that dynamically fuses these components with LLMs while avoids rigid rule dependency. Evaluated across three heterogeneous datasets, T2TrajLLM achieves ∼8 % higher accuracy than existing methods, demonstrating strong transferability across datasets and extensibility to diverse application requirements. Overall, T2TrajLLM effectively extracts trajectories from diverse textual sources, providing robust support for the analysis and understanding of individual mobility.
Authors
- Chenglong Zheng (ORCID: https://orcid.org/0000-0001-5754-5448)
- Xiaorui Yan (ORCID: https://orcid.org/0000-0002-4174-0561)
- Le Liu (ORCID: https://orcid.org/0009-0008-0471-3944)
- Zidong Fang (ORCID: https://orcid.org/0000-0002-1902-4446)
- Wenfei Luan (ORCID: https://orcid.org/0000-0002-3935-2404)
- Xi Wang (ORCID: https://orcid.org/0000-0002-0434-7939)
- Jie Chen (ORCID: https://orcid.org/0000-0002-4018-2502)
- Ci Song (ORCID: https://orcid.org/0009-0005-5602-0216)
Institutions
- Chinese Academy of Sciences (CN)
- Jiangsu Center for Collaborative Innovation in Geographical Information Resource Development and Application (CN)
- Institute of Geographic Sciences and Natural Resources Research (CN)
- University of Chinese Academy of Sciences (CN)
- Henan Polytechnic University (CN)
Publication Details
- Journal
- International Journal of Applied Earth Observation and Geoinformation
- Published
- 2025-06-09
- DOI
- https://doi.org/10.1016/j.jag.2025.104654
- Citations
- 1
- Primary Topic
- Human Mobility and Location-Based Analysis
- Type
- article
- Field-Weighted Citation Impact
- 2.18
Funders
- National Natural Science Foundation of China
- State Key Laboratory of Resources and Environmental Information System