Optimasi Algoritma XGBoost Berbasis SMOTE untuk Mengidentifikasi Faktor Logistik Pemicu Pembatalan Pesanan E-Commerce

Authors

  • Arif Fitra Setyawan Politeknik Negeri Semarang
  • Thomas Tri Wibowo Politeknik Negeri Semarang
  • Intan Laily Muflikhah Politeknik Negeri Semarang
  • Muhammad Bhayu Bramantyo Politeknik Negeri Semarang

DOI:

https://doi.org/10.51903/elkom.v19i1.3913

Keywords:

Data Leakage; E-Commerce; Order Cancellation; SMOTE; XGBoost

Abstract

Unilateral order cancellation by consumers is a major operational challenge in the Indonesian e-commerce industry, directly impacting supply chain inefficiency and inflating logistics costs. Computational modeling to predict this risk often faces hurdles such as class imbalance and vulnerability to data leakage. This study proposes an optimization of the Extreme Gradient Boosting (XGBoost) algorithm integrated with the Synthetic Minority Over-sampling Technique (SMOTE) using a multi-scenario feature analysis approach. The dataset used comprises real transaction records from a major e-commerce platform. Experiments were designed in two scenarios: Scenario 1 included all transactional features, while Scenario 2 excluded the dominant financial feature (Total Pembayaran) to test the model's pure dependency on pre-finalization variables. The test results showed that Scenario 1 yielded a pseudo-accuracy of 99.50% due to data leakage. After reconstruction in Scenario 2, the SMOTE-based XGBoost model produced a stable real performance with an Accuracy Score of 83.96% and an Area Under ROC (AUC) of 86,98%. Through Feature Importance analysis, this study successfully revealed that pure logistics factors, specifically "Ongkos Kirim Dibayar oleh Pembeli" (Shipping Fee Paid by Buyer) with an absolute importance weight of 77.10%, serve as the primary predictor and driver behind consumer order cancellations. These findings provide tactical contributions for e-commerce decision-makers in formulating shipping cost strategies and mitigating early operational risks.

References

[1] S. Achmad Fauzihan Bagus, R. Basuki, and J. Achmad, “KLASIFIKASI INDEKS STANDAR PENCEMARAN UDARAN (ISPU) MENGGUNAKAN ALGORITMA XGBOOST DENGAN TEKNIK IMBALANCED DATA (SMOTE),” JITET (Jurnal Informatika dan Teknik Elektro Terapan), pp. 2190–2200, 2024.

[2] S. Arif Fitra and N. Rozaq Isnaini, “OPTIMIZING GPT AND INDOBERT FOR SENTIMENT ANALYSIS AND CONSUMER TREND PREDICTION ON LAZADA PRODUCT REVIEWS,” JIKO (Jurnal Informatika dan Komputer), pp. 113–120, 2025.

[3] S. Bayu Nur, M. Nadia Annisa, and T. Teguh, “Analisis Sentimen Ulasan Pengguna Aplikasi Threads di Google Play Menggunakan Algoritma XGBoost Dengan Penguatan SMOTE,” Jurnal Informatika dan Tekonologi Komputer, pp. 120–130, 2025.

[4] S. Fastabyq Ad’ha Putra and K. Defri, “Application of ADASYN and Optuna in the XGBoost Algorithm for Stunting Detection,” Journal of Applied Informatics and Computing (JAIC), vol. 10, pp. 1006–1014, 2026.

[5] S. Fitri Permata and B. Rini, “Implementasi Extreme Gradient Boosting (XGBoost) untuk Klasifikasi Penggunaan Ulang Asisten AI,” Jurnal Pustaka Data, vol. 5, pp. 303–310, 2025.

[6] A. Ginanjar, O. Hardian, and S. Mukti, “Optimasi Algoritma XGBoost Classifier Menggunakan Hyperparameter Gridesearch dan Random Search Pada Klasifikasi Penyakit Diabetes,” Informatics Journal (INFORMAL), vol. 7, pp. 193–198, 2022.

[7] I. Mehdi, B. Ali, and R. A. Hamid, “Comprehensive Analysis of Random Forest and XGBoost Performance with SMOTE, ADASYN, and GNUS Under Varying Imbalance Levels,” Technologies, pp. 1–40, 2025.

[8] Z. Ping and Y. Jia and Youlin S., “Research and application of XGBoost in imbalanced data,” International Journal of Distributed Sensor Networks, vol. 18, pp. 1–10, 2022.

[9] Yuliana, Robet, and H. Leony, “Comparative Analysis of XGBoost, KNN, and SVM Algorithms for Heart Disease Prediction Using SMOTE-Tomek Balancing,” Sinkron: Jurnal dan Penelitian Teknik Informatika, pp. 305–316, 2026.

Downloads

Published

2026-07-13

How to Cite

[1]
“Optimasi Algoritma XGBoost Berbasis SMOTE untuk Mengidentifikasi Faktor Logistik Pemicu Pembatalan Pesanan E-Commerce”, ELKOM , vol. 19, no. 1, pp. 191–199, Jul. 2026, doi: 10.51903/elkom.v19i1.3913.