Prediksi Perilaku Konsumen UMKM E-Commerce Indonesia Menggunakan Random Forest, XGBoost, dan TreeSHAP
Abstract
Transformasi digital usaha mikro, kecil, dan menengah (UMKM) Indonesia melalui lokapasar menghadapi tantangan sensitivitas biaya logistik antarpulau serta rendahnya pembelian ulang (repeat order). Penelitian ini merancang kerangka kerja prediktif berbasis Random Forest, Extreme Gradient Boosting (XGBoost), dan TreeSHAP untuk memprediksi perilaku konsumen sekaligus merumuskan strategi retensi pelanggan UMKM e-commerce Indonesia. Metodologi studi mencakup audit skema dua puluh sembilan atribut transaksi, isolasi kebocoran target (target leakage), penyeimbangan kelas sintetis, serta rancangan evaluasi klasifikasi (accuracy, precision, recall, F1-score, dan ROC-AUC) beserta atribusi nilai Shapley. Meskipun demikian, pelatihan model empiris, metrik evaluasi, serta nilai TreeSHAP belum dapat dieksekusi karena himpunan data hanya tersedia secara terfragmentasi dan modul komputasi khusus algoritma boosting serta komputasi SHAP belum terpasang pada lingkungan analitik. Audit kuantitatif terhadap tiga puluh empat catatan terverifikasi mengonfirmasi kesesuaian identitas aritmetika nilai transaksi bersih tanpa deviasi, anomali ketidaksesuaian kategori produk terhadap teks ulasan, serta hubungan deterministik tanpa varians antara peringkat produk, keterlambatan pengiriman, dan pembelian ulang terhadap skor loyalitas pelanggan. Data terverifikasi juga memperlihatkan kesenjangan ongkos kirim wilayah tertinggal sebesar Rp 78.571 dibandingkan Rp 21.615 antarkota sepulau, sementara keterlambatan pengiriman maupun pembayaran tunai di tempat mencatat pembelian ulang nol persen. Temuan audit dan sintesis literatur mendasari strategi retensi tersegmentasi berbasis subsidi ongkos kirim terarah, pengendalian layanan kurir per koridor, konversi pembayaran digital, serta pemulihan layanan empat tingkat risiko churn bagi UMKM Indonesia.
References
E. Aminullah et al., “Interactive Components of Digital MSMEs Ecosystem for Inclusive Digital Economy in Indonesia,” J. Knowl. Econ., vol. 15, no. 1, pp. 487–517, Mar. 2024, doi: 10.1007/s13132-022-01086-8.
A. Zhafira and F. Yunita, “Analisis Prediksi Pembatalan Pesanan E-Commerce Menggunakan Algoritma Random Forest dan XGBoost untuk Mitigasi Kerugian Finansial,” Indones. J. Multidiscip. Soc. Technol., vol. 4, no. 3, pp. 3143–3152, Aug. 2026, doi: 10.69693/ijmst.v4i3.12964.
T. Chen and C. Guestrin, “XGBoost,” in Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, New York, NY, USA: ACM, Aug. 2016, pp. 785–794. doi: 10.1145/2939672.2939785.
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, Jun. 2002, doi: 10.1613/jair.953.
A. Dhini and M. Fauzan, “Predicting Customer Churn using ensemble learning: Case Study of a Fixed Broadband Company,” Int. J. Technol., vol. 12, no. 5, p. 1030, Dec. 2021, doi: 10.14716/ijtech.v12i5.5223.
S. M. Lundberg and S.-I. Lee, “A unified approach to interpreting model predictions,” in Proceedings of the 31st International Conference on Neural Information Processing Systems, in NIPS’17. Red Hook, NY, USA: Curran Associates Inc., 2017, pp. 4768–4777.
M. B. Samudra, M. Afrina, A. Meiriza, R. D. Kurnia, and A. Ariani, “Analisis Perbandingan Random Forest dan XGBoost dalam Prediksi Pembatalan Pesanan Shopee Menggunakan Interpretasi SHAP Comparison of Random Forest and XGBoost for Shopee Order Cancellation Prediction Using SHAP Interpretation,” vol. 8, no. 2, pp. 820–832, 2026, doi: 10.47065/bits.v8i2.10960.
A. Fannouch, J. Gharib, and Y. Gahi, “Enhancing DataOps practices through innovative collaborative models: A systematic review,” Int. J. Inf. Manag. Data Insights, vol. 5, no. 1, p. 100321, Jun. 2025, doi: 10.1016/j.jjimei.2025.100321.
L. N. Mishra, A. Rangari, S. Nagrare, and S. K. Nayak, “A taxonomy for detecting and preventing temporal data leakage in machine learning-based build prediction: A dual-platform empirical validation,” PLoS One, vol. 21, no. 5, p. e0340167, May 2026, doi: 10.1371/journal.pone.0340167.
S. Kapoor and A. Narayanan, “Leakage and the reproducibility crisis in machine-learning-based science,” Patterns, vol. 4, no. 9, p. 100804, Sep. 2023, doi: 10.1016/j.patter.2023.100804.
J. M. H. Pinheiro et al., “The Impact of Feature Scaling in Machine Learning: Effects on Regression and Classification Tasks,” IEEE Access, vol. 13, pp. 199903–199931, 2025, doi: 10.1109/ACCESS.2025.3635541.
W. Ruan and Z. Zhai, “Predicting User Purchase Behavior via Multidimensional Feature Engineering and Explainable Machine Learning,” J. Theor. Appl. Electron. Commer. Res., vol. 21, no. 10, p. 352, Oct. 2026, doi: 10.3390/jtaer21100352.
Y. Yang, X. Li, Y. Guan, H. Wang, C. Kong, and J. Jiang, “LHP: Logical hypergraph link prediction,” Expert Syst. Appl., vol. 222, p. 119842, Jul. 2023, doi: 10.1016/j.eswa.2023.119842.
N. V. Chawla, A. Lazarevic, L. O. Hall, and K. W. Bowyer, “SMOTEBoost: Improving Prediction of the Minority Class in Boosting,” 2003, pp. 107–119. doi: 10.1007/978-3-540-39804-2_12.
M. K. Mayangsari, I. Syarif, and A. Barakbah, “Evaluation of Stratified K-Fold Cross Validation for Predicting Bug Severity in Game Review Classification,” Kinet. Game Technol. Inf. Syst. Comput. Network, Comput. Electron. Control, Jul. 2023, doi: 10.22219/kinetik.v8i3.1740.
K. M. Sujon, R. Hassan, K. Choi, and M. A. Samad, “Accuracy, precision, recall, f1-score, or MCC? empirical evidence from advanced statistics, ML, and XAI for evaluating business predictive models,” J. Big Data, vol. 12, no. 1, p. 268, Dec. 2025, doi: 10.1186/s40537-025-01313-4.
T. Fawcett, “An introduction to ROC analysis,” Pattern Recognit. Lett., vol. 27, no. 8, pp. 861–874, Jun. 2006, doi: 10.1016/j.patrec.2005.10.010.
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, Jan. 2020, doi: 10.1038/s42256-019-0138-9.
Copyright (c) 2027 Mayadi, Prio Kustanto, Dismita Citra Dewi, Lenita Waty, Hendarman Lubis

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.




