A Cattle Detection Algorithm Based on ResMO-Dense-YOLO

  • HUANG Anxiang ,
  • SHEN Lei ,
  • LAN Leibin ,
  • FANG Yihao
Expand
  • School of Communication Engineering, Hangzhou Dianzi University, Hangzhou Zhejiang 310018, China

Received date: 2023-05-08

  Online published: 2025-01-13

Abstract

Cattle target detection is a prerequisite for individual registration and recognition of cattle based on deep learning. The differences in lighting, color and breed in different actual scenarios make low-level features of cattle images diverse, while semantic information in high-level features cannot fully match the diverse low-level features, resulting in poor detection accuracy. In order to solve the problem of insufficient high-level feature semantics of the detection model, this paper designs a new cattle feature extraction backbone network ResMO Backbone and feature fusion network Dense Neck, and proposes a cattle detection algorithm based on ResMO Sense YOLO. In the backbone network, the ResMO module (ResBlock MHSA ODConv) is used to focus on the characteristics of cattle high-level features at multi-semantic level to enrich semantic information, and the SPPF structure and multi-layer convolution structure are combined to expand the receptive field, so that the model can better extract cattle high-level features; then, a feature pyramid based on DenseBlock and a feature fusion network cascaded with a path aggregation network based on DenseBlock are proposed, which utilize the feature reuse feature of DenseBlock and combine the multi-scale fusion feature of the feature pyramid and path aggregation network to further integrate the low-level feature position information and high-level feature semantic information of cattle, improving model detection accuracy. Compared with the FLYOLOv3, SSD and YOLOv5s, the model in this paper shows an average accuracy improvement of 40.1%, 30.3%, and 4.0% in the data sets of cow channels, cow sheds, and beef sheds collected in the laboratory. The recall rate increased by 34.9%, 23.1%, and 6.8%, respectively, and the mAP increased by 49.2%, 35.3%, and 5.0%.

Cite this article

HUANG Anxiang , SHEN Lei , LAN Leibin , FANG Yihao . A Cattle Detection Algorithm Based on ResMO-Dense-YOLO[J]. Journal of Hangzhou Dianzi University, 2024 , 44(6) : 20 -27 . DOI: 10.13954/j.cnki.hdu.2024.06.003

References

[1]何东健,刘冬,赵凯旋.精准畜牧业中动物信息智能感知与行为检测研究进展[J].农业机械学报,2016,47(5):231-244.
[2]康飞龙.基于机器学习的多目标猪只状态与个体行为识别研究[D].呼和浩特:内蒙古农业大学,2018.
[3]张丽娜.基于跨视角机器视觉的羊只体尺参数测量方法研究[D].呼和浩特:内蒙古农业大学,2017.
[4]李静.基于深度学习的群猪盘点算法研究[D].武汉:华中农业大学,2021.
[5]王红君,施楠,赵辉等.基于视觉定位的牧场奶牛自动跟踪定位系统研究[J].黑龙江畜牧兽医,2015(21):43-47.
[6]宋怀波,阴旭强,吴頔华,等.基于自适应无参核密度估计算法的运动奶牛目标检测[J].农业机械学报,2019,50(05):196-204.
[7]赵凯旋.基于机器视觉的奶牛个体信息感知及行为分析[D].杨陵:西北农林科技大学,2017.
[8]姜波.基于计算机视觉与深度学习的奶牛跛行检测方法研究[D].杨陵:西北农林科技大学,2020.
[9]刘建敏.基于深度学习的挤奶奶牛个体识别方法研究[D].杨陵:西北农林科技大学,2020.
[10]黄静,张健.一种基于改进SSD网络的猪个体目标检测方法研究[J].软件工程,2022,25(8):25-29.
[11]LIU W, ANGUELOV D, ERHAN D, et al. SSD: single shot MultiBox detector[EB/OL]. (2016-12-29)[2023-05-08]. http://arxiv.org/abs/1512.02325.
[12]REDMON J, FARHADI A. YOLOv3: An Incremental Improvement[EB/OL]. (2018-04-08)[2023-05-08]. http://arxiv.org/abs/1804.02767.
[13]CHEN Y P, DAI X Y, LIU M C, et al. Dynamic convolution: attention over convolution kernels[C]//2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). Seattle, WA, USA. IEEE, 2020:11027-11036.
[14]SRINIVAS A, LIN T Y, PARMAR N, et al. Bottleneck transformers for visual recognition[C]//2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). Nashville, TN, USA. IEEE, 2021: 16514-16524.
[15]VASWANI A, SHAZEER N, PARMAR N, et al. Attention Is All You Need[J]. Proceedings of the 31st International Conference on Neural Information Processing Systems, 2017:6000-6010.
[16]HUANG G, LIU Z, VAN DER MAATEN L, et al. Densely connected convolutional networks[C]//2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR). Honolulu, HI, USA. IEEE, 2017: 2261-2269.
Outlines

/

〈 〉