Machine learning and SHAP-based interpretation of dietary antioxidants’ impact on comorbid MDD and suicidal ideation

Read full text
Authors: Zhiwei Xu, Jintao Wang, Ting Fa Margherita Chang, Yajing Li, Hongling Jia, Xuecheng Zhang
Cited by: 1
References: 33

Abstract

To develop and validate a machine learning model for predicting major depressive disorder (MDD) with suicidal ideation (SI) by incorporating dietary antioxidants, and to elucidate the specific contribution of these antioxidants in the prediction. Data were obtained from NHANES 2007–2010. Dietary antioxidants, including vitamins, minerals, and polyphenols, were the primary predictors. Demographic, lifestyle, and health-related variables were also included. Collinear variables were removed, class imbalance was corrected, and data were normalized prior to modeling. Twelve machine learning algorithms were compared using a systematic benchmarking protocol within the sklearn framework: Random Forest (RF), LightGBM, AdaBoost, XGBoost, Extra Trees, CatBoost, Gradient Boosting Decision Trees, Support Vector Machine, Decision Tree, Gaussian Naïve Bayes, Stochastic Gradient Descent, and K-Nearest Neighbors. SHapley Additive exPlanation (SHAP) values were calculated to interpret feature contributions within the best-performing model. A total of 9306 participants were included, of whom 247 with MDD comorbid with SI. After preprocessing, 31 dietary antioxidants and 9 demographic and health-related variables were retained for modeling. The RF classifier achieved the highest performance with an accuracy of 81.7%, precision of 0.814, recall of 0.822, area under the ROC curve of 0.908, and area under the precision–recall curve of 0.930. SHAP analysis identified vitamin C, kaempferol, myricetin, peonidin, luteolin, eriodictyol, hesperetin, pelargonidin, and zinc as the most influential predictors. The RF model exhibited superior predictive capability for comorbid MDD and SI. SHAP analysis highlighted the critical roles of dietary antioxidants, particularly vitamin C and kaempferol, in predicting these outcomes. • Systematic benchmarking compared twelve machine learning algorithms in scikit-learn. • Random forest predicts suicidal ideation in major depressive disorder, 81.7% accuracy. • Random forest achieved discrimination and precision metrics above 0.9 in NHANES data. • The model used 31 dietary antioxidants and 9 demographic, lifestyle, and health variables. • Shapley additive explanations revealed vitamin C and kaempferol as key predictors.

Fields of Study & Subjects

Tryptophan and brain disorders Nutritional Studies and Diet Vitamin C and Antioxidants Research

Publication details

Journal / source
Journal of Affective Disorders
Publisher
Elsevier BV
Volume
401
Pages
121252–121252
Publication date
26 January 2026
Language
EN