Skip to main content

Discovery of probabilistic nearest neighbors in traffic-aware spatial networks


Travel planning and recommendation have received significant attention in recent years. In this light, we study a novel problem of discovering probabilistic nearest neighbors and planning the corresponding travel routes in traffic-aware spatial networks (TANN queries) to avoid potential time delay/traffic congestions. We propose and study four novel probabilistic TANN queries. Thereinto two queries target at minimizing the travel time, including a congestion-probability threshold query, and a time-delay threshold query, while another two travel-time threshold queries target at minimizing the potential time delay/traffic congestion. We believe that TANN queries are useful in many real applications, such as discovering nearby points of interest and planning convenient travel routes for users, and location based services in general. The TANN queries are challenged by two difficulties: (1) how to define probabilistic metrics for nearest neighbor queries in traffic-aware spatial networks, and (2) how to process these TANN queries efficiently under different query settings. To overcome these challenges, we define a series of new probabilistic metrics and develop four efficient algorithms to compute the TANN queries. The performances of TANN queries are verified by extensive experiments on real and synthetic spatial data.

This is a preview of subscription content, access via your institution.

Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6










  1. Chen, Z., Cafarella, M.J.: Integrating spreadsheet data via accurate and low-effort extraction. In: SIGKDD, pp. 1126–1135 (2014)

  2. Chen, Z., Cafarella, M.J., Jagadish, H.V.: Long-tail vocabulary dictionary extraction from the Web. In: WSDM, pp. 625–634 (2016)

  3. Cao, W., Liu, N., Kong, Q., Feng, H.: Content–based image retrieval using high-dimensional information geometry. Science China Information Sciences 57 (7), 1–11 (2014)

    MathSciNet  MATH  Google Scholar 

  4. Chen, H., Ni, D., Qin, J., Li, S., Yang, X., Wang, T., Heng, P.-A.: Standard plane localization in fetal ultrasound via domain transferred deep neural networks. IEEE J. Biomedical and Health Informatics 19(5), 1627–1636 (2015)

    Article  Google Scholar 

  5. Chen, W.-S., Wang, W., Yang, J., Tang, Y.Y.: Supervised regularization locality-preserving projection method for face recognition. IJWMIP 10, 6 (2012)

    MathSciNet  MATH  Google Scholar 

  6. Dian, Z.: A precise rfid indoor localization system with sensor network assistance. China Communications 12(4), 13–22 (2015)

    Article  Google Scholar 

  7. Dijkstra, E.W.: A note on two problems in connection with graphs. Numer. Math. 1, 269–271 (1959)

    MathSciNet  Article  MATH  Google Scholar 

  8. Du, S., Guo, Y., Sanroma, G., Ni, D., Wu, G., Shen, D.: Building dynamic population graph for accurate correspondence detection. Med. Image Anal. 26 (1), 256–267 (2015)

    Article  Google Scholar 

  9. Dai, M., Sung, C.W.: Achieving high diversity and multiplexing gains in the asynchronous parallel relay network. Trans. Emerging Telecommunications Technologies 24(2), 232–243 (2013)

    Article  Google Scholar 

  10. Ding, B, Yu, J.X., Qin, L.: Finding time-dependent shortest paths over large graphs. In: EDBT, pp. 205–216 (2008)

  11. Guttman, A.: R-trees: a dynamic index structure for spatial searching. In: SIGMOD, pp. 47–57 (1984)

  12. Guo, X., Zhang, D., Wu, K., Ni, L.M.: Modloc: Localizing multiple objects in dynamic indoor environment. IEEE Trans. Parallel Distrib. Syst. 25(11), 2969–2980 (2014)

    Article  Google Scholar 

  13. Huang, X., Cheng, H., Li, R.-H., Qin, L., Yu, J.X.: Top-k structural diversity search in large networks. VLDB J. 24(3), 319–343 (2015)

    Article  Google Scholar 

  14. Hao, J., Leung, H.-F., Ming, Z.: Multiagent reinforcement social learning toward coordination in cooperative multiagent systems. TAAS 9(4), 20:1–20:20 (2015)

    Google Scholar 

  15. Hua, M., Pei, J.: Probabilistic path queries in road networks: traffic uncertainty aware path selection. In: EDBT, pp. 347–358 (2010)

  16. Jensen, C.S., Kolarvr, J., Pedersen, T.B., Timko, I.: Nearest neighbor queries in road networks. In: Proceedings of ACM GIS, pp. 1–8 (2003)

  17. Jagadish, H., Ooi, B., Tan, K.-L., Yu, C., Zhang, R.: idistance: An adaptive b+-tree based indexing method for nearest neighbour search. TODS 30(2), 364–397 (2005)

    Article  Google Scholar 

  18. Li, F., Cheng, D., Hadjieleftheriou, M., Kollios, G., Teng, S.-H.: On trip planning queries in spatial databases. In: Proceedings of SSTD, pp. 273–290 (2005)

  19. Lin, J.C.-W., Gan, W., Fournier-Viger, P., Hong, T.-P., Tseng, V.S.: Efficient algorithms for mining high-utility itemsets in uncertain databases. Knowl.-Based Syst. 96, 171–187 (2016)

    Article  Google Scholar 

  20. Lin, X.-H., Kwok, Y.-K., Wang, H., Xie, N.: A game theoretic approach to balancing energy consumption in heterogeneous wireless sensor networks. Wirel. Commun. Mob. Comput. 15(1), 170–191 (2015)

    Article  Google Scholar 

  21. Luo, J., Li, X., Chen, M.-R., Liu, H.: A novel hybrid shuffled frog leaping algorithm for vehicle routing problem with time windows. Inf. Sci. 316, 266–292 (2015)

    Article  Google Scholar 

  22. Li, B., Li, R.-H., King, I., Lyu, M.R., Yu, J.X.: A topic-biased user reputation model in rating systems. Knowl. Inf. Syst. 44(3), 581–607 (2015)

    Article  Google Scholar 

  23. Li, J., Li, X., Yang, B., Sun, X.: Segmentation-based image copy-move forgery detection scheme. IEEE Trans. Inf. Forensics Secur. 10(3), 507–518 (2015)

    Article  Google Scholar 

  24. Luo, X., Ming, Z., You, Z., Li, S., Xia, Y., Leung, H.: Improving network topology-based protein interactome mapping via collaborative filtering. Knowl.-Based Syst. 90, 23–32 (2015)

    Article  Google Scholar 

  25. Li, B., Tan, S., Wang, M., Huang, J.: Investigation on cost assignment in spatial image steganography. IEEE Trans. Inf. Forensics Secur. 9(8), 1264–1277 (2014)

    Article  Google Scholar 

  26. Li, H., Wu, K., Zhang, Q., Ni, L.M.: CUTS: improving channel utilization in both time and spatial domain in wlans. IEEE Trans. Parallel Distrib. Syst. 25(6), 1413–1423 (2014)

    Article  Google Scholar 

  27. Li, B., Wang, M., Li, X., Tan, S., Huang, J.: A strategy of clustering modification directions in spatial image steganography. IEEE Trans. Inf. Forensics Secur. 10(9), 1905–1917 (2015)

    Article  Google Scholar 

  28. Lai, Z., Xu, Y., Chen, Q., Yang, J., Zhang, D.: Multilinear sparse principal component analysis. IEEE Trans. Neural Netw Learning Syst. 25(10), 1942–1950 (2014)

    Article  Google Scholar 

  29. Li, R.-H., Yu, J.X., Huang, X., Cheng, H., Shang, Z.: Measuring the impact of MVC attack in large complex networks. Inf. Sci. 278, 685–702 (2014)

    MathSciNet  Article  MATH  Google Scholar 

  30. Li, R.-H., Yu, J.X.: Triangle minimization in large networks. Knowl. Inf. Syst. 45(3), 617–643 (2015)

    Article  Google Scholar 

  31. Mao, R., Xu, H., Wu, W., Li, J., Li, Y., Lu, M.: Overcoming the challenge of variety: big data abstraction, the next evolution of data management for AAL communication systems. IEEE Commun. Mag. 53(1), 42–47 (2015)

    Article  Google Scholar 

  32. Mao, R., Zhang, P., Li, X., Xi, L., Lu, M.: Pivot selection for metric-space indexing. Int. J. Mach. Learn. Cybern. 7(2), 311–323 (2016)

    Article  Google Scholar 

  33. Ma, T., Zhou, J., Tang, M., Tian, Y., Al-Dhelaan, A., Al-Rodhaan, M., Lee, S.: Social network and tag sources based augmenting collaborative recommender system. IEICE Trans. 98-D(4), 902–910 (2015)

    Article  Google Scholar 

  34. Qin, Y., Zhang, S., Zhu, X., Zhang, J., Zhang, C.: Semi-parametric optimization for missing data imputation. Appl. Intell. 27(1), 79–88 (2007)

    Article  MATH  Google Scholar 

  35. Rong, X., Chen, Z., Mei, Q., Adar, E.: Egoset: Exploiting word ego-networks and user-generated ontology for multifaceted set expansion. In: WSDM, pp. 645–654 (2016)

  36. Roussopoulos, N., Kelley, S., Vincent, F.: Nearest neighbor queries. In: Proceedings of SIGMOD, pp. 71–79 (1995)

  37. Shang, S., Bo, Y., Ke, D., Xie, K., Zhou, X.: Finding the most accessible locations: reverse path nearest neighbor query in road networks. In: ACM SIGSPATIAL, pp. 181–190 (2011)

  38. Shang, S., Chen, L., Wei, Z., Jensen, C.S., Wen, J.-R., Kalnis, P.: Collective travel planning in spatial networks. IEEE Trans. Knowl. Data Eng. 28(5), 1132–1146 (2016)

    Article  Google Scholar 

  39. Shang, S., Ding, R., Zheng, K., Jensen, C.S., Kalnis, P, Zhou, X.: Personalized trajectory matching in spatial networks. VLDB J. 23(3), 449–468 (2014)

    Article  Google Scholar 

  40. Shang, S., Ding, R., Bo, Y., Xie, K., Zheng, K., Kalnis, P.: User oriented trajectory search for trip recommendation. In: EDBT, pp. 156–167 (2012)

  41. Shang, S., Lu, H., Pedersen, T.B., Xie, X.: Modeling of traffic-aware travel time in spatial networks. In: MDM, pp. 247–250 (2013)

  42. Shang, S., Lu, H., Pedersen, T.B., Xie, X.: Finding traffic-aware fastest paths in spatial networks. In: SSTD, pp. 128–145 (2013)

  43. Shi, Y., Long, P., Xu, K., Huang, H., Xiong, Y.: Data-driven contextual modeling for 3d scene understanding. Comput. Graph. 55, 55–67 (2016)

    Article  Google Scholar 

  44. Shang, S., Liu, J., Zheng, K., Lu, H., Pedersen, T.B., Wen, J.-R.: Planning unobstructed paths in traffic-aware spatial networks. GeoInformatica 19(4), 723–746 (2015)

    Article  Google Scholar 

  45. Shang, S., Wei, Z., Wen, J.-R., Zhu, S.: Probabilistic nearest neighbor query in traffic-aware spatial networks. In: APWeb, pp. 3–14 (2016)

  46. Shang, S., Zheng, K., Jensen, C.S., Yang, B., Kalnis, P., Li, G., Wen, J.-R.: Discovery of path nearby clusters in spatial networks. IEEE Trans. Knowl. Data Eng. 27(6), 1505–1518 (2015)

    Article  Google Scholar 

  47. Tan, L., Lin, F., Wang, H.: Adaptive comprehensive learning bacterial foraging optimization and its application on vehicle routing problem with time windows. Neurocomputing 151, 1208–1215 (2015)

    Article  Google Scholar 

  48. Tao, Y., Papadias, D., Shen, Q.: Continuous nearest neighbor search. In: Proceedings of VLDB, pp. 287–298 (2002)

  49. Wang, J., Feng, J., Xu, C., Yi, Z., Feng, J.: Pinning synchronization of nonlinearly coupled complex networks with time-varying delays using m-matrix strategies. Neurocomputing 177, 89–97 (2016)

    Article  Google Scholar 

  50. Wang, J., Huang, J.Z., Guo, J., Lan, Y.: Recommending high-utility search engine queries via a query-recommending model. Neurocomputing 167, 195–208 (2015)

    Article  Google Scholar 

  51. Wu, R., Li, C., Lu, D.: Power minimization with derivative constraints for high dynamic GPS interference suppression. Science China Information Sciences 55(4), 857–866 (2012)

    MathSciNet  Article  Google Scholar 

  52. Wen, X., Shao, L., Xue, Y., Fang, W.: A rapid learning algorithm for vehicle classification. Inf. Sci. 295, 395–406 (2015)

    Article  Google Scholar 

  53. Xu, L., Hu, Q., Hung, E., Chen, B., Xu, T., Liao, C.: Large margin clustering on uncertain data by considering probability distribution similarity. Neurocomputing 158, 81–89 (2015)

    Article  Google Scholar 

  54. Xia, Z., Wang, X., Sun, X., Wang, B.: Steganalysis of least significant bit matching using multi-order differences. Security and Communication Networks 7 (8), 1283–1291 (2014)

    Article  Google Scholar 

  55. Xie, S., Wang, Y.: Construction of tree network with limited delivery latency in homogeneous wireless sensor networks. Wirel. Pers. Commun. 78(1), 231–246 (2014)

    Article  Google Scholar 

  56. Xia, Z., Wang, X., Sun, X., Liu, Q., Xiong, N.: Steganalysis of LSB matching using differences between nonadjacent pixels. Multimedia Tools Appl. 75(4), 1947–1962 (2016)

    Article  Google Scholar 

  57. Yang, X.S., Pei, J., Sun, W.: Elastic image registration using hierarchical spatially based mean shift. Comput. Biol. Med. 43(9), 1086–1097 (2013)

    Article  Google Scholar 

  58. Zhou, F., Jiao, R.J., Lei, B.Y.: A linear threshold-hurdle model for product adoption prediction incorporating social network effects. Inf. Sci. 307, 95–109 (2015)

    Article  Google Scholar 

  59. Zhu, X., Li, X., Zhang, S.: Block-row sparse multiview multilabel learning for image classification. IEEE Trans Cybernetics 46(2), 450–461 (2016)

    Article  Google Scholar 

  60. Zhu, X., Li, X., Zhang, S., Ju, C., Wu, X.: Robust joint graph sparse coding for unsupervised spectral feature selection (2016)

  61. Zhao, Q., Liew, S.C., Zhang, S., Yu, Y.: Distance-based location management utilizing initial position for mobile communication networks. IEEE Trans. Mob. Comput. 15(1), 107–120 (2016)

    Article  Google Scholar 

  62. Zhang, D., Lu, K., Mao, R.: A precise rfid indoor localization system with sensor network assistance. China Communications, 1–10 (2015)

  63. Zhou, Z., Wang, Y., Wu, Q.M.J., Yang, C.-N., Sun, X.: Effective and efficient global context verification for image copy detection. IEEE Trans. Inf. Forensics Secur. 12(1), 48–63 (2017)

    Article  Google Scholar 

  64. Zhu, Z., Xiao, J., Li, J.-Q., Wang, F., Zhang, Q.: Global path planning of wheeled robots using multi-objective memetic algorithms. Integrated Computer-Aided Engineering 22(4), 387–404 (2015)

    Article  Google Scholar 

  65. Zhu, X., Zhang, S., Jin, Z., Zhang, Z., Xu, Z.: Missing value estimation for mixed-attribute data sets. IEEE Trans. Knowl. Data Eng. 23(1), 110–121 (2011)

    Article  Google Scholar 

Download references


This work is supported by the National Natural Science Foundation of China (NSFC. 61402532, NSFC. 41371386, and NSFC.61373147), Beijing Nova Program (xx2016078), the Science and Technology Planning Project of Fujian Province (No.2016Y0079), Guangdong Provincial Big Data Collaborative Innovation Center, Shenzhen University, and the Open Research Fund Program of Shenzhen Key Laboratory of Spatial Smart Sensing and Services (Shenzhen University).

Author information

Authors and Affiliations


Corresponding author

Correspondence to Minhua Lu.

Rights and permissions

Reprints and Permissions

About this article

Verify currency and authenticity via CrossMark

Cite this article

Shang, S., Zhu, S., Guo, D. et al. Discovery of probabilistic nearest neighbors in traffic-aware spatial networks. World Wide Web 20, 1135–1151 (2017).

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI:


  • Traffic-aware spatial networks
  • Probabilistic nearest neighbor
  • Efficiency
  • Spatio-temporal databases