Comparison of Decision Tree and Random Forest Algorithm Performance for Nutrition Classification in Fast Food
Keywords:
Decision Tree Lifestyle Classification Food Random ForestAbstract
Fast food has become an essential part of the busy modern lifestyle, fast food is more popular because it makes eating easy and convenient. Today's young people are very fond of instant food. However, excessive consumption of instant food can trigger various health problems, including obsessive eating patterns. This raises the need to develop more accurate analytical methods for classifying fast food nutritional data, the purpose of classification is to obtain a decision tree model that can be used to anticipate and pay attention to how variables in the data are related to each other. In comparing the performance of the Decision Tree and Random Forest Algorithms in processing fast food nutritional data, it was found that all variables were correlated. The implementation results found that both models have extraordinary capabilities. The performance of the Decision Tree and Random Forest Algorithms on the same dataset, Random Forest outperformed Decision Tree with an accuracy value of 66.67%, while Decision Tree only achieved 55.56%, indicating that Random Forest is able to provide more accurate predictions for the test data class. In addition, the characteristics of the Random Forest group, where several decision trees are combined, provide advantages in handling data complexity and improve model generalization. These results indicate that group learning can improve the performance and reliability of predictions in building classification models, especially in the case of complex datasets.
References
Marini, HS Tambunan, ZA Siregar, AP Windarto, and F. Rizki, “Application of Data Mining for Infant Nutrition Classification Using the Decision Tree C4.5 Algorithm,” ZAHRA Big Data Bulletin, vol. 1, no. 2,
pp. 88–96, 2022.
AP Wahyu, H. Heryono, MB Chaniago, and D. Hamdani, “SmartCanteen: Behavior of Regulating Dietary Patterns by Reading Nutritional Values (Conventional Deep Learning Neural Network),” Jurnal Ilmiah Teknologi Informasi Terapan, vol. 6, no. 2, pp. 115–121, 2020, doi: 10.33197/jitter.vol6.iss2.2020.356.
I. Pamelia, "Fast Food Consumption Behavior in Adolescent and ITS Impact for Health," IKESMA Journal, vol. 14, no. 2, pp. 144–153, 2018.
BP Statistics, “Average daily protein consumption,” 2023.
V. Cyrilla et al., “Research Article on the Relationship between Fast Food Consumption Habits and Body Mass Index in Students of the Faculty of Medicine, Ukrida, Class of 2016, September 2017 Period Relationship Between Habit of Consuming Fast Food ...Fast Food Consumption Against Body Mass Index in St," no. September, 2017.
I. Romli and AT Zy, “Determining Overtime Schedules with Employee Data Classification Using the C4.5 Algorithm,” Journal of Computer Science & Informatics (J-SAKTI, vol. 4, no. 2, pp. 694–702, 2020.
S. Alam, A. Siregar, and A. Juwita, “Application of C4.5 Algorithm for COVID-19 Case Classification,”
… , Technology and …, vol. III, 2022.
AW Wardhana, E. Patimah, AI Shafarindu, YM Siahaan, BV Haekal, and DS Prasvita, "Classification of Sales Data in Supermarkets Using the Decision Tree Method," Senamika, vol. 2, no. 1, pp. 660–667, 2021.
S. Supangat, AR Amna, and T. Rahmawati, “Implementation of Decision Tree C4.5 to Determine Body Weight Status and Energy Needs in Children Aged 7-12 Years,” Teknika, vol. 7, no. 2, pp. 73–78, 2018, doi: 10.34148/teknika.v7i2.90.
M. Mia, AFN Masruriyah, and AR Pratama, "The Utilization of Decision Tree Algorithm In Order to Predict Heart Disease," Global Sisfotek Journal, vol. 12, no. 2, p. 138, 2022, doi: 10.38101/sisfotek.v12i2.551.
R. Supriyadi, W. Gata, N. Maulidah, and A. Fauzi, “Application of Random Forest Algorithm to Determine the Quality of Red Wine,” E-Business: Scientific Journal of Economics and Business, vol. 13, no. 2, pp. 67–75, 2020, doi: 10.51903/e-bisnis.v13i2.247.
H. Suryono, H. Kuswanto, and N. Iriawan, "Rice phenology classification based on random forest algorithm for data imbalance using Google Earth engine," Procedia Computer Science, vol. 197, no. 2021, pp. 668–676, 2021, doi: 10.1016/j.procs.2021.12.201.
AH Nasrullah, “Implementation of Decision Tree Algorithm for Classifying Best-Selling Products,” Scientific Journal of Computer Science, vol. 7, no. 2, pp. 45–51, 2021, doi: 10.35329/jiik.v7i2.203.
A. Hidayanti, AM Siregar, SAP Lestari, and YC Cahyana, “Covid-19 Case Analysis Model in Indonesia Using Linear Regression and Random Forest Algorithms,” Petir, vol. 15, no. 1, pp. 91–101, 2021, doi: 10.33322/petir.v15i1.1487.
A. Samosir, MS Hasibuan, WE Justino, and T. Hariyono, “Comparison of Random Forest, Naïve Bayes, and K-Nearest Neighbor Algorithms in Classifying Heart Disease Data,” Proceedings of the Darmajaya National Seminar, vol. 1, no. 0, pp. 214–222, 2021.
H. Tantyoko, DK Sari, and AR Wijaya, “Predicting Potential Earthquakes in Indonesia Using Random Forest and Feature Selection Methods,”IDEALIS : InDonEsiA journaL Information System, vol. 6, no. 2, pp. 83–89, 2023, doi: 10.36080/idealis.v6i2.3036.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Perianus Lombu, Kiki wulandari

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