School of Computer and Information Engineering,Inner Mongolia Agricultural University,Hohhot 010011,China
Show less
文章历史+
Received
Accepted
Published
2025-05-15
2025-07-26
2026-02-01
Issue Date
2026-04-15
PDF (2859K)
摘要
绵羊的姿态与其健康及福利密切相关。随着智能化畜牧业需求的增长,自动、准确地检测绵羊姿态尤为尤为重要。本研究提出基于Mask R-CNN基准网络的新型RDS-Mask R-CNN绵羊姿态检测算法,以Res2Net101作为特征提取网络,同时引入可变形卷积(Deformable convolution network,DCN),以更精准捕捉绵羊在不同位置的姿态特征,并运用软非极大值抑制(Soft non-maximum suppression,Soft NMS)算法实现重叠实例目标的准确分割。结果表明:1)目标检测框架算法对比:与该领域最经典的YOLOv3和Faster R-CNN相比,改进的算法在平均精度均值(Mean average precision,mAP)上分别提升了16.68%和8.64%;2)不同改进策略的算法对比:改进算法相较于基准网络,边界框平均精度均值(Bounding box mean average precision,Bbox mAP)提高6.21%,分割平均精度均值(Segmentation mean average precision,Segm mAP)提高6.61%,分别达到87.34%和81.50%;3)相较于Mask R-CNN,改进模型在识别绵羊站立与躺卧姿态时边界框平均精度(Bounding box average precision,Bbox AP)分别提高了6.84%和5.58%,分割平均精度(Segmentation average precision,Segm AP)分别提高了7.25%和5.17%;4)模型可解释性可视化结果表明RDS-Mask R-CNN能精准捕获绵羊站立和躺卧姿态关键部位深度特征,表明模型自动检测可行且具有可解释性。综上,本研究提出的RDS-Mask R-CNN算法,有效提升了绵羊姿态检测的精准度,为智慧养殖提供了技术支撑。
Abstract
The posture of sheep is closely linked to their health and welfare. With the growing demand for smart livestock farming, automatic and accurate detection of sheep posture has become increasingly important. This study proposes a novel RDS-Mask R-CNN algorithm for sheep posture detection based on the Mask R-CNN baseline. Res2Net101 is employed as the feature extraction network, and the deformable convolution network (DCN) is introduced to more accurately capture posture features of sheep in different positions, while the soft non-maximum suppression (Soft NMS) algorithm is used to achieve accurate segmentation of overlapping instances. The results show that: 1) Comparison of object detection framework algorithms: Compared with the classic YOLOv3 and Faster R-CNN in this field, the proposed algorithm has improved mean average precision (mAP) by 16.68% and 8.64%, respectively. 2) Comparison of algorithms with different improvement strategies: The proposed algorithm increases the bounding box mean average precision (Bbox mAP) by 6.21% and segmentation mean average precision (Segm mAP) by 6.61% compared to the baseline, reaching 87.34% and 81.50%, respectively. 3) Compared with Mask R-CNN, the proposed model improved bounding box average precision (Bbox AP) by 6.84% and 5.58%,respectively, and segmentation average precision (Segm AP) by 7.25% and 5.17%, respectively, in recognizing the standing and lying postures of sheep. 4) Model interpretability visualization: This indicates that RDS-Mask R-CNN can accurately capture the deep features of key body parts in sheep’s standing and lying postures, demonstrating the feasibility and interpretability of automatic detection by the model. In conclusion, the proposed RDS-Mask R-CNN algorithm effectively improves the accuracy of sheep posture detection, providing technical support for smart livestock farming.
DengX M, WangW Y, WangX L, GeY Q. Practical thinking of supporting the modernization development of animal husbandry with scientific and technological innovation[J]. Chinese Journal of Animal Science, 2024, 60(3): 282-285 (in Chinese)
ChangQ, WangS Q, LiB L. The characteristics and influencing factors of vertical coordination in animal husbandry: An evidence from sheep and goat farmers in Inner Mongolia[J]. Journal of China Agricultural University, 2016, 21(7): 152-160 (in Chinese)
[5]
Vázquez DiosdadoJ A, BarkerZ E, HodgesH R, AmoryJ R, CroftD P, BellN J, CodlingE A. Classification of behaviour in housed dairy cows using an accelerometer-based activity monitoring system[J]. Animal Biotelemetry, 2015, 3(1): 15
[6]
TranD N, NguyenT N, KhanhP C P, TranD T. An IoT-based design using accelerometers in animal behavior recognition systems[J]. IEEE Sensors Journal, 2022, 22(18): 17515-17528
ZhangY, QiJ W, JinX, SiR, GaoJ, CaoQ N, AL M, CaoX B. Research progress on utilization of information technology in grazing sheep welfare[J]. Journal of Domestic Animal Ecology, 2018, 39(3): 8-11 (in Chinese)
[9]
HuJ Y, FeiR R, DuF, ChangP J, ZhangJ S. Convolutional neural network incorporating misclassification information for image recognition[J]. Soft Computing, 2024, 28(2): 1009-1021
[10]
JiaoL, DongS F, ZhangS Y, XieC J, WangH Q. AF-RCNN: An anchor-free convolutional neural network for multi-categories agricultural pest detection [J]. Computers and Electronics in Agriculture, 2020, 174: 105522
[11]
HansenM F, SmithM L, SmithL N, SalterM G, BaxterE M, FarishM, GrieveB. Towards on-farm pig face recognition using convolutional neural networks[J]. Computers in Industry, 2018, 98: 145-152
LiuY Y, CaoX, GuoB B, ChenH J, DaiZ C, GongC W. Research on detection algorithm about the posture of meat goose in complex scene based on improved YOLO v5[J]. Journal of Nanjing Agricultural University, 2023, 46(3): 606-614 (in Chinese)
TuS Q, LiuX L, LiangY, ZhangY, HuangL, TangY J. Behavior recognition and tracking method of group-housed pigs based on improved DeepSORT algorithm[J]. Transactions of the Chinese Society for Agricultural Machinery, 2022, 53(8): 345-352 (in Chinese)
[16]
YuL H, PuY H, CenH L, LiJ B, LiuS Y, NieJ, GeJ B, LvL Z, LiY L, XuY L, GuoJ J, ZhaoH X, WangK. A lightweight neural network-based method for detecting estrus behavior in ewes[J]. Agriculture, 2022, 12(8): 1207
[17]
JiangM, RaoY, ZhangJ Y, ShenY M. Automatic behavior recognition of group-housed goats using deep learning[J]. Computers and Electronics in Agriculture, 2020, 177: 105706
[18]
GuZ S, ZhangH Y, HeZ Q, NiuK. A two-stage recognition method based on deep learning for sheep behavior[J]. Computers and Electronics in Agriculture, 2023, 212: 108143
[19]
DengX F, YanX L, HouY M, WuH, FengC R, ChenL Y, BiM X, ShaoY. Detection of behaviour and posture of sheep based on YOLOv3[J]. INMATEH Agricultural Engineering, 2021: 457-466
[20]
TorralbaA, RussellB C, YuenJ. LabelMe: Online image annotation and applications[J]. Proceedings of the IEEE, 2010, 98(8): 1467-1484
[21]
LinT Y, MaireM, BelongieS, HaysJ, PeronaP, RamananD, DollárP, ZitnickC L. Microsoft COCO: Common objects in context[C]. In:Computer Vision–ECCV 2014. Cham: Springer, 2014: 740-755
YangQ N, JiangS, JiX D, YangX H. Monocular image depth estimation based on multi-scale feature extraction[J]. Journal of Beijing University of Chemical Technology :Natural Science Edition, 2023, 50(1): 97-106 (in Chinese)
[24]
LiC J, QuZ, WangS Y. PerspectiveNet: An object detection method with adaptive perspective box network based on density-aware [J]. IEEE Transactions on Intelligent Transportation Systems, 2023, 24(5): 5419-5429
[25]
GaoS H, ChengM M, ZhaoK, ZhangX Y, YangM H, TorrP. Res2Net: A new multi-scale backbone architecture [J]. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2021, 43(2): 652-662
[26]
ZhuX Z, HuH, LinS, DaiJ F. Deformable ConvNets V2: More deformable, better results [C]. In:2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). -,, Long Beach, CA, USA. IEEE, 2020: 9300-9308
[27]
YangH B, LiuP, HuY Z, FuJ N. Research on underwater object recognition based on YOLOv3[J]. Microsystem Technologies, 2021, 27(4): 1837-1844