Credit unions play a crucial role in promoting financial inclusion, yet their sustainability is often threatened by rising non-performing loans (NPLs). This study aims to analyze the influence of Days Past Due, Loan Amount, and Savings Proportion on credit defaults within CU Sejahtera Makmur Bersama, using a comparative machine learning approach. Two ensemble models, Random Forest and XGBoost, were applied to predict the likelihood of credit delinquency. Model performance was evaluated using Mean Squared Error (MSE), Mean Absolute Error (MAE), and the Coefficient of Determination (R²). The results show that XGBoost_Optimized achieved the best overall performance, with the lowest MSE (23,124,275,951) and the highest R² (0.020977), indicating a slightly stronger predictive ability compared to Random Forest, which performed better in terms of MAE (69,923,891). Despite these results, both models exhibited limited explanatory power, suggesting that the selected financial predictors alone cannot capture the complexity of NPL behavior. Therefore, future research is encouraged to incorporate non-financial and behavioral variables, such as borrower characteristics and macroeconomic conditions, as well as alternative modeling techniques like binary classification or unsupervised learning for risk segmentation. These improvements are expected to enhance model accuracy and practical applicability in cooperative credit risk management
Copyrights © 2026