Capturing Context-Aware Route Choice Semantics for Trajectory Representation Learning

Ji Cao, Yu Wang, Tongya Zheng, Jie Song, Qinghong Guo +4 more
10/16/2025
cs.CVcs.LG

Official code: caoji2001/CORE (9 stars, last commit 2026-04-22).

Abstract

Trajectory representation learning (TRL) aims to encode raw trajectory data into low-dimensional embeddings for downstream tasks such as travel time estimation, mobility prediction, and trajectory similarity analysis. From a behavioral perspective, a trajectory reflects a sequence of route choices within an urban environment. However, most existing TRL methods ignore this underlying decision-making process and instead treat trajectories as static, passive spatiotemporal sequences, thereby limiting the semantic richness of the learned representations. To bridge this gap, we propose CORE, a TRL framework that integrates context-aware route choice semantics into trajectory embeddings. CORE first incorporates a multi-granular Environment Perception Module, which leverages large language models (LLMs) to distill environmental semantics from point of interest (POI) distributions, thereby constructing a context-enriched road network. Building upon this backbone, CORE employs a Route Choice Encoder with a mixture-of-experts (MoE) architecture, which captures route choice patterns by jointly leveraging the context-enriched road network and navigational factors. Finally, a Transformer encoder aggregates the route-choice-aware representations into a global trajectory embedding. Extensive experiments on 4 real-world datasets across 6 downstream tasks demonstrate that CORE consistently outperforms 12 state-of-the-art TRL methods, achieving an average improvement of 9.79% over the best-performing baseline. Our code is available at https://github.com/caoji2001/CORE.

View on arXivView PDF

Code Implementations(1)

caoji2001/COREOfficial100%

[Preprint] Capturing Context-Aware Route Choice Semantics for Trajectory Representation Learning

90PythonNov 28, 20256 months ago

Similar Papers

Cite this paper

@article{cao2025capturing,
  title  = {Capturing Context-Aware Route Choice Semantics for Trajectory Representation Learning},
  author = {Ji Cao and Yu Wang and Tongya Zheng and Jie Song and Qinghong Guo and Zujie Ren and Canghong Jin and Gang Chen and Mingli Song},
  year   = {2025},
  eprint = {2510.14819},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.14819v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.14819.svg)](https://codeofpaper.com/paper/2510.14819)

Discussion