Related Experiment Video
Updated: Jun 16, 2026

An R-Based Landscape Validation of a Competing Risk Model
Published on: September 16, 2022
Development and external validation of an interpretable machine learning model for obesity-depression comorbidity in
Yuwen Shangguan1, Zhenhao Lin1, Young-Je Sim1
1Department of Exercise Physiology, Kunsan National University, Gunsan, Republic of Korea.
Objective:
To investigate the association between physical inactivity and obesity-depression comorbidity (ODC), defined as the co-occurrence of obesity and depression, and to develop an effective screening tool for identifying high-risk individuals to facilitate early intervention.
Methods:
Data were obtained from 3,357 physically inactive adults enrolled in the Korea National Health and Nutrition Examination Survey (KNHANES, 2007-2012). An XGBoost machine learning framework was applied to develop predictive models. Feature selection was conducted using random forest, and the prediction mechanism was interpreted with SHAP values. The model was validated internally using KNHANES 2011-2012 data and externally with the U.S. NHANES dataset.
Results:
The XGBoost model demonstrated good discriminative performance in internal validation (AUC = 0.783 and 0.744) and achieved an external validation AUC of 0.886. Feature importance analysis revealed that insulin concentration, white blood cell count, and height were the primary predictors of ODC, with insulin exerting the strongest influence.
Conclusion:
This study developed a high-performing and interpretable prediction model for ODC risk. SHAP-based interpretation identified insulin as the most influential predictor within the model, suggesting that metabolic factors may be important for ODC risk stratification.