<b>Developing a Sharia-Oriented Credit Scoring Framework Using Machine Learning and Explainable AI (SHAP)</b><b></b>

Authors

  • Aneta Rakhmawati Politeknik Negeri Banjarmasin image/svg+xml
  • Fitria
  • Muhammad Syahid Pebriadi
  • Tino Kemal Fattah

DOI:

https://doi.org/10.28918/z8tk5e78

Abstract

Financing decisions in Islamic financial institutions require credit scoring models that balance predictive accuracy, transparency, fairness, and Sharia governance. This study develops a Sharia-oriented credit scoring framework integrating Machine Learning and Explainable Artificial Intelligence (XAI) using the UCI Statlog German Credit dataset (N = 1,000) and nine predictor variables. Logistic Regression and Random Forest were evaluated using an 80:20 stratified train-test split, training-only SMOTE, confusion matrices, precision, recall, specificity, F1-score, ROC-AUC, and 5-fold cross-validation. Random Forest achieved slightly better performance (accuracy = 71.0%, F1-score = 0.790, AUC = 0.742) than Logistic Regression (68.0%, 0.765, and 0.731, respectively). SHapley Additive exPlanations (SHAP) identified checking account status, credit amount, loan duration, housing, and financing purpose as key predictors, while revealing gender sensitivity (mean |SHAP| = 0.04). The findings demonstrate how SHAP-based interpretation can be aligned with the Sharia principles of shafafiyyah, al-'adl, amanah, and maslahah to support transparent and accountable credit assessment. The proposed framework provides an initial foundation for developing context-sensitive credit scoring models for Islamic commercial banks, rural banks, and Islamic microfinance institutions.

Keywords:

machine learning, credit scoring, Islamic finance, explainable AI, SHAP

References

Abdul Aziz, M. S., & Zulkepli, M. I. S. (2025). Algorithmic Bias In Ai-Based Credit Assessment In Islamic Financial Institutions: A Quranic Ethical Approach. International Journal of Quranic Research, 17(2), 125–156. https://doi.org/10.22452/quranica.vol17no2.6

Akbar, S. A., Muhamad Harun, & Evi Eka Elvia. (2026). ARTIFICIAL INTELLIGENCE CREDIT SCORING ALGORITHM AND COMPLIANCE WITH MAQASID AS-SHARI’AH IN DIGITAL ISLAMIC FINANCING. Muamalah, 12(1), 1–11. https://doi.org/10.19109/muamalah.v12i1.35545

Alabi, M. (2025). Explainable AI (XAI): Techniques for Interpreting Complex Machine Learning Models.

Andriyani, R., Kurniawan, M., & Nurmalia, G. (2025). The Urgency of the 5C Principle in Minimizing Financing Risk at Bank Syariah Indonesia KC Diponegoro. Majapahit Journal of Islamic Finance and Management, 5(4). https://doi.org/10.31538/mjifm.v5i4.555

Ayari, H., Guetari, P. R., & Kraïem, P. N. (2025). Machine learning powered financial credit scoring: A systematic literature review. Artificial Intelligence Review, 59(1), 13. https://doi.org/10.1007/s10462-025-11416-2

Ding, M.-L., Ma, Y.-L., & You, F.-Q. (2025). Domain-Constrained Stacking Framework for Credit Default Prediction. Mathematics, 13(21). https://doi.org/10.3390/math13213451

Fitria, Iryanie, E., Heldalina, Pebriadi, M. S., & Chandra, H. K. (2025). Comparison of Random Forest and K-Nearest Neighbors (KNN) Algorithms in Detecting Credit Card Transaction Anomalies. International Journal of Integrative Research (IJIR), 3(7), 511–520.

Fitria;, Iryanie, E. I., ;Heldalina, Pebriadi, M. S., & ;Khalid, A. (2026). Machine Learning-Based Credit Risk Classification Using German Credit Data. International Journal of Innovative Research in Computer Science and Technology, 14(1), 122–126. https://doi.org/10.55524/ijircst.2026.14.1.14

Hadi, A. I., & Pradesyah, R. (2025). The Role of Islamic Financial Institutions in Increasing Access To Msme Financing. Proceeding International Seminar on Islamic Studies, 6(1), 803–814.

Hasan, Z., Abduh, M., & Rosman, R. (2025). Transparency, Accountability, and Customer Trust in Islamic Banking: A Panel Data Analysis from Selected OIC Countries. Jurnal Magister Ekonomi Syariah, 4(2), 915–935.

Hofmann, H. (1994). Statlog (German Credit Data) [Data set]. UCI Machine Learning Repository. https://doi.org/10.24432/C5NC77

Hossain, M. Z., Raja, M. R., & Hasan, L. (2024). Developing Predictive Models for Detecting Financial Statement Fraud: A Machine Learning Approach. European Journal of Theoretical and Applied Sciences, 2(6), 271–290. https://doi.org/10.59324/ejtas.2024.2(6).22

Iqbal, M. S., Sukamto, F. A. M. S. B., Norizan, S. N. B., Mahmood, S., Fatima, A., & Hashmi, F. (2025). AI in Islamic finance: Global trends, ethical implications, and bibliometric insights. Review of Islamic Social Finance and Entrepreneurship, 4(1 SE-Articles), 70–85. https://doi.org/10.20885/RISFE.vol4.iss1.art6

Khalid, S. R. (2025). Machine learning-based credit scoring: A comparative analysis of logistic regression and random forest models. International Journal of Financial Management and Economics, 8(2), 284–294. https://doi.org/10.33545/26179210.2025.v8.i2.596

Khan, F. S., Mazhar, S. S., Mazhar, K., A. AlSaleh, D., & Mazhar, A. (2025). Model-agnostic explainable artificial intelligence methods in finance: A systematic review, recent developments, limitations, challenges and future directions. Artificial Intelligence Review, 58(8). https://doi.org/10.1007/s10462-025-11215-9

Kusnoto, Athoillah, M. A., Sholehudin, E., Huda, U. N., & Bambang Waluyo. (2024). Credit or Financing Analysis in Banking Institutions in the Perspective of Qiyas. Nurani: Jurnal Kajian Syari’ah Dan Masyarakat, 24(2), 391–412. https://doi.org/10.19109/nurani.v24i2.24718

Lin, J., & Fukuyama, J. (2026). A comparative analysis of machine learning models in SHAP analysis. https://doi.org/10.48550/arXiv.2604.07258

Lutfi Azizan, M., Kamil, Y., Alvian Ismau, S., Sandi, D., Maulana, I., Nursodiq, A., Raya Puspitek, J., Pamulang, K., & Tangerang Selatan, K. (2026). Comparative Analysis of SMOTE-Based Random Forest and XGBoost Algorithms for Handling Imbalanced Datasets in Credit Card Fraud Detection. Muhamad Lutfi Azizan et Comparative Analysis of SMOTE-Based Random Forest and XGBoost Algorithms for Handling Imbalanced Datasets in Credit Card Fraud Detection. Jurnal Multidisiplin Sahombu, 6(01), 42–49.

Monteiro, G. O. de A., Difante, G. dos S., Montagner, D. B., Euclides, V. P. B., Castro, M., Rodrigues, J. G., Pereira, M. de G., Ítavo, L. C. V., Campos, J. A., da Costa, A. B., & Matsubara, E. T. (2025). Interpreting Machine Learning Models with SHAP Values: Application to Crude Protein Prediction in Tamani Grass Pastures. Agronomy, 15(12). https://doi.org/10.3390/agronomy15122780

Nihlahhania, Z. R., & Wasesa, M. (2025). ENHANCING CREDIT SCORING PREDICTION IN ISLAMIC BANKING WITH RANDOM FOREST MACHINE LEARNING MODEL : THE ROLE OF MARITAL STATUS. Jurnal Ilmiah Manajemen, Ekonomi, & Akuntansi (MEA), 9(2), 2715–2730. https://doi.org/10.31955/mea.v9i2.6010

Prayudani, S., Sibarani, Y., Salam, A., & Lubis, A. R. (2025). Perbandingan Kinerja Model Pembelajaran Mesin Random Forest dan K-Nearest Neighbor (KNN) untuk Prediksi Risiko Kredit pada Layanan Pinjaman Online. Journal Software, Hardware and Information Technology, 5(2), 118–127. https://doi.org/10.24252/shift.v5i2.204

Rafflesia, U., & Rosadi, D. (2026). Improving Classification Performance of Imbalanced Data Using SMOTE : empirical studies. 8(1), 288–300.

Rizk, A. (2026). Integrating Artificial Intelligence into Credit Risk Assessment (A Comparative Study of Islamic and Conventional Banks). Academic Journal of Research and Scientific Publishing, 7, 5–26. https://doi.org/10.52132/Ajrsp.e.2026.82.1

Salman, H., Kalakech, A., & Steiti, A. (2024). Random Forest Algorithm Overview. Babylonian Journal of Machine Learning, 2024, 69–79. https://doi.org/10.58496/BJML/2024/007

Salsabilla, L., & Jaya, T. (2024). The impact of non-performing financing and operational efficiency on the stability of Islamic banks in Persian Gulf countries. Journal of Islamic Economics Lariba, 10, 623–640. https://doi.org/10.20885/jielariba.vol10.iss2.art1

Shreya, & Pathak, H. (2025). Explainable Artificial Intelligence Credit Risk Assessment using Machine Learning. https://doi.org/10.48550/arXiv.2506.19383

Teapon, R. R. H., & Evalia, N. A. (2025). The Impact of Islamic Banking Financing on Economic Growth in Indonesia. Jurnal Economia, 21(3), 386–403.

Thomas, N. S., & Kaliraj, S. (2024). An Improved and Optimized Random Forest Based Approach to Predict the Software Faults. SN Computer Science, 5(5). https://doi.org/10.1007/s42979-024-02764-x

Vakrani, D. S., Padhye, P. S., Gupta, S. K., Roy, J. K., Nerlekar, V. S., & Parashar, N. (2025). Evaluating AI-driven credit scoring models versus traditional statistical techniques. Discover Artificial Intelligence, 6(1), 72. https://doi.org/10.1007/s44163-025-00772-1

Wang, Y., Wei, W., Liu, Z., Liu, J., Lv, Y., & Li, X. (2025). Interpretable Machine Learning Framework for Corporate Financialization Prediction: A SHAP-Based Analysis of High-Dimensional Data. Mathematics, 13(15). https://doi.org/10.3390/math13152526

Wulansari, W., & Purwitasari, D. (2023). Algoritma Random Forest pada Prediksi Status Kredit Usaha Rakyat untuk Mengurangi Nonperforming Loan Rate. Journal of Intelligent System and Computation, 5, 109–114. https://doi.org/10.52985/insyst.v5i2.358

Yanto, F., Santoso, H., & Nurzanah, E. (2025). … SYARIAH INDONESIA DALAM PENINGKATAN AKSES PEMBIAYAAN USAHA BERBASIS TEKNOLOGI DALAM EKOSISTEM FINTECH SYARIAH (Studi di Bank …. Berkala Hukum, Sosial Dan …, (Query date: 2026-05-12 09:58:53). https://jurnal2.umala.ac.id/index.php/bhsa/article/view/301

Yousefimehr, B., Ghatee, M., Seifi, M. A., Fazli, J., Tavakoli, S., Rafei, Z., Ghaffari, S., Nikahd, A., Gandomani, M. R., Orouji, A., Kashani, R. M., Heshmati, S., & Mousavi, N. S. (2025). Data Balancing Strategies: A Survey of Resampling and Augmentation Methods.

Zhang, B., Luo, J., Wu, R., Wei, J., Luo, Z., & Shen, H. (2026). Machine Learning for Individual Credit Risk Assessment: A Systematic Literature Review of State-of-the-Art Methods, Challenges and Perspectives. Journal of Risk and Financial Management, 19(8), 607. https://doi.org/10.3390/jrfm19080607

Zhao, F. (2025). Evaluating Machine Learning Models for Personal Credit Risk: A Comparison of Logistic Regression, Random Forest, and XGBoost. Applied and Computational Engineering, 158(1), 232–241. https://doi.org/10.54254/2755-2721/2025.TJ23486

Downloads

Published

2026-12-01

Article Statistics

0 Views
0 Downloads

Issue

Section

Article

How to Cite

Developing a Sharia-Oriented Credit Scoring Framework Using Machine Learning and Explainable AI (SHAP). (2026). International Journal of Islamic Business and Economics (IJIBEC), 10(2), 195-214. https://doi.org/10.28918/z8tk5e78