journal article·2021-06-01Open access

Imperfect Wheat Grain Recognition Combined with an Attention Mechanism and Residual Network

Weiwei Zhang, Huimin Ma, Xiaohong Li, Xiaoli Liu, Jun Jiao, Pengfei Zhang, Lichuan Gu, Qi Wang, Wenxia Bao, Shengnan Cao

Applied Sciences· Volume 11· Issue 11

Abstract

Intelligent detection of imperfect wheat grains based on machine vision is of great significance to correctly and rapidly evaluate wheat quality. There is little difference between the partial characteristics of imperfect and perfect wheat grains, which is a key factor limiting the classification and recognition accuracy of imperfect wheat based on a deep learning network model. In this paper, we propose a method for imperfect wheat grains recognition combined with an attention mechanism and residual network (ResNet), and verify its recognition accuracy by adding an attention mechanism module into different depths of residual network. Five residual networks with different depths (18, 34, 50, 101, and 152) were selected for the experiment, it was found that the recognition accuracy of each network model was improved with the attention mechanism, and the average recognition rate of ResNet-50 with the addition of the attention mechanism reached 96.5%. For ResNet-50 with the attention mechanism, the optimal learning rate was further screened as 0.0003. The average recognition accuracy reached 97.5%, among which the recognition rates of scab wheat grains, insect-damaged wheat grains, sprouted wheat grains, mildew wheat grains, broken wheat grains, and perfect wheat grains reached 97%, 99%, 99%, 95%, 96%, and 99% respectively. This work can provide guidance for the detection and recognition of imperfect wheat grains using machine vision.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Smart Agriculture and AI · Spectroscopy and Chemometric Analyses · Food Supply Chain Traceability

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Information and Computer, Anhui Agricultural University, Hefei 230036, China

National Engineering Research Center for Agro-Ecological Big Data Analysis & Application, Anhui University, Hefei 230601, China

Institute of Intelligent Machinery, Hefei Academy of Material Sciences, Chinese Academy of Sciences, Hefei 230031, China

Anhui Institute of Grains and Oil Sciences, Hefei 230031, China

Funding

马慧敏

References (30)

Show source-provided references
1. Chen, F.N. (2012). Real-Time Detection of Kernel-like Impurity and Unsound Kernel in Wheat Using Machine Vision. [Ph.D. Thesis, Zhejiang University].
2. Machine vision system for food grain quality evaluation: A review10.1016/j.tifs.2016.07.011 ↗
3. Comparison of illuminations to identify wheat classes using monochrome images10.1016/j.compag.2008.03.002 ↗
4. Identification of nine Iranian wheat seed varieties by textural analysis with image processing10.1016/j.compag.2012.02.005 ↗
5. Classification of cereal grains using wavelet, morphological, colour, and textural features of non-touching kernel images10.1016/j.biosystemseng.2007.11.013 ↗
6. Method for identification of external quality of wheat grain based on image processing and artificial neural network
7. Identification method of maize quality grades based on machine vision
8. Identification of unsound kernels in wheat based on image processing and neural network
9. Detecting vitreous wheat kernels using reflectance and transmittance image analysis10.1094/CCHEM.2004.81.5.594 ↗
10. A review on the main challenges in automatic plant disease identification based on visible range images10.1016/j.biosystemseng.2016.01.017 ↗
11. Deep learning in agriculture: A survey10.1016/j.compag.2018.02.016 ↗
12. Plant species classification using deep convolutional neural network10.1016/j.biosystemseng.2016.08.024 ↗
13. Pest identification via deep residual learning in complex background10.1016/j.compag.2017.08.005 ↗
14. Fuente, A., Yoon, S., Kim, S., and Park, D. (2017). A robust deep-learning-based detector for real-time tomato plant diseases and pests recognition. Sensors, 17.10.3390/s17092022 ↗
15. Rahnemoonfar, M., and Sheppard, C. (2017). Deep count: Fruit counting based on deep simulated learning. Sensors, 17.10.3390/s17040905 ↗
16. How deep learning extracts and learns leaf features for plant classification10.1016/j.patcog.2017.05.015 ↗
17. Deep learning for plant identification in natural environment
18. Forecasting yield by integrating agrarian factors and machine learning models: A survey10.1016/j.compag.2018.10.024 ↗
19. Cheng, F., Chen, F.N., and Ying, Y.B. (2010, January 16–17). Image recognition of unsound wheat using artificial neural network. Proceedings of the 2010 Second WRI Global Congress on Intelligent Systems, Wuhan, China.10.1109/GCIS.2010.220 ↗
20. Identification of unsound kernels in wheat based on CNN deep model
21. Identification method of unsound kernel wheat based on hyperspectral and convolution neural network
22. Wheat grain integrity image detection system based on CNN
23. Imperfect wheat kernel recognition combined with image enhancement and conventional neural network
24. A survey on fine-grained image categorization using deep convolutional features
25. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Kaiser, L., and Polosukhin, I. (2017). Attention is all you need. arXiv.
26. Woo, S., Park, J., Lee, J.Y., and Kweon, I.S. (2018). CBAM: Convolutional Block Attention Module, European Conference on Computer Vision Springer.10.1007/978-3-030-01234-2_1 ↗
27. Xu, L. (2019). Research on Fine-Grained Object Classification Method Based on Attention Mechanism. [Master’s Thesis, Agricultural University of Hebei].
28. Image recognition of soybean pests based on attention convolutional neural network
29. He, K., Zhang, X., Ren, S., and Sun, J. (2016, January 27–30). Deep residual learning for image recognition. Proceedings of the IEEE Conference on Computer Vision & Pattern Recognition, Las Vegas, NV, USA.10.1109/CVPR.2016.90 ↗
30. Grad-CAM: Visual explanations from deep networks via gradient-based localization10.1007/s11263-019-01228-7 ↗