Explainable AI-Based Diabetes Mellitus Risk Prediction Using Naive Bayes and Support Vector Machine

Main Article Content

Putu Hawariyah
Sudin Saepudin
Gina Syabani Yuda

Abstract

Diabetes Mellitus (DM) is a chronic metabolic disease that continues to increase globally and requires effective early detection to reduce the risk of serious complications. Machine learning has been widely adopted as an approach for predicting diabetes risk; however, most existing models are still black-box in nature, making them difficult to interpret and less useful for clinical decision-making. In addition, the problem of class imbalance in medical datasets often causes models to be biased toward the majority class, reducing their sensitivity in detecting high-risk patients. This study aims to develop and compare diabetes risk prediction models using the Naive Bayes and Support Vector Machine (SVM) algorithms with an Explainable Artificial Intelligence (XAI) approach. Class imbalance was addressed using the Synthetic Minority Over-sampling Technique (SMOTE) applied to the training data. Interpretability was analyzed using SHAP (SHapley Additive exPlanations) for global feature importance and LIME (Local Interpretable Model-agnostic Explanations) for local instance-level explanations. The dataset used was the Diabetes Health Indicators Dataset from the BRFSS 2015 survey, publicly available on Kaggle, with a sample of 50,000 records and 22 variables. Evaluation results showed that SVM achieved an accuracy of 84.17%, while Naive Bayes achieved a higher recall of 77.76%, indicating better sensitivity in detecting diabetes cases. SHAP analysis identified GenHlth, HighBP, BMI, HighChol, and Age as the most influential risk factors globally, while LIME provided individual-level explanations. This research contributes a prediction model that is not only accurate but also transparent and clinically interpretable.

Downloads

Download data is not yet available.

Article Details

How to Cite
Hawariyah, P., Sudin Saepudin, & Gina Syabani Yuda. (2026). Explainable AI-Based Diabetes Mellitus Risk Prediction Using Naive Bayes and Support Vector Machine. International Journal of Health Engineering and Technology, 5(2). https://doi.org/10.55227/ijhet.v5i2.1025
Section
Health

References

Ade Nasihudin Al Ansori. (2024, November 18). Kemenkes Prediksi Angka Diabetes di Indonesia Naik hingga 28,5 Juta pada 2045, Deteksi Dini dan Mandiri Amat Penting. Liputan6.Com. liputan6.com/health/read/5793225/kemenkes-prediksi-angka-diabetes-di-indonesia-naik-hingga-285-juta-pada-2045-deteksi-dini-dan-mandiri-amat-penting?

American Diabetes Association Releases 2023 Standards of Care in Diabetes to Guide Prevention, Diagnosis, and Treatment for People Living with Diabetes. (n.d.).

Askandar Tjokroprawiro, dkk. (2015). Buku ajar Ilmu Penyakit Dalam Edisi 2. In Prof. Dr. Askandar Tjokroprawiro (Ed.), Buku Ajar Ilmu Penyakit Dalam (Edisi 2) (p. 71). Airlangga University Press.

BINUS UNIVERSITY School of Information Systems. (2025, January 15). Apa itu Naïve Bayes? Algoritma Klasifikasi Sederhana yang Kuat dalam Machine Learning. Https://Sis.Binus.Ac.Id/2025/01/15/Apa-Itu-Naive-Bayes-Algoritma-Klasifikasi-Sederhana-Yang-Kuat-Dalam-Machine-Learning/.

Biofarma. (2025, March 25). Bahaya Diabetes Mellitus dan Faktor Risiko yang Meningkatkan Kemungkinannya. Https://Www.Biofarma.Co.Id/Id/Announcement/Detail/Bahaya-Diabetes-Mellitus-Dan-Faktor-Risiko-Yang-Meningkatkan-Kemungkinannya.

Dikan Ismafillah, Tatang Rohana, & Yana Cahyana. (2023). Analisis algoritma pohon keputusan untuk memprediksi penyakit diabetes menggunakan oversampling smote. INFOTECH : Jurnal Informatika & Teknologi, 4(1), 27–36. https://doi.org/10.37373/infotech.v4i1.452

Erlin, Yulvia Nora Marlim, Junadhi, Laili Suryati, & Nova Agustina. (2022). Deteksi Dini Penyakit Diabetes Menggunakan Machine Learning dengan Algoritma Logistic Regression. Jurnal Nasional Teknik Elektro Dan Teknologi Informasi, 11(2), 88–96. https://doi.org/10.22146/jnteti.v11i2.3586

Handayani, O. P., Purwono, Ashari, I. A., & Ardianto, R. (2025). Systematic Literature Review: Penerapan Machine Learning dalam Diagnosis dan Prediksi Penyakit Diabetes. Komputa : Jurnal Ilmiah Komputer Dan Informatika, 14(2), 108–118. https://doi.org/10.34010/komputa.v14i2.16642

Hasan, R., Dattana, V., Mahmood, S., & Hussain, S. (2024). Towards Transparent Diabetes Prediction: Combining AutoML and Explainable AI for Improved Clinical Insights. Information, 16(1), 7. https://doi.org/10.3390/info16010007

Junus, C. Z. V., Tarno, T., & Kartikasari, P. (2023). KLASIFIKASI MENGGUNAKAN METODE SUPPORT VECTOR MACHINE DAN RANDOM FOREST UNTUK DETEKSI AWAL RISIKO DIABETES MELITUS. Jurnal Gaussian, 11(3), 386–396. https://doi.org/10.14710/j.gauss.11.3.386-396

Mienye, I. D., Obaido, G., Jere, N., Mienye, E., Aruleba, K., Emmanuel, I. D., & Ogbuokiri, B. (2024). A survey of explainable artificial intelligence in healthcare: Concepts, applications, and challenges. In Informatics in Medicine Unlocked (Vol. 51). Elsevier Ltd. https://doi.org/10.1016/j.imu.2024.101587

Muliani, S., Sukma Negara, B., Irsyad, M., & Iskandar, I. (2025). Application of Shapley Additive Explanations (SHAP) in Deep Learning for Lung Disease Detection Using X-ray Images. Journal of Artificial Intelligence and Software Engineering, 5(2), 709–719. https://doi.org/10.30811/jaise.v5i2.7044

Nasution, F., Andilala, A., & Siregar, A. A. (2021). FAKTOR RISIKO KEJADIAN DIABETES MELLITUS. Jurnal Ilmu Kesehatan, 9(2), 94. https://doi.org/10.32831/jik.v9i2.304

Rahmawati, S., Wibowo, A., & Masruriyah, A. F. N. (2024). Improving Diabetes Prediction Accuracy in Indonesia: A Comparative Analysis of SVM, Logistic Regression, and Naive Bayes with SMOTE and ADASYN. Jurnal RESTI (Rekayasa Sistem Dan Teknologi Informasi), 8(5), 607–614. https://doi.org/10.29207/resti.v8i5.5980

Siregar, M. M., Hizria, R., & Pardede, D. (2024). Perbandingan Kinerja Kernel SVM dalam Klasifikasi Kategori Kanker Kulit Menggunakan Transfer Learning. Data Sciences Indonesia (DSI), 4(1), 83–90. https://doi.org/10.47709/dsi.v4i1.4665

Vernanda, D., Nurizati, Z., & Hidayat, A. (2024). KLASIFIKASI BUAH NANAS MENGGUNAKAN METODE NAÏVE BAYES. Melek IT : Information Technology Journal, 10(2), 111–120. https://doi.org/10.30742/melekitjournal.v10i2.355

Wantoro, A., Fitria Yulia, A., Yana Ayu, D., & Mustofa, S. (n.d.). JIP (Jurnal Informatika Polinema) EVALUASI KINERJA ALGORITMA MACHINE LEARNING (ML) MENGGUNAKAN SELEKSI FITUR PADA KLASIFIKASI DIABETES. Retrieved www.kaggle.com/uciml/pima-