基于YOLO v9c和改进ByteTrack的群养羊只多目标跟踪方法
CSTR:
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:

国家自然科学基金项目(31872978)和国家重点研发计划青年科学家项目(2021YFD1300800)


Multi-objective Tracking Method for Sheep in Flock Breeding Based on YOLO v9c and Improved ByteTrack
Author:
Affiliation:

Fund Project:

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

    基于视频的群养羊只跟踪对于规模化、智能化、无人化养殖具有重要作用。然而,由于羊群存在严重的遮挡、重叠及移动速度过快等问题,在复杂场景下对多只羊只进行精确跟踪较为困难。针对上述问题,为提高跟踪技术对群养羊只的适应性,本文提出一种基于YOLO v9c与改进ByteTrack相结合的羊只多目标跟踪方法。在目标检测方面,将羊只的行为划分为站立、躺卧和进食3种状态。在多目标跟踪方面,对ByteTrack做了两点改进:引入时间距离匹配模块(Time and distance matching module,TDMM),将未匹配成功的高分框与未匹配轨迹按照丢失轨迹的丢失时长与欧氏距离相结合形成身份关联系数矩阵,再次进行匹配;引入ID延时分配机制,除第1帧外,将ID分配模块移至第3次匹配并加入条件,防止ID过早分配。试验结果表明,HOTA为72.051%,MOTA为88.326%,IDF1为88.237%,IDSW为8。与ByteTrack相比MOTA提高0.242个百分点,HOTA提高2.21个百分点,IDF1提高5.734个百分点,ID跳变次数降低了约46.67%。与算法Bot-SORT和OC-SORT相比,HOTA和IDF1有明显上升,并且ID跳变次数大幅降低。多羊只复杂场景情况下测试结果表明,基于改进ByteTrack算法具有良好的多目标跟踪性能,可以有效提高对群养羊只跟踪的准确性和可靠性。该算法在与YOLO v9c目标检测算法结合对群养羊只进行多目标跟踪并保存跟踪结果时,平均帧率为47.1f/s相较于Bot-SORT算法(34.2f/s)提高约37.7%。该算法能够实时可靠地监测羊只,为羊只养殖场管理者及时发现羊只行为异常以及监测羊只健康状况提供了有效的技术手段。

    Abstract:

    Video-based group sheep tracking plays an important role in large-scale, intelligent and unmanned breeding. However, due to the severe occlusion, overlap and excessive movement speed of the flock, it is difficult to accurately track multiple sheep in complex scenes. In order to solve the above problems and improve the adaptability of tracking technology to group sheep, a multi-objective sheep tracking method was proposed based on the combination of YOLO v9c and improved ByteTrack. In terms of object detection, the behavior of sheep was divided into three states: standing, grovel and eating. In terms of multi-target tracking, two improvements were made to ByteTrack: the time and distance matching module (TDMM) was introduced, and the unmatched high-score frame and unmatched trajectory were combined according to the loss time of the lost trajectory and the Euclidean distance to form an identity association coefficient matrix, and the matching was carried out again. The ID delay allocation mechanism was introduced, and in addition to the first frame, the ID allocation module was moved to the third match and conditions were added to prevent premature ID allocation. The results showed that the HOTA was 72.051%, the MOTA was 88.326%, the IDF1 was 88.237%, and the IDSW was 8. Compared with the original ByteTrack, MOTA was increased by 0.242 percentage points, HOTA was increased by 2.21 percentage points, IDF1 was increased by 5.734 percentage points, and the number of ID hops was decreased by about 46.67%. Compared with the representative algorithms Bot-SORT and OC-SORT, the number of ID hops was significantly increased in HOTA and IDF1, and the number of ID hops was greatly reduced. The test results in the complex scenario of multiple sheep showed that the improved ByteTrack algorithm had good multi-target tracking performance, which can effectively improve the accuracy and reliability of group sheep tracking. When the algorithm was combined with the YOLO v9c object detection algorithm to track the sheep in groups and save the tracking results, the average video processing speed was 47.1f/s, which was about 37.7% higher than that of the Bot-SORT algorithm of 34.2f/s. The algorithm can reliably monitor sheep in real time, which can provide an effective technical means for sheep farm managers to detect abnormal sheep behavior and monitor the health status of sheep in time.

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

郑芳,夏传宇,杜小勇,周勇,田芳,李国亮.基于YOLO v9c和改进ByteTrack的群养羊只多目标跟踪方法[J].农业机械学报,2025,56(10):585-595. ZHENG Fang, XIA Chuanyu, DU Xiaoyong, ZHOU Yong, TIAN Fang, LI Guoliang. Multi-objective Tracking Method for Sheep in Flock Breeding Based on YOLO v9c and Improved ByteTrack[J]. Transactions of the Chinese Society for Agricultural Machinery,2025,56(10):585-595.

复制
分享
相关视频

文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2024-06-11
  • 最后修改日期:
  • 录用日期:
  • 在线发布日期: 2025-10-10
  • 出版日期:
文章二维码