Defective Wheat Kernel Recognition Using EfficientNet with Attention Mechanism and Multi-Binary Classification
Source abstract
Abstract
As a globally significant food crop, the assessment of wheat quality is essential for ensuring food security and enhancing the processing quality of agricultural products. Conventional methods for assessing wheat kernel quality are often inefficient and markedly subjective, which hampers their ability to accurately distinguish the complex and diverse phenotypic characteristics of wheat kernels. To tackle the aforementioned issues, this study presents an enhanced recognition method for defective wheat kernels, based on the EfficientNet-B1 architecture. Building upon the original EfficientNet-B1 network structure, this approach incorporates the lightweight attention mechanism known as CBAM (Convolutional Block Attention Module) to augment the model’s capacity to discern features in critical regions. Simultaneously, it modifies the classification head structure to facilitate better alignment with the data, thereby enhancing accuracy. The experiment employs a self-constructed dataset comprising five categories of wheat kernels—perfect wheat kernels, insect-damaged wheat kernels, scab-damaged wheat kernels, moldy wheat kernels, and black germ wheat kernels—which are utilized for training and validation purposes. The results indicate that the enhanced model attains a classification accuracy of 99.80% on the test set, reflecting an increase of 2.6% compared to its performance prior to the enhancement. Furthermore, the Precision, Recall, and F1-score all demonstrated significant improvements. The proposed model achieves near-perfect performance on several categories under controlled experimental conditions, with particularly high precision and recall for scab-damaged and insect-damaged kernels. This study demonstrates the efficacy of the enhanced EfficientNet-B1 model in the recognition of defective wheat kernels and offers novel technical insights and methodological references for intelligent wheat quality assessment.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Spectroscopy and Chemometric Analyses · Smart Agriculture and AI · Food Supply Chain Traceability
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
College of Science and Information Science, Qingdao Agricultural University, Qingdao 266109, China
College of Resource and Environment Science, China Agriculture University, Beijing 100193, China
Funding
Shandong Province Natural Science Foundation
References (32)
Show source-provided references
1. Study on the Impact of Import Source Diversification on China’s Wheat Import Risk from a Correlation Perspective
2. Interactive effects of irrigation and planting density on photosynthetic performance and yield of winter wheat10.1016/j.fcr.2025.110250 ↗
3. Optimizing the water-energy-food nexus in dryland winter wheat systems on the loess plateau10.1016/j.agwat.2025.109930 ↗
4. The influence of organic matter in paddy soil on the profiles of minerals and toxic heavy metals in rice grains10.1007/s42976-025-00678-9 ↗
5. Chemical and Functional Properties of Chin-Chin from Wheat, Soybeanand Millet Flour Blends10.9734/ajarr/2025/v19i101171 ↗
6. Forecasting the mid-and-long-term crop evapotranspiration for winter wheat in China using combination models based on public weather forecast data10.1016/j.compag.2025.110504 ↗
7. Sanna, M., Farbo, M.G., Valentoni, A., Melis, R., Porcu, M.C., Piu, P.P., Serra, M., and Pretti, L. (2025). Sensory Evaluation and Physicochemical Analysis of Beers with Old Sardinian Wheats. Appl. Sci., 15.10.3390/app15169138 ↗
8. Singh, G., and Joshi, N.K. (2025). Insect Pests of Wheat in North India: A Comprehensive Review of Their Bio-Ecology and Integrated Management Strategies. Agriculture, 15.10.3390/agriculture15192067 ↗
9. Application of enzymes in the quality improvement of whole wheat products: Effects on dietary fibre, dough rheology and gas phase10.1016/j.jcs.2025.104222 ↗
10. Wang, D., Shi, L., Yin, H., Cheng, Y., Liu, S., Wu, S., Yang, G., Dong, Q., Ge, J., and Li, Y. (2025). A Detection Approach for Wheat Spike Recognition and Counting Based on UAV Images and Improved Faster R-CNN. Plants, 14.10.3390/plants14162475 ↗
11. Chemical control of wheat sunn pest, Eurygaster integriceps, by UAV sprayer and very low volume knapsack sprayer10.1007/s12600-024-01166-2 ↗
12. Advancing deep learning for automated stroke detection: A review10.1016/j.hest.2025.07.002 ↗
13. Classification of different wheat flour types using hyperspectral imaging and machine learning techniques10.1016/j.infrared.2024.105520 ↗
14. Deep Learning-Based Multi-Class Pest and Disease Detection in Agricultural Fields10.9734/jsrr/2025/v31i12797 ↗
15. Szegedy, C., Liu, W., Jia, Y., Sermanet, P., Reed, S.E., Anguelov, D., Erhan, D., Vanhoucke, V., and Rabinovich, A. (2014). Going Deeper with Convolutions. arXiv.10.1109/CVPR.2015.7298594 ↗
16. Transfer Learning and Fine Tuning in Modified VGG for Haploid Diploid Corn Seed Images Classification
17. Approach for identifying crop seeds with similar appearances using hyperspectral images and improved ResNet 18 based on cloud platform10.1049/ell2.70102 ↗
18. Crop Seeds Classification Using Traditional Machine Learning and Deep Learning Techniques: A Comprehensive Survey10.1007/s42979-024-03379-y ↗
19. Deep Learning-Based Classification of Image Data Sets Containing 111 Different Seeds10.1002/adts.202300435 ↗
20. Fei, W., Yuying, J., Hongyi, G., Xinyu, C., and Li, L. (2022, January 23–26). Discrimination of wheat unsound grains based on deep learning and terahertz spectral image technology. Proceedings of the Seventeenth National Conference on Laser Technology and Optoelectronics, Shanghai, China.
21. Detection of Wheat Unsound Kernels Based on Improved ResNet10.1109/ACCESS.2022.3147838 ↗
22. Shen, R., Zhen, T., and Li, Z. (2023). Segmentation of Unsound Wheat Kernels Based on Improved Mask RCNN. Sensors, 23.10.3390/s23073379 ↗
23. Fast and accurate wheat grain quality detection based on improved YOLOv510.1016/j.compag.2022.107426 ↗
24. GFRnet: A grain fast recognition network for detecting unsound wheat kernels in grain storage10.1016/j.jspr.2025.102830 ↗
25. Real-Time Wheat Unsound Kernel Classification Detection Based on Improved YOLOv5:Regular Papers10.20965/jaciii.2023.p0474 ↗
26. MSPCNeXt: Multi-scale parallel convolution for identifying unsound kernels in stored wheat10.1016/j.jspr.2025.102559 ↗
27. Zhang, W., Ma, H., Li, X., Liu, X., Jiao, J., Zhang, P., Gu, L., Wang, Q., Bao, W., and Cao, S. (2021). Imperfect Wheat Grain Recognition Combined with an Attention Mechanism and Residual Network. Appl. Sci., 11.10.3390/app11115139 ↗
28. Tan, M., and Le, Q.V. (2019). EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks. arXiv.
29. Woo, S., Park, J., Lee, J.-Y., and Kweon, I.S. (2018). CBAM: Convolutional Block Attention Module. arXiv.10.1007/978-3-030-01234-2_1 ↗
30. Chen, M.S., Andrew, H., Menglong, Z., Andrey, Z., and Liang, C. (2018). MobileNetV2: Inverted Residuals and Linear Bottlenecks. arXiv.
31. Squeeze-and-Excitation Networks10.1109/TPAMI.2019.2913372 ↗
32. Grad-CAM: Visual Explanations from Deep Networks via Gradient-Based Localization10.1007/s11263-019-01228-7 ↗