IMPLEMENTASI SMART GATE BERBASIS YOLOv8n UNTUK DETEKSI KELENGKAPAN TOPI DAN DASI YOLOv8n-BASED SMART GATE IMPLEMENTATION FOR HAT AND TIE COMPLETENESS DETECTION

Authors

  • Abdul Majid Gaffar majid universitas pohuwato Author
  • Muhammad Asri asri Author
  • Sudirman Melangi sudi Author

Keywords:

ESP32-S3;, YOLOv8n;, object detection;, smart gate;, school uniform

Abstract

This study implements a local-network smart gate prototype for monitoring hat and tie completeness using an ESP32-S3 Camera and YOLOv8n. The camera acquires JPEG frames and transmits them through Wi-Fi to a Python Flask backend, where OpenCV and YOLOv8n perform object detection; a React dashboard presents detection status and stores operational logs. The dataset contains 3,130 images divided into 2,471 training, 326 validation, and 333 testing images. The active model was trained for 10 epochs at 320 × 320 pixels on CPU and was executed by the backend at 640-pixel inference size with a confidence threshold of 0.20. The best validation epoch produced 90.824% precision, 87.958% recall, 94.314% mAP50, and 63.870% mAP50–95. Eight dashboard observations showed 7.04–11.62 FPS with an average of 8.79 FPS. Functional tests confirmed camera streaming, hat and tie detection, status display, image storage, and CSV logging. The current completeness decision is still frame-based, so further development should associate attributes with each individual and integrate the physical gate trigger.

References

Amin, M. S., Wang, C., & Jabeen, S. (2023). Fashion sub-categories and attributes prediction model using deep learning. The Visual Computer, 39, 3851–3864. https://doi.org/10.1007/s00371-022-02520-3

Deng, L., Zhou, J., & Liu, Q. (2024). Helmet Net: An improved YOLOv8 algorithm for helmet wearing detection. International Journal of Networked and Distributed Computing, 12, 329–343. https://doi.org/10.1007/s44227-024-00040-1

Dody, M., & Yohannes, Y. (2025). Perangkat lunak pendeteksi jenis seragam siswa jenjang pendidikan menengah menggunakan YOLOv8. JATISI (Jurnal Teknik Informatika dan Sistem Informasi), 12(2), 260–271. https://doi.org/10.35957/jatisi.v12i2.11356

Duan, P., & Liang, X. (2024). An improved YOLOv8-based foreign detection algorithm for transmission lines. Sensors, 24(19), 6468. https://doi.org/10.3390/s24196468

Elhanashi, A., Dini, P., Saponara, S., & Zheng, Q. (2024). TeleStroke: Real-time stroke detection with federated learning and YOLOv8 on edge devices. Journal of Real-Time Image Processing, 21, 121. https://doi.org/10.1007/s11554-024-01500-1

Gapur, A., Wahiddin, D., Al Mudzakir, T., & Indra, J. (2024). Personal protective equipment detection for occupational safety and health using YOLOv8 in manufacturing companies. Jurnal Teknik Informatika (JUTIF), 5(4), 1175–1182. https://doi.org/10.52436/1.jutif.2024.5.5.2619

Ginanjar, A., Kusnadi, A., & Risnandar. (2026). Performance comparison of YOLOv8n and Faster R-CNN for automatic detection of school uniform attributes. JTERA (Jurnal Teknologi Rekayasa), 11(1), 189–198. https://doi.org/10.31544/jtera.v11.i1.2026.189-198

Jahan, M. K., Bhuiyan, F. I., Amin, A., Mridha, M. F., Safran, M., Alfarhood, S., & Che, D. (2025). Enhancing the YOLOv8 model for realtime object detection to ensure online platform safety. Scientific Reports, 15, 21167. https://doi.org/10.1038/s41598-025-08413-4

Khabibullah, Z. B., Yuniarno, E. M., & Rachmadi, R. F. (2025). Tracking soccer player based on DeepSORT algorithm with YOLOv8 framework. JAREE (Journal on Advanced Research in Electrical Engineering), 9(1). https://doi.org/10.12962/jaree.v9i1.413

Li, D., & Wang, J. (2024). Improvement of helmet detection algorithm based on YOLOv8. International Journal of Advanced Network, Monitoring and Controls, 9(4), 28–34. https://doi.org/10.2478/ijanmc-2024-0034

Puspita, T., Swedia, E. R., Cahyanti, M., & Septian, M. R. D. (2025). A real-time helmet detection system based on YOLOv8 to support traffic law enforcement. Sebatik, 29(1), 1–10. https://doi.org/10.46984/sebatik.v29i1.2585

Song, X., Zhang, T., & Yi, W. (2024). An improved YOLOv8 safety helmet wearing detection network. Scientific Reports, 14, 17550. https://doi.org/10.1038/s41598-024-68446-z

Terven, J., Córdova-Esparza, D.-M., & Romero-González, J.-A. (2023). A comprehensive review of YOLO architectures in computer vision: From YOLOv1 to YOLOv8 and YOLO-NAS. Machine Learning and Knowledge Extraction, 5(4), 1680–1716. https://doi.org/10.3390/make5040083

Wang, H., Luo, S., & Wang, Q. (2024). Improved YOLOv8n for foreign-object detection in power transmission lines. IEEE Access, 12, 121433–121440. https://doi.org/10.1109/ACCESS.2024.3452782

Wang, J., Gao, J., & Zhang, B. (2025). A small object detection model in aerial images based on CPDD-YOLOv8. Scientific Reports, 15, 770. https://doi.org/10.1038/s41598-024-84938-4

Zhao, Y., & Chen, G. (2025). LPAE-YOLOv8: Lightweight aerial small object detection via LSE-Head and adaptive attention. Scientific Reports, 15, 44780. https://doi.org/10.1038/s41598-025-28741

Published

2026-09-22