Explanatory AI Predicts the Diet Adopted Based on Nutritional and Lifestyle Habits in the Spanish Population
- PMID: 39997075
- PMCID: PMC11854735
- DOI: 10.3390/ejihpe15020011
Explanatory AI Predicts the Diet Adopted Based on Nutritional and Lifestyle Habits in the Spanish Population
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.
Keywords: Spain; and nutrition; deep learning; diet; food; healthy lifestyle; machine learning.
Conflict of interest statement
The authors declare no conflicts of interest.
Figures














References
-
- Abellán Alemán J., Zafrilla Rentero M. P., Montoro-García S., Mulero J., Pérez Garrido A., Leal M., Guerrero L., Ramos E., Ruilope L. M. Adherence to the Mediterranean diet in Spain and its relationship with cardiovascular risk (DIMERICA study) Nutrients. 2016;8(11):680. doi: 10.3390/nu8110680. - DOI - PMC - PubMed
-
- Arik S. Ö., Pfister T. TabNet: Attentive interpretable tabular learning [Conference session]; AAAI Conference on Artificial Intelligence; February 2–9; Virtual Event. 2021. pp. 6679–6687. No. 8.
LinkOut - more resources
Full Text Sources