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

Institutions

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

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Extracting individual trajectories from text by fusing large language models with diverse knowledge

Chenglong Zheng, Xiaorui Yan, Le Liu, Zidong Fang et al.
1 citations
International Journal of Applied Earth Observation and Geoinformation
Human Mobility and Location-Based Analysis
2.18
article

Extracting individual trajectories from text by fusing large language models with diverse knowledge

Chenglong Zheng, Xiaorui Yan, Le Liu, Zidong Fang, Wenfei Luan, Xi Wang, Jie Chen, Ci Song
article en
1 citations

Abstract

• 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.

International Journal of Applied Earth Observation and GeoinformationVol. 141
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)
National Natural Science Foundation of China, State Key Laboratory of Resources and Environmental Information System
Quality Education
Openalex Percentile: Top 13%
Human Mobility and Location-Based Analysis
2.18
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.