Customer Segmentation Analysis Through RFM-D Model and K-Means Algorithm
Abstract
This research analyzes customer segmentation through the RFM-D (Recency, Frequency, Monetary, and Diversity) model and the K-Means algorithm. The data comes from sales transactions at Café Z from January 2023 to February 2024, with 10,212 entries. The applied methodology includes several stages: data pre-processing, cleaning, transformation, normalization, and clustering. Clustering validation was carried out using the Davies-Bouldin Index (DBI) to ensure the quality of the clusters formed. The analysis results identified three customer clusters based on purchasing behavior, indicating that the K-Means algorithm effectively groups customers. These findings provide insight for companies to design marketing strategies that are more focused and appropriate to the characteristics of each customer segment. Companies can improve operational efficiency, increase customer satisfaction, and maximize profitability by utilizing this segmentation. This research contributes to optimizing resource allocation and personalizing marketing approaches, ultimately strengthening customer relationships.
Downloads
References
M. Y. Smaili and H. Hachimi, “New RFM-D classification model for improving customer analysis and response prediction,” Ain Shams Eng. J., vol. 14, no. 12, p. 102254, 2023, doi: https://doi.org/10.1016/j.asej.2023.102254.
D. R. Ramadhan and N. Rokhman, “Segmentation-Based Sequential Rules For Product Promotion Recommendations As Sales Strategy (Case Study: Dayra Store),” IJCCS (Indonesian J. Comput. Cybern. Syst., vol. 14, no. 3, p. 243, 2020, doi: https://doi.org/10.22146/ijccs.58107.
A. Wibowo and A. R. Handoko, “Segmentasi Pelanggan Ritel Produk Farmasi Obat Menggunakan Metode Data Mining Klasterisasi Dengan Analisis Recency Frequency Monetary (RFM) Termodifikasi,” J. Teknol. Inf. dan Ilmu Komput., vol. 7, no. 3, p. 573, 2020, doi: https://doi.org/10.25126/jtiik.2020702925.
M. Zanker, L. Rook, and D. Jannach, “Measuring the impact of online personalisation: Past, present and future,” Int. J. Hum. Comput. Stud., vol. 131, no. January, pp. 160–168, 2019, doi: https://doi.org/10.1016/j.ijhcs.2019.06.006.
T. Aldyah, A. Sugiono, M. Muzakkar, and J. Heikal, “Rfm Segmentation Analysis For Determine Online Marketing Strategy:The Soul Coffee Mate Case Study,” Budg. J. Business, Manag. Account., vol. 5, no. 2, pp. 797–807, 2024.
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: https://doi.org/10.24002/konstelasi.v1i1.4293.
V. Dawane, P. Waghodekar, and J. Pagare, “RFM Analysis Using K-Means Clustering to Improve Revenue and Customer Retention,” SSRN Electron. J., no. Icsmdi, 2021, doi: https://doi.org/10.2139/ssrn.3852887.
Y. Wicaksono, “Segmentasi Pelanggan Bisnis Dengan Multi Kriteria Menggunakan K-Means,” Indones. J. Bus. Intell., vol. 1, no. 2, p. 45, 2019, doi: https://doi.org/10.21927/ijubi.v1i2.872.
M. A. Satriawan, R. Andreswari, and O. N. Pratiwi, “Segmentasi Pelanggan Telkomsel Menggunakan Metode Clustering Dengan Rfm Model Dan Algoritma K-Means Telkomsel Customer Segmentation Using Clustering Method With Rfm Model and K-Means Algorithm,” e-Proceeding Eng. , vol. 8, no. 2, pp. 2876–2883, 2021.
I. Kamila, U. Khairunnisa, and M. Mustakim, “Perbandingan Algoritma K-Means dan K-Medoids untuk Pengelompokan Data Transaksi Bongkar Muat di Provinsi Riau,” J. Ilm. Rekayasa dan Manaj. Sist. Inf., vol. 5, no. 1, p. 119, 2019, doi: https://doi.org/10.24014/rmsi.v5i1.7381.
R. Y. Firmansah, J. Dedy Irawan, and N. Vendyansyah, “Analisis Rfm (Recency, Frequency and Monetary) Produk Menggunakan Metode K-Means,” JATI (Jurnal Mhs. Tek. Inform., vol. 5, no. 1, pp. 334–341, 2021, doi: https://doi.org/10.36040/jati.v5i1.3282.
M. Fithriyah, M. A. Yaqin, and S. Zaman, “K-Means Clustering Untuk Segmentasi Produk Berdasarkan Analisis Recency, Frequency, Monetary (RFM) Pada Data Transaksi Penjualan,” Ilk. J. Comput. Sci. Appl. Informatics, vol. 3, no. 2, pp. 151–164, 2021, doi: https://doi.org/10.28926/ilkomnika.v3i2.284.
S. I. Murpratiwi, I. G. Agung Indrawan, and A. Aranta, “Analisis Pemilihan Cluster Optimal Dalam Segmentasi Pelanggan Toko Retail,” J. Pendidik. Teknol. dan Kejuru., vol. 18, no. 2, p. 152, 2021, doi: https://doi.org/10.23887/jptk-undiksha.v18i2.37426.
A. Z. Putri, M. Afdal, S. Monalisa, and I. Permana, “Penerapan Algoritma Fuzzy C-Means Pada Segmentasi Pelanggan B2B dengan Model LRFM,” J. Media Inform. Budidarma, vol. 7, no. 3, pp. 1423–1432, 2023, doi: https://doi.org/10.30865/mib.v7i3.6150.
R. W. Sembiring Brahmana, F. A. Mohammed, and K. Chairuang, “Customer Segmentation Based on RFM Model Using K-Means, K-Medoids, and DBSCAN Methods,” Lontar Komput. J. Ilm. Teknol. Inf., vol. 11, no. 1, p. 32, 2020, doi: https://doi.org/10.24843/lkjiti.2020.v11.i01.p04.
K. L. Tsui, V. Chen, W. Jiang, F. Yang, and C. Kan, “Data Mining Methods and Applications,” Springer Handbooks, pp. 797–816, 2023, doi: https://doi.org/10.1007/978-1-4471-7503-2_38.
A. Novikov, “PyClustering: Data Mining Library,” J. Open Source Softw., vol. 4, no. 36, p. 1230, 2019, doi: https://doi.org/10.21105/joss.01230.
Annisa Nadaa Shabrina, M. Afdal, and Siti Monalisa, “Comparison Of K-Means, K-Medoids, and Fuzzy C-Means Algorithms for Clustering Drug User’s Addiction Levels,” J. Sist. Cerdas, vol. 6, no. 2, pp. 113–122, 2023, doi: https://doi.org/10.37396/jsc.v6i2.313.
I. Ahmad, S. Samsugi, and Y. Irawan, “Implementasi Data Mining Sebagai Pengolahan Data,” J. Teknoinfo, vol. 16, no. 1, p. 46, 2022, [Online]. Available: http://portaldata.org/index.php/portaldata/article/view/107
P. Palupiningsih and B. Prayitno, “Implementasi Algoritma Fp-Growth Untuk Penentuan Rekomendasi Produk UMKM berdasarkan Frekuensi Pembelian,” J. Teknoinfo, vol. 17, pp. 493–501, 2023.
M. R. A. Purnomo, A. R. Anugerah, A. Azzam, A. U. Khasanah, and M. N. Alfareza, “RFM-based customers clustering for precise industrial marketing strategy formulation,” J. Adv. Manuf. Technol., vol. 15, no. 1, pp. 1–14, 2021.
J. Wu et al., “An Empirical Study on Customer Segmentation by Purchase Behaviors Using a RFM Model and K -Means Algorithm,” Math. Probl. Eng., vol. 2020, 2020, doi: https://doi.org/10.1155/2020/8884227.
M. Aliyev, E. Ahmadov, H. Gadirli, A. Mammadova, and E. Alasgarov, “Segmenting Bank Customers via RFM Model and Unsupervised Machine Learning,” 2020, [Online]. Available: http://arxiv.org/abs/2008.08662
R. Siagian, P. Sirait, and A. Halim, “The Implementation of K-Means dan K-Medoids Algorithm for Customer Segmentation on E-commerce Data Transactions,” Sistemasi, vol. 11, no. 2, p. 260, 2022, doi: https://doi.org/10.32520/stmsi.v11i2.1337.





