KLASIFIKASI MAKANAN BERDASARKAN NILAI GIZI MENGGUNAKAN ALGORITMA RANDOM FOREST DAN TEKNIK SMOTE

Authors

  • Elsi Titasari Br Bangun Universitas Muhammadiyah Riau
  • Bayu Anugerah Putra
  • Aryanto Universitas Muhammadiyah Riau

DOI:

https://doi.org/10.37859/seis.v5i2.9725
Keywords: Food Classification, Nutritional Value, Random Forest, SMOTE, Machine Learning, Recommendation System

Abstract

Classifying food based on nutritional content is essential for developing personalized dietary recommendation systems and promoting healthier eating habits. This study aims to construct a food classification model using the Random Forest algorithm combined with the Synthetic Minority Oversampling Technique (SMOTE) to address class imbalance in the dataset. The dataset includes various nutritional attributes such as calories, protein, fat, carbohydrates, fiber, sugar, sodium, and cholesterol, along with additional information such as food category and meal time. After preprocessing, the data were split into training and testing sets, with SMOTE applied to the training data to improve class representation. The model was trained using Random Forest and evaluated using accuracy, precision, recall, and F1-score. The results show that the model achieved an accuracy of 83.35% and an average F1-score above 0.80, with the best performance observed in majority classes. The confusion matrix analysis indicates that most predictions were accurate, although misclassifications occurred among classes with overlapping nutritional values. Protein, calories, and carbohydrates were identified as the most influential features in the classification process. These results show that combining Random Forest and SMOTE works well for creating food classification systems using nutritional data and could be useful in apps for diet recommendations and managing nutrition.

Downloads

Download data is not yet available.

References

Informatics and Computing (JAIC), 8(2), 272–279. Retrieved from http://jurnal.polibatam.ac.id/index.php/JAIC

Orue‐saiz, I., Kazarez, M., & Mendez‐zorrilla, A. (2021). Systematic review of nutritional recommendation systems. Applied Sciences (Switzerland), 11(24), 1–13. MDPI.

Prasetya, J., & Abdurakhman, A. (2023). COMPARISON OF SMOTE RANDOM FOREST AND SMOTE K-NEAREST NEIGHBORS CLASSIFICATION ANALYSIS ON IMBALANCED DATA. MEDIA STATISTIKA, 15(2), 198–208. Institute of Research and Community Services Diponegoro University (LPPM UNDIP).

Putri, V. M., Masjkur, M., & Suhaeni, C. (2021). Performance of SMOTE in a random forest and naive Bayes classifier for imbalanced Hepatitis-B vaccination status. Journal of Physics: Conference Series (Vol. 1863, pp. 1–8). IOP Publishing Ltd.

Rachmatullah, M. I. C. (2022). The Application of Repeated SMOTE for Multi Class Classification on Imbalanced Data. MATRIK: Jurnal Manajemen, Teknik Informatika dan Rekayasa Komputer, 22(1), 13–24. Universitas Bumigora.

Salman, H. A., Kalakech, A., & Steiti, A. (2024). Random Forest Algorithm Overview. Babylonian Journal of Machine Learning, 2024, 69–79. Mesopotamian Academic Press.

Yu, Y., Wang, L., Huang, H., & Yang, W. (2020). An Improved Random Forest Algorithm. Journal of Physics: Conference Series (Vol. 1646, pp. 1–6). IOP Publishing Ltd.

Zhang, X., & Wang, M. (2021). Weighted Random Forest Algorithm Based on Bayesian Algorithm. Journal of Physics: Conference Series (Vol. 1924, pp. 1–6). IOP Publishing Ltd.

Downloads

Published

2025-08-20 — Updated on 2025-10-15

Versions

How to Cite

Br Bangun, E. T., Bayu Anugerah Putra, & Aryanto. (2025). KLASIFIKASI MAKANAN BERDASARKAN NILAI GIZI MENGGUNAKAN ALGORITMA RANDOM FOREST DAN TEKNIK SMOTE. Journal of Software Engineering and Information System (SEIS), 5(2), 68–74. https://doi.org/10.37859/seis.v5i2.9725 (Original work published August 20, 2025)

Issue

Section

Articles