Gradient Boosting Ensemble and SHAP-Based Explainability for Financial Literacy Classification in Urban Indonesia
Keywords:
CatBoost, explainable AI, financial literacy, gradient boosting, SHAP, XGBoostAbstract
Although national surveys report rising financial literacy in Indonesia, losses from investment fraud and illegal peer-to-peer lending continue to increase, suggesting that aggregate indices obscure differences across knowledge, behavior, and attitude. This study developed a four-class literacy classification framework using gradient boosting models and SHAP-based explanations, drawing on an online survey of 606 respondents in urban North Sumatra. The instrument, adapted from OJK/SNLIK, consisted of nine knowledge, fourteen behavior, and four attitude items. SMOTE-NC was applied only within cross-validation training folds, so the validation and test data contained no synthetic observations. CatBoost obtained the highest cross-validated Macro F1 (0.8950) and achieved a test accuracy of 87.91% and a Macro F1 of 0.8587, comparable to XGBoost and Logistic Regression. Because the classes were derived from the same items used as features, these models largely approximate the scoring rule. A model based only on demographic and contextual variables, which avoids this dependence, reached a Macro F1 of 0.5347 against a majority-class baseline of 0.1579. Attitude items showed the highest per-feature SHAP contribution (0.321), partly owing to their larger scoring weight, although this dimension was less reliable (α = 0.6167). Gold price awareness, decision confidence, and risk preference were the most discriminative items.
Downloads
References
A. Lusardi and O. S. Mitchell, “The economic importance of financial literacy: Theory and evidence,” J. Econ. Lit., vol. 52, no. 1, pp. 5–44, 2014, doi: 10.1257/jel.52.1.5.
A. Lusardi and O. S. Mitchell, “Financial literacy around the world: An overview,” J. Pension Econ. Finance, vol. 10, no. 4, pp. 497–508, 2011, doi: 10.1017/S1474747211000448.
A. Zaimovic, A. Torlakovic, A. Arnaut-Berilo, T. Zaimovic, L. Dedovic, and M. Nuhic Meskovic, “Mapping financial literacy: A systematic literature review of determinants and recent trends,” Sustainability, vol. 15, no. 12, art. no. 9358, 2023, doi: 10.3390/su15129358.
M. C. Nogueira, L. Almeida, and F. O. Tavares, “Financial Literacy, Financial Knowledge, and Financial Behaviors in OECD Countries,” Journal of Risk and Financial Management, vol. 18, no. 3, Mar. 2025, doi: 10.3390/jrfm18030167.
Otoritas Jasa Keuangan (OJK), “Survei Nasional Literasi dan Inklusi Keuangan (SNLIK) 2024,” 2024.
J. A. Fadli, R. Indradewa, and Y. Yudistria, “Measuring the Level of Digital Financial Literacy Among Generation Y and Z in Indonesia,” Jurnal Ilmiah Manajemen Kesatuan, vol. 12, no. 5, pp. 1911–1918, 2024, doi: 10.37641/jimkes.v12i5.2532.
T. Kaiser, A. Lusardi, L. Menkhoff, and C. Urban, “Financial education affects financial knowledge and downstream behaviors,” J. Financ. Econ., vol. 145, no. 2, pp. 255–272, 2022, doi: 10.1016/j.jfineco.2021.09.022.
D. Fernandes, J. G. Lynch Jr., and R. G. Netemeyer, “Financial literacy, financial education, and downstream financial behaviors,” Manage. Sci., vol. 60, no. 8, pp. 1861–1883, 2014, doi: 10.1287/mnsc.2013.1849.
Satgas PASTI, “Satgas PASTI Blokir 796 Entitas Ilegal di Oktober s.d. Desember 2024.” Accessed: Aug. 19, 2026. [Online]. Available: https://ojk.go.id/id/berita-dan-kegiatan/info-terkini/Pages/Satgas-Pasti-Blokir-796-Entitas-Ilegal-di-Oktober---Desember-2024.aspx
INDEF, “Meninjau ulang kebijakan batas atas suku bunga harian pinjaman daring.” Accessed: Aug. 19, 2026. [Online]. Available: https://indef.or.id/publikasi/meninjau-ulang-kebijakan-batas-atas-suku-bunga-harian-pinjaman-daring/
R. R. Suryono, I. Budi, and B. Purwandari, “Detection of fintech P2P lending issues in Indonesia,” Heliyon, vol. 7, no. 4, Apr. 2021, doi: 10.1016/j.heliyon.2021.e06782.
A. Bandura, “Self-efficacy: Toward a unifying theory of behavioral change,” Psychol. Rev., vol. 84, no. 2, pp. 191–215, 1977, doi: 10.1037/0033-295X.84.2.191.
S. Allgood and W. B. Walstad, “The effects of perceived and actual financial literacy on financial behaviors,” Econ. Inq., vol. 54, no. 1, pp. 675–697, 2016, doi: 10.1111/ecin.12255.
R. Fauziah and A. Kusumawardani, “Pengaruh efikasi diri keuangan, literasi keuangan, uang saku dan pendidikan keuangan keluarga terhadap perilaku pengelolaan keuangan,” Jurnal Ekonomi Bisnis, Manajemen dan Akuntansi (JEBMA), vol. 4, no. 2, pp. 1106–1115, 2024, doi: 10.47709/jebma.v4i2.4080.
S. Hidajat and W. T. Wardhana, “Pengaruh literasi keuangan dan sikap keuangan terhadap pengelolaan keuangan mahasiswa,” Journal of Economics and Business UBS, vol. 12, no. 2, pp. 1036–1048, 2023, doi: 10.52644/joeb.v12i2.200.
S. Levantesi and G. Zacchia, “Machine Learning and Financial Literacy: An Exploration of Factors Influencing Financial Knowledge in Italy,” Journal of Risk and Financial Management, vol. 14, no. 3, Mar. 2021, doi: 10.3390/jrfm14030120.
A. Y. F. Zhu, “Unlocking financial literacy with machine learning: A critical step to advance personal finance research and practice,” Technol. Soc., vol. 81, Jun. 2025, doi: 10.1016/j.techsoc.2024.102797.
L. Grinsztajn, E. Oyallon, and G. Varoquaux, “Why do tree-based models still outperform deep learning on typical tabular data?,” in Advances in Neural Information Processing Systems, vol. 35, 2022.
Z. Lu, H. Li, and J. Wu, “Exploring the impact of financial literacy on predicting credit default among farmers: An analysis using a hybrid machine learning model,” Borsa Istanbul Review, vol. 24, no. 2, pp. 352–362, Mar. 2024, doi: 10.1016/j.bir.2024.01.006.
F. T. Kristanti, M. Y. Febrianta, D. F. Salim, H. A. Riyadh, and B. A. H. Beshr, “Predicting Financial Distress in Indonesian Companies using Machine Learning,” Engineering, Technology and Applied Science Research, vol. 14, no. 6, pp. 17644–17649, Dec. 2024, doi: 10.48084/etasr.8520.
T. A. Chowdhury et al., “Modeling financial literacy through explainable machine learning and behavioral segmentation in emerging economies,” Comput. Hum. Behav. Rep., vol. 21, art. no. 100926, 2026.
X. Chen, G. Hu, and H. Wen, “Investigating the factors influencing household financial vulnerability in China: An exploration based on the Shapley additive explanations approach,” Sustainability, vol. 17, no. 12, art. no. 5523, 2025.
J. Černevičienė and A. Kabašinskas, “Explainable artificial intelligence (XAI) in finance: A systematic literature review,” Artif. Intell. Rev., vol. 57, art. no. 216, 2024, doi: 10.1007/s10462-024-10854-8.
A. Fernández, S. García, F. Herrera, and N. V. Chawla, “SMOTE for learning from imbalanced data: Progress and challenges, marking the 15-year anniversary,” J. Artif. Intell. Res., vol. 61, pp. 863–905, 2018, doi: 10.1613/jair.1.11192.
N. V. Chawla, K. W. Bowyer, L. O. Hall, and W. P. Kegelmeyer, “SMOTE: Synthetic minority over-sampling technique,” J. Artif. Intell. Res., vol. 16, pp. 321–357, 2002, doi: 10.1613/jair.953.
A. R. Salehi and M. Khedmati, “A cluster-based SMOTE both-sampling (CSBBoost) ensemble algorithm for classifying imbalanced data,” Sci. Rep., vol. 14, no. 1, Dec. 2024, doi: 10.1038/s41598-024-55598-1.
T. Chen and C. Guestrin, “XGBoost: A scalable tree boosting system,” in Proceedings of the ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Association for Computing Machinery, Aug. 2016, pp. 785–794. doi: 10.1145/2939672.2939785.
L. Prokhorenkova, G. Gusev, A. Vorobev, A. V. Dorogush, and A. Gulin, “CatBoost: Unbiased boosting with categorical features,” in Advances in Neural Information Processing Systems, vol. 31, 2018, pp. 6638–6648.
S. M. Lundberg and S.-I. Lee, “A unified approach to interpreting model predictions,” in Advances in Neural Information Processing Systems, vol. 30, 2017, pp. 4765–4774.
S. M. Lundberg et al., “From local explanations to global understanding with explainable AI for trees,” Nat. Mach. Intell., vol. 2, no. 1, pp. 56–67, 2020, doi: 10.1038/s42256-019-0138-9.
P. Thanathamathee, S. Sawangarreerak, S. Chantamunee, and D. N. M. Nizam, “SHAP-Instance Weighted and Anchor Explainable AI: Enhancing XGBoost for Financial Fraud Detection,” Emerging Science Journal, vol. 8, no. 6, pp. 2404–2430, Dec. 2024, doi: 10.28991/ESJ-2024-08-06-016.
N. Bussmann, P. Giudici, D. Marinelli, and J. Papenbrock, “Explainable machine learning in credit risk management,” Comput. Econ., vol. 57, no. 1, pp. 203–216, 2021, doi: 10.1007/s10614-020-10042-0.
A. Gramegna and P. Giudici, “SHAP and LIME: An evaluation of discriminating power in credit risk,” Front. Artif. Intell., vol. 4, art. no. 752558, 2021, doi: 10.3389/frai.2021.752558.
World Gold Council, “Gold for the nation: Strengthening the financial resilience of Indonesians,” Indonesia Consumer Insights Report, Nov. 2025. [Online]. Available: https://www.gold.org/goldhub/research/indonesia-consumer-insights-report-gold-nation
C. Engels, K. Kumar, and D. Philip, “Financial literacy and fraud detection,” Eur. J. Finance, vol. 26, no. 4–5, pp. 420–442, 2020, doi: 10.1080/1351847X.2019.1646666.
I. Etikan, S. A. Musa, and R. S. Alkassim, “Comparison of convenience sampling and purposive sampling,” Am. J. Theor. Appl. Stat., vol. 5, no. 1, pp. 1–4, 2016, doi: 10.11648/j.ajtas.20160501.11.
J. Bethlehem, “Selection bias in web surveys,” Int. Stat. Rev., vol. 78, no. 2, pp. 161–188, 2010, doi: 10.1111/j.1751-5823.2010.00112.x.
Otoritas Jasa Keuangan (OJK), “Peningkatan Literasi dan Inklusi Keuangan di Sektor Jasa Keuangan Bagi Konsumen dan Masyarakat,” 2023.
OECD, “OECD/INFE 2023 international survey of adult financial literacy,” OECD Business and Finance Policy Papers, no. 39, OECD Publishing, Paris, 2023, doi: 10.1787/56003a32-en.
K. S. Taber, “The use of Cronbach’s alpha when developing and reporting research instruments in science education,” Res. Sci. Educ., vol. 48, no. 6, pp. 1273–1296, 2018, doi: 10.1007/s11165-016-9602-2.
D. McNeish, “Thanks coefficient alpha, we’ll take it from here,” Psychol. Methods, vol. 23, no. 3, pp. 412–433, 2018, doi: 10.1037/met0000144.
T. Raykov, G. Marcoulides, J. Anthony, and N. Menold, “Evaluating Cronbach’s coefficient alpha and testing its identity to scale reliability: A direct Bayesian confirmatory factor analysis procedure,” Measurement: Interdisciplinary Research and Perspectives, vol. 22, no. 1, pp. 78–89, 2024, doi: 10.1080/15366367.2023.2201963.
S. Kaufman, S. Rosset, C. Perlich, and O. Stitelman, “Leakage in data mining: Formulation, detection, and avoidance,” ACM Trans. Knowl. Discov. Data, vol. 6, no. 4, art. no. 15, 2012, doi: 10.1145/2382577.2382579.
S. Kapoor and A. Narayanan, “Leakage and the reproducibility crisis in machine-learning-based science,” Patterns, vol. 4, no. 9, art. no. 100804, 2023, doi: 10.1016/j.patter.2023.100804.
M. S. Santos, J. P. Soares, P. H. Abreu, H. Araújo, and J. Santos, “Cross-validation for imbalanced datasets: Avoiding overoptimistic and overfitting approaches,” IEEE Comput. Intell. Mag., vol. 13, no. 4, pp. 59–76, 2018, doi: 10.1109/MCI.2018.2866730.
E. Christodoulou, J. Ma, G. S. Collins, E. W. Steyerberg, J. Y. Verbakel, and B. Van Calster, “A systematic review shows no performance benefit of machine learning over logistic regression for clinical prediction models,” J. Clin. Epidemiol., vol. 110, pp. 12–22, 2019, doi: 10.1016/j.jclinepi.2019.02.004.
X. Huang and J. Marques-Silva, “On the failings of Shapley values for explainability,” Int. J. Approx. Reason., vol. 171, art. no. 109112, 2024, doi: 10.1016/j.ijar.2023.109112.
C. Molnar et al., “General pitfalls of model-agnostic interpretation methods for machine learning models,” in xxAI – Beyond Explainable AI, Lecture Notes in Artificial Intelligence, vol. 13200. Cham, Switzerland: Springer, 2022, pp. 39–68, doi: 10.1007/978-3-031-04083-2_4.
J. M. Lown, “Development and validation of a financial self-efficacy scale,” J. Financ. Couns. Plan., vol. 22, no. 2, pp. 54–63, 2011.
Published
How to Cite
Issue
Section
Categories
Copyright (c) 2026 Zulpa Salsabila, Tri Wulandari Ginting, Juliana Damayanti Manurung

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Plaudit
Funding data
-
Direktorat Riset Dan Pengabdian Kepada Masyarakat
Grant numbers 280/C3/DT.O5.00/PL-BARU/2026












