MovSemCL: Movement-Semantics Contrastive Learning for Trajectory Similarity
Zhichen Lai, Hua Lu, Huan Li, Jialiang Li, Christian S. Jensen
Abstract
Trajectory similarity computation is fundamental functionality that is used for, e.g., clustering, prediction, and anomaly detection. However, existing learning-based methods exhibit three key limitations: (1) insufficient modeling of trajectory semantics and hierarchy, lacking both movement dynamics extraction and multi-scale structural representation; (2) high computational costs due to point-wise encoding; and (3) use of physically implausible augmentations that distort trajectory semantics. To address these issues, we propose MovSem, a movement-semantics contrastive learning framework for trajectory similarity computation. MovSem first transforms raw GPS trajectories into movement-semantics features and then segments them into patches. Next, MovSem employs intra- and inter-patch attentions to encode local as well as global trajectory patterns, enabling efficient hierarchical representation and reducing computational costs. Moreover, MovSem includes a curvature-guided augmentation strategy that preserves informative segments (e.g., turns and intersections) and masks redundant ones, generating physically plausible augmented views. Experiments on real-world datasets show that MovSem is capable of outperforming state-of-the-art methods, achieving mean ranks close to the ideal value of 1 at similarity search tasks and improvements by up to 20.3% at heuristic approximation, while reducing inference latency by up to 43.4%.
BibTeX
@inproceedings{aaai2026_movsemclmovement,
title = {MovSemCL: Movement-Semantics Contrastive Learning for Trajectory Similarity},
author = {Zhichen Lai and Hua Lu and Huan Li and Jialiang Li and Christian S. Jensen},
booktitle = {AAAI 2026},
year = {2026}
}