Model Prediksi Risiko Kredit Macet Menggunakan XGBoost Dengan AI Explainer Berbasis SHAP

Authors

  • Alvian Maulana Mansyur Politeknik Negeri Bali
  • Putu Manik Prihatini Politeknik Negeri Bali
  • Gde Brahupadhya Subiksa Politeknik Negeri Bali

DOI:

https://doi.org/10.46880/jmika.Vol10No2.pp635-644

Keywords:

Credit Risk, Classification, XGBoost, SHAP

Abstract

Credit is a financial instrument that carries the risk of default when borrowers are unable to fulfill their repayment obligations. This risk may lead to financial losses for lending institutions, making accurate credit risk prediction essential. This study aims to develop a credit risk prediction model using Extreme Gradient Boosting (XGBoost) and point out its predictions using an AI explainer based on SHapley Additive exPlanations (SHAP). The dataset was obtained from the internal database of a fintech company in Indonesia and consisted of 116,250 records with 19 attributes. The research stages included Exploratory Data Analysis (EDA), missing value and outlier handling, data splitting, model training, evaluation, and result interpretation. The XGBoost model achieved an accuracy of 92%. For the Less Current class, the model obtained a precision of 0.91, a recall of 0.97, and an F1-score of 0.94. For the current class, the model achieved a precision of 0.86, a recall of 0.62, and an F1-score of 0.72. For the Default class, the model obtained a precision of 0.97, a recall of 0.91, and an F1-score of 0.94. SHAP analysis as an AI explainer revealed that the income and side_income features were the most influential factors in determining credit risk.

References

Allam, H., Makubvure, L., Gyamfi, B., Graham, K. N., & Akinwolere, K. (2025). Text Classification: How Machine Learning Is Revolutionizing Text Categorization. Information, 16(2), 130. https://doi.org/10.3390/info16020130

Assa, V., & Loindong, S. S. R. (2023). Analisis Pengaruh Risiko Kredit, Kecukupan Modal Dan Likuiditas Terhadap Kinerja Keuangan Pada Bank Bumn Di Bursa Efek Indonesia (BEI). Jurnal EMBA: Jurnal Riset Ekonomi, Manajemen, Bisnis dan Akuntansi, 11(4), 1048–1057. https://doi.org/10.35794/emba.v11i4.51747

Aydin, Z. E., & Ozturk, Z. K. (2021). Performance analysis of XGBoost classifier with missing data. Manchester Journal of Artificial Intelligence and Applied Sciences (MJAIAS), 2(02), 2021.

Dachi, J. M. A. S., & Sitompul, P. (2023). Analisis Perbandingan Algoritma XGBoost dan Algoritma Random Forest Ensemble Learning pada Klasifikasi Keputusan Kredit. Jurnal Riset Rumpun Matematika dan Ilmu Pengetahuan Alam, 2(2), 87–103. https://doi.org/10.55606/jurrimipa.v2i2.1470

Givari, M. R., Sulaeman, M. R., & Umaidah, Y. (2022). Perbandingan Algoritma SVM, Random Forest dan XGBoost Untuk Penentuan Persetujuan Pengajuan Kredit. Nuansa Informatika, 16(1), 141–149. https://doi.org/10.25134/nuansa.v16i1.5406

Ridwan, R., Hermaliani, E. H., & Ernawati, M. (2024). Penerapan: Penerapan Metode SMOTE Untuk Mengatasi Imbalanced Data Pada Klasifikasi Ujaran Kebencian. Computer Science (Co-Science), 4(1), 80-88. https://doi.org/10.31294/coscience.v4i1.2990

Hoffman, R. R., Mueller, S. T., Klein, G., Jalaeian, M., & Tate, C. (2023). Explainable AI: roles and stakeholders, desirements and challenges. Frontiers in Computer Science, 5, 1117848. https://doi.org/10.3389/fcomp.2023.1117848

Huang, Y., Zhou, Y., Chen, J., & Wu, D. (2024). Applying Machine Learning and SHAP Method to Identify Key Influences on Middle-School Students’ Mathematics Literacy Performance. Journal of Intelligence, 12(10), 93. https://doi.org/10.3390/jintelligence12100093

Jange, B., Pendi, I., & Susilowati, E. M. (2024). Peran Teknologi Finansial (Fintech) dalam Transformasi Layanan Keuangan di Indonesia. Indonesian Research Journal on Education, 4(3), 1199–1205. https://doi.org/10.31004/irje.v4i3.1007

Lin, J. (2024, January). Research on loan default prediction based on logistic regression, randomforest, xgboost and adaboost. In SHS web of conferences (Vol. 181, p. 02008). EDP Sciences. https://doi.org/10.1051/shsconf/202418102008

Nti, I. K., Nyarko-Boateng, O., & Aning, J. (2021). Performance of Machine Learning Algorithms with Different K Values in K-fold CrossValidation. International Journal of Information Technology and Computer Science, 13(6), 61–71. https://doi.org/10.5815/ijitcs.2021.06.05

Ørebæk, O. E., & Geitle, M. (2021, March). Exploring the Hyperparameters of XGBoost Through 3D Visualizations. In AAAI Spring Symposium: Combining Machine Learning with Knowledge Engineering. http://ceur-ws.org

Qinghe, Z., Wen, X., Boyan, H., Jong, W., & Junlong, F. (2022). Optimised extreme gradient boosting model for short term electric load demand forecasting of regional grid system. Scientific Reports, 12(1), 19282. https://doi.org/10.1038/s41598-022-22024-3

Qiu, J. (2024). An Analysis of Model Evaluation with Cross-Validation: Techniques, Applications, and Recent Advances. Advances in Economics, Management and Political Sciences, 99(1), 69–72. https://doi.org/10.54254/2754-1169/99/2024ox0213

Rafaella, A. C., & Prabowo, B. (2021). Analisis Kredit Macet pada Kredit Usaha Rakyat (KUR) PT. Bank Rakyat Indonesia (Persero) Tbk Unit Rungkut Surabaya pada Masa Pandemi Covid-19. Al-Kharaj: Jurnal Ekonomi, Keuangan & Bisnis Syariah, 4(2), 368–379. https://doi.org/10.47467/alkharaj.v4i2.674

Reddy, A. K. (2024). Bridging AI and Human Understanding: Interpretable Deep Learning in Practice. Journal of Informatics Education and Research, 4(3). https://doi.org/10.52783/jier.v4i3.2200

Swaminathan, S., & Tantri, B. R. (2024). Confusion Matrix-Based Performance Evaluation Metrics. African Journal of Biomedical Research, 27, 4023–4031. https://doi.org/10.53555/AJBR.v27i4S.4345

Yanda, N., & Rahmazaniati, L. (2024). Analisis Faktor-Faktor yang Mempengaruhi Kredit Macet Pada Bank BTN Kantor Cabang Pembantu Syariah Meulaboh. Innovative: Journal Of Social Science Research, 4(2), 545–557. https://doi.org/10.31004/innovative.v4i2.9488

Yaqin, A. (2023). Penilaian kredit menggunakan algoritma XGBoost dan logistic regression. Jurnal Informatika: Jurnal Pengembangan IT, 8(1), 4-10.

Zakiati, A., & Sinaga, O. S. (2025). Faktor yang Menyebabkan Kredit Macet pada Debitur di Bank BRI Unit Pasar Baru Balikpapan. Jurnal Hukum, Politik dan Ilmu Sosial, 4(2), 54–65. https://doi.org/10.55606/jhpis.v3i3.3937

Published

2026-10-31

Issue

Section

METHOMIKA: Jurnal Manajemen Informatika & Komputersisasi Akuntansi