The performance of our proposed hybrid model demonstrates a significant improvement in the classification of diabetes over the conventional ML models. However, despite strong internal performance, these results should be interpreted with caution. Because calibration assessment and all optimization steps were conducted within internal cross-validation only, and no external cohort was used, the observed performance may reflect dataset-specific characteristics. Therefore, while the model shows promise, it is not yet suitable for immediate clinical deployment without multi-center external validation.
With the integration of DL and explainability methods, our system demonstrates improved performance while the decisions remain interpretable. The selection of the model in this research was based on how complicated it would be to predict diabetes and what type of limitations the conventional models have. While effective in some cases, methods like LR and SVM are hard-pressed to address complex, nonlinear patterns in medical data. On the other hand, RF and XGBoost are more effective at modeling nonlinear relationships but fail to provide much interpretability. Our suggested hybrid model, combining DNNs and XGBoost, addresses these shortcomings. DL can extract high-dimensional and intricate patterns from input data, and XGBoost can boost the model's interpretability along with explainable decision-making. Their combination achieves improved predictive accuracy for diabetes classification along with preserving transparency in clinical decision support.
Other studies have also proved that the fusion of DL models and explainable AI techniques has the potential to enhance diagnostic accuracy, along with decreasing uncertainty in medical decision-making. For instance, Islam Ayon and Islam demonstrated that a DL-based diabetes forecasting system uses 98.35% accuracy on the Pima Indian Diabetes dataset compared to traditional ML classifiers such as LR and SVM (
21). However, explainability techniques were not utilized in this study, limiting its application to clinical decision-making. Similarly, Chowdhury et al.'s work proposed a hybrid ensemble DL approach utilizing XGBoost, TabNet, and Multilayer Perceptron with a 96% accuracy rate but without utilizing interpretability models like SHAP or LIME in particular. Contrary to our study, these techniques are integrated in our work with a balance between predictive accuracy and explainability, and a suitability for clinical applications in actual practices (
4). Recent work has proposed optimized hybrid ML frameworks for early diabetes prediction (
22).
Therefore, the selection of these models was not just due to their greater predictive ability to analyze medical data but also because they can make decisions more interpretable, which is crucial in applications in the medical domain. Although highly accurate, the DL and XGBoost models suffer from interpretability issues. Extreme Gradient Boosting and DL model interpretability issues are not specific to diabetes prediction but are common to all medical applications. The models are black-box algorithms, and it is not easy to directly interpret their decisions. Studies in cardiovascular disease diagnosis, cancer detection, and neurological disorder classification have all reported the same problem of lacking interpretability. Therefore, the interpretability problem in these models is a common issue in AI-based medical diagnosis, and explainable AI approaches are needed to improve confidence and clinician adoption in practice. Alternatively, simpler models like LR have no strong predictive power in complex patterns.
Our hybrid approach successfully balances performance and interpretability. This is achieved by combining the high predictive power of DL with XGBoost interpretability. DL techniques can learn complicated, nonlinear data relationships, but are black-box models with little explainability. Extreme Gradient Boosting provides feature importance values and decision tree structures that bring in explainability. Our model merges these two together and retains the high predictive capability while incorporating feature attribution techniques, e.g., SHAP, to enhance model interpretability. The SHAP has been extensively employed in clinical AI applications to explain how each feature contributes to model predictions. Similarly, a recent explainable AI analysis using statistical and ML models for diabetes emphasized that transparent interpretability enhances clinical trust and decision reliability (
9). Islam et al. demonstrated that the integration of SHAP analysis and ML models with hyperparameter optimization improves diabetes prediction significantly by recognizing the most dominant risk factors, i.e., glucose level, BMI, and blood pressure (
1). In contrast, in another study, SHAP and LIME was applied for interpreting the contribution of clinical variables in diabetes diagnosis, confirming that explainable AI reinforces the credibility of AI-based medical decision-making so that clinicians can believe and interpret the model's predictions (
23). It is more suitable for medical decision-making.
One of the most encouraging features of the proposed model is interpretability, explored by SHAP, following earlier research demonstrating the potential of SHAP in medical AI applications. In the present study, a hybrid AI-based approach to diabetes prediction uses DNNs and XGBoost to balance model interpretability and superior accuracy. A systematic comparison with several ML models validated the proposed hybrid model to be much better compared to traditional approaches, achieving 94% accuracy on test data. The model is superior in predictive accuracy compared to LR, RF, SVM, and XGBoost.
The new paradigm offers a new baseline for AI-based diabetes prediction and allows for more creative, interpretable, and clinically significant models. Model interpretability analysis helps clinicians make more informed decisions and guides public health policy development to reduce the risk of diabetes (
24,
25). Feature importance analysis showed that glucose level, HbA1c, and insulin resistance are the most significant predictors of diabetes, although lifestyle variables such as physical activity and smoking status also contribute to the model output. With this heterogeneous feature set, the model provides accurate predictions and interpretable and actionable insights for clinical decision-making.
Unlike prior hybrid DNN-XGBoost models that primarily focused on improving predictive accuracy, for example, Li et al. developed a GA-optimized XGBoost stacking ensemble for diabetes risk prediction, yet lacked a dual-objective interpretability-performance optimization (
26). This study introduces a dual-objective optimization framework that simultaneously enhances interpretability and stability. Specifically, our model incorporates SHAP-based feedback during training and adjusts weight coefficients (α, βₐ, β_b, and b) through a Pareto optimization process that minimizes Shapley instability while maximizing balanced accuracy. Similarly, Iftikhar et al. proposed a hybrid DL architecture with integrated SHAP and class-imbalance handling for diabetes prediction, though without the Pareto‐optimization of stability and accuracy we adopt (
27).
Furthermore, unlike earlier works that used standardized datasets such as Pima Indian or UCI repositories, our approach employs a real-world multiclinical dataset collected from two independent hospitals, providing higher ecological validity and clinical realism. To overcome the twin challenges of suboptimal predictive accuracy and insufficient clinical transparency, two major factors fueling physicians’ skepticism toward AI-driven diabetes systems, this study proposes a new multi-objective weighting strategy. For the first time, the nonlinear learning strength of DNNs is combined with the structured-data efficiency of XGBoost in a unified hybrid framework. The model’s weighting parameters (α, βₐ, β_b, and b) are optimized through training via a dual-objective function that maximizes balanced accuracy while minimizing Shapley instability. This architecture introduces three major contributions that bridge methodological innovation and practical clinical deployment.
In contrast to prior models that either rely solely on high-performing algorithms like XGBoost, with limited interpretability or those that prioritize accuracy at the expense of transparency, this study presents a hybrid approach that delivers both performance and insight. By fusing DNN and XGBoost outputs within a weighted aggregation layer and incorporating both local and global SHAP visualizations, the model offers clinicians intuitive reasoning alongside robust prediction. This method improved the Shapley Consistency Index by 23% compared to the best-performing models reported in the literature (
9).
In addition to established markers like fasting glucose and HbA1c, the model integrates inflammatory indicators such as the NLR — a metric proven in 2024 multicohort studies to correlate with cardiovascular outcomes in diabetic patients. This expanded input space allowed the model to achieve a prediabetes prediction AUC of 94%, surpassing existing benchmarks by at least 1.6 percentage points (
19).
The framework also incorporates a Pareto optimization process to find the optimal trade-off between prediction accuracy and model explainability. By fine-tuning the weights to keep the SHAP value fluctuation below 0.02 during bootstrap validation — while maintaining sensitivity above 92% — the system effectively narrows the gap between opaque high-performing models and interpretable but limited alternatives (
28). The improved stability of model explanations was supported by the dual-objective optimization procedure described in the Methods, which jointly maximized balanced accuracy while minimizing SHAP variability. Consistent with the Results section, exploratory analyses showed that prediabetes detection performance remained high (AUC = 0.94), and NLR contributed modestly to the model’s outputs as an inflammatory marker. These findings reinforce the potential value of combining metabolic and inflammatory markers within explainable hybrid frameworks.
Although the proposed hybrid model achieved robust performance, a major limitation of this study is the absence of external validation. The model was developed and tested using data from two hospitals within the same geographic region, which may restrict its generalizability to broader or more diverse populations. Future research should include independent external datasets from different institutions to validate the model’s reproducibility and ensure its applicability across various clinical environments.
The proposed hybrid DNN-XGBoost framework also holds potential for practical integration into routine clinical workflows. In a real-world setting, the model can be embedded within clinical decision support systems (CDSS) or integrated directly into hospital electronic health record (EHR) platforms. Once patient data such as fasting glucose, HbA1c, BMI, and blood pressure are entered into the system, the model can automatically generate a personalized probability of developing type 2 diabetes. Importantly, the SHAP-based explainability component provides clinicians with an interactive visual dashboard that highlights the most influential features contributing to each prediction, thereby supporting transparent and interpretable decision-making.
The intended clinical use of the model is to support early diabetes risk stratification during routine outpatient visits. The system is designed as an assistive decision-support tool rather than a stand-alone diagnostic device, providing clinicians with transparent risk scores and SHAP-based explanations.
In a typical workflow, this system could assist healthcare professionals in three critical stages of diabetes management: early screening, where individuals at elevated risk are automatically flagged during routine examinations; diagnostic confirmation, where clinicians can cross-verify AI-driven risk estimates with laboratory findings; and follow-up monitoring, where periodic patient data updates enable dynamic risk reassessment. Such integration ensures that AI augments rather than replaces clinical judgment, offering a data-driven yet interpretable tool for precision prevention.
From an operational standpoint, the model’s computational requirements are moderate once training is complete, making real-time inference feasible even in hospitals with limited computational infrastructure. With further validation and regulatory approval, this framework could be seamlessly embedded within existing clinical infrastructures to enhance early detection, reduce diagnostic delay, and support personalized treatment planning in diabetes care (
29-
31).
5.1. Conclusion
The findings of this study demonstrate that the proposed hybrid DNN–XGBoost model can achieve strong predictive accuracy and enhanced interpretability in identifying individuals at risk of type 2 diabetes. By integrating DL for nonlinear feature representation with XGBoost for structured decision transparency, the model addresses common trade-offs between performance and explainability that limit many existing ML approaches.
While these results are promising, they should be interpreted within the scope of the available dataset and internal validation. External validation across multi-center populations is still required to confirm the model’s generalizability and real-world applicability. Moreover, the retrospective nature of this study and its focus on a single geographic population may introduce selection and demographic biases.
The hybrid architecture provides a useful foundation for the development of explainable clinical decision-support systems in diabetes care. However, further work is necessary to evaluate its robustness in prospective studies, optimize its computational efficiency, and integrate it safely into healthcare workflows. Rather than claiming clinical readiness, the current evidence supports its potential for clinical utility pending additional validation.
Overall, this research underscores the growing importance of hybrid artificial intelligence frameworks that balance performance with interpretability, offering a realistic step toward more transparent and data-driven healthcare applications.
5.2. Limitations
Although the proposed hybrid DNN-XGBoost model demonstrated excellent predictive accuracy and interpretability, several limitations must be acknowledged.
First, as the dataset originated from only two hospitals in Sirjan, Iran, potential demographic bias may exist, limiting the generalizability of the model to broader or ethnically diverse populations. Future studies should validate this framework across multi-center and cross-national datasets.
Second, while five-fold cross-validation was employed to mitigate the risk of overfitting, DL components are inherently prone to learning noise and spurious correlations in smaller datasets. Although the hybrid design and regularization techniques (dropout and early stopping) helped control this effect, further external validation is required to confirm model robustness.
Third, the hybrid framework demands substantial computational resources, as DNN training involves intensive parameter optimization and high memory usage. This may limit practical deployment in low-resource healthcare environments without access to high-performance computing infrastructure.
Future research should address these limitations by expanding the dataset diversity, incorporating federated learning approaches for distributed validation, and exploring lightweight model architectures to reduce computational cost while preserving interpretability.