Identification of risk factors for anxiety disorders in young and middle-aged adults based on whole food groups: Insights from dual databases and multiple machine learning approaches

Anxiety disorders are increasingly prevalent among young and middle-aged adults. However, the relationships between dietary components, food-group intake, and anxiety risk remain unclear. This cross-sectional study included 5,195 participants from seven cycles of the U.S. National Health and Nutrition Examination Survey (NHANES, 2005–2018). Dietary micronutrients and bioactive compounds were obtained from NHANES 24-hour dietary recalls, while food-group intake was derived from the U.S. Department of Agriculture’s MyPyramid Equivalents Database linked to the same dietary records. Feature selection was performed using the BORUTA algorithm, class imbalance was addressed using SMOTE, and six machine-learning models were developed. SHAP and LIME analyses were applied to interpret dietary predictors of anxiety-risk predictions. Random forest showed the best performance in both dietary component and food-group models. In the NHANES model, theobromine, lycopene, caffeine, added vitamin B12, alcohol, and alpha-carotene were major contributors to model predictions. In the MyPyramid model, Meat, Total Vegetables, Total Protein Foods, Cheese, White Potatoes, and Nuts and Seeds were influential whole-food features. Integrating dietary components and whole-food groups with explainable machine learning identified dietary patterns associated with anxiety-risk predictions. These findings provide hypotheses for nutritional research but do not establish causal relationships.

Authors

Institutions

Publication Details

Journal
Journal of Food Composition and Analysis
Published
2026-07-30
DOI
https://doi.org/10.1016/j.jfca.2026.109418
Primary Topic
Mental Health via Writing
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Identification of risk factors for anxiety disorders in young and middle-aged adults based on whole food groups: Insights from dual databases and multiple machine learning approaches

Xueqing Wang, Kunran Wang, Dan Liu, Ziliang Liu et al.
Journal of Food Composition and Analysis
Mental Health via Writing
article

Identification of risk factors for anxiety disorders in young and middle-aged adults based on whole food groups: Insights from dual databases and multiple machine learning approaches

Xueqing Wang, Kunran Wang, Dan Liu, Ziliang Liu, Changzhu Zhang
article en

Abstract

Anxiety disorders are increasingly prevalent among young and middle-aged adults. However, the relationships between dietary components, food-group intake, and anxiety risk remain unclear. This cross-sectional study included 5,195 participants from seven cycles of the U.S. National Health and Nutrition Examination Survey (NHANES, 2005–2018). Dietary micronutrients and bioactive compounds were obtained from NHANES 24-hour dietary recalls, while food-group intake was derived from the U.S. Department of Agriculture’s MyPyramid Equivalents Database linked to the same dietary records. Feature selection was performed using the BORUTA algorithm, class imbalance was addressed using SMOTE, and six machine-learning models were developed. SHAP and LIME analyses were applied to interpret dietary predictors of anxiety-risk predictions. Random forest showed the best performance in both dietary component and food-group models. In the NHANES model, theobromine, lycopene, caffeine, added vitamin B12, alcohol, and alpha-carotene were major contributors to model predictions. In the MyPyramid model, Meat, Total Vegetables, Total Protein Foods, Cheese, White Potatoes, and Nuts and Seeds were influential whole-food features. Integrating dietary components and whole-food groups with explainable machine learning identified dietary patterns associated with anxiety-risk predictions. These findings provide hypotheses for nutritional research but do not establish causal relationships.

Journal of Food Composition and AnalysisVol. 157
Heilongjiang University of Chinese Medicine (CN), First Affiliated Hospital of Heilongjiang University of Chinese Medicine (CN)
Natural Science Foundation of Heilongjiang Province
Zero hunger
Openalex Percentile: Top 6%
Mental Health via Writing
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.