Capturing Context-Aware Route Choice Semantics for Trajectory Representation Learning
About
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 15 state-of-the-art TRL methods, achieving an average improvement of 9.20\% over the best-performing baseline. Our code is available at https://github.com/caoji2001/CORE.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Destination Prediction | Beijing | Top-5 Accuracy26.47 | 28 | |
| Destination Prediction | Porto | Acc@537.5 | 28 | |
| Trajectory Similarity Search | Porto (test) | HR@10.9746 | 24 | |
| Estimated Time of Arrival | Porto | MAPE (%)21.98 | 21 | |
| Trajectory Generation | Beijing (test) | DTW5.8033 | 15 | |
| Destination Prediction | Chengdu | Top-1 Accuracy42.96 | 13 | |
| Destination Prediction | Xi'an | Top-1 Accuracy36.31 | 13 | |
| Path Ranking | Beijing | Kendall's τ0.6814 | 13 | |
| Path Ranking | Chengdu | Kendall's τ0.7619 | 13 | |
| Path Ranking | Xi'an | Kendall's Tau0.7129 | 13 |