Using SHAP and LIME to Explain Machine Learning Models Predicting Comorbid Depression and Stroke From Daily Dietary Nutrient Intake in a US Population‐Based Study

While comorbid depression and stroke are a major concern for public health, the effect of dietary nutrient patterns on their concurrent occurrence is still largely unexplored. From NHANES, a survey of the U.S. civilian, non-institutionalized population, we included 814 participants with complete data on diet, depression, and stroke. Of these, 140 were identified with comorbid depression and stroke. Baseline characteristics were compared between groups, and Weighted Quantile Sum (WQS) regression was used to evaluate the collective effects of nutrient mixtures. Machine learning models aimed at predicting comorbid conditions were developed, incorporating Synthetic Minority Oversampling Technique (SMOTE) for oversampling and Boruta for selecting features. The interpretability of these models was analyzed using SHapley Additive exPlanations (SHAP) and Local Interpretable Model-agnostic Explanations (LIME). Participants with comorbidities were younger and had lower socioeconomic status, along with reduced intake of thiamin, vitamin B6, total folate, added vitamin B12, and vitamin C. Although neither WQS-negative nor WQS-positive indices showed statistically significant associations with comorbidity risk, specific nutrients such as alcohol, alpha-carotene, added vitamin B12, theobromine, and vitamin E emerged as predominant contributors within the mixture models. The Random Forest classifier achieved the highest area under the receiver operating characteristic curve (AUC = 0.945) when adjusted for covariates and maintained consistently high performance in the unadjusted setting. SHAP and LIME analyses consistently identified vitamin B1, vitamin B12, zinc, vitamin C, and caffeine as influential predictors, with SHAP plots revealing mirrored feature contribution patterns depending on comorbidity status. Covariate adjustment improved directional stability and interpretability, particularly in SHAP dependence plots and waterfall visualizations. LIME explanations at the individual level corroborated these findings, showing consistent yet class-dependent feature effects. Although the overall mixture effect was not significant, machine learning identified nutrient-specific signals associated with comorbid depression and stroke. These results indicate that integrating dietary indicators with explainable artificial intelligence may improve transparency in risk prediction and guide future longitudinal and interventional research.

Authors

Institutions

Publication Details

Journal
Food Science & Nutrition
Published
2025-12-30
DOI
https://doi.org/10.1002/fsn3.71401
Citations
2
Primary Topic
Nutritional Studies and Diet
Type
article
Field-Weighted Citation Impact
3.76
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Using SHAP and LIME to Explain Machine Learning Models Predicting Comorbid Depression and Stroke From Daily Dietary Nutrient Intake in a US Population‐Based Study

Hongwei Liu, Haixia Fan, Miaomiao Hou, Peng Wei et al.
2 citations
Food Science & Nutrition
Nutritional Studies and Diet
3.76
article

Using SHAP and LIME to Explain Machine Learning Models Predicting Comorbid Depression and Stroke From Daily Dietary Nutrient Intake in a US Population‐Based Study

Hongwei Liu, Haixia Fan, Miaomiao Hou, Peng Wei, Minghui Wu
article en
2 citations

Abstract

While comorbid depression and stroke are a major concern for public health, the effect of dietary nutrient patterns on their concurrent occurrence is still largely unexplored. From NHANES, a survey of the U.S. civilian, non-institutionalized population, we included 814 participants with complete data on diet, depression, and stroke. Of these, 140 were identified with comorbid depression and stroke. Baseline characteristics were compared between groups, and Weighted Quantile Sum (WQS) regression was used to evaluate the collective effects of nutrient mixtures. Machine learning models aimed at predicting comorbid conditions were developed, incorporating Synthetic Minority Oversampling Technique (SMOTE) for oversampling and Boruta for selecting features. The interpretability of these models was analyzed using SHapley Additive exPlanations (SHAP) and Local Interpretable Model-agnostic Explanations (LIME). Participants with comorbidities were younger and had lower socioeconomic status, along with reduced intake of thiamin, vitamin B6, total folate, added vitamin B12, and vitamin C. Although neither WQS-negative nor WQS-positive indices showed statistically significant associations with comorbidity risk, specific nutrients such as alcohol, alpha-carotene, added vitamin B12, theobromine, and vitamin E emerged as predominant contributors within the mixture models. The Random Forest classifier achieved the highest area under the receiver operating characteristic curve (AUC = 0.945) when adjusted for covariates and maintained consistently high performance in the unadjusted setting. SHAP and LIME analyses consistently identified vitamin B1, vitamin B12, zinc, vitamin C, and caffeine as influential predictors, with SHAP plots revealing mirrored feature contribution patterns depending on comorbidity status. Covariate adjustment improved directional stability and interpretability, particularly in SHAP dependence plots and waterfall visualizations. LIME explanations at the individual level corroborated these findings, showing consistent yet class-dependent feature effects. Although the overall mixture effect was not significant, machine learning identified nutrient-specific signals associated with comorbid depression and stroke. These results indicate that integrating dietary indicators with explainable artificial intelligence may improve transparency in risk prediction and guide future longitudinal and interventional research.

Food Science & NutritionVol. 14(1)
Shanxi Medical University (CN), Capital Medical University (CN), First Hospital of Shanxi Medical University (CN), Shanxi Academy of Medical Sciences (CN)
Openalex Percentile: Top 6%
Nutritional Studies and Diet
3.76
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.