Carrot Sorting Based on Shape using Image Processing, Artificial Neural Network, and Support Vector Machine

Introduction Carrot is one of the most important agricultural products used by millions of people all over the world. Quality assessment of agricultural products is one of the most important factors in improving the marketability of agricultural products. In the market, carrots with irregular shapes...

Descripción completa

Guardado en:
Detalles Bibliográficos
Autores principales: A Jahanbakhshi, K Kheiralipour
Formato: article
Lenguaje:EN
FA
Publicado: Ferdowsi University of Mashhad 2019
Materias:
Acceso en línea:https://doaj.org/article/c62927a8655840d78f45a06ac99dfc54
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
id oai:doaj.org-article:c62927a8655840d78f45a06ac99dfc54
record_format dspace
institution DOAJ
collection DOAJ
language EN
FA
topic carrot
grading
machine vision
artificial neural networks
support vector machine
Agriculture (General)
S1-972
Engineering (General). Civil engineering (General)
TA1-2040
spellingShingle carrot
grading
machine vision
artificial neural networks
support vector machine
Agriculture (General)
S1-972
Engineering (General). Civil engineering (General)
TA1-2040
A Jahanbakhshi
K Kheiralipour
Carrot Sorting Based on Shape using Image Processing, Artificial Neural Network, and Support Vector Machine
description Introduction Carrot is one of the most important agricultural products used by millions of people all over the world. Quality assessment of agricultural products is one of the most important factors in improving the marketability of agricultural products. In the market, carrots with irregular shapes are not commonly picked by customers due to their appearance. This causes to remain those carrots in the market for a long time and then decay. Therefore, adopting an appropriate method for sorting and packaging this product can increase its desirability in the market. Packaging and sorting of carrots by workers bring about many problems such as high cost, product waste, etc. Image processing systems are modern methods which have different applications in agriculture including sorting of different products. The aim of this study was to implement a machine vision system to classify carrot based on their shape using image processing.  Materials and Methods In this study, 135 carrot samples with different shapes (56 regulars and 79 irregulars) were selected and their images were obtained through an imaging system. First, an expert divided the carrots into, two categories according to their shapes. The carrots which had irregular shape were those with double or triple roots, cracked carrots, curved carrots, damaged carrots, and broken ones and those with upright shapes were considered as regular shape carrot. After imaging, image processing was started by an algorithm programmed in Matlab R2012a medium. Then some shape features such as length, width, breadth, perimeter, elongation, compactness, roundness, area, eccentricity, centroid, centroid non-homogeneity, and width non-homogeneity were extracted. After the selection of efficient features, artificial neural networks and support vector machine were used to classify the efficient features.  Results and Discussion The number of neurons in the hidden layers of artificial neural network models were varied to find the optimal model. The highest percentage of the correct classification rate (98.50%) belonged to the structure of 2-10-16, which in fact has 16 neurons in the input layer, 10 neurons in the hidden layer and 2 neurons in the output layer. This model has also the lowest mean squared error and the highest correlation coefficient of the test data, 0.90 and 2.52, respectively. This network was a feed forward back propagation error type and the activation functions in hidden and output layers were Tansig and Perlin, respectively. The correct classification rate of the support vector machine method was 89.62%. The confusion matrix of support vector machine method showed that out of 56 usual samples, 42 specimens were correctly identified but 14 samples were mistakenly classified as unusual carrots. All 79 carrots with unusual shapes were correctly classified. The results obtained from the comparison of the performance of the two methods, the neural network method has a good superiority than the support vector machine for classification.  Conclusions In this research, the classification of carrots was based on its appearance. At first the physical characteristics and appearance attributes of the carrot samples were extracted and processed using image processing. Image analysis was included the classification of samples into two usual and unusual shapes, which to classify the extracted properties two methods were used: the artificial neural network (ANN) and support vector machine (SVM). The classification accuracy of the ANN method was higher than SVM. It can be said that the image processing method can be used to improve the traditional method for grading the carrot product in new ways. So, the marketability of the product will be increased, and thus its losses will be reduced. Also, the image processing technique can be used as a simple, fast and non-destructive alternative to other methods of extracting geometric properties of agricultural products. Finally, it can be stated that image processing method and machine vision are effective ways for improving the traditional sorting techniques for carrots.
format article
author A Jahanbakhshi
K Kheiralipour
author_facet A Jahanbakhshi
K Kheiralipour
author_sort A Jahanbakhshi
title Carrot Sorting Based on Shape using Image Processing, Artificial Neural Network, and Support Vector Machine
title_short Carrot Sorting Based on Shape using Image Processing, Artificial Neural Network, and Support Vector Machine
title_full Carrot Sorting Based on Shape using Image Processing, Artificial Neural Network, and Support Vector Machine
title_fullStr Carrot Sorting Based on Shape using Image Processing, Artificial Neural Network, and Support Vector Machine
title_full_unstemmed Carrot Sorting Based on Shape using Image Processing, Artificial Neural Network, and Support Vector Machine
title_sort carrot sorting based on shape using image processing, artificial neural network, and support vector machine
publisher Ferdowsi University of Mashhad
publishDate 2019
url https://doaj.org/article/c62927a8655840d78f45a06ac99dfc54
work_keys_str_mv AT ajahanbakhshi carrotsortingbasedonshapeusingimageprocessingartificialneuralnetworkandsupportvectormachine
AT kkheiralipour carrotsortingbasedonshapeusingimageprocessingartificialneuralnetworkandsupportvectormachine
_version_ 1718429865599827968
spelling oai:doaj.org-article:c62927a8655840d78f45a06ac99dfc542021-11-14T06:35:07ZCarrot Sorting Based on Shape using Image Processing, Artificial Neural Network, and Support Vector Machine2228-68292423-394310.22067/jam.v9i2.70579https://doaj.org/article/c62927a8655840d78f45a06ac99dfc542019-09-01T00:00:00Zhttps://jame.um.ac.ir/article_33715_f50d2233063b83040a5c05bdfbe18d2e.pdfhttps://doaj.org/toc/2228-6829https://doaj.org/toc/2423-3943Introduction Carrot is one of the most important agricultural products used by millions of people all over the world. Quality assessment of agricultural products is one of the most important factors in improving the marketability of agricultural products. In the market, carrots with irregular shapes are not commonly picked by customers due to their appearance. This causes to remain those carrots in the market for a long time and then decay. Therefore, adopting an appropriate method for sorting and packaging this product can increase its desirability in the market. Packaging and sorting of carrots by workers bring about many problems such as high cost, product waste, etc. Image processing systems are modern methods which have different applications in agriculture including sorting of different products. The aim of this study was to implement a machine vision system to classify carrot based on their shape using image processing.  Materials and Methods In this study, 135 carrot samples with different shapes (56 regulars and 79 irregulars) were selected and their images were obtained through an imaging system. First, an expert divided the carrots into, two categories according to their shapes. The carrots which had irregular shape were those with double or triple roots, cracked carrots, curved carrots, damaged carrots, and broken ones and those with upright shapes were considered as regular shape carrot. After imaging, image processing was started by an algorithm programmed in Matlab R2012a medium. Then some shape features such as length, width, breadth, perimeter, elongation, compactness, roundness, area, eccentricity, centroid, centroid non-homogeneity, and width non-homogeneity were extracted. After the selection of efficient features, artificial neural networks and support vector machine were used to classify the efficient features.  Results and Discussion The number of neurons in the hidden layers of artificial neural network models were varied to find the optimal model. The highest percentage of the correct classification rate (98.50%) belonged to the structure of 2-10-16, which in fact has 16 neurons in the input layer, 10 neurons in the hidden layer and 2 neurons in the output layer. This model has also the lowest mean squared error and the highest correlation coefficient of the test data, 0.90 and 2.52, respectively. This network was a feed forward back propagation error type and the activation functions in hidden and output layers were Tansig and Perlin, respectively. The correct classification rate of the support vector machine method was 89.62%. The confusion matrix of support vector machine method showed that out of 56 usual samples, 42 specimens were correctly identified but 14 samples were mistakenly classified as unusual carrots. All 79 carrots with unusual shapes were correctly classified. The results obtained from the comparison of the performance of the two methods, the neural network method has a good superiority than the support vector machine for classification.  Conclusions In this research, the classification of carrots was based on its appearance. At first the physical characteristics and appearance attributes of the carrot samples were extracted and processed using image processing. Image analysis was included the classification of samples into two usual and unusual shapes, which to classify the extracted properties two methods were used: the artificial neural network (ANN) and support vector machine (SVM). The classification accuracy of the ANN method was higher than SVM. It can be said that the image processing method can be used to improve the traditional method for grading the carrot product in new ways. So, the marketability of the product will be increased, and thus its losses will be reduced. Also, the image processing technique can be used as a simple, fast and non-destructive alternative to other methods of extracting geometric properties of agricultural products. Finally, it can be stated that image processing method and machine vision are effective ways for improving the traditional sorting techniques for carrots.A JahanbakhshiK KheiralipourFerdowsi University of Mashhadarticlecarrotgradingmachine visionartificial neural networkssupport vector machineAgriculture (General)S1-972Engineering (General). Civil engineering (General)TA1-2040ENFAJournal of Agricultural Machinery, Vol 9, Iss 2, Pp 295-307 (2019)