Open Access iconOpen Access



A Deep Learning Based Sentiment Analytic Model for the Prediction of Traffic Accidents

Nadeem Malik1,*, Saud Altaf1, Muhammad Usman Tariq2, Ashir Ahmed3, Muhammad Babar4

1 University Institute of Information Technology, PMAS Arid Agriculture University, Rawalpindi, 46000, Pakistan
2 Department of Marketing, Operations, and Information System, Abu Dhabi University, Abu Dhabi, 6844, United Arab Emirates
3 College of Computer and Information Sciences, Prince Sultan University, Riyadh, 11442, Saudi Arabia
4 Robotics and Internet of Things Lab, Prince Sultan University, Riyadh, 11442, Saudi Arabia

* Corresponding Author: Nadeem Malik. Email: email

(This article belongs to this Special Issue: The Next Generation of Artificial Intelligence and the Intelligent Internet of Things)

Computers, Materials & Continua 2023, 77(2), 1599-1615.


The severity of traffic accidents is a serious global concern, particularly in developing nations. Knowing the main causes and contributing circumstances may reduce the severity of traffic accidents. There exist many machine learning models and decision support systems to predict road accidents by using datasets from different social media forums such as Twitter, blogs and Facebook. Although such approaches are popular, there exists an issue of data management and low prediction accuracy. This article presented a deep learning-based sentiment analytic model known as Extra-large Network Bi-directional long short term memory (XLNet-Bi-LSTM) to predict traffic collisions based on data collected from social media. Initially, a Tweet dataset has been formed by using an exhaustive keyword-based searching strategy. In the next phase, two different types of features named as individual tokens and pair tokens have been obtained by using POS tagging and association rule mining. The output of this phase has been forwarded to a three-layer deep learning model for final prediction. Numerous experiment has been performed to test the efficiency of the proposed XLNet-Bi-LSTM model. It has been shown that the proposed model achieved 94.2% prediction accuracy.


Cite This Article

N. Malik, S. Altaf, M. U. Tariq, A. Ahmed and M. Babar, "A deep learning based sentiment analytic model for the prediction of traffic accidents," Computers, Materials & Continua, vol. 77, no.2, pp. 1599–1615, 2023.

cc This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 470


  • 218


  • 0


Share Link