Segmentasi Pelanggan Grosir Menggunakan K-Means: Analisis Outlier dan Ketidakseimbangan Data
Penelitian
DOI:
https://doi.org/10.31004/jerkin.v4i3.4771Keywords:
Customer Segmentation, K-Means, Wholesale Customers, Outliers, Imbalanced DataAbstract
This study aims to segment wholesale customers using the K-Means clustering algorithm and to examine the impact of outliers and data imbalance on the clustering results. The data are taken from the Wholesale Customers Dataset of the UCI Machine Learning Repository, consisting of 440 customers with eight numerical attributes representing annual purchase amounts. The preprocessing steps include exploratory data analysis, outlier detection using Z-Score and boxplot visualization, handling of extreme values with winsorizing, and Z-Score normalization to make the attribute scales comparable. The number of clusters is determined using the Elbow Method. Applying K-Means with produces two highly imbalanced clusters, with 437 customers in Cluster 0 and 3 customers in Cluster 1. Cluster 0 represents regular customers whose purchasing patterns are close to the overall average, while Cluster 1 consists of customers with very high purchases, especially in Frozen and Delicassen categories. Evaluation using the average within centroid distance and the Davies–Bouldin Index shows that, after outlier handling and normalization, the cluster structure becomes more stable and easier to interpret. The resulting segmentation can support differentiated marketing and service strategies for regular and high-spending customers and highlights the importance of proper preprocessing when applying K-Means.
References
Aggarwal, C. C. (2015). Data Mining: The Textbook. Springer. https://doi.org/10.1007/978-3-319-14142-8
Aggarwal, C. C. (2017). Outlier Analysis (2nd ed.). Springer. https://doi.org/10.1007/978-3-319-47578-3
Awalina, L., & Rahayu, T. (2025). Segmentasi Customer pada Industri Ritel Menggunakan Teknik Clustering K-Means. Digital Transformation Technology (Digitech), 5(2), xx–xx.
Iqbal, I., Hidayat, N., Gevano, D. P., & Ilahi, A. P. R. (2025). Segmentasi Pelanggan Menggunakan K-Means Clustering Berdasarkan Data Kepribadian dan Pola Konsumsi. Jurnal Teknik Informatika (JUTIF), 6(5), 3914–3924.
Julian, N. D., Belakang, N., & Others. (2023). Segmentasi Pelanggan Menggunakan Algoritma K-Means pada Jaringan Telekomunikasi untuk Optimalisasi Strategi Pemasaran. JTT (Jurnal Teknologi Terpadu), xx(xx), xx–xx.
Maskanah, I., Primajaya, A., & Rizal, A. (2020). Segmentasi Pelanggan Toko Purnama dengan Algoritma K-Means dan Model RFM untuk Perancangan Strategi Pemasaran. INOVTEK Polbeng - Seri Informatika, 5(2), 218–225. https://doi.org/10.35314/isi.v5i2.1443
Nugraha, R. D., Adelia, D. D., & Rivaldi, D. (2025). Segmentasi Pelanggan Retail Berbasis Perilaku Menggunakan Algoritma K-Means Clustering. Digital Transformation Technology (Digitech), 5(2), 141–149. https://doi.org/10.47709/digitech.v5i2.6340
Oktavian, V. V. D., Ridho, & Daffa. (2025). Segmentasi Pelanggan Berbasis RFM dengan Algoritma K-Means pada Data Transaksi Online Retail. Jurnal Riset Informatika Dan Teknologi Informasi (JRITI), 2(3), xx–xx.
Pangestu, P. I., Hermanto, T. I., & Irmayanti, D. (2023). Analisis Segmentasi Pelanggan Berbasis Recency Frequency Monetary (RFM) Menggunakan Algoritma K-Means. JATI (Jurnal Mahasiswa Teknik Informatika), 7(3), 1486–1492. https://doi.org/10.36040/jati.v7i3.7171
Penulis, N. (2025). Implementasi Algoritma K-Means Clustering untuk Segmentasi Pelanggan Berdasarkan Data Transaksi dan Preferensi Pembelian. Sistemasi: Jurnal Sistem Informasi, 14(6), 2751–2767.
Pramudiansyah, A., & Munte, H. (2021). Segmentasi Pelanggan Menggunakan Algoritma K-Means Berdasarkan Model Recency Frequency Monetary. Jurnal Nasional (Online), 7(2), xx–xx.
Rahma, A. A., Faqih, A., & Rinaldi, A. R. (2025). Optimalisasi Strategi Pemasaran melalui Segmentasi Pelanggan dengan Analisis RFM dan Algoritma K-Means untuk Bisnis Ritel. JIKO (Jurnal Informatika Dan Komputer), 9(2), xx–xx. https://doi.org/10.26798/jiko.v9i2.1737
Ramadhan, A. G. (2023). Data Mining Untuk Segmentasi Pelanggan dengan Algoritma K-Means: Studi Kasus pada Data Pelanggan di Toko Retail. Syntax Literate: Jurnal Ilmiah Indonesia, 8(10), 5701–5718.
Ramadhona, W., Nugroho, B. I., & Murtopo, A. A. (2022). Implementasi Data Mining Pemilihan Pelanggan Potensial Menggunakan Algoritma K-Means. Jurnal Minfo Polgan, 11(2), 100–104. https://doi.org/10.33395/jmp.v11i2.11797
Silamantha, W. A., & Hadiono, K. (2024). Analisis RFM dan K-Means Clustering untuk Segmentasi Pelanggan pada PT Sanutama Bumi Arto. KESATRIA: Jurnal Penerapan Sistem Informasi (Komputer Dan Manajemen), 5(3), 1297–1305. https://doi.org/10.30645/kesatria.v5i3.448
Tan, P.-N., Steinbach, M., Karpatne, A., & Kumar, V. (2019). Introduction to Data Mining (2nd ed.). Pearson.
Wahyuni, S., Wulansari, T. T., & Fahrullah, F. (2023). Segmentasi Pelanggan Berdasarkan Analisis Recency, Frequency, Monetary Menggunakan Algoritma K-Means pada CV Toedjoe Sinar Group. Jurnal Rekayasa Teknologi Informasi (JURTI), 7(2), 29–36. https://doi.org/10.30872/jurti.v7i2.8748
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 N Tahta Phudjashakty, Hasbi Firmansyah, Wahyu Asriyani, Ali Sofyan

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












