E-Commerce Customer Churn Prediction and Key Determinant Investigation Based on Machine Learning Algorithms

Authors

  • Mingyue Zheng

DOI:

https://doi.org/10.61173/caqwqt36

Keywords:

Customer churn prediction, XGBoost, E-commerce, Class imbalance, Feature importance

Abstract

In response to the challenges of high dimensionality, class imbalance, and a large number of missing values in e-commerce customer data, this paper aims to construct a high-precision and interpretable customer churn prediction model to enhance the customer retention capabilities of e-commerce enterprises. This study is based on the XGBoost algorithm, using median imputation to handle missing values, applying oversampling techniques to alleviate class imbalance, and combining multi-dimensional feature selection to enhance model interpretability. By comparing the performance of three models - logistic regression, decision tree and XGBoost - it was found that XGBoost significantly outperformed the other models even without tuning. Further, after hyperparameter optimization, the model achieved an accuracy of 98.49% and an Area Under Curve (AUC) value of 0.99 on the test set, demonstrating excellent generalization ability. Feature importance analysis indicated that “customer tenure” and “whether to complain” were the core factors influencing churn. This study provides a robust and interpretable solution for e-commerce customer churn warning, with strong practical application value.

References

[1] Liu YT. Customer churn prediction in e-commerce based on machine learning (in Chinese). Southwest University; 2023.

[2] Zheng K, Liang Z. The impact of CNN MHAM-enhanced WRF and BPNN models for user behavior prediction. Sci Rep. 2025;15(1):29999-29999.

[3] Phumchusri N, Amornvetchayakul P. Machine learning models for predicting customer churn: a case study in a software-as-a-service inventory management company. Int J Bus Dean&Francis Mingyue Zheng Intell Data Min. 2024;24(1):74-106.

[4] Boozary P, et al. Enhancing customer retention with machine learning: A comparative analysis of ensemble models for accurate churn prediction. Int J Inf Manag Data Insights. 2025;5(1):100331-100331.

[5] Shaik S, et al. Experimental data analysis to recognize and visualise the factors contributing to bank customer churn prediction using ensemble learning models. Asian J Res Comput Sci. 2025;18(5):480-495.

[6] Pflughoeft KA, Butz NT, Corbley A. Customer churn prediction for fixed wireless access: The case of a regional internet service provider. Telecommun Policy. 2025;49(4):102929-102929.

[7] Xiao Q. Research on customer churn prediction based on machine learning (in Chinese). Chongqing University of Technology; 2022.

[8] Kaggle. Ecommerce customer churn analysis and prediction dataset [Internet]. Available from: https://www.kaggle.com/ datasets/ankitverma2010/ecommerce-customer-churn-analysisand-prediction/data

[9] Ashbaugh L, Zhang Y. A comparative study of sentiment analysis on customer reviews using machine learning and deep learning. Computers. 2024;13(12):340-340.

[10] Liu C, et al. Do individual differences in self-regulated learning predict digital health intervention engagement? A decision tree analysis approach. J Technol Behav Sci. 2025;Epub ahead of print:1-10.

Downloads

Published

2025-12-19