EXPLORER
Vol 6 No 2 (2026): July 2026

Explainable Diabetes Classification Using Machine Learning Algorithm and SHAP Analysis on Clinical Laboratory Data

Siti Agus Kartini (Department of Information Systems, Universitas Tjuk Nyak Dhien, Medan)
Muhammad Fauzi (Department of Information Systems, Universitas Tjuk Nyak Dhien, Medan)
Riki Winanjaya (Department of Information Systems, STIKOM Tunas Bangsa, Pematangsiantar)



Article Info

Publish Date
28 Jul 2026

Abstract

Diabetes mellitus is a chronic metabolic disorder that continues to pose significant health challenges worldwide due to its increasing prevalence and potential complications. Early and accurate identification of diabetes is essential to support timely intervention and effective disease management. Recent advances in machine learning have enabled the development of intelligent classification systems; however, many predictive models still suffer from limited interpretability, reducing their applicability in clinical environments. Therefore, this study proposes an explainable diabetes classification framework using machine learning algorithms and SHapley Additive exPlanations (SHAP) analysis on clinical laboratory data. The dataset consists of 1,000 patient records containing demographic and laboratory attributes, including age, gender, glycated hemoglobin (HbA1c), cholesterol, triglycerides, lipoprotein levels, creatinine, urea, and body mass index (BMI). Four machine learning algorithms, namely Decision Tree, Random Forest, Support Vector Machine (SVM), and Extreme Gradient Boosting (XGBoost), were developed and evaluated. The performance of each model was assessed using Accuracy, Precision, Recall, F1-Score, Classification Report, and Confusion Matrix. Experimental results indicate that Random Forest and XGBoost achieved the highest classification accuracy of 98.5%, outperforming Decision Tree (98.0%) and SVM (94.5%). Due to its strong predictive capability and compatibility with explainable artificial intelligence techniques, XGBoost was selected for further SHAP analysis. The SHAP results successfully identified the most influential features contributing to diabetes classification and provided transparent explanations regarding model predictions. The proposed framework demonstrates that combining machine learning algorithms with explainable artificial intelligence improves predictive accuracy and interpretability, supporting reliable clinical decision-making for diabetes diagnosis.

Copyrights © 2026






Journal Info

Abbrev

Explorer

Publisher

Subject

Computer Science & IT

Description

EXPLORER Journal of Computer Science and Information Technology is a scientific journal published by the FKPT (Forum Kerjasama Pendidikan Tinggi). This journal contains scientific papers from Academics, Researchers, and Practitioners about research on Computer Science and Information Technology. ...