Accident prevention and safety assistance using IOT and machine learning


Transportation is playing a vital role in our daily life and its development has made many of our chores much easier. But in recent years, driver drowsiness, distractions, and speed limit crossing cause ruinous road accidents which lead to fatalities. Slumbering, dozing, alcohol consumption cause intrusiveness which needs to alert the driver before a mishap happens. In this paper, a prototype is designed using Raspberry Pi, Pi Camera, sensors for monitoring driver’s eye movements, detecting yawning, detecting toxic gases, and alcohol consumption to prevent accidents and provide safety assistance to drivers. Internet of Things and machine learning-enabled system is implemented in vehicles for transmitting the behavior of the driver and his driving pattern to the cloud to take quick response under emergency situations. Several lives are saved by alerting the driver with help of a sound system that is deemed to prevent any distractions before happen. The cloud services and machine learning are employed in identifying fatigue drivers through the collected and stored dataset from cloud services. The device is experimentally tested, and the results show its efficiency and effectiveness.

This is a preview of subscription content, access via your institution.

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
Fig. 20
Fig. 21
Fig. 22
Fig. 23
Fig. 24
Fig. 25
Fig. 26
Fig. 27
Fig. 28
Fig. 29


  1. 1.

  2. 2.

    Lee BG et al (2015) Wristband-type driver vigilance monitoring system using smartwatch. IEEE Sens J 15(10):5624–5633

    Article  Google Scholar 

  3. 3.

  4. 4.

    Hossain MY (2018) IoT based real-time drowsy driving detection system for the prevention of road accidents. ICIIBMS.

    Article  Google Scholar 

  5. 5.

    Dada EG et al (2017) Alcohol detection of drunk drivers with automatic car engine locking system. Nova J Eng Appl Sci 6(1):1–15

    MathSciNet  Google Scholar 

  6. 6.

    Gopinath V (2017) Avoiding drunken driving road accidents by using alcoholic sensors. In: IJEAS, vol 4, Issue 5

  7. 7.

    Teyeb I et al (2016) Towards a smart car seat design for drowsiness detection based on pressure distribution of the driver’s body. In: ICSEA 2016: the eleventh international conference on software engineering advances

  8. 8.

    Reyes-Muñoz Angelica et al (2016) Integration of body sensor networks and vehicular ad-hoc networks for traffic safety. Sensors 16:107

    Article  Google Scholar 

  9. 9.

    Archa A et al (2019) IoT based driver drowsiness detection and traffic collision avoidance system using raspberry pi. In: International journal of engineering sciences & research technology NACETEC’ 19 ISSN: 2277-9655

  10. 10.

    Sharma S (2018) IoT based car accident detection and notification algorithm for general road accidents. In: IJECE, vol 9(5)

  11. 11.

    Vural E et al (2007) Machine learning systems for detecting driver drowsiness. In: Proceedings, digital signal processing for in-vehicle and mobile systems, Istanbul, Turkey

  12. 12.

    Jacobé C et al (2019) Detection and prediction of driver drowsiness using artificial neural network models. Accid Anal Prev 126:95–104

    Article  Google Scholar 

  13. 13.

    Gupta H (2019) An IoT based air pollution monitoring system. In: ICSETS, vol 7

  14. 14.

    Gromera M et al (2019) ECG sensor for detection of driver’s drowsiness. In: 23rd International conference on knowledge-based and intelligent information & engineering systems, Elsevier B.V.

  15. 15.

    Anitha C et al (2016) A two fold expert system for yawning detection. In: 2nd International conference on intelligent computing, communication & convergence (ICCC-2016), Elsevier.

  16. 16.

    Alvi U et al (2020) A comprehensive study on IoT based accident detection systems for smart vehicles, vol 8, IEEE Access.

  17. 17.

    Bhatti F et al (2019) A novel internet of things-enabled accident detection and reporting system for smart city environments. Sensors 19:2071.

    Article  Google Scholar 

  18. 18.

    Dashora Chirag et al (2019) IoT based framework for the detection of vehicle accident, Cluster Computing. Springer Nature, Berlin

    Google Scholar 

  19. 19.

    Nanda S et al (2018) An IOT based smart system for accident prevention and detection. In: IEEE

  20. 20.

    Kumar KN et al (2019) Automatic accident rescue system using IoT. In: Springer Nature 2019, International conference on computer networks and communication technologies.

  21. 21.

    Zantalis F et al (2019) A review of machine learning and IoT in smart transportation. Future Internet 11:94.

    Article  Google Scholar 

  22. 22.

    Coronato A, Paragliola G (2017) A structured approach for the designing of safe AAL applications. Expert Syst Appl.

    Article  Google Scholar 

  23. 23.

    Yea J et al (2011) Situation identification techniques in pervasive computing: a review. Pervas Mob Comput.

    Article  Google Scholar 

  24. 24.

    Coronato A et al (2014) A situation-aware system for the detection of motion disorders of patients with Autism Spectrum Disorders. Expert Syst Appl Elsevier.

  25. 25.

    Duttagupta S et al (2016) Performance prediction of IoT application: an experimental analysis. In: IoT’16: Proceedings of the 6th international conference on the internet of things, pp 43–51.

  26. 26.

    Banda G et al (2016) One IoT: an IoT protocol and framework for OEMs to make IoT-enabled devices forward compatible. J Reliable Intell Environ 2:131–144.

    Article  Google Scholar 

  27. 27.

    Kumar SAP et al (2018) A novel digital twin-centric approach for driver intention prediction and traffic congestion avoidance. J Reliab Intell Environ 4:199–209

    Article  Google Scholar 

  28. 28.

    Bacciu D et al (2017) On the need of machine learning as a service for the internet of things. In: IML ‘17: proceedings of the 1st international conference on internet of things and machine learning, vol 22, pp 1–8.

Download references

Author information



Corresponding author

Correspondence to S. Uma.

Additional information

Publisher's Note

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

Rights and permissions

Reprints and Permissions

About this article

Verify currency and authenticity via CrossMark

Cite this article

Uma, S., Eswari, R. Accident prevention and safety assistance using IOT and machine learning. J Reliable Intell Environ (2021).

Download citation


  • Cloud services
  • IoT
  • Pi camera
  • Machine learning
  • Raspberry pi
  • Safety assistance