Segmentasi Produk Pakaian Menggunakan Algoritma K-Means Clustering dan Particle Swarm Optimization untuk Strategi Pemasaran


  • Rio Aji Hadyanta Putra * Mail Universitas Mercu Buana Yogyakarta, Yogyakarta, Indonesia
  • Putri Taqwa Prasetyaningrum Universitas Mercu Buana Yogyakarta, Yogyakarta, Indonesia
  • (*) Corresponding Author
Keywords: Product Segmentation; K-Means Clustering; Particle Swarm Optimization; Davies Bouldin Index; Marketing Strategy

Abstract

This research aims to analyze product segmentation in the apparel industry using the K-Means Clustering algorithm optimized with Particle Swarm Optimization (PSO) to generate accurate product segmentation that can support more effective marketing strategies for a company. The data used in this analysis were obtained from sales transactions of a clothing manufacturing company that offers various categories of apparel products. The dataset consists of 333 rows and includes transaction numbers, product types, quantities sold, and total sales values. The data were processed using the Python programming language via Visual Studio Code. The segmentation process was initially performed using the K-Means algorithm to group products, and the Elbow method was applied to determine the optimal number of clusters. The number of clusters obtained from the Elbow method was then optimized using PSO to find more optimal cluster counts and centroids. Cluster evaluation was conducted by comparing the values of several metrics, including the Davies-Bouldin Index (DBI), Silhouette Score, Sum of Squared Error (SSE), and the SSW/SSB ratio. Although the DBI increased slightly from 0.6690 to 0.6878, indicating greater similarity between clusters, the improvement in the Silhouette Score from 0.5513 to 0.5569 suggests better internal consistency within the clusters. Furthermore, the reduction in SSE from 418.52 to 313.25 indicates a tighter distribution of data within clusters, while the significant decrease in the SSW/SSB ratio from 0.4582 to 0.3075 demonstrates more clearly defined cluster boundaries and improved separation. The results of the study produced four distinct product clusters, enabling the company to implement more targeted and differentiated marketing strategies.

Downloads

Download data is not yet available.

References

K. Rahayu and P. T. Prasetyaningrum, “Sales Prediction on the Diamond Cell Counter Using Autoregresive Integrated Moving Average (ARIMA) Method,” Journal of Information Systems and Informatics, vol. 5, no. 1, pp. 271–284, Mar. 2023, doi: 10.51519/journalisi.v5i1.450.

M. Almaripat, A. Faqih, and A. R. Rinaldy, “Sales Data Classterization Analysis Using K-Means Method for Marketing Strategy Development,” Journal of Artificial Inteligence and Engineering Applications, vol. 4, no. 2, pp. 2808–4519, Feb. 2025, doi: https://doi.org/10.59934/jaiea.v4i2.792.

N. A. Maori, “Metode Elbow Dalam Optimasi Jumlah Cluster Pada K-Means Clustering,” Jurnal SIMETRIS, vol. 14, Nov. 2023, doi: https://doi.org/10.24176/simet.v14i2.9630.

W. Wahyuningsih and P. T. Prasetyaningrum, “Enhancing Sales Determination for Coffee Shop Packages through Associated Data Mining: Leveraging the FP-Growth Algorithm,” Journal of Information Systems and Informatics, vol. 5, no. 2, pp. 758–770, May 2023, doi: 10.51519/journalisi.v5i2.500.

P. T. Prasetyaningrum, P. Purwanto, and A. F. Rochim, “Consumer Behavior Analysis in Gamified Mobile Banking: Clustering and Classifier Evaluation,” Journal of System and Management Sciences, vol. 15, no. 2, pp. 290–308, 2025, doi: 10.33168/JSMS.2025.0218.

I. Arfiani, H. Yuliansyah, and M. D. Suratin, “Implementasi Bee Colony Optimization Pada Pemilihan Centroid (Klaster Pusat) Dalam Algoritma K-Means,” Building of Informatics, Technology and Science (BITS), vol. 3, no. 4, pp. 756–763, Mar. 2022, doi: 10.47065/bits.v3i4.1446.

P. T. Prasetyaningrum, P. Purwanto, and A. F. Rochim, “Enhancing Element Game Classification: Effective Techniques for Handling Imbalanced Classes,” International Journal of Intelligent Engineering and Systems, vol. 17, no. 1, pp. 555–571, 2024, doi: 10.22266/ijies2024.0229.47.

A. S. Alganiu, A. R. Juwita, R. Rahmat, and S. Faisal, “Perbandingan Algoritma K-Means dan K-Medoids untuk Clustering Pada Transaksi Penjualan Minimarket,” Journal of Computer System and Informatics (JoSYC), vol. 6, no. 1, pp. 14–24, Nov. 2024, doi: 10.47065/josyc.v6i1.5873.

F. A. Dinata, A. Nazir, M. Fikry, and I. Afrianty, “Implementasi Data Mining Untuk Prediksi Stok Penjualan Keramik dengan Metode K-Means,” Journal of Computer System and Informatics (JoSYC), vol. 5, no. 3, pp. 701–708, May 2024, doi: 10.47065/josyc.v5i3.5200.

N. S. Ngaeni, K. Kusrini, and K. Kusnawi, “Analisis Kombinasi Algoritma K-Means Clustering dan TOPSIS Untuk Menentukan Pendekatan Strategi Marketing Berdasarkan Background Target Audiens,” Journal of Computer System and Informatics (JoSYC), vol. 5, no. 2, pp. 393–403, Feb. 2024, doi: 10.47065/josyc.v5i2.4948.

R. B. Ardi, F. Ely Nastiti, and S. Sumarlinda, “Algoritma K-Means Clustering Untuk Segmentasi Pelanggan (Studi Kasus : Fashion Viral Solo),” INFOTECH journal, vol. 9, no. 1, pp. 124–131, May 2023, doi: 10.31949/infotech.v9i1.5214.

A. R. Naufal and A. T. Suseno, “Penerapan Fitur Seleksi dan Particle Swarm Optimization pada Algoritma Support Vector Machine untuk Analisis Credit Scoring,” Journal of Computer System and Informatics (JoSYC), vol. 5, no. 1, pp. 184–195, Nov. 2023, doi: 10.47065/josyc.v5i1.4409.

T. M. Dista and F. F. Abdulloh, “Clustering Pengunjung Mall Menggunakan Metode K-Means dan Particle Swarm Optimization,” JURNAL MEDIA INFORMATIKA BUDIDARMA, vol. 6, no. 3, p. 1339, Jul. 2022, doi: 10.30865/mib.v6i3.4172.

O. Herdiana, S. Maulani, E. A. Firdaus, and K. Kunci, “Strategi Pemasaran Produk Industri Kreatif Menggunakan Algoritma K-Means Clustering Berbasis Particle Swarm Optimization,” Nuansa Informatika, vol. 15, no. 2, 2021, doi 10.25134/nuansa.v15i2.4394

L. Fernando and M. I. Fianty, “Optimizing Motorcycle Sales: Enhancing Customer Segmentation with K-Means Clustering and Data Mining Techniques,” Journal of Information Systems and Informatics, vol. 6, no. 3, pp. 1484–1498, Sep. 2024, doi: 10.51519/journalisi.v6i3.799.

P. Vania and B. Nurina Sari, “Perbandingan Metode Elbow dan Silhouette untuk Penentuan Jumlah Klaster yang Optimal pada Clustering Produksi Padi menggunakan Algoritma K-Means,” Jurnal Ilmiah Wahana Pendidikan, vol. 9, no. 21, pp. 547–558, 2023, doi: 10.5281/zenodo.10081332.

N. Hendrastuty, “Penerapan Data Mining Menggunakan Algoritma K-Means Clustering Dalam Evaluasi Hasil Pembelajaran Siswa,” Jurnal Ilmiah Informatika dan Ilmu Komputer (JIMA-ILKOM), vol. 3, no. 1, pp. 46–56, Mar. 2024, doi: 10.58602/jima-ilkom.v3i1.26.

Budiman, “Optimalisasi K-Means Berbasis Particle Swarm Optimization untuk Hasil Produksi Tanaman Sayuran di Indonesia,” Nuansa Informatika, vol. 17, pp. 2614–5405, 2023, 10.25134/fkom%20uniku.v17i1.6646

M. F. Wahyudi, S. Setiawidayat, and F. Hunaini, “Metode Particle Swarm Optimization Untuk Menentukan Daya Optimal Turbin Gas Pltgu Grati Berdasarkan Heat Rate,” JASEE Journal of Application and Science on Electrical Engineering, vol. 2, no. 01, pp. 37–46, Apr. 2021, doi: 10.31328/jasee.v2i01.161.

T. M. Dista and F. F. Abdulloh, “Clustering Pengunjung Mall Menggunakan Metode K-Means dan Particle Swarm Optimization,” JURNAL MEDIA INFORMATIKA BUDIDARMA, vol. 6, no. 3, p. 1339, Jul. 2022, doi: 10.30865/mib.v6i3.4172.


Bila bermanfaat silahkan share artikel ini

Berikan Komentar Anda terhadap artikel Segmentasi Produk Pakaian Menggunakan Algoritma K-Means Clustering dan Particle Swarm Optimization untuk Strategi Pemasaran

Dimensions Badge
Article History
Submitted: 2025-05-16
Published: 2025-06-30
Abstract View: 271 times
PDF Download: 163 times
How to Cite
Putra, R., & Prasetyaningrum, P. (2025). Segmentasi Produk Pakaian Menggunakan Algoritma K-Means Clustering dan Particle Swarm Optimization untuk Strategi Pemasaran. Building of Informatics, Technology and Science (BITS), 7(1), 750-758. https://doi.org/10.47065/bits.v7i1.7367
Section
Articles