Lashkov CSE 2019 IEEE v2
Lashkov CSE 2019 IEEE v2
net/publication/337790410
Driver Dangerous State Detection Based on OpenCV & Dlib Libraries Using
Mobile Video Processing
CITATIONS READS
20 1,789
5 authors, including:
All content following this page was uploaded by Alexey Kashevnik on 10 May 2020.
Abstract—The real-time driving behavior monitoring plays a certain period of time. Drowsiness or distraction driving states
significant role in intelligent transportation systems. Such monitoring of the driver are the real hazards that can lead to the traffic road
increases traffic safety by reducing and eliminating the risk of potential accident.
traffic accidents. Vision-based approach including video cameras for
dangerous situation detection is undoubtedly one of the most There is a number of different ways to enhance the road
perspective and commonly used in sensing driver environment. In this safety for a vehicle driver. It should be noted that one of the
case, the images of a driver, captured with video cameras, can describe enormous popular approaches presented in previous scientific
its facial features, like head movements, eye state, mouth state, and, researches relies in the development of advanced driver
afterwards, identify a current level of fatigue state. In this paper, we assistance systems. These safety systems allow to reduce road
leverage the built-in front-facing camera of the smartphone to accidents and provide better interaction and engagement with a
continuously track driving facial features and early recognize driver’s driver. Some common examples of driver safety technologies
drowsiness and distraction dangerous states. Dangerous state for this type of systems are vehicle collision avoidance system,
recognition is classified into online and offline modes. Due to lane keep assistant, driver drowsiness and distraction monitoring
efficiency and performance of smartphones in online mode, the driving and alerting. General use of such systems can be described as a
dangerous states are determined in real time on the mobile devices with certain set of consecutive commands in this way: monitoring
aid of computer vision libraries OpenCV and Dlib while driving. driver behavior, state of the vehicle or road situation by using
Otherwise, the offline mode is based on the results of statistical
different built-in auxiliary devices, including short and long-
analysis provided by a cloud service, utilizing not only the
range radars, lasers, lidars, video stream cameras to perceive the
accumulated statistics in real time, but also the previously collected,
stored and produced by machine learning tools.
surroundings; continuous analysis of readings from sensors and
determining dangerous situations while driving; alerting driver
Keywords—driver, driving behavior, smartphone, dangerous about recognized unsafe in-cabin and road situations; and taking
situation, fatigue, facial features, front-facing camera, vehicle. control of the vehicle if driver reaction is not sufficient or
missing. At the moment, driver safety systems heavily rely on
I. INTRODUCTION data collected from different in-vehicle sensors.
Traffic accidents remain the most fatal of almost every Although, advanced driver assistance systems coming with
country in the whole world. According to the statistics of road different high-precision sensors demonstrate high accuracy and
traffic accidents, 1.35 million people die annually, reported by performance in recognizing driving dangerous situations in
World Health Organization in 2018 [1]. This global report on different circumstances, existing smartphones are at much lower
road safety also indicates that road traffic injuries are the leading price, and are undeniably much popular among people in almost
cause of death of children and young people aged 5-29 years. every country that is easy to use in every vehicle1. By the way,
The risk of road traffic deaths remains highest in Africa that is these devices are already equipped with a set of motion, rotation,
26.6 per 100 000 and lowest in Europe, 9.3 per 100 000 image sensors [4], that can describe changes in the surrounding
population. A significant number of motor vehicle crashes environment and can be efficiently utilized by software
involve driver’s drowsiness and distraction. For instance, the developers upon the request in its third-party applications. It’s
research brief conducted by AAA Foundation for Traffic Safety safe to say that every smartphone has already built-in front-
[2] shows that in the real driving experiments the drowsiness facing camera, that can be utilized for continuously monitoring
state was recognized in 10.6%–10.8% of crashes that resulted in driving behavior, detecting facial features and patterns, and
significant property damage, airbag deployment, or injury. recognizing drowsy and distracted driving. This paper considers
Drowsiness was evaluated using the reliable measurement the advantages of facial features utilization for dangerous
PERCLOS [3] (PERcentage of CLOSure), indicating the behavior determination and extends our prior works [5], [6], [7],
percentage of time that a driver’s eyes are closed within the including the mobile application for Android smartphones2.
1
http://www.pewinternet.org/fact-sheet/mobile/ 2
https://play.google.com/store/apps/details?id=ru.igla.drivesafely