Predicting Customer Churn in E-Commerce Using Machine Learning: A Comprehensive Approach
DOI:
https://doi.org/10.47738/ijiis.v9i2.300Keywords:
Customer Churn Prediction, E-Commerce Analytics, Machine Learning, XGBoost, Customer RetentionAbstract
Customer churn prediction is a critical challenge in e-commerce, as retaining existing customers is often more cost-effective than acquiring new ones. This study evaluates the effectiveness of three machine learning algorithms Logistic Regression (LR), Random Forest (RF), and Extreme Gradient Boosting (XGBoost) for predicting customer churn using a structured e-commerce dataset that integrates demographic, behavioral, engagement, and transactional features. A systematic preprocessing pipeline was implemented, including missing value imputation, categorical encoding, and feature scaling where appropriate. Model performance was assessed using Accuracy, Precision, Recall, F1-Score, and Confusion Matrix analysis. The results reveal a clear performance gap between linear and ensemble-based approaches. Logistic Regression achieved 77% accuracy but demonstrated limited recall for churned customers, indicating reduced sensitivity in identifying at-risk users. In contrast, Random Forest and XGBoost both achieved 92% accuracy and substantially improved recall and F1-Score for the churn class. Among the evaluated models, XGBoost showed the strongest overall performance, achieving the highest recall and lowest false negatives, making it particularly suitable for retention-focused applications. The findings confirm that ensemble and boosting-based models are more effective in capturing nonlinear interactions among multidimensional churn determinants in e-commerce environments. This study contributes empirical evidence supporting the adoption of advanced machine learning approaches for customer retention optimization and provides practical guidance for integrating churn prediction models into e-commerce platforms.References
J. M. Branch, “Union Exemption: Nonprofit Work and the Boundaries of the Commercial Economy, 1951–1976,” Mod. Am. Hist., vol. 8, no. 1, pp. 73–93, 2025, doi: 10.1017/mah.2024.42.
S. Roosta, S. J. Sadjadi, and A. Makui, “Predicting Customer Loyalty in Omnichannel Retailing Using Purchase Behavior, Socio-Cultural Factors, And Learning Techniques,” PLoS One, vol. 20, no. 8, pp. e0330338, 2025, doi: 10.1371/journal.pone.0330338.
P. Chugh and V. Jain, “Artificial Intelligence (AI) Empowerment in E-Commerce: A Bibliometric Voyage,” NMIMS Manag. Rev., vol. 32, no. 3, pp. 159–173, 2024, doi: 10.1177/09711023241303621.
C. Singh, M. K. Dash, R. Sahu, and A. Kumar, “Artificial Intelligence in Customer Retention: A Bibliometric Analysis and Future Research Framework,” Kybernetes, vol. 53, no. 11, pp. 4863–4888, 2024, doi: 10.1108/K-02-2023-0245.
N.-T. Lee, H.-C. Lee, J. Hsin, and S. Fang, “Prediction of Customer Behavior Changing via a Hybrid Approach,” IEEE Open J. Comput. Soc., vol. 5, no. 1, pp. 27–38, 2024, doi: 10.1109/OJCS.2023.3336904.
K. V Ramana, M. Nalini, D. C. Devi, B. Maheswari, and S. Subramanian, “Customer churn prediction model in enterprises using machine learning,” Int. J. Adv. Technol. Eng. Explor., vol. 11, no. 110, pp. 94–107, 2024, doi: 10.19101/IJATEE.2023.10101581.
N. Ahmad, M. J. Awan, H. Nobanee, A. M. Zain, A. Naseem, and A. Mahmoud, “Customer Personality Analysis for Churn Prediction Using Hybrid Ensemble Models and Class Balancing Techniques,” IEEE Access, vol. 12, no. 1, pp. 1865–1879, 2024, doi: 10.1109/ACCESS.2023.3334641.
I. AlShourbaji, N. Helian, Y. Sun, A. G. Hussien, L. Abualigah, and B. Elnaim, “An efficient Churn Prediction Model Using Gradient Boosting Machine and Metaheuristic Optimization,” Sci. Rep., vol. 13, no. 1, pp. 14441, 2023, doi: 10.1038/s41598-023-41093-6.
L. Li, “Research on Improved Xgboost Algorithm for Big Data Analysis of e-Commerce Customer Churn,” Int. J. Adv. Comput. Sci. Appl., vol. 13, no. 12, pp. 1086–1094, 2022, doi: 10.14569/IJACSA.2022.01312124.
M. A. Al Rahib, N. Saha, R. Mia, and A. Sattar, “Customer Data Prediction and Analysis in E-Commerce Using Machine Learning,” Bull. Electr. Eng. Informatics, vol. 13, no. 4, pp. 2624–2633, 2024, doi: 10.11591/eei.v13i4.6420.
E. M. Elgohary, M. Galal, A. Mosa, and G. A. Elshabrawy, “Smart Evaluation for Deep Learning Model: Churn Prediction as a Product Case Study,” Bull. Electr. Eng. Informatics, vol. 12, no. 2, pp. 1219–1225, 2023, doi: 10.11591/eei.v12i2.4180.
K. Dhanushkodi, A. Bala, N. Kodipyaka, and V. Shreyas, “Customer Behavior Analysis and Predictive Modeling in Supermarket Retail: A Comprehensive Data Mining Approach,” IEEE Access, vol. 13, no. 1, pp. 2945–2957, 2025, doi: 10.1109/ACCESS.2024.3407151.
F. Le and J. Zhai, “Research on Cross-Border E-Commerce Customer Churn Prediction Based on Enhanced Xgboost Algorithm with Temporal-Spatial Features,” J. Comput. Methods Sci. Eng., vol. 25, no. 5, pp. 4407–4418, 2025, doi: 10.1177/14727978251337888.
Y. Sun, H. Liu, and Y. Gao, “Research on Customer Lifetime Value Based On Machine Learning Algorithms And Customer Relationship Management Analysis Model,” Heliyon, vol. 9, no. 2, pp. e13384, 2023, doi: 10.1016/j.heliyon.2023.e13384.
Q. Zhao, Z. Zhao, L. Yang, L. Hong, and W. Han, “Research on Customer Retention Prediction Model of VOD Platform Based on Machine Learning,” Int. J. Adv. Comput. Sci. Appl., vol. 14, no. 4, pp. 236–244, 2023, doi: 10.14569/IJACSA.2023.0140427.
W. Rachbini, “The Impact of Price Transparency, Safe Transactions, and Delivery Performance on E-commerce Performance in Indonesian Online Supermarkets,” Eur. J. Manag. Issues, vol. 31, no. 3, pp. 132–141, 2023, doi: 10.15421/192311.
S. Amsl, I. Watson, C. Teller, and S. Wood, “Presenting products on websites – the importance of information quality criteria for online shoppers,” Int. J. Retail Distrib. Manag., vol. 51, no. 9/10, pp. 1213–1238, 2023, doi: 10.1108/IJRDM-04-2023-0266.
P. S. P. Kumar and C. K. Ramu, “Two-Dimensional Customer Segmentation for Digital Custom Coupon Issuance Approach,” Int. J. Multidiscip. Res. Sci. Eng. Technol., vol. 7, no. 05, pp. 10042–10052, 2024, doi: 10.15680/IJMRSET.2024.0705076.
L. Geiler, S. Affeldt, and M. Nadif, “A Survey on Machine Learning Methods for Churn Prediction,” Int. J. Data Sci. Anal., vol. 14, no. 3, pp. 217–242, 2022, doi: 10.1007/s41060-022-00312-5.
U. Gani Joy, K. E. Hoque, M. Nazim Uddin, L. Chowdhury, and S.-B. Park, “A Big Data-Driven Hybrid Model for Enhancing Streaming Service Customer Retention Through Churn Prediction Integrated with Explainable AI,” IEEE Access, vol. 12, no. 1, pp. 69130–69150, 2024, doi: 10.1109/ACCESS.2024.3401247.
K. Şahinbaş, “Predicting Order Cancellations for E-Commerce Domain: A Proposed Model Based on Retailing Experience,” İnsan Ve Toplum Bilim. Araştırmaları Derg., vol. 11, no. 3, pp. 1493–1514, 2022, doi: 10.15869/itobiad.1127578.
B. Durkaya Kurtcan and T. Ozcan, “Predicting Customer Churn Using Grey Wolf Optimization‐Based Support Vector Machine with Principal Component Analysis,” J. Forecast., vol. 42, no. 6, pp. 1329–1340, 2023, doi: 10.1002/for.2960.
J.-X. Ong, G.-K. Tong, K. Khor, and S.-C. Haw, “Enhancing Customer Churn Prediction with Resampling: A Comparative Study,” TEM J., vol. 13, no. 3, pp. 1927–1936, 2024, doi: 10.18421/TEM133-20.
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, 1030, 2021, doi: 10.14716/ijtech.v12i5.5223.
R. E. Bawack, S. F. Wamba, K. D. A. Carillo, and S. Akter, “Artificial intelligence in E-Commerce: A Bibliometric Study and Literature Review,” Electron. Mark., vol. 32, no. 1, pp. 297–338, 2022, doi: 10.1007/s12525-022-00537-z.
Downloads
Published
Issue
Section
License
Authors who publish with IJIIS : International Journal on Informatics and Information Systems agree to the following terms: Authors retain copyright and grant the IJIIS : International Journal on Informatics and Information Systems right of first publication with the work simultaneously licensed under a Creative Commons Attribution License (CC BY-SA 4.0) that allows others to share (copy and redistribute the material in any medium or format) and adapt (remix, transform, and build upon the material) the work for any purpose, even commercially with an acknowledgement of the work's authorship and initial publication in IJIIS : International Journal on Informatics and Information Systems. Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in IJIIS : International Journal on Informatics and Information Systems. Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).

