Skip to content

Churn Prediction Using Machine Learning based on E-commerce Data

In Jik Lee Primary Contact
Abstract

The main objective of this study is to accurately predict customer churn in order to improve customer retention strategies and enhance long-term profitability for businesses.

The analysis was conducted by combining the RFM (Recency, Frequency, Monetary) model with various machine learning techniques, based on purchase data from 3,900 customers of an online retail store. The results showed that the Random Forest model demonstrated the best predictive performance with a recall rate of 91.11%. Purchase amount, age, customer location, review ratings, and purchased items were identified as key variables for predicting customer churn. Notably, purchase amount emerged as the most important predictive variable, suggesting a close relationship between customer spending levels and the likelihood of churn. To address the issue of data imbalance, undersampling and oversampling (SMOTE) techniques were applied to improve model performance, thereby increasing the prediction accuracy for the minority class of churning customers.

Customers were segmented into loyal customers (38.5%), medium-value customers (35.7%), and high-risk churn customers (25.8%) based on their RFM scores. This segmentation can help in providing special promotions or personalized services to high-risk customer groups to reduce churn rates.

Comparing various machine learning models, Random Forest outperformed in all metrics including accuracy, precision, recall, and F1 score, indicating its ability to capture complex customer behavior patterns effectively. Moreover, ROC curve analysis showed an AUC value of 0.99, confirming the model’s high accuracy in distinguishing between churning and non-churning customers.

These research findings can be valuable for online retailers in predicting customer churn and developing effective customer retention strategies. Particularly, the high-recall model allows for early identification of customers with high churn probability, enabling the development of tailored marketing strategies. This can lead to improved customer retention rates and ultimately contribute to increased business profitability.

Future research should focus on applying a wider range of variables and cutting-edge algorithms to improve model accuracy, as well as analyzing real-world business case studies to validate the model’s effectiveness. Through these efforts, it is expected that the data-driven decision-making capabilities in the online retail industry can be further enhanced, contributing to the development of customer-centric business strategies.

References
  1. 길기영, 서영욱 (2023). “온라인 쇼핑몰의 학습, 온라인 리뷰, 소비자 커뮤니케이션이 지각된 혜택을 통해 고객 e-충성도에 미치는 영향,” 한국산학협력학회지, 24(9), 547-561.
  2. 김관희 (2023). 머신러닝을 활용한 이커머스 환경의 고객 행동 기반 분류 연구. 석사학위논문, 중앙대학교.
  3. 김민경, 허재석, 사애진, 전아름, 이한별 (2022). “클러스터링 기법을 활용한 이커머스 사용자 리뷰에 따른 시장세분화 연구,” 전자상거래학회지, 27(2), 21-36.
  4. 박미령 (2023). “온라인 쇼핑몰에서 패션제품의 반품 요인이 성별에 따라 반품 행동과 재구매 의도에 미치는 영향“, 한국산학기술학회논문지, 24(11), 617-625.
  5. 양치복, Yangsok Kim, 이충권 (2017). “온라인쇼핑몰 구매데이터를 활용한 시계열 분석에 관한 연구,” 한국정보기술학회 추계 종합학술대회 논문집, 81-90
  6. 유희정, 도지현, 김능회 (2023). “평점에 따른 온라인 리뷰의 유용성 연구,” 한국정보기술학회 추계 종합학술대회 논문집, 978-980
  7. 최경빈, 남기환 (2019). “쇼핑 웹사이트 탐색 유형과 방문 패턴 분석,” J Intell Inform Syst, 25(1), 85-107.
  8. Alshamsi, A. (2022). Customer churn prediction in ECommerce sector. Master’s thesis, RochesterInstitute of Technology.
  9. Bagul, N., Berad, P., Surana, P., & Khachane, C. (2021). Retail customer churn analysis using RFM model and k-means clustering. International Journal of Engineering Research & Technology (IJERT), 10(03), 349–354.
  10. Bergström, S. (2019). Customer segmentation of retail chain customers using cluster analysis. Master’s thesis, Stockholm University.
  11. Ho, T., Nguyen, S., Nguyen, H., Nguyen, N., Man, D.-S., & Le, T.-G. (2023). An extended RFM model for customer behaviour and demographic analysis in retail industry. Business Systems Research, 14(1), 26–53.
  12. Mitrovic, S., Singh, G., Baesens, B., Lemahieu, W., & De Weerdt, J. (2017). Scalable RFM-enriched representation learning for churn prediction. 2017 International Conference on Data Science and Advanced Analytics, 79–88.
  13. Roy, K. K., Jaiswal, P. K., & Sinha, A. (2018). Data analytics for consumer purchasing pattern with behavioral segmentation. 3rd International Conference on Internet of Things and Connected Technologies (ICIoTCT).
  14. Xu, T., Ma, Y., Ao, C., Qu, M., & Meng, X. (2023). A novel telecom customer churn analysis system based on RFM model and feature importance ranking. Interdisciplinary Journal of Information, Knowledge, and Management, 18, 719–737.
  15. Zuo, Y., Ali, A. B. M. S., & Yada, K. (2014). Consumer purchasing behavior extraction using statistical learning theory. Procedia Computer Science, 35, 1464–1473.
Keywords
Customer Churn Prediction Machine Learning E-commerce Online Shopping RFM Model Random Forest Data Imbalance Exploratory Data Analysis Customer Segmentation
Details

Authors
In Jik Lee Primary Contact
LG전자 온라인 브랜드샵 팀(Online Brand Shop Team)
How to Cite
Churn Prediction Using Machine Learning based on E-commerce Data. (2025). ASSIST Business Review, 1(1). https://jnl.ampla.page/abr/article/view/25