YU Bin, WU Shan-hua, WANG Ming-hua, ZHAO Zhi-hong. K-nearest neighbor model of short-term traffic flow forecast[J]. Journal of Traffic and Transportation Engineering, 2012, 12(2): 105-111. doi: 10.19818/j.cnki.1671-1637.2012.02.015
Citation: YU Bin, WU Shan-hua, WANG Ming-hua, ZHAO Zhi-hong. K-nearest neighbor model of short-term traffic flow forecast[J]. Journal of Traffic and Transportation Engineering, 2012, 12(2): 105-111. doi: 10.19818/j.cnki.1671-1637.2012.02.015

K-nearest neighbor model of short-term traffic flow forecast

doi: 10.19818/j.cnki.1671-1637.2012.02.015
More Information
  • Author Bio:

    YU Bin (1977-), male, associate professor, PhD, +86-411-84726756, yubinyb@163.com

  • Received Date: 2011-10-29
  • Publish Date: 2012-04-25
  • In order to accurately forecast the short-term traffic flow, a K-nearest neighbor(K-NN) model was set up.The time and space parameters of the K-NN model were analyzed.Based on four different combinations of state vectors, the time dimension model, upstream section-time dimension model, downstream section-time dimension model and space-time dimension model were proposed.The four different models were validated by using the GPS data from taxis of Guiyang.Analysis result indicates that the K-NN model with both space and time parameters has highest forecasting precision than the other three models, and its average prediction error is about 7.26%.The distance measuring mode with exponent weight has higher accuracy in choosing the nearest neighbors, and its average prediction error is about 5.57%.The predicting performance of improved K-NN model with exponent weight and space-time parameters is best compared with the artificial neural network model and the historical average model, and its average prediction error is only 9.43%.So the improved K-NN model is an effective way for forecasting short-term traffic flow.

     

  • loading
  • [1]
    ZHANG Xiao-li, LU Hua-pu. Non-parametric regression and application for short-term traffic flow forecasting[J]. Journal of Tsinghua University: Science and Technology, 2009, 49(9): 1471-1475. (in Chinese). doi: 10.3321/j.issn:1000-0054.2009.09.011
    [2]
    LIU Jing, GUAN Wei. A summary of traffic flow forecasting methods[J]. Journal of Highway and Transportation Research and Development, 2004, 21(3): 82-85. (in Chinese). http://www.cnki.com.cn/Article/CJFDTOTAL-GLJK2020S1025.htm
    [3]
    ZHU Shun-ying, WANG Hong, LI Guan-shou. The ARIMA model used in forecasting of traffic volume in short interval on the link[J]. Journal of Chongqing Jiaotong University, 2003, 22(1): 76-77, 95. (in Chinese). http://www.cnki.com.cn/Article/CJFDTOTAL-CQJT200301019.htm
    [4]
    OKUTANI I, STEPHANEDES Y J. Dynamic prediction of traffic volume through Kalman filtering theory[J]. Transportation Research Part B: Methodological, 1984, 18(l): 1-11.
    [5]
    NIE Pei-lin, YU Zhi, HE Zhao-cheng. Constrained Kalman filter combined predictor for short-term traffic flow[J]. Journal of Traffic and Transportation Engineering, 2008, 8(5): 86-90. (in Chinese). http://transport.gfscw.cn/article/id/200805017
    [6]
    SONG Guo-jie, HU Cheng, XIE Kun-qing, et al. Process neural network modeling for real time short-term traffic flow prediction[J]. Journal of Traffic and Transportation Engineering, 2009, 9(5): 73-77. (in Chinese). http://transport.gfscw.cn/article/id/200905013
    [7]
    SMITH B L, WILLIAMS B M, OSWALD R K. Comparison of parametric and nonparametric models for traffic flow forecasting[J]. Transportation Research Part C: Emerging Technologies, 2002, 10(4): 303-321. doi: 10.1016/S0968-090X(02)00009-8
    [8]
    HSU C W, LIN C J. A comparison of methods for multi-class support vector machines[J]. IEEE Transactions on Neural Networks, 2002, 13(2): 415-425. doi: 10.1109/72.991427
    [9]
    XU Qi-hua, YANG Rui. Traffic flow prediction using sup-port vector machine based method[J]. Journal of Highway and Transportation Research and Development, 2005, 22(12): 131-134. (in Chinese). http://www.cnki.com.cn/Article/CJFDTOTAL-GLJK200512033.htm
    [10]
    GAN Hong-cheng, WANG Qing, FAN Bing-quan. Travel time prediction based on macroscopic traffic flow models[J]. Journal of University of Shanghai for Science and Technology, 2008, 30(5): 409-413. (in Chinese). http://www.cnki.com.cn/Article/CJFDTOTAL-HDGY200805002.htm
    [11]
    WENG Jian-cheng, RONG Jian, REN Fu-tian, et al. Non-parametric regression model based short-term prediction for expressway travel speed[J]. Journal of Highway and Trans-portation Research and Development, 2007, 24(3): 93-97, 106. (in Chinese). http://www.cnki.com.cn/Article/CJFDTOTAL-GLJK200703021.htm
    [12]
    ZHANG Xiao-li, HE Guo-guang, LU Hua-pu. Short-term traffic flow forecasting based on K-nearest neighbors non-parametric regression[J]. Journal of Systems Engineering, 2009, 24(2): 178-183. (in Chinese). http://www.cnki.com.cn/Article/CJFDTOTAL-XTGC200902009.htm
    [13]
    DAVIS G A, NIHAN N L. Nonparametric regression and short-term freeway traffic forecasting[J]. Journal of Trans-portation Engineering, 1991, 117(2): 178-188.
    [14]
    ZHANG Tao, CHEN Xian, XIE Mei-ping, et al. K-NN based nonparametric regression method for short-term traffic flow forecasting[J]. Systems Engineering—Theory and Practice, 2010, 30(2): 376-384. (in Chinese). http://www.cnki.com.cn/Article/CJFDTOTAL-XTLL201002026.htm
    [15]
    SMITH B L, DEMETSKY M J. Traffic flow forecasting: comparison of modeling approaches[J]. Journal of Transpor-tation Engineering, 1997, 123(4): 261-266.
    [16]
    YU Bin, LAM W H K, TAM M L. Bus arrival time predic-tion at bus stop with multiple routes[J]. Transportation Research Part C: Emerging Technologies, 2011, 19(6): 1157-1170.

Catalog

    Article Metrics

    Article views (2462) PDF downloads(881) Cited by()
    Related

    /

    DownLoad:  Full-Size Img  PowerPoint
    Return
    Return