Skip to main content

ETHNOS_APP

Home • Search • Journals • List 0

Adapting large language models for urban trip purpose inference

A domain-informed textual representation and fine-tuning framework

Bibliographic Data

ID24227228
AuthorsChengzhi Zhang (0000-0002-7367-0334), Shaoying Li (0000-0002-4703-5660), Xiaoyi Ma (0000-0002-3631-8673), Xianlong Chen, Zhou Huang (0000-0002-1255-1913), Zixuan Bai, Zheng Gong (0009-0007-7711-2376)
Year2026
Volume179
Pages107680
Publication date2026-12-01
Open AccessNo
TypeARTICLE
VenueCities (JOURNAL)
Journal identifiersISSN: 0264-2751 • E-ISSN: 1873-6084
PublisherElsevier BV (PUBLISHER)
DOI10.1016/j.cities.2026.107680
OpenAlexW7221803238
LanguageEN
References cited58

Understanding why people travel is fundamental to activity-based travel demand modelling and transport policy analysis. However, conventional trip purpose inference methods typically represent mobility contexts using predefined numerical or categorical features, which may discard semantic information contained in raw contextual data, thereby limiting their ability to represent and distinguish diverse travel-related contexts. To address this gap, this study proposes TripPurpose LLM, a domain-informed trip purpose inference framework based on large language models (LLMs). The framework integrates traveller attributes, departure time, transport mode, and semantic information from nearby points of interest (POIs) into a unified textual representation, incorporates transport domain knowledge through structured chain-of-thought (CoT) guidance, and adapts pretrained LLMs using low-rank adaptation (LoRA) fine-tuning. Experiments used 10,513 survey-based trip records from Guangzhou, China. Within the TripPurpose LLM framework, retaining the original POI names increased the accuracy of Qwen3-8B from 0.695 to 0.745 and its Macro-F1 from 0.610 to 0.681, with both metrics exceeding those of structured-feature machine-learning baselines and classifiers using term frequency–inverse document frequency (TF-IDF) features or fixed MacBERT embeddings. This finding highlights the value of contextual semantic modelling for trip purpose inference. Across ten LLM backbones, TripPurpose LLM combining LoRA fine-tuning with CoT guidance consistently achieved the strongest performance among the evaluated settings, with accuracy ranging from 0.71 to 0.76. This pattern demonstrates the framework's effectiveness across different model families and parameter scales. This study provides an integrative framework for inferring trip purposes from travel records, thereby supporting travel-demand analysis, transport planning, and policy evaluation.

activity-based travel demand modeling · chain-of-thought prompting · departure time · large language models · low-rank adaptation · points of interest · transport modes · Transportation planning · travel survey data · Human Mobility and Location-Based Analysis · Traffic Prediction and Management Techniques · Transportation Planning and Optimization

  • Understanding individual human mobility patterns

    Open Access•M Christina Gonzalez, César A Hidalgo et al.•Nature•2008

  • Applying mobile phone data to travel behaviour research

    Open Access•Zhenzhen Wang, Sylvia Y He et al.•Travel Behaviour and Society•2018

  • Dynamic population mapping using mobile phone data

    Open Access•Pierre Deville, Catherine Linard et al.•Proceedings of the National…•2014

  • Origin–destination trips by purpose and time of day inferred from mobile phone data

    Open Access•Lauren Alexander, Lauren P Alexander et al.•Transportation Research Part C:…•2015

  • A systematic analysis of performance measures for classification tasks

    Open Access•Marina Sokolova, Guy Lapalme•Information Processing & Management•2009

  • Growth, innovation, scaling, and the pace of life in cities

    Open Access•Luís M A Bettencourt, Luís Bettencourt et al.•Proceedings of the National…•2007

  • Understanding spatiotemporal trip purposes of urban micro-mobility from the lens of dockless e-scooter sharing

    Open Access•Hao Li, Zhendong Yuan et al.•Computers Environment and Urban…•2022

  • Exploring large language models for human mobility prediction under public events

    Open Access•Yuebing Liang, Yichao Liu et al.•Computers Environment and Urban…•2024

  • Research note

    Open Access•Yu-Hsin Tung, Zhe-Rui Yang et al.•Landscape and Urban Planning•2025

  • Portraying business district vibrancy with mobile phone data and optimal parameters-based geographical detector model

    Open Access•Feng Gao, Xingdong Deng et al.•Sustainable Cities and Society•2023

  • How urban land use influences commuting flows in Wuhan, Central China

    Open Access•Yaolin Liu, Feiguo Fang et al.•Sustainable Cities and Society•2020

  • Leveraging LLM-based multi-agent simulations to boost participatory design education

    Open Access•Yudi Zhang, Yuming Lin et al.•Sustainable Cities and Society•2025

  • Detecting home location and trip purposes for cardholders by mining smart card transaction data in Beijing subway

    Open Access•Qingru Zou, Xiangming Yao et al.•Transportation•2018

  • The life cycle concept as a tool for travel research

    Open Access•Carol A Zimmerman, Carol Zimmerman•Transportation•1982

  • Advancements in the application of large language models in urban studies

    Open Access•Junhao Xia, Yao Tong et al.•Cities•2025

  • What About People in Regional Science

    Open Access•Torsten Hägerstraand•Papers of the Regional Science…•1970

  • Big data for big issues

    Open Access•Caio Pieroni, Mariana Giannotti et al.•Journal of Transport Geography•2021

  • An approach to imputing destination activities for inclusion in measures of bicycle accessibility

    Open Access•Aoyong Li, Yizhe Huang et al.•Journal of Transport Geography•2019

  • Uncovering the spatial patterns and internal vitality heterogeneity of bedroom communities

    Open Access•Caigang Zhuang, Shaoli Li et al.•Cities•2026

  • The role of planning policy in the evolution of the spatial structure of the Guangzhou metropolitan area in China

    Open Access•Xiong He, Rongrong Zhang et al.•Cities•2023

  • The six dimensions of built environment on urban vitality

    Open Access•Xin Li, Yuan Li et al.•Cities•2022

  • GeoAvatar

    Open Access•Peiran Li, Haoran Zhang et al.•Computers Environment and Urban…•2025

  • Urban planning in the age of large language models

    Open Access•Xukai Zhao, He Huang et al.•Computers Environment and Urban…•2025

  • A wildfire exposure risk assessment framework combining LLM and spatial-temporal knowledge hypergraphs

    Open Access•Jiaqi Huang, Teng Zhong et al.•Computers Environment and Urban…•2026

  • Multifaceted associations between built environments and POI visit patterns by trip purposes

    Open Access•Sangwan Lee, Sugie Lee et al.•Cities•2025

  • Making a city

    John Warwick Montgomery, John Montgomery•Journal of Urban Design•1998

  • The Use of the Life-Style Concept in Travel Demand Models

    Open Access•Ilan Salomon, M Ben-Akiva et al.•Environment and Planning A…•1983

  • Mobility Research in the Age of the Smartphone

    Amit Birenboim, Noam Shoval•Annals of the American…•2016

Highly citedNo

Tools

Open DOIOpen Access
Ethnos_APP • Open Source Project • MIT License • Frontend v2.0.0 • Privacy and Cookies • API Documentation: api.ethnos.app/docs • API Source Code: GitHub • DOI: 10.5281/zenodo.17049435 • Frontend Source Code: GitHub • DOI: 10.5281/zenodo.17050053 • cruz.rio.br • Expectantes Misericordiae