Next Article in Journal
Mobile Personalized Recommendation Model based on Privacy Concerns and Context Analysis for the Sustainable Development of M-commerce
Next Article in Special Issue
Intention to Use Sustainable Green Logistics Platforms
Previous Article in Journal
Systematic Mapping of Research on Farm-Level Sustainability in Egg and Chicken Meat Production
Previous Article in Special Issue
Implementation of Automated Baby Monitoring: CCBeBe
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Implementation of Detection System for Drowsy Driving Prevention Using Image Recognition and IoT

1
Department of Software, Anyang University, Anyang 14028, Korea
2
Liberal and Arts College, Anyang University, Anyang 14028, Korea
*
Author to whom correspondence should be addressed.
Sustainability 2020, 12(7), 3037; https://0-doi-org.brum.beds.ac.uk/10.3390/su12073037
Submission received: 26 February 2020 / Revised: 29 March 2020 / Accepted: 7 April 2020 / Published: 10 April 2020
(This article belongs to the Special Issue Big Data for Sustainable Anticipatory Computing)

Abstract

:
In recent years, the casualties of traffic accidents caused by driving cars have been gradually increasing. In particular, there are more serious injuries and deaths than minor injuries, and the damage due to major accidents is increasing. In particular, heavy cargo trucks and high-speed bus accidents that occur during driving in the middle of the night have emerged as serious social problems. Therefore, in this study, a drowsiness prevention system was developed to prevent large-scale disasters caused by traffic accidents. In this study, machine learning was applied to predict drowsiness and improve drowsiness prediction using facial recognition technology and eye-blink recognition technology. Additionally, a CO2 sensor chip was used to detect additional drowsiness. Speech recognition technology can also be used to apply Speech to Text (STT), allowing a driver to request their desired music or make a call to avoid drowsiness while driving.

1. Introduction

According to the statistics of Korea on traffic accidents in the last 5 years, driving while drowsy is one of the most important factors in traffic accidents, and its related mortality rate is more than 2 times higher than other causes of traffic accidents [1]. As a solution to resolve these problems, it is possible to reduce the mortality rate of such traffic accidents by detecting and preventing drivers from driving while drowsy. Therefore, studies aimed at detecting and preventing this kind of driving have been actively researched in the academic field [2,3]. In this study, a device for preventing drowsy driving was selected, and interviews and surveys were conducted with operators who do a large amount of driving. The survey consisted of a total of 61 questions related to car driving and lifestyle, driving habits related to drowsy driving, the use of peripheral devices, the vehicle environment, accidents, and drowsy driving in order to gain insights to refine our ideas. The survey was conducted with about 200 people. The survey was conducted online.
Figure 1 shows the classification of brainstorming solutions through the survey.
Three techniques are used to detect the drowsiness of commercial drivers: recognizing the driver’s eyes through cameras and using biosignals such as breathing, temperature, and heart rate to analyze operation patterns, such as the abnormal use of pedals and steering wheels.
Among the existing third-party products, the drowsiness detection system through the use of a camera has a low accuracy and a high error rate. In addition, various methods, such as detecting breathing irregularity, temperature rise, heart rate irregularity, etc., also has poor accuracy and a high error rate. In order to increase the detection of drowsiness, the proposed method in this paper improves accuracy through face detection as well as eye-blink detection and further improves drowsiness prevention by using a carbon dioxide sensor chip. Therefore, the system proposed in this paper improves the performance of the drowsiness prevention system by increasing the accuracy and reducing the error rate of drowsiness detection by combining several methods of the existing products used to detect and prevent drowsy driving. Additionally, to prevent drowsiness, music and broadcasting are automatically turned on or the driver can select music and broadcasting by using their voice. The details will be discussed in detail below. This study reviews current drowsiness detection technology through domestic and foreign cases in Section 2 and proposes a design to detect drowsy driving by introducing a CO2 sensor chip and checking the blink rate of the eyelids in Section 3. In Section 4, a system built based on the design of Section 3 is presented. In Section 5, a conclusion and future research are proposed.

2. Cases

To detect and prevent drowsy driving, we proposed overseas and domestic cases. The cases investigated were systems from Lexus, Ford, and Hyundai Mobis, respectively.

2.1. Domestic Cases

The Hyundai Mobis system has been the most actively studied as a system for detecting and preventing drowsiness while driving domestic cars. This system prevents drowsy driving by recognizing the driver’s face and detecting breathing conditions [4]. As a function of the system, the beep sounds when the driver’s eyes do not stare to the front. It is designed to prevent driving during drowsiness, and an alarm is activated by checking the blink time and speed (cycle) of the eyelid [5,6]. However, it is still in the design phase and has not been developed.
Figure 2 is a sleepiness prevention system under development for use by Hyundai Mobis. Surveillance cameras detect the driver’s eyes, nose, and mouth and continuously provide statistical data [7].
Other domestic car manufacturers have developed sensors to detect gaps between cars. When the distance between the sensor and the vehicle in front is narrow, an alarm is provided to the driver and the brake is forced to operate [8]. However, there is no drowsiness detection and prevention system in Korea that supports all of these factors.
In Figure 3, the front sensor detects the lane of the vehicle and sounds an alarm to warn the driver when the vehicle leaves the lane [9,10]. This capability is currently being added to all vehicles.
Figure 4 measures the tilt of the driver’s face with a tilt and vibration sensor on the ear flap and generates a vibration when a certain tilt value is detected [11]. Currently, no product has applied this function. However, it could be applied to prevent drowsy driving in the future.

2.2. Overseas Cases

Toyota’s Lexus vehicles have applied various methods to prevent drowsy driving. The Lexus model, launched in 2008, is equipped with Toyota’s drowsy driving protection. Figure 5 shows an infrared camera attached behind the steering wheel to recognize a driver’s drowsiness and sound a warning [12].
Toyota’s Lexus vehicles employ a variety of methods and techniques to prevent drowsy driving. However, they are still in the design phase and development has not been completed. However, a commercially available function is the camera recognition function.
(1)
Image processing technology that recognizes the driver with a camera is used, modeled in 3D with 238 points and 913 meshes.
(2)
Information about the driver’s emotions is extracted using mesh points.
(3)
The analysis system recognizes the driver’s behavior, such as looking at another person or looking at a smartphone.
(4)
Hundreds of factors are used to increase accuracy for a variety of analytical awareness skills, such as age, gender, and race.
(5)
The driver’s eyes are calculated by analyzing the distance between the eyelids and the eyelids. A total of four alarm systems are used to identify the risk of an accident and provide different situational information for each alarm step.
Figure 6 shows the technology developed by Ford to detect and prevent drowsy driving. Ford has applied the following techniques to prevent drowsy driving [13]. Ford’s system uses an infrared sensor on the handlebar, a heart-rate sensor, and a breathing sensor on the seat belt to collect biometric information. Then, after analyzing the steering wheel and pedals, the driver’s fatigue is calculated to support an alarm sound. Ford’s vehicles have a temperature sensor and heart rate detection. However, the accuracy of drowsy driving detection is not high with these features alone.
  • Group analysis is performed using the vehicle information (acceleration, length, slope).
  • The driver’s driving activity (acceleration pedal and brake pedal tilt), surroundings (road and traffic conditions), and the driver’s biometric information (temperature, body temperature, breathing rate, and heart rate) are determined to check their condition.
  • Heart rate is monitored using six electronic sensors in the driver’s seat.

3. Design of Drowsiness Detection

3.1. Eye-Blink Detection

Face recognition should be first performed in order to detect eye blinking. Therefore, the system recognizes the pupils of the driver’s eyes after recognizing the face and examines the blink speed of their eyelids to detect drowsiness.
In Figure 7, the Haar Cascade technique, which uses patterns of light and shade in OpenCV, is applied to recognize the faces of human beings. On drivers’ faces, the eyes are dark and the nose is bright. Therefore, the technique extracts face information by analyzing the pattern in the black and white image. Further, extracted face information is recognized by using the Haar Cascade in OpenCV [14]. The study actually applied this technique to recognize the eyes of a human face. However, the Raspberry Pi environment used in this study was poor in terms of its performance. Thus, this study referred to Korean standard face data to determine the eye position of drivers.
Figure 8 shows that the eyes of drivers can be continuously tracked by applying the mean-shift method to continue to track them even when they move. The mean-shift is a method used to find the peak or center of gravity of data distribution, which indicates the algorithm is moving to a data-dense area and the center of the distribution. When the data are distributed on a 2D plane, the process of finding the densest peak point of the data is constructed by the following methods [15]:
(1)
Obtain data originating from the radius, r, from the current position.
(2)
Move the current position to the coordinates of the center of gravity.
(3)
Repeat step 1 and 2 until the position converges.
For pupil detection, OpenCV’s Hough Circle Transform was applied. This method detects pupils in the eye region. The detected pupils are binarized and filtered; all pixels brighter than the threshold are designated as white, and the other areas are designated as black. The following formula was applied to obtain a binary image:
T ( x , y ) = 1 n 2 x i y i I ( x + x i , y + y j ) C
Then, using the Canny edge detection algorithm, an object boundary was found in the image. This method is efficient for contour extraction and can remove all contours related to gray matter in the original image. This technology improves upon the existing face-recognition and blink-detection technology, and machine learning was also applied to improve detection performance. The existing pure image processing could not achieve the desired performance within a short period of time. Therefore, it was decided to create a program to learn what the state of the new frame would be after determining the position of the eyes and the open eyes. By creating a module that stored the image of the user’s eye area in the category.number.jpg format, a vector with 1024 features was created. This value was determined through a hyperparameter tuning experiment. Softmax was used as the activation function. Stockastic gradient descent was used as the learning model.

3.2. Carbon Dioxide Detection

As a result of a questionnaire survey, it was found that the occurrence of many drowsy driving operations depend on the air quality in vehicles. Therefore, this study tried to prevent drowsy driving by detecting the concentration of carbon dioxide in vehicles.
Figure 9 represents a sensor for measuring the concentration of carbon dioxide of the NDIR(Non-Dispersive Infrared) system. If the concentration of carbon dioxide was over 1500 ppm, it was expected that drowsiness would appear. Further, when the concentration of carbon dioxide was high, this not only caused drowsiness and stiffness but also caused dizziness, headache and health problems. This sensor measures the concentration of carbon dioxide to the extent that refraction is caused by gas concentration using a non-distributed infrared emitting unit. The sensor has high durability and high accuracy, thereby detecting drowsy driving quickly. From the possible semiconductor resistance, electrochemical, and NDIR sensors, this study used the NDIR method to measure driving conditions, due to the considerations of cost-effectiveness and efficiency.

3.3. System Configuration Diagram

The configuration diagram of the drowsy driving detection and prevention system in this study mainly consists of three stages. The first step is an input part and consists of sensors, microphones, and cameras. The second step is an internal module part and consists of Speech to Text (STT), drowsiness prevention, internal environments, and entertainment [16].
The final step is part of this project, and its system configuration diagram represents the whole configuration diagram of this project.
Figure 10 represents the system configuration diagram. The following items summarize the system configuration diagram: The project name of this system is JARVIS. Carbon dioxide sensor chips and camera images are used to detect drowsiness in the vehicle. The camera detects face recognition and blinking and automatically turns on music and broadcasting when drowsiness is detected. The driver can request a broadcast or desired music through the microphone. Because cameras and sensors are built into the diffuser, they are not spatially and visually constrained. To take a break, the driver can use a mobile to guide them to nearby rest areas, and this information is provided in the database.
  • Input
    • Sensor: CO2 temperature sensor, which can measure the concentration of carbon dioxide up to 3000 ppm.
    • Microphone: microphone that receives the user’s voice commands.
    • Camera: infrared camera that can operate in the night.
    • Internal Module.
    • STT: infrared camera that can operate in the night.
    • Drowsiness detection: drowsiness detection module.
    • Internal Environment: temperature and carbon dioxide sensor, module, and weather and environment module.
    • Entertainment: broadcasting, music, and news module.
  • Output
    • BLE: output by a built-in car speaker with a Bluetooth connection.
    • Audio: motion output of automobile secretary (audio guidance, conversation, broadcasting, and music).
    • Air freshener: operation for indoor ventilation and drowsiness prevention.

4. Implementation of Prevention System

Figure 11 indicates some of the actual developed sources. There were many cases of incorrect detection, such as eyebrows, hair, etc. Therefore, this study implemented this source for reducing incorrect detection by exactly recognizing the left eye and right eye when both eyes are located in each facial position according to the center of the face.
Figure 12 shows the product modeling implemented in this paper. The hard appearance of electronic products was avoided, and Kakao Friends were used due to the value of their friendly and functional design, making them suitable for female users and as gifts.
Figure 13 shows a scene that detects blinking. The results from the Raspberry Pi for carbon dioxide detection alone made it difficult to detect drowsy driving. Therefore, it was possible to improve the prevention of drowsy driving by improving the algorithm for image processing as much as possible and efficiently detecting eye blinking using deep learning [17].
A voice recognition API (Application Program Interface) is required to support voice services. Speech recognition support products include CMU Sphinx, IBM, Google Cloud Speech, Bing Speech, wit.ai, Google Speech, and Houndify.
Figure 14 shows the product developed in this paper. The camera detects blinking eyes, and the carbon dioxide sensor inside the box detects carbon dioxide in the car and automatically ventilates it. In this system, this was developed as a fragrance, and music was automatically played when drowsiness was detected.
Figure 15 shows the various functions of the drowsy driving prevention system. In the default settings, you can configure settings for the account, drowsy driving detection, convenience functions, and Bluetooth. The drowsy driving detection includes built-in driving-time alerts, drowsiness sensitivity figures, air fresheners, stretching recommendations, and nighttime teaming. The driving-time reminder can check fatigue levels by displaying the driving time every hour. The drowsiness sensitivity figures automatically play music when the number exceeds 60 and guide you to the nearest rest area. Nevertheless, if drowsiness is detected, stretching is recommended in the announcement. In the convenience function, various functions, such as music, current news, and humor, are provided according to the drowsy driving detection value, and the temperature and humidity in the vehicle are checked and provided periodically.

5. Conclusions and Future Works

This study designed a system to detect and prevent drivers from driving while drowsy. In addition, it developed and tested actual cases based on the design. It used Python and C languages for its developmental environment, and it used a Raspberry Pi 3, infrared camera, speaker, microphone, carbon dioxide sensor, Galaxy S4, and the automobile model Sonata. In the future, we plan to build a system that is linked with an application on a smartphone and check the real-time reaction rate through actual testing.
Table 1 compares and analyzes the functions of this system with domestic and foreign products that are currently commercialized.
Finally, we will develop an application not only on Android but also for an iOS environment for further development and inter-working.

Author Contributions

The first author contributed to conceptualization and image recognition. Corresponding author contributed to system design, implementation, review and editing. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Jeong, Y.S.; Yon, Y.H.; Ku, Y.J.H. Hash-chain-based IoT authentication scheme suitable for small and medium enterprises. J. Converg. Inf. Technol. 2017, 7, 105–111. [Google Scholar]
  2. Azmat, M.; Kummer, S.; Moura, L.T.; Gennaro, F.D.; Moser, R. Future Outlook of Highway Operations with Implementation of Innovative Technologies Like AV, CV, IoT and Big Data. Logistics 2019, 3, 15. [Google Scholar] [CrossRef] [Green Version]
  3. Wintersberger, S.; Azmat, M.; Kummer, S. Are We Ready to Ride Autonomous Vehicles? A Pilot Study on Austrian Consumers’ Perspective. Logistics 2019, 3, 20. [Google Scholar] [CrossRef] [Green Version]
  4. Kim, J.H.; Kim, W.Y. Eye Detection in Facial Images Using Zernike Moments with SVM. ETRI J. 2008, 30, 335–337. [Google Scholar] [CrossRef]
  5. Azmat, M.; Kummer, S. Potential applications of unmanned ground and aerial vehicles to mitigate challenges of transport and logistics-related critical success factors in the humanitarian supply chain. AJSSR 2020, 5, 3. [Google Scholar] [CrossRef] [Green Version]
  6. Michail, M.; Konstantinos, M.; Biagio, C.; María, A.R.; Christian, T. Assessing the Impact of Connected and Automated Vehicles. A Freeway Scenario. In Advanced Microsystems for Automotive Applications 2017; Springer: Cham, Switzerland, 2018. [Google Scholar]
  7. Dinges, D.F.; Grace, R. PERCLOS: A Valid Psychophysiological Measure of Alertness As Assessed by Psychomotor Vigilance; Federal Highway Administration, Office of Motor Carriers: Washington, DC, USA, 1998; pp. 154–162.
  8. Skipper, H.J.; Wierwille, W.W. AnInvestigation of Low-Level Stimulus-Induced Measures of Driver Drowsiness. In Proceedings of the Conference on Vision in Vehicles, Nottingham, UK, 9–13 September 1985; pp. 139–148. [Google Scholar]
  9. Mascord, D.J.; Walls, J.; Starmer, G.A. Fatigue and Alcohol: Interactive effects on human performance in driving-related tasks. In Fatigue and Driving; Taylor & Francis: Abingdon, UK, 1995; pp. 189–205. [Google Scholar]
  10. Boverie, S.; Leqellec, J.; Hirl, A. Intelligent Systems for Video “Monitoring of Vehicle Cockpit”; SAE International: Warrendale, PA, USA, 1998. [Google Scholar]
  11. Ueno, H.; Kaneda, M.; Tsukino, M. Development of drowsiness detection system. In Proceedings of the Vehicle Navigation and Information Systems conference, Yokohama, Japan, 31 August–2 September 1994; pp. 15–20. [Google Scholar]
  12. Hutchinson, T.E. Eye Movement Detection with Improved Calibration and Speed. US Patent 4,950,069, 21 August 1988. [Google Scholar]
  13. Takchito, H.; Katsuya, M.; Kazunori, S.; Yuji, M. Detecting Drowsiness while Driving by Measuring Eye Movement—A Polot Study. In Proceedings of the International Conference on Intelligent Transportation Systems, Singapore, 3–6 September 2002. [Google Scholar]
  14. Dixon, C. Unobtrusive eyelid closure and visual of regard measurement system. In Proceedings of the Conference on Ocular Measures of Driver Alertness, Washington, DC, USA, 26–27 April 1999. [Google Scholar]
  15. Ishii, T.; Hirose, M.; Iwata, H. Automatic recognition of driver’s facial expression by image analysis. J. Soc. Automot. Eng. Jpn. 1987, 41, 1398–1403. [Google Scholar]
  16. Xu, Z. The analytics and applications on supporting big data framework in wireless surveillance networks. Int. J. Soc. Humanist. Comput. 2017, 2, 141–149. [Google Scholar] [CrossRef]
  17. Chen, Y.; Lin, C.; Lin, C.; Chuang, H.; Wang, L. Electronic commerce marketing-based social networks in evaluating competitive advantages using SORM. Int. J. Soc. Humanist. Comput. 2017, 2, 261–277. [Google Scholar] [CrossRef]
Figure 1. Solution of brainstorming on the survey.
Figure 1. Solution of brainstorming on the survey.
Sustainability 12 03037 g001
Figure 2. Mobis by Hyundai.
Figure 2. Mobis by Hyundai.
Sustainability 12 03037 g002
Figure 3. Camera sensors on the car.
Figure 3. Camera sensors on the car.
Sustainability 12 03037 g003
Figure 4. Inclination detection vibration sensor.
Figure 4. Inclination detection vibration sensor.
Sustainability 12 03037 g004
Figure 5. Drowsy driving prevention by Lexus.
Figure 5. Drowsy driving prevention by Lexus.
Sustainability 12 03037 g005
Figure 6. Drowsy driving prevention by Ford.
Figure 6. Drowsy driving prevention by Ford.
Sustainability 12 03037 g006
Figure 7. Haar Cascade method.
Figure 7. Haar Cascade method.
Sustainability 12 03037 g007
Figure 8. Mean-shift method.
Figure 8. Mean-shift method.
Sustainability 12 03037 g008
Figure 9. Carbon dioxide concentration sensor.
Figure 9. Carbon dioxide concentration sensor.
Sustainability 12 03037 g009
Figure 10. Structure of the system.
Figure 10. Structure of the system.
Sustainability 12 03037 g010
Figure 11. Example of the source.
Figure 11. Example of the source.
Sustainability 12 03037 g011
Figure 12. Image of the completed product.
Figure 12. Image of the completed product.
Sustainability 12 03037 g012
Figure 13. Shot of eye-blink detection.
Figure 13. Shot of eye-blink detection.
Sustainability 12 03037 g013
Figure 14. Image of the developed product.
Figure 14. Image of the developed product.
Sustainability 12 03037 g014
Figure 15. Function of the drowsy driving prevention system.
Figure 15. Function of the drowsy driving prevention system.
Sustainability 12 03037 g015
Table 1. Comparison analysis of the product.
Table 1. Comparison analysis of the product.
HyundaiToyotaFordOur System
Face detectionOOOO
Eye-blink detectionXOOO
IoT sensor chip (CO2)XXOO
Auto (TV, radio) playXXXO
Rest-area map position informationXXXO
Auto air freshXXXO
Heart rate checkXXOX

Share and Cite

MDPI and ACS Style

Jang, S.-W.; Ahn, B. Implementation of Detection System for Drowsy Driving Prevention Using Image Recognition and IoT. Sustainability 2020, 12, 3037. https://0-doi-org.brum.beds.ac.uk/10.3390/su12073037

AMA Style

Jang S-W, Ahn B. Implementation of Detection System for Drowsy Driving Prevention Using Image Recognition and IoT. Sustainability. 2020; 12(7):3037. https://0-doi-org.brum.beds.ac.uk/10.3390/su12073037

Chicago/Turabian Style

Jang, Seok-Woo, and Byeongtae Ahn. 2020. "Implementation of Detection System for Drowsy Driving Prevention Using Image Recognition and IoT" Sustainability 12, no. 7: 3037. https://0-doi-org.brum.beds.ac.uk/10.3390/su12073037

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop