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

A Comparison of the KNN and Random Forest Algorithms for Predicting Clothing Size Compatibility Based on Anthropometric Data

Putra Aji Ardiansyah (Universitas Negeri Malang)
Sulton Hakim (Universitas Negeri Malang)
Aura Medy Aisyah (Universitas Negeri Malang)
Najwa Aulia Fauzi (Universitas Negeri Malang)
Nurul Hidayati (Universitas Negeri Malang)
Muhammad Zaki Wiryawan (Universitas Negeri Malang)



Article Info

Publish Date
31 Oct 2026

Abstract

The rapid development of fashion e-commerce has increased the need for an accurate clothing size recommendation system to reduce size discrepancies when shopping online. Mistakes in selecting clothing sizes often lead to customer dissatisfaction and product returns because consumers cannot try on clothes directly before making a purchase. Therefore, an automatic clothing size prediction system based on anthropometric data is needed to improve the accuracy of clothing size recommendations. This study aims to compare the performance of the K- Nearest Neighbor (KNN) and Random Forest algorithms in predicting clothing sizes based on anthropometric data. The dataset used consists of several anthropometric attributes such as gender, height, weight, and clothing size labels. The research stages include data preprocessing, data normalization, data sharing, model training, and model evaluation. The evaluation was carried out using accuracy, precision, recall, F1-score, and confusion matrix metrics. The results of the study show that both algorithms are capable of classifying clothing sizes well. However, the Random Forest algorithm shows better classification performance and prediction stability than the K-Nearest Neighbor algorithm. The results of this study are expected to contribute to the development of machine learning-based clothing size recommendation systems on fashion e-commerce platforms

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 ...