Predicting Consumer Payment Preferences Using Naïve Bayes: A Supervised Learning Approach for Behavioral Insight
Abstract
Abstract
In the age of digital transformation, understanding consumer payment preferences is critical for designing effective financial systems and service strategies. This study proposes a supervised learning approach using the Naïve Bayes Classifier to predict consumer payment methods—cash or digital—based on key demographic and behavioral attributes, including gender, age, and transaction history. A synthetic dataset comprising 500 records was developed to reflect real-world consumer profiles. The methodology involved data preprocessing, model development, and performance evaluation using standard classification metrics: confusion matrix, precision, recall, F1-score, and AUC-ROC. The resulting model achieved 93.60% accuracy, with a precision of 93.25% for digital payment prediction and a recall of 93.92% for cash payment classification. The AUC-ROC score of 0.986 indicates excellent discriminative performance. These findings demonstrate the practical utility and efficiency of the Naïve Bayes algorithm in capturing behavioral patterns from limited input features. The approach is relevant for developing intelligent recommendation systems, supporting risk assessment, and advancing digital financial literacy—particularly in emerging sectors such as education, including Islamic boarding schools (pesantren), which are increasingly integrating digital financial tools.
References
D. Fitrianah, S. Dwiasnati, H. H. H, and K. A. Baihaqi, “Penerapan Metode Machine Learning untuk Prediksi Nasabah Potensial menggunakan Algoritma Klasifikasi Naïve Bayes,” Fakt. Exacta, vol. 14, no. 2, p. 92, 2021, doi: 10.30998/faktorexacta.v14i2.9297.
Domingos, P., & Pazzani, M. (1997). On the optimality of the simple Bayesian classifier under zero-one loss. Machine Learning, 29(2–3), 103–130.
E. Eviyanti, B. Irawan, and A. Bahtiar, “Penggunaan Algoritma Naïve Bayes Dalam Menganalisis Sentimen Ulasan Aplikasi Adakami Di Google Play Store,” JATI (Jurnal Mhs. Tek. Inform., vol. 7, no. 6, pp. 3879–3885, 2024, doi: 10.36040/jati.v7i6.8272.
Han, J., Kamber, M., & Pei, J. (2011). Data Mining: Concepts and Techniques (3rd ed.). Morgan Kaufmann.
Hanif Sudira, Alifiannisa Lawami Diar, Yova Ruldeviyani. 2019. “Instagram Sentiment Analysis with Naive Bayes and KNN: Exploring Customer Satisfaction of Digital Payment Services in Indonesia.”
Kurniawan, A., & Ramadhan, F. (2020). Comparison of Naïve Bayes and Decision Tree in Predicting Customer Churn in E-Payment Platform. Journal of Computer Science and Information, 13(2), 120–127.
Hanif Sudira, Alifiannisa Lawami Diar, Yova Ruldeviyani. 2019. “Instagram Sentiment Analysis with Naive Bayes and KNN: Exploring Customer Satisfaction of Digital Payment Services in Indonesia.”
Kamilah, Athia Nur, and Miftah Hur Rahman ZH. 2023. “The Management of Study Time and Part-Time Work for Sharia Economics Students at UIN Sunan Ampel Surabaya.” In International Conference on Islam and Global Civilization 2022.
L. G. Otaya, “Probabilitas Bersyarat, Independensi dan Teorema Bayes Dalam Menentukan Peluang Terjadinya Suatu Peristiwa,” J. Manaj. Pendidik. Islam, vol. 4, no. 1, pp. 68–78, 2021.
Lestari, C. P., Kurnianto, R., Syam, A. R., & Arifin, S. (2024). Religious Educational Patterns of The Millennial Generation Trough Ngopi Senja Activities. eL-HIKMAH: Jurnal Kajian dan Penelitian Pendidikan Islam, 18(2), 144-163.
Provost, F., & Fawcett, T. (2013). Data Science for Business. O'Reilly Media.
Putri, F. S., & Wahyuni, R. (2020).Analisis Logistic Regression untuk Memprediksi Preferensi Penggunaan Dompet Digital di Kalangan Mahasiswa.Jurnal Teknologi dan Sistem Komputer, 8(2), 200–208.
R. Syahputra, “Identifikasi Kerusakan PC (Personal Computer) dengan Metode Teorema Bayes Pada Laboratorium Komputer STMIK Triguna Dharma,” J-SISKO TECH (Jurnal Teknol. Sist. Inf. dan Sist. Komput. TGD), vol. 4, no. 1, p. 20, 2021, doi: 10.53513/jsk.v4i1.2607.
Salsabila, A. M., & Fadillah, R. (2023).Digitalisasi Sistem Pembayaran Pondok Pesantren Berbasis QRIS.Jurnal Ekonomi Syariah Nusantara, 5(1), 33–41.
Wang, C., & Li, Q. (2020). Customer payment behavior prediction using machine learning techniques.
Wisnu, Hilman, Muhammad Afif, and Yova Ruldevyani. 2020. “Sentiment Analysis on Customer Satisfaction of Digital Payment in Indonesia: A Comparative Study Using KNN and Naïve Bayes.
Yulianti, Ita, Lis Saumi Ramdhani, Tya Septiani, and Nurfauzia Koeswara. 2024. “IJCIT ( Indonesian Journal on Computer and Information Technology ) Analisis Sentimen Ulasan Aplikasi Gopay Menggunakan Naive Bayes Dengan Teknik Oversampling”
Zhang, H. (2004). The Optimality of Naive Bayes. In Proceedings of the Seventeenth International Florida Artificial Intelligence Research Society Conference (pp. 562–567).
Zang, Xu. (2024). Machine Learning Insights into Digital Payment Behaviors and Fraud Prediction.
11.gif)










