Classification of Mango Ripeness Levels Based on Color Features Using K-NN and SVM
Abstract
Mango production in Indonesia reached 33.08 million tons in 2024, highlighting the need for objective and consistent methods to determine fruit maturity levels. Manual maturity assessment remains subjective and may lead to inconsistent results because it depends on the individual perceptions of observers. This study aimed to analyze and compare the performance of the K-Nearest Neighbor and Support Vector Machine algorithms in classifying mango maturity levels using the Hue, Saturation, and Value (HSV) and Red, Green, and Blue (RGB) color spaces. A secondary dataset comprising 300 images of Harum Manis, Kweni, and Manalagi mangoes was used in this study. The research procedures included image resizing, background removal, color feature extraction, normalization using Min-Max Scaling, and dataset partitioning into training and testing sets at an 80:20 ratio. Model performance was evaluated using accuracy, precision, recall, and F1-score. The results showed that the K-Nearest Neighbor algorithm consistently outperformed the Support Vector Machine algorithm. The highest accuracy of 100% was achieved using the RGB color space for Kweni mangoes, whereas the lowest accuracy of 60% was obtained for Manalagi mangoes. These findings indicate that the effectiveness of color spaces depends on the mango variety. The RGB color space performed better for Harum Manis and Kweni mangoes, whereas the HSV color space was more effective for Manalagi mangoes.
Full text article
Authors
Copyright (c) 2026 Nanda Octavia, Sony Hartono Wijaya, Toto Haryanto

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License (CC BY 4.0) that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.