Quality and Defect Inspection of Green Coffee Beans Using a Computer Vision System

There is an increased industry demand for efficient and safe methods to select the best-quality coffee beans for a demanding market. Color, morphology, shape and size are important factors that help identify the best quality beans; however, conventional techniques based on visual and/or mechanical inspection are not sufficient to meet the requirements. Therefore, this paper presents an image processing and machine learning technique integrated with an Arduino Mega board, to evaluate those four important factors when selecting best-quality green coffee beans. For this purpose, the k-nearest neighbor algorithm is used to determine the quality of coffee beans and their corresponding defect types. The system consists of logical processes, image processing and the supervised learning algorithms that were programmed with MATLAB and then burned into the Arduino board. The results showed this method has a high effectiveness in classifying each single green coffee bean by identifying its main visual characteristics, and the system can handle several coffee beans present in a single image. Statistical analysis shows the process can identify defects and quality with high accuracy. The artificial vision method was helpful for the selection of quality coffee beans and may be useful to increase production, reduce production time and improve quality control.

[1]  Ahmad Banakar,et al.  Machine vision system for grading of dried figs , 2015, Comput. Electron. Agric..

[2]  Silvia Matiacevich,et al.  Quality assessment of blueberries by computer vision , 2011 .

[3]  José Blasco,et al.  Machine Vision-Based Measurement Systems for Fruit and Vegetable Quality Control in Postharvest. , 2017, Advances in biochemical engineering/biotechnology.

[4]  Da-Wen Sun,et al.  Recent developments and applications of image features for food quality evaluation and inspection – a review , 2006 .

[5]  En Li,et al.  Apple detection during different growth stages in orchards using the improved YOLO-V3 model , 2019, Comput. Electron. Agric..

[6]  Navid Razmjooy,et al.  A real-time mathematical computer method for potato inspection using machine vision , 2012, Comput. Math. Appl..

[7]  Adriana S. Franca,et al.  Composition of green and roasted coffees of different cup qualities , 2005 .

[8]  Hong Sun,et al.  Potato quality grading based on machine vision and 3D shape analysis , 2018, Comput. Electron. Agric..

[9]  Anil K. Jain,et al.  A wrapper-based approach to image segmentation and classification , 2004, IEEE Transactions on Image Processing.

[10]  Mohammad Shorif Uddin,et al.  Machine vision based papaya disease recognition , 2020, J. King Saud Univ. Comput. Inf. Sci..

[11]  Cheng Fang,et al.  Visual quality detection of aquatic products using machine vision , 2014 .

[12]  Kelvin Beleño Sáenz,et al.  Clasificación de los frutos de café según su estado de maduración y detección de la broca mediante técnicas de procesamiento de imágenes , 2016 .

[13]  P. Vithu,et al.  Machine vision system for food grain quality evaluation: A review , 2016 .

[14]  Bayram Cetisli,et al.  Design of an automatic apple sorting system using machine vision , 2016, Comput. Electron. Agric..

[15]  Xiaofeng Zhu,et al.  Efficient kNN Classification With Different Numbers of Nearest Neighbors , 2018, IEEE Transactions on Neural Networks and Learning Systems.

[16]  Jaime Gomez-Gil,et al.  Leaf classification in sunflower crops by computer vision and neural networks , 2011 .

[17]  Ferhat Kurtulmuş,et al.  Classification of pepper seeds using machine vision based on neural network , 2016 .

[18]  Davide Giacalone,et al.  Common roasting defects in coffee: Aroma composition, sensory characterization and consumer perception , 2019, Food Quality and Preference.

[19]  Naoshi Kondo,et al.  Machine vision based soybean quality evaluation , 2017, Comput. Electron. Agric..

[20]  Bruno Henrique Groenner Barbosa,et al.  Recognition of coffee roasting degree using a computer vision system , 2019, Comput. Electron. Agric..

[21]  Giovanni Attolico,et al.  Non-destructive and contactless quality evaluation of table grapes by a computer vision system , 2019, Comput. Electron. Agric..

[22]  Rafael Rieder,et al.  Computer vision and artificial intelligence in precision agriculture for grain crops: A systematic review , 2018, Comput. Electron. Agric..

[23]  Flavio Prieto,et al.  Clasificación de granos de café usando FPGA , 2011 .

[24]  Young K. Chang,et al.  Current and future applications of statistical machine learning algorithms for agricultural machine vision systems , 2019, Comput. Electron. Agric..

[25]  Bruno H.G. Barbosa,et al.  A computer vision system for coffee beans classification based on computational intelligence techniques , 2016 .

[26]  Faruq Mohammad,et al.  Feature decision-making ant colony optimization system for an automated recognition of plant species , 2015, Expert Syst. Appl..

[27]  O. Chang,et al.  Artificial Vision Techniques to Optimize Strawberry's Industrial Classification , 2016, IEEE Latin America Transactions.

[28]  Anuja Bhargava,et al.  Fruits and vegetables quality evaluation using computer vision: A review , 2021, J. King Saud Univ. Comput. Inf. Sci..

[29]  Giovanni Attolico,et al.  Non-destructive evaluation of quality and ammonia content in whole and fresh-cut lettuce by computer vision system. , 2014, Food research international.

[30]  Edgar Chambers,et al.  Evolution of sensory aroma attributes from coffee beans to brewed coffee. , 2011 .