Image recognition based on combination of RGB–HSV color and shape features using PCA and K-nearest neighbor
Journal of Soft Computing Exploration · 07.06.2026 · 7 (2) · 377-390
DOI: 10.52465/joscex.v7i2.111 ↗Kurz gefasst
Fachartikel in der Zeitschrift Journal of Soft Computing Exploration, online erschienen am 07.06.2026. Verfasst von Hadiq und 3 weiteren Autor:innen. Der Volltext ist frei zugänglich (Open Access, CC BY-SA 4.0).
Abstract (Originalsprache)
This study aims to accurately separate flower objects from complex backgrounds in artificial intelligence (AI)-based plant management systems. Previous studies have shown limitations in preprocessing techniques and often did not explicitly report classification accuracy. To address these issues, the proposed framework consists of eight stages. The process begins with image size standardization to 150 × 150 pixels, followed by low-pass filtering and image sharpening to enhance object boundaries. Segmentation is then performed sequentially using RGB and HSV color models to achieve more precise object separation. Subsequently, Sobel edge detection and thinning are applied to extract geometric features, such as distances between petal tips and flower perimeter measurements. The extracted features are optimized using Principal Component Analysis (PCA), which reduces the original ten attributes to four principal components, thereby eliminating data redundancy before classification using the Euclidean distance-based K-Nearest Neighbor (KNN) algorithm. Experimental results show that PCA preserves 86.7% of the original data variance, while the proposed system achieves an overall average classification accuracy of 88% at k = 5. Specifically, the recognition accuracies obtained for the four flower categories were 93.33% for Flower A, 86.67% for Flower B, 90.00% for Flower C, and 80.00% for Flower D. The main contribution of this research is the integration of intensive preprocessing techniques, the combination of RGB-HSV color features with geometric shape features, and PCA-based feature optimization, which collectively improve the stability and computational efficiency of KNN classification.
Zitieren
APA
Hadiq, Solehatin, Muslim, M. A., & Pertiwi, D. A. A. (2026). Image recognition based on combination of RGB–HSV color and shape features using PCA and K-nearest neighbor. Journal of Soft Computing Exploration, 7(2), 377-390. https://doi.org/10.52465/joscex.v7i2.111
Vancouver
Hadiq, Solehatin, Muslim MA, Pertiwi DAA. Image recognition based on combination of RGB–HSV color and shape features using PCA and K-nearest neighbor. Journal of Soft Computing Exploration. 2026;7(2):377-390. doi:10.52465/joscex.v7i2.111
BibTeX
@article{Hadiq2026,
author = {Hadiq and Solehatin and Muslim, Much Aziz and Pertiwi, Dwika Ananda Agustina},
title = {Image recognition based on combination of RGB–HSV color and shape features using PCA and K-nearest neighbor},
journal = {Journal of Soft Computing Exploration},
year = {2026},
volume = {7},
number = {2},
pages = {377--390},
doi = {10.52465/joscex.v7i2.111}
}
EUVIMED