Enhancing Clinical Trust in Diabetes Prediction: A Multi-Directional Counterfactual and SHAP-based Decision Support Model (Preprint)
Abstract
BACKGROUND Despite the high accuracy of machine learning models in predicting diabetes, clinical adoption remains limited due to the "black-box" nature of advanced algorithms. In regional healthcare contexts like Ethiopia, fostering clinician trust is essential for the successful implementation of AI-driven tools. OBJECTIVE This study aims to develop a trustworthy Clinical Decision Support System (CDSS) for diabetes prediction by operationalizing the Asan et al. (2020) trust framework focusing on Ability, Integrity, and Benevolence through the integration of Explainable AI (XAI) techniques. METHODS A multi-national dataset of clinical biomarkers was utilized. To ensure model Ability, we employed a robust preprocessing pipeline including Standardization and SMOTE for class balancing. Five architectures were compared: Logistic Regression, Random Forest (RF), Gradient Boosting, XGBoost, and LightGBM. To establish Integrity, this research utilized SHAP (SHapley Additive exPlanations) for global and local transparency. To demonstrate Benevolence, this research applied Diverse Counterfactual Explanations (DiCE) based on Miller’s (2017) theory of contrastive explanation. RESULTS The Random Forest model emerged as the superior architecture, achieving high Macro-averaged AUC and F1-scores. SHAP global analysis validated model integrity by identifying HbA1c, Age, and BMI as the primary diagnostic drivers, aligning with international clinical guidelines. DiCE generated patient-specific "what-if" scenarios, providing clinicians with actionable targets for lifestyle intervention. Preliminary evaluation suggests that providing both "why" (SHAP) and "how to change" (DiCE) explanations significantly enhances perceived clinician trust compared to standard accuracy-only outputs.The final model was deployed as an interactive Streamlit application 1. CONCLUSIONS Integrating SHAP and Counterfactual analysis transforms predictive AI into a prescriptive clinical partner. By providing actionable insights that clinicians can relate to their medical knowledge, this integration initiates a culture of XAI examination for clinicians, paving the way for more transparent and patient-centered digital health interventions. CLINICALTRIAL term1
Fields of Study & Subjects
Explainable Artificial Intelligence (XAI)
Artificial Intelligence in Healthcare
Artificial Intelligence in Healthcare and Education
Publication details
- Publication date
- 11 February 2026
- Language
- EN
- Document type
- Preprint