Automatic Classification for Fruits’ Types and Identification of Rotten Ones Using k-NN and SVM

Authors

  • Ann Nosseir British University in Egypt - BUE
  • Seif Eldin A. Ahmed

DOI:

https://doi.org/10.3991/ijoe.v15i03.9832

Keywords:

Image Processing, Classification, Fruits Detection

Abstract


Having a system that classifies different types of fruits and identifies the quality of fruits will be of a value in various areas especially in an area of mass production of fruits’ products. This paper presents a novel system that differentiates between four fruits types and identifies the decayed ones from the fresh. The algorithms used are based on the colour and the texture features of the fruits’ images. The algorithms extract the RGB values and the first statistical order and second statistical of the Gray Level Co-occurrence Matrix (GLCM) values. To segregate between the fruits’ types, Fine, Medium, Coarse, Cosine, Cubic, and Weighted K-Nearest Neighbors algorithms are applied. The accuracy percentages of each are 96.3%, 93.8%, 25%, 83.8%, 90%, and 95% respectively.  These steps are tested with 46 pictures taken from a mobile phone of seasonal fruits at the time i.e., banana, apple, and strawberry. All types were accurately identifying.  To tell apart the decayed fruits from the fresh, the linear and quadratic Support Vector Machine (SVM) algorithms differentiated between them based on the colour segmentation and the texture feature algorithms values of each fruit image. The accuracy of the linear SVM is 96% and quadratic SVM 98%.

Downloads

Published

2019-02-14

How to Cite

Nosseir, A., & Ahmed, S. E. . A. (2019). Automatic Classification for Fruits’ Types and Identification of Rotten Ones Using k-NN and SVM. International Journal of Online and Biomedical Engineering (iJOE), 15(03), pp. 47–61. https://doi.org/10.3991/ijoe.v15i03.9832

Issue

Section

Papers