基于改进YOLOv5网络的牧区牛粪检测方法
DOI:
作者:
作者单位:

1.内蒙古工业大学机械工程学院;2.内蒙古工业大学机械工程学院,呼和浩特010010

作者简介:

通讯作者:

中图分类号:

S22

基金项目:

内蒙古自治区科技计划项目(2022YFXZ0018);内蒙古自治区重点研发和成果转化计划(2023YFDZ0061)


Cattle manure detection method in pastoral area based on improved YOLOv5
Author:
Affiliation:

Inner Mongolia University of Technology, Faculty of Mechanical Engineering

Fund Project:

2022YFXZ0018;2023YFDZ0061

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    中国草原面积广阔,牛粪作为草原畜牧业的副产品,既对牧草生长有负面影响,又是重要的资源。牛粪分布零散,传统捡拾方式效率低,为了解决上述问题,该文提出一种改进牛粪图像检测模型,用于检测牧区牛粪,以提高牛粪捡拾的效率和智能化水平。(1)替换注意力机制轻量化主干网络EfficientFormerV2,提高对边界敏感性并减少模型复杂度。(2)改进颈部网络BiFPN,增强特征融合能力。(3)改进损失函数Inner-IoU,提高边界框回归的定位精度。(4)替换瓶颈层改进FasterNet block,以减少计算复杂度并加快推理速度。(5)添加捡拾判断机制,利用预测阶段检测框对区域牛粪做出分类。改进后的网络模型在准确率为92.6%,召回率为87.7%,平均精度均值为87.4%的情况下,参数量减少到4.02M,浮点运算量减少到8.1G,检测速度提升到34.7f/s。试验结果表明,改进模型在保持模型轻量化的同时,具有较高的平均精度均值,能够有效地完成牧区牛粪的识别与定位任务,适合在资源受限的移动设备和牧区环境中应用,为牛粪智能化捡拾车的研究提供技术支持。

    Abstract:

    China has a vast grassland area, and grassland animal husbandry is the main form of animal husbandry in grassland areas. Cow manure, as a by-product of grassland animal husbandry, is distributed on the vast grasslands. Cow manure not only has a negative impact on grass growth, but also serves as an important source of energy. The distribution of cow manure in natural grasslands is mainly characterized by scattered areas and concentrated areas. The main method of collecting cow manure in pastoral areas is manual picking. With the maturity of computer vision technology, it is possible to apply it to the collection of cow manure. This article proposes a cow manure image detection model based on improved YOLOv5. Firstly, replacing New CSP-Darknet53 with EfficientFormerV2 improves boundary sensitivity and reduces model complexity. Experimental results have shown that the computational complexity is significantly reduced compared to the original model, with significant advantages. Secondly, improving PANET to BiFPN enhances feature fusion capability and improves detection accuracy. Experimental results have shown an increase in detection accuracy. Once again, replace CIoU Loss with Inner IoU Loss to improve the localization accuracy of bounding box regression. When the ratio value is greater than 1, generate larger auxiliary bounding boxes to accelerate the convergence of the sample. Through comparative experiments with different ratio values, the best effect is achieved when the ratio value is 1.10. From then on, replacing the Bottleneck in the C3 module with an improved FasterNet block and using Leaky Relu instead of Relu as the activation function for the FasterNet block module resulted in significant improvements in accuracy, recall, and average precision. Additionally, the number of parameters and floating-point operations decreased significantly, reducing computational complexity and accelerating inference speed. Finally, add a picking judgment mechanism and use the YOLOv5 detection box to judge the size of the cow manure block and the density of the cow manure group, and based on this, classify the cow manure in a certain area, providing a basis for intelligent conditional picking of cow manure. The accuracy of the improved network model is 92.6%, the recall rate is 87.7%, the average accuracy is 87.4%, the parameter count is 4.02M, and the floating-point operation count is 8.1G. The improved model significantly reduces the parameter count and operation count while ensuring detection accuracy, significantly improving the performance of the model. This study established a dataset of cow manure in pastoral areas, and to improve data diversity, the collected data was randomly combined using five methods: flipping, scaling and translation, motion blur, random occlusion, and brightness change to enhance data augmentation. Multiple network comparison experiments were conducted on the improved model on a self built dataset, and the experimental results showed that the accuracy of the improved model was superior to other models with the same level of parameter and computational complexity. The improved YOLOv5 model can classify cow manure based on its different sizes during the inference stage and distinguish it using different colored bounding boxes. This study can achieve the recognition and localization of cow manure in pastoral areas, which helps to provide technical support for the research of intelligent cow manure picking vehicles.

    参考文献
    相似文献
    引证文献
引用本文

那日苏,翟立浩,邢海鹏,张泉.基于改进YOLOv5网络的牧区牛粪检测方法[J].农业工程学报,,(). NA Risu, ZHAI Lihao, XING Haipeng, zhangquan. Cattle manure detection method in pastoral area based on improved YOLOv5[J]. Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE),,().

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2024-05-02
  • 最后修改日期:2024-11-01
  • 录用日期:2024-11-27
  • 在线发布日期:
  • 出版日期:
文章二维码
您是第位访问者
ICP:京ICP备06025802号-3
农业工程学报 ® 2024 版权所有
技术支持:北京勤云科技发展有限公司