Keywords

1 Introduction

Nowadays, a safe driving is a major concern of societies all over the world. The percentages of car accident also keep increasing year by year. Malaysia also has the highest road fatality risk (per 100,000 populations) among the ASEAN countries that cause by car accidents [1]. There are also some factors that contribute to the car accident which caused by the vehicle problem itself and human behavior. Drowsiness is one of the famous caused in Malaysia which the drivers falling asleep at the wheels.

Normally, after long hours of driving journeys or in absent of alert mental state, the eyelids of driver will become heavy due to fatigue. The attention of the driver starts to lose focus, and that creates risks for accidents. These are typical reactions of fatigue, which is very dangerous. Usually many exhausted drivers are not aware that they are falling asleep even for a moment (microsleep). Unfortunately, accident might happen anytime, less than one second. Besides, there are cases of death due to the absence of rescue. No report and emergency call to authorized person due to unknown occurrence and location of the accident by people around there [2, 3]. As a result, injuries become worse and the chances to death are increase.

Therefore, it is essential to develop a real-time safety system for drowsiness detection system which able to monitor eye condition and notify the responsible person (relatives/parent) by sending message and current location that the driver might get into accident. Fast action could be taken to save golden lives of the accident victims, even for a few seconds. By leverage the advancement of internet and communication technology, this project aim to propose a preliminary system of eye drowsiness detection with GPS navigation.

2 Related Works

A lot of studies for drowsiness were focused on development of robust features and algorithm for drowsiness detection such as bio-features [4], yawning [5], skin color [6] and etc. Besides, there also have several studies focused on integrated hardware and software for drowsiness system. Results proved the studies successfully integrated hardware and software elements, but lack of IoT implementation for automatic notification system [5, 7, 8]. As a result, rescue failed arrived as soon as possible.

In-vehicle webcam is commonly installed to realize the possible reasons of car accidents by detection of drowsiness [9] behavior. Recently, smartphone camera have been used widely to replace the webcam due to high-speed (3G, 4G) data transmission [10]. However, studies [5, 7, 8, 10] does not considered setting of smartphone for data acquisitions during the experimental design.

3 Proposed Modelling

3.1 System Design

The overview of the proposed system is illustrated on Figs. 1 and 2. The system involves real time processing and detection of drowsiness are processed by evaluate eye blinking using image processing analysis which is Open Source Computer Vision (OpenCV) [11]. The smartphone camera is attached on the windshield of the car and used as a sensor to capture video. The video are sent to cloud for analyze eye condition either sleep or awake. Synchronously, the GPS navigation module is activated to trace the current location data of the driver. All the captured data of eye analysis and location will be send to the cloud storage. Then, the information that has been stored into the cloud will be sent to Intel board for communicating with hardware. Intel processor will trigger the output system via LCD, LED, buzzer and Global System for Mobile (GSM) notification.

Fig. 1
figure 1

Overview of the purposed system

Fig. 2
figure 2

Flowchart of the purposed system

The Internet of Things (IoT) also has been implemented into the system, by connecting it using a network wireless connection (WiFi). This system will identify the eyes state of the driver and an alarm system will be activated to warn the driver whenever the driver’s eyes is closed more than 4 s [12] and it will send notification message to driver’s family members when eyes is closed for another 8 s for further action. According to [12], 4 and 12 s are a blink patterns and lid-contact times in dry-eye for normal subjects.

3.2 Hardware

The system basically consists of Smartphone Camera, Intel Edison board, GSM module, buzzer, LEDs and LCD. Circuit diagram of the proposed system is shown in Fig. 3. Details functions of hardware are explained in Table 1.

Fig. 3
figure 3

Circuit diagram of the system

Table 1 Hardware functionality

4 Results and Discussion

4.1 Experimental

4.1.1 Setup Image Resolution (Video)

Experiment to identify the best image resolution was conducted. Table 2 illustrated the experimental results. The lowest image resolution \((352 \times 288)\) performed accurate result with 0 s delay compared to the highest image resolution with 15 s delay. Internet image transmissions for high-resolution video were noisy and prevent the detection from working effectively. This indicates that the lower image resolution is best suited for the proposed system.

Table 2 Image resolution and processing delay measurement

4.1.2 Smartphone Placement

The effectiveness of smartphone placement between windshield car and driver was evaluated by varying the distance of smartphone from driver as shown in Table 3. Experimental results found out that the suitable distance of a driver from smartphone camera was 25 cm to less than 100 cm. Distance 100 cm and above shows unstable results between sleeping and not sleeping. It is because when the eyes was located far away from a camera, the image of eye were getting smaller and opened eyes is seemed like closed eyes.

Table 3 Different distances between driver and phone

4.2 Simulation Results

We have successfully detected the drowsy condition of the driver’s eye and alert the driver by giving alarm and send the notification to responsible or related person. During this process, when the eyes is not closed more than 4 s then Green LED is ON and LCD will display ‘Safe Mode’ while the eyes is closed more than 4 s then Yellow LED and Alarm are ON together with LCD display ‘Wake Up’. If the driver’s eyes are opened after the alarm is rung then the system will go back to the first stage where Green LED is ON and ‘Safe Mode’ is displayed. When alarm is rung for more than 8 s, Red LED is ON indicated it is in ‘Danger Mode’ and at the same time the notification message in terms of current location of the driver will be sent out to the specified contact and emergency agencies. During this stage, the system will continue to display contact number of family members of the driver for the people around the accidents place to call the driver’s family members. Figure 4 illustrated visual results of hardware and software integration.

Fig. 4
figure 4

Result hardware and software integration

5 Conclusion

Eye Drowsiness Detection system was successfully built as proposed. The phone camera able to capture the eye of the driver and managed to analyze the eye condition i.e. open or close by embedded the information into the Intel Edison board. Besides, output integration of hardware successfully showing the Green/Yellow/Red LED, LCD and buzzer as a signal to indicate and display the condition of the driver as proposed design. The best setup for smartphone placement is between 25 and 99 cm. Meanwhile, for image resolution is \(352 \times 288\) pixel. In addition, this study also successfully implemented Internet of Things (IoT) into our system by developed a sending notification system and GPS navigation access.