K Nearest Neighbor-Guided Trajectory Similarity Learning

Yanchuan Chang, Xu Cai, Christian S. Jensen, Jianzhong Qi
2/1/2025
cs.LGcs.CVcs.DB

No official code found. Best implementation: changyanchuan/TSMini (11 stars, last commit 2025-07-30).

Abstract

Trajectory similarity is fundamental to many spatio-temporal data mining applications. Recent studies propose deep learning models to approximate conventional trajectory similarity measures, exploiting their fast inference time once trained. Although efficient inference has been reported, challenges remain in similarity approximation accuracy due to difficulties in trajectory granularity modeling and in exploiting similarity signals in the training data. To fill this gap, we propose TSMini, a highly effective trajectory similarity model with a sub-view modeling mechanism capable of learning multi-granularity trajectory patterns and a k nearest neighbor-based loss that guides TSMini to learn not only absolute similarity values between trajectories but also their relative similarity ranks. Together, these two innovations enable highly accurate trajectory similarity approximation. Experiments show that TSMini can outperform the state-of-the-art models by 22% in accuracy on average when learning trajectory similarity measures.

View on arXivView PDF

Code Implementations(1)

State-of-the-art learned trajectory similarity computation method in 2024

111PythonJul 31, 20241 years ago
trajectorytrajectory-distancetrajectory-similarity

Similar Papers

Cite this paper

@article{chang2025nearest,
  title  = {K Nearest Neighbor-Guided Trajectory Similarity Learning},
  author = {Yanchuan Chang and Xu Cai and Christian S. Jensen and Jianzhong Qi},
  year   = {2025},
  eprint = {2502.00285},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.00285v2}
}

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/2502.00285.svg)](https://codeofpaper.com/paper/2502.00285)

Discussion