Occasion-Based Clothing Classification Using Vision Transformer and Traditional Machine Learning Models
Computers · 17.04.2026 · 15 (4) · 249
DOI: 10.3390/computers15040249 ↗Kurz gefasst
Fachartikel in der Zeitschrift Computers, online erschienen am 17.04.2026. Verfasst von Hanaa Alzahrani und 2 weiteren Autor:innen. Die Arbeit wurde bisher 2-mal zitiert (Crossref) und nennt 37 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: KAU Endowment (WAQF) at King Abdulaziz University, Jeddah, Saudi Arabia.
Abstract (Originalsprache)
Clothing classification by occasion is an important area in computer vision and artificial intelligence (AI). This task is particularly challenging because of the subtle visual similarities among clothing categories such as formal, party, and casual attire. Variations in color, fabric, patterns, and lighting further increase the complexity of this task. To address this challenge, we used the Fashionpedia dataset to create a balanced subset of 15,000 images. Specifically, we adopted two different methods for labeling these images: automated classification, which relies on category identifications (IDs) and components, and manual labeling performed by human annotators. We then implemented our preprocessing pipeline, which includes several steps: resizing, image normalization, background removal using segmentation masks, and class balancing. We benchmarked traditional models, including artificial neural networks (ANNs), support vector machines (SVMs), and k-nearest neighbors (KNNs), which use a histogram of oriented gradient (HOG) features, as well as deep learning models such as convolutional neural networks (CNNs), the Visual Geometry Group 16 (VGG16) model utilizing transfer learning, and the vision transformer (ViT) model, all evaluated using identical data splits and preprocessing procedures. The traditional models achieved moderate accuracy, ranging from 54% to 66%. In contrast, the ViT model achieved an accuracy of 81.78% with automated classification and 98.09% with manual labeling. This indicates that a higher label accuracy, along with the preprocessing steps used, significantly enhances the performance. Together, these factors improve the effectiveness of ViT in context-aware apparel classification and establish a reliable baseline for future research.
Förderung
- KAU Endowment (WAQF) at King Abdulaziz University, Jeddah, Saudi Arabia
Zitieren
APA
Alzahrani, H., Almotairi, M., & Basbrain, A. (2026). Occasion-Based Clothing Classification Using Vision Transformer and Traditional Machine Learning Models. Computers, 15(4), 249. https://doi.org/10.3390/computers15040249
Vancouver
Alzahrani H, Almotairi M, Basbrain A. Occasion-Based Clothing Classification Using Vision Transformer and Traditional Machine Learning Models. Computers. 2026;15(4):249. doi:10.3390/computers15040249
BibTeX
@article{Alzahrani2026,
author = {Alzahrani, Hanaa and Almotairi, Maram and Basbrain, Arwa},
title = {Occasion-Based Clothing Classification Using Vision Transformer and Traditional Machine Learning Models},
journal = {Computers},
year = {2026},
volume = {15},
number = {4},
pages = {249},
doi = {10.3390/computers15040249}
}
EUVIMED