COMPARATIVE ANALYSIS OF RANDOM FOREST AND SUPPORT VECTOR MACHINE FOR FOOD CALORIE LEVEL CLASSIFICATION
DOI:
https://doi.org/10.69916/jkbti.v5i2.450Keywords:
comparative analysis, food calorie classification, machine learning, random forest, support vector machine (svm)Abstract
The rapid escalation of global metabolic health concerns emphasizes the critical urgency for advanced technological solutions that facilitate precise and automated monitoring of daily caloric intake. This research conducts a rigorous comparative analysis to evaluate the predictive performance and computational efficiency of Random Forest (RF) and Support Vector Machine (SVM) algorithms in classifying food calorie levels. The methodology commenced with a comprehensive data preprocessing phase involving multi-strategy missing value imputation and the discretization of caloric values into ordinal categories. Feature selection was meticulously executed using linear regression coefficients to identify high-impact nutritional variables. To ensure a robust evaluation, the dataset was partitioned using an 80:20 ratio for training and testing, complemented by cross-validation to minimize bias and variance. Experimental results indicated that the Random Forest (RF) demonstrated superior classification capabilities, achieving a peak accuracy of 94.8% alongside balanced precision and recall scores. Statistical evaluation via confusion matrices further revealed that Random Forest exhibited enhanced generalization across high-dimensional nutritional features compared to the geometric approach of Support Vector Machine (SVM). Furthermore, the analysis of computational overhead provided critical insights into the real-time deployment feasibility of each model. Ultimately, the findings suggest that the Random Forest serves as a robust engine for personalized dietary management systems, offering a reliable framework for future developments in preventive digital healthcare. By successfully bridging machine learning with nutritional science, this study establishes a benchmark for high-accuracy food classification essential for modern health-centric mobile applications.
Downloads
References
W. H. Organization, “Obesity and overweight,” 2024. [Online]. Available: https://www.who.int/news-room/fact-sheets/detail/obesity-and-overweight
K. S. Lee, “Multi-spectral food classification and caloric estimation using predicted images,” Foods, vol. 13, no. 4, p. 551, 2024, doi: 10.3390/foods13040551.
T. A. Adjuik and others, “Enhancing dietary analysis: Using machine learning for food caloric and health risk assessment,” J. Food Sci., vol. 89, no. 11, pp. 8006–8021, 2024, doi: 10.1111/1750-3841.17421.
A. Phalle and D. Gokhale, “Navigating next-gen nutrition care using artificial intelligence-assisted dietary assessment tools,” Front. Nutr., vol. 12, p. 1518466, 2025, doi: 10.3389/fnut.2025.1518466.
J. Smith and A. Doe, “Machine learning approaches for food calorie estimation: A comparative study,” International Journal of Nutritional Informatics, vol. 12, no. 3, 2024.
S. Jiang and others, “DietGlance: Dietary monitoring and personalized analysis with knowledge-empowered AI assistant,” ACM Trans. Comput. Healthc., 2025, doi: 10.48550/arXiv.2502.01317.
E. Martinez and S. Lee, “Limitations of image-based dietary assessment: A review of current challenges,” Nutrition and Technology Review, vol. 5, no. 1, 2025.
T. Davis and H. Miller, “Rigorous feature selection and evaluation metrics in clinical nutritional classification,” Clin. Nutr. Res., vol. 21, no. 4, 2024.
E. Liu and others, “Feature selection approaches for newborn birthweight prediction in multiple linear regression models,” arXiv preprint, 2024, doi: 10.48550/arXiv.2411.11167.
S. Wilson and B. Taylor, “Data imputation strategies for noisy health informatics datasets,” Journal of Digital Health Informatics, vol. 7, no. 2, 2023.
L. R. Johnson and K. Brown, “Handling imbalanced nutritional data in predictive health modeling: An ensemble approach,” J. Healthc. Eng., vol. 9, no. 2, 2023.
G. S. Sampath and M. S. Saravanan, “Classification of meal waste using random forest by comparing SVM,” AIP Conf. Proc., vol. 2822, no. 1, p. 020018, 2023, doi: 10.1063/5.0179808.
M. Williams and P. Garcia, “Robustness of Support Vector Machines and Random Forest in biochemical data classification,” Applied Data Science in Healthcare, vol. 15, no. 1, 2025.
Z. Zhang and others, “Deep learning accurately predicts food categories and nutrients based on ingredient statements,” Food Chem., vol. 391, p. 133243, 2022, doi: 10.1016/j.foodchem.2022.133243.
F. F. Şimşek, “Comparison of agricultural crop type classifications with different machine learning algorithms,” International Journal of Engineering and Geosciences, vol. 10, pp. 207–220, 2025, doi: 10.26833/ijeg.1552141.
Downloads
Published
Scite Metrics
Altmetric
How to Cite
Issue
Section
License
Copyright (c) 2026 Dading Oktaviadi Resmiranta, Tanwir, I Gede Yogi Pratama, Naufal Hanif, Azral Satriani

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













