Analysis of Shopee App User Behavior Patterns Using the K-Means Algorithm and RFM Model (Case Study: ZR Store)

Authors

  • Nafiah Universitas Pamulang
  • Pamela Kareen University of Pamulang

DOI:

https://doi.org/10.69916/jkbti.v5i3.622

Keywords:

K-means, RFM, ZR Store, Loyal Customer, Behavioral Pattern

Abstract

The rapid growth of e-commerce in Indonesia has led to an increase in transaction volumes and user activity on online shopping platforms, such as the Shopee app. Large-scale transaction data can be leveraged to understand user behavior patterns, enabling companies to formulate more effective and targeted marketing strategies. This study aims to analyze the behavior patterns of Shopee app users using the Recency, Frequency, Monetary (RFM) method and the K-Means clustering algorithm. The RFM method is employed to assess customer characteristics based on the time of the last transaction (Recency), transaction frequency (Frequency), and total customer expenditure (Monetary). Subsequently, the K-Means algorithm is applied to segment users based on similarities in their transaction behavior. The dataset comprises 200 customers, with attributes including customer code, transaction date, age, gender, quantity of items purchased, shipping type, product category, and payment method. Using the K-Means algorithm, customers were grouped into three clusters: C1 (Loyal Customers), C2 (Less Loyal Customers), and C3 (New Customers). The results indicate that 90 customers fell into category C1, 39 into category C2, and 71 into category C3. Regarding rankings, the maximum rank (RRank_max) was 50 with an obtained rank value of 12.0; for Frequency (Frank), the value was 2 with a maximum rank (Frank_max) of 12.29; and an Mrank of 48.8 was obtained.

Downloads

Download data is not yet available.

References

B. Chong, “K-Means Clustering Algorithm: A Brief Review,” Acad. J. Comput. Inf. Sci., vol. 4, no. 5, pp.

–40, 2021, doi: 10.25236/ajcis.2021.040506.

M. Ahmed, R. Seraj, and S. M. S. Islam, “The k-means algorithm: A comprehensive survey and performance evaluation,” Electronics (Switzerland), vol. 9, no. 8, pp. 1–12, 2020, doi: 10.3390/electronics9081295.

H. Mukhtar et al., “K-Means Algorithm for Customer Behavior Clustering,” SEIS, vol. 4, no. 2, pp. 96–101,

R. I. Manarung, E. Widodo, and A. M. Rifai, “Sales Data Clustering Using the K-Means Algorithm to

Determine Retail Product Needs,” Int. J. Softw. Eng. Comput. Sci. (IJSECS), vol. 5, no. 1, pp. 226–234,

, doi: 10.35870/ijsecs.v5i1.4090.

A. Yahya and R. Kurniawan, “Implementation of K-Means Algorithm for Sales Data Grouping Based on

Sales Patterns,” Malcolm, vol. 5, pp. 350–358, 2025.

A. Bucko, K. Vishi, and B. Krasniqi, “Enhancing JWT Authentication and Authorization in Web Applications Based on User Behavior History,” Computers, vol. 12, no. 78, pp. 1–18, 2023, doi: 10.3390/computers12040078.

S. Sharma and A. A. Waoo, “Customer Behavior Analysis in E-Commerce using Machine Learning Approach: A Survey,” Int. J. Sci. Res. Comput. Sci. Eng. Inf. Technol., vol. 9, no. 2, pp. 163–170, 2023.

R. Kasemrat, T. Kraiwanit, and N. Yuenyong, “Predictive Analytics in Customer Behavior: Unveiling

Economic and Governance Insights Through Machine Learning,” J. Gov. Regul., vol. 14, no. 1, pp. 318–

, 2025, doi: 10.22495/jgrv14i1siart8.

Z. Mutaqin, B. Imran, and S. Rosida, “Sistem Informasi Penjualan Online (E-Commerce) Berbasis Web Pada Toko Matahari Praya,” J. Comput. Technol., vol. 1, no. 2, pp. 29–36, 2023, doi:

69916/comtechno.v1i2.46.

Sahidi and Z. Mutaqin, “Sistem Informasi Pariwisata Desa Senaru Berbasis Website Menggunakan Metode RAD,” J. Comput. Technol., vol. 1, no. 1, pp. 1–5, 2023.

N. Hidayati, “The Use of Rapid Application Development (RAD) Model in the Development of Raw

Material Inventory Information System,” Int. J. Inf. Syst. Technol., vol. 9, no. 158, pp. 82–92, 2025.

H. T. Sadiah, M. Saad, and N. Ishlah, “Design of the Inventory Application of CV Diva Karya Mandiri

Using RAD (Rapid Application Development),” Int. J. Quant. Res. Model., vol. 4, no. 2, pp. 82–89, 2023.

A. Fathurrozi, Hariyanto, R. W. P. Pamungkas, P. Kustanto, A. Noeman, and D. Handayani, “Analisa

Perancangan Sistem Informasi Dengan Fitur Rekomendasi Menggunakan Algoritma Apriori,” Technomedia J., vol. 8, no. 2, pp. 51–69, 2023, doi: 10.33050/tmj.v8i2.2003.

D. Kim and J. Park, “Retail Demand Forecasting Using Clustering-Based Models,” Sustainability, vol. 14, no. 5, p. 2789, 2022, doi: 10.3390/su14052789.

E. Widodo and S. Santoso, “Clustering-Based Marketing Strategy Using Fuzzy Approach,” Procedia Comput. Sci., vol. 216, pp. 350–357, 2023, doi: 10.1016/j.procs.2023.01.045.

G. J. Oyewole and G. A. Thopil, “Data clustering: application and trends,” Artif. Intell. Rev., vol. 56, no.

, pp. 6439–6475, 2023, doi: 10.1007/s10462-022-10325-y.

S. Rahman and T. Ahmed, “Cluster Validation Techniques: A Review,” IEEE Access, vol. 9, pp. 76543–

, 2021, doi: 10.1109/ACCESS.2021.3081234.

P. J. Rousseeuw, “Silhouettes: A Graphical Aid to the Interpretation of Cluster Analysis,” J. Comput.

Appl. Math., vol. 20, pp. 53–65, 2021.

I. Ariati, R. N. Norsa, L. Akhsan, and J. Heikal, “Customer segmentation using K-Means clustering: A

case study of Greenfields UHT milk customers,” Cerdika J. Ilm. Indones., vol. 3, no. 7, pp. 729–743, 2023.

M. R. Razanah and P. Pandunata, “Segmentasi Pelanggan dan Penargetan Pembeli dengan Menggunakan

Metode K-Means Clustering: Studi Kasus Industri Real Estate,” Melek IT Inf. Technol. J., vol. 11, no. 1,

pp. 67–76, 2025.

G. Manimannan, R. L. Priya, and C. A. Kumar, “Application of Orange Data Mining Approach of Agriculture Productivity Index Performance in Tamilnadu,” Int. J. Sci. Innov. Math. Res., vol. 7, no. 8, pp.

–16, 2019, doi: 10.20431/2347-3142.0708003.

S. I. Nurhafida and F. Sembiring, “Analisis Text Clustering Masyarakat Di Twitter Mengenai McDonald’S x BTS Menggunakan Orange Data Mining,” SISMATIK (Seminar Nasional Sistem Informasi dan Manajemen Informatika), pp. 28–35, 2021.

S. Kodati and R. Vivekanandam, “Analysis of Heart Disease using Data Mining Tools Orange and Weka,” Glob. J. Comput. Sci. Technol. C Softw. Data Eng., vol. 18, no. 1, pp. 16–22, 2018.

G. Manimannan, R. L. Priya, and C. A. Kumar, “Application of Orange Data Mining Approach of Agriculture Productivity Index Performance in Tamilnadu,” Int. J. Sci. Innov. Math. Res., vol. 7, no. 8, pp.

–16, 2019.

Downloads

Published

2026-09-18

PlumX Metrics

Scite Metrics

Altmetric

How to Cite

[1]
Nafiah and Pamela Kareen, “Analysis of Shopee App User Behavior Patterns Using the K-Means Algorithm and RFM Model (Case Study: ZR Store)”, JKBTI, vol. 5, no. 3, pp. 764–771, Sep. 2026.