Customer Type Classification Based on Purchasing Patterns Using the Random Forest Algorithm on the Wholesale Customer Dataset
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
Copyright (c) 2026 Verina Bernice Waranggani, Vinsensius Wellen Krisna Wijaya Putra, Anik Nur Handayani, Rayie Tariaranie, Aditya Mikael Lexalazizou, Roihani Kurniawati Ningsih

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




.png)
