Optimization of the YOLOv8-Nano Deep Learning Model Through Knowledge Distillation for Driver Drowsiness Detection on Android Devices

Authors

  • Muhamad Fauzan STMIK Mardira Indonesia Author
  • Feri Alpiyasin Telkom University Author

DOI:

https://doi.org/10.55208/bistek.v19.i2.06

Keywords:

Deep Learning, YOLOv8-Nano, Knowledge Distillation, Driver Drowsiness Detection, Android, Object Detection

Abstract

Driver drowsiness is a major concern in transportation safety and requires an automated detection system capable of operating efficiently on mobile devices. This study aims to optimize the deep learning model YOLOv8-Nano for driver drowsiness detection through Knowledge Distillation while maintaining its lightweight characteristics for Android deployment. The dataset consists of 3,090 images representing six classes, namely eye_closed, eye_open, yawn, no_yawn, head_dropped, and head_straight. A YOLOv8-Large model was trained as the teacher model for 100 epochs using the default random seed, while YOLOv8-Nano was evaluated through four experimental configurations: E0 as the baseline, E1 with logit distillation, E2 with logit and bounding box distillation, and E3 with logit, bounding box, and feature distillation. Each configuration was trained for 30 epochs using random seeds 42, 43, and 44, and the results were summarized using mean and standard deviation. The results show that E3 achieved the highest performance, with a Precision of 0.9260 ± 0.0066, Recall of 0.9018 ± 0.0050, F1-score of 0.9137 ± 0.0036, mAP@0.5 of 0.9323 ± 0.0015, and mAP@0.5:0.95 of 0.6368 ± 0.0030. Compared with the E0 baseline, E3 improved mAP@0.5 from 0.3845 ± 0.0360 to 0.9323 ± 0.0015. The optimized model maintains 3.2 million parameters, 8.7 GFLOPs, and a model size of 6.2 MB, with an inference time of 182–343 ms and an observed frame rate of 2.91–5.82 FPS on the target Android device. Functional testing using the Black Box method achieved a Pass result for all tested functions. These results indicate that Knowledge Distillation, particularly the combination of logit, bounding box, and feature distillation in E3, can improve the detection performance of YOLOv8-Nano while preserving its lightweight characteristics for Android deployment

References

Alpiyasin, F., Hermanto, C., Khoirunnisa, N., Rahmadanti, C., & Mutmainah, N. (2025). Implementation of ResNet 101 Architecture in Convolutional Neural Network (CNN) Algorithm to Detect Diseases in Chili Plant Leaves Based on Image Processing. Majalah Bisnis & IPTEK, 18(2), 164–175. https://doi.org/10.55208/bistek.v18i2.407

Cao, S., Li, M., Hays, J., Ramanan, D., Wang, Y.-X., & Gui, L. (2023). Learning Lightweight Object Detectors via Multi-Teacher Progressive Distillation. Proceedings of the 40th International Conference on Machine Learning, Proceedings of Machine Learning Research, 202, 3577–3598.

Cao, X., Hu, Y., & Zhang, H. (2025). LKD-YOLOv8: A Lightweight Knowledge Distillation-Based Method for Infrared Object Detection. Sensors, 25(13), 4054. https://doi.org/10.3390/s25134054

Debsi, A., Ling, G., Al-Mahbashi, M., Al-Soswa, M., & Abdullah, A. (2024). Driver distraction and fatigue detection in images using ME-YOLOv8 algorithm. IET Intelligent Transport Systems, 18(10), 1910–1930. https://doi.org/10.1049/itr2.12560

Edison, H., Wang, X., & Conboy, K. (2022). Comparing Methods for Large-Scale Agile Software Development: A Systematic Literature Review. IEEE Transactions on Software Engineering, 48(8), 2709–2731. https://doi.org/10.1109/TSE.2021.3069039

Fonseca, T., & Ferreira, S. (2025). Drowsiness Detection in Drivers: A Systematic Review of Deep Learning-Based Models. Applied Sciences, 15(16), 9018. https://doi.org/10.3390/app15169018

Gu, Q., Yin, S., Wang, D., Li, X., & Yin, H. (2025). Mining truck driver fatigue driving detection based on improved YOLOv8. China Safety Science Journal, 35(1), 60–66. https://doi.org/10.16265/j.cnki.issn1003-3033.2025.01.0147

Haryanti, T., Rakhmawati, N. A., & Subriadi, A. P. (2024). Measuring the digital transformation maturity level independently with the design science research methodology. Systems Engineering, 27(1), 159–176. https://doi.org/10.1002/sys.21714

Haryanti, T., Rakhmawati, N. A., Subriadi, A. P., & Tjahyanto, A. (2022). The Design Science Research Methodology (DSRM) for Self-Assessing Digital Transformation Maturity Index in Indonesia. Proceedings of the 2022 IEEE 7th International Conference on Information Technology and Digital Applications (ICITDA). https://doi.org/10.1109/ICITDA55840.2022.9971171

Hidayat, R. N., & Ibnugraha, P. D. (2025). The Dashboard of Remote Monitoring System for Driver Fatigue. Journal Europeen Des Systemes Automatises, 58(6), 1089–1100. https://doi.org/10.18280/jesa.580601

Jocher, G., Chaurasia, A., & Qiu, J. (2023). Ultralytics YOLOv8. https://github.com/ultralytics/ultralytics

Khan, N. A., & Rafat, A. M. S. (2025). Optimizing Deep Learning Models for Resource-Constrained Environments With Cluster-Quantized Knowledge Distillation. Engineering Reports, 7(5), e70187. https://doi.org/10.1002/eng2.70187

Lan, Q., & Tian, Q. (2024). Gradient-Guided Knowledge Distillation for Object Detectors. Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, 424–433.

Park, S., Kang, D., & Paik, J. (2024). Cosine similarity-guided knowledge distillation for robust object detectors. Scientific Reports, 14, 18888. https://doi.org/10.1038/s41598-024-69813-6

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

Xie, Z., Hj Salam, M. S., & Taliba, J. (2025). Fatigue Driving Recognition Using Improved YOLOv8. International Journal of Innovative Computing, 15(2), 191–199. https://doi.org/10.11113/ijic.v15n2.549

Yu, H., Luo, Q., Peng, W., Zheng, L., Ju, J., & Zhuo, H. (2025). PKD-YOLOv8: A Collaborative Pruning and Knowledge Distillation Framework for Lightweight Rapeseed Pest Detection. Sensors, 25(16), 5004. https://doi.org/10.3390/s25165004

Downloads

Additional Files

Published

27-11-2026

How to Cite

Fauzan, M. ., & Alpiyasin, F. (2026). Optimization of the YOLOv8-Nano Deep Learning Model Through Knowledge Distillation for Driver Drowsiness Detection on Android Devices. Majalah Bisnis & IPTEK, 19(2), 194-220. https://doi.org/10.55208/bistek.v19.i2.06