Discrimination of foreign bodies in quinoa (Chenopodium quinoa Willd.) grains using convolutional neural networks with a transfer learning approach

PeerJ. 2023 Jan 30:11:e14808. doi: 10.7717/peerj.14808. eCollection 2023.

Abstract

The rising interest in quinoa (Chenopodium quinoa Willd.) is due to its high protein content and gluten-free condition; nonetheless, the presence of foreign bodies in quinoa processing facilities is an issue that must be addressed. As a result, convolutional neural networks have been adopted, mostly because of their data extraction capabilities, which had not been utilized before for this purpose. Consequently, the main objective of this work is to evaluate convolutional neural networks with a learning transfer for foreign bodies identification in quinoa samples. For experimentation, quinoa samples were collected and manually split into 17 classes: quinoa grains and 16 foreign bodies. Then, one thousand images were obtained from each class in RGB space and transformed into four different color spaces (L*a*b*, HSV, YCbCr, and Gray). Three convolutional neural networks (AlexNet, MobileNetv2, and DenseNet-201) were trained using the five color spaces, and the evaluation results were expressed in terms of accuracy and F-score. All the CNN approaches compared showed an F-score ranging from 98% to 99%; both color space and CNN structure were found to have significant effects on the F-score. Also, DenseNet-201 was the most robust architecture and, at the same time, the most time-consuming. These results evidence the capacity of CNN architectures to be used for the discrimination of foreign bodies in quinoa processing facilities.

Keywords: AlexNet; Convolutional neural networks; Deep learning; DenseNet-201; Discrimination; Image processing; MobileNetv2; Post-harvest; Quinoa; Transfer learning.

Publication types

  • Research Support, Non-U.S. Gov't

MeSH terms

  • Chenopodium quinoa* / chemistry
  • Diet, Gluten-Free
  • Machine Learning
  • Neural Networks, Computer
  • Seeds / chemistry

Grants and funding

This work was supported by Universidad Nacional de Frontera (CUI No. 2439545). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.