Skip to main content
Nutrients logoLink to Nutrients
. 2026 Sep 21;18(18):3100. doi: 10.3390/nu18183100

Dietary Patterns and the Social Development Index in Mexico City: A Machine-Learning Approach

Mireya Martínez-García 1,2,*,†, Guadalupe Gutiérrez-Esparza 3,4,†, María del Carmen González Salazar 5, Luis M Amezcua-Guerra 1, Enrique Hernández-Lemus 6,*
Editor: Norman Temple
PMCID: PMC13610666  PMID: 42797083

Abstract

Background: Dietary composition reflects the interplay of individual and contextual factors, yet its relationship with socioeconomic–territorial conditions remains insufficiently characterized in large Latin American cities. Methods: We identified empirical dietary patterns among 3439 adults from the cohort in Mexico City and examined their association with the Social Development Index (SDI), a composite area-level measure of socioeconomic–territorial development. Energy-adjusted food-group intakes were analyzed using k-means clustering, and supervised machine-learning models with SHAP-based interpretation were used to characterize pattern membership. Results: Three dietary patterns—Fresh, Mixed, and Refined—were identified along a continuous dietary gradient primarily differentiated by the relative contribution of fruits and vegetables. SHAP analysis showed that the Fresh pattern was characterized mainly by female sex and older age, the Refined pattern by greater contributions from physical activity, cardiometabolic markers, male sex, and lower SDI values, whereas the Mixed pattern was distinguished primarily by cardiometabolic variables, alcohol intake, and durable-goods ownership. Dietary pattern membership was significantly associated with SDI stratum (χ2=40.77, p<0.001), although the effect size was small (Cramér’s V = 0.078). The proportion of participants classified in the Fresh pattern increased from 35.7% in the lowest SDI stratum to 51.9% in the highest, whereas the Refined pattern decreased from 44.6% to 34.0%. Supervised models showed limited discriminatory performance (balanced accuracy ≈ 0.40), indicating substantial overlap among patterns despite their distinct multivariable profiles. Conclusions: These findings indicate that dietary variation in this urban population is better represented as a continuum than as sharply separated dietary phenotypes.

Keywords: dietary habits, urban populations, territorial analysis, social determinants of nutrition, food consumption

1. Introduction

Dietary patterns aim to capture the overall dietary profile of individuals by encompassing the types of food and beverages consumed, the portion sizes, the frequency of consumption and the different ways in which these are combined. Over the last two decades, the analysis of dietary patterns has emerged as a complementary approach to the study of individual nutrients or food items, providing a more comprehensive understanding of dietary behaviors in diverse populations [1,2,3]. Several dietary patterns have been consistently identified in nutritional epidemiology [4,5]. Among the reported patterns are those that have been labeled as Western, prudent or healthy, DASH or Mediterranean, balanced, traditional, high in meat, plant-based, vegetarian or vegan, snacking, and ultra-processed [6,7,8,9,10].

Dietary patterns are commonly assessed using two main approaches: index-based methods (a priori), which rely on predefined dietary scores that evaluate overall diet quality, based on nutritional guidelines and the presumed health effects of specific dietary components; and data-driven (or a posteriori) methods, which apply multivariate statistical techniques—such as factor analysis, principal component analysis (PCA), reduced rank regression (RRR), latent class analysis (LCA) or cluster analysis—to identify patterns directly from dietary intake data independently of prior health assumptions [4,11,12]. Dietary pattern analysis allows researchers to capture the complexity of the diet and its interaction with sociocultural, economic, and environmental factors [13,14,15,16].

Mexico is an upper-middle-income country undergoing an advanced nutrition transition while experiencing persistent socioeconomic and territorial inequalities that influence dietary behaviors and health outcomes [17,18,19]. Mexico City, the country’s capital and the core of the Metropolitan Area of the Valley of Mexico, is one of the largest urban agglomerations in the world, with more than 25 million inhabitants distributed across highly heterogeneous social and built environments [20,21]. This marked territorial diversity makes Mexico City an appropriate setting for investigating how empirical dietary patterns relate to contextual measures of social development.

Socioeconomic inequalities in Mexico have historically shaped dietary and lifestyle behaviors, influencing access to healthy foods and contributing to disparities in nutrition-related health outcomes [22,23,24]. Although previous studies have examined the relationship between socioeconomic status and dietary patterns using individual-level indicators, relatively little attention has been given to area-based measures that capture the broader social context in which dietary behaviors develop [25,26]. The Social Development Index (SDI), developed by the Government of Mexico City, is a multidimensional territorial indicator that integrates information on education, housing, and access to essential goods and services to characterize social inequalities across neighborhoods [27]. Previous studies have shown that the SDI provides a useful framework for examining how structural social conditions relate to health and dietary outcomes [28,29,30].

Against this background, the present study uses baseline data from the Tlalpan 2020 cohort [31], a population-based prospective study designed to investigate cardiometabolic risk factors among adults residing in Mexico City. We applied an unsupervised machine-learning approach to identify empirical dietary patterns within this urban population and subsequently characterized these patterns according to their dietary composition and their sociodemographic, lifestyle, anthropometric and clinical profiles. We also evaluated their relationship with the SDI of participants’ place of residence and explored the contribution of individual-level characteristics to dietary pattern discrimination using supervised machine-learning models with SHAP-based interpretation. Although the Tlalpan 2020 cohort has generated numerous studies on cardiometabolic risk factors and lifestyle, this is the first analysis to investigate empirical dietary patterns within the cohort and examine their relationship with socioeconomic–territorial context using an integrated machine-learning approach.

2. Materials and Methods

2.1. Study Design and Population

The present work is a cross-sectional data analytics study. The Tlalpan 2020 cohort includes clinically healthy men and women, 20 to 50 years of age residing in Mexico City, Mexico [31]. Eligible participants were those with complete baseline data on dietary intake, clinical and sociodemographic characteristics. Individuals with implausible energy intake values (≤500 or ≥5000 kcal/day) were excluded from our analyses.

2.2. Ethical Considerations

The present study is a secondary cross-sectional analysis of baseline data from the Tlalpan 2020 cohort. All participants were provided written informed consent before enrollment. The Tlalpan 2020 cohort was conducted in accordance with the Declaration of Helsinki and was approved by the Research Ethics Committee of the National Institute of Cardiology Ignacio Chávez (INCICH) under protocol code 13-802 [31]. Ethical approval was renewed in 2020 to continue cohort follow-up and allow subsequent secondary analyses.

2.3. Data Collection

Baseline data used in the present analysis were collected between 2014 and 2019 as part of the Tlalpan 2020 cohort [31]. Information was obtained through structured interviews and standardized physical assessments performed by trained personnel, including dietary intake, sociodemographic and socioeconomic–territorial characteristics, lifestyle factors (physical activity, sleep quality, psychological stress, alcohol intake, energy drink consumption, and smoking status), anthropometric measurements, and predefined biochemical markers [31,32].

2.3.1. Dietary Intake

Dietary intake was assessed using a validated Semi-quantitative Food Frequency Questionnaire (SFFQ) developed by the National Institute of Public Health (INSP, Cuernavaca, Morelos, Mexico) for the Mexican adult population [33]. Energy and nutrient intakes were estimated using the Nutritional Habits and Nutrient Consumption Evaluation System (SNUT, version 3.0; National Institute of Public Health, Cuernavaca, Morelos, Mexico) and the Mexican System of Equivalent Foods (SMAE, 5th ed.)  [34,35].

Participants reported their usual dietary intake during the previous year. The SFFQ included 104 food and beverage items with predefined portion sizes covering major food groups, including dairy products, fruits, natural fruit juices, eggs, meats and processed meats, fish and seafood, fresh vegetables, legumes, refined grains, whole grains or high-fiber cereals, sweets and desserts, beverages, fats and spreads, maize products, and traditional Mexican foods [36]. Additional questions assessed the habitual use of sugar and salt, consumption of chicken skin and visible meat fat, and the use of vitamin and calcium supplements.

Consumption frequency was recorded using ten standardized response categories ranging from never to ≥6 times/day. Reported frequencies were converted into daily consumption frequencies using standardized conversion factors (e.g., 2–4 times/week = 0.43 times/day) [37]. Daily food intake (g/day) was then estimated by multiplying the daily consumption frequency by the corresponding standardized portion size. Individual food intakes were subsequently aggregated into food groups and expressed as energy-adjusted densities (g/1000 kcal), which were used for all clustering analyses. Total energy intake was retained as a descriptive variable.

2.3.2. Sociodemographic Characteristics

Sociodemographic data included age (in years), sex (men and women), marital status (single, married and other), educational attainment (highest educational level concluded), employment status (student, business executive, housekeeper, professional, manually qualifies, manually unqualified, other and unemployed), and geographic location of residence. As a contextual proxy for socioeconomic status, we used the SDI. The SDI is a composite socioeconomic–territorial indicator designed to measure the relative levels of social development in all the administrative territorial units of the Mexico City [27]. Each participant was geocoded based on their residential address (postal code and neighborhood) and linked to the corresponding territorial unit. SDI values for each unit were obtained from the publicly available dataset provided by the Council for the Evaluation of Social Development of Mexico City [38].

The SDI incorporates multiple dimensions of deprivation and opportunity, including quality and available space in the home (flooring type and the number of occupants per bedroom), educational access (completion of secondary education (≥13 years of schooling)), access to social security and/or Medical Service (coverage by any Mexican health system), durable goods (ownership of at least three household assets), sanitary adequacy (water supply, toilet facilities, drainage system) and electricity access (availability of electricity in the household) [30]. The index ranges from 0 to 1, with higher scores indicating more favorable social development conditions and lower scores reflecting greater social disadvantage. Based on the resulting value, levels of development are classified into four stratum: (1) very low, (2) low, (3) medium and (4) high [28].

2.3.3. Lifestyle Behaviors

Additional covariates included physical activity, sleep quality and psychological stress to account for the potential influence of these features on dietary behavior and their broader role in shaping both lifestyle and health-related patterns [39,40,41,42,43].

Physical activity was measured using the long version of the International Physical Activity Questionnaire (IPAQ). The IPAQ is a widely used instrument that is known to have well-established reliability and it has been validated in diverse populations, including their use to survey Mexican adults. The IPAQ works by collecting information about the frequency and duration of vigorous, moderate, and walking activities spanning over the last seven days prior to surveying. Total physical activity was calculated in terms of the metabolic equivalent task minutes per week (MET-min/week) units [44].

Sleep quality was assessed using the Spanish version of the Medical Outcomes Study Sleep Scale (MOS-SS). The MOS-SS is also a validated instrument that evaluates sleep characteristics during the previous four weeks [45]. The scale measures multiple dimensions of sleep, including sleep duration (SLPQRAW), adequacy (SLPA), somnolence (SLPS), sleep awakening short of breath or with headache (SLPSOB), snoring (SLPSNR) and sleep disturbances (SLPD). Scores for each domain range from 0 to 100, with higher values indicating a greater presence of the characteristic assessed. The I-index, a global Sleep Problems Index was also calculated. Higher I-index scores reflect an individual’s poorer overall sleep quality and greater sleep impairment [46,47].

Psychological stress was analyzed using the Spanish version of the State–Trait Anxiety Inventory (STAI). The STAI is a psychometric instrument widely used to measure both state and trait anxiety by calculating STAI-S, a temporary indicator, and STAI-T, a chronic indicator. The version of STAI that has been adapted and validated for Mexican and Spanish-speaking populations was the one we used [48]. This implementation provides reliable quantification of psychological distress. Self-reported smoking status, alcohol intake and energy drink consumption were evaluated using standardized questionnaires.

2.3.4. Clinical and Biochemical Measurements

Anthropometric measurements were obtained following standardized protocols. Body weight, height, and waist circumference were measured using clinical-grade calibrated equipment. Raised waist circumference was defined as ≥90 cm in men and ≥80 cm in women, following the International Diabetes Federation criteria for Latin American populations. Resting heart rate and blood pressure were measured using standardized procedures. Hypertension was defined as systolic blood pressure ≥140 mmHg and/or diastolic blood pressure ≥90 mmHg following current international guidelines [31,49].

Biochemical parameters were assessed from fasting blood samples (12 h fast) and 24 h urine collections. Analyses were performed at the accredited Central Laboratory of the INCICH using standardized automated methods (accreditation NMX-EC-15189-IMNC-2015/ISO 15189:2012 standard number CL-137). Serum measurements included fasting glucose, total cholesterol, triglycerides, low-density lipoprotein cholesterol (LDL-C), high-density lipoprotein cholesterol (HDL-C), uric acid, creatinine, and sodium. The atherogenic index was calculated as the LDL-C/HDL-C ratio. The 24 h urine samples were analyzed to determine levels of urinary sodium, potassium, and creatinine. Collection completeness was verified using sex-specific creatinine excretion reference ranges. All of our laboratory procedures followed standardized quality-control protocols [31].

2.4. Analytical Methods

A two-stage machine-learning framework was used to characterize dietary patterns and examine their relationships with behavioral, clinical, socioeconomic, and territorial factors. First, energy-adjusted food-group intakes were analyzed using unsupervised clustering to identify empirical dietary patterns without predefined labels. Second, supervised classification models were applied to evaluate the extent to which cluster membership could be characterized by non-dietary variables. The objective of this stage was not to predict dietary intake, but to assess the contribution of individual and contextual characteristics to the differentiation of the identified patterns. In a subsequent analysis, dietary pattern membership was examined across Social Development Index strata, which were used as a proxy for broader socioeconomic–territorial gradients. All analyses were performed using Python 3.9.13 with standard machine-learning libraries. Figure 1 presents a schematic walk through the full workflow.

Figure 1.

Figure 1

Analytical workflow for the identification and characterization of dietary patterns and their relationships with individual-level characteristics and the Social Development Index. Created in BioRender. Hernandez-Lemus, E. (2026) https://BioRender.com/5nmw8nt.

2.4.1. Dietary Data Preprocessing

The dietary data first underwent a preprocessing stage. Individual food items were aggregated into food groups by nutritional similarity, and each group was expressed as a density (grams per 1000 kcal) to remove the influence of total energy intake and capture dietary composition rather than the overall quantity of food consumed. This energy-adjusted (density) format is recommended for cluster analysis of dietary data [50,51]. As part of this preprocessing, extreme observations were identified and removed using the Isolation Forest algorithm, an ensemble-based anomaly detection method suitable for high-dimensional data and previously applied in nutritional and biomedical contexts [52]. The energy-adjusted variables were then log-transformed to reduce skewness and subsequently standardized, limiting the influence of residual outliers and ensuring comparability across food groups. The resulting preprocessed variables were then used as input for the clustering stage described below.

2.4.2. Unsupervised Identification of Dietary Patterns

The optimal number of clusters was selected using a combination of the Elbow method and the Silhouette score, balancing within-cluster compactness and between-cluster separation [53]. Based on these criteria, K-means clustering was applied to classify participants into mutually exclusive dietary patterns. Clustering was performed in the full standardized feature space. Principal component analysis (PCA) was conducted post hoc solely for visualization purposes and did not influence cluster assignment.

Internal cluster validity was evaluated using multiple complementary metrics, including the global Silhouette score, the Davies–Bouldin index, and the Calinski–Harabasz index, which jointly assess cluster cohesion and separation [54,55]. Cluster compactness was further examined through mean intra-cluster distances. Cluster-level dietary profiles were characterized by computing mean food group intakes within each cluster and visualized using heatmaps and hierarchical dendrograms to facilitate interpretation of dietary gradients.

2.4.3. Supervised Modeling of Dietary Pattern Membership

To evaluate the extent to which non-dietary characteristics could discriminate dietary pattern membership, supervised machine-learning models were implemented using dietary cluster membership as the target variable. This step was not intended to optimize individual-level prediction, but rather to evaluate how well non-dietary characteristics classified dietary pattern membership and to identify the variables contributing most strongly to model predictions.

Predictors comprised the non-dietary variables available in the cohort, grouped into four domains: demographic and anthropometric (age, sex, weight, height, body mass index, waist circumference, systolic and diastolic blood pressure, and heart rate); lifestyle behaviors (total physical activity in MET-min/week, state and trait anxiety, sleep-quality indicators, smoking status, alcohol intake, and energy drink consumption); cardiometabolic biomarkers (uric acid, creatinine, HDL and LDL cholesterol, total cholesterol, triglycerides, fasting glucose, and sodium); and socioeconomic–territorial characteristics (marital status, the individual Social Development Index value and its stratum, and the SDI component dimensions of education, housing quality, housing lag, sanitation, health-service access, durable-goods ownership, and energy adequacy). Dietary variables were deliberately excluded from the predictor set because they define the clustering outcome and their inclusion would render the classification circular. Numerical and categorical variables were preprocessed using a unified pipeline implemented with a ColumnTransformer, including median imputation for numerical variables and most-frequent imputation followed by one-hot encoding for categorical variables. All preprocessing steps were embedded within the modeling pipeline to prevent data leakage. Random Forest and HistGradientBoosting classifiers were then trained using this pipeline, with hyperparameters optimized by grid search under stratified five-fold cross-validation and balanced accuracy as the primary metric [56].

2.4.4. Class Imbalance Handling and Model Comparison

The three-cluster dietary pattern membership derived from the unsupervised analysis served as the target variable for the supervised classification models. All three clusters were retained for model development and evaluation. To address residual class imbalance, Adaptive Synthetic Sampling (ADASYN) was applied exclusively to the training folds within an imblearn pipeline [57]. Both Random Forest and HistGradientBoosting classifiers were evaluated using the same hyperparameter optimization and validation strategy described above.

2.4.5. Model Interpretability

Model interpretability was assessed using SHAP (Shapley Additive Explanations), a game-theoretic approach for explaining machine-learning predictions [58]. Because both classifiers showed comparable predictive performance, SHAP values were computed for the HistGradientBoosting model in the three-class setting. To ensure interpretability based on observed data while maintaining computational feasibility, SHAP analysis was conducted on a random subsample of 800 real participants from the preprocessed training set using the fitted preprocessing pipeline, explicitly excluding synthetic samples generated by ADASYN. Class-specific SHAP values were derived from predicted probabilities to identify predictors that increased or decreased the likelihood of membership in each dietary pattern.

To complement model-based interpretability, we constructed a composite psycho-behavioral risk index integrating sleep quality, anxiety, and risk-related behaviors (Table 1). Sleep quality was categorized into tertiles based on the sleep duration averaged (SLPQRAW), defining poor, intermediate, and good sleep. Anxiety was categorized into tertiles for both state and trait anxiety scores and combined into a global anxiety indicator (high anxiety if either dimension was high; low anxiety if both were low; otherwise moderate). Behavioral risk was defined as the presence of at least one of four binary behaviors (alcohol intake, energy drink consumption, current smoking, and passive smoking exposure). Each domain (sleep quality, anxiety, and behavioral risk) contributed one point to the composite index. The final index ranged from 0 to 3, reflecting the accumulation of adverse psycho-behavioral domains rather than individual behaviors.

Table 1.

Operational definition of the composite psycho-behavioral risk index.

Domain Variable (s) Original Scale Categorization Rule
Sleep quality Sleep duration (SLPQRAW) Continuous Lowest tertile (q1 ≤ 6)
classified as poor sleep
Anxiety State and trait anxiety scores Continuous High anxiety if either state
or trait score in the highest tertile
Behavioral risk Alcohol intake, energy drink consumption,
current smoking, passive smoking exposure Binary Presence of at least one risk behavior
Composite index – – Sum of adverse psycho-behavioral
– – domains (range 0–3)

2.4.6. Association Between Dietary Patterns and Social Development Strata

Associations between dietary patterns and SDI strata were assessed using contingency tables and formally tested with the chi-square test of independence. Effect size was quantified using Cramér’s V to evaluate the magnitude of association independently of sample size [59]. Stacked-bar diagrams were used for visualization only, while inferential conclusions were based on statistical testing.

2.5. Main Analytical Variables

The principal analytical variable was dietary pattern membership, identified from participants’ usual dietary intake assessed with the SFFQ. The SDI was included as the main contextual variable. The SDI was used to examine the distribution of dietary patterns across different levels of social development through association analyses.

Additional variables used to characterize dietary pattern membership included sociodemographic characteristics, lifestyle behaviors, anthropometric measurements, and cardiometabolic biomarkers. These variables were incorporated into the supervised learning models to characterize the multidimensional profiles associated with each dietary pattern.

3. Results

The derivation of the analytical sample is presented in Figure 2. Of the 3564 participants enrolled in the Tlalpan 2020 baseline cohort, 75 were excluded because of missing baseline data, leaving 3489 participants with one complete baseline observation per individual. Multivariate dietary outliers identified using the Isolation Forest algorithm (1% contamination) and participants with implausible energy intake were subsequently excluded through the joint application of both criteria (n=50), of whom 35 were identified as dietary outliers, yielding a final analytical sample of 3439 participants for dietary pattern identification. Among these, 3385 participants had an assigned Social Development Index stratum and were included in the SDI association analysis.

Figure 2.

Figure 2

Flow diagram showing the derivation of the analytical samples from the Tlalpan 2020 baseline cohort. Created in BioRender. Hernandez-Lemus, E. (2026) https://BioRender.com/kslpg2r.

The analytical sample had a mean age of 37.5±9.1 years, and 62.6% of participants were women. Anthropometric and cardiometabolic characteristics stratified by sex are presented in Supplementary Table S1a. Men exhibited higher median BMI, waist circumference, systolic and diastolic blood pressure, LDL cholesterol, triglycerides, and fasting glucose, whereas women showed higher HDL cholesterol concentrations. Overweight and obesity were also more prevalent among men. Regarding the socioeconomic–territorial context, 52% of participants resided in neighborhoods classified as Very Low or Low SDI, whereas 24% lived in High SDI areas (Supplementary Table S1b).

Median total physical activity was 2431.75 MET-min/week (IQR: 1178.25–4888.25). According to the IPAQ classification, 46.0% of participants were moderately active, 42.4% were highly active, and 11.6% reported low physical activity levels. Smoking and alcohol consumption were common in the cohort, while additional psychological and sleep-related characteristics are summarized in Supplementary Table S1b. Mean total energy intake was 2161±647 kcal/day, with carbohydrates contributing the largest proportion of total energy intake, followed by fat and protein (Supplementary Table S1c).

3.1. Identification of Dietary Patterns

The optimal number of clusters was determined using the Elbow method and the Silhouette score, both of which indicated that a three-cluster solution (k = 3) was the most appropriate.

Several internal validation metrics supported this selection: the global silhouette score was 0.110, the Davies–Bouldin index was 2.45, and the Calinski–Harabasz score was 352. The resulting solution explained approximately 17.0% of the total variance (BSS/TSS).

Cluster 1 (Fresh; n = 1530) was characterized by a higher relative contribution of fruits and vegetables. Cluster 2 (Refined; n = 1395) showed a greater contribution of refined grains and sweets. Cluster 3 (Mixed; n = 513) exhibited an intermediate dietary composition, with contributions of fresh and refined food groups falling between those of the Fresh and Refined patterns. For visualization purposes, participants are displayed in the two-dimensional PCA projection (Figure 3); however, cluster assignment was performed using the full set of standardized food-group density variables.

Figure 3.

Figure 3

Projection of participants onto the first two principal components (PCA), colored by their k-means cluster (k=3). Each point represents an individual. The PCA was applied for visualization only; clustering was performed on the energy-adjusted, standardized food-group density profiles.

Figure 4 presents a heatmap showing the mean composition (percentage of total food weight per food group) across the three identified dietary patterns. Warmer colors indicate a greater relative contribution of each food group, whereas cooler colors indicate a lower contribution. Fruits represented the primary source of differentiation among patterns: the Fresh pattern showed the highest relative fruit contribution, the Refined pattern the lowest, and the Mixed pattern intermediate values. The Refined pattern was characterized by a greater contribution of refined grains and sweets, whereas the Fresh pattern showed a greater contribution of vegetables. Dairy, fish, processed meat, and fats remained consistently low across all patterns, with only minor differences in their relative contributions among clusters.

Figure 4.

Figure 4

Heatmap of the mean composition of each dietary pattern, expressed as the percentage of total food weight contributed by each food group. Warmer colors indicate a higher relative contribution and cooler colors a lower contribution, as shown by the color bar. Patterns are ordered from the Fresh (fruit/vegetable) to the Refined (grains/sweets) profile. For each participant, the value shown for a food group is its grams divided by the participant’s total food weight (the summed grams across all food groups), expressed as a percentage and then averaged within each cluster. These composition percentages are provided as an intuitive descriptive summary and differ from the variables used for clustering, which were energy-adjusted food-group densities (grams per 1000 kcal), log-transformed and standardized. The heatmap therefore illustrates the relative food-group composition of each pattern rather than the transformed variables on which the clustering was performed. These compositional differences are presented descriptively and were not subjected to formal statistical testing; accordingly, the heatmap should not be interpreted as evidence of statistically significant differences between dietary patterns.

To aid interpretation, we constructed a hierarchical dendrogram (Figure 5) that groups food groups according to the similarity of their variation across the three dietary patterns. This aggregated view highlights the food groups that contribute most to pattern differentiation. The most prominent feature is that fruits separate from all other food groups at the largest linkage distance. Among the remaining groups, fresh vegetables and refined grains form the closest pair, whereas dairy, eggs, fish, processed meat, fats, legumes, and sweets cluster together at shorter distances.

Figure 5.

Figure 5

Hierarchical dendrogram of the food groups, based on how similarly each group varies across the three dietary patterns. Note that this dendrogram groups food groups, not participants; the colors are assigned automatically by the linkage distance threshold and do not correspond to the dietary patterns. The horizontal axis represents the distance (dissimilarity) at which groups merge: groups joined at shorter distances vary more similarly across patterns. Fruits form a separate branch because variation in fruit intake contributes most strongly to the dietary gradient identified across the empirical patterns.

Beyond identifying dietary patterns, we next examined whether dietary pattern membership was associated with broader non-dietary characteristics. To this end, the unsupervised clustering framework was complemented with physical activity, sleep quality and psychological stress, cardiometabolic, and sociodemographic variables, which were subsequently evaluated using supervised machine-learning models.

3.2. Supervised Classification Performance

During cross-validation, both models achieved a mean balanced accuracy of approximately 0.41. On the independent test set, Random Forest + ADASYN reached an accuracy of 0.528 and a balanced accuracy of 0.413 (macro F1 = 0.383), while HistGradientBoosting + ADASYN achieved an accuracy of 0.508 and a balanced accuracy of 0.403 (macro F1 = 0.383). Across both models, the Fresh and Refined patterns showed higher recall, whereas the Mixed pattern showed the lowest recall. A summary of performance metrics for all supervised classification models is provided in Table 2.

Table 2.

Supervised classification performance for dietary cluster assignment.

Model Setting Accuracy Balanced Accuracy Macro F1
Random Forest + ADASYN Fresh/Refined/Mixed 0.528 0.413 0.383
HistGradientBoosting + ADASYN Fresh/Refined/Mixed 0.508 0.403 0.383

3.3. SHAP-Based Interpretation of Dietary Pattern Classification

SHAP characterizes the variables that most influenced model classification of the empirically derived dietary patterns (Fresh, Refined, and Mixed). Figure 6 summarizes the variables with the largest contributions to the prediction of each dietary pattern.

Figure 6.

Figure 6

Predictors most associated with each dietary pattern (SHAP analysis of the HistGradientBoosting model). Each panel corresponds to one pattern (Fresh, Refined, Mixed) and shows the ten most influential variables, ranked by mean absolute SHAP value; longer bars indicate a stronger contribution to identifying that pattern. SHAP values reflect learned associations, not causal effects.

For the Fresh (fruit/vegetable) pattern, sex was the dominant predictor, followed by age. Female sex markedly increased the model-derived probability of classification into this dietary pattern (mean SHAP =+0.91 for women vs. −0.75 for men), and older age also increased it. Physical activity (MET-min/week), passive smoking status, and several anthropometric and cardiometabolic markers (systolic blood pressure, waist circumference, BMI, and HDL cholesterol) showed smaller contributions to model predictions.

The Refined (grains/sweets) pattern was most strongly associated with physical activity (MET-min/week), followed by cardiometabolic and socioeconomic–territorial features. Higher uric acid and higher triglycerides increased the predicted probability of membership, whereas a higher individual Social Development Index value decreased it. Male sex also increased the predicted probability of this pattern (mean SHAP =+0.37 for men vs. −0.01 for women). The Mixed pattern was most strongly associated with cardiometabolic markers (total cholesterol, triglycerides, uric acid, and creatinine), together with durable-goods ownership and alcohol intake. Taken together, the SHAP analysis showed that different combinations of demographic, lifestyle, anthropometric, cardiometabolic, and socioeconomic–territorial characteristics contributed to the prediction of each dietary pattern.

Table 3 summarizes the distribution of dietary patterns across psycho-behavioral risk categories, derived from the composite index integrating sleep quality, global anxiety, and risk-related behaviors. Pattern distributions were broadly stable across psycho-behavioral risk strata. The Fresh pattern was the most prevalent in the low-risk group (54.9%) and remained the most common in the moderate- and high-risk groups (45.0% and 43.1%, respectively), followed by the Refined pattern (32.5%, 41.1%, and 41.2%) and the Mixed pattern (12.7%, 13.9%, and 15.6%).

Table 3.

Distribution of dietary patterns within each psycho-behavioral risk level. Values are the percentage of participants within each risk level assigned to each dietary pattern (row percentages).

Psycho-Behavioral Risk Fresh (%) Mixed (%) Refined (%) n
Low 54.9 12.7 32.5 237
Moderate 45.0 13.9 41.1 1028
High 43.1 15.6 41.2 2173

3.4. Cardiometabolic Biomarkers Across Dietary Clusters

The Fresh pattern showed the lowest median uric acid (5.00 mg/dL), the highest HDL cholesterol (47.6 mg/dL), and the lowest triglycerides (118.4 mg/dL), whereas the Refined pattern showed the highest uric acid (5.52 mg/dL), the lowest HDL cholesterol (44.8 mg/dL), and the highest triglycerides (131.1 mg/dL). The Mixed pattern showed intermediate values for these biomarkers. Sodium and glucose were broadly similar across patterns. Variability was substantial for some biomarkers, particularly triglycerides, resulting in broad distributions within each dietary pattern.

3.5. Social Development Conditions Across Dietary Clusters

Figure 7 shows the composition of dietary patterns within each SDI stratum. The three dietary patterns were observed in every stratum, although their relative frequencies differed across levels of social development. The Fresh pattern increased from 35.7% in the lowest stratum to 51.9% in the highest, whereas the Refined pattern decreased from 44.6% to 34.0% across the same gradient. The Mixed pattern represented between 13.0% and 19.7% of participants across strata. The chi-square test showed a statistically association between SDI stratum and dietary pattern (χ2=40.77, p<0.001), with a Cramér’s V of 0.078.

Figure 7.

Figure 7

Dietary pattern composition across social development strata. Each bar corresponds to one Social Development Index (SDI) stratum and is divided into the three dietary patterns, summing to 100% within the stratum; percentages and stratum sizes (n) are shown.

4. Discussion

The present study extends previous analyses from the Tlalpan 2020 cohort by shifting the analytical focus from individual nutrients and cardiometabolic outcomes to empirical dietary patterns as multidimensional behavioral phenotypes, providing a population-level perspective on habitual dietary behaviors and their relationship with the Social Development Index [28]. The analytical sample exhibited anthropometric and cardiometabolic characteristics consistent with well-established sex-related differences in adult populations [60]. Men showed a higher prevalence of overweight and obesity, together with greater waist circumference, blood pressure, triglycerides, LDL cholesterol, and fasting glucose, whereas women presented higher HDL cholesterol concentrations. These characteristics provide important epidemiological context for interpreting the identified dietary patterns and facilitate comparison with other adult cohorts. In addition, over half of the participants resided in neighborhoods classified as Very Low or Low SDI, providing a broad socioeconomic–territorial spectrum within which the relationship between dietary patterns and residential social development could be examined.

Using an integrated machine-learning framework combining unsupervised clustering, supervised characterization, and SHAP-based model interpretation, this study characterizes dietary behavior in relation to the socioeconomic–territorial context through complementary analytical perspectives. The identified dietary patterns primarily reflected variation in the consumption of fresh plant-based foods rather than marked contrasts in the intake of ultra-processed or animal-based foods. As illustrated by the principal component projection (Figure 3), the separation between clusters was modest, consistent with the inherently multidimensional and heterogeneous nature of dietary behavior in complex urban environments [1].

The identified dietary patterns should therefore be interpreted as empirical summaries of predominant dietary compositions along a behavioral continuum rather than as discrete or mutually exclusive dietary phenotypes. This interpretation is consistent with the broader understanding in nutritional epidemiology that data-driven dietary patterns represent approximations of underlying behavioral gradients rather than discrete dietary categories [50,61]. As discussed by Hu [1] and later by Newby and Tucker [62], clustering methods provide useful empirical representations of overall dietary behavior but necessarily simplify a continuous dietary space by assigning each individual to a single pattern. The modest overlap observed between dietary patterns reflects both the inherently continuous nature of dietary behavior and the limited discriminatory capacity of the clustering solution itself, as indicated by the low silhouette score (0.110) and the modest between-cluster variance explained (BSS/TSS ≈17%). Accordingly, the identified patterns are best understood as overlapping dietary gradients rather than well-separated dietary profiles.

Nutritionally, the identified patterns are distinguished by their overall dietary composition rather than by pronounced differences in any single food group. As shown in Figure 4, the Fresh pattern was characterized by a higher relative contribution of fruits and vegetables, whereas the Refined pattern showed a greater contribution of refined grains and sweets together with a lower contribution of fresh plant-based foods. This compositional contrast is consistent with dietary patterns previously identified in nutritional epidemiology, where prudent-type patterns are characterized by higher consumption of fruits and vegetables, whereas Western dietary patterns are associated with greater consumption of refined grains, sweets, and other energy-dense foods [63]. Similar dietary profiles have also been reported in Latin American populations, where Western-type patterns combine higher intakes of refined and processed foods with lower consumption of fruits and vegetables [64,65]. The heatmap in Figure 4 is a descriptive visualization of mean food-group composition within each pattern; the differences shown were not subjected to formal statistical testing and should be interpreted as descriptive rather than inferential.

The hierarchical clustering of food groups (Figure 5) corroborated this nutritional interpretation by showing that fresh plant-based food groups contributed most strongly to the differentiation of dietary patterns, whereas refined grains occupied an intermediate position and the remaining food groups exhibited comparatively smaller contributions to overall dietary variability. The remaining food groups clustered at relatively short distances, indicating a comparatively smaller contribution to dietary differentiation. This pattern of food-group clustering indicates that dietary variability within this cohort was driven primarily by differences in the prominence of fresh plant-based foods, particularly the relative contribution of fresh plant-based foods. This observation is particularly relevant in the Mexican context, where traditional and industrialized foods frequently coexist within the same diet, resulting in hybrid dietary profiles that are not easily captured by conventional dietary classifications [66,67].

A relevant finding of this study was the limited ability of the supervised models to discriminate among dietary patterns. Recall was higher for the Fresh and Refined patterns than for the Mixed pattern, which showed the lowest recall and greater classification overlap with the other two patterns. SHAP analysis provided additional insight into the variables contributing to the prediction of each pattern. For the Fresh pattern, the largest contributions came from sex and age, with female sex and older age increasing the model-predicted probability of membership, consistent with previous evidence that diet quality tends to improve with age and that women report higher fruit and vegetable intake [68]; physical activity and anthropometric and cardiometabolic markers made smaller contributions.

Prediction of the Refined pattern relied more strongly on physical activity, selected cardiometabolic markers, male sex, and lower SDI values, in line with reports linking male sex and higher physical activity levels to less prudent, Western-type dietary patterns [69]; however, this association is not consistent across populations, since other studies have found the opposite direction—greater physical activity associated with healthier, Mediterranean-type patterns rather than Western ones—suggesting that the relationship between physical activity and dietary pattern membership is context-dependent rather than universal.

For the Mixed pattern, the largest contributions came from cardiometabolic variables, alcohol intake, and durable-goods ownership, echoing findings that socioeconomic proxies such as household asset indices are associated with less clearly differentiated or hybrid dietary patterns [70]. Thus, the three patterns were characterized by different combinations of individual and contextual variables rather than by a single consistently discriminating domain.

Differences in cardiometabolic biomarkers across dietary patterns were modest. The Fresh pattern showed lower uric acid and triglyceride concentrations together with higher HDL cholesterol, whereas the Refined pattern showed the opposite tendency. This distribution is compatible with the composition of the identified patterns and with previous evidence linking diets richer in fruits and vegetables to more favorable lipid and metabolic profiles [71,72,73]. Nevertheless, the broad within-pattern distributions observed for several biomarkers indicate that dietary composition alone is unlikely to explain the cardiometabolic heterogeneity of this population.

The association between Social Development Index (SDI) stratum and dietary pattern membership was statistically significant but weak (Figure 7). The proportion of participants classified in the Fresh pattern increased across levels of social development, whereas the Refined pattern became less frequent, in agreement with previous evidence linking socioeconomic conditions to diet quality [74,75]. However, the small Cramér’s V indicates that SDI stratum only weakly differentiated dietary pattern membership within this urban cohort. These findings suggest that residential socioeconomic–territorial conditions represent one component of dietary variation, alongside other individual and contextual influences [76].

Several contextual factors may help explain the modest socioeconomic–territorial gradient observed in this study, although these mechanisms were not directly evaluated. Mexico City’s extensive network of traditional markets (mercados and tianguis), where a large proportion of vendors offer fresh foods [77], may facilitate access to fruits and vegetables across neighborhoods with different levels of social development. In addition, while the SDI captures multiple dimensions of socioeconomic–territorial conditions, it does not directly measure characteristics of the local food environment, such as the availability of food retail outlets, food prices, transportation, or affordability [78,79].

These observations agree with previous research in Mexico City showing that diet quality is more strongly associated with characteristics of the neighborhood food environment than with territorial socioeconomic level alone [79,80]. Similarly, individual-level socioeconomic indicators have been associated with dietary patterns among adults in Mexico City [81], suggesting that both contextual and individual socioeconomic factors may contribute to dietary behavior. Incorporating detailed measures of the food environment into future studies together with individual- and area-level socioeconomic indicators would help clarify the relative contribution of these complementary determinants [82].

This study demonstrates that combining unsupervised clustering, supervised machine learning, and model interpretability techniques provides a richer characterization of dietary behavior than dietary pattern identification alone. Rather than representing discrete dietary phenotypes, the identified patterns describe a continuous spectrum of dietary composition shaped by multiple demographic, behavioral, cardiometabolic, and socioeconomic–territorial influences. This integrated analytical framework may facilitate future investigations of dietary behavior in complex urban populations and support the development of more context-sensitive public health nutrition strategies.

5. Limitations

This study has several limitations that should be considered when interpreting its findings. First, the cross-sectional design precludes causal inference. The observed associations between dietary patterns and behavioral, clinical, and socioeconomic–territorial variables represent relationships measured at a single time point and should not be interpreted as temporal or causal. In addition, participants were drawn from a relatively homogeneous urban cohort, in which socioeconomic–territorial variability may be narrower than that observed across broader regional or national populations. Together, these design characteristics may have attenuated the observed association between the SDI and dietary pattern membership.

Second, dietary intake was assessed using a semi-quantitative food frequency questionnaire (SFFQ) with a one-year recall period. Although the instrument has been validated for the Mexican population, self-reported dietary assessment is subject to recall bias and misreporting, which may introduce measurement error. Misreporting has been associated with sex, body weight, educational attainment, and socioeconomic position in Latin American populations [83,84]. Because dietary patterns were derived from the relative composition of food groups rather than absolute intake, the influence of this bias may have been reduced but cannot be ruled out.

Third, participants with a previous diagnosis of hypertension or diabetes were excluded to minimize potential dietary modifications related to disease management, which may limit generalizability to adults living with these common chronic conditions. In addition, dietary data were collected between 2014 and 2019, before the COVID-19 pandemic and subsequent changes in food environments and dietary behaviors. Therefore, the identified patterns should not be interpreted as representing the current distribution of dietary behaviors among adults in Mexico City.

Fourth, the SDI is an area-level measure of socioeconomic conditions based on participants’ place of residence. Consequently, it reflects contextual socioeconomic characteristics rather than individual socioeconomic status. As with any ecological measure, it may not fully capture socioeconomic variability at the individual level. Furthermore, because the SDI does not directly characterize features of the local food environment, such as food retail availability, food prices, transportation, or food affordability, potentially relevant contextual determinants of dietary behavior were not included in the present analyses.

Finally, the analytical framework has inherent methodological limitations. The clustering solution showed modest separation (global silhouette score = 0.110), despite good internal stability (97.5% positive silhouette values; bootstrap adjusted Rand index = 0.93). Accordingly, the identified dietary patterns should be interpreted as empirical representations of a continuous dietary gradient rather than sharply distinct dietary phenotypes. Likewise, the modest predictive performance of the supervised machine-learning models indicates that the variables included in this study explained only part of the variability in dietary pattern membership, suggesting that additional individual, environmental, and contextual determinants contribute to dietary behavior.

6. Conclusions

This study identified three empirical dietary patterns in an urban cohort of adults from Mexico City using an integrated machine-learning framework that combined unsupervised pattern identification, supervised characterization, and model interpretability within a socioeconomic–territorial context. Rather than representing sharply distinct dietary phenotypes, the identified patterns reflected a continuous gradient of dietary composition, driven primarily by differences in the relative contribution of fruits, vegetables, refined grains, and sweets, whereas the remaining food groups varied comparatively little across patterns. This gradual compositional shift, rather than sharply distinct profiles, characterizes the dietary variation observed in this cohort.

Although dietary pattern membership was significantly associated with the Social Development Index, the observed socioeconomic–territorial gradient was modest, indicating that residential socioeconomic conditions captured only part of the variability in dietary behavior within this cohort. Similarly, the limited discriminatory performance of the supervised models indicates that dietary behavior reflects the combined influence of multiple individual and contextual factors rather than any single domain of characteristics.

The analytical framework adopted in this study provides a multidimensional characterization of dietary behavior that extends beyond conventional dietary pattern identification. This approach may facilitate future investigations of dietary behavior in complex urban populations and support the integration of individual, environmental, and socioeconomic–territorial dimensions in nutritional epidemiology. Longitudinal studies incorporating detailed measures of the food environment and individual socioeconomic characteristics will be essential to clarify the determinants and long-term health implications of these dietary patterns.

Acknowledgments

This research was supported by the Secretariat of Science, Humanities, Technology and Innovation (SECIHTI, México), Investigadores por México program, No. 1591. The authors gratefully acknowledge the advisory group of Maite Vallejo and Tlalpan 2020 project for their logistic support in this work for helpful discussions and clinical feedback.

Supplementary Materials

The following supporting information can be downloaded at https://www.mdpi.com/article/10.3390/nu18183100/s1. Table S1a. Anthropometric and cardiometabolic characteristics stratified by sex; Table S1b. Sociodemographic and territorial characteristics of the study population; Table S1c. Dietary intake: energy and macronutrient composition.

Author Contributions

M.M.-G. led the conceptualization of the study, designed the methodology, conducted formal analysis, drafted the original manuscript and oversaw both supervision and project administration. G.G.-E. was responsible for formal analysis, developed and validated the software, methodology development, data visualization and assisted in the writing and revision of the manuscript. M.d.C.G.S. provided expert guidance on nutritional methodology and supported the dietary data interpretation. L.M.A.-G. participated in data curation, investigation, and contributed to the review and editing of the manuscript. E.H.-L. provided general supervision and project administration, designed and review the formal analysis and contributed to manuscript review and editing. All authors have read and agreed to the published version of the manuscript.

Institutional Review Board Statement

The study was conducted in accordance with the Declaration of Helsinki and approved by the Bioethics Committee of the National Institute of Cardiology “Ignacio Chávez” in Mexico City (protocol ID: 13-802 and date of approval 19 February 2013.).

Informed Consent Statement

Informed consent was obtained from all subjects involved in the study.

Data Availability Statement

The raw data supporting the conclusions of this article are not publicly available due to privacy and ethical restrictions, as they belong to the Tlalpan 2020 cohort. Requests to access the datasets should be directed to the corresponding authors.

Conflicts of Interest

The authors declare no conflicts of interest.

Funding Statement

This work was supported by Intramural funds from the National Institute of Genomic Medicine. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.

Footnotes

Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

References

  • 1.Hu F.B. Dietary pattern analysis: A new direction in nutritional epidemiology. Curr. Opin. Lipidol. 2002;13:3–9. doi: 10.1097/00041433-200202000-00002. [DOI] [PubMed] [Google Scholar]
  • 2.Yang Q., Sun Y. Dietary Patterns, Food Intake and Health: New Evidence from Epidemiological and Genetic Studies. Nutrients. 2024;16:919. doi: 10.3390/nu16070919. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Hutchinson J.M., Raffoul A., Pepetone A., Andrade L., Williams T.E., McNaughton S.A., Leech R.M., Reedy J., Shams-White M.M., Vena J.E., et al. Advances in methods for characterising dietary patterns: A scoping review. Br. J. Nutr. 2025;133:987–1001. doi: 10.1017/s0007114524002587. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Zhao J., Li Z., Gao Q., Zhao H., Chen S., Huang L., Wang W., Wang T. A review of statistical methods for dietary pattern analysis. Nutr. J. 2021;20:37. doi: 10.1186/s12937-021-00692-7. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Schulz C.A., Oluwagbemigun K., Nöthlings U. Advances in dietary pattern analysis in nutritional epidemiology. Eur. J. Nutr. 2021;60:4115–4130. doi: 10.1007/s00394-021-02545-9. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Estrada-Reyes C., Tlatempa-Sotelo P., Valdés-Ramos R., Cabañas-Armesilla M., Manjarrez-Montes-de Oca R. Dietary patterns and fitness level in Mexican teenagers. J. Nutr. Metab. 2018;2018:7159216. doi: 10.1155/2018/7159216. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Bardagjy A.S., Steinberg F.M. Relationship between HDL functional characteristics and cardiovascular health and potential impact of dietary patterns: A narrative review. Nutrients. 2019;11:1231. doi: 10.3390/nu11061231. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Karageorgou D., Magriplis E., Mitsopoulou A., Dimakopoulos I., Bakogianni I., Micha R., Michas G., Chourdakis M., Ntouroupi T., Tsaniklidou S., et al. Dietary patterns and lifestyle characteristics in adults: Results from the Hellenic National Nutrition and Health Survey (HNNHS) Public Health. 2019;171:76–88. doi: 10.1016/j.puhe.2019.03.013. [DOI] [PubMed] [Google Scholar]
  • 9.Consavage Stanley K., Hedrick V.E., Serrano E., Holz A., Kraak V.I. US adults’ perceptions, beliefs, and behaviors towards plant-rich dietary patterns and practices: International food information council food and health survey insights, 2012–2022. Nutrients. 2023;15:4990. doi: 10.3390/nu15234990. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Sandri E., Sguanci M., Cantín Larumbe E., Cerdá Olmedo G., Werner L.U., Piredda M., Mancin S. Plant-based diets versus the Mediterranean dietary pattern and their socio-demographic determinants in the Spanish population: Influence on health and lifestyle habits. Nutrients. 2024;16:1278. doi: 10.3390/nu16091278. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Anderson A.L., Harris T.B., Tylavsky F.A., Perry S.E., Houston D.K., Hue T.F., Strotmeyer E.S., Sahyoun N.R., Study H.A. Dietary patterns and survival of older adults. J. Am. Diet. Assoc. 2011;111:84–91. doi: 10.1016/j.jada.2010.10.012. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Wingrove K., Lawrence M.A., McNaughton S.A. A systematic review of the methods used to assess and report dietary patterns. Front. Nutr. 2022;9:892351. doi: 10.3389/fnut.2022.892351. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Lin Y.H., Hsu H.C., Bai C.H., Wu W.C. Dietary patterns among older people and the associations with social environment and individual factors in Taiwan: A multilevel analysis. Int. J. Environ. Res. Public Health. 2022;19:3982. doi: 10.3390/ijerph19073982. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Zhang Q., Liu Z., Hu W., Chen X., Li J., Wan Q., Zhao J., Ruan Y., Dao B., Li Y., et al. Social capital and dietary patterns in three ethnic minority groups native to Yunnan Province, Southwest China. PLoS ONE. 2021;16:e0256078. doi: 10.1371/journal.pone.0256078. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Williams S.L., Vandelanotte C., Irwin C., Bellissimo N., Heidke P., Saluja S., Saito A., Khalesi S. Association between dietary patterns and sociodemographics: A cross-sectional study of Australian nursing students. Nurs. Health Sci. 2020;22:38–48. doi: 10.1111/nhs.12643. [DOI] [PubMed] [Google Scholar]
  • 16.Taylor R.M., Moore J.A., Griffiths A.R., Cousins A.L., Young H.A. Unveiling Dietary Complexity: A Scoping Review and Reporting Guidance for Network Analysis in Dietary Pattern Research. Nutrients. 2025;17:3261. doi: 10.3390/nu17203261. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.World Bank Mexico: Overview. 2025. [(accessed on 28 May 2026)]. Available online: https://www.worldbank.org/ext/en/country/mexico#tab-about.
  • 18.Moreno-Altamirano L., Hernandez-Montoya D., Silberman M., Capraro S., García-García J.J., Soto-Estrada G., Sandoval-Bosh E. The nutrition transition and the double burden of malnutrition: Changes in dietary patterns 1961-2009 in the Mexican socioeconomic context. Arch. Latinoam. Nutr. 2014;64:231–240. [PubMed] [Google Scholar]
  • 19.Pérez-Ferrer C., McMunn A., Zaninotto P., Brunner E.J. The nutrition transition in Mexico 1988–2016: The role of wealth in the social patterning of obesity by education. Public Health Nutr. 2018;21:2394–2401. doi: 10.1017/s1368980018001167. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Instituto Nacional de Estadística y Geografía (INEGI) Censo de Población y Vivienda 2020. [(accessed on 28 May 2026)]. Available online: https://www.inegi.org.mx/programas/ccpv/2020/#resultados_generales.
  • 21.Johnston M. List of the World’s Largest Cities by Population. 2026. Encyclopaedia Britannica. May 15, 2026. [(accessed on 28 May 2026)]. Available online: https://www.britannica.com/topic/list-of-the-worlds-largest-cities-by-population.
  • 22.Bojorquez I., Unikel C., Cortez I., Cerecero D. The social distribution of dietary patterns. Traditional, modern and healthy eating among women in a Latin American city. Appetite. 2015;92:43–50. doi: 10.1016/j.appet.2015.05.003. [DOI] [PubMed] [Google Scholar]
  • 23.Gaona-Pineda E.B., Martínez-Tapia B., Arango-Angarita A., Valenzuela-Bravo D., Gómez-Acosta L.M., Shamah-Levy T., Rodríguez-Ramírez S. Consumo de grupos de alimentos y factores sociodemográficos en población mexicana. Salud Pública México. 2018;60:272–282. doi: 10.21149/8803. [DOI] [PubMed] [Google Scholar]
  • 24.Roggema R., Krstikj A., Flores B. Spatial barriers to transforming toward a healthy food system in the Noreste of Mexico. Nutrients. 2024;16:1259. doi: 10.3390/nu16091259. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Pérez-Tepayo S., Rodríguez-Ramírez S., Unar-Munguía M., Shamah-Levy T. Trends in the dietary patterns of Mexican adults by sociodemographic characteristics. Nutr. J. 2020;19:51. doi: 10.1186/s12937-020-00568-2. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.Guibrunet L., Ortega-Avila A.G., Arnés E., Mora Ardila F. Socioeconomic, demographic and geographic determinants of food consumption in Mexico. PLoS ONE. 2023;18:e0288235. doi: 10.1371/journal.pone.0288235. Correction in PLoS ONE 2024, 19, e0306437. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Cerón Vargas J.A., Raccanello K. Índice de desarrollo social de la Ciudad de México como herramienta de focalización de la política social. Retos Dir. 2018;12:64–86. [Google Scholar]
  • 28.Martínez-García M., Gutiérrez-Esparza G.O., Roblero-Godinez J.C., Marín-Pérez D.V., Montes-Ruiz C.L., Vallejo M., Hernández-Lemus E. Cardiovascular risk factors and social development index. Front. Cardiovasc. Med. 2021;8:631747. doi: 10.3389/fcvm.2021.631747. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Martínez-García M., Rodríguez-Hernández A.P., Gutiérrez-Esparza G.O., Castrejón-Pérez R.C., Hernández-Lemus E., Borges-Yáñez S.A. Relationship between the social development index and self-reported periodontal conditions. Healthcare. 2023;11:1548. doi: 10.3390/healthcare11111548. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Gutiérrez-Esparza G., Martinez-Garcia M., Ramírez-delReal T., Groves-Miralrio L.E., Marquez M.F., Pulido T., Amezcua-Guerra L.M., Hernández-Lemus E. Sleep quality, nutrient intake, and social development index predict metabolic syndrome in the Tlalpan 2020 cohort: A machine learning and synthetic data study. Nutrients. 2024;16:612. doi: 10.3390/nu16050612. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Colín-Ramírez E., Rivera-Mancía S., Infante-Vázquez O., Cartas-Rosado R., Vargas-Barrón J., Madero M., Vallejo M. Protocol for a prospective longitudinal study of risk factors for hypertension incidence in a Mexico City population: The Tlalpan 2020 cohort. BMJ Open. 2017;7:e016773. doi: 10.1136/bmjopen-2017-016773. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Gutiérrez-Esparza G., Martínez-García M., Amezcua-Guerra L.M., Montes Rivera M., Hernández-Lemus E. Explainable and interpretable models for predicting early-onset hypertension in the Tlalpan 2020 cohort. Front. Digit. Health. 2026;8:1805107. doi: 10.3389/fdgth.2026.1805107. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.Denova-Gutiérrez E., Ramírez-Silva I., Rodríguez-Ramírez S., Jiménez-Aguilar A., Shamah-Levy T., Rivera-Dommarco J.A. Validity of a food frequency questionnaire to assess food intake in Mexican adolescent and adult population. Salud Pública México. 2016;58:617–628. doi: 10.21149/spm.v58i6.7862. [DOI] [PubMed] [Google Scholar]
  • 34.Hernández-Avila J., González-Avilés L., Rosales-Mendoza E. Manual de usuario. SNUT Sistema de Evaluación de Hábitos Nutricionales y Consumo de Nutrimentos. Instituto Nacional de Salud Pública; Cuernavaca, México: 2003. [Google Scholar]
  • 35.Lizaur A.B.P., Laborde L.M., González B.P. Sistema Mexicano de Alimentos Equivalentes. Fomento de Nutrición y Salud; Mexico City, Mexico: 2014. [Google Scholar]
  • 36.Shamah-Levy T., Villalpando-Hernández S., Rivera-Dommarco J. Manual de Procedimientos para Proyectos de Nutrición. Instituto Nacional de Salud Pública; Cuernavaca, México: 2006. [Google Scholar]
  • 37.Hernández-Avila M., Romieu I., Parra S., Hernández-Avila J., Madrigal H., Willett W. Validity and reproducibility of a food frequency questionnaire to assess dietary intake of women living in Mexico City. Salud Publica Mex. 1998;40:133–140. doi: 10.1590/s0036-36341998000200005. [DOI] [PubMed] [Google Scholar]
  • 38.EVALUA-DF . Índice del Desarrollo Social de las Unidades Territoriales del Distrito Federal, Delegación, Colonia y Manzana 2011. 1st ed. Volume 1. Consejo de Evaluación del Desarrollo Social del Distrito Federal, Gobierno del Distrito Federal; Ciudad, México: 2011. Metodología para la construcción del Índice de Desarrollo Social de Unidades territoriales del Distrito Federal; pp. 14–43. [Google Scholar]
  • 39.Godos J., Grosso G., Castellano S., Galvano F., Caraci F., Ferri R. Association between diet and sleep quality: A systematic review. Sleep Med. Rev. 2021;57:101430. doi: 10.1016/j.smrv.2021.101430. [DOI] [PubMed] [Google Scholar]
  • 40.Alruwaili N.W., Alqahtani N., Alanazi M.H., Alanazi B.S., Aljrbua M.S., Gatar O.M. The effect of nutrition and physical activity on sleep quality among adults: A scoping review. Sleep Sci. Pract. 2023;7:8. doi: 10.1186/s41606-023-00090-4. [DOI] [Google Scholar]
  • 41.Schultchen D., Reichenberger J., Mittl T., Weh T.R., Smyth J.M., Blechert J., Pollatos O. Bidirectional relationship of stress and affect with physical activity and healthy eating. Br. J. Health Psychol. 2019;24:315–333. doi: 10.1111/bjhp.12355. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 42.Dyer A.R., Elliott P., Stamler J., Chan Q., Ueshima H., Zhou B.F. Dietary intake in male and female smokers, ex-smokers, and never smokers: The INTERMAP study. J. Hum. Hypertens. 2003;17:641–654. doi: 10.1038/sj.jhh.1001607. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 43.Tokgozoglu L., Hekimsoy V., Costabile G., Calabrese I., Riccardi G. Prevention and Treatment of Atherosclerosis: Improving State-of-the-Art Management and Search for Novel Targets. Springer; Cham, Switzerland: 2020. Diet, lifestyle, smoking; pp. 3–24. [Google Scholar]
  • 44.Craig C.L., Marshall A.L., Sjöström M., Bauman A.E., Booth M.L., Ainsworth B.E., Pratt M., Ekelund U., Yngve A., Sallis J.F., et al. International physical activity questionnaire: 12-country reliability and validity. Med. Sci. Sport. Exerc. 2003;35:1381–1395. doi: 10.1249/01.mss.0000078924.61453.fb. [DOI] [PubMed] [Google Scholar]
  • 45.Allen R.P., Kosinski M., Hill-Zabala C.E., Calloway M.O. Psychometric evaluation and tests of validity of the Medical Outcomes Study 12-item Sleep Scale (MOS sleep) Sleep Med. 2009;10:531–539. doi: 10.1016/j.sleep.2008.06.003. [DOI] [PubMed] [Google Scholar]
  • 46.Amezcua-Guerra L.M., Pazarán-Romero G., Gutiérrez-Esparza G.O., Fonseca-Camarillo G., Martínez-García M., Groves-Miralrío L.E., Brianza-Padilla M. Gender assessment of sleep disorders in an adult urban population of Mexico City. Salud Pública México. 2024;66:824–830. doi: 10.21149/15654. [DOI] [PubMed] [Google Scholar]
  • 47.Amezcua-Guerra L.M., Velázquez-Espinosa K.P., Piña-Soto L.A., Gutiérrez-Esparza G.O., Martínez-García M., Brianza-Padilla M. The Self-Reported Quality of Sleep and Its Relationship with the Development of Arterial Hypertension: Perspectives from the Tlalpan 2020 Cohort. J. Clin. Med. 2024;13:6089. doi: 10.3390/jcm13206089. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 48.Buela-Casal G., Guillén-Riquelme A. Short form of the Spanish adaptation of the State-Trait Anxiety Inventory. Int. J. Clin. Health Psychol. 2017;17:261–268. doi: 10.1016/j.ijchp.2017.07.003. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 49.Chobanian A.V., Bakris G.L., Black H.R., Cushman W.C., Green L.A., Izzo J.L., Jr., Jones D.W., Materson B.J., Oparil S., Wright J.T., Jr., et al. Seventh report of the joint national committee on prevention, detection, evaluation, and treatment of high blood pressure. Hypertension. 2003;42:1206–1252. doi: 10.1161/01.HYP.0000107251.49515.c2. [DOI] [PubMed] [Google Scholar]
  • 50.Devlin U.M., McNulty B.A., Nugent A.P., Gibney M.J. The use of cluster analysis to derive dietary patterns: Methodological considerations, reproducibility, validity and the effect of energy mis-reporting. Proc. Nutr. Soc. 2012;71:599–609. doi: 10.1017/s0029665112000729. [DOI] [PubMed] [Google Scholar]
  • 51.Hearty Á.P., Gibney M.J. Comparison of cluster and principal component analysis techniques to derive dietary patterns in Irish adults. Br. J. Nutr. 2009;101:598–608. doi: 10.1017/S0007114508014128. [DOI] [PubMed] [Google Scholar]
  • 52.Liu F.T., Ting K.M., Zhou Z.H. Isolation Forest; Proceedings of the 2008 Eighth IEEE International Conference on Data Mining; Pisa, Italy. 15–19 December 2008. [Google Scholar]
  • 53.Rousseeuw P.J. Silhouettes: A graphical aid to the interpretation and validation of cluster analysis. J. Comput. Appl. Math. 1987;20:53–65. doi: 10.1016/0377-0427(87)90125-7. [DOI] [Google Scholar]
  • 54.Davies D.L., Bouldin D.W. A cluster separation measure. IEEE Trans. Pattern Anal. Mach. Intell. 1979;PAMI-1:224–227. doi: 10.1109/tpami.1979.4766909. [DOI] [PubMed] [Google Scholar]
  • 55.Calinski T., Harabasz J. A dendrite method for cluster analysis. Commun. Stat. 1974;3:1–27. doi: 10.1080/03610927408827101. [DOI] [Google Scholar]
  • 56.Brodersen K.H., Ong C.S., Stephan K.E., Buhmann J.M. The balanced accuracy and its posterior distribution; Proceedings of the 2010 20th International Conference on Pattern Recognition; Istanbul, Turkey. 23–26 August 2010. [Google Scholar]
  • 57.He H., Bai Y., Garcia E.A., Li S. ADASYN: Adaptive synthetic sampling approach for imbalanced learning; Proceedings of the 2008 IEEE International Joint Conference on Neural Networks (IEEE World Congress on Computational Intelligence); Hong Kong. 1–8 June 2008. [Google Scholar]
  • 58.Lundberg S.M., Lee S.I. A unified approach to interpreting model predictions; Proceedings of the 31st International Conference on Neural Information Processing Systems; Long Beach, CA, USA. 4–9 December 2017. [Google Scholar]
  • 59.Cramér H. Mathematical Methods of Statistics. Princeton University Press; Princeton, NJ, USA: 1946. [Google Scholar]
  • 60.Brambila-Tapia A.J.L., González-Gómez A.S., Carrillo-Delgadillo L.A., Saldaña-Cruz A.M., Dávalos-Rodríguez I.P. Sex differences in biochemical analyses, cardiometabolic risk factors and their correlation with CRP in healthy Mexican individuals. J. Pers. Med. 2024;14:904. doi: 10.3390/jpm14090904. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 61.Schulze M.B., Martínez-González M.A., Fung T.T., Lichtenstein A.H., Forouhi N.G. Food based dietary patterns and chronic disease prevention. BMJ. 2018;361:k2396. doi: 10.1136/bmj.k2396. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 62.Newby P., Tucker K.L. Empirically derived eating patterns using factor or cluster analysis: A review. Nutr. Rev. 2004;62:177–203. doi: 10.1301/nr.2004.may.177-203. [DOI] [PubMed] [Google Scholar]
  • 63.Bouchard-Mercier A., Rudkowska I., Lemieux S., Couture P., Vohl M.C. The metabolic signature associated with the Western dietary pattern: A cross-sectional study. Nutr. J. 2013;12:158. doi: 10.1186/1475-2891-12-158. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 64.Mendez I., Fasano M.V., Guajardo V., Zonis L., Kovalskys I. Dietary patterns in the Argentinian population and their association with sociodemographic characteristics: Results from the ELANS study (2014–2015) Front. Nutr. 2022;9:778390. doi: 10.3389/fnut.2022.778390. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 65.Asfaw A. Fruits and vegetables availability for human consumption in Latin American and Caribbean countries: Patterns and determinants. Food Policy. 2008;33:444–454. doi: 10.1016/j.foodpol.2008.01.007. [DOI] [Google Scholar]
  • 66.Denova-Gutiérrez E., Castañón S., Talavera J.O., Flores M., Macías N., Rodríguez-Ramírez S., Flores Y.N., Salmerón J. Dietary patterns are associated with different indexes of adiposity and obesity in an urban Mexican population. J. Nutr. 2011;141:921–927. doi: 10.3945/jn.110.132332. [DOI] [PubMed] [Google Scholar]
  • 67.Zárate-Ortiz A.G., Melse-Boonstra A., Rodríguez-Ramírez S., Hernández-Cordero S., Feskens E.J. Dietary patterns and the double burden of malnutrition in Mexican adolescents: Results from ENSANUT-2006. Nutrients. 2019;11:2753. doi: 10.3390/nu11112753. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 68.Artegoitia V.M., Krishnan S., Bonnel E.L., Stephensen C.B., Keim N.L., Newman J.W. Healthy eating index patterns in adults by sex and age predict cardiometabolic risk factors in a cross-sectional study. BMC Nutr. 2021;7:30. doi: 10.1186/s40795-021-00432-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 69.Roman G., Rusu A., Graur M., Creteanu G., Morosanu M., Radulian G., Amorin P., Timar R., Pircalaboiu L., Bala C. Dietary patterns and their association with obesity: A cross-sectional study. Acta Endocrinol. 2019;15:86. doi: 10.4183/aeb.2019.86. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 70.Facina V.B., Fonseca R.d.R., Conceição-Machado M.E.P., Ribeiro-Silva R.d.C., dos Santos S.M.C., de Santana M.L.P. Association between Socioeconomic Factors, Food Insecurity, and Dietary Patterns of Adolescents: A Latent Class Analysis. Nutrients. 2023;15:4344. doi: 10.3390/nu15204344. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 71.Wen Z.Y., Wei Y.F., Sun Y.H., Ji W.P. Dietary pattern and risk of hyperuricemia: An updated systematic review and meta-analysis of observational studies. Front. Nutr. 2024;11:1218912. doi: 10.3389/fnut.2024.1218912. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 72.Vaz J.d.S., Buffarini R., Kac G., Bielemann R.M., Oliveira I., Menezes A.B., Assunção M.C.F. Dietary patterns are associated with blood lipids at 18-year-olds: A cross-sectional analysis nested in the 1993 Pelotas (Brazil) birth cohort. Nutr. J. 2018;17:77. doi: 10.1186/s12937-018-0389-z. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 73.Park S., Chung S., Kim S.A., Shin S. The “fruit and whole-grain” pattern is associated with a low prevalence of hypertriglyceridemia among middle and older-aged Korean adults: Using Korea National Health and Nutrition Examination Survey 2013–2018 data. Food Sci. Nutr. 2023;11:1201–1211. doi: 10.1002/fsn3.3128. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 74.Darmon N., Drewnowski A. Does social class predict diet quality? Am. J. Clin. Nutr. 2008;87:1107–1117. doi: 10.1093/ajcn/87.5.1107. [DOI] [PubMed] [Google Scholar]
  • 75.Mayen A.L., Marques-Vidal P., Paccaud F., Bovet P., Stringhini S. Socioeconomic determinants of dietary patterns in low-and middle-income countries: A systematic review. Am. J. Clin. Nutr. 2014;100:1520–1531. doi: 10.3945/ajcn.114.089029. [DOI] [PubMed] [Google Scholar]
  • 76.Wang P., Gao X., Willett W.C., Giovannucci E.L. Socioeconomic status, diet, and behavioral factors and cardiometabolic diseases and mortality. JAMA Netw. Open. 2024;7:e2451837. doi: 10.1001/jamanetworkopen.2024.51837. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 77.Krstikj A., Roggema R., Flores B. Evaluating the availability, accessibility, and affordability of fresh food in informal food environments in five Mexican cities. J. Urban Aff. 2023;47:1961–1976. doi: 10.1080/07352166.2023.2276778. [DOI] [Google Scholar]
  • 78.Chavez J.B.R., Bruening M., Royer M.F., Ohri-Vachaspati P., Lee R.E., Jehn M. Availability, variety and distribution of healthy and unhealthy foods and beverages sold at street food stands in Mexico City. Public Health Nutr. 2021;24:5577–5588. doi: 10.1017/s136898002100330x. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 79.Rodríguez-Guerra A.I., López-Olmedo N., Medina C., Hernández-Alcaraz C., Ortega-Avila A.G., Barquera S. Association between density of convenience and small grocery stores with diet quality in adults living in Mexico City: A cross sectional study. Front. Public Health. 2022;10:857754. doi: 10.3389/fpubh.2022.857754. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 80.Pineda E., Barbosa Cunha D., Taghavi Azar Sharabiani M., Millett C. Association of the retail food environment, BMI, dietary patterns, and socioeconomic position in urban areas of Mexico. PLoS Glob. Public Health. 2023;3:e0001069. doi: 10.1371/journal.pgph.0001069. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 81.Oviedo-Solís C.I., Hernández-Alcaraz C., Sánchez-Ortíz N.A., López-Olmedo N., Juáregui A., Barquera S. Association of sociodemographic and lifestyle factors with dietary patterns among men and women living in Mexico City: A cross-sectional study. Front. Public Health. 2022;10:859132. doi: 10.3389/fpubh.2022.859132. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 82.Chavez J.B.R., Garcia L.M., Jehn M., Pereira M.A., Bruening M. Relationship between different levels of the Mexican food environment and dietary intake: A qualitative systematic review. Public Health Nutr. 2020;23:1877–1888. doi: 10.1017/s1368980019004294. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 83.Previdelli A.N., Gómez G., Kovalskys I., Fisberg M., Cortés L.Y., Pareja R.G., Liria M.R., García M.C.Y., Herrera-Cuenca M., Rigotti A., et al. Prevalence and determinants of misreporting of energy intake among Latin American populations: Results from ELANS study. Nutr. Res. 2019;68:9–18. doi: 10.1016/j.nutres.2019.05.007. [DOI] [PubMed] [Google Scholar]
  • 84.Vega-Salas M.J., Curi-Quinto K., Hidalgo-Aréstegui A., Meza-Carbajal K., Lago-Berrocal N., Arias L., Favara M., Penny M., Sánchez A., Vimaleswaran K.S. Development of an online food frequency questionnaire and estimation of misreporting of energy intake during the COVID-19 pandemic among young adults in Peru. Front. Nutr. 2022;9:949330. doi: 10.3389/fnut.2022.949330. [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Data Availability Statement

The raw data supporting the conclusions of this article are not publicly available due to privacy and ethical restrictions, as they belong to the Tlalpan 2020 cohort. Requests to access the datasets should be directed to the corresponding authors.


Articles from Nutrients are provided here courtesy of Multidisciplinary Digital Publishing Institute (MDPI)

RESOURCES