Abstract
The increasing market interest in coffee beverage, lead coffee growers around the world to adopt more efficient methods to select the best-quality coffee beans. Currently, coffee beans selection is carried out either manually, which is a costly and unreliable process, or using electronic sorting machines, which are often inefficient because some coffee beans defects, such as sour and immature beans, have similar spectral response patterns. In this sense, the present work aimed to assess coffee beans quality using both computer vision and machine learning techniques, such as Support Vector Machine (SVM), Deep Neural Network (DNN) and Random Forest (RF). For this purpose, an algorithm written in Python language was developed to extract shape and color features from coffee beans images. The obtained dataset was then used as input to the machine learning algorithms. The data reported in this study pointed to the importance of color descriptors for classifying coffee beans defects. Among the variables used, the components from RGB (Red, Green and Blue) and HSV (Hue, Saturation and Value) color spaces presented the most relevant contribution for the classification models. Also, the results reported in this study provides evidence that computer vision along with machine learning algorithms can be used to identify and classify coffee beans with a very high accuracy (> 90%). Key words: Deep neural network; classification; artificial intelligence; image processing; granulometry.
Highlights
There is growing interest in international markets in differentiated agricultural products from the tropics
Major variations between classes were observed in color descriptors, in which the classes Black and Husk presented apparent differences in Bmean, Gmean, Graymean, Rmean and Vmean descriptors (Figure 4b, g, h, l, o) when compared to the classes Regular, Sour and Broken
The models pointed that the features area, Gmean and Vmean are the most important factors for classifying coffee beans according to its defects
Summary
There is growing interest in international markets in differentiated agricultural products from the tropics. A good quality beverage depends on several aspects such as appropriate pre-harvest cultural practices, favorable physiological and environmental factors, inherent plant characteristics, as well as appropriate management of harvest and post-harvest processes, including the coffee beans selection and beverage preparation (Barbosa et al, 2012; Silveira et al, 2016). About 20% of all coffee produced is compromised due to coffee beans defects (Ramalakshmi et al, 2009), which highly affects the price of coffee beans and its beverage quality. These defects, usually, are consequence of problems that occurred during harvesting and pre-processing operations (Franca; Oliveira, 2008)
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
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.