Skip to main content
Log in

Transfer-learning-based representation learning for trajectory similarity search

  • Research
  • Published:
GeoInformatica Aims and scope Submit manuscript

Abstract

Trajectory similarity search is one of the most fundamental tasks in spatial-temporal data analysis. Classical methods are based on predefined trajectory similarity measures, consuming high time and space costs. To accelerate similarity computation, some deep metric learning methods have recently been proposed to approximate predefined measures based on the learned representation of trajectories. However, instead of predefined measures, real applications may require personalized measures, which cannot be effectively learned by existing models due to insufficient labels. Thus, this paper proposes a transfer-learning-based model FTL-Traj, which addresses this problem by effectively transferring knowledge from several existing measures as source measures. Particularly, a ProbSparse self-attention-based GRU unit is designed to extract the spatial and structural information of each trajectory. Confronted with diverse source measures, the priority modeling assists the model for the rational ensemble. Then, sparse labels are enriched with rank knowledge and collaboration knowledge via transfer learning. Extensive experiments on two real-world datasets demonstrate the superiority of our model.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7

Similar content being viewed by others

Availability of Data and Materials

Both datasets analyzed during the current study are available in the following resources: https://drive.google.com/drive/folders/1wGDt81o80yfbWx3Dmb66Q9VgQdP2-mqr?usp=drive_link

References

  1. Shuo S, Chen L, Jensen CS, Wen J-R, Panos (2017) Searching trajectories by regions of interest. TKDE 29(7):1549–1562

  2. Chen L, Shang S, Yang C, Li J (2019) Spatial keyword search: a survey. GeoInformatica 24(3)

  3. Jin F, Hua W, Zhou T, Xu J, Francia M, Orlowska ME, Zhou X (2022) Trajectory-based spatiotemporal entity linking. IEEE Trans Knowl Data Eng 9:34

    Google Scholar 

  4. Yang S, Liu J, Zhao K (2022) Getnext: Trajectory flow map enhanced transformer for next POI recommendation. In: Amigó E, Castells P, Gonzalo J, Carterette B, Culpepper JS, Kazai G (eds) SIGIR, pp 1144–1153

  5. Wang C, Erfani SM, Alpcan T, Leckie C (2023) Online trajectory anomaly detection based on intention orientation. In: IJCNN, pp 1–8

  6. Colombe C, Fox K (2021) Approximating the (continuous) fréchet distance. SoCG 189:26–12614

    Google Scholar 

  7. Xi Z, Kuszmaul W (2022) Approximating dynamic time warping distance between run-length encoded strings. ESA 244:90–19019

    MathSciNet  Google Scholar 

  8. Backurs A, Sidiropoulos A (2016) Constant-distortion embeddings of hausdorff metrics into constant-dimensional l_p spaces. APPROX/RANDOM 60:1–1115

    Google Scholar 

  9. Gong X, Xiong Y, Huang W, Chen L, Lu Q, Hu Y (2015) Fast similarity search of multi-dimensional time series via segment rotation. DASFAA 9049:108–124

    Google Scholar 

  10. Sakurai Y, Yoshikawa M, Faloutsos C (2005) FTW: fast similarity search under the time warping distance. In: ACM SIGACT-SIGMOD-SIGART, pp 326–337

  11. Yao D, Cong G, Zhang C, Bi J (2019) Computing trajectory similarity in linear time: A generic seed-guided neural metric learning approach. In: ICDE, pp 1358–1369

  12. Zhang H, Zhang X, Jiang Q, Zheng B, Sun Z, Sun W, Wang C (2020) Trajectory similarity learning with auxiliary supervision and optimal matching. In: IJCAI, pp 3209–3215

  13. Yang P, Wang H, Zhang Y, Qin L, Zhang W, Lin X (2021) T3S: effective representation learning for trajectory similarity computation. In: ICDE, pp 2183–2188

  14. Yao D, Hu H, Du L, Cong G, Han S, Bi J (2022) Trajgat: A graph-based long-term dependency modeling approach for trajectory similarity computation. In: SIGKDD, pp 2275–2285

  15. Hu D, Chen L, Fang H, Fang Z, Li T, Gao Y (2023) Spatio-temporal trajectory similarity measures: A comprehensive survey and quantitative study. CoRR arXiv:2303.05012

  16. Toohey K, Duckham M (2015) Trajectory similarity measures. ACM SIGSPATIAL Special 7(1):43–50

    Article  Google Scholar 

  17. Zhou H, Zhang S, Peng J, Zhang S, Li J, Xiong H, Zhang W (2021) Informer: Beyond efficient transformer for long sequence time-series forecasting. In: AAAI, pp 11106–11115

  18. Fan Y, Xu J, Zhou R, Li J, Zheng K, Chen L, Liu C (2022) Metaer-tte: An adaptive meta-learning model for en route travel time estimation. In: Raedt LD (ed) IJCAI. Main Track, pp 2023–2029

    Google Scholar 

  19. Sun J, Xu J, Zhou R, Zheng K, Liu C (2018) Discovering expert drivers from trajectories. In: ICDE, pp 1332–1335

  20. Shang S, Lu H, Pedersen TB, Xie X (2013) Finding traffic-aware fastest paths in spatial networks. In: SSTD. SSTD 2013, pp 128–145. Springer, Berlin, Heidelberg

  21. Shi W, Xu J, Fang J, Chao P, Liu A, Zhou X (2023) Lhmm: A learning enhanced hmm model for cellular trajectory map matching. In: ICDE, pp 2429–2442

  22. Xu Y, Xu J, Zhao J, Zheng K, Liu A, Zhao L, Zhou X (2022) Metaptp: An adaptive meta-optimized model for personalized spatial trajectory prediction. SIGKDD. NY, USA, New York, pp 2151–2159

    Google Scholar 

  23. Zhao J, Xu J, Zhou R, Zhao P, Liu C, Zhu F (2018) On prediction of user destination by sub-trajectory understanding: A deep learning based approach. In: CIKM. CIKM ’18, pp 1413–1422. Association for Computing Machinery, New York, NY, USA

  24. Shang S, Chen L, Zheng K, Jensen CS, Wei Z, Kalnis P (2019) Parallel trajectory-to-location join. TKDE 31(6):1194–1207

    Google Scholar 

  25. Chen L, Shang S (2019) Approximate spatio-temporal top-k publish/subscribe. World Wide Web

  26. Zheng K, Su H, Zheng B, Shang S, Xu J, Liu J, Zhou X (2015) Interactive top-k spatial keyword queries. In: ICDE, pp 423–434

  27. Chen L, Shang S, Jensen CS, Xu J, Kalnis P, Yao B, Shao L (2020) Top-k term publish/subscribe for geo-textual data streams. The VLDB Journal 29:1101–1128

    Article  Google Scholar 

  28. Chen L, Özsu MT, Oria V (2005) Robust and fast similarity search for moving object trajectories. In: SIGMOD, pp 491–502

  29. Vlachos M, Gunopulos D, Kollios G (2002) Discovering similar multidimensional trajectories. In: Agrawal R, Dittrich KR (eds) ICDE, pp 673–684

  30. Gerschner F, Paul J, Schmid L, Barthel N, Gouromichos V, Schmid F, Atzmueller M, Theissler A (2023) Domain transfer for surface defect detection using few-shot learning on scarce data. In: INDIN, pp 1–7

  31. Zhang Q, Wu X, Yang Q, Zhang C, Zhang X (2022) Few-shot heterogeneous graph learning via cross-domain knowledge transfer. In: Zhang A, Rangwala H (eds) KDD, pp 2450–2460

  32. Lin J, Wang Y, Chen Z, He T (2020) Learning to transfer: Unsupervised domain translation via meta-learning. In: AAAI, pp 11507–11514

  33. Zhang W, Zhang P, Zhang B, Wang X, Wang D (2023) A collaborative transfer learning framework for cross-domain recommendation. In: Singh AK, Sun Y, Akoglu L, Gunopulos D, Yan X, Kumar R, Ozcan F, Ye J (eds) KDD, pp 5576–5585

  34. Tay Y, Dehghani M, Bahri D, Metzler D (2023) Efficient transformers: A survey. ACM Comput Surv 55(6):109–110928

    Article  Google Scholar 

  35. Tang J, Wang K (2018) Ranking distillation: Learning compact ranking models with high performance for recommender system. In: SIGKDD, pp 2289–2298

  36. Rendle S, Freudenthaler C (2014) Improving pairwise learning for item recommendation from implicit feedback. In: Carterette B, Diaz F, Castillo C, Metzler D (eds) WSDM, pp 273–282

  37. Moreira-Matias L, Gama JM, Ferreira M, Mendes-Moreira J, Damas L (2016) Time-evolving o-d matrix estimation using high-speed gps data streams. Expert Syst Appl Int J 44:275–288

    Article  Google Scholar 

  38. Chang Y, Qi J, Liang Y, Tanin E (2023) Contrastive trajectory similarity learning with dual-feature attention. In: 2023 IEEE 39th International conference on data engineering (ICDE), pp 2933–2945. IEEE

Download references

Funding

This work was supported by the National Natural Science Foundation of China (Grant No. 62102276), the Natural Science Foundation of Jiangsu Province (Grant No. BK20210705), China Postdoctoral Science Foundation(Grant No. 2023M732563)and the Natural Science Foundation of Educational Commission of Jiangsu Province, China (Grant No. 21KJD520005)

Author information

Authors and Affiliations

Authors

Contributions

Danling Lai wrote the main manuscript text. Jianfeng Qu, Yu Sang and Xi Chen participated in model design and technical discussion. All contributing authors reviewed the manuscript.

Corresponding authors

Correspondence to Danling Lai or Jianfeng Qu.

Ethics declarations

Competing interests

The authors declared no potential conflicts of interest with respect to the research, authorship, or publication of this article.

Ethical approval

Not applicable.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Lai, D., Qu, J., Sang, Y. et al. Transfer-learning-based representation learning for trajectory similarity search. Geoinformatica (2024). https://doi.org/10.1007/s10707-024-00515-x

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s10707-024-00515-x

Keywords

Navigation