PREDIKSI RISIKO PENGEMBALIAN BARANG (RETUR) PADA PENJUALAN PAKAIAN ONLINE MENGGUNAKAN ALGORITMA RANDOM FOREST

Authors

  • Mohammad Faiz Universitas Pembangunan Panca Budi, Indonesia Author
  • Muhammad Trinanda Universitas Pembangunan Panca Budi, Indonesia Author
  • Hendra Budi Hartono Saragih Universitas Pembangunan Panca Budi, Indonesia Author
  • Muhammad Syahputra Novelan Universitas Pembangunan Panca Budi, Indonesia Author

DOI:

https://doi.org/10.54314/ryg6tw21

Keywords:

retur pakaian online, random forest, klasifikasi risiko, permutation imporance, analisis biaya

Abstract

Abstract: Product returns impose reverse-logistics cost, re-inspection effort, and margin loss on online apparel sales, so the ability to predict return risk before an order is shipped carries operational value. This study builds and evaluates a Random Forest classifier for return-risk prediction on 400 online apparel transactions from 1 May to 26 October 2026 containing 80 returns (20,0%). Eleven pre-purchase predictors—four categorical and seven numeric—are used with no post-purchase information so that the model can be applied at order time. Random Forest with 300 trees and class weighting is compared against logistic regression, Naive Bayes, a decision tree, Extra Trees, and a majority baseline through ten-times repeated stratified 5-fold cross-validation, a replicated 80:20 hold-out, a 500-replicate permutation test, 5,000-replicate bootstrap resampling, a threshold sweep, and cost-sensitive error analysis. Random Forest attains ROC-AUC 0,815 ± 0,011 and PR-AUC 0,522—about 2,6 times the base rate—with 82,5% accuracy. On held-out data the AUC reaches 0,854 (95% CI 0,735–0,947) and differs significantly from chance (p = 0,002). A threshold of 0.49 yields 0,750 precision and 56,2% recall, while cost analysis shows savings from 37,5% at a 1:1 cost ratio to 86,9% at 20:1. Description completeness, product price, delivery estimate, and material clarity are the most influential predictors under permutation importance. Random Forest is therefore viable as an early warning system for return risk at boutique scale, provided that subsequent evaluation uses real transaction data.

Keywords: online apparel returns; random forest; risk classification; permutation importance; cost analysis

 

Abstrak: Pengembalian barang (retur) menambah biaya logistik balik, pemeriksaan ulang, dan kehilangan margin pada penjualan pakaian daring, sehingga kemampuan memprediksi risiko retur sebelum pesanan dikirim memiliki nilai operasional. Penelitian ini membangun dan mengevaluasi model klasifikasi Random Forest untuk memprediksi risiko retur pada 400 transaksi pakaian online periode 1 Mei–26 Oktober 2026 yang memuat 80 retur (20,0%). Sebelas prediktor pra-pembelian—empat kategorikal dan tujuh numerik—dipakai tanpa informasi pascapembelian agar model dapat diterapkan pada saat pemesanan. Random Forest dengan 300 pohon dan pembobotan kelas dibandingkan dengan Regresi Logistik, Naive Bayes, Decision Tree, Extra Trees, dan baseline mayoritas melalui validasi silang stratifikasi 5-lipat yang diulang 10 kali, replikasi split 80:20, uji permutasi 500 ulangan, bootstrap 5.000 ulangan, penelusuran ambang, dan analisis biaya kesalahan. Random Forest menghasilkan ROC-AUC 0,815 ± 0,011 dan PR-AUC 0,522—setara 2,6 kali lipat prevalensi—dengan akurasi 82,5%. Pada data uji AUC mencapai 0,854 (selang kepercayaan 95% 0,735–0,947) dan berbeda nyata dari peluang (p = 0,002). Ambang 0,49 memberi presisi 0,750 dan recall 56,2%; analisis biaya menunjukkan penghematan 37,5% pada rasio biaya 1:1 hingga 86,9% pada rasio 20:1. Kelengkapan deskripsi, harga produk, estimasi pengiriman, dan kejelasan informasi bahan merupakan prediktor paling berpengaruh menurut permutation importance. Hasil ini menunjukkan bahwa Random Forest layak dipakai sebagai sistem peringatan dini risiko retur pada skala butik, dengan catatan bahwa evaluasi selanjutnya perlu dilakukan pada data transaksi riil.

Kata kunci: retur pakaian online; random forest; klasifikasi risiko; permutation importance; analisis biaya

Downloads

Download data is not yet available.

References

Anggraini, J. P., Zhafirah A, C. G., & Desiani, A. (2025). Perbandingan algoritma Random Forest dan Extreme Gradient Boosting (XGBoost) dalam klasifikasi penyakit gagal jantung. Komputika: Jurnal Sistem Komputer, 14(2), 149–157. https://doi.org/10.34010/komputika.v14i2.16618

Arian, H., Norouzi Mobarekeh, D., & Seco, L. (2024). Backtest overfitting in the machine learning era: A comparison of out-of-sample testing methods in a synthetic controlled environment. Knowledge-Based Systems, 305, 112477. https://doi.org/10.1016/j.knosys.2024.112477

Biswas, S., Grundlingh, N., Boardman, J., White, J., & Le, L. (2025). A target permutation test for statistical significance of feature importance in differentiable models. Electronics, 14(3), 571. https://doi.org/10.3390/electronics14030571

Cha, J., Jang, J., Shin, D., & Shin, D. (2026). Cost-sensitive threshold optimization for network intrusion detection: A per-class approach with XGBoost. Electronics, 15(7), 1542. https://doi.org/10.3390/electronics15071542

Chen, X., Haron, M., & Sultan, M. S. (2026). Returns foresight: Explainable machine-learning models to predict and reduce product return propensity in omnichannel apparel retail. Journal of Retailing and Consumer Services, 92, 104828. https://doi.org/10.1016/j.jretconser.2026.104828

Geisler, T., Ray, H., & Xie, Y. (2023). Finding the proverbial needle: Improving minority class identification under extreme class imbalance. Journal of Classification, 40(1), 192–212. https://doi.org/10.1007/s00357-023-09431-5

Imani, M., Joudaki, M., Bagheri, A., & Arabnia, H. R. (2026). Why ROC-AUC is misleading for highly imbalanced data: In-depth evaluation of MCC, F2-score, H-measure, and AUC-based metrics across diverse classifiers. Technologies, 14(1), 54. https://doi.org/10.3390/technologies14010054

Linh, D. T., & Park, M. J. (2025). Influence of host's selling strategy on customers' product return intention in livestreaming online commerce. Journal of Internet Commerce, 24(1–2), 56–88. https://doi.org/10.1080/15332861.2025.2489561

Lo, H.-C., Chang, W.-J., & Chen, I.-H. (2026). From purchase to return: How personalized e-commerce recommendations shape consumer behavior. Journal of Retailing and Consumer Services, 88, 104459. https://doi.org/10.1016/j.jretconser.2025.104459

Merlano, E. F., Frei, R., Zhang, D., Murzacheva, E., & Wood, S. (2024). Consumer perspectives on interventions to combat fraudulent product returns in omnichannel fashion retail. International Journal of Physical Distribution & Logistics Management, 54(10), 969–1001. https://doi.org/10.1108/IJPDLM-02-2024-0082

Mishra, A., & Dutta, P. (2024). Return management in e-commerce firms: A machine learning approach to predict product returns and examine variables influencing returns. Journal of Cleaner Production, 477, 143802. https://doi.org/10.1016/j.jclepro.2024

Nugroho, A., & Wang, W.-T. (2023). Credibility of YouTube product reviews and customers' product return intention: A product fit uncertainty perspective. Information Technology & People, 37(4), 1560–1586. https://doi.org/10.1108/ITP-11-2021-0838

Stevenson, A. B., & Rieck, J. (2024). Investigating returns management across e-commerce sectors and countries: Trends, perspectives, and future research. Logistics, 8(3), 82. https://doi.org/10.3390/logistics8030082

Wang, Y., & Zakaria, N. (2024). Influence of size and fit on Malaysian apparel industry sustainability: A scoping review. Sustainability, 16(6), 2486. https://doi.org/10.3390/su16062486

Zhang, W., Xie, R., Quan, P., & Ma, Z. (2025). Product return prediction in live streaming e-commerce with cross-modal contrastive transformer. Decision Support Systems, 194, 114470. https://doi.org/10.1016/j.dss.2025.114470

Downloads

Published

2026-10-31

How to Cite

PREDIKSI RISIKO PENGEMBALIAN BARANG (RETUR) PADA PENJUALAN PAKAIAN ONLINE MENGGUNAKAN ALGORITMA RANDOM FOREST. (2026). JOURNAL OF SCIENCE AND SOCIAL RESEARCH, 9(5), 9355 – 9367. https://doi.org/10.54314/ryg6tw21