Skip to main content
Log in

Algorithms for constrained k-nearest neighbor queries over moving object trajectories

  • Published:
GeoInformatica Aims and scope Submit manuscript

Abstract

An important query for spatio-temporal databases is to find nearest trajectories of moving objects. Existing work on this topic focuses on the closest trajectories in the whole data space. In this paper, we introduce and solve constrained k-nearest neighbor (CkNN) queries and historical continuous CkNN (HCCkNN) queries on R-tree-like structures storing historical information about moving object trajectories. Given a trajectory set D, a query object (point or trajectory) q, a temporal extent T, and a constrained region CR, (i) a CkNN query over trajectories retrieves from D within T, the k (≥ 1) trajectories that lie closest to q and intersect (or are enclosed by) CR; and (ii) an HCCkNN query on trajectories retrieves the constrained k nearest neighbors (CkNNs) of q at any time instance of T. We propose a suite of algorithms for processing CkNN queries and HCCkNN queries respectively, with different properties and advantages. In particular, we thoroughly investigate two types of CkNN queries, i.e., CkNNP and CkNNT, which are defined with respect to stationary query points and moving query trajectories, respectively; and two types of HCCkNN queries, namely, HCCkNNP and HCCkNNT, which are continuous counterparts of CkNNP and CkNNT, respectively. Our methods utilize an existing data-partitioning index for trajectory data (i.e., TB-tree) to achieve low I/O and CPU cost. Extensive experiments with both real and synthetic datasets demonstrate the performance of the proposed algorithms in terms of efficiency and scalability.

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
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15
Fig. 16
Fig. 17
Fig. 18
Fig. 19
Fig. 20
Fig. 21
Fig. 22
Fig. 23
Fig. 24

Similar content being viewed by others

Notes

  1. A preliminary work has been published in DASFAA’08 as a short paper [14], in which the concept of constrained kNN (CkNN) search over moving objects trajectories has been introduced. However, due to the space limitation, we only managed to present the basic idea, but not the details, of CkNN query processing. In addition, the concept of historical continuous constrained kNN search on moving objects trajectories has not been defined in that work.

  2. The URL of the R-tree Portal is http://www.rtreeportal.org/.

References

  1. Arumugam S, Jermaine C (2006) Closest-point-of-approach join for moving object histories. in Proc. of ICDE, p. 86

  2. Beckmann N, Kriegel H-P, Schneider R, Seeger B. (1990) The R*-tree: An efficient and robust access method for points and rectangles. in Proc. of ACM SIGMOD, pp 322–331

  3. Benetis R, Jensen CS, Karciauskas G, Saltenis S (2002) Nearest neighbor and reverse nearest neighbor queries for moving objects. in Proc. of IDEAS, pp 44–53

  4. Benetis R, Jensen CS, Karciauskas G, Saltenis S (2006) Nearest and reverse nearest neighbor queries for moving objects. VLDB J 15(3):229–249. doi:10.1007/s00778-005-0166-4

    Article  Google Scholar 

  5. Berchtold S, Ertl B, Keim DA, Kriegel H-P, Seidl T (1998) Fast nearest neighbor search in high-dimensional space. in Proc. of ICDE, pp 209–218

  6. Cheung KL, Fu AW-C (1998) Enhanced nearest neighbour search on the R-tree. SIGMOD Rec 27(3):16–21. doi:10.1145/290593.290596

    Article  Google Scholar 

  7. Corral A, Manolopoulos Y, Theodoridis Y, Vassilakopoulos M (2000) Closest pair queries in spatial databases. in Proc. of ACM SIGMOD, pp 189–200

  8. Deng K, Zhou X, Shen H, Xu K, Lin X (2006) Surface k-NN query processing. in Proc. of ICDE, p. 78

  9. Ferhatosmanoglu H, Stanoi I, Agrawal D, Abbadi A (2001) Constrained nearest neighbor queries. in Proc. of SSTD, pp 257–278

  10. Frentzos E, Gratsias K, Pelekis N, Theodoridis Y (2005) Nearest neighbor search on moving object trajectories. in Proc. of SSTD, pp 328–345

  11. Frentzos E, Gratsias K, Pelekis N, Theodoridis Y (2007) Algorithms for nearest neighbor search on moving object trajectories. GeoInformatica 11(2):159–193. doi:10.1007/s10707-006-0007-7

    Article  Google Scholar 

  12. Gao Y, Li C, Chen G, Chen L, Jiang X, Chen C (2007) Efficient k-nearest-neighbor search algorithms for historical moving object trajectories. J Comput Sci Technol 22(2):232–244. doi:10.1007/s11390-007-9030-x

    Article  Google Scholar 

  13. Gao Y, Li C, Chen G, Li Q, Chen C (2007) Efficient algorithms for historical continuous kNN query processing over moving object trajectories. in Proc. of APWeb/WAIM, pp 188–199

  14. Gao Y, Chen G, Li Q, Li C, Chen C (2008 Constrained k-nearest neighbor query processing over moving object trajectories. in Proc. of DASFAA, pp 635–643

  15. Guttman A (1984) R-trees: A dynamic index structure for spatial searching. in Proc. of ACM SIGMOD, pp 47–57

  16. Hjaltason GR, Samet H (1999) Distance browsing in spatial databases. ACM Trans Database Syst 24(2):265–318. doi:10.1145/320248.320255

    Article  Google Scholar 

  17. Iwerks GS, Samet H, Smith K (2003) Continuous k-nearest neighbor queries for continuously moving points with updates. in Proc. of VLDB, pp 512–523

  18. Kollios G, Gunopoulos D, Tsotras V (1999) On indexing mobile objects. in Proc. of ACM PODS, pp 261–272

  19. Korn F, Sidiropoulos N, Faloutsos C, Siegel E, Protopapas Z (1996) Fast nearest neighbor search in medical image databases. in Proc. of VLDB, pp 215–226

  20. Manolopoulos Y, Nanopoulos A, Papadopoulos AN, Theodoridis Y (2005) R-trees: Theory and applications. Springer-Verlag

  21. Mokbel MF, Ghanem TM, Aref WG (2003) Spatio-temporal access methods. IEEE Data Eng Bull 26(2):40–49

    Google Scholar 

  22. Mouratidis K, Hadjieleftheriou M, Papadias D (2005) Conceptual partitioning: an efficient method for continuous nearest neighbor monitoring. in Proc. of ACM SIGMOD, pp 634–645

  23. Mouratidis K, Papadias D, Bakiras S, Tao Y (2005) A threshold-based algorithm for continuous monitoring of k nearest neighbors. IEEE Trans Knowl Data Eng 17(11):1451–1464. doi:10.1109/TKDE.2005.172

    Article  Google Scholar 

  24. Mouratidis K, Yiu M, Papadias D, Mamoulis N (2006) Continuous nearest neighbor monitoring in road networks. in Proc. of VLDB, pp 43–54

  25. Papadias D, Shen Q, Tao Y, Mouratidis K (2004) Group nearest neighbor queries. in Proc. of ICDE, pp 301–312

  26. Papadopoulos AN, Manolopoulos Y (1997) Performance of nearest neighbor queries in R-trees. in Proc. of ICDT, pp 394–408

  27. Pfoser D, Jensen CS, Theodoridis Y (2000) Novel approaches in query processing for moving object trajectories. in Proc. of VLDB, pp 395–406

  28. Raptopoulou K, Papadopoulos AN, Manolopoulos Y (2003) Fast nearest neighbor query processing in moving object databases. GeoInformatica 7(2):113–137. doi:10.1023/A:1023403908170

    Article  Google Scholar 

  29. Roussopoulos N, Kelley S, Vincent F (1995) Nearest neighbor queries. in Proc. of ACM SIGMOD, pp 71–79

  30. Saltenis S, Jensen CS, Leutenegger ST, Lopez MA (2000) Indexing the positions of continuously moving objects. in Proc. of ACM SIGMOD, pp 331–342

  31. Seidl T, Kriegel H-P (1998) Optimal multi-step k-nearest neighbor search. in Proc. of ACM SIGMOD, pp 154–165

  32. Sellis T, Roussopoulos N, Faloutsos C (1987) The R+-tree: A dynamic index for multi-dimensional objects. in Proc. of VLDB, pp 507–518

  33. Song Z, Roussopoulos N (2001) K-nearest neighbor search for moving query point. in Proc. of SSTD, pp 79–96

  34. Tao Y, Papadias D (2001) The MV3R-Tree: A spatio-temporal access method for timestamp and interval queries. in Proc. of VLDB, pp 431–440

  35. Tao Y, Papadias D (2002) Time parameterized queries in spatio-temporal databases. in Proc. of ACM SIGMOD, pp 334–345

  36. Tao Y, Papadias D, Shen Q (2002) Continuous nearest neighbor search. in Proc. of VLDB, pp 287–298

  37. Theodoridis Y, Silva JRO, Nascimento MA (1999) On the generation of spatiotemporal datasets. in Proc. of SSD, pp 147–164

  38. Theodoridis Y, Vazirgiannis M, Sellis TK (1996) Spatio-temporal indexing for large multimedia applications. in Proc. of ICMCS, pp 441–448

  39. Xiong X, Mokbel M, Aref WG (2005) SEA-CNN: Scalable processing of continuous k-nearest neighbor queries in spatio-temporal databases. in Proc. of ICDE, pp 643–654

  40. Yu X, Pu K, Koudas N (2005) Monitoring k-nearest neighbor queries over moving objects. in Proc. of ICDE, pp 631–642

  41. Zheng B, Lee D (2001) Semantic caching in location-dependent query. in Proc. of SSTD, pp 97–116

  42. Zhang J, Mamoulis N, Papadias D, Tao Y (2004) All-nearest-neighbors queries in spatial databases. in Proc. of SSDBM, pp 297–306

Download references

Acknowledgements

We would like to thank Elias Frentzos for his useful feedback on the source-codes of the proposed algorithms in [10, 11]. We also would like to express our gratitude to some anonymous reviewers, for giving valuable and helpful comments to improve the technical quality and presentation of this paper.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Yunjun Gao.

Additional information

This work is an extended version of [14].

Rights and permissions

Reprints and permissions

About this article

Cite this article

Gao, Y., Zheng, B., Chen, G. et al. Algorithms for constrained k-nearest neighbor queries over moving object trajectories. Geoinformatica 14, 241–276 (2010). https://doi.org/10.1007/s10707-009-0084-5

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10707-009-0084-5

Keywords

Navigation