Research Article

Machine Learning Analysis of Obesity Levels Based on Lifestyle and Physical Features

Junyuan Zhang*
Nanjing University

* Corresponding author: [email protected]

Abstract

Obesity has become a major global health challenge, with prevalence rising across all age groups. While Body Mass Index (BMI) is widely used for diagnosis, it has limitations, as it cannot fully capture lifestyle or behavioral risk factors. This study applies machine learning (ML) techniques to classify obesity categories using the UCI dataset “Estimation of Obesity Levels Based on Eating Habits and Physical Condition.” The dataset includes 16 lifestyle and demographic features, and experiments were conducted with and without height and weight to evaluate the potential effect of BMI-related variables. Random Forest was adopted as the primary model, with additional classifiers employed as comparative methods. Results show that ensemble tree-based models achieved the highest performance overall. In particular, Random Forest demonstrated strong accuracy even in the absence of height and weight, suggesting that it can capture meaningful lifestyle and behavioral patterns without relying solely on BMI. Feature importance analysis identified age, diet, and physical activity as key predictors. Misclassification analysis further revealed that some severely obese individuals were incorrectly predicted as normal weight, especially those with positive family history but healthier reported habits. These findings highlight the potential of ML to support obesity risk assessment and the importance of addressing information leakage when BMI-related features are included.

Keywords: Obesity; Machine Learning; Random Forest; Feature Importance; Misclassified cases
Published: September 24, 2025
DOI: 10.54254/2753-8818/2025.AU27039
Volume: TNS Vol.135
pp. 90-98
Download PDF

References

  1. World Health Organization. (2022) Obesity and overweight. [Online]. Available: https: //www.who.int/news-room/fact-sheets/detail/obesity-and-overweight
  2. A. Keys. (1972) Indices of relative weight and obesity, Journal of Chronic Diseases, vol. 25, no. 6, pp. 329–343.
  3. Nuttall, Frank Q. (2015) Body Mass Index: Obesity, BMI, and Health: A Critical Review, Nutrition Today, vol. 50, no. 3, pp. 117–128.
  4. M. Safaei, E. A. Sundararajan, M. Driss, W. Boulila, and A. Shapi'i.(2021) A systematic literature review on obesity: Understanding the causes & consequences of obesity and reviewing various machine learning approaches used to predict obesity Computers in Biology and Medicine, vol. 136, p. 104754. [Online]. Available: https: //doi.org/10.1016/j.compbiomed.2021.104754
  5. UCI Machine Learning Repository. Estimation of obesity levels based on eating habits and physical condition dataset [Online]. Available: https: //archive.ics.uci.edu/dataset/544/estimation+of+obesity+levels+based+on+eating+habits+and+physical+condition
  6. E. Alejo, E. García-Peñalvo, and M. J. Rodríguez-Conde. (2019) Estimation of obesity levels based on eating habits and physical condition in individuals from Colombia, Peru and Mexico, Data in Brief, vol. 27, pp. 104344.
  7. N. V. Chawla, K. W. Bowyer, L. O. Hall, and W. P. Kegelmeyer. (2002) SMOTE: Synthetic Minority Over-sampling Technique, Journal of Artificial Intelligence Research, vol. 16, pp. 321–357.
  8. L. Breiman. (2001) Random Forests. Machine Learning, 45, 5–32.
  9. R. J. Ward et al. (2021) Genetic contributions to obesity and related traits, Obesity, vol. 29, no. 5, pp. 783–795.
  10. The Lancet Diabetes & Endocrinology Commission (2025) Definition and diagnostic criteria of clinical obesity, Lancet Diabetes Endocrinol, vol. 13, no. 2, pp. 89–101.
  11. National Health Commission of China. (2025) Guidelines on BMI and nutrition management in elderly adults WS/T 868-2025. [Online]. Available: https: //www.nhc.gov.cn/wjw/yingyang/202507/
  12. LeCun, Y., Bengio, Y. & Hinton. (2015) G. Deep learning. Nature, 521, 436–444.