JTIULM (Jurnal Teknologi Informasi Universitas Lambung Mangkurat)
Vol. 7 No. 1 (2022)

KNN FOR CLASSIFICATION OF FRUIT TYPES BASED ON FRUIT FEATURES

Moh. Afis Azman (Universitas Islam Lamongan)
Nur Nafi'iyah (Universitas Islam Lamongan)



Article Info

Publish Date
30 Apr 2022

Abstract

Research related to the recognition of fruit types has been done previously. Research related to the recognition of many types of fruit applies computer vision and artificial intelligence. The purpose of this research is to apply artificial intelligence science with the KNN method to identify the type of fruit. The KNN method has a good performance in previous studies. We tried to use KNN by determining the most optimal K value. There are five types of fruit images used in this study, namely Apples, Grapes, Oranges, Mangoes, and Strawberries. The fruit image is extracted with colour, texture, and shape features with a total of 15 features, namely the average value of R, the average value of G, the average value of B, the value of skewness R, the value of skewness G, the value of skewness B, the value of grayscale entropy. , grayscale contrast value, grayscale energy value, grayscale correlation value, grayscale homogeneity value, binary area value, binary circumference value, binary major axis value, and binary minor axis value. The dataset used in this study was taken from Kaggle, with a dataset of 2750 images, each type of fruit contained 550 images, 2500 training images were used and 250 images were used for testing. The experimental results show that the KNN method with K=1 has the highest accuracy, which is 99.6%. The KNN method can be used optimally in classifying fruit types based on colour, texture, and shape features.

Copyrights © 2022






Journal Info

Abbrev

jtiulm

Publisher

Subject

Computer Science & IT Electrical & Electronics Engineering Engineering

Description

Jurnal Teknologi Informasi Universitas Lambung Mangkurat (JTIULM) is intended as a media for scientific studies on the results of research, thinking and analytical-critical studies regarding research in Systems Engineering, Informatics / Information Technology, Information Management and Information ...