Machine Learning-based Approach for Malaysian Food Image Detection, Weight Estimation and Calories Estimation for Diabetes Management

  • Kuik Pei Yin*
  • , Azrina Abd Aziz
  • , Kanimolli Arasu
  • , Syed Saad Azhar Ali
  • , M. K.A.Ahamed Khan
  • *Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Diabetes is a major public health concern in Malaysia, where many struggle with blood sugar control due to unbalanced diets and improper nutritional intake. Tracking dietary intake is essential for informed food choices, but existing tools rely on manual self-reporting, which is time-consuming and prone to errors. Thus, this study proposes a machine learning-based approach to automate food detection, weight estimation and calories estimation from images, focusing on Malaysian cuisine. It consists of three phases. The first phase is food detection and segmentation, where a YOLOv11 custom model is developed to detect, classify, localize, and segment food items. The second phase is food weight estimation, where image-extracted features are used to estimate food weight. Various ensemble regression models, including Random Forest, XGBoost, LightGBM, and CatBoost, are evaluated for this task. These models are trained on a dataset of five Malaysian food classes with 2,369 food weight entries and seven features. The third phase is food calories estimation, which automates the retrieval of calories data from the Nutritionix API to compute total calories intake based on the estimated food weight. These phases are then integrated into a web-based app prototype. The proposed approach achieved a 99.22% classification accuracy and a 99.25% F1-score in detection and segmentation. The CatBoost model is chosen as the food weight estimation model, as it achieved the lowest MAPE of 4.22%. The calories estimation module successfully retrieved calories data and calculated total calories. Overall, this approach provides a reliable and automated dietary monitoring solution for diabetes management.

Original languageEnglish
Title of host publication2025 IEEE 8th International Conference on Electrical, Electronics, and System Engineering
Subtitle of host publicationEngineering Education 5.0: Innovation, Intelligence, and Impact, ICEESE 2025
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages100-105
Number of pages6
ISBN (Electronic)9798350392463
DOIs
StatePublished - 2025
Event8th IEEE International Conference on Electrical, Electronics, and System Engineering, ICEESE 2025 - Kuching, Malaysia
Duration: 9 Sep 202511 Sep 2025

Publication series

Name2025 IEEE 8th International Conference on Electrical, Electronics, and System Engineering: Engineering Education 5.0: Innovation, Intelligence, and Impact, ICEESE 2025

Conference

Conference8th IEEE International Conference on Electrical, Electronics, and System Engineering, ICEESE 2025
Country/TerritoryMalaysia
CityKuching
Period9/09/2511/09/25

Bibliographical note

Publisher Copyright:
© 2025 IEEE.

Keywords

  • Diabetes
  • Ensemble Regression
  • Food Weight Estimation
  • Machine Learning
  • Malaysian Cuisine

ASJC Scopus subject areas

  • Artificial Intelligence
  • Control and Systems Engineering
  • Electrical and Electronic Engineering
  • Instrumentation

Fingerprint

Dive into the research topics of 'Machine Learning-based Approach for Malaysian Food Image Detection, Weight Estimation and Calories Estimation for Diabetes Management'. Together they form a unique fingerprint.

Cite this