Sandri E, Cerdá Olmedo G, Piredda M, Werner LU, Dentamaro V. Explanatory AI Predicts the Diet Adopted Based on Nutritional and Lifestyle Habits in the Spanish Population.
Eur J Investig Health Psychol Educ 2025;
15:11. [PMID:
39997075 PMCID:
PMC11854735 DOI:
10.3390/ejihpe15020011]
[Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Key Words] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Received: 11/22/2024] [Revised: 01/13/2025] [Accepted: 01/17/2025] [Indexed: 02/26/2025] Open
Abstract
This study used Explainable Artificial Intelligence (XAI) with SHapley Additive exPlanations (SHAP) to examine dietary and lifestyle habits in the Spanish population and identify key diet predictors. A cross-sectional design was used, employing the validated NutSo-HH scale to gather data on nutrition, lifestyle, and socio-demographic factors. The CatBoost method combined with SHAP was applied. The sample included 22,181 Spanish adults: 17,573 followed the Mediterranean diet, 1425 were vegetarians, 365 were vegans, and 1018 practiced intermittent fasting. Fish consumption was the strongest dietary indicator, with vegans abstaining and some vegetarians consuming it occasionally. Age influenced diet: younger individuals preferred vegan/vegetarian diets, while older adults adhered to the Mediterranean diet. Vegans and vegetarians consumed less junk food, and intermittent fasters were more physically active. The model effectively predicts the Mediterranean diet but struggles with others due to sample imbalance, highlighting the need for larger studies on plant-based and intermittent fasting diets.
Collapse