Skip to main content
QUICK REVIEW

[Paper Review] Semantic Trajectory Data Mining with LLM-Informed POI Classification

Yifan Liu, Chenchen Kuai|arXiv (Cornell University)|May 20, 2024
Data Management and AlgorithmsComputer Science3 citations
TL;DR

This paper proposes a novel trajectory mining framework that uses large language models (LLMs) to classify Points of Interest (POIs) by inferring activity types, followed by a Bayesian-based algorithm to infer activities at stay points in trajectories. The method achieves 93.4% accuracy and 96.1% F-1 score in POI classification, and 91.7% accuracy with 92.3% F-1 score in activity inference on the OpenStreetMap dataset, demonstrating high performance on incomplete, real-world data without retraining.

ABSTRACT

Human travel trajectory mining is crucial for transportation systems, enhancing route optimization, traffic management, and the study of human travel patterns. Previous rule-based approaches without the integration of semantic information show a limitation in both efficiency and accuracy. Semantic information, such as activity types inferred from Points of Interest (POI) data, can significantly enhance the quality of trajectory mining. However, integrating these insights is challenging, as many POIs have incomplete feature information, and current learning-based POI algorithms require the integrity of datasets to do the classification. In this paper, we introduce a novel pipeline for human travel trajectory mining. Our approach first leverages the strong inferential and comprehension capabilities of large language models (LLMs) to annotate POI with activity types and then uses a Bayesian-based algorithm to infer activity for each stay point in a trajectory. In our evaluation using the OpenStreetMap (OSM) POI dataset, our approach achieves a 93.4% accuracy and a 96.1% F-1 score in POI classification, and a 91.7% accuracy with a 92.3% F-1 score in activity inference.

Motivation & Objective

  • To address the limitations of rule-based and learning-based POI classification methods that struggle with incomplete or inconsistent open-source datasets like OpenStreetMap.
  • To improve trajectory mining by integrating semantic information from POIs, particularly activity types, to enhance understanding of human mobility patterns.
  • To develop a framework that is adaptable across regions without requiring retraining or high data integrity.
  • To enable precise, point-level activity inference at stay points using LLM-informed semantic context, even under GPS noise.
  • To produce annotated semantic trajectories that support advanced applications in transportation, urban planning, and human behavior analysis.

Proposed method

  • Leverage the contextual reasoning and comprehension capabilities of large language models (LLMs) to infer activity types for POIs based on their names, descriptions, and surrounding context.
  • Apply a prompt engineering strategy to guide LLMs in assigning activity categories to POIs, generating semantic embeddings that reflect intended human activities.
  • Use a Bayesian inference algorithm to estimate the most likely activity at each stay point by combining POI classification results with spatial and temporal proximity.
  • Model activity inference as a probabilistic classification task, where evidence from nearby POIs is aggregated to compute posterior probabilities for each activity type.
  • Design the pipeline to be deployment-ready across diverse geographic regions without fine-tuning, relying solely on LLM zero-shot or few-shot capabilities.
  • Integrate the output into semantic trajectories where each stay point is annotated with the top-ranked inferred activity, enabling behavioral pattern analysis.

Experimental results

Research questions

  • RQ1Can LLMs effectively classify POIs into activity categories when training data is incomplete or inconsistent, as in open-source datasets like OpenStreetMap?
  • RQ2How accurately can a Bayesian-based inference model predict the activity type at a stay point using LLM-generated POI labels?
  • RQ3To what extent does the proposed framework maintain performance under real-world conditions such as GPS noise and data sparsity?
  • RQ4Can the framework be deployed across different geographic regions without retraining or fine-tuning?
  • RQ5How does the integration of LLM-informed semantic information improve the quality and interpretability of mined semantic trajectories?

Key findings

  • The LLM-informed POI classification achieved 93.4% accuracy and 96.1% F-1 score on the OpenStreetMap dataset, significantly outperforming traditional learning-based methods on incomplete data.
  • The Bayesian-based activity inference model reached 91.7% accuracy and 92.3% F-1 score in classifying activities at stay points, demonstrating strong generalization across diverse mobility patterns.
  • For non-mandatory activities, the model maintained Acc@3 above 80% even under 20-meter GPS noise, with 84.2% accuracy at 20m standard deviation, indicating robustness to measurement error.
  • Mandatory activities (e.g., work, school) were predicted with near-perfect accuracy (e.g., 98.3% for category 1), due to their deterministic and repetitive nature.
  • Categories like dining out (7), religious activities (13), and service availing (12) showed strong performance (100% Acc@1), likely due to high instance density and clear POI associations.
  • Less predictable activities such as visiting friends (11), miscellaneous (14), and transporting others (15) had lower accuracy (46.2–52.2%), reflecting challenges in POI pattern consistency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.