An Explainable and Lightweight Deep Convolutional Neural Network for Quality Detection of Green Coffee Beans
Open Access
- 29 October 2022
- journal article
- research article
- Published by MDPI AG in Applied Sciences
- Vol. 12 (21) , 10966
Abstract
In recent years, the demand for coffee has increased tremendously. During the production process, green coffee beans are traditionally screened manually for defective beans before they are packed into coffee bean packages; however, this method is not only time-consuming but also increases the rate of human error due to fatigue. Therefore, this paper proposed a lightweight deep convolutional neural network (LDCNN) for a quality detection system of green coffee beans, which combined depthwise separable convolution (DSC), squeeze-and-excite block (SE block), skip block, and other frameworks. To avoid the influence of low parameters of the lightweight model caused by the model training process, rectified Adam (RA), lookahead (LA), and gradient centralization (GC) were included to improve efficiency; the model was also put into the embedded system. Finally, the local interpretable model-agnostic explanations (LIME) model was employed to explain the predictions of the model. The experimental results indicated that the accuracy rate of the model could reach up to 98.38% and the F1 score could be as high as 98.24% when detecting the quality of green coffee beans. Hence, it can obtain higher accuracy, lower computing time, and lower parameters. Moreover, the interpretable model verified that the lightweight model in this work was reliable, providing the basis for screening personnel to understand the judgment through its interpretability, thereby improving the classification and prediction of the model.Keywords
All Related Versions
Funding Information
- Ministry of Science and Technology, Taiwan (MOST 111-2221-E-197-020-MY3)
This publication has 24 references indexed in Scilit:
- Smart agriculture: real‐time classification of green coffee beans by using a convolutional neural networkIET Smart Cities, 2020
- ShuffleNet V2: Practical Guidelines for Efficient CNN Architecture Design2018
- MobileNetV2: Inverted Residuals and Linear Bottlenecks2018
- "Why Should I Trust You?"2016
- Deep Residual Learning for Image Recognition2016
- A computer vision system for coffee beans classification based on computational intelligence techniquesJournal of Food Engineering, 2016
- Ochratoxigenic fungi associated with green coffee beans (Coffea arabica L.) in conventional and organic cultivation in BrazilBrazilian Journal of Microbiology, 2013
- Evaluation of green coffee beans quality using near infrared spectroscopy: A quantitative approachFood Chemistry, 2012
- Influence of Coffee Drinking on Subsequent Risk of Hepatocellular Carcinoma: A Prospective Study in JapanJNCI: Journal of the National Cancer Institute, 2005
- Chemical composition of defective coffee beansFood Chemistry, 1999