一种用于准确识别放牧绵羊活动的改进YOLOv5方法:活跃、不活跃、反刍行为。
An improved YOLOv5 method for accurate recognition of grazing sheep activities: active, inactive, ruminating behaviors.
作者信息
Dong Xiao, Zhang Zirui, Liao Juan, Chen Jiahong, Zhang Shunlong, Rao Yuan
机构信息
College of Engineering, Anhui Agricultural University, Hefei, China.
Anhui Provincial Key Laboratory of Smart Agricultural Technology and Equipment, Hefei, China.
出版信息
J Anim Sci. 2025 Jan 4;103. doi: 10.1093/jas/skaf084.
Having comprehensive access to information on sheep behaviors is essential for acquiring relevant insights into the health status of sheep and preventing diseases promptly. In particular, the ruminating behavior of sheep tends to reflect the health of their digestive system. However, due to the challenging nature of detecting ruminating behavior, traditional research has not yielded satisfactory results. In fact, many computer vision-based methods do not consider ruminating behavior as a distinctive feature for recognizing sheep behavior. To this end, we proposed an efficient model for recognizing active (standing, feeding, drinking, suckling), inactive (kneeling), and ruminating behaviors of sheep flock based on You Only Look Once-v5 (YOLOv5). This model improved the original structure through introducing the latest fully convolutional neural network in the backbone network, thereby reducing parameters cost and improving the classification accuracy. At the same time, the Spatial Pyramid Pooling Cross Stage Partial Connection module from You Only Look Once-v7 was added at the end of the backbone network, which improved the ability of the model to recognize multiscale sheep behaviors by increasing the receptive field. In the neck network part, a new algorithm named Concat optimization algorithm based on channel concatenation (CiConcat) was proposed to optimize the regular Concat operation, which enhanced the filtering ability of the small target detection layer of the model for nonruminating behavior information, thereby improving the ability to accurately extract local details. In addition, Selective Kernel attention mechanism was introduced before the detection head to enhance the feature extraction and expression ability of sheep. Finally, a detection head matching strategy was proposed to promote the accuracy when detecting distant ruminating behavior of sheep. This study used a self-collected and annotated outdoor sheep farm image dataset for experimental validation. The results showed that the improved network achieved the mean Average Precision of 94.1% on outdoor grazing sheep flock images which was more accurate and faster than state-of-the-arts. Simultaneously, the Average Precision for ruminating detection reached 80.2%, showing an improvement of 35.44% compared to YOLOv5, markedly enhancing the accuracy of ruminating behavior recognition. Our model was proved to be able to continuously monitor the behavior frequency of sheep, providing a robust technical foundation for analyzing behavior patterns and understanding the physiological and behavioral needs of sheep.
全面获取有关绵羊行为的信息对于深入了解绵羊的健康状况并及时预防疾病至关重要。特别是,绵羊的反刍行为往往能反映其消化系统的健康状况。然而,由于检测反刍行为具有挑战性,传统研究并未取得令人满意的结果。事实上,许多基于计算机视觉的方法并未将反刍行为视为识别绵羊行为的独特特征。为此,我们基于You Only Look Once-v5(YOLOv5)提出了一种用于识别羊群的活跃(站立、进食、饮水、哺乳)、不活跃(跪卧)和反刍行为的高效模型。该模型通过在骨干网络中引入最新的全卷积神经网络改进了原始结构,从而降低了参数成本并提高了分类准确率。同时,在骨干网络末尾添加了来自You Only Look Once-v7的空间金字塔池化跨阶段部分连接模块,通过增加感受野提高了模型识别多尺度绵羊行为的能力。在颈部网络部分,提出了一种基于通道拼接的新算法Concat优化算法(CiConcat)来优化常规的Concat操作,增强了模型小目标检测层对非反刍行为信息的过滤能力,从而提高了准确提取局部细节的能力。此外,在检测头之前引入了选择性内核注意力机制以增强绵羊的特征提取和表达能力。最后,提出了一种检测头匹配策略以提高检测绵羊远距离反刍行为时的准确率。本研究使用自行收集并标注的室外养羊场图像数据集进行实验验证。结果表明,改进后的网络在室外放牧羊群图像上的平均精度达到了94.1%,比现有技术更准确、更快。同时,反刍检测的平均精度达到80.2%,与YOLOv5相比提高了35.44%,显著提高了反刍行为识别的准确率。我们的模型被证明能够持续监测绵羊的行为频率,为分析行为模式和理解绵羊的生理及行为需求提供了坚实的技术基础。
相似文献
Cochrane Database Syst Rev. 2022-5-20
Psychopharmacol Bull. 2024-7-8
Cochrane Database Syst Rev. 2021-4-19
Cochrane Database Syst Rev. 2020-1-9
Clin Orthop Relat Res. 2024-9-1
Cochrane Database Syst Rev. 2017-12-22
本文引用的文献
Sensors (Basel). 2023-5-15
IEEE Trans Pattern Anal Mach Intell. 2016-6-6
IEEE Trans Pattern Anal Mach Intell. 2015-9
Br J Cancer. 2007-1-29