Table of Contents
Fetching ...

HiCoTraj:Zero-Shot Demographic Reasoning via Hierarchical Chain-of-Thought Prompting from Trajectory

Junyi Xie, Yuankun Jiao, Jina Kim, Yao-Yi Chiang, Lingyi Zhao, Khurram Shafique

TL;DR

HiCoTraj tackles the problem of inferring demographic attributes from mobility trajectories without labeled data by leveraging zero-shot LLM reasoning with hierarchical chain-of-thought prompting. It converts trajectories into semantic narratives and uses a three-stage CoT process—Stage 1 Factual Feature Extraction, Stage 2 Behavioral Pattern Analysis, and Stage 3 Demographic Inference—to produce interpretable, evidence-based predictions. Experiments on the NUMOSIM dataset with Mistral-7B and Qwen3-8B demonstrate competitive zero-shot performance across age, income, and education, while revealing class-imbalance challenges and the value of full CoT reasoning. The approach reduces reliance on labeled data and supports cross-domain deployment for targeted public health, urban planning, and personalized mobility services. Overall, HiCoTraj provides a transparent, scalable framework for demographic inference from mobility data using zero-shot LLM reasoning.

Abstract

Inferring demographic attributes such as age, sex, or income level from human mobility patterns enables critical applications such as targeted public health interventions, equitable urban planning, and personalized transportation services. Existing mobility-based demographic inference studies heavily rely on large-scale trajectory data with demographic labels, leading to limited interpretability and poor generalizability across different datasets and user groups. We propose HiCoTraj (Zero-Shot Demographic Reasoning via Hierarchical Chain-of-Thought Prompting from Trajectory), a framework that leverages LLMs' zero-shot learning and semantic understanding capabilities to perform demographic inference without labeled training data. HiCoTraj transforms trajectories into semantically rich, natural language representations by creating detailed activity chronicles and multi-scale visiting summaries. Then HiCoTraj uses a novel hierarchical chain of thought reasoning to systematically guide LLMs through three cognitive stages: factual feature extraction, behavioral pattern analysis, and demographic inference with structured output. This approach addresses the scarcity challenge of labeled demographic data while providing transparent reasoning chains. Experimental evaluation on real-world trajectory data demonstrates that HiCoTraj achieves competitive performance across multiple demographic attributes in zero-shot scenarios.

HiCoTraj:Zero-Shot Demographic Reasoning via Hierarchical Chain-of-Thought Prompting from Trajectory

TL;DR

HiCoTraj tackles the problem of inferring demographic attributes from mobility trajectories without labeled data by leveraging zero-shot LLM reasoning with hierarchical chain-of-thought prompting. It converts trajectories into semantic narratives and uses a three-stage CoT process—Stage 1 Factual Feature Extraction, Stage 2 Behavioral Pattern Analysis, and Stage 3 Demographic Inference—to produce interpretable, evidence-based predictions. Experiments on the NUMOSIM dataset with Mistral-7B and Qwen3-8B demonstrate competitive zero-shot performance across age, income, and education, while revealing class-imbalance challenges and the value of full CoT reasoning. The approach reduces reliance on labeled data and supports cross-domain deployment for targeted public health, urban planning, and personalized mobility services. Overall, HiCoTraj provides a transparent, scalable framework for demographic inference from mobility data using zero-shot LLM reasoning.

Abstract

Inferring demographic attributes such as age, sex, or income level from human mobility patterns enables critical applications such as targeted public health interventions, equitable urban planning, and personalized transportation services. Existing mobility-based demographic inference studies heavily rely on large-scale trajectory data with demographic labels, leading to limited interpretability and poor generalizability across different datasets and user groups. We propose HiCoTraj (Zero-Shot Demographic Reasoning via Hierarchical Chain-of-Thought Prompting from Trajectory), a framework that leverages LLMs' zero-shot learning and semantic understanding capabilities to perform demographic inference without labeled training data. HiCoTraj transforms trajectories into semantically rich, natural language representations by creating detailed activity chronicles and multi-scale visiting summaries. Then HiCoTraj uses a novel hierarchical chain of thought reasoning to systematically guide LLMs through three cognitive stages: factual feature extraction, behavioral pattern analysis, and demographic inference with structured output. This approach addresses the scarcity challenge of labeled demographic data while providing transparent reasoning chains. Experimental evaluation on real-world trajectory data demonstrates that HiCoTraj achieves competitive performance across multiple demographic attributes in zero-shot scenarios.
Paper Structure (8 sections, 2 figures, 2 tables)

This paper contains 8 sections, 2 figures, 2 tables.

Figures (2)

  • Figure 1: Hierarchical CoT reasoning procedure in HiCoTraj (Zero-Shot Demographic Reasoning via Hierarchical Chain-of-Thought Prompting from Trajectory).
  • Figure 2: Performance of supervised transformer baseline across varying training data sizes. (a) Accuracy for income, education, and age prediction. (b) F1 score for income, education, and age prediction.