An Experimental Study on E-commerce Customer Churn Prediction Based on the Explainable XGBoost Algorithm
DOI:
https://doi.org/10.54097/44rwqq62Keywords:
Customer Churn Prediction, RFM Segmentation, XGBoost, SHAP Explainability, E-commerce OptimizationAbstract
The e-commerce industry has entered a phase of deepening market penetration, with high customer churn rates becoming a key issue constraining business development. Addressing the shortcomings of traditional churn prediction models—such as insufficient accuracy, poor interpretability, and failure to account for the heterogeneity of customer group needs—this paper proposes a framework for e-commerce customer churn prediction that integrates RFM value segmentation, the XGBoost algorithm, and SHAP interpretability analysis. Using a publicly available e-commerce dataset as the experimental sample, the RFM model was employed to segment customers into four value groups. Differentiated prediction models were constructed for each group, and SHAP was utilised to perform three-level interpretability analysis: global, group-level and local. Experimental results indicate significant heterogeneity in the churn drivers across the high-value, medium-value, potential-value and low-value customer sub-models. This study effectively addresses the ‘black box’ problem of models, offering enhanced interpretability and greater operational value, thereby providing support for e-commerce enterprises in making refined customer retention and operational decisions.
Downloads
References
[1] Chen, T., & Guestrin, C. (2016). XGBoost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (pp. 785–794). San Francisco, CA. https://doi.org/ 10. 1145/2939672.2939785.
[2] Asif, M., Khan, Z., & Ali, S. (2021). Telecom customer churn prediction using XGBoost and SHAP values. Journal of King Saud University – Computer and Information Sciences, 33, 768–778. https://doi.org/10.1016/j.jksuci.2020.09.014.
[3] Ansari, A., & Schelle, H. (2019). Customer segmentation and churn prediction using RFM and K-means. Journal of Retailing and Consumer Services, 49, 345–353. https://doi.org/ 10. 1016/ j.jretconser.2019.03.014.
[4] Wang, Y., & Li, J. (2020). A study on e-commerce customer churn prediction based on ensemble learning. Computer Engineering and Applications, 56, 221–227.
[5] Zuo, M., & Zhang, Y. (2022). E-commerce customer churn prediction using XGBoost optimised by the whale optimisation algorithm. Computer Engineering and Applications, 58, 230–238.
[6] Zhang, Y. X. (2021). An intelligent customer churn prediction method integrating RFM and XGBoost. Journal of Computer Applications, 38, 789–793.
[7] Hughes, A. M. (1994). Strategic database marketing. McGraw-Hill.
[8] Lundberg, S. M., & Lee, S. I. (2017). A unified approach to interpreting model predictions. In Advances in Neural Information Processing Systems 30 (pp. 4765–4774). Long Beach, CA. https://doi.org/10.5555/3295222.3295309.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Frontiers in Computing and Intelligent Systems

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

