Professional Documents
Culture Documents
Abstract— One of the top reasons for road accidents that Transportation offices around the country during the month of
result in injuries and deaths is the dozing off of drivers. In this February 2019 shows that the accidents are often caused by
study eye tracking using a novel open source Internet of Things the behaviors of the drivers (47 times) [11]. One of the top
(IoT)-based system has been developed. This study evaluated reasons that causes accidents, which result in injuries and
three driver’s eye recognition algorithms to be integrated into deaths, is the dozing off of the drivers (10 out of 47 times)
the open source solution to wake drivers as they begin to dose [11]. The symptoms of drowsiness during driving are: 1)
off: 1) Convolutional Neural Network (CNN) with Haar yawning, 2) distraction, 3) tired and worry, 4) cannot
Cascade, 2) 68 facial landmark points and 3) gaze detection in remember what have passed in a few kilometers, 5) cannot
three different face positions for both day and night driving
open their eyes, 6) dizzy or giddy, 7) swerving between lanes
conditions as well as with and without glasses. Each combination
of those factor is tested 100 times. The best algorithm is chosen
and 8) skip traffic signs [12].
based on the numbers of correct detections and then this In order to overcome these challenges this study evaluates
algorithm is tested again based on light (day and night), angle of techniques and systems to prevent drowsiness during driving.
face (left, right, and center), angle of camera (left and right), and Systems have been developed to monitor drowsiness or
glasses (on and off) to detect both blinking and closed eyes. The dozing off while on the road including ways to monitor the
results show that the most accurate algorithm to detect a driver for drowsiness including electroencephalogram (EEG),
driver’s eyes is CNN with Haar Cascade algorithm with 94%
electrocardiography (ECG), and eye status tracking [13]. In
accurate. The system can detect the status of the eyes of drivers
this study eye tracking was selected as the best option because
during driving and if drivers close their eyes longer than two
seconds, it sounds an alert to wake the driver and avoid the
no equipment needs to be attached to the driver. In this study
accident. The proposed open source system costs about US$100 a novel open source Internet of Things (IoT)-based system has
and could be widely deployed to help reduce accidents on the been developed and is disclosed and evaluated here. This
road throughout the world. system will detect the status of the eyes of the drivers whether
they are open or closed and the status of the eyes is used to
Keywords— Drowsiness Detection Algorithm, Eye Blinking, indicate if the driver is drowsy or distracted then alarm the
Convolutional Neural Network, Haar Cascade, Automobile driver with a sound. First the face detection and face
Safety, Traffic Fatalities. recognition literature is briefly reviewed in the context of the
IoT. Next several of the most popular algorithms are tested
I. INTRODUCTION with different controlled factors which include light (day and
Thailand’s roads are among the most dangerous in the night), and angle of face (left, right, and center) to detect both
world and the government vowed at a United Nations blinking and closed eyes. Each combination of those factor is
(UN) forum in 2015 to halve the number of road traffic tested 100 times. The best algorithm is chosen based on the
deaths by 2020 [1,2]. The World Health Organization numbers of correct detections and then this algorithm is tested
(WHO) reports that Thailand is far from achieving its again based on light (day and night), angle of face (left, right,
2020 goal of bringing road deaths down to less than 20 and center), angle of camera (left and right), and glasses (on
for every 100,000 people [3]. Traffic related fatalities and off) to detect both blinking and closed eyes. Next, open
has been a concern for a number of years and significant source software is developed to prevent drowsiness driving
analysis to find interventions has been undertaken [4-8]. accidents, which can use three algorithms. This study
Unfortunately, today road accidents still account for evaluated three driver’s eye recognition algorithms: 1)
most deaths in Thailand (particularly among the poor), Convolutional Neural Network (CNN) with Haar Cascade, 2)
with more than 20,000 preventable fatalities each year 68 facial landmark points and 3) gaze detection in three
[9]. Last year (2019) there were 20,169 deaths [10]. An different face positions for both day and night driving
accident study conducting by the Department of conditions as well as with and without glasses. The results of
Transportation of Bangkok and Provincial Department of
Authorized licensed use limited to: Auckland University of Technology. Downloaded on August 09,2020 at 14:48:31 UTC from IEEE Xplore. Restrictions apply.
2020 17th International Conference on Electrical Engineering/Electronics, Computer, Telecommunications and Information Technology (ECTI-CON)
552
Authorized licensed use limited to: Auckland University of Technology. Downloaded on August 09,2020 at 14:48:31 UTC from IEEE Xplore. Restrictions apply.
2020 17th International Conference on Electrical Engineering/Electronics, Computer, Telecommunications and Information Technology (ECTI-CON)
Item Number Cost(Baht) Fig. 4. Examples of results of eye gaze detection algorithm.
Raspberry Pi 4 Model B 1 1,980
Raspberry Pi NoIR Camera Module Infra- 1 1,150
red Sensitive Camera V2
Infrared Night Vision Unit (LED 1 Watt) 1 89.50
Active Buzzer module (3.3 – 5 V.) 1 35
Jumper Female to Female (40 x 10zm) 1 45
Total 3,299.5
IV. RESULTS TABLE II. THE EYE BLINKING DETECTOIN ALGORITHMS COMPARING
553
Authorized licensed use limited to: Auckland University of Technology. Downloaded on August 09,2020 at 14:48:31 UTC from IEEE Xplore. Restrictions apply.
2020 17th International Conference on Electrical Engineering/Electronics, Computer, Telecommunications and Information Technology (ECTI-CON)
easy to learn and is an applicable programming language for [10] Permpoonwiwat, C. K., & Kotrajaras, P. (2012). Pooled time-series
everyone and a wide collections of industries. A large number analysis on traffic fatalities in Thailand. World Review of Business
Research, 2(6), 170-182.
of people around the world has contributed their time and
[11] Statistic of public transportation and truck,
effort to develop new libraries in most fields. It is an open https://www.dlt.go.th/site/ltsb/m-news/3937/ view.php?_did=20224,
source programming language, so everyone can use and lass accessed 2019/09/05.
improve the existing libraries as needed. Python will continue [12] How to deal with drowsy during driving,
to grow and the quality of the libraries will be improved as it https://www.thaihealth.or.th/Content/40214-วิธีปฏิ บตั ิหาก "
is used by additional developers. Overall the results of this ง่วง" ขณะขับรถ.html, lass accessed 2019/09/14.
study were extremely promising. More advanced cameras [13] Fazli, S., & Esfehani, P. (2012, March). Tracking eye state for fatigue
may help solve some of the challenges uncovered if they have detection. In International Conference on Advances in Computer and
Electrical Engineering (ICACEE 2012) (pp. 17-20).
better resolutions and are able to handle low light situations.
For example, Arducam 16MP Pi Camera 4K, IMX298 costs [14] Convolutional Neural Netowrk (CNN), https://blog.datawow.io/มาลองดู
วิธีคิดของ-cnn-กัน-e3f5d73eebaa, last accessed 2019/12/15.
about 1,883.69 baht ($59.99 USD) [33] and could be used in
[15] Facial Landmarks with dlib, OpenCV, and Python,
future work. https://www.pyimagesearch.com/ 2017/04/03/facial-landmarks-dlib-
opencv-python/, last accessed 2019/09/14.
[16] Face Detection, https://pongpich-v.blogspot.com/2018/11/blog-
post.html, last accessed 2019/09/14.
[17] Viewer Tally from Visual and Depth Image, https://isl2-
dev.cp.eng.chula.ac.th/sites
/default/files/Senior%20Project%20Proposal.docx, last accessed
2019/09/14.
[18] Internet of Things and Thailand 4.0 Policy,
Fig. 6. Proposed Real-Time Eye State Detection (RTESD) Architecture. http://www.nbtc.go.th/getattachment/Services /quarter2560/ปี -
2561/32279/เอกสารแนบ.pdf.aspx, last accessed 2019/09/05.
V. RESULTS [19] Ranjith, V. et al.: Machine Learning Model for Drowsiness Detection.
2019 International Journal of Research in Engineering and
This paper has shown that the proposed system, the Real- management 1(1), 334-338 (2019).
Time Eye State Detection System Using Convolutional [20] Danisman, T., Bilasco, I. M., Djeraba, C., & Ihaddadene, N.: Drowsy
Neural Network with Driver Drowsiness Alert, was driver detection system using eye blink patterns. In: 2010 International
implemented successfully. The system can detect the status of Conference on Machine and Web Intelligence, pp. 230-233, IEEE
the eyes of drivers during driving. When the drivers close their (2010).
eyes longer than two seconds, the alert system would notify [21] IRTIJA, N., SAMI, M., & AHAD, M. A. R.: Fatigue Detection Using
Facial Landmarks. In: International Symposium on Affective Science
the drivers by the sound. There are some false alarms and and Engineering ISASE2018, pp. 1-6, Japan Society of Kansei
misses due to the environment around the drivers, such as, Engineering (2018).
glasses and external light. For future work, these issues should [22] Tiwari et al.: IOT Based Driver Drowsiness Detection and Health
be taken into account and resolved. Monitoring System. International Journal of Research and Analytical
Review 6(2), 163i-167i (2019).
REFERENCES [23] Rawal, R. S., & Nagtilak, S. S.; Drowsiness Detection Using
[1] Beech, H. Why are Thailand’s roads among the deadliest in the world? RASPBERRY-Pi Model Based On Image Processing (2016).
(2019, September 3). The Independent. [24] Joshi, A., Gujrati, S., & Bhati, A. (2013). Eye state and head position
https://www.independent.co.uk/news/long_reads/thailand-roads- technique for driver drowsiness detection. International Journal of
deadly-traffic-accidents-class-inequality-a9071696.html Electronics and Computer Science Engineering, 2(3), 874-879.
[2] Initiative to improve Road safety in Thailand. (2015). [25] Goraya, A., & Singh, G. Real Time Drivers Drowsiness Detection and
http://www.uncrd.or.jp/content/documents/3489Thailand%20Initiativ alert System by Measuring EAR. International Journal of Computer
e%20-.pdf Applications, 975, 8887.
[3] Road accidents still account for most deaths in Thailand, report shows. [26] Sooksatra, S., Kondo, T., & Bunnun, P. (2015, June). A robust method
(2019). Https://Www.Nationthailand.Com. Retrieved January 29, for drowsiness detection using distance and gradient vectors. In 2015
2020, from https://www.nationthailand.com/news/30373606 12th International Conference on Electrical Engineering/Electronics,
[4] Tanaboriboon, Y., & Satiennam, T. (2005). Traffic accidents in Computer, Telecommunications and Information Technology (ECTI-
Thailand. IATSS research, 29(1), 88-100. CON) (pp. 1-5). IEEE.
[5] Nakahara, S., Chadbunchachai, W., Ichikawa, M., Tipsuntornsak, N., [27] Said, S., AlKork, S., Beyrouthy, T., Hassan, M., Abdellatif, O. E., &
& Wakai, S. (2005). Temporal distribution of motorcyclist injuries and Abdraboo, M. F. Real Time Eye Tracking and Detection-A Driving
risk of fatalities in relation to age, helmet use, and riding while Assistance System.
intoxicated in Khon Kaen, Thailand. Accident Analysis & Prevention, [28] Jayswal, A. S., & Modi, R. V. (2017). Face and eye detection
37(5), 833-842. techniques for driver drowsiness detection. Int. Research. J.
[6] Kumphong, J., Satiennam, T., & Satiennam, W. (2016). A correlation Engineering and Technology (IRJET), 4(04).
of traffic accident fatalities, speed enforcement and the gross national [29] MRL Eye Dataset, http://mrl.cs.vsb.cz/eyedataset, last accessed
income of Thailand and its cross-border countries. International 2019/09/14.
Journal of Technology, 7(7), 1141-1146. [30] Facial landmarks with dlib, OpenCV, and Python,
[7] Permpoonwiwat, C. K., & Kotrajaras, P. (2012). Pooled time-series https://www.pyimagesearch.com/ 2017/04/03/facial-landmarks-dlib-
analysis on traffic fatalities in Thailand. World Review of Business opencv-python/, last accessed 2019/12/15.
Research, 2(6), 170-182. [31] Histogram of Oriented Gradients,
[8] Suriyawongpaisal, P., & Kanchanasut, S. (2003). Road traffic injuries https://www.learnopencv.com/histogram-of-oriented-gradients/, last
in Thailand: trends, selected underlying determinants and status of accessed 2019/12/15.
intervention. Injury control and safety promotion, 10(1-2), 95-104. [32] Cortes, C., & Vapnik, V. (1995). N, Support Vector Networks.
[9] Thaiger, T., & Nation, T. (2019, July 25). Road incidents still the Machine Learning, 20(3), 273-295.
biggest killer in Thailand. The Thaiger. https://thethaiger.com/hot-
news/road-deaths/road-incidents-still-the-biggest-killer-in-thailand
554
Authorized licensed use limited to: Auckland University of Technology. Downloaded on August 09,2020 at 14:48:31 UTC from IEEE Xplore. Restrictions apply.