Obesity Prediction from Lifestyle Factors: Leakage-Free Modeling, ErrorAnalysis, and Explainable AI
DOI:
https://doi.org/10.56158/jcosml.2026.1.02.8Keywords:
Obesity Prediction, Target Leakage, Categorical Encoding, Explainable AI (XAI), SHAPAbstract
Remote obesity screening in telehealth can be difficult when physical measurements such as height and weight are not available. Nevertheless, many existing machine learning models still rely on these variables to predict obesity labels derived from BMI. This causes severe data leakage and results in artificially inflated performance scores, limiting their real-world clinical utility. This study builds a zero-leakage framework to predict obesity risk using only lifestyle and behavioral data. We also aim to optimize categorical encodings for these surveys and decompose the resulting classification errors along a biological severity gradient. We completely isolated anthropometric data to prevent circular logic. We evaluated tree-based models across different categorical encodings (One-Hot, Ordinal, Target) using 3x10 Repeated Stratified Cross-Validation. The results were validated with non-parametric Friedman and Nemenyi tests. Finally, feature importance was explained using SHAP and verified empirically through ablation studies. A Random Forest algorithm with Target encoding achieved the highest Macro F1 score (86.9\%) and Out-of-Fold AUCs ranging between 0.959 and 0.998. Nemenyi tests confirmed its statistical superiority over baseline models. Our biological error decomposition showed that 47.8\% of misclassifications occurred strictly between adjacent, biologically contiguous severity levels. Both SHAP and ablation tests identified age and vegetable consumption frequency as the primary drivers of obesity risk. Pure behavioral features are highly reliable surrogate markers for obesity prediction. Isolating target leakage and analyzing errors biologically creates a realistic, transparent, and statistically rigorous benchmark for future m-Health applications.Downloads
Published
2026-12-04
Issue
Section
Research Articles
License
Copyright (c) 2026 Tansu TEMEL, Duygu Temel (Author)

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