TLDR: HiCoTraj is a novel AI framework that uses Large Language Models (LLMs) to infer demographic attributes like age, sex, or income from human mobility patterns (trajectories) without requiring any pre-labeled training data. It transforms raw movement data into natural language descriptions and then employs a three-stage hierarchical chain-of-thought reasoning process to extract factual features, analyze behavioral patterns, and finally make transparent and interpretable demographic predictions.
Understanding demographic attributes like age, sex, or income from how people move can unlock crucial applications, from targeted public health initiatives to personalized transportation services. However, traditional methods for inferring these details from human mobility patterns often hit a wall: they need vast amounts of labeled data, which is hard to come by, and their reasoning can be a black box.
Enter HiCoTraj, a groundbreaking framework developed by researchers from the University of Minnesota and Novateur Research Solutions. HiCoTraj, which stands for “Zero-Shot Demographic Reasoning via Hierarchical Chain-of-Thought Prompting from Trajectory,” tackles these challenges head-on. It leverages the advanced capabilities of Large Language Models (LLMs) to infer demographics without needing any pre-labeled training data, a concept known as zero-shot learning. This means it can work effectively even when specific demographic labels for mobility data are scarce.
How HiCoTraj Works: From Movement to Meaning
HiCoTraj operates through two core components: contextual mobility narrative generation and a novel hierarchical chain-of-thought reasoning process.
First, the framework transforms raw trajectory data—which typically consists of timestamps and locations—into rich, natural language descriptions. Imagine your daily commute and activities being turned into a detailed story. HiCoTraj creates “detailed activity chronicles” that log specific venue choices, visit durations, and activity types (e.g., “Monday, January 29 (Weekday) – 09:10-10:14 (63 mins): Bear Wire – Work, Services, DropOff.”). Alongside this, it generates “multi-scale visiting summaries” that capture broader lifestyle patterns, such as average activities on weekdays versus weekends. These narratives provide the LLM with a semantically rich understanding of an individual’s mobility.
Next, the LLM engages in a three-stage hierarchical chain-of-thought reasoning process, systematically breaking down the complex task of demographic inference:
- Stage 1: Factual Feature Extraction: The LLM acts like a meticulous data analyst, extracting objective facts directly from the generated narratives. This includes listing visited POI (Point of Interest) categories, analyzing temporal patterns like activity hours, and identifying spatial characteristics. At this stage, there’s no interpretation, just pure factual observation.
- Stage 2: Behavioral Pattern Analysis: Building on the extracted facts, the LLM then interprets these observations to understand lifestyle and behavioral patterns. For instance, consistent weekday visits to a specific location might suggest a fixed work schedule. Combining regular visits to budget venues with a limited spatial radius could indicate certain economic behaviors or living environments. This stage bridges the gap between raw data and meaningful human behavior.
- Stage 3: Demographic Inference: In the final stage, the LLM synthesizes all the information from the previous two stages to make a systematic demographic inference. For example, to infer income, it evaluates indicators like the economic level of visited locations, neighborhood characteristics, leisure cost levels, and shopping patterns. The output is structured, providing a categorical prediction (e.g., “Middle Income”), a confidence score, and detailed reasoning linking specific mobility patterns to the conclusion.
Why HiCoTraj Matters: Zero-Shot and Interpretable
The beauty of HiCoTraj lies in its ability to perform zero-shot demographic inference. Unlike traditional machine learning models that need extensive, labeled datasets for training, HiCoTraj can make predictions without ever seeing examples of labeled demographic data. This is particularly valuable in the mobility domain, where obtaining such labels is often challenging due to privacy concerns and data sparsity.
Furthermore, the hierarchical chain-of-thought prompting ensures interpretability. By guiding the LLM through distinct cognitive stages, HiCoTraj provides transparent reasoning chains, allowing users to understand how the model arrived at its demographic conclusions. This contrasts sharply with many black-box AI models, offering greater trust and insight.
Also Read:
- Understanding Urban Dynamics: A Unified AI Model for Simulating Mobility and Mobile Traffic
- Beyond Trajectories: Detecting Individual Behavioral Changes in Human Movement Data
Experimental Validation
The researchers evaluated HiCoTraj on the NUMOSIM dataset, using LLMs like Mistral-7B and Qwen3-8B. The results demonstrated competitive performance in zero-shot scenarios for predicting age, income, and education levels. Age and income predictions showed particularly good accuracy, suggesting that mobility patterns are more distinct for these attributes compared to education. Crucially, HiCoTraj maintained its competitive performance even when supervised models struggled due to limited training data, highlighting its practical benefits.
An ablation study confirmed that each stage of the hierarchical reasoning process contributes to the model’s overall effectiveness, showcasing the robustness of the framework.
HiCoTraj represents a significant step forward in leveraging LLMs for sensitive and complex tasks like demographic inference from human mobility. By offering a training-free, interpretable, and generalizable approach, it opens new avenues for applications in urban planning, public health, and personalized services, all while addressing the critical challenge of data scarcity. You can read the full research paper here.


