Deteksi Kantuk Pengemudi Berbasis Eye Aspect Ratio dan Head Pose Estimation dengan Integrasi IoT
Abstract
This study proposes a real-time driver drowsiness detection system integrating computer vision with Internet of Things (IoT) technology on an affordable embedded platform. The system uses a Camera Module 3 Wide NoIR connected to a Raspberry Pi 3 Model B+ to capture driver facial images. Two visual indicators are computed in parallel from 68 facial landmarks extracted using dlib: Eye Aspect Ratio (EAR) for detecting prolonged eye closure, and Head Pose Estimation using solvePnP for detecting head nodding. An OR-logic decision mechanism triggers an audio alarm when EAR falls below 0.25 for five consecutive frames or Pitch angle exceeds 15 degrees for ten consecutive frames. Events are classified as KANTUK_MATA, KANTUK_KEPALA, or KEDUANYA and sent to firebase Realtime Database for remote monitoring. Black Box testing with 11 scenarios confirms all core functions operate correctly. Average response times of 2.00 seconds via EAR and 2.70 seconds via Head Pose are within acceptable ranges for early drowsiness warning. The multi-indicator approach demonstrates that head nodding is detected earlier than eye closure in gradual drowsiness scenarios, providing earlier warning than single-indicator systems. Under high CPU load conditions (>80%), the frame rate drops to 5 fps, resulting in a total system latency of 2.8–4.2 seconds; this condition is still adequate for early warning but not for sub-second responses. Across the 11 Black Box testing scenarios, the system achieved 100% precision (no false alarms during normal blinking) and 100% recall (all drowsiness conditions detected), although the testing was conducted under controlled laboratory conditions, necessitating further generalization to real-world environments.
Downloads
References
D. Andarini, A. Camelia, and M. M. Ibrahim, “Factors related to road accidents in Palembang, South Sumatera, Indonesia,” International Journal of Public Health Science (IJPHS), vol. 10, no. 3, p. 638, Sep. 2021, doi: 10.11591/ijphs.v10i3.20768.
H. Pranoto, A. Adriansyah, D. Feriyanto, A. Wahab, and S. Zakaria, “Propose Safety Engineering Concept Speed Limiter And Fatigue Control Using SLIFA For Truck And Bus,” SINERGI, vol. 24, no. 3, pp. 237–244, Jul. 2020, doi: 10.22441/sinergi.2020.3.009.
R. Zuraida and B. S. Abbas, “The Factors Influencing Fatigue Related to the Accident of Intercity Bus Drivers in Indonesia,” International Journal of Technology, vol. 11, no. 2, p. 342, Apr. 2020, doi: 10.14716/ijtech.v11i2.3792.
M. Mansyur, R. Sagitasari, G. Wangge, A. B. Sulistomo, and A. Kekalih, “Long working hours, poor sleep quality, and work-family conflict: determinant factors of fatigue among Indonesian tugboat crewmembers,” BMC Public Health, vol. 21, no. 1, p. 1832, Dec. 2021, doi: 10.1186/s12889-021-11883-6.
S. Soares, T. Monteiro, A. Lobo, A. Couto, L. Cunha, and S. Ferreira, “Analyzing Driver Drowsiness: From Causes to Effects,” Sustainability, vol. 12, no. 5, p. 1971, Mar. 2020, doi: 10.3390/su12051971.
M. A. Puspasari et al., “Prediction of drowsiness using EEG signals in young Indonesian drivers,” Heliyon, vol. 9, no. 9, p. e19499, Sep. 2023, doi: 10.1016/j.heliyon.2023.e19499.
A. A. D. P. Dewi, “Investigating Motorists Perceptions towards Road Safety,” Civil Engineering and Architecture, vol. 9, no. 5, pp. 1339–1346, Aug. 2021, doi: 10.13189/cea.2021.090507.
T. Suryadi and K. Kulsum, “Forensic investigation in a multiple trauma deceleration case due to road traffic accidents,” Bali Medical Journal, vol. 9, no. 1, pp. 172–177, Apr. 2020, doi: 10.15562/bmj.v9i1.1728.
W. Suprihatiningsih, A. M. Leman, D. Feriyanto, H. Pranoto, and N. Afizi Shuaib, “Impact on Driver Behavior, Performance, Fatigue, Over Speed and Infrastructure as A Factor of Road Accident: A Review,” IOP Conf. Ser. Mater. Sci. Eng., vol. 864, no. 1, p. 012105, May 2020, doi: 10.1088/1757-899X/864/1/012105.
M. A. Khan, T. Nawaz, U. S. Khan, A. Hamza, and N. Rashid, “IoT-Based Non-Intrusive Automated Driver Drowsiness Monitoring Framework for Logistics and Public Transport Applications to Enhance Road Safety,” IEEE Access, vol. 11, pp. 14385–14397, 2023, doi: 10.1109/ACCESS.2023.3244008.
Raspberry Pi Ltd, “Raspberry Pi Documentation,” raspberrypi.com. Accessed: Jul. 13, 2026. [Online]. Available: https://www.raspberrypi.com/documentation/
R. Shimpi, V. Chaudhari, P. Patil, B. Narkhede, V. D. Chaudhari, and M. N. Patil, “Driver Drowsiness Detection System Using Raspberry Pi,” International Journal of Innovations in Engineering and Science, vol. 10, no. 4, pp. 22–25, Jun. 2025, doi: 10.46335/IJIES.2025.10.4.5.
E. Civik and U. Yuzgec, “Real-time driver fatigue detection system with deep learning on a low-cost embedded system,” Microprocess. Microsyst., vol. 99, p. 104851, Jun. 2023, doi: 10.1016/j.micpro.2023.104851.
Z. Chen, D. Shi, Y. Guo, and X. Fu, “Real-Time Multi-Feature Driver Drowsiness Detection Based on Facial Landmarks Using LSTM on Raspberry Pi,” Sensors, vol. 25, no. 3, p. 920, 2025, doi: 10.3390/s25030920.
R. Florez, F. Palomino-Quispe, A. B. Alvarez, R. J. Coaquira-Castillo, and J. C. Herrera-Levano, “A Real-Time Embedded System for Driver Drowsiness Detection Based on Visual Analysis of the Eyes and Mouth Using Convolutional Neural Network and Mouth Aspect Ratio,” Sensors, vol. 24, no. 19, p. 6261, Sep. 2024, doi: 10.3390/s24196261.
S. Das, S. Pratihar, B. Pradhan, R. H. Jhaveri, and F. Benedetto, “IoT-Assisted Automatic Driver Drowsiness Detection through Facial Movement Analysis Using Deep Learning and a U-Net-Based Architecture,” Information, vol. 15, no. 1, p. 30, Jan. 2024, doi: 10.3390/info15010030.
R. Kaur and S. Bhatt, “Design and Implementation of Drowsiness Detection System for Driver Safety Using Facial Landmarks,” Int. J. Comput. Appl., vol. 184, no. 7, pp. 1–6, 2022, doi: 10.5120/ijca2022921934.
M.-M. Naddaf-Sh, A. Lee, K. Yen, E. Amini, and I. Soltani, “Low-Cost Infrared Vision Systems for Improved Safety of Emergency Vehicle Operations Under Low-Visibility Conditions,” IEEE Access, vol. 13, pp. 173241–173253, 2025, doi: 10.1109/ACCESS.2025.3615117.
N. Lin and Y. Zuo, “Advancing driver fatigue detection in diverse lighting conditions for assisted driving vehicles with enhanced facial recognition technologies,” PLoS One, vol. 19, no. 7, p. e0304669, Jul. 2024, doi: 10.1371/journal.pone.0304669.
K. A. Obayes and A. Hamzah, “Using of prototyping in develop an employee information management,” Measurement: Sensors, vol. 24, p. 100557, Dec. 2022, doi: 10.1016/j.measen.2022.100557.
C. Chen, H. Gu, S. Lian, Y. Zhao, and B. Xiao, “Investigation of Edge Computing in Computer Vision-Based Construction Resource Detection,” Buildings, vol. 12, no. 12, p. 2167, Dec. 2022, doi: 10.3390/buildings12122167.
D. N. Bestari and A. Wibowo, “IoT Based Real-Time Weather Monitoring System Using Telegram Bot and Thingsboard Platform,” International Journal of Interactive Mobile Technologies (iJIM), vol. 17, no. 06, pp. 4–19, Mar. 2023, doi: 10.3991/ijim.v17i06.34129.
S. Ayas, B. Donmez, and X. Tang, “Drowsiness Mitigation Through Driver State Monitoring Systems: A Scoping Review,” Human Factors: The Journal of the Human Factors and Ergonomics Society, vol. 66, no. 9, pp. 2218–2243, Sep. 2024, doi: 10.1177/00187208231208523.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Deteksi Kantuk Pengemudi Berbasis Eye Aspect Ratio dan Head Pose Estimation dengan Integrasi IoT
Pages: 1143-1153
Copyright (c) 2026 Rama Amirul Ramadhan, Kurniawan D. Irianto

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).






















