Teknika
Vol. 15 No. 2 (2026): July 2026

Food Portion Weight Prediction and Nutritional Estimation from Images Using YOLOv8 Segmentation and XGBoost Regression

Ery Setiyawan Jullev Atmadji (Information Technology Department, Politeknik Negeri Jember, Jember, East Java, Indonesia)
Freda Adi Ferdana (Information Technology Department, Politeknik Negeri Jember, Jember, East Java, Indonesia)
Husin (Information Technology Department, Politeknik Negeri Jember, Jember, East Java, Indonesia)
Aji Seto Arifianto (Information Technology Department, Politeknik Negeri Jember, Jember, East Java, Indonesia)



Article Info

Publish Date
08 Jul 2026

Abstract

Understanding the nutritional content of food is essential for maintaining balanced dietary habits. However, most existing nutrition information sources rely on fixed portion sizes and do not reflect the actual amount of food consumed. This study proposes an image-based system for estimating food nutrition dynamically using computer vision and machine learning. The system integrates YOLOv8m-seg for food object detection and segmentation with XGBoost regression for food weight prediction. Images uploaded by users through a Telegram chatbot are processed to detect food containers and segment individual food objects. Features extracted from segmentation results, such as object area and dimensions, are then used to estimate the weight of each food item. Nutritional values including calories, fat, carbohydrates, and protein are calculated based on the predicted weights. Experimental results show that the segmentation model achieved an average accuracy of 87.68%, with several food categories reaching 97–98% accuracy. The weight prediction model obtained an MAE of 21.138 g, RMSE of 50.10 g, and R² of 0.7838, indicating reasonable predictive performance. The developed system demonstrates the potential of combining object detection, segmentation, and regression models to provide automated nutritional estimation through an accessible chatbot interface, supporting more practical and personalized dietary assessment.

Copyrights © 2026






Journal Info

Abbrev

teknika

Publisher

Subject

Computer Science & IT Electrical & Electronics Engineering Engineering

Description

Teknika is a peer-reviewed journal dedicated to disseminate research articles in Information and Communication Technology (ICT) area. Researchers, lecturers, students, or practitioners are welcomed to submit paper which has topic below: Computer Networks Computer Security Artificial Intelligence ...