Implementasi YOLOv8 untuk Deteksi Objek Gelas pada Lingkungan Brewing Kopi Menggunakan Dataset Citra Kustom
DOI:
https://doi.org/10.62710/vma9rt92Keywords:
YOLOv8; Object Detection; Coffee Glass; Computer Vision; Deep Learning; Custom DatasetAbstract
The advancement of computer vision technology has accelerated the deployment of object detection systems across various industrial sectors, including visual monitoring in production environments. You Only Look Once (YOLO) is a deep learning-based object detection algorithm recognized for its high inference speed and competitive accuracy on real-time detection tasks. This study implements YOLOv8 for detecting glass objects in a coffee brewing environment using a custom image dataset collected independently. The dataset comprises 152 images with 1 object class annotated using Label Studio in YOLO bounding box format. The YOLOv8n model was trained using SGD optimizer, 640×640 pixel input size, batch size 16, and mosaic data augmentation for 50 epochs. Evaluation used Precision, Recall, F1-score, and mAP@0.5 metrics. Results show mAP@0.5 of 0.847, maximum F1-score of 0.88 at confidence threshold 0.493, and precision of 1.00 at threshold 0.688. Confusion matrix analysis revealed 27 of 36 objects correctly detected with 3 false positives and 6 false negatives. This study demonstrates that YOLOv8 can be effectively implemented for glass object detection in the coffee brewing domain using a limited-scale custom dataset.
Downloads
References
Bochkovskiy, A., Wang, C. Y., & Liao, H. Y. M. (2020). YOLOv4: Optimal speed and accuracy of object detection. arXiv preprint arXiv:2004.10934. https://arxiv.org/abs/2004.10934
Chen, X., & Kamavuako, E. N. (2023). Vision-based methods for food and fluid intake monitoring: A literature review. Sensors, 23(13), 6137. https://doi.org/10.3390/s23136137
Diwan, T., Anirudh, G., & Tembhurne, J. V. (2023). Object detection using YOLO: Challenges, architectural successors, datasets and applications. Multimedia Tools and Applications, 82(6), 9243–9275. https://doi.org/10.1007/s11042-022-13644-y
Jocher, G., Chaurasia, A., & Qiu, J. (2023). Ultralytics YOLO (Version 8.0.0) [Software]. Ultralytics. https://github.com/ultralytics/ultralytics
Krizhevsky, A., Sutskever, I., & Hinton, G. E. (2012). ImageNet classification with deep convolutional neural networks. Advances in Neural Information Processing Systems, 25, 1097–1105.
LeCun, Y., Bengio, Y., & Hinton, G. (2015). Deep learning. Nature, 521(7553), 436–444. https://doi.org/10.1038/nature14539
Liu, W., Anguelov, D., Erhan, D., Szegedy, C., Reed, S., Fu, C. Y., & Berg, A. C. (2016). SSD: Single shot multibox detector. Lecture Notes in Computer Science, 9905, 21–37. https://doi.org/10.1007/978-3-319-46448-0_2
Nafis Alfarizi, D., Agung Pangestu, R., Aditya, D., Adi Setiawan, M., & Rosyani, P. (2023). Penggunaan metode YOLO pada deteksi objek: Sebuah tinjauan literatur sistematis. Jurnal Artificial Intelligence dan Sistem Penunjang Keputusan, 1(1), 54–63.
Nafis Alfarizi, D., Agung Pangestu, R., Aditya, D., Adi Setiawan, M., & Rosyani, P. (2024). Pengembangan sistem deteksi objek botol real-time dengan YOLOv8 untuk aplikasi vision. Indonesian Journal Computer Science (IJCS), 3(1), 44–50. https://doi.org/10.31294/ijcs.v3i1
Redmon, J., Divvala, S., Girshick, R., & Farhadi, A. (2016). You only look once: Unified, real-time object detection. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 779–788. https://doi.org/10.1109/CVPR.2016.91
Redmon, J., & Farhadi, A. (2018). YOLOv3: An incremental improvement. arXiv preprint arXiv:1804.02767. https://arxiv.org/abs/1804.02767
Ren, S., He, K., Girshick, R., & Sun, J. (2015). Faster R-CNN: Towards real-time object detection with region proposal networks. Advances in Neural Information Processing Systems, 28, 91–99.
Terven, J., Cordova-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, C. Y., Bochkovskiy, A., & Liao, H. Y. M. (2023). YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 7464–7475.
Yaseen, M. (2024). What is YOLOv8: An in-depth exploration of the internal features of the next-generation object detector. arXiv preprint arXiv:2408.15857. https://arxiv.org/abs/2408.15857
Zhao, Z. Q., Zheng, P., Xu, S. T., & Wu, X. (2019). Object detection with deep learning: A review. IEEE Transactions on Neural Networks and Learning Systems, 30(11), 3212–3232. https://doi.org/10.1109/TNNLS.2018.2876865
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Dikcyawan Sa’putra, Restiadi Bayu Taruno, Pipit Febriana Dewi, Fadmi Rina (Author)

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








