IJCCS (Indonesian Journal of Computing and Cybernetics Systems)
Vol 20, No 4 (2026): October

K-Means Retail Product Sales Clustering via Elbow and Davies-Bouldin

Ni Wayan Wardani (Institut Bisnis dan Teknologi Indonesia)



Article Info

Publish Date
31 Oct 2026

Abstract

 The expansion of the retail business requires business operators to accurately group best-selling and slow-moving products in order to optimize inventory adjustment strategies. This study aims to cluster sales transaction data and determine the optimal number of clusters using the K-Means algorithm. A secondary dataset consisting of 7,373 transaction records was analyzed based on the attributes of transaction count and total sales. The best cluster number was determined using the Elbow method based on the Sum of Squared Errors and validated using the Davies-Bouldin Index. The test results show that both methods consistently produced an optimal number of clusters, k, equal to 4, with a Davies-Bouldin Index value of 0.47. This value indicates a very well-separated cluster structure. The final clustering resulted in four product performance categories: 2 “best-selling” products, 20 “selling well” products, 171 “moderately selling” products, and 7,180 “poorly selling” products. This evaluation demonstrates that the combination of K-Means, the Elbow method, and the Davies-Bouldin Index effectively provides data-driven insights to support inventory management decision-making in the retail business.

Copyrights © 2026






Journal Info

Abbrev

ijccs

Publisher

Subject

Computer Science & IT Control & Systems Engineering

Description

Indonesian Journal of Computing and Cybernetics Systems (IJCCS), a two times annually provides a forum for the full range of scholarly study . IJCCS focuses on advanced computational intelligence, including the synergetic integration of neural networks, fuzzy logic and eveolutionary computation, so ...