Classification of Mango Ripeness Levels Based on Color Features Using K-NN and SVM

Nanda Octavia (1) , Sony Hartono Wijaya (1) , Toto Haryanto (1)
(1) Program Studi Ilmu Komputer, Sekolah Sains Data, Matematika, dan Informatika, Institut Pertanian Bogor., Indonesia

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

Generated from XML file

Authors

Nanda Octavia
nndoctavia@apps.ipb.ac.id (Primary Contact)
Sony Hartono Wijaya
Toto Haryanto
[1]
N. Octavia, S. H. Wijaya, and T. Haryanto, “Classification of Mango Ripeness Levels Based on Color Features Using K-NN and SVM”, JIKA, vol. 13, no. 2, Nov. 2026, doi: 10.29244/jika.13.2.%p.

Article Details

How to Cite

[1]
N. Octavia, S. H. Wijaya, and T. Haryanto, “Classification of Mango Ripeness Levels Based on Color Features Using K-NN and SVM”, JIKA, vol. 13, no. 2, Nov. 2026, doi: 10.29244/jika.13.2.%p.

Sentiment Analysis of Twitter Users on COVID-19 Vaccination Program in Indonesia using Support Vector Machine Algorithm

Qarry Atul Chairunnisa, Yeni Herdiyeni, Medria Kusuma Dewi Hardhienata, Julio Adisantoso
Abstract View : 1207
Download :1391

Most read articles by the same author(s)

1 2 > >>