Skip to main content
Log in

Abstract

In this paper a system to monitor road conditions, detect unsafe driving behaviours and determine the influence of rainfall on traffic safety in real time using different machine learning algorithms, has been proposed. The system developed consists of a mobile application that captures car movement using its in-built accelerometer and gyroscope sensors and a server that monitors weather conditions at 16 key locations in Mauritius using the OpenWeather API. Road conditions, pothole, speed bumps as well as driving events were analysed using the K-Nearest Neighbour (KNN) and Multi-Layer Perceptron (MLP) algorithms. Moreover, a mathematical model, which incorporates the predicted rainfall in the estimation of braking distance and recommended speed, has been proposed. An average accuracy of 80.9% was obtained for pothole detection, 70% for speed bumps and 85.5% for unsafe driving behaviours detection. The proposed model with rainfall data predicted the braking distance and recommended speed with a Mean Absolute Percentage Error (MAPE) of 14.7% and 0.735% respectively.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15
Fig. 16
Fig. 17
Fig. 18
Fig. 19

Similar content being viewed by others

Abbreviations

API:

Application Programming Interface

CART:

Classification And Regression Tree

CNN:

Convolutional Neural Network

CSV:

Comma Separated Values

GBDT:

Gradient-Boosted Decision Tree

GPS:

Global Positioning System

GUI:

Graphical User Interface

HTML:

Hyper Text Markup Language

HTTP:

Hyper Text Transfer Protocol

IDE:

Integrated Development Environment

IP:

Internet protocol

JSON:

JavaScript Object Notation

KNN:

K Nearest Neighbours

LSTM:

Long Short-Term Memory Networks

MAPE:

Mean Absolute Percentage Error

MLP:

Multi-Layer Perceptron

MLR:

Multiple Linear Regression

MPR:

Multiple Polynomial Regression

SDK:

Software Development Kit

SQL:

Structured Query Language

SVM:

Support Vector Machine

UI:

User Interface

URL:

Uniform Resource Locator

References

  1. Govmu.org: (2022). Available: https://statsmauritius.govmu.org/Pages/Statistics/ESI/Transport/RT_RTA_Jan-Jun22.aspx. Accessed 7 July 2023

  2. WHO, World Health Organiztion: (2022). Available: https://www.who.int/news-room/fact-sheets/detail/road-traffic-injuries. Accessed 13 July 2023

  3. Wes, M.: WorldBank.org. (2015). Available: https://www.worldbank.org/en/news/opinion/2015/01/05/prevent-road-accidents-the-swedish-example. Accessed 13 July 2023

  4. R. a. I. Magazine: (2018). Available: https://roadsonline.com.au/saving-lives-on-country-roads-the-potential-for-flexible-safety-barriers-on-au-roads/. Accessed 13 July 2023

  5. Ahmed, K.R.: Smart pothole detection using deep learning based on dilated convolution. Sensors 21(24), 8406 (2021). https://doi.org/10.3390/s21248406

    Article  Google Scholar 

  6. Aparna, Bhatia, Y., Rai, R., Gupta, V.: Convolutional neural networks based potholes detection using thermal imaging. J. King Saud Univ. 34(3), 578–588 (2019). https://doi.org/10.1016/j.jksuci.2019.02.004

    Article  Google Scholar 

  7. Wu, C., Wang, Z., Hu, S., Lepine, J., Na, X., Ainalis, D., Stettler, M.: An Automated machine-learning approach for road pothole detection using smartphone sensor data. Sensors 20(19), 5564 (2020). https://doi.org/10.3390/s20195564

    Article  Google Scholar 

  8. Pawar, K., Jagtap, S., Bhoir, S.V.: Efficient pothole detection using smartphone sensors. ITM Web Conf. 32, 03013 (2020). https://doi.org/10.1051/itmconf/20203203013

    Article  Google Scholar 

  9. Padilla, C., Tejada, J.G., Monteagudo, C.L., Gonzales, F.A., Baez, O.M., Torteya, M., Tejada, A.G., Olague, A., Garcia, L., Rosales, G.: Speed bump detection using accelerometric features: a genetic algorithm approach. Sensors 18(2), 443 (2018). https://doi.org/10.3390/s18020443

    Article  Google Scholar 

  10. Casati, J. B. C., Altafim, R. A. C., Altafim, A. P.: Vibration detection of vehicle impact using smartphone accelerometer data and long-short term memory neural network. 2(1), (2020). https://doi.org/10.48011/asba.v2i1.1274

  11. Lattanzi, E., Freshchi, V.: Machine learning techniques to identify unsafe driving behavior by means of in-vehicle sensor data. Expert Syst. Appl. 176, 114818 (2021). https://doi.org/10.1016/j.eswa.2021.114818

    Article  Google Scholar 

  12. Yi, N., Zhenming, L., Yunxiao, F.: Analysis of truck drivers’ unsafe driving behaviors using four machine learning methods. Int. J. Ind. Ergon. 86, 103192 (2021). https://doi.org/10.1016/j.ergon.2021.103192

    Article  Google Scholar 

  13. Liyew, C., Melese, H. A.: Machine learning techniques to predict daily rainfall amount. J. Big. Data. 8(1), (2021). https://doi.org/10.1186/s40537-021-00545-4

  14. Endalie, D., Haile, G., Taye, W.: Deep learning model for daily rainfall prediction: case study of Jimma, Ethiopia. Water Supply 22(3), 3448–3461 (2021). https://doi.org/10.2166/ws.2021.391

    Article  Google Scholar 

  15. Fowdur, T.P., Rosun, M.N.-U.-D.I.N.: A real-time collaborative machine learning based weather forecasting system with multiple predictor locations. Array 14, 100153 (2022). https://doi.org/10.1016/j.array.2022.100153

    Article  Google Scholar 

  16. Ali, A.K., Omid, R., Amir, S.A.N., Sid, M.B.: Effect of adverse weather conditions on vehicle braking distance of highways. Civ. Eng. J. 4(1), 46–57 (2018). https://doi.org/10.28991/cej-030967

    Article  Google Scholar 

  17. Tianchi, T., Kumar, A., Cor, K., Athanasios, S., Sandra, E.: A finite element study of rain intensity on skid resistance for permeable asphalt concrete mixes. Constr. Build. Mater. 220, 464–475 (2019). https://doi.org/10.1016/j.conbuildmat.2019.05.185

    Article  Google Scholar 

  18. Oche, A.E., Gareth, E., Mark, G.G., Gregory, I.: Real-time machine learning-based approach for pothole detection. Exp. Syst. Appl. 184, 115562 (2021). https://doi.org/10.1016/j.eswa.2021.115562

    Article  Google Scholar 

  19. Marques, J., Alves, R., Oliveira, R., MendonÇa, M., Souza, J. R.: An evaluation of machine learning methods for speed-bump detection on a GoPro dataset. An. Acad. Bras. Ciênc. 93(1), (2021). https://doi.org/10.1590/0001-3765202120190734

  20. Michal, M., Christopher, C.Y.: Detecting aggressive driving patterns in drivers using vehicle sensor data. Transp. Res. Interdiscip. Perspect. 14, 100625 (2022). https://doi.org/10.1016/j.trip.2022.100625

    Article  Google Scholar 

  21. Ahmed, A., Karim, E.-B., Tae, J. K.: Effects of inclement weather events on road surface conditions and traffic safety an event-based empirical analysis framework. Transp. Res. Rec J. Transp. Res. Board. 2676(10), 51–62 (2022). https://doi.org/10.1177/03611981221088588

  22. Tiwari and Shashwat: Kaggle. (2021). Available: https://www.kaggle.com/datasets/shashwatwork/driving-behavior-dataset. Accessed 29 June 2023

  23. Goes and Dexter: Kaggle. (2020). Available: https://www.kaggle.com/datasets/dextergoes/pothole-sensor-data?resource=download. Accessed 29 June 2023

  24. Michael, S., Tan, P.-N.: The top ten algorithms in data mining, pp. 151–159. Crc Press, Boca Raton (2009)

    Google Scholar 

  25. IBM: Available: https://www.ibm.com/topics/knn. Accessed 13 June 2023

  26. Hassan, R., Mohammed, A., Janati, I., Youssef, G., Mohamed, E.: Multilayer perceptron: architecture optimization and training. Int. J. Interact. Multimedia. Artif. Intell. 41(1), 26 (2016). https://doi.org/10.9781/ijimai.2016.415

    Article  Google Scholar 

  27. Steven C.C., Raymond, P.C.: Numerical methods for engineers, 6th edn. McGraw-Hill Science/Engineering/Math (2009)

  28. Sirisha, D.: Predicting rainfall using machine learning techniques. IJIRT 8(4), (2021). https://doi.org/10.36227/techrxiv.14398304.v1

  29. Ilaboya, I. R. Igbinedion, O. E.: Performance of multiple linear regression (MLR) and artificial neural network (ANN) for the prediction of monthly maximum rainfall in Benin City, Nigeria. Int. J. Eng. Sci. Appl. 3, (2019). https://dergipark.org.tr/tr/download/article-file/682360. Accessed June 2023

  30. Anas, A.-S., Rami, A., Samir, B.: Real-time pothole detection using deep. (2021). https://doi.org/10.48550/arXiv.2107.06356

  31. Wen-Hui, C., Yu-Chen, L., Wei-Hao, C.: Comparisons of machine learning algorithms for driving behavior recognition using in-vehicle CAN bus data. IEEE Access (2019). https://doi.org/10.1109/ICIEV.2019.8858531

    Article  Google Scholar 

Download references

Acknowledgements

The authors are thankful to the University of Mauritius for providing the necessary facilities for conducting this research.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Tulsi Pawan Fowdur.

Ethics declarations

Conflict of Interest

The authors declare that they have no conflict of interest.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Fowdur, T.P., Hawseea, M.F. A Real-Time Machine Learning-Based Road Safety Monitoring and Assessment System. Int. J. ITS Res. (2024). https://doi.org/10.1007/s13177-024-00395-3

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s13177-024-00395-3

Keywords

Navigation