Classification of Obesity Risk Levels in Adolescents Based on Lifestyle using the Random Forest Algorithm
DOI:
https://doi.org/10.59934/jaiea.v5i2.2138Keywords:
Adolescent Obesity; Lifestyle Patterns; Machine Learning; Obesity Risk; Random Forest.Abstract
Obesity in adolescents is a health problem influenced by diet, physical activity, and sedentary habits. This study aims at the classification of obesity risk in adolescents using a classification approach with the Random Forest algorithm based on the Obesity Levels and Lifestyle Dataset obtained from the Kaggle platform. The research stages include data preprocessing, dividing training and test data, model training, and performance evaluation using accuracy, precision, recall, and F1-score metrics. The test results showed an accuracy value of 93% with an average F1-score value of 0.93, indicating that the model has consistent performance in distinguishing various levels of obesity risk. Feature importance analysis shows that in addition to physical factors such as body weight, lifestyle factors such as physical activity and food consumption patterns also contribute significantly to the classification process. These findings confirm that the Random Forest algorithm is effective as a tool for early classification of obesity risk based on lifestyle, and can be the basis for developing a preventive adolescent health monitoring system.
Downloads
References
Kementerian Kesehatan Republik Indonesia, “Laporan nasional Riskesdas 2023,” Jakarta: Badan Penelitian dan Pengembangan Kesehatan, 2023.
World Health Organization, “Obesity and overweight,” 2023, [Online]. Available: https://www.who.int/news-room/fact-sheets/detail/obesity-and-overweight.
S. Hardwis and J. Jajat, “Analisis Resiko Obesitas Berdasarkan Aktivitas Fisik: Implementasi Metode Artificial Intelligence Machine Learning,” Jurnal Keolahragaan, vol. 10, no. 2, pp. 29–36, 2024.
A. Warsid, H. Arifin, S. Sumarlan, T. Jehaman, and D. Delta, “Gambaran pengetahuan dan konsep diri remaja berkaitan dengan obesitas: Studi kualitatif,” Jurnal Promotif Preventif (JPP), vol. 6, no. 6, pp. 872–880, 2023.
G. Airlangga, “Machine Learning-Based Obesity Classification: A Comparative Study Using Self-Reported Survey Data and Ensemble Learning Models,” Jurnal Teknologi Informatika dan Komputer, vol. 11, no. 1, pp. 347–361, 2025.
A. Maulana, R. P. F. Afidh, N. B. Maulydia, G. M. Idroes, and S. Rahimah, “Predicting obesity levels with high accuracy: Insights from a catboost machine learning model,” Infolitika Journal of Data Science, vol. 2, no. 1, pp. 17–27, 2024.
World Health Organization, “Obesity and overweight,” 2021, [Online]. Available: https://www.who.int/news-room/fact-sheets/detail/obesity-and-overweight.
R. Di, P. Asuhan, D. Najah, and S. Yogyakarta, “Faktor-faktor yang mempengaruhi risiko obesitas pada remaja di panti asuhan darun najah sleman yogyakarta,” Jurnal Keperawatan, vol. 12, no. 2, pp. 206–217, 2024.
L. Breiman, “Random forests,” Machine learning, vol. 45, no. 1, pp. 5–32, 2001.
R. Tasnim, M. Chowdhury and M. A. Rahman, “BN-AuthProf: Benchmarking Machine Learning for Bangla Author Profiling on Social Media Texts,” in 2024 27th International Conference on Computer and Information Technology (ICCIT), 2024, pp. 792-797, doi: 10.1109/ICCIT64611.2024.11022087.
I. Goodfellow, Y. Bengio, and A. Courville, Deep learning, MIT Press, 2021.
M. Mohri, A. Rostamizadeh, and A. Talwalkar, Foundations of machine learning, 2nd ed., MIT Press, 2020.
M. I. Jordan and T. M. Mitchell, “Machine learning: Trends, perspectives, and prospects,” Science, vol. 349, no. 6245, pp. 255–260, 2022
F. M. Palechor and A. de la Hoz Manotas, “Dataset for estimation of obesity levels based on eating habits and physical condition in individuals from Mexico, Peru and Colombia,” Data in Brief, vol. 25, 2019, doi: 10.1016/j.dib.2019.104344.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Journal of Artificial Intelligence and Engineering Applications (JAIEA)

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







