SEGMENTASI PELANGGAN MENGGUNAKAN METODE RFM DAN K-MEANS CLUSTERING UNTUK MENDUKUNG STRATEGI PEMASARAN PADA ONLINE RETAIL
DOI:
https://doi.org/10.69714/rswm7s33Keywords:
Data Mining, Customer Segmentation, RFM, K-Means Clustering, Customer Intelligence, Online RetailAbstract
The rapid growth of e-commerce has generated massive customer transaction data that can support business decision-making. However, many companies have yet to fully leverage this data for understanding customer behavior and developing targeted strategies. This study aims to perform customer segmentation on the Online Retail II dataset using the Recency, Frequency, Monetary (RFM) approach combined with the K-Means Clustering algorithm in order to generate customer profiles that can serve as the basis for business strategy development.
The dataset used in this study consists of 1,067,371 customer transaction records with eight main attributes. The preprocessing stage included the removal of missing values in Customer ID, duplicate records, invalid transactions, and return transactions. Subsequently, RFM values were calculated for 5,878 unique customers. To improve data quality, outlier removal was performed using the Interquartile Range (IQR) method, resulting in 5,182 customers being retained for the clustering process. Prior to modeling, the data were normalized using the Min-Max Scaling technique. The optimal number of clusters was determined using the Elbow Method and Silhouette Score, which indicated that k = 3 was the best configuration with a Silhouette Score of 0.4780.
The clustering results identified three customer segments with distinct characteristics. Cluster 0 had an average Recency of 91.53 days, Frequency of 2.88 transactions, and Monetary value of 776.59, representing potential customers. Cluster 1 exhibited the highest Recency value of 479.40 days along with the lowest Frequency and Monetary values, indicating at-risk customers. Cluster 2 showed the lowest Recency value of 69.31 days and the highest Frequency and Monetary values of 8.80 transactions and 2,943.38 respectively, representing loyal and high-value customers (Champions). Based on the characteristics of each segment, different marketing strategies can be implemented, including loyalty programs, upselling strategies, and customer reactivation campaigns.
The findings demonstrate that the combination of the RFM method and K-Means Clustering is effective in generating customer segmentation and supporting data-driven customer intelligence to improve marketing strategy effectiveness in the retail industry.
References
[1] S.-C. Necula, "Exploring the Impact of Time Spent Reading Product Information on E-Commerce Websites: A Machine Learning Approach to Analyze Consumer Behavior," Behavioral Sciences, vol. 13, no. 6, p. 439, 2023, doi: 10.3390/bs13060439.
[2] M. Sarkar, A. R. Puja, and F. R. Chowdhury, “Optimizing Marketing Strategies with RFM Method and K-Means Clustering-Based AI Customer Segmentation Analysis,” J. Bus. Manag. Stud., vol. 6, no. 2, pp. 54–60, 2024, doi: 10.32996/jbms.2024.6.2.5.
[3] H. J. Wilbert et al., “Recency, Frequency, Monetary Value, Clustering, and Internal and External Indices for Customer Segmentation from Retail Data,” Algorithms, vol. 16, no. 9, p. 396, 2023, doi: 10.3390/a16090396.
[4] F. Alzami et al., “Implementation of RFM Method and K-Means Algorithm for Customer Segmentation in E-Commerce with Streamlit,” ILKOM Jurnal Ilmiah, vol. 15, no. 1, pp. 32–44, 2023, doi:10.33096/ilkom.v15i1.1524.32-44.
[5] H. Abbasimehr and A. Bahrini, “An Analytical Framework Based on the Recency, Frequency, and Monetary Model and Time Series Clustering Techniques for Dynamic Segmentation,” Expert Syst. Appl., vol. 192, p. 116373, 2022, doi: 10.1016/j.eswa.2021.116373.
[6] M. S. E. Kasem, M. Hamada, and I. Taj-Eddin, “Customer Profiling, Segmentation, and Sales Prediction Using AI in Direct Marketing,” Neural Comput. Appl., vol. 36, no. 9, pp. 4995–5005, 2024, doi: 10.1007/s00521-023-09339-6.
[7] A. T. Widiyanto and A. Witanti, “Segmentasi Pelanggan Berdasarkan Analisis RFM Menggunakan Algoritma K-Means Sebagai Dasar Strategi Pemasaran (Studi Kasus PT Coversuper Indonesia Global),” Konstelasi Konvergensi Teknol. dan Sist. Inf., vol. 1, no. 1, pp. 204–215, 2021, doi: 10.24002/konstelasi.v1i1.4293.
[8] P. I. Pangestu, T. I. Hermanto, and D. Irmayanti, “Analisis Segmentasi Pelanggan Berbasis Model Recency Frequency Monetary (RFM) Menggunakan Algoritma K-Means,” J. Inform. dan Tek. Elektro Terap., vol. 11, no. 3, 2023, doi: 10.23960/jitet.v11i3s1.3396.
[9] J. M. John, O. Shobayo, and B. Ogunleye, “An Exploration of Clustering Algorithms for Customer Segmentation in the UK Retail Market,” Analytics, vol. 2, no. 4, pp. 809–823, 2024, doi: 10.3390/analytics2040042.
[10] P. Chapman, J. Clinton, R. Kerber, T. Khabaza, T. Reinartz, C. Shearer, and R. Wirth, CRISP-DM 1.0: Step-by-Step Data Mining Guide. Chicago, IL: SPSS Inc., 2000. [Online]. Available: https://public.dhe.ibm.com/software/analytics/spss/documentation/modeler/14.2/es/CRISP-DM.pdf. [Accessed: Jun. 16, 2026].
[11] S. A. Perdana, S. F. Florentin, and A. Santoso, “Analisis Segmentasi Pelanggan Menggunakan K-Means Clustering Studi Kasus Aplikasi Alfagift,” Sebatik, vol. 26, no. 2, pp. 446–457, 2022, doi: 10.46984/sebatik.v26i2.1991.
[12] J. Han, J. Pei, and M. Kamber, Data Mining: Concepts and Techniques, 4th ed., 2022.
[13] Kotler, P., & Armstrong, G. (2021). Principles of Marketing (18th Global Edition). Pearson.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Jurnal Riset Sistem Informasi

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









