An Improved YOLOv5 Model: Application to Mixed Impurities Detection for Walnut Kernels

被引:15
作者
Yu, Lang [1 ]
Qian, Mengbo [1 ]
Chen, Qiang [1 ]
Sun, Fuxing [1 ]
Pan, Jiaxuan [1 ]
机构
[1] Zhejiang A&F Univ, Coll Opt Mech & Elect Engn, Hangzhou 311300, Peoples R China
关键词
YOLOv5; walnut kernels; impurities detection; small object detection; FOOD;
D O I
10.3390/foods12030624
中图分类号
TS2 [食品工业];
学科分类号
0832 ;
摘要
Impurity detection is an important link in the chain of food processing. Taking walnut kernels as an example, it is difficult to accurately detect impurities mixed in walnut kernels before the packaging process. In order to accurately identify the small impurities mixed in walnut kernels, this paper established an improved impurities detection model based on the original YOLOv5 network model. Initially, a small target detection layer was added in the neck part, to improve the detection ability for small impurities, such as broken shells. Secondly, the Tansformer-Encoder (Trans-E) module is proposed to replace some convolution blocks in the original network, which can better capture the global information of the image. Then, the Convolutional Block Attention Module (CBAM) was added to improve the sensitivity of the model to channel features, which make it easy to find the prediction region in dense objects. Finally, the GhostNet module is introduced to make the model lighter and improve the model detection rate. During the test stage, sample photos were randomly chosen to test the model's efficacy using the training and test set, derived from the walnut database that was previously created. The mean average precision can measure the multi-category recognition accuracy of the model. The test results demonstrate that the mean average precision (mAP) of the improved YOLOv5 model reaches 88.9%, which is 6.7% higher than the average accuracy of the original YOLOv5 network, and is also higher than other detection networks. Moreover, the improved YOLOv5 model is significantly better than the original YOLOv5 network in identifying small impurities, and the detection rate is only reduced by 3.9%, which meets the demand of real-time detection of food impurities and provides a technical reference for the detection of small impurities in food.
引用
收藏
页数:15
相关论文
共 31 条
  • [11] Optimizing the Hyperparameter Tuning of YOLOv5 for Underwater Detection
    Isa, Iza Sazanita
    Rosli, Mohamed Syazwan Asyraf
    Yusof, Umi Kalsom
    Maruzuki, Mohd Ikmal Fitri
    Sulaiman, Siti Noraini
    [J]. IEEE ACCESS, 2022, 10 : 52818 - 52831
  • [12] Detection of mold on the food surface using YOLOv5
    Jubayer, Fahad
    Soeb, Janibul Alam
    Mojumder, Abu Naser
    Paul, Mitun Kanti
    Barua, Pranta
    Kayshar, Shahidullah
    Akter, Syeda Sabrina
    Rahman, Mizanur
    Islam, Amirul
    [J]. CURRENT RESEARCH IN FOOD SCIENCE, 2021, 4 : 724 - 728
  • [13] ImageNet Classification with Deep Convolutional Neural Networks
    Krizhevsky, Alex
    Sutskever, Ilya
    Hinton, Geoffrey E.
    [J]. COMMUNICATIONS OF THE ACM, 2017, 60 (06) : 84 - 90
  • [14] Kuznetsova A., 2020, INT S NEURAL NETWORK
  • [15] Lightweight target detection for the field flat jujube based on improved YOLOv5
    Li, Shilin
    Zhang, Shujuan
    Xue, Jianxin
    Sun, Haixia
    [J]. COMPUTERS AND ELECTRONICS IN AGRICULTURE, 2022, 202
  • [16] Walnut Fruit Processing Equipment: Academic Insights and Perspectives
    Liu, Mingzheng
    Li, Changhe
    Cao, Chengmao
    Wang, Liqiang
    Li, Xinping
    Che, Ji
    Yang, Huimin
    Zhang, Xiaowei
    Zhao, Huayang
    He, Guangzan
    Liu, Xiangdong
    [J]. FOOD ENGINEERING REVIEWS, 2021, 13 (04) : 822 - 857
  • [17] Ma L., 2021, Comput. Knowl. Technol, V17, P100
  • [18] Ma Songzhe, 2022, Journal of Physics: Conference Series, V2203, DOI 10.1088/1742-6596/2203/1/012030
  • [19] Foreign-body detection in dry food using continuous sub-terahertz wave imaging
    Ok, Gyeongsik
    Kim, Hyun Jung
    Chun, Hyang Sook
    Choi, Sung-Wook
    [J]. FOOD CONTROL, 2014, 42 : 284 - 289
  • [20] An improved YOLOv5 model based on visual attention mechanism: Application to recognition of tomato virus disease
    Qi, Jiangtao
    Liu, Xiangnan
    Liu, Kai
    Xu, Farong
    Guo, Hui
    Tian, Xinliang
    Li, Mao
    Bao, Zhiyuan
    Li, Yang
    [J]. COMPUTERS AND ELECTRONICS IN AGRICULTURE, 2022, 194