Published: 14 November 2022

A low-cost remote driver sleep monitoring system

Zeynep Ekşi1
Ayşe Nur Camgöz2
Melike Özarslan3
Emre Sözer4
Mehmet Fatih Çelebi5
Ahmet Feyzioğlu6
1, 2, 3, 5Mechatronics Engineering Department, Faculty of Technology, Marmara University, Istanbul, Turkey
4Alışan International Transports Company, Istanbul, Turkey
6Mechanical Engineering Department, Faculty of Technology, Marmara University, Istanbul, Turkey
Corresponding Author:
Mehmet Fatih Çelebi
Views 274
Reads 119
Downloads 362

Abstract

Today, the use of smart transportation systems has become widespread due to the change in the structure of cities, technological developments, and the increase in the number of vehicles. It aims at targets such as reducing the damage to people and the environment by increasing traffic safety with smart transportation systems. In addition, one of the big problems of long-distance drivers is falling asleep while driving. This is an event that puts both the driver’s life, the passengers in the vehicle, and the vehicles on the road in danger, and puts the company in a difficult situation if it works for a company. In this direction, the driver sleep alarm project has been developed. This project is a control system based on monitoring the user, measuring, and analyzing their movements. Literature research, which is the first stage of the project, was conducted and research continued throughout the project process. Within the scope of this project, a headset was designed for the driver’s sleep alarm and a mobile application was created. The first prototype of the project was built. First, in the project, the angle values made by the driver's head were produced with the IMU connected to the microcontroller. 10° to 20° margins identified as sleeping state for roll, pitch, and yaw angles. Later, a wearable headset was designed for the driver. Based on these angles produced in the microcontroller, an algorithm has been created that detects whether the driver is asleep. These generated angle values and status information were transferred from the headset to the mobile application via Bluetooth. This data transferred in the mobile application is reflected on the screen. In addition, an algorithm has been created in the mobile application, which sends a notification to the driver when sleep status is detected and sends an informative SMS to the headquarters if the driver is unresponsive to this notification. For the second prototype, it was aimed to produce a PCB for the headset and thus make a new mechanical design. Data mining applications are planned with the collected data from drivers for future works.

Highlights

  • The sleep status of the fleet drivers should be monitored remotely.
  • If there is a possibility that the monitored driver may be asleep while driving, the vehicle coordinates should be transmitted to the remote observer.
  • The sleep tracking system should be simple and economical. By using the GPS and communication systems already in the vehicles, the process of monitoring the sleep status with a Bluetooth device has been successfully completed.
  • By collecting the sleep data of the drivers, data mining and machine learning methods can be used and preventive measures can be taken by learning where and under what conditions the drivers sleep.

1. Introduction

Many deaths occur today due to drowsiness, fatigue, and drowsiness of the driver. This is an event that endangers the life of the driver, the passengers in the vehicle, the vehicles, and pedestrians on the road, and puts the company in a difficult situation if it works for a company. With the development of technology, different methods have been developed to detect driver fatigue in advance and to prevent this situation. They can basically be divided into 4 categories: bio-based detection, physical-based detection, vehicle-based detection, and hybrid-based detection.

Biological signals can be used to detect fatigue and sleep status. It can be classified as heart, brain, eye, and skin-based signals. Signals such as electroencephalography (EEG), electrocardiogram (EKG), electro-oculography (EoG), and surface electromyogram (EMG) are used to detect this condition. As a result of the research, the accuracy rates of these methods are satisfactory [1].

On the detection of drowsiness, there are successful projects such as a probability model and a smart watch-based wearable EEG device, a detection system using wireless wearable sensors [2], using a Support Vector Machine (SVM) [3], and the development of six classifiers based on the sEMG feature. There are also projects in which head movements and facial expressions are used [4-7]. It is seen that these system designs are not sufficient on their own and the systems require a high level of optimization. It is recommended to use methods such as deep neural network model embedded system [8], vehicle-based detection or an online fatigue detection method based on steering angle data [9], and Hybrid Feature Based Detection for modeling systems. In this article, the detection method based on the physically based head position situation is used. While the most important factor in the selection of this method includes the methods that mostly require a camera and affect the driving performance of the driver, the detection method based on the physical-based head position has been adopted here.

In this study, a headset to hang on the ear of the vehicle driver is designed. The designed headset measures the driver's head angle and decides the sleep state by using the vehicle's navigation system. If there is a possibility that the driver may have fallen asleep or had an accident, the application running on the navigation system sends an SMS message to the monitoring center with the status and vehicle coordinates.

2. Materials and methods

The system consists of an ABS-based structure produced with a 3D printer and IMU (Inertial Measurement Units), Bluetooth Module, Microcontroller (MCU), and Battery placed on this structure. The system uses the possible movement planes of the press. In this study, DMP Data Fusion was used to measure roll, pitch, and yaw angles.

The product designed on Fusion 360 was printed with a 3D printer as shown in Fig. 1. The design, which was first made in Fusion 360, was transferred to Ultimaker Cura to print the product from the 3D printer. Ultimaker Cura is slicing software for 3D printers. It translates the 3D model into G codes that the 3D printer can understand. Necessary settings for printing were made on Ultimaker Cura. These settings are the shape and size of the design, the temperature of the printed material, the adjustment of the places where support is needed, etc. while printing. are settings. The file with the generated G codes was uploaded to the 3D printer and 3D printed. Ultimaker 2+ was used for the 3D production of the headset. Table of production parameters are also given in Table 1.

Table 1Print parameters

Used material
PLA ⌀1.75 mm
Layer height
0.2 mm
Infill density
100 %
Line width
0.38 mm
Infill pattern
Cubic
Printing temperature
210 °C
Top/bottom thickness
0.8 mm
Printing temperature of initial layer
230 °C
Top/bottom layer count
4
Build plate temperature
75 °C
Wall thickness
0.76 mm
Build plate temperature of initial layer
75 °C
Line count
2
Print speed
50 mm/s

After the mechanical design is drawn and produced from a 3D printer, the components that were soldered before are placed inside the headset.

A comparison the product with other similar products is given in Table 2.

3. Results

In this study, the driver's sleep state was estimated by calculating the angle of the driver's head according to the head position. The design realized with Arduino pro micro, GY87 IMU and HC05 Bluetooth and the goal has been achieved with the angle values given in Table 3.

Fig. 13D printing of the headset case

3D printing of the headset case

a) Printing of the headset case

3D printing of the headset case

b) Usage of the headset

Table 2Comparison of similar products

LGI driver fatigue alarm
Cure sleepiness right away
Car driver sleepy reminders
Developed remote driver sleep monitor
Only works within 15°-20° angle values
Only works when the head falls forward
Only works when the head falls forward
Works in situations where the head falls to the right, left, front and back
Soft but heavy
Relatively hard but very lightweight
Soft and lightweight
Relatively hard and lightweight
Rechargeable
Non-rechargeable
Non-rechargeable
Rechargeable
Warns the driver with sound and vibration
Warns the driver with sound and vibration
Warns the driver with sound and vibration
Warns the driver via the mobile application and waits an action from the driver. If driver won’t reply, it sends the coordinates of the driver to the observer

Table 3Headset sleep detection angles

Head position
Yaw
Pitch
Roll
Tilted left
315° <θyaw< 330°
135° <θpitch< 145°
85° <θroll< 100°
Tilted right
295° <θyaw< 310°
140° <θpitch< 150°
135° <θroll< 145°
Tilted down
330° <θyaw< 355°
<θpitch< 20°
80° <θroll< 90°
Tilted up
280° <θyaw< 290°
100° <θpitch< 120°
100° <θroll< 120°

A headset has been designed to keep these modules that detect the head position and to be worn by the driver. According to the results, it was thought that this design could be reduced. Then, an interactive mobile application was designed to follow the driver. Thanks to this application, when the driver is predicted to be asleep, an alarm is sent to the driver. Despite this estimation being wrong, the driver was given 5 seconds to stop the alarm. For the alarm that is not stopped within 5 seconds, an SMS was sent to the headquarters of the driver.

4. Conclusions

In this project, it is aimed to make a product that works in accordance with its purpose. As a result of the project, the product targeted criteria were realized.

This design can be used for monitoring fleet drivers. A project can be developed to determine sleep tendencies and factors that cause sleep.

For now, from 10° to 20° limit angles are identified of sleeping state for roll, pitch, and yaw for the headset, but a self-calibrating system is planned for future studies.

Artificial intelligence and machine learning methods will be used with the collected data from drivers to learn where and in what conditions drivers sleep or accidents happen [10, 11].

In the planned studies, it is envisaged to use system identification methods like airplane calibration systems, so that the headset can self-calibrate [12]. Also, this product will be produced with plastic injection method instead of 3-D printing, using lean production techniques and innovative design techniques, with less cost and less errors [13, 14].

References

  • G. Sikander and S. Anwar, “Driver fatigue detection systems: a review,” IEEE Transactions on Intelligent Transportation Systems, Vol. 20, No. 6, pp. 2339–2352, Jun. 2019, https://doi.org/10.1109/tits.2018.2868499
  • B. Warwick, N. Symons, X. Chen, and K. Xiong, “Detecting driver drowsiness using wireless wearables,” in 2015 IEEE 12th International Conference on Mobile Ad Hoc and Sensor Systems (MASS), pp. 585–588, Oct. 2015, https://doi.org/10.1109/mass.2015.22
  • S. Hu and G. Zheng, “Driver drowsiness detection with eyelid related parameters by support vector machine,” Expert Systems with Applications, Vol. 36, No. 4, pp. 7651–7658, May 2009, https://doi.org/10.1016/j.eswa.2008.09.030
  • M. Mahmoodi and A. Nahvi, “Driver drowsiness detection based on classification of surface electromyography features in a driving simulator,” Proceedings of the Institution of Mechanical Engineers, Part H: Journal of Engineering in Medicine, Vol. 233, No. 4, pp. 395–406, Apr. 2019, https://doi.org/10.1177/0954411919831313
  • H. Singh, J. S. Bhatia, and J. Kaur, “Eye tracking based driver fatigue monitoring and warning system,” in 2010 India International Conference on Power Electronics (IICPE), pp. 1–6, Jan. 2011, https://doi.org/10.1109/iicpe.2011.5728062
  • Wang Rongben, Guo Lie, Tong Bingliang, and Jin Lisheng, “Monitoring mouth movement for driver fatigue or distraction with one camera,” in 7th International IEEE Conference on Intelligent Transportation Systems, pp. 314–319, 2004, https://doi.org/10.1109/itsc.2004.1398917.x
  • E. Murphy-Chutorian and M. M. Trivedi, “Head pose estimation and augmented reality tracking: an integrated system and evaluation for monitoring driver awareness,” IEEE Transactions on Intelligent Transportation Systems, Vol. 11, No. 2, pp. 300–311, Jun. 2010, https://doi.org/10.1109/tits.2010.2044241.g
  • B. Reddy, Y.-H. Kim, S. Yun, C. Seo, and J. Jang, “Real-time driver drowsiness detection for embedded system using model compression of deep neural networks,” in 2017 IEEE Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), pp. 438–445, Jul. 2017, https://doi.org/10.1109/cvprw.2017.59
  • Z. Li, S. Li, R. Li, B. Cheng, and J. Shi, “Online detection of driver fatigue using steering wheel angles for real driving conditions,” Sensors, Vol. 17, No. 3, p. 495, Mar. 2017, https://doi.org/10.3390/s17030495
  • S. Ersoy, T. Waqar, and E. Toptaş, “Automatic decision making system with environmental and traffic data,” Mathematical Models in Engineering, Vol. 7, No. 2, pp. 30–39, Jun. 2021, https://doi.org/10.21595/mme.2021.22020
  • T. Boz, M. Unel, V. A. M. Yilmaz, C. Gurel, C. Bayburtlu, and K. Koprubasi, “Diesel engine NOx emission modeling with airpath input channels,” in IECON 2015 – 41st Annual Conference of the IEEE Industrial Electronics Society, p. 00338, Nov. 2015, https://doi.org/10.1109/iecon.2015.7392622
  • M. Karakaya, M. F. Çelebi, A. E. Gök, and S. Ersoy, “Discovery of agricultural diseases by deep learning and object detection,” Environmental Engineering and Management Journal, Vol. 21, No. 1, pp. 163–173, Jan. 2022.
  • E. Toptas, “Innovative approach to the design of mechanical parts,” Journal of Mechatronics and Artificial Intelligence in Engineering, Vol. 1, No. 1, pp. 14–20, Jun. 2020, https://doi.org/10.21595/jmai.2020.21473
  • Osman Ülkir, Ishak Ertuğrul, Sezgin Ersoy, and Burak Can Girgin, “Yalın üretimde malzeme transfer optimizasyonu,” Osmaniye Korkut Ata Üniversitesi Fen Bilimleri Enstitüsü Dergisi, Vol. 2, No. 1, pp. 74–78, Dec. 2019.

Cited by

Advances in Internet, Data & Web Technologies
Evjola Spaho | Orjola Jaupi | Anxhela Cala
(2024)

About this article

Received
04 October 2022
Accepted
23 October 2022
Published
14 November 2022
Keywords
driver drowsiness detection
transportation safety
smart transportation
Acknowledgements

This project was supported by Alışan International Transports Company.

The project team received an incentive award with the success of 2242 University Students Research Projects Competitions held under TEKNOFEST Aviation, Space and Technology Festival organized by The Scientific and Technological Research Council of Turkey (TÜBİTAK).

Data Availability

The datasets generated during and/or analyzed during the current study are available from the corresponding author on reasonable request.

Author Contributions

Zeynep Ekşi: data curation, resources, validation, visualization, writing – original draft preparation. Ayşe Nur Camgöz: formal analysis, investigation. Melike Özarslan: software. Emre Sözer: conceptualization and methodology. Mehmet Fatih Çelebi: project administration, writing – review and editing. Ahmet Feyzioğlu: supervision.

Conflict of interest

The authors declare that they have no conflict of interest.