Submitted:
29 June 2026
Posted:
30 June 2026
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Related Works
3. Methods
3.1. Data and Preprocessing
3.2. Statistical and Machine Learning Methods
XGBoost (eXtreme Gradient Boosting)
Random Forest
Multinomial Logistic Regression
Linear Discriminant Analysis (LDA)
Support Vector Machine (SVM) with RBF Kernel
3.3. Model Evaluation
4. Results
4.1. Descriptive Summaries and Feature Analysis
4.2. Model Performance
5. Discussion
Author Contributions
Data Availability Statement
Conflicts of Interest
References
- Breiman, L. Random forests. Mach. Learn. 2001, 45(1), 5–32. [Google Scholar] [CrossRef]
- Cortes, C.; Vapnik, V. Support-vector networks. Mach. Learn. 1995, 20(3), 273–297. [Google Scholar] [CrossRef]
- Chen, T.; Guestrin, C. XGBoost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2016; pp. 785–794. [Google Scholar]
- Chawla, N. V.; Bowyer, K. W.; Hall, L. O.; Kegelmeyer, W. P. SMOTE: Synthetic minority over-sampling technique. J. Artif. Intell. Res. 2002, 16, 321–357. [Google Scholar] [CrossRef]
- indal, K.; Baliyan, N.; Rana, P. S. Obesity prediction using ensemble machine learning approaches. In Recent Findings in Intelligent Computing Techniques: Proceedings of the 5th ICACNI 2017; Springer Singapore.: Singapore, 2018; Volume 2, pp. 355–362. [Google Scholar]
- Mendoza Palechor, F.; De la Hoz Manotas, A. Dataset for estimation of obesity levels based on eating habits and physical condition in individuals from Colombia, Peru and Mexico. Data Brief. 2019, 25, 104344. [Google Scholar] [CrossRef]
- McNemar, Q. Note on the sampling error of the difference between correlated proportions or percentages. Psychometrika 1947, 12(2), 153–157. [Google Scholar] [CrossRef] [PubMed]
- Shaban, W. M.; El-Din Moustafa, H.; El-Seddek, M. M. Machine learning framework for predicting susceptibility to obesity. Sci. Rep. 2025, 15(1), 35040. [Google Scholar] [CrossRef] [PubMed]
- UCI Machine Learning Repository. Estimation of obesity levels based on eating habits and physical condition; Dataset, 2019. [Google Scholar] [CrossRef]




| Female (n = 1,043) | Male (n = 1,068) | |||||
|---|---|---|---|---|---|---|
| Variable | Mean | SD | Range | Mean | SD | Range |
| Age (years) | 24.00 | 6.41 | 15.0–61.0 | 24.62 | 6.27 | 14.0–56.0 |
| Height (m) | 1.64 | 0.07 | 1.45–1.84 | 1.76 | 0.07 | 1.56–1.98 |
| Weight (kg) | 82.30 | 29.72 | 39.0–165.1 | 90.77 | 21.41 | 45.0–173.0 |
| Vegetables (FCVC) | 2.57 | 0.55 | 1.0–3.0 | 2.27 | 0.48 | 1.0–3.0 |
| Model | Accuracy | Precision | Recall | F1 Score |
|---|---|---|---|---|
| XGBoost | 0.9754 | 0.9747 | 0.9748 | 0.9747 |
| Random Forest | 0.9564 | 0.9573 | 0.9551 | 0.9555 |
| Multinomial Logistic | 0.9403 | 0.9390 | 0.9388 | 0.9382 |
| Linear Discriminant Analysis | 0.8977 | 0.8969 | 0.8955 | 0.8935 |
| Support Vector Machine | 0.8967 | 0.8956 | 0.8939 | 0.8944 |
| Predicted ∖ Actual | Insuff. | Normal | Obesity I | Obesity II | Obesity III | Overwt I | Overwt II |
|---|---|---|---|---|---|---|---|
| Insufficient Weight | 267 | 6 | 0 | 0 | 0 | 0 | 0 |
| Normal Weight | 5 | 272 | 0 | 0 | 0 | 9 | 0 |
| Obesity Type I | 0 | 0 | 344 | 2 | 0 | 0 | 4 |
| Obesity Type II | 0 | 0 | 2 | 295 | 1 | 0 | 0 |
| Obesity Type III | 0 | 0 | 0 | 0 | 323 | 0 | 0 |
| Overweight Level I | 0 | 9 | 1 | 0 | 0 | 276 | 4 |
| Overweight Level II | 0 | 0 | 4 | 0 | 0 | 5 | 282 |
| Best Model | Alternative Model | p-value |
|---|---|---|
| XGBoost | Random Forest | (*) |
| XGBoost | Multinomial Logistic | (*) |
| XGBoost | Linear Discriminant Analysis | (*) |
| XGBoost | Support Vector Machine | (*) |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).