Retrieving k-Nearest Neighboring Trajectories by a Set of Point Locations

  • Lu-An Tang
  • Yu Zheng
  • Xing Xie
  • Jing Yuan
  • Xiao Yu
  • Jiawei Han
Part of the Lecture Notes in Computer Science book series (LNCS, volume 6849)


The advance of object tracking technologies leads to huge volumes of spatio-temporal data accumulated in the form of location trajectories. Such data bring us new opportunities and challenges in efficient trajectory retrieval. In this paper, we study a new type of query that finds the k Nearest Neighboring Trajectories (k-NNT) with the minimum aggregated distance to a set of query points. Such queries, though have a broad range of applications like trip planning and moving object study, cannot be handled by traditional k-NN query processing techniques that only find the neighboring points of an object. To facilitate scalable, flexible and effective query execution, we propose a k-NN trajectory retrieval algorithm using a candidate-generation-and-verification strategy. The algorithm utilizes a data structure called global heap to retrieve candidate trajectories near each individual query point. Then, at the verification step, it refines these trajectory candidates by a lower-bound computed based on the global heap. The global heap guarantees the candidate’s completeness (i.e., all the k-NNTs are included), and reduces the computational overhead of candidate verification. In addition, we propose a qualifier expectation measure that ranks partial-matching candidate trajectories to accelerate query processing in the cases of non-uniform trajectory distributions or outlier query locations. Extensive experiments on both real and synthetic trajectory datasets demonstrate the feasibility and effectiveness of proposed methods.


Query Processing Query Point Outlier Location Query Size Trajectory Dataset 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
  2. 2.
  3. 3.
  4. 4.
    Frentzos, E., Gratsias, K., Pelekis, N., Theodoridis, Y.: Nearest Neighbor Search on Moving Object Trajectories. In: Anshelevich, E., Egenhofer, M.J., Hwang, J. (eds.) SSTD 2005. LNCS, vol. 3633, pp. 328–345. Springer, Heidelberg (2005)CrossRefGoogle Scholar
  5. 5.
    Papadias, D., Tao, Y., Mouratidis, K., Hui, K.: Aggregate Nearest Neighbor Queries in Spatial Databases. ACM TODS 30(2), 529–576Google Scholar
  6. 6.
    Hjaltason, G.R., Samet, H.: Distance browsing in spatial databases. ACM TODS 24(2), 265–318 (1999)CrossRefGoogle Scholar
  7. 7.
  8. 8.
    Yuan, J., Zheng, Y., Zhang, C., Xie, W., Xie, X., Sun, G., Huang, Y.: T-Drive: Driving Directions Based on Taxi Trajectories. In: ACM SIGSPATIAL GIS (2010)Google Scholar
  9. 9.
    Chen, L., Ng, R.: On the marriage of lp-norms and edit distance. In: VLDB (2004)Google Scholar
  10. 10.
    Tang, L., Yu, X., Kim, S., Han, J., et al.: Tru-Alarm: Trustworthiness Analysis of Sensor Networks in Cyber-Physical Systems. In: ICDM (2010)Google Scholar
  11. 11.
    Roussopoulos, N., Kelley, S., Vincent, F.: Nearest neighbor queries. In: SIGMOD (1995)Google Scholar
  12. 12.
    Fagin, R.: Combining fuzzy information from multiple systems. J. Comput. System Sci. 58, 83–89 (1999)CrossRefzbMATHGoogle Scholar
  13. 13.
    Sherkat, R., Rafiei, D.: On efficiently searching trajectories and archival data for historical similarities. In: PVLDB (2008)Google Scholar
  14. 14.
    Fagin, R., Lotem, A.: Optimal aggregation algorithms for middleware. In: PODS (2001)Google Scholar
  15. 15.
    Zheng, V.W., Zheng, Y., Xie, X., Yang, Q.: Collaborative location and activity recommendations with GPS history data. In: WWW (2010)Google Scholar
  16. 16.
    Zheng, Y., Zhang, L., Xie, X., Ma, W.Y.: Mining interesting locations and travel sequences from GPS trajectories. In: WWW (2009)Google Scholar
  17. 17.
    Zheng, Y., Wang, L., Xie, X., Ma, W.Y.: GeoLife: Managing and understanding your past life over maps. In: MDM (2008)Google Scholar
  18. 18.
    Zheng, Y., Xie, X., Ma, W.Y.: GeoLife: A Collaborative Social Networking Service among User, location and trajectory. IEEE Data Engineering Bulletin 33(2), 32–40Google Scholar
  19. 19.
    Zheng, Y., Chen, Y., Xie, X., Ma, W.Y.: GeoLife2.0: A Location-Based Social Networking Service. In: MDM (2009)Google Scholar
  20. 20.
    Chen, Z., Shen, H.T., Zhou, X., Zheng, Y., Xie, X.: Searching trajectories by locations: an efficiency study. In: SIGMOD (2010)Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 2011

Authors and Affiliations

  • Lu-An Tang
    • 1
    • 2
  • Yu Zheng
    • 2
  • Xing Xie
    • 2
  • Jing Yuan
    • 3
  • Xiao Yu
    • 1
  • Jiawei Han
    • 1
  1. 1.Computer Science DepartmentUIUCUSA
  2. 2.Microsoft Research AsiaChina
  3. 3.University of Science and Technology of ChinaChina

Personalised recommendations