基于改进YOLO v3-tiny的奶牛乳房炎自动检测方法
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:

国家重点研发计划项目(2016YFD0700204)


Automatic Detection Method for Dairy Cow Mastitis Based on Improved YOLO v3-tiny
Author:
Affiliation:

Fund Project:

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

    针对利用热红外技术检测奶牛乳房炎精度低的问题,提出了一种改进YOLO v3-tiny的奶牛乳房炎自动检测方法,构建了自动检测奶牛关键部位模型。改进YOLO v3-tiny算法以YOLO v3-tiny为基础,首先在卷积层与池化层之间加入残差网络,增加网络深度,进行深层次地特征提取、高精度地检测分类;其次在网络的关键位置加入了压缩激励(Squeeze and excitation, SE)注意力模块,强化有效特征,增强特征图的表现能力;最后比较了激活函数ReLU、Leaky ReLU与Swish的性能,发现激活函数Swish优于激活函数ReLU和Leaky ReLU,故将网络模型主干部分卷积层中的激活函数更改为Swish激活函数。改进后的奶牛关键部位检测模型检测结果准确率为94.8%,召回率为97.5%,平均检测精度为97.9%,F1值为96.1%,与传统模型相比,准确率提高了9.9个百分点,召回率提高了1.7个百分点,平均检测精度提高了2.2个百分点,F1值提高了6.2个百分点,性能指标均优于YOLO v3-tiny模型,满足实时检测的要求。使用该目标检测算法进行奶牛乳房炎检测试验,将获得的温差与温度阈值比较,判定奶牛乳房炎的发病情况,并以体细胞计数法进行验证。结果表明,奶牛乳房炎检测精度可达77.3%。证明该方法能够实现奶牛关键部位的精准定位并应用于奶牛乳房炎检测。

    Abstract:

    Mastitis is a disease that affects the health of dairy cows. Timely detection of mastitis can improve the efficiency of mastitis treatment and reduce the economic loss of dairy industry. Aiming at the problem of low accuracy of thermal infrared technology in detection of cow mastitis, an improved YOLO v3-tiny algorithm was proposed to construct a model for automatic detection of key parts of dairy cows, and a model for automatic detection of key parts of dairy cows was constructed. The improved YOLO v3-tiny algorithm was based on the traditional YOLO v3-tiny. Firstly, the residual network was added between the convolutional layer and the pooling layer to increase the depth of network, so as to carry out deep level feature extraction, high-precision detection and classification. Secondly, the attention module of squeeze and exception (SE) was added to the key position of the network to strengthen the effective features and enhance the performance ability of the feature map. Finally, the performance of the activation function ReLU, Leaky ReLU and Swish was compared. It was found that the activation function Swish was better than the activation function ReLU and Leaky ReLU, so the activation functions in the convolutional layer of the backbone of the network model were changed to the Swish activation functions. The detection results of the improved model for key parts of dairy cows had the accuracy value of 94.8%, the recall rate value of 97.5%, the average detection accuracy value of 97.9%, and the F1 value of 96.1%. Compared with the results of traditional model, the accuracy value of the improved detection model was increased by 9.9 percentage points, the recall rate was increased by 1.7 percentage points, the average accurate detection accuracy value was increased by 2.2 percentage points, and the F1 value was increased by 6.2 percentage points, performance indicators were better than the traditional YOLO v3-tiny model, and it had little effect on the detection speed, which met the requirements of real-time detection. It showed that the algorithm can detect the key parts of dairy cows. And the target detection algorithm was used to conduct a dairy cow mastitis detection test. The obtained temperature difference was compared with a temperature threshold to determine the incidence of dairy cow mastitis, and the somatic cell count method was used to verify it. The results showed that the accuracy rate of dairy cow mastitis detection could reach 77.3%. It was proved that the method can achieve precise positioning of key parts of dairy cows and can be applied to detect dairy cow mastitis.

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

王彦超,康 熙,李孟飞,张旭东,刘 刚.基于改进YOLO v3-tiny的奶牛乳房炎自动检测方法[J].农业机械学报,2021,52(S0):276-283. WANG Yanchao, KANG Xi, LI Mengfei, ZHANG Xudong, LIU Gang. Automatic Detection Method for Dairy Cow Mastitis Based on Improved YOLO v3-tiny[J]. Transactions of the Chinese Society for Agricultural Machinery,2021,52(S0):276-283.

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2021-07-12
  • 最后修改日期:
  • 录用日期:
  • 在线发布日期: 2021-11-10
  • 出版日期: 2021-12-10