jics@kawanad.com Banda Aceh, Indonesia

Clustering and Classification of Retail Sales Data: A Big Data and Data Mining Analysis

Ahmad Bilal Almagribi1* , Sri Redjeki2
1*,2 Universitas Teknologi Digital Indonesia
* Corresponding Author: Ahmad Bilal Almagribi
Published
2025-11-30
Section
Article
Pages
242-253

Abstract

In the evolving retail landscape, data-driven decision-making has become essential for understanding customer behavior and predicting sales trends. This study integrates clustering and classification techniques to analyze retail sales data comprising 1,000 transactions obtained from Kaggle. Using the K-Means algorithm, three optimal customer clusters were identified through the Elbow Method, achieving an average within-centroid distance of 25,272.635 and a Davies–Bouldin Index of 0.443, indicating clear cluster separation. The subsequent classification phase compared the predictive performance of three algorithms—Naïve Bayes, Decision Tree, and Random Forest—on 70:30 training-to-testing data partitions. The Naïve Bayes algorithm attained 94.67% accuracy, while both Decision Tree and Random Forest achieved perfect classification accuracy of 100%. These findings highlight the robustness and adaptability of tree-based models for complex retail datasets, outperforming probabilistic methods in terms of accuracy and generalization. The results suggest that the integration of clustering and classification provides retailers with a powerful analytical framework for identifying high-value customer segments, optimizing marketing strategies, and enhancing inventory management. Despite achieving strong outcomes, the study acknowledges dataset limitations and recommends future research involving larger and more diverse datasets, as well as additional features, to expand model scalability and predictive precision.

Article Usage Statistics

OJS Statistics
Share this article:

Author Biographies

Ahmad Bilal Almagribi Universitas Teknologi Digital Indonesia

Master of Information Technology, Universitas Teknologi Digital Indonesia, Bantul Regency, Special Region of Yogyakarta, Indonesia.

Sri Redjeki Universitas Teknologi Digital Indonesia

Master of Information Technology, Universitas Teknologi Digital Indonesia, Bantul Regency, Special Region of Yogyakarta, Indonesia.

How to Cite

Almagribi, A. B., & Redjeki, S. (2025). Clustering and Classification of Retail Sales Data: A Big Data and Data Mining Analysis. Journal Innovations Computer Science, 4(2), 242-253. https://doi.org/10.56347/jics.v4i2.303

License & Copyright

Copyright (c) 2025 Ahmad Bilal Almagribi, Sri Redjeki

This is an open-access journal. All articles are distributed under the terms of the Creative Commons Attribution 4.0 International License (CC BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Creative Commons Attribution 4.0 International (CC BY 4.0)

Under this license, you are free to:

  • Share: copy, distribute, and transmit the work in any medium or format.
  • Adapt: remix, transform, and build upon the work for any purpose, even commercially.

Attribution Requirements

You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.

Copyright and Retention Copyright & Retention Authors retain copyright without restrictions and grant this journal the right of first publication under an open-access model. The journal retains non-exclusive publishing rights for archiving, indexing, and scholarly dissemination.

References

Total: 21 References
  • Andry, J. F., Hartono, H., & Jo, J. (2023). Analysis and prediction of supermarket sales with data mining using RapidMiner. In N. I. Saragih, S. A. Salma, F. Dewi, D. Caesaron, M. Dellarosawati, D. Rachmawaty, F. D. Winati, D. Y. Bernanda, F. R. Wilujeng, & G. D. Rembulan (Eds.), AIP Conference Proceedings (Vol. 2693, Issue 1). American Institute of Physics Inc. https://doi.org/10.1063/5.0118725
  • Arfan, U., & Paraga, N. (2024). Perbandingan algoritma K-Means, Naïve Bayes, dan Decision Tree dalam memprediksi penjualan bahan bakar minyak: The comparison of K-Means, Naïve Bayes and Decision Tree algorithm in predicting fuel oil sales. MALCOM: Indonesian Journal of Machine Learning and Computer Science, 4(4). https://doi.org/10.57152/malcom.v4i4.1566
  • Arman, S. A., Untari, R. T., & Erion, E. (2023). Implementasi data mining menggunakan metode Decision Tree dalam mempolakan penjualan pada showroom motor bekas. Journal of Science and Social Research, 6(2). https://doi.org/10.54314/jssr.v6i2.1313
  • Arraudhah, N. (2025). Peningkatan klasifikasi penjualan produk fashion di Sabhira Official dengan Random Forest. Jurnal Dinamika Informatika, 14(1).
  • Awan, M. J., Rahim, M. S. M., Nobanee, H., Yasin, A., Khalaf, O. I., & Ishfaq, U. (2021). A big data approach to Black Friday sales. Intelligent Automation and Soft Computing, 27(3), 785–797. https://doi.org/10.32604/iasc.2021.014216