Predicting the Traffic Crashes of Taxi Drivers by Applying the Non-Linear Learning of ANFIS-PSO with M5 Model Tree

Document Type : Research


1 Ph.D. student, Department of Civil Engineering, K. N. Toosi University of Technology, Tehran, Iran.

2 Associate Professor, Department of Civil Engineering, K. N. Toosi University of Technology, Tehran, Iran.


As an essential issue in traffic crashes, human factor plays an indispensable role. This study uses the general health questionnaire (GHQ-12) within some socio-demographic and also a number of daily exercise related questions for prediction of traffic crashes among taxi drivers in the City of Tehran. A novel technique is been developed by applying nonlinear-learning of composition model of Adaptive Neuro-Fuzzy Inference Systems (ANFIS) and Particle Swarm Optimization (PSO) with M5 model tree. In order to improve the generalization ability of a single data driving algorithm, a cluster of ANFIS models with different nodes and hidden layers are implemented to extract the inherent relationship between traffic accident rates and human factors. The predictions of ANFIS models are combined applying a nonlinear weighted average method composed of M5 tree, and the PSO is utilized to find the optimal parameters of ANFIS models. The performance of the proposed model is evaluated in a case study and the relevant data are collected from a large group of Taxi drivers in the City of Tehran, Iran; as it was carried out to predict the associated accident rates. The Nash-Sutcliffe coefficient (NSE) and different error criteria are utilized to assess the prediction efficiency of the associated Hybrid model. Results indicate that the M5 tree is capable in enhancing the prediction accuracy of the novel model applied in the prediction of the accident rates as in comparison with the popular ANFIS model. Moreover, the linear relationships generated by M5 tree show the sensitivity of ensembled model accuracy on the single ANFIS models, which have a partial tendency in underestimation of the traffic crashes.


1. Enayat H. Driving Culture in Iran: Law and Society on the Roads of the Islamic Republic. Iranian Studies 2017; 50(2):323-6. [DOI:10.1080/00210862.2017.1287156]
2. You J, Wang J, Guo J. Real-time crash prediction on freeways applying data mining and emerging techniques. J. Mod. Transport. 2017; 25(2):116-23. [DOI:10.1007/s40534-017-0129-7]
3. Pakgohar A, Tabrizi RS, Khalili M, Esmaeili A. The role of human factor in incidence and severity of road crashes based on the CART and LR regression: A data mining approach. Procedia Computer Science 2011; 3:764-9. [DOI:10.1016/j.procs.2010.12.126]
4. Lajunen T, Summala H. Can we trust self-reports of driving?: Effects of impression management on driver behaviour questionnaire responses. Transportation Research Part F: Traffic Psychology and Behaviour 2003; 6(2):97-107. [DOI:10.1016/S1369-8478(03)00008-1]
5. Noori Hekmat S, Dehnavieh R, Norouzi S, Bameh E, Poursheikhali A. Is There Any Relationship between Mental Health and Driving Behavior of Taxi Drivers in Kerman? GJHS 2016; 9(2):294. [DOI:10.5539/gjhs.v9n2p294]
6. Kockelman KM, Kweon Y. Driver injury severity: An application of ordered probit models. Accident Analysis & Prevention 2002; 34(3):313-21. [DOI:10.1016/S0001-4575(01)00028-8]
7. Abdel-Aty MA, Abdelwahab HT. Predicting Injury Severity Levels in Traffic Crashes: A Modeling Comparison. Journal of Transportation Engineering 2004; 130(2):204-10. [DOI:10.1061/(ASCE)0733-947X(2004)130:2(204)]
8. Delen D, Sharda R, Bessonov M. Identifying significant predictors of injury severity in traffic crashes applying a series of artificial neural networks. Accid Anal Prev 2006; 38(3):434-44. [DOI:10.1016/j.aap.2005.06.024]
9. Teymuri GH, Sadeghian M, Kangavari M, Asghari M, Madrese E, Abbasinia M et al. Review the number of crashes in Tehran over a two-year period and prediction of the number of events based on a time-series model. Electron Physician 2013; 5(3):698-705.
10. Marcelo CV, Sandro S, Arianne CR. Physical activity overcomes the effects of cumulative work time on hypertension prevalence among Brazilian taxi drivers. THE JOURNAL OF SPORTS MEDICINE AND PHYSICAL FITNESS; 2016.
11. Rabiei R, Ayatollahi H, Rahmani Katigari M, Hasannezhad M, Amjadnia H. Epidemiology of Urban Traffic Crashes: A Study on the Victims' Health Records in Iran. GJHS 2016; 9(5):156. [DOI:10.5539/gjhs.v9n5p156]
12. Naderan A, Shahi J. Aggregate crash prediction models: introducing crash generation concept. Accid Anal Prev 2010; 42(1):339-46. [DOI:10.1016/j.aap.2009.08.020]
13. Moradi A, Salamati P, Vahabzadeh E. The Social Determinants of Risky Driving on the Intercity Roads of Tehran Province, Iran: A Case-Cohort Study. Arch Trauma Res 2016; 6(1). [DOI:10.5812/atr.36490]
14. Zadeh LA. Fuzzy sets. Information and Control 1965; 8(3):338-53. [DOI:10.1016/S0019-9958(65)90241-X]
15. Mamdani EH, Assilian S. An experiment in linguistic synthesis with a fuzzy logic controller. International Journal of Man-Machine Studies 1975; 7(1):1-13. [DOI:10.1016/S0020-7373(75)80002-2]
16. Jang J. ANFIS: Adaptive-network-based fuzzy inference system. IEEE Trans. Syst., Man, Cybern. 1993; 23(3):665-85. [DOI:10.1109/21.256541]
17. Abraham A. Adaptation of Fuzzy Inference System Applying Neural Learning. In: Kacprzyk J, Nedjah N, Macedo Mourelle Ld, editors. Fuzzy Systems Engineering. Berlin, Heidelberg: Springer Berlin Heidelberg; 2005. p. 53-83 (Studies in Fuzziness and Soft Computing). [DOI:10.1007/11339366_3]
18. 2016 Federated Conference on Computer Science and Information Systems: IEEE; 2016. (Annals of Computer Science and Information Systems).
19. Kennedy, J., Eberhart, R.C., 1995. Particle Swarm Optimization. Proc. IEEE Int'l. Conf. on Neural Networks IV: 1942e1948. IEEE Service Center, Piscataway.
20. NJ. Kennedy, J., Eberhart, R.C., 2001. Swarm Intelligence. Academic press, CA, USA.
21. Zheng X, Liu M. An overview of accident forecasting methodologies. Journal of Loss Prevention in the Process Industries 2009; 22(4):484-91. [DOI:10.1016/j.jlp.2009.03.005]
22. Quinlan, R. J. Learning with Continuous Classes (1992) In: 5th Australian Joint Conference on Artificial Intelligence.
23. Schrider, D. R., & Kern, A. D. (2016). S/HIC: Robust identification of soft and hard sweeps applying machine learning. PLoS Genet, 12(3), e1005928. [DOI:10.1371/journal.pgen.1005928]
24. Oliver, J. J., & Hand, D. J. (2016, January). On pruning and averaging decision trees. In Machine Learning: Proceedings of the Twelfth International Conference (pp. 430-437). [DOI:10.1016/B978-1-55860-377-6.50060-8]
25. Jung, N. C., Popescu, I., Kelderman, P., Solomatine, D. P., & Price, R. K. (2010). Application of model trees and other machine learning techniques for algal growth prediction in Yongdam reservoir, Republic of Korea. Journal of Hydroinformatics, 12(3), 262-274. [DOI:10.2166/hydro.2009.004]
26. Norouzi, M., Collins, M., Johnson, M. A., Fleet, D. J., & Kohli, P. (2015). Efficient non-greedy optimization of decision trees. In Advances in Neural Information Processing Systems (pp. 1729-1737).
27. Hothorn, T., & Lausen, B. (2003). Double-bagging: Combining classifiers by bootstrap aggregation. Pattern Recognition, 36(6), 1303-1309. [DOI:10.1016/S0031-3203(02)00169-3]
28. Breiman, L., Friedman, J., Stone, C. J., & Olshen, R. A. (1984). Classification and regression trees. CRC press.
29. Gao F, Luo N, Thumboo J, Fones C, Li S, Cheung Y. Does the 12-item General Health Questionnaire contain multiple factors and do we need them? Health Qual Life Outcomes 2004; 2:63. [DOI:10.1186/1477-7525-2-63]
30. Gouveia VV, Barbosa GA, Andrade EdO, Carneiro MB. Factorial validity and reliability of the General Health Questionnaire (GHQ-12) in the Brazilian physician population. Cad. Saúde Pública 2010; 26(7):1439-45. [DOI:10.1590/S0102-311X2010000700023]
31. Witten, I. H., Frank, E., Hall, M. A., & Pal, C. J. (2016). Data Mining: Practical machine learning tools and techniques. Morgan Kaufmann.
32. Yasa, R., & Etemad-Shahidi, A. (2014). Classification and regression trees approach for predicting current-induced scour depth under pipelines. Journal of Offshore Mechanics and Arctic Engineering, 136(1), 011702. [DOI:10.1115/1.4025654]