Predicting Duration of Traffic Accidents Based on Ensemble Learning

  • Lina Shan
  • Zikun Yang
  • Huan Zhang
  • Ruyi Shi
  • Li KuangEmail author
Conference paper
Part of the Lecture Notes of the Institute for Computer Sciences, Social Informatics and Telecommunications Engineering book series (LNICST, volume 268)


Traffic congestion can be divided into recurrent congestion and accidental congestion, and the latter one is usually caused by traffic accidents. It is of great significance to predict the duration of traffic accidents accurately and transfer the results to drivers on the road in time. Most of the existing works utilize traditional, single machine learning model to predict the duration of accident, while the accuracy is not satisfying. In this paper, we firstly construct and extract features from the accident records including description, location, as well as some external information such as weather. We then divide the duration into multiple periods, corresponding to multiple categories. In order to improve the prediction precision of rare categories, we convert the multi-class classification problem into a binary classification problem, constructing multiple XGBoost binary classifiers which are restricted by F1 (harmonic mean) evaluation index. Finally, in order to improve the overall accuracy further, the classification results are integrated by using artificial neural networks. The experiment is conducted on real datasets in Xiamen and employs mean absolute percentage error (MAPE) and root-mean-square error (RMSE) as indicators. The experimental results show the effectiveness of the proposed method and show better performance in comparison with traditional models.


The duration of traffic accidents XGBoost Artificial neural networks 



The research is supported by National Natural Science Foundation of China (No. 61772560), National Key R&D program of China (No. 2018YFB1003800).


  1. 1.
    Giuliano, G.: Incident characteristics, frequency, and duration on a high volume urban freeway. Transp. Res. A: Gen. 23(5), 387–396 (1989)CrossRefGoogle Scholar
  2. 2.
    Golob, T.F., Recker, W.W., Leonard, J.D.: An analysis of the severity and incident duration of truck-involved freeway accidents. Accid. Anal. Prev. 19(5), 375–395 (1987)CrossRefGoogle Scholar
  3. 3.
    Skabardonis, A., Petty, K., Varaiya, P.: Los Angeles I-10 field experiment: incident patterns. J. Transp. Res. Board 1683, 22–30 (1999)CrossRefGoogle Scholar
  4. 4.
    Jones, B., Janssen, L., Mannering, F.: Analysis of the frequency and duration of freeway accidents in Seattle. Accid. Anal. Prev. 23(4), 239–255 (1991)CrossRefGoogle Scholar
  5. 5.
    Nam, D., Mannering, F.: An exploratory hazard-based analysis of highway incident duration. Transp. Res. A: Policy Pract. 34(2), 85–102 (2000)Google Scholar
  6. 6.
    Chung, Y.: Development of an accident duration prediction model on the Korean freeway systems. Accid. Anal. Prev. 42(1), 282–289 (2010)CrossRefGoogle Scholar
  7. 7.
    Kang, G., Fang, S.-E.: Applying survival analysis approach to traffic incident duration prediction. In: First International Conference on Transportation Information and Safety (ICTIS), Wuhan, China, pp. 1523–1531 (2011)Google Scholar
  8. 8.
    Alkaabi, A.M.S., Dissanayake, D., Bird, R.: Analyzing clearance time of urban traffic accidents in Abu Dhabi, United Arab Emirates, with hazard-based duration modeling method. Transp. Res. Rec. 2229, 46–54 (2011)CrossRefGoogle Scholar
  9. 9.
    Hojati, A.T., Ferreira, L., Washington, S., Charlesa, P.: Hazard based models for freeway traffic incident duration. Accid. Anal. Prev. 52, 171–181 (2013)CrossRefGoogle Scholar
  10. 10.
    Li, R., Guo, M.: Competing risks analysis on traffic accident duration time. J. Adv. Transp. 49(3), 402–415 (2015)CrossRefGoogle Scholar
  11. 11.
    Zhan, C., Gan, A., Hadi, M.: Prediction of lane clearance time of freeway incidents using the M5P tree algorithm. IEEE Trans. Intell. Transp. Syst. 12(4), 1549–1557 (2011)CrossRefGoogle Scholar
  12. 12.
    Yang, H., Shen, L., Xiang, Y., et al.: Freeway incident duration prediction using Bayesian network. In: 2017 4th International Conference on Transportation Information and Safety (ICTIS), pp. 974–980. IEEE (2017)Google Scholar
  13. 13.
    Weng, J., Qiao, W., Qu, X., et al.: Cluster-based lognormal distribution model for accident duration. Transportmetrica 11(4), 345–363 (2015)Google Scholar
  14. 14.
    Ma, X., Ding, C., Luan, S., et al.: Prioritizing influential factors for freeway incident clearance time prediction using the gradient boosting decision trees method. IEEE Trans. Intell. Transp. Syst. 18(9), 2303–2310 (2017)CrossRefGoogle Scholar
  15. 15.
    Pereira, F.C., Rodrigues, F., Ben-Akiva, M.: Text analysis in incident duration prediction. Transp. Res. Part C 37(10), 177–192 (2013)CrossRefGoogle Scholar
  16. 16.
    Yu, B., Wang, Y.T., Yao, J.B., et al.: A comparison of the performance of ANN and SVM for the prediction of traffic accident duration. Neural Netw. World 26(3), 271 (2016)CrossRefGoogle Scholar
  17. 17.
    Khattak, A.J., Liu, J., Wali, B., et al.: Modeling traffic incident duration using quantile regression. Transp. Res. Rec. J. Transp. Res. Board 2554, 139–148 (2016)CrossRefGoogle Scholar
  18. 18.
    He, Q., Kamarianakis, Y., Jintanakul, K., et al.: Incident duration prediction with hybrid tree-based quantile regression. In: Ukkusuri, S., Ozbay, K. (eds.) Advances in Dynamic Network Modeling in Complex Transportation Systems, pp. 287–305. Springer, New York (2013). Scholar
  19. 19.
    Peeta, S., Ramos, J.L., Gedela, S.: Providing real-time traffic advisory and route guidance to manage Borman incidents on-line using the hoosier helper program. Joint Transportation Research Program, Indiana Dept. Transp., Purdue Univ., West Lafayette, IN, USA. Technical report, 15 2000.
  20. 20.
    Vlahogianni, E.I., Karlaftis, M.G.: Fuzzy-entropy neural network freeway incident duration modeling with single and competing uncertainties. Comput. Aided Civil Infrastruct. Eng. 28(6), 420–433 (2013)CrossRefGoogle Scholar
  21. 21.
    Lee, Y., Wei, C.-H.: A computerized feature selection method using genetic algorithms to forecast freeway accident duration times. Comput. Aided Civil Infrastruct. Eng. 25, 132–148 (2010)CrossRefGoogle Scholar
  22. 22.
    Park, H., Haghani, A., Zhang, X.: Interpretation of Bayesian neural networks for predicting the duration of detected incidents. J. Intell. Transp. Syst. 20(4), 385–400 (2016)CrossRefGoogle Scholar

Copyright information

© ICST Institute for Computer Sciences, Social Informatics and Telecommunications Engineering 2019

Authors and Affiliations

  • Lina Shan
    • 1
  • Zikun Yang
    • 1
  • Huan Zhang
    • 1
  • Ruyi Shi
    • 1
  • Li Kuang
    • 1
    Email author
  1. 1.Central South UniversityChangshaChina

Personalised recommendations