Indonesian Journal of Artificial Intelligence and Data Mining
Vol 2, No 2 (2019): September 2019

K-Nearest Neighbor for Classification of Tomato Maturity Level Based on Hue, Saturation, and Value Colors

Suwanto Sanjaya (Universitas Islam Negeri Sultan Syarif Kasim Riau)
Morina Lisa Pura (Universitas Islam Negeri Sultan Syarif Kasim Riau)
Siska Kurnia Gusti (Universitas Islam Negeri Sultan Syarif Kasim Riau)
Febi Yanto (Universitas Islam Negeri Sultan Syarif Kasim Riau)
Fadhilah Syafria (Universitas Islam Negeri Sultan Syarif Kasim Riau)



Article Info

Publish Date
17 Nov 2019

Abstract

The selection of tomatoes can use several indicators. One of the indicators is the fruit color. In digital image processing, one of the color information that could be used in Hue, Saturation, and Value (HSV). In this research, HSV is proposed as a color model feature for information on the ripeness of tomatoes. The total data of tomato images used in this research were 400 images from four sides. The maturity level of tomatoes uses five levels, namely green, turning, pink, light red, and red. The process of divide data uses K-Fold Cross Validation with ten folds. The method used for classification is k-Nearest Neighbor (kNN). The scenario of the test performed is to combine the image size with the parameter value of the neighbor (k). The image sizes tested are 100x100 pixels, 300x300 pixels, 600x600 pixels and 1000x1000 pixels. The “k” values tested were 1, 3, 5, 7, 9, 11, and 13. The highest accuracy reached 92.5% in the image size 1000x1000 pixels with a parameter “k” is 3. The result of the experiment showed that the image size has a significant influence of accuracy, but the parameter value of neighbor (k) has an influence that is not too significant.

Copyrights © 2019






Journal Info

Abbrev

IJAIDM

Publisher

Subject

Computer Science & IT

Description

Indonesian Journal of Artificial Intelligence and Data Mining (IJAIDM) is an electronic periodical publication published by Puzzle Research Data Technology (Predatech) Faculty of Science and Technology UIN Sultan Syarif Kasim Riau, Indonesia. IJAIDM provides online media to publish scientific ...