Implementation of the Yolov8 Model for Component Detection and Image-Based Free Nutritional Food Nutrition
DOI:
https://doi.org/10.61536/ambidextrous.v5i03.698Keywords:
Free Nutritious Food Program, Computer Vision, YOLOv8, Food Detection, Nutrition Estimation.Abstract
The Free Nutritional Food Program (MBG) is a government effort to improve the nutritional status of students by providing balanced nutritious meals. However, the process of verifying food components and evaluating nutritional content is still done manually, which is time-consuming, subjective, and inefficient. Previous studies have applied the YOLO algorithm for food detection and calorie estimation, but generally focused on individual consumption or only produced energy estimates. This study proposes the implementation of the YOLOv8 model integrated with a nutrition database to detect food components and estimate energy, protein, fat, and carbohydrates in the image-based Free Nutritional Food package. The dataset was obtained by extracting videos from the MBG package into 400 images consisting of 19 food classes. The dataset was annotated using bounding boxes, preprocessed, augmented, and divided into training, validation, and testing data. The model was trained using Roboflow with GPU support, then the detection results were integrated with the nutrition API and implemented in a web application to automatically present nutritional information. System performance was evaluated using precision, recall, and mean Average Precision (mAP) metrics. The contribution of this research is the development of an integrated system based on YOLOv8 to support monitoring of MBG nutritional quality objectively, efficiently, accurately, adaptively, sustainably, and support artificial intelligence-based decision making.
Downloads
References
Bappenas. (2024). Perencanaan dan evaluasi program makanan bergizi gratis.
Chen, M., Dhingra, K., & Wu, W. (2022). Food recognition and dietary assessment using deep learning. Computers in Biology and Medicine, 142, 105204. https://doi.org/10.1016/j.compbiomed.2022.105204
Chen, Y., Li, W., & Zhang, R. (2025). Food image recognition and nutritional estimation using deep learning-based object detection. Computers in Biology and Medicine, 170, 108012. https://doi.org/10.1016/j.compbiomed.2024.108012
Fang, S., Liu, C., & Zhu, F. (2021). Image-based dietary assessment: A systematic review. IEEE Journal of Biomedical and Health Informatics, 25(6), 1809–1822. https://doi.org/10.1109/JBHI.2020.3041890
Goodfellow, I., Bengio, Y., & Courville, A. (2021). Deep learning. MIT Press.
Jocher, G., & Chaurasia, A. (2023). YOLOv8: Ultralytics next-generation object detection [Preprint]. arXiv. https://arxiv.org/abs/2303.16250
Kementerian Kesehatan Republik Indonesia. (2023). Pedoman gizi seimbang untuk anak usia sekolah.
LeCun, Y. (2022). A path towards autonomous machine intelligence. Communications of the ACM, 65(6), 60–70. https://doi.org/10.1145/3526068
Mansouri, A., & Qureshi, F. (2023). Deep learning-based food detection and recognition: Challenges and opportunities. Pattern Recognition Letters, 168, 1–10. https://doi.org/10.1016/j.patrec.2023.01.002
Nelson, J. (2022). Roboflow: Simplifying computer vision dataset management. Towards Data Science.
OpenRouter. (n.d.). OpenRouter quickstart guide. https://openrouter.ai/docs/quickstart
Purnomo, A. (2025). Implementasi YOLOv8 untuk deteksi objek makanan berbasis computer vision. Jurnal Informatika dan Sistem Cerdas, 10(1), 15–26.
Purwati, N., Sani, A., & Pratama, R. (2025). Computer vision for food nutrition assessment: A bibliometric analysis and technical review. Journal of Big Data, 12(1), 1–25. https://doi.org/10.1186/s40537-025-00821-3
Redmon, J., & Farhadi, A. (2020). YOLOv3: An incremental improvement [Preprint]. arXiv. https://arxiv.org/abs/2004.10934
Roboflow. (2023). Roboflow: Dataset management for computer vision.
Szeliski, R. (2022). Computer vision: Algorithms and applications (2nd ed.). Springer. https://doi.org/10.1007/978-3-030-34372-9
Ultralytics. (2024). YOLOv8 documentation.
UNICEF. (2023). Nutrition programmes in school settings.
World Health Organization. (2022). School-based nutrition programmes and child development.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Ovan Pramana Putra, Ronny Makhfuddin Akbar, Ahmad Syaifuddin

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












