Skip to Content
ObesitiesObesities
  • Article
  • Open Access

22 September 2026

21 Pages

Explainable Deep Learning-Based BMI Estimation from Eating Habits and Physical Activity Patterns

and
1
Lincoln University College, Petaling Jaya 47301, Malaysia
2
Department of Computer Science, Alagappa University, Karaikudi 630003, Tamil Nadu, India
3
School of Computer Science and IT, Jain (Deemed-to-be University), Bangalore 560069, Karnataka, India
*
Author to whom correspondence should be addressed.

Abstract

As an important public health crisis, obesity is associated with unhealthy lifestyle factors, like eating habits and physical activity patterns. It is related to an increased risk of various chronic diseases. Therefore, accurately estimating body mass index (BMI) is essential for identifying at-risk groups and supporting early interventions. This study proposes an Explainable Deep Learning-Based BMI Estimation (XDL-BMI) framework based on eating habits and physical activity characteristics. The presented model aims to estimate BMI by identifying the features that contribute to the model’s BMI predictions. To achieve this, the proposed model initially processes the input data to ensure reliable model development. Following that, the Minimum Redundancy Maximum Relevance method is employed to select the relevant features, and a Deep and Cross Network is designed to estimate BMI by learning the relationships among the selected factors. Finally, the SHAP method is integrated to enhance the model’s interpretability by identifying factors that most influence BMI estimation. To assess the efficiency of the proposed model, an experimental analysis is carried out using the UCI Estimation of Obesity Levels Based on Eating Habits and Physical Condition dataset. The experimental results of the proposed model achieved a normalized MSE of 0.0022, RMSE of 0.0464, MAE of 0.0360, MAPE of 0.0684, and R2 of 0.9136 on the testing set. After inverse transformation to the original BMI scale, the model achieved an RMSE and MAE of 2.3562 kg/m2 and 1.8312 kg/m2, demonstrating its effectiveness in BMI estimation and providing interpretable insights into the contribution of eating and physical-activity-related factors.

1. Introduction

Obesity is a major public health concern associated with various health problems, either independently or in conjunction with other chronic conditions. Obesity leads to various diseases such as breathing-related problems, cardiovascular diseases, diabetes, cancers, musculoskeletal conditions, and mental health conditions [1]. The adverse health consequences of overweight and obesity can persist over the long term. Gaining more weight is also a sign of a shorter lifespan. Excess body fat is the major cause of obesity. This is a difficult condition because of several factors, and the most critical factor is an imbalance between energy consumption and energy utilization [2]. Persistent energy imbalance can contribute to excessive fat accumulation and increased obesity risk.
Meanwhile, other aspects such as poor nutritional habits, insulin resistance, and genetic predispositions play a major role in the occurrence of obesity [3]. BMI and obesity-related outcomes are influenced by the interaction of demographic, dietary, behavioral, lifestyle, genetic, and environmental factors. Overweight and obesity are commonly associated with an imbalance between energy intake and energy expenditure [4]. Excessive weight gain can occur when energy intake consistently exceeds energy expenditure over time. In these conditions, the body transforms the surplus energy into fat for further use; as a result, this leads to attaining a state of obesity [5].
Various research studies have made attempts to detect the causes that contribute to the occurrence of obesity, even generating web-based tools for measuring and estimating the body mass index (BMI), where it can measure an individual’s BMI; moreover, these tools are inadequate to evaluate BMI, neglecting other related factors, such as whether the individual has a genetic history of obesity, duration of physical activity sessions, and several other factors [6]. Although BMI is conventionally calculated using height and weight, these anthropometric measurements may not always be available in health-monitoring settings. Height and weight can be missing from historical health records, not regularly updated in longitudinal datasets, unavailable during remote or questionnaire-based assessments, or difficult to collect in large-scale and resource-limited settings [7]. In such cases, demographic, dietary, physical-activity, and lifestyle information that is routinely collected may provide useful supplementary information for estimating an individual’s BMI. Therefore, indirect BMI estimation should not be considered a substitute for direct anthropometric measurement, but rather a complementary approach when reliable height and weight measurements are unavailable or incomplete. However, the advancement of Machine Learning (ML) and Deep Learning (DL) techniques has generated new options for developing more updated and precise methods in the healthcare system. ML and DL techniques can study huge volumes of complex data and identify patterns that may not be obvious using conventional mathematical algorithms [8]. Specifically, DL methods have high efficiency in analyzing hierarchical feature representations from complicated datasets, allowing them to handle large healthcare datasets. Moreover, an important constraint of many ML and DL techniques is their “black box” behavior, which makes it difficult to interpret decisions and makes it complex for healthcare professionals, doctors, and patients to understand [9].
Explainable Artificial Intelligence (XAI) has developed as an effective response to address the challenge. XAI methods aspire to enhance the reliability and transparency of ML and DL techniques by offering insight into the factors influencing their predictions [10]. This robustness is specifically essential in healthcare systems, while understanding the reasons behind predictions is necessary for handling clinical decision-making, developing trust, and assuring the safety of patients [11]. In spite of the effective benefits of incorporating ML, DL, and XAI for BMI estimation, this cooperative technique has not been explored widely. While multiple research studies have employed ML and DL methods to predict obesity, only a few have integrated XAI algorithms to provide understandable solutions that can efficiently help in clinical practice [12].
Even though ML and DL methods have been adopted widely in obesity prediction, there is still a need for a method that not only predicts BMI but can also offer meaningful insights into the factors associated with the estimated BMI. The relationships between eating habits, physical activity patterns, lifestyle, and demographic attributes may be characterized by complex feature interactions that may not be captured by traditional methods. Therefore, there is a need for an effective framework that can identify the important features, learn their complex relationships with BMI, and understand the contribution of individual features towards the estimated BMI and its associated factors. Motivated by these considerations, an explainable deep learning-based framework for BMI estimation (XDL-BMI) using eating habits and physical activity patterns is developed. In the proposed analysis, physical activity is considered using the Frequency of Physical Activity (FAF) variable provided in the dataset. This variable reflects how often participants reported engaging in physical activity. However, FAF represents activity frequency only and does not directly indicate physical fitness, physical condition, exercise intensity, or physiological capacity. The main contribution of this study is the development and evaluation of an explainable BMI regression framework that excludes direct anthropometric measurements and examines how demographic, dietary, lifestyle, and physical activity patterns can be used to estimate BMI continuously. Accordingly, the study focuses on formulating the BMI estimation problem using non-anthropometric predictors, selecting the most relevant features, capturing nonlinear interactions among the selected factors, and providing interpretable explanations of the resulting BMI predictions.
The contributions of this article are as follows:
  • Develops an explainable DL-based framework for continuous BMI estimation using eating habits and physical activity pattern-related factors.
  • Employs the Minimum Redundancy Maximum Relevance (mRMR) method to choose informative and non-redundant features relevant to BMI estimation.
  • Utilizes a Deep and Cross Network (DCN) to estimate BMI by learning explicit feature interactions and nonlinear relationships among the selected dietary, physical, lifestyle, and demographic factors.
  • Integrates SHAP-based explainability to interpret the DCN predictions and identifies the contribution of individual features to the model’s estimated BMI.
  • Identifies the contribution of individual lifestyle, dietary, physical, and demographic factors to the estimated BMI, providing an interpretable basis for understanding BMI-related patterns.
  • Evaluates the proposed XDL-BMI framework on the benchmark dataset using standard regression performance measures.

3. Materials and Methods

3.1. Overall Framework

Figure 1 describes the complete workflow of the presented XDL-BMI methodology. The workflow begins with the input dataset, including data on eating habits, physical activity patterns, lifestyle, and demographic attributes. The input data undergo data preprocessing to ensure data quality and consistency. The features relevant to BMI estimation are then selected through the MRMR approach, which selects relevant and non-redundant features. Then, the selected features are passed to the DCN, which combines deep and cross components for learning explicit feature interactions and nonlinear relationships between the selected attributes. The learned representations are then used to predict BMI through the regression layer. Finally, SHAP is applied to the trained DCN regression model to explain the BMI predictions and quantify the contribution of individual features. In the overall workflow, data preprocessing, feature selection, DL-based BMI regression, and explainable analysis are incorporated into an integrated framework.
Figure 1. Complete workflow of the proposed XDL-BMI methodology.

3.2. Dataset Description

The developed XDL-BMI method is examined using the Estimation of Obesity Levels Based on Eating Habits and Physical Condition dataset [21,22]. This dataset contains information relating to dietary routines, lifestyle patterns, the health and physical activity patterns of individuals, as well as various demographic details associated with obesity. These include personal information attributes, eating practices, lifestyle behaviors, and various other health-related parameters that may affect BMI and obesity. The dataset was created for ML-based estimation of obesity levels and contains data that can be useful for investigating the connection between lifestyle-associated variables and BMI-related characteristics. The dataset contains 2111 records and 14 original input variables. In the present study, body weight and height were used to calculate BMI as the continuous regression target using the standard relationship:
B M I = W e i g h t H e i g h t 2
where weight is expressed in kilograms and height is expressed in meters. As body weight and height attributes were used to calculate the continuous BMI target, these attributes were excluded from the input variables to prevent target leakage. The remaining eligible input variables were then subjected to mRMR-based feature selection, from which 8 informative and non-redundant variables were selected for subsequent BMI estimation using the DCN model. The dataset details are clearly represented in Table 1.
Table 1. Statistical Summary of the Applied Dataset.

3.3. Data Preprocessing

The raw data is subjected to a preprocessing operation to refine the data quality and ensure consistency in the values of all inputs before feature selection or BMI prediction. The dataset was randomly divided into training and testing subsets using a 70:30 ratio with a fixed seed value of 42. The training subset was used for model training, while the remaining 30% was used for model evaluation. The training subset was used to train the model and develop the proposed XDL-BMI framework, while the remaining 30% of the data was reserved for final testing. The testing subset was kept completely separate from the model-development process and was not used for training, parameter updating, hyperparameter tuning, model selection, or deciding the final model configuration. Once the model development was completed, the final XDL-BMI model was evaluated on the unseen 30% testing data. The final performance was measured using MSE, RMSE, MAE, MAPE, and R2.
No separate validation subset was used in the experimental setup. Duplicate records and outliers were identified and removed using only the training data. The same preprocessing steps and parameters obtained from the training data were then applied to the testing data without recalculating them. This was done to ensure that information from the testing data did not influence the model development process. The numerical predictor variables were scaled using the parameters estimated from the training data, and the fitted scaling transformation was applied unchanged to the testing data. Similarly, mRMR feature selection was performed only on the training data, and the selected features were then used for the testing data. Thus, the testing data were not involved in outlier detection, scaling-parameter estimation, feature selection, or model development.
The BMI target variable was normalized using min-max scaling before model training. The scaling parameters were estimated from the training data and applied unchanged to the testing data. After the prediction step, the estimated BMI values were converted back to the original BMI scale (kg/m2) using the inverse transformation. The performance metrics were then reported by clearly indicating whether they were calculated on the normalized scale or the original BMI scale.
A typical data pre-processing operation contains the following tasks: missing value handling, duplicate removal, categorical data encoding, outlier analysis, and feature scaling [23,24]. The pre-processing was done in the following order.
Missing Value Handling: The dataset was analyzed for missing values, and no missing values were identified in the input attributes. Therefore, no imputation method was required.
Duplicate Removal: All duplicate observations were removed to avoid repeated records in the dataset for model training.
Categorical Data Encoding: The categorical values were converted into equivalent numerical values using Label Encoding for their appropriate use in the regression modeling.
Outlier Analysis: The identified feature inputs were checked for potential outliers using the Interquartile Range (IQR) method that could affect BMI estimation. The presence of outliers was checked with respect to the distribution of each feature, and the outliers were handled appropriately to ensure stable model training for BMI estimation.
Feature Scaling: The input numerical features were standardized using StandardScaler so that they could be compared on a similar scale, as there is a possibility that features with a high numerical range may affect the ML process and model training. The entire process led to consistent data for the subsequent feature selection leveraging the MRMR algorithm and DCN-based BMI estimation.

3.4. MRMR-Based Feature Selection

The MRMR approach is a feature selection approach to find informative and non-redundant features for BMI estimation [25]. It finds the optimal subset of features that provides maximum information about the BMI estimation target and minimizes the mutual information among the chosen features. Formally, the MRMR algorithm seeks an optimal set S of features to maximize the relevance between the selected features and the target variable, y , and minimize the redundancy among the chosen attributes themselves in terms of mutual information I . Mutual information between dual variables x and z is a measure of how much knowing one variable can decrease the uncertainty about the other:
I x z = ∑ i , j P x = x i z = z j log P x = x i z = z j P x = x i P z = z j
I x z = 0 if x and z are independent, and I = H x if x = z .
The MRMR ranking features utilizing a greedy forward selection process depend upon a mutual information quotient, specified as the MRMR score, described in Equation (2), where S implies the chosen set of features:
M R M R s c o r e x = I x y 1 ∣ S ∣ ∑ z ∈ S I x z
MRMR is used in the current study to select informative dietary, physical activity, lifestyle, and demographic attributes while reducing redundancy for BMI estimation. Then, these selected features are given as input to the DCN model for BMI estimation and continuous BMI regression.

3.5. BMI Estimation Using DCN

The DCN is used to estimate BMI from the selected dietary, physical, lifestyle, and demographic attributes [26]. It combines cross and deep networks to learn feature interactions and nonlinear relationships among the input attributes. The cross network has been built to capture the feature interactions explicitly by successively crossing layers. In contrast, the deep neural network aims to learn high-level nonlinear representations through multiple fully connected layers. Both representations learned by the cross and deep components are concatenated to learn a comprehensive relationship for BMI estimation.
Let x 0 ∈ R d be the input features chosen by MRMR, where d is the number of selected attributes. The cross network is constructed starting from the raw input representation by continuously crossing layers in order to model feature interactions explicitly. The l + 1 t h cross layer is formulated as:
x l + 1 = x 0 x l T w l + b l + x l
where x l refers to the outcome of the l − t h cross layer and w l and b l denote the trainable weight and bias. The cross operations model explicit interactions between the initial input feature set and the features produced by the prior crossing layers. Repeated crossings generate complex interactions from the original input features.
The deep network aims at modeling complex nonlinear dependencies between the selected attributes. The l − t h layer output of the deep component can be expressed as:
h l + 1 = σ W l h l + b l
where h l signifies the input for the l − t h deep layer, and σ ⋅ implies a nonlinear activation function. The successive fully connected layers learn the nonlinear dependencies of physical activity, dietary habits, lifestyle, and demographic factors on BMI.
The output representations of the cross and deep components are then concatenated together:
z = x L h L
where x L and h L are the outputs from the last cross and deep layers, respectively. Then, the concatenated representation z is fed into a final fully connected layer for BMI regression:
y ^ B M I = W r z + b r
where y ^ B M I denotes the predicted BMI and W r and b r denote the trainable weights and bias of the regression layer. The DCN is trained by minimizing a regression loss function. Figure 2 shows the architecture of the DCN model for BMI estimation.
Figure 2. Architecture of the DCN model for BMI estimation.
The DCN model is trained on the mRMR-selected features using the training dataset to estimate continuous BMI. The MSE loss function was utilized to reduce the error between the actual and estimated BMI values. The method is trained with the AdamW optimizer with a defined batch size, learning rate, and epoch count. The model is regularized using dropout to avoid overfitting. The optimized model was subsequently evaluated using the test dataset. The estimated BMI from the trained DCN model was used as the continuous regression output.

3.6. Parameter Settings

Table 2 presents the preprocessing, feature selection, model architecture, optimization, and training parameters used in the proposed framework. The dataset is divided into training and testing sets using a fixed random seed of 42, while numerical features are standardized using StandardScaler and categorical variables are encoded using label encoding. mRMR is employed to select the eight most relevant features. The DCN model uses three cross-network layers and three deep-network layers with 128, 64, and 32 units, followed by ReLU activation and concatenation-based cross–deep fusion. The model is trained using AdamW with a learning rate of 0.001, weight decay of 1 × 10−4, a batch size of 32, and MSE loss for 25 epochs.
Table 2. Hyperparameter settings and training configuration.

3.7. SHAP-Based Model Interpretation

The significance of features in the DCN approach only represents the influence level of input variables on the model outcome. Still, it does not show how input variables impact the BMI prediction [27]. Consequently, it is important to interpret which input variables have the strongest influence on the predicted BMI and how they impact it. In this regard, SHAP (SHapley Additive exPlanations) is utilized to understand the DCN regression model by considering its input features. SHAP is utilized to interpret the DCN model and recognize the contribution of dietary, physical, lifestyle, and demographic factors to BMI estimation. The SHAP approach treats each feature as a contributor and determines the significance of attributes based on the Shapley values. SHAP provides a contribution value for each feature in an individual prediction. This helps to interpret how every feature affects the model output, including whether its influence increases or decreases the predicted BMI.
For instance, supposing the DCN regression approach is trained with the following input data:
X i = x 1 x 2 … x n T . To determine the contribution of every input variable to the DCN, SHAP employs an explanatory model (EM), which is expressed as follows:
E M = ϕ 0 + ∑ i = 1 n ϕ i
Now, ϕ i implies the contribution of the i t h attribute to the predicted BMI, ϕ 0 represents the baseline model outcome, and n refers to the input feature count. The SHAP value ϕ i specifies the contribution of every input to the model prediction. A positive SHAP value represents that a feature contributes toward increasing the predicted BMI, whereas a negative SHAP value specifies a contribution toward decreasing the predicted BMI.

3.8. Performance Evaluation

To examine the performance of the presented model for BMI estimation, MSE, RMSE, MAE, MAPE, and R2 score were computed. MSE measures the average squared error between the predicted and actual BMI values, and RMSE is the square root of MSE and reflects the magnitude of the prediction errors. MAE denotes the average absolute difference between the predicted and actual BMI values. MAPE represents the average of the percentage errors, and the R2 score reflects the ratio of variance in the actual BMI values described by the DCN model. Lower MSE, RMSE, MAE, and MAPE values reflect better predictive performance of the model, and higher R2 values show better model performance. In this work, these metrics have been computed and compared on the training and testing datasets.

4. Result Analysis

The empirical performance of the proposed XDL-BMI methodology was evaluated using the Estimation of Obesity Levels Based on Eating Habits and Physical Condition dataset. The analysis focuses on continuous BMI estimation using the 6 features selected by mRMR, with BMI as the continuous regression target. The selected features are age, FCVC, NCP, CH20, FAF, and TUE. Figure 3 presents the mRMR-selected feature correlation matrix and the continuous BMI target variable. The matrix demonstrates that the chosen features have significantly weak-to-moderate pairwise correlations, indicating the absence of robust linear dependency among most predictors.
Figure 3. Correlation matrix of the proposed XDL-BMI model.
The relatively effective negative associations are observed for Age with F6 and F5, while F2 also illustrates an obvious negative relation to F6. The remaining feature pairs exhibit comparatively weaker associations. This correlation pattern indicates that the mRMR-selected variables hold partially distinct details instead of being highly linearly repetitive, offering integrated utilization as complementary predictors for BMI estimation.
Figure 4 shows how BMI is distributed based on some lifestyle and demographic factors, such as Gender, Age, Family History of Obesity, and Water Intake per day. These distributions highlight differences in BMI depending on lifestyle and demographic factors. It can be observed that BMI distributions vary among individuals with and without a family history of obesity, while differences in BMI values are also observable with respect to Water Intake per day and Age.
Figure 4. Relationship Between BMI and Selected Demographic and Lifestyle Factors: (a) Gender, (b) Age, (c) Family History of Obesity, and (d) Water Intake per Day.
Next, Figure 5 depicts the BMI distribution based on some lifestyle-related factors, such as Technology Use (TUE) and Calorie Intake (CALC). Differences in BMI values can be observed across these factors. The association between Technology Use and BMI is comparatively low, while differences in BMI values are observable across the levels of Calorie Intake. These patterns suggest that lifestyle-related factors may also play an important role in influencing BMI values and should therefore be considered in the framework for BMI estimation.
Figure 5. Relationship between BMI and Technology Usage and Alcohol Consumption.
Table 3 and Figure 6 present the regression performance of the proposed XDL-BMI model on the training and testing sets. The model achieved a normalized MSE of 0.0022, RMSE of 0.0470, MAE of 0.0368, MAPE of 0.0690, and R2 of 0.9108 on the training set. On the testing set, the model obtained a normalized MSE of 0.0022, RMSE of 0.0464, MAE of 0.0360, MAPE of 0.0684, and R2 of 0.9136. Once the predicted values were converted back to the original BMI scale, the testing results showed an RMSE of 2.3562 kg/m2 and an MAE of 1.8312 kg/m2. The comparable training and testing performance indicates that the model generalizes effectively to unseen samples with no substantial evidence of overfitting.
Table 3. BMI regression performance of the proposed XDL-BMI model on the training and testing sets.
Figure 6. Performance analysis of the XDL-BMI methodology under training and testing data.
Figure 7 displays the training and testing loss curves of the proposed XDL-BMI model over 25 epochs of training. During the entire training period, the loss values progressively decreased, indicating that the DCN model can effectively learn the association between the selected features and the continuous BMI target. The training and testing loss curves demonstrate similar trends and convergence patterns, implying good model stability and a minimal tendency to overfit.
Figure 7. Loss curves of the proposed XDL-BMI methodology.
Figure 8 represents a comparison between the predicted and actual BMI values on the training and testing sets, demonstrating that the predicted BMI values closely follow the actual BMI values in both the training and testing sets. This suggests that the DCN model effectively captures the underlying relationships between the selected features and BMI. The normalization was applied to the BMI target before model training; therefore, the values shown in the figure do not directly depict BMI measurements in kg/m2. For clinical interpretation, the normalized predictions were subsequently transformed to the original BMI scale by the use of an inverse normalization procedure.
Figure 8. Comparison of Actual and Predicted Values on the training and testing sets.
The comparative performance of the XDL-BMI methodology and the existing regression approaches is presented in Table 4 and Figure 9. For a fair comparison, all evaluated models were trained and tested using the same data partitions and evaluation protocol. The same preprocessing procedure was applied to all comparative models, with data-dependent preprocessing operations fitted using the training data only. Since mRMR is a specific component of the proposed framework, it was not imposed on the comparator models.
Table 4. Comparative analysis of the XDL-BMI approach with existing methodology.
Figure 9. Comparative analysis of the XDL-BMI method with baseline models with various metrics.
Each comparator was evaluated using its corresponding input-feature configuration and model-specific methodology. Model-specific hyperparameters were optimized using the training data, while the testing data were reserved for final performance evaluation. The LR, KNN-R, and SVR models produced relatively higher prediction errors, whereas XGBoost-R, LightGBM-R, MLP-R, and TabNet-Regressor achieved comparatively better results. Among the evaluated approaches, TabNet-Regressor performed closest to the proposed method. The XDL-BMI approach achieved the lowest MSE (0.0022), RMSE (0.0464), MAE (0.0360), and MAPE (0.0684), together with the highest R2 score (0.9136). These results demonstrate the competitive regression performance of XDL-BMI for continuous BMI estimation.
To further examine the stability of the proposed XDL-BMI model, a 10-fold cross-validation analysis was conducted using the same evaluation metrics. The independent testing set was not included in the cross-validation procedure. Table 5 presents the performance obtained across the ten validation folds. The MSE values ranged from 0.0023 in Fold-7 to 0.0037 in Fold-3, while the corresponding RMSE, MAE, MAPE, and R2 values remained relatively consistent across the folds. The mean MSE, RMSE, MAE, MAPE, and R2 values were 0.0031, 0.0558, 0.0421, 0.0722, and 0.9033, respectively, with standard deviations of ±0.0004, ±0.0036, ±0.0030, ±0.0054, and ±0.0087. The relatively small variations across the folds indicate that the model provides stable performance under different training and validation partitions.
Table 5. 10-Fold Cross-Validation Results of the XDL-BMI Model on the normalized BMI Scale.
An ablation study was conducted to examine the individual contributions of the major components of the proposed XDL-BMI framework. Table 6 presents the performance obtained by progressively incorporating AdamW optimization and mRMR feature selection into the DCN-based regression model. The baseline DCN model achieved an MSE of 0.0031 and an R2 score of 0.8739. Incorporating AdamW reduced the MSE to 0.0028 and increased the R2 score to 0.8872. The integration of mRMR with DCN further reduced the MSE to 0.0025 and increased the R2 score to 0.9018, indicating the benefit of selecting informative and non-redundant features. The complete XDL-BMI configuration, combining mRMR, DCN, and AdamW, achieved the best performance, with an MSE of 0.0022, RMSE of 0.0464, MAE of 0.0360, MAPE of 0.0684, and R2 score of 0.9136. These results indicate that both feature selection and optimization contribute to the overall regression performance of the proposed framework.
Table 6. Ablation Study of the Proposed XDL-BMI Model on the normalized BMI Scale.
To further assess the generalizability of the proposed XDL-BMI framework, an independent Health and fitness dataset from the Kaggle repository was used for external evaluation, as presented in Table 7 [28]. The health_fitness_dataset contains health and fitness tracking information collected from 3000 participants. It includes data on daily activities, key health indicators, and lifestyle-related factors, making it useful for analyzing health patterns and developing predictive models. For the present experiment, the variables required to calculate BMI were used only for constructing the BMI target, while the direct anthropometric variables were excluded from the model inputs to maintain consistency with the proposed non-anthropometric BMI estimation setting. The remaining relevant demographic, lifestyle, physical-activity, and health-related attributes were processed using the same general modeling protocol. The XDL-BMI approach developed using the primary dataset was kept frozen for the external evaluation. No retraining, fine-tuning, parameter updating, or hyperparameter optimization was carried out using the Kaggle Health and fitness dataset. The independent Kaggle Health and Fitness dataset was used solely for evaluating the predictions generated by the pre-trained XDL-BMI approach. The experimental values highlighted that the proposed model achieves enhanced performance over other models.
Table 7. External evaluation results of XDL-BMI on the Kaggle Health and Fitness dataset.
Figure 10 shows the SHAP-based global feature importance analysis along with the summary of local explanations for the eight features identified by mRMR and selected for building the DCN model. The SHAP analysis ranks the features according to their mean absolute SHAP values to show their overall importance for predicting BMI. Among the eight selected features, Age has the largest mean absolute SHAP value, followed by Frequency of Vegetable Consumption (FCVC), Water Intake (CH2O), Technology Usage (TUE), Number of Main Meals (NCP), and Frequency of Physical Activity (FAF). The SHAP summary visualization demonstrates how the values of each feature contribute to the predicted BMI for individual samples, whereby positive SHAP values indicate contributions toward higher predicted BMI values relative to the baseline, while negative SHAP values indicate contributions toward lower predicted BMI values.
Figure 10. SHAP-based global feature importance and local explanation summary of the selected input features.
The SHAP summary visualization further illustrates the direction and magnitude of feature contributions across individual samples. Positive SHAP values indicate that a feature contributes toward a higher predicted BMI relative to the model’s baseline prediction, whereas negative SHAP values indicate a contribution toward a lower predicted BMI. The magnitude of the SHAP value represents the strength of the feature’s contribution to an individual prediction. These SHAP values explain the behavior of the trained DCN model and should not be interpreted as evidence of causal effects of the corresponding demographic, dietary, lifestyle, or physical-activity variables on BMI. The SHAP analysis was performed on the held-out test observations using the SHAP Python 3.14.7 (Python Software Foundation, Wilmington, DE, USA) library, with the training data used as the background/reference dataset. Feature-ranking consistency was additionally examined across the adopted cross-validation experiments to assess the stability of the identified model contributions.

4.1. Discussion

The obtained results highlight the efficacy of the presented explainable DL-based framework for BMI estimation. It indicates that the DCN model learned the underlying relationships between the selected attributes and BMI, which is a complex outcome that dietary factors, physical factors, lifestyle factors, and demographic factors can impact. With the help of the MRMR selection method, the most informative features were selected, and redundant information was reduced, so that the DCN could focus on those features that play a more significant role in the estimation of BMI. The results from the BMI estimation using the DCN model indicate that combining both explicit feature interactions and nonlinear relationships can result in effective BMI estimation, achieving an MSE of 0.0022, RMSE of 0.0464, MAE of 0.0360, MAPE of 0.0684, and R2 of 0.9136 on the testing set, especially when these attributes interact with each other in BMI estimation and do not act independently. The ability to generate effective predictions compared with the alternative regression models strengthens this claim. These findings confirm the usefulness of incorporating feature selection with DL-based regression for efficient estimation of BMI.
Furthermore, the incorporation of SHAP enhances interpretability, offering the ability to discern key attributes influencing the predicted BMI and their positive or negative impacts. This is extremely beneficial in understanding BMI variability, as it reveals which specific behavioral and physical aspects are associated with BMI variability rather than merely presenting a black-box result. The feature importance analysis also reveals practical information about BMI-related patterns in the target population. Thus, the proposed model provides a balanced method for modeling and interpreting BMI-related factors. By integrating feature selection (MRMR), DCN, and explainability using SHAP, it is possible to identify the most influential attributes, estimate BMI, and explain how different attributes contribute to the prediction of BMI.
The proposed framework should be considered a supplementary approach for BMI estimation rather than a substitute for direct anthropometric assessment. BMI can be readily calculated when reliable height and weight measurements are available, and direct measurement remains preferable in routine clinical practice. The exclusion of height and weight in this study is intended to examine whether BMI-related information can be estimated from non-anthropometric demographic, dietary, lifestyle, and physical activity variables. This approach may be useful in situations where anthropometric measurements are unavailable, incomplete, outdated, or difficult to obtain, particularly when such non-anthropometric information is already available through health records or remote assessments. The predictive relationships identified by the model and the feature contributions obtained through SHAP indicate how the input variables contribute to the model’s BMI predictions; however, they do not establish that these variables causally determine BMI. Similarly, the framework performs continuous BMI estimation and should not be interpreted as an obesity-diagnosis or classification system. Since BMI is an imperfect proxy for adiposity, indirectly estimating BMI from behavioral and demographic characteristics introduces additional uncertainty and should therefore be interpreted with caution.

4.2. Limitations

While the proposed model is promising, several limitations should be acknowledged. Firstly, although external evaluation was additionally conducted using the Kaggle Health and Fitness dataset, the available datasets represent specific populations and may not fully capture the demographic and lifestyle diversity of broader populations. Therefore, further validation using larger and more diverse datasets from different geographical regions is required. Secondly, BMI is not a direct measure of body composition and cannot differentiate between fat and lean body mass. Thirdly, although BMI was calculated from height and weight to construct the target variable, these anthropometric measurements were excluded from the model inputs to avoid target leakage. Thus, the proposed framework estimates BMI from non-anthropometric demographic, dietary, lifestyle, physical-activity, and health-related variables rather than directly using height and weight. The model may also exhibit sensitivity to the adopted train–test partition, particularly given the limited size of the primary benchmark dataset.
Furthermore, uncertainty estimates were not incorporated into the present BMI predictions, limiting the quantification of prediction uncertainty. Lifestyle and behavioral variables may also be affected by self-report bias, which can influence the reliability of the input information. Finally, the generalizability of the framework across different age groups, sexes, ethnicities, and geographical populations remains uncertain and requires further validation using larger and more diverse independent datasets.

5. Conclusions

Obesity has become one of the most serious public health concerns worldwide, and accurate BMI estimation is important for understanding BMI-related health conditions and identifying associated attributes. This paper proposes an XDL-BMI framework for BMI estimation based on eating habits and physical activity patterns. The proposed XDL-BMI framework estimates BMI using demographic, dietary, lifestyle, and physical activity-related variables without using direct anthropometric measurements. Its performance was also evaluated on the independent Kaggle Health and Fitness dataset, which provides additional evidence of how well the framework can generalize to external data. Ultimately, SHAP was utilized to explain the DCN predictions and examine how each attribute related to eating habits, physical activity patterns, lifestyles, and demographics contributed to BMI estimation. The results demonstrate the potential of the XDL-BMI framework for BMI estimation and interpretable analysis of BMI-related factors, and they provide some implications regarding BMI-related factors associated with BMI variability. The performance of the XDL-BMI model was also demonstrated through comparisons with alternative methods. In future work, more comprehensive data will be utilized to validate the framework further, and it will be extended by integrating health, nutritional, and lifestyle-related information.

Author Contributions

Conceptualization, S.S.; Methodology, S.S.; Software, S.S.; Validation, S.S. and M.B.S.K.; Formal analysis, M.B.S.K.; Investigation, S.S. and M.B.S.K.; Resources, M.B.S.K.; Writing—original draft, S.S.; Writing—review & editing, M.B.S.K.; Visualization, M.B.S.K. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The data that support the findings of this study are openly available at https://archive.ics.uci.edu/dataset/544/estimation+of+obesity+levels+based+on+eating+habits+and+physical+condition (accessed on 18 August 2026), https://www.kaggle.com/datasets/evan65549/health-and-fitness-dataset (accessed on 18 August 2026); reference numbers: [21,28]. The source code developed for the proposed XDL-BMI framework is publicly available on GitHub at https://github.com/researcher010-debug/BMI-Estimation.git (accessed on 18 August 2026).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Gozukara Bag, H.G.; Yagin, F.H.; Gormez, Y.; Gonzalez, P.P.; Colak, C.; Gülü, M.; Badicu, G.; Ardigo, L.P. Estimation of obesity levels through the proposed predictive approach based on physical activity and nutritional habits. Diagnostics 2023, 13, 2949. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  2. Yagin, F.H.; Gülü, M.; Gormez, Y.; Castañeda-Babarro, A.; Colak, C.; Greco, G.; Fischetti, F.; Cataldi, S. Estimation of obesity levels with a trained neural network approach optimized by the Bayesian technique. Appl. Sci. 2023, 13, 3875. [Google Scholar] [CrossRef] [Scilit]
  3. Nandan, M.; Banerjee, J.S.; Chakraborty, A. XAI4Obesity: Explainable AI for Obesity. In Intelligent Human Centered Computing: Proceedings of HUMAN 2025; Springer Singapore: Singapore, 2026; p. 188. [Google Scholar]
  4. Pehlivan, M. Evaluation and Comparison of Dietary Habits, Diet Quality and Mental Well-Being Levels of University Students in Different Countries: The Case of Bosnia and Herzegovina and Türkiye. İzmir Katip Çelebi Üniversitesi Sağlık Bilim. Fakültesi Derg. 2026, 11, 126–132. [Google Scholar] [CrossRef] [Scilit]
  5. Rico-González, M.; Moreno-Villanueva, A.; Gómez-Carmona, C.D.; Carlos-Vivas, J. The Effects of Physical Activity Together with Nutrition Programs in Educational Settings on Obesity and Overweight Reduction in Preschool Children: A Systematic Review of Randomized Controlled Trials. J. Nutr. Metab. 2026, 2026, 9563746. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  6. Reivan Ortiz, G.G.; Granero, R.; Maraver-Capdevila, L.; Aguirre-Quejada, A. Nutrition Patterns, Metabolic and Psychological State Among High-Weight Young Adults: A Network Approach. Nutrients 2026, 18, 145. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  7. Mahadi, M.K.; Rahad, R.; Noman, A.; Ishrat, S.; Faisal, F. Understanding machine learning & its application in obesity estimation by explainable AI. In Proceedings of the 2024 IEEE International Conference on Inventive Computation Technologies (ICICT), Lalitpur, Nepal, 24–26 April 2024; IEEE: New York, NY, USA, 2024; pp. 112–117. [Google Scholar]
  8. Helforoush, Z.; Sayyad, H. Prediction and classification of obesity risk based on a hybrid metaheuristic machine learning approach. Front. Big Data 2024, 7, 1469981. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  9. Obirikorang, C.; Adu, E.A.; Anto, E.O.; Afum-Adjei Awuah, A.; Fynn, A.N.B.; Osei-Somuah, G.; Ansong, P.N.; Boakye, A.O.; Ofori-Boadu, I.; Obirikorang, Y.; et al. Prevalence and risk factors of obesity among undergraduate student population in Ghana: An evaluation study of body composition indices. BMC Public Health 2024, 24, 877. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  10. Bansal, D.; VS, M.S.; Devi, N.; Boya, C.; Dhora Babu, K.; Dutta, P. Trends estimation of obesity prevalence among South Asian young population: A systematic review and meta-analysis. Sci. Rep. 2024, 14, 596. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  11. Wei, J.; Zhu, X.; Liu, J.; Gao, Y.; Liu, X.; Wang, K.; Zheng, X. Estimating global prevalence of mild cognitive impairment and dementia in elderly with overweight, obesity, and central obesity: A systematic review and meta-analysis. Obes. Rev. 2025, 26, e13882. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  12. Matharasi, T.; Jaggi, A.; Patneedi, R.; Sharma, C.; Gambhir, M. Enhancing obesity detection diagnostics: The synergy of machine learning and AI. In Proceedings of the 2025 IEEE International Conference on Contemporary Computing and Communications (InC4), Bangalore, India, 14–15 March 2025; IEEE: New York, NY, USA, 2025; pp. 1–8. [Google Scholar]
  13. Hos, Y.E.; Cicek, G. Next-Gen Diagnostics: Utilizing AI Classification Algorithms for Enhanced Obesity Detection and Intervention. In Next-Gen Healthcare: AI-Powered Medical Innovations; Springer Nature: Cham, Switzerland, 2026; pp. 391–439. [Google Scholar]
  14. Seyam, M.K. Prevalence of obesity and associated risk factors among university students using the newly developed Student Lifestyle and Obesity Risk Questionnaire (SLORQ): A cross-sectional study. PeerJ 2025, 13, e19556. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  15. Lewandowska, A.; Rudzki, G.; Lewandowski, T.; Bartosiewicz, A.; Próchnicki, M.; Stryjkowska-Góra, A.; Laskowska, B.; Sierpińska, M.; Rudzki, S.; Pavlov, S. Overweight and obesity among adolescents: Health-conscious behaviours, acceptance, and the health behaviours of their parents. BMC Public Health 2025, 25, 418. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  16. Azad, M.; Khan, M.F.K.; Abd El-Ghany, S. XAI-enhanced machine learning for obesity risk classification: A stacking approach with LIME explanations. IEEE Access 2025, 13, 13847–13865. [Google Scholar] [CrossRef] [Scilit]
  17. Arslan, R.U.; Yapici, I.S. A novel hybrid approach to enhancing obesity prediction. Eur. Phys. J. Spec. Top. 2025, 234, 4843–4861. [Google Scholar] [CrossRef] [Scilit]
  18. Ganie, S.M.; Reddy, B.B.; Rege, M. An investigation of ensemble learning techniques for obesity risk prediction using lifestyle data. Decis. Anal. J. 2025, 14, 100539. [Google Scholar] [CrossRef] [Scilit]
  19. Karakoç, M.; Oruç, Ö.F. Prediction of Obesity Levels Based on Eating Habits and Physical Conditions Using Machine Learning. In Proceedings of the 2024 IEEE Innovations in Intelligent Systems and Applications Conference (ASYU), Ankara, Turkiye, 16–18 October 2024; IEEE: New York, NY, USA, 2024; pp. 1–5. [Google Scholar]
  20. Khater, T.; Tawfik, H.; Singh, B. Explainable artificial intelligence for investigating the effect of lifestyle factors on obesity. Intell. Syst. Appl. 2024, 23, 200427. [Google Scholar] [CrossRef] [Scilit]
  21. Estimation of Obesity Levels Based On Eating Habits and Physical Condition. Available online: https://archive.ics.uci.edu/dataset/544/estimation+of+obesity+levels+based+on+eating+habits+and+physical+condition (accessed on 18 August 2026).
  22. Palechor, F.M.; De la Hoz Manotas, A. Dataset for estimation of obesity levels based on eating habits and physical condition in individuals from Colombia, Peru and Mexico. Data Brief. 2019, 25, 104344. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  23. Mumuni, A.; Mumuni, F. Automated data processing and feature engineering for deep learning and big data applications: A survey. J. Inf. Intell. 2025, 3, 113–153. [Google Scholar] [CrossRef] [Scilit]
  24. Nisha, R.; Dalin, G. Adaptive Data Enrichment Pre-Processing System (Adeps) For Duplicate Detection, Outlier Handling, Imputation, And Encoding. J. Comput. Anal. Appl. 2024, 33, 902. [Google Scholar]
  25. Nguyen, N.A.; Le Trong, N.; Cong, D.B.; Nguyen, P.N. MRMR Feature Selection Algorithm for Microgrid Frequency Stability Classification. Eng. Technol. Appl. Sci. Res. 2025, 15, 23422–23429. [Google Scholar] [CrossRef] [Scilit]
  26. Li, H.; Zhang, Y.; Zhang, Y.; Li, H.; Sang, L.; Zhu, J. Dcnv3: Towards next generation deep cross network for ctr prediction. arXiv 2024, arXiv:2407.13349. [Google Scholar]
  27. Lamane, H.; Mouhir, L.; Moussadek, R.; Baghdad, B.; Kisi, O.; El Bilali, A. Interpreting machine learning models based on SHAP values in predicting suspended sediment concentration. Int. J. Sediment Res. 2025, 40, 91–107. [Google Scholar] [CrossRef] [Scilit]
  28. Health and Fitness Dataset. Available online: https://www.kaggle.com/datasets/evan65549/health-and-fitness-dataset (accessed on 18 August 2026).
  29. Zhang, Z.; Peng, W.; Sun, S.; Zhang, F.; Sun, Y.; Huang, L. Development and interpretation of a machine learning model for predicting body mass index in Chinese adolescents: A prospective cohort study. Front. Public Health 2025, 13, 1657551. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  30. Ochs, V.; Kollmann, L.; Rosenblum, I.; Poljo, A.; Heule, A.; Enodien, B.; Chumakova-Orin, M.; DeMaria, E.J.; Burri, E.; Stoll, R.; et al. Development of a predictive model for postoperative body mass index and diabetes outcomes after metabolic bariatric surgery: Retrospective cohort study. BJS Open 2026, 10, zrag054. [Google Scholar] [CrossRef] [Scilit] [PubMed]
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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.