Customer Segmentation and Retention Analysis Using RFM and K-Means Clustering: Evidence from Online Retail Data
Retaining existing customers is usually cheaper than acquiring new ones, yet many small online retailers do notknow which customers are drifting away. This study segments the customers of a UK-based online retailer usingRecency, Frequency and Monetary (RFM) measures and K-means clustering, and tracks their retention throughmonthly cohort analysis. The data are the public UCI Online Retail II dataset: 1,067,371 transaction linesrecorded between 1 December 2009 and 9 December 2011. After cleaning, 776,579 lines remained, covering36,594 invoices, 5,852 customers in 41 countries and £17.07 million in revenue. Four segments were selected(silhouette = 0.365): Champions, Promising, At-risk and Lost. Champions made up 19.0% of customers butproduced 71.6% of revenue. The At-risk segment, 25.1% of customers who had not bought for 208 days onaverage, held a further 18.5% of revenue. Only about one in five new customers bought again in the month aftertheir first purchase (average 21.0%), and retention stayed between 15% and 22% in most later months. Theresults show that a simple, low-cost analysis of transaction data can identify high-value and at-risk customers andtarget retention spending. The method needs only data that most small businesses already record. Keywords: customer segmentation; RFM analysis; K-means clustering; customer retention; cohort analysis;online retail; customer relationship management
Authors
- Nuradin Abdi (ORCID: https://orcid.org/0009-0005-7548-8383)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-28
- DOI
- https://doi.org/10.5281/zenodo.24635488
- Primary Topic
- Customer churn and segmentation
- Type
- article
- Field-Weighted Citation Impact
- 0.00