Jurnal Media Computer Science
Vol 5 No 4 (2026): Oktober

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)



Article Info

Publish Date
31 Oct 2026

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

Copyrights © 2026






Journal Info

Abbrev

jmcs

Publisher

Subject

Computer Science & IT

Description

Jurnal Media Computer Science merupakan jurnal nasional yang diterbitkan oleh Universitas Dehasen Bengkulu sejak tahun 2022. Jurnal Media Computer Science memuat artikel hasil-hasil penelitian di bidang Komputer, Sistem Informasi dan Teknologi. Jurnal Media Computer Science berkomitmen untuk menjadi ...