Optimization study of pruning strategy based on KNN trajectory similarity query
Abstract
With the development of GPS positioning technology, a large amount of spatiotemporal trajectory data has been generated. Due to the complex structure of trajectory data, which has irregular spatial shapes and continuous temporal sequence attributes, querying massive trajectory data poses certain challenges. The pruning strategy of existing trajectory similarity query methods is not very effective. Even after pruning operations, there are still a large number of trajectories that need to undergo distance calculations to confirm whether they are similar trajectories. This paper proposes multiple local pruning optimization schemes, which maximally reduce the number of trajectories in the candidate set. Specifically, it starts with region pruning in the index space, eliminating index spaces with distances greater than the maximum similarity distance from the query trajectory. Then, it performs distance pruning between trajectories, removing trajectories that do not meet the distance conditions. Finally, it adds a termination condition: when the distance between the current index space and the query trajectory is greater than the maximum similarity distance and the number of trajectories in the result set is K, the loop is exited, and the query process ends. Tests on real datasets demonstrate that the KTSS method outperforms current algorithms of the same type.
References
- J. A. Laval and J.-P. Lebacque, “A review of urban traffic flow models,” Mathematical and computer modelling, vol. 49, no. 3–4, pp. 413–442, 2009.
- R. Baldacci, A. Mingozzi, and R. Roberti, “A survey of routing problems in logistics,” European Journal of Operational Research, vol. 202, no. 1, pp. 1–17, 2010.
- A. Caragliu, C. Del Bo, and P. Nijkamp, “Smart city: Definitions, dimensions, performance, and initiatives,” Journal of Urban Technology, vol. 18, no. 2, pp. 65–82, 2011.
- P. Toth and D. Vigo, “Vehicle routing problems: Formulations and recent advances,” European Journal of Operational Research, vol. 231, no. 1, pp. 1–17, 2013.
- T. Dey, M. Quddus, and M. M. Rashid, “Smart urban mobility system: A review,” IEEE Transactions on Intelligent Transportation Systems, vol. 21, no. 7, pp. 2969–2993, 2020.
- L. George, “Apache HBase: A distributed, scalable big data store,” in ApacheCon US, 2011.
- S. Salvador and P. Chan, “Toward accurate dynamic time warping in linear time and space,” Intelligent Data Analysis, vol. 11, no. 5, pp. 561–580, 2007.
- H. He et al., “Trass: Efficient trajectory similarity search based on key-value data stores,” in 2022 IEEE 38th international conference on data engineering (ICDE), IEEE, 2022, pp. 2306–2318.
- Y. Zheng, “Trajectory data mining: An overview,” ACM Transactions on Intelligent Systems and Technology, vol. 6, no. 3, pp. 1–41, 2015.
- J. Yuan, Y. Zheng, X. Xie, and G. Sun, “Driving with knowledge from the physical world,” ACM, p. 316, 2011.
- Z. Shang, G. Li, and Z. Bao, “DITA: Distributed in-memory trajectory analytics,” in The 2018 international conference, 2018.
- D. Xie, F. Li, and J. M. Phillips, “Distributed trajectory similarity search,” Proceedings of the Vldb Endowment, vol. 10, no. 11, pp. 1478–1489, 2017.
- R. Li et al., “Just: Jd urban spatio-temporal data engine,” in 2020 IEEE 36th international conference on data engineering (ICDE), IEEE, 2020, pp. 1558–1569.