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.

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.