MovSemCL: Movement-Semantics Contrastive Learning for Trajectory Similarity

Authors

  • Zhichen Lai Department of People and Technology, Roskilde University, Roskilde, Denmark
  • Hua Lu Department of Computer Science, Aalborg University, Aalborg/Copenhagen, Denmark
  • Huan Li The State Key Laboratory of Blockchain and Data Security, Zhejiang University, Hangzhou, China Hangzhou High-Tech Zone (Binjiang) Institute of Blockchain and Data Security, Hangzhou, China
  • Jialiang Li Department of People and Technology, Roskilde University, Roskilde, Denmark
  • Christian S. Jensen Department of Computer Science, Aalborg University, Aalborg/Copenhagen, Denmark

DOI:

https://doi.org/10.1609/aaai.v40i17.38526

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%.

Published

2026-03-14

How to Cite

Lai, Z., Lu, H., Li, H., Li, J., & Jensen, C. S. (2026). MovSemCL: Movement-Semantics Contrastive Learning for Trajectory Similarity. Proceedings of the AAAI Conference on Artificial Intelligence, 40(17), 15036–15043. https://doi.org/10.1609/aaai.v40i17.38526

Issue

Section

AAAI Technical Track on Data Mining & Knowledge Management I