DD System
DD System
IV. RESULTS
After testing the system in different environments and
times (Table-1), it can be concluded that the whole system
works properly under an environmental constraint that is
Fig. 3.2 (b) Exploded view of the structure
sufficient light intensity (more than 20 lx) and incident
direction. The assembled view of the system in normal and
low light intensity is shown in Fig. 4.1(a) and Fig. 4.1(b).
As tested, the ESP32CAM captures proper images in a
sufficient light-intensity environment. It is recommended to
use the system with light intensity 80-100 lx incident on the
face. The ESP32CAM consumes nearly 200mA when used
with the camera and WIFI. Since we are using 4 AA
batteries, we can get roughly 3600mAh (900mAh x 4)
3600 mAh
battery life= preventing drowsiness-related accidents and improving
200 mA safety in both driving and occupational settings.
¿ 18 hours of battery life
This time is theoretical, in practical use (including losses
due to resistance) you can expect nearly 12 hours of battery VI. FUTURE SCOPE
life from the device. We have used 4 AA batteries for Following are a few suggestions that can improve the
powering ESP32CAM, these batteries are connected in system performance based on the deviation noted:
series and contribute a total of 6 Volts, since this is supplied Use of Infrared Light: Using a 5mm White Flash
to the 5V pin of ESP32CAM, there is a voltage regulator on- LED is inconvenient as it makes it difficult to see
board which step-down this voltage to 5 Volts. Due to this properly when the LED flashes on the user’s face
step-down operation, heat is generated: directly. To address this issue, Infrared light can be
used. But to implement this solution we need to
Power=voltage difference x current = (6V – 5V) x change the camera OVA2640 (which is by default
200mA = 0.2 W
used by ESP32CAM) because it has a built-in
This power is dissipated as heat. We have used a heatsink on infrared filter, making it incompatible with infrared
the voltage regulator to dissipate this heat properly. light.
Adjustable camera position: Since the camera is fixed
at an angle of 78 degrees, this limits the system and
user position relative to each other. To address this
issue, a screw-based adjustable hinge can be used
which provides a wider range of angles for the camera
it can be set to, making it more versatile to use in
every environment.
Application-based dataset: Current datasets consist of
images collected during the day or in well-lit
environments which may not accurately reflect the
Fig. 4.1 (a) at normal light intensity (b) at low light intensity real-world scenarios of driving at night. Including
images captured in low-light conditions or with IR
TABLE – I PERFORMACE OF THE SYSTEM cameras can improve the system's accuracy to work at
Trial no. Time Accuracy night.
1 Morning 93.4 % REFERENCES
2 Afternoon 96.6 % [1] Timothy Stewart, ‘Overview of Motor Vehicle Crashes in 2020’
(Report No. DOT HS 813 266), National Highway Traffic Safety
3 Evening 82.5 % Administration, 2022.
[2] Anne G. Wheaton, et al., ‘Drowsy Driving — 19 States and the
4 Night 72.9 % District of Columbia, 2009–2010’ (Report No. Vol. 61 / Nos. 51 & 52),
MMWR, January 4, 2013.
[3] National Highway Traffic Safety Administration, ‘Asleep at the Wheel
V. CONCLUSION - A National compendium of efforts to eliminate Drowsy driving’
In conclusion, the presented drowsiness detection system (Report No. DOT HS 812 352), National Highway Traffic Safety
Administration, 2017.
using ESP32CAM and convolutional neural networks
[4] Chris Hardesty, ‘Electronic Stability Control: Everything You Need to
(CNN) offers a promising solution to address the critical Know’, Kelley Blue Book. https://www.kbb.com/car-advice/electronic-
issue of drowsy driving and workplace fatigue. The system, stability-control/ (accessed Mar. 02, 2023).
by monitoring the driver's eyes can detect drowsiness based [5] S. Mehta, S. Dadhich, S. Gumber, and A. J. Bhatt, ‘Real-Time Driver
on eye closure duration. If the alarm is triggered repeatedly, Drowsiness Detection System Using Eye Aspect Ratio and Eye
Closure Ratio’, SSRN Electronic Journal, 2019.
indicating persistent drowsiness, it continues until the device [6] M. Poursadeghiyan, A. Mazloumi, G. Saraji, mohammad mehdi
is rebooted or switched off. The performance evaluation of Baneshi, A. Khammar, and M. Ebrahimi, ‘Using Image Processing in
the system showcased promising results in environments the Proposed Drowsiness Detection System Design’, Iran J Public
Health, vol. 47, pp. 1370–1377, Apr. 2018.
with sufficient light intensity and incident direction,
[7] Dustin Stewart, ‘Preventing Drowsy-Driving Accidents Using
emphasizing the importance of affordable and reliable Convolutional Neural Networks,’ Towards Data Science, Apr 13,
solutions in enhancing road safety and overall work safety 2021. [Online]. Available: https://towardsdatascience.com/drowsiness-
well-being. detection-using-convolutional-neural-networks-face-recognition-and-
tensorflow-56cdfc8315ad
This research paper provides foundations for developing
an end-consumer product that can significantly contribute to