Customer Type Classification Based on Purchasing Patterns Using the Random Forest Algorithm on the Wholesale Customer Dataset

  • Verina Bernice Waranggani Universitas Negeri Malang
  • Vinsensius Wellen Krisna Wijaya Putra Universitas Negeri Malang
  • Anik Nur Handayani Universitas Negeri Malang
  • Rayie Tariaranie Universitas Negeri Malang
  • Aditya Mikael Lexalazizou Universitas Negeri Malang
  • Roihani Kurniawati Ningsih Universitas Negeri Malang
Keywords: Classification, Data Mining, Machine Learning, Random Forest, Wholesale Customers

Abstract

In the development of information technology and data mining, there is a great opportunity to support data-driven business decision-making, especially in identifying customer transaction patterns. This study focuses on classifying customer types based on purchasing patterns using the Random Forest algorithm on the Wholesale Customers dataset. The study utilizes a dataset of 440 customers consisting of 8 variables: Channel, Region, Fresh, Milk, Grocery, Frozen, Detergents_Paper, and Delicassen. The Channel variable is used as the classification label, while the other attributes are used as features. This research is conducted through several stages, including data preprocessing, normalization using StandardScaler, data splitting using train-test split, classification using the Random Forest algorithm, and model performance evaluation using confusion matrix, accuracy, precision, and recall. In addition, several data visualizations are performed, such as histograms, scatter plots, bar charts, feature importance analysis, and confusion matrix visualization, to support the analysis of data characteristics and model performance. Based on the experiments conducted, the Random Forest method shows optimal classification performance. The model achieves an accuracy of 89.77%, precision of 96.67%, and recall of 89.23%. The visualization results also indicate that the Grocery and Detergents_Paper attributes are the most influential features in determining customer types. Furthermore, a positive relationship between these two attributes is observed in the scatter plot. Based on the results of this study, the use of the Random Forest algorithm provides good clustering performance in classifying customer types based on purchasing patterns in the Wholesale Customers dataset

Downloads

Download data is not yet available.
Published
2026-10-31
How to Cite
Waranggani, V., Putra, V., Handayani, A., Tariaranie, R., Lexalazizou, A., & Ningsih, R. (2026). Customer Type Classification Based on Purchasing Patterns Using the Random Forest Algorithm on the Wholesale Customer Dataset. Jurnal Media Computer Science, 5(4), 1933-1946. https://doi.org/10.37676/jmcs.v5i4.13378
Section
Articles

Most read articles by the same author(s)