Method for Cattle Behavior Recognition and Tracking Based on Improved YOLO v8

被引:0
|
作者
Fu C. [1 ,2 ]
Ren L. [1 ,2 ]
Wang F. [1 ,2 ]
机构
[1] College of Information Science and Technology, Hebei Agricultural University, Baoding
[2] Hebei Key Laboratory of Agricultural Big Data, Baoding
关键词
behavior recognition; BoTSORT; cattle; multi-object tracking; object detection; YOLO v8;
D O I
10.6041/j.issn.1000-1298.2024.05.028
中图分类号
学科分类号
摘要
With the rapid development of animal husbandry in China, the transition from farmers' dispersed cattle breeding to precision husbandry has become increasingly important. Efficient management of breeding, behavior monitoring, disease prevention, and health assurance pose significant challenges. Traditionally, farmers have struggled to provide adequate attention to each cow. To address these challenges, a comprehensive approach was developed that accurately identified and tracked cattle behavior by analyzing behavior patterns and visual characteristics. Firstly, the improved YOLO v8 algorithm was employed for cattle target detection. The model's feature extraction capabilities were enhanced by incorporating the C2f faster structure into the Backbone and Neck. The upsampling operator CARAFE was introduced to expand the perception field for data feature fusion. To identify small area characteristics of young cattle, the BiFormer attention mechanism was integrated into the detection process, replacing the dynamic target detection head DyHead. This allowed to effectively integrate scale, space, and task perception. Furthermore, the issue of the uneven distribution of positive and negative samples and the limitations of CIoU was addressed by utilizing the Focal SIoU function. Finally, the behavior category information detected by YOLO v8 was incorporated into the BoTSORT algorithm to enable multi-target behavior recognition and tracking in complicated situations. The experiments demonstrated significant performance improvements. The proposed FBCD YOLO v8n model outperformed both the YOLO v5n, YOLO v7tiny, and the original YOLO v8n models, with an increase of 3. 4 percentage points, 3. 1 percentage points, and 2. 4 percentage points in mAP@ 0. 5, respectively, on the bovine behavior dataset. Notably, the accuracy of bovine back licking behavior recognition was increased by 7. 4 percentage points. Regarding tracking, the BoTSORT algorithm achieved an MOTA of 96. 1%, MOTP of 78. 6%, HOTA of 78. 9%, and IDF1 of 98. 0% . Compared with ByteTrack and StrongSORT algorithms, the proposed method of MOTA and IDF1 scores demonstrated significant tracking improvements. This research demonstrated that the multi-objective cattle behavior recognition and tracking system developed can provide effective assistance to farmers in monitoring cattle behavior within the cattle barn environment. It offered crucial technical support for automated and precise cattle breeding. © 2024 Chinese Society of Agricultural Machinery. All rights reserved.
引用
收藏
页码:290 / 301
页数:11
相关论文
共 30 条
  • [1] YAZDANBAKHSH O, ZHOU Y, DICK S., An intelligent system for livestock disease surveillance, Information Sciences, 100, 378, pp. 26-47, (2017)
  • [2] JENSEN M B., Behaviour around the time of calving in dairy cows, Applied Animal Behaviour Science, 139, 3 -4, pp. 195-202, (2012)
  • [3] CHEN C, ZHU W, NORTON T., Behaviour recognition of pigs and cattle: journey from computer vision to deep learning, Computers and Electronics in Agriculture, 187, (2021)
  • [4] BAI Qiang, GAO Ronghua, ZHAO Chunjiang, Et al., Multi-scale behavior recognition method for dairy cows based on improved YOLO v5s network, Transactions of the CSAE, 38, 12, pp. 163-172, (2022)
  • [5] WANG Zheng, XU Xingshi, HUA Zhixin, Et al., Lightweight recognition for the oestrus behavior of dairy cows combining YOLO v5n and channel pruning, Transactions of the CSAE, 38, 23, pp. 130-140, (2022)
  • [6] WANG R, GAO Z, LI Q, Et al., Detection method of cow estrus behavior in natural scenes based on improved YOLO v5, Agriculture, 12, 9, (2022)
  • [7] LI Qi, SHANG Jianglan, LI Baoshan, Grassland cattle tracking system based on YOLO v3 and Deep SORT, Transducer and Microsystem Technologies, 40, 6, pp. 83-85, (2021)
  • [8] REDMON J, FARHADI A., YOLO v3: an incremental improvement, (2018)
  • [9] CHO C A, THI T Z, IKUO K., Black cow tracking by using deep learning-based algorithms, 13, 12, (2022)
  • [10] WOJKE N, BEWLEY A, PAULUS D., Simple online and realtime tracking with a deep association metric, 2017 IEEE International Conference on Image Processing (ICIP), pp. 3645-3649, (2017)