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

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
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
Versions
- 2025-10-15 (2)
- 2025-08-20 (1)
How to Cite
Issue
Section
License
Copyright (c) 2025 Elsi Titasari Br Bangun; Bayu Anugerah Putra

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Copyright Notice
An author who publishes in the Journal of Software Engineering and Information System (SEIS) agrees to the following terms:
- Author retains the copyright and grants the journal the right of first publication of the work simultaneously licensed under the Creative Commons Attribution-ShareAlike 4.0 License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal
- Author is able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book) with the acknowledgement of its initial publication in this journal.
- Author is permitted and encouraged to post his/her work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of the published work (See The Effect of Open Access).
Read more about the Creative Commons Attribution-ShareAlike 4.0 Licence here: https://creativecommons.org/licenses/by-sa/4.0/.