Artificial Intelligence in Agriculture (Jun 2019)

A computer vision system for defect discrimination and grading in tomatoes using machine learning and image processing

  • David Ireri,
  • Eisa Belal,
  • Cedric Okinda,
  • Nelson Makange,
  • Changying Ji

Journal volume & issue
Vol. 2
pp. 28 – 37

Abstract

Read online

With large-scale production and the need for high-quality tomatoes to meet consumer and market standards criteria, have led to the need for an inline, accurate, reliable grading system during the post-harvest process. This study introduced a tomato grading machine vision system based on RGB images. The proposed system performed calyx and stalk scar detection at an average accuracy of 0.9515 for both defected and healthy tomatoes by histogram thresholding based on the mean g-r value of these regions of interest. Defected regions were detected by an RBF-SVM classifier using the LAB color-space pixel values. The model achieved an overall accuracy of 0.989 upon validation. Four grading categories recognition models were developed based on color and texture features. The RBF-SVM outperformed all the explored models with the highest accuracy of 0.9709 for healthy and defected category. However, the grading accuracy decreased as the number of grading categories increased. A combination of color and texture features achieved the highest accuracy in all the grading categories in image features evaluation. This proposed system can be used as an inline tomato sorting tool to ensure that quality standards are adhered to and maintained. Keywords: Grading, Calyx, Defected, Recognition models, Machine vision