RANCANG BANGUN SISTEM PENGAMBILAN KEPUTUSAN PENDETEKSI KANTUK PENGEMUDI BERBASIS INTERNET OF THINGS DENGAN OUTPUT PERINGATAN MENGGUNAKAN ALGORITMA NAIVE BAYES
DOI:
https://doi.org/10.61722/jssr.v4i6.13037Keywords:
Internet of Things, kantuk pengemudi, Naive Bayes, ESP32, MPU6050, FirebaseAbstract
Kantuk saat mengemudi merupakan salah satu faktor yang dapat menurunkan konsentrasi dan kewaspadaan pengemudi sehingga meningkatkan risiko kecelakaan, khususnya pada operasional kendaraan berat di lingkungan proyek konstruksi. Penelitian ini bertujuan untuk merancang dan membangun sistem pendeteksi kantuk pengemudi berbasis Internet of Things (IoT) dengan menerapkan algoritma Naive Bayes sebagai metode klasifikasi serta buzzer sebagai perangkat peringatan. Penelitian ini menggunakan metode Research and Development (R&D) dengan pendekatan kuantitatif deskriptif. Sistem yang dikembangkan menggunakan mikrokontroler ESP32, sensor inframerah FC-51 untuk mendeteksi kondisi mata, serta sensor MPU6050 untuk memperoleh nilai kemiringan kepala berdasarkan parameter pitch dan roll. Data sensor dikirimkan melalui jaringan Wi-Fi ke server berbasis Python dan Flask untuk diproses menggunakan algoritma Naive Bayes. Hasil klasifikasi dibagi menjadi tiga kategori, yaitu normal, mengantuk, dan sangat mengantuk. Hasil prediksi dikirimkan kembali ke ESP32 untuk mengendalikan buzzer sebagai peringatan kepada pengemudi. Selain itu, data sensor dan hasil klasifikasi disimpan melalui Firebase Realtime Database dan ditampilkan pada website monitoring sehingga kondisi pengemudi dapat dipantau secara jarak jauh. Hasil penelitian menunjukkan bahwa sistem berhasil diimplementasikan dan mampu mengintegrasikan pembacaan sensor, pengiriman data, proses klasifikasi, pemberian peringatan suara, penyimpanan data, serta pemantauan melalui website. Sistem ini diharapkan dapat mendukung upaya peningkatan keselamatan pengemudi dan membantu proses pemantauan kondisi pengemudi oleh pengawas proyek.
References
Akinrolabu, O.D. and Akinpetide, A.M. (2026) “Development of a Smart , Arduino-Powered Cane with Alert-based Feedback Mechanism for Visually Impaired People,” International Journal of Computer Applications (0975187(82), pp. 56–62.
Al-Batah, M. et al. (2024) “Comparative Analysis of Advanced Data Mining Methods for Enhancing Medical Diagnosis and Prognosis,” Data and Metadata, 3. Available at: https://doi.org/10.56294/DM2024.465.
Alansari, W.A. and Mohd, M. (2024) “A Comparative Analysis of Machine Learning Algorithms for Diabetes Prediction,” Asia-Pacific Journal of Information Technology and Multimedia, 13(2), pp. 253–265. Available at: https://doi.org/10.17576/apjitm-2024-1302-07.
Bakheet, S. and Al-Hamadi, A. (2021) “A framework for instantaneous driver drowsiness detection based on improved HOG features and naïve bayesian classification,” Brain Sciences, 11(2), pp. 1–15. Available at: https://doi.org/10.3390/brainsci11020240.
Bunn, T.L. et al. (2025) “Quantitative and Narrative Analysis of Dump Truck-Related Injuries and Fatalities in the United States,” Safety, 11(1), pp. 1–12. Available at: https://doi.org/10.3390/safety11010017.
Chang, T.C. et al. (2021) “Smart driver drowsiness detection model based on analytic hierarchy process,” Sensors and Materials, 33(1), pp. 485–497. Available at: https://doi.org/10.18494/SAM.2021.3034.
Chang, Y.H., Wu, F.C. and Lin, H.W. (2025) “Design and Implementation of ESP32-Based Edge Computing for Object Detection,” Sensors, 25(6). Available at: https://doi.org/10.3390/s25061656.
Chitraningrum, N. et al. (2024) “Design and development of aircraft cargo fire early detection simulation system using arduino nano microcontroller” TEKNIKA: JURNAL SAINS DAN TEKNOLOGI 20(01), pp. 10–16. Available at: http://jurnal.untirta.ac.id/index.php/ju-tek/.
Choosri, P. and Kittiamornkul, N. (2022) “A Development of a Portable Sugar Measuring Device for Americano Coffee Using The Electrical,”ECTI TRANSACTIONS ON ELECTRICAL ENGINEERING, ELECTRONICS, AND COMMUNICATIONS VOL.24, NO.1, pp. 1–11.
Choudhary, A. (2024) "Internet of Things: a comprehensive overview, architectures, applications, simulation tools, challenges and future directions, Discover Internet of Things". Springer International Publishing. Available at: https://doi.org/10.1007/s43926-024-00084-3.
Dewi, F.K.S. (2021) “Klasifikasi Berita Menggunakan Metode Multinomial Naïve Bayes,” SCAN - Jurnal Teknologi Informasi dan Komunikasi, 16(3), pp. 248–258. Available at: https://doi.org/10.33005/scan.v16i3.2870.
Elisana, L. et al. (2021) “Jurnal Teknologi,” Jurnal Teknologi, 9(1), pp. 72–79.
Fajriah, D. and Syaripudin, A. (2024) “Rancang Bangun Pendeteksi Kantuk Pada Pengendara Roda Empat Berbasis NodeMCU ESP8266,” Jurnal Riset Informatika dan Inovasi Volume 2, No. 4, September Tahun 2024 ISSN 3025-0919 (media online) Rancang 2(4), pp. 742–752.
Gencheva, P., Hutov, I. and Genov, B. (2025) “Power Sources for Unmanned Aerial Vehicles : A Review,” INTERNATIONAL SCIENTIFIC JOURNAL "TRANS & MOTAUTO WORLD 115(3), pp. 112–115.
Gupta, A. and Jain, R. (2026) “Cervical Spine Posture Monitoring using Flex and IMU Sensors with Long Short Term Memory Networks,” pp. 123–145. Available at: https://doi.org/10.1007/978-981-96-7140-3_9.
Karlina, F.H. et al. (2021) “Study of Several Types of Lithium-polymer Batteries with 3s Battery Management System,” IOP Conference Series: Earth and Environmental Science, 927(1), pp. 0–6. Available at: https://doi.org/10.1088/1755-1315/927/1/012023.
Kee, S.M., Sultan, M. and Ali, M. (2021) “Carbon Dioxide and Carbon Monoxide Gas Detection System for Cars,” ELEKTRIKA- Journal of Electrical Engineering, 20(2–3), pp. 65–69. Available at: https://elektrika.utm.my/index.php/ELEKTRIKA_Journal/article/view/312.
Litayem, N. and Al-Sa’di, A. (2023) “Exploring the Programming Model, Security Vulnerabilities, and Usability of ESP8266 and ESP32 Platforms for IoT Development,” 2023 IEEE 3rd International Conference on Computer Systems, ICCS 2023, pp. 150–157. Available at: https://doi.org/10.1109/ICCS59700.2023.10335558.
Maiza, M.I.F., Budi, A.S. and Dahnial, S. (2022) “Implementasi Low Power pada Sistem Notifikasi Kantuk pada Pengemudi menggunakan Finite-State Machine berbasis Arduino,” Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer, 6(7), pp. 3077–3084. Available at: http://j-ptiik.ub.ac.id.
Muiz, B. et al. (2025) “IoT-enabled Drowsiness Driver Safety Alert System with Real-Time Monitoring Using Integrated Sensors Technology.” Available at: http://arxiv.org/abs/2502.00347.
Natarajan, S. et al. (2024) “Motion Sensing Mechanism Using the Lilypad Arduino and IMU Sensors: A Pilot Study,” Trends in Health …, 1(1), pp. 23–30. Available at: https://thi.reapress.com/journal/article/view/19%0Ahttps://thi.reapress.com/journal/article/download/19/12.
Pangestu, Y. and Basri, M. (2024) “Analisis Perbandingan Multinominal Naïve Bayes dan Adaboost dalam Mengklasifikasikan Sentimen Terkait Pinjaman Online Comparative Analysis of Multinominal Naïve Bayes and Adaboost in Classifying Sentiment Related to Online Loans,” Journal of Computing Engineering, System and Science) e-ISSN, 9(2), pp. 2502–7131. Available at: www.jurnal.unimed.ac.id.
Phogat, P., Dey, S. and Wan, M. (2025) “Powering the sustainable future: a review of emerging battery technologies and their environmental impact,” RSC Sustainability, 3(8), pp. 3266–3306. Available at: https://doi.org/10.1039/d5su00127g.
Plauska, I., Liutkevičius, A. and Janavičiūtė, A. (2023) “Performance Evaluation of C/C++, MicroPython, Rust and TinyGo Programming Languages on ESP32 Microcontroller,” Electronics (Switzerland), 12(1). Available at: https://doi.org/10.3390/electronics12010143.
Putra, B.A., Owen, V. and Wibowo, A. (2023) “Machine Learning Trained Drowsiness Detection using Gyroscope on a Microcontroller,” International Journal of Engineering Trends and Technology, 71(5), pp. 328–335. Available at: https://doi.org/10.14445/22315381/IJETT-V71I5P234.
Ronak, P.D. et al. (2024) “Improving Road Safety with Real-Time Monitoring : A Drowsiness Detection System Utilizing IR Sensors and Arduino Technology,” International Journal of Innovative Research in Engineering & Multidisciplinary Physical Sciences, 12(2), pp. 1–8.
Siam, S.M.K.M. et al. (2024) “Real-time accident detection and physiological signal monitoring to enhance motorbike safety and emergency response.” Available at: http://arxiv.org/abs/2403.19085.
Sugiyono. (2020) “Metode Penelitian Kuantitafif, Kualitatif dan R&D” Alfabeta, Bandung.
Susanti, W. et al. (2024) “Development of IoT-Based Accounting System for Automatic Environmental Data Monitoring” Interconnection: An Economic Perspective Horizon 2(1), pp. 50–59.
Trung, H.N. et al. (2025) EcoSentry: A Cost-Effective IoT System for Efficient Real-Time Forest Monitoring, Lecture Notes in Mechanical Engineering. Springer Nature Switzerland. Available at: https://doi.org/10.1007/978-3-031-93891-7_17.
Venica, L., Irawan, E.N. and Putri, D.I.H. (2024) “IoT with Firebase: Smart Ring Android App Using MAX30100 for Fatigue Detection,” Journal of Electrical, Electronic, Information, and Communication Technology, 6(1), p. 8. Available at: https://doi.org/10.20961/jeeict.6.1.81312.
Wang, Z. et al. (2024) “Research on the Human Motion Recognition Method Based on Wearable,” Biosensors, 14(7). Available at: https://doi.org/10.3390/bios14070337.
Yalli, J.S., Hasan, M.H. and Badawi, A. (2024) “Internet of Things (IoT): Origin, Embedded Technologies, Smart Applications, and Its Growth in the Last Decade,” IEEE Access, 12(May), pp. 1–26. Available at: https://doi.org/10.1109/ACCESS.2024.3418995.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 JOURNAL SAINS STUDENT RESEARCH

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.











