English

中国农机化学报

中国农机化学报 ›› 2024, Vol. 45 ›› Issue (8): 180-188.DOI: 10.13733/j.jcam.issn.2095‑5553.2024.08.026

• 农业信息化工程 • 上一篇    下一篇

基于StrongSORT算法的羊只多目标跟踪方法[

赵晓霞,程曼,袁洪波   

  • 出版日期:2024-08-15 发布日期:2024-07-26
  • 基金资助:
    河北省重点研发计划项目(21327402D);河北农业大学精准畜牧学科群(1090064)

A multi‑object tracking method for sheep based on StrongSORT algorithm 

Zhao Xiaoxia, Cheng Man, Yuan Hongbo   

  • Online:2024-08-15 Published:2024-07-26

摘要: 羊只的运动状态能够反映其健康状况,自动跟踪养殖场环境下的目标羊只是统计并分析其运动状态的前提。以圈养的羊只为试验对象,以YOLOv5-CBAM为前端检测器,结合目前比较先进的StrongSORT跟踪器,提出一种基于StrongSORT算法的羊只多目标跟踪方法。试验结果表明,在短视频跟踪中,对于10只羊的运动轨迹进行跟踪时,多目标跟踪准确度、多目标跟踪精确度、身份切换次数和IDF1值分别达到91.6%、0.269、52次和70.7%,与YOLOv5+StrongSORT算法相比,提出的YOLOv5-CBAM+StrongSORT算法的多目标跟踪准确度提高0.4%,多目标跟踪精确度基本不变,身份切换次数降低17.5%,IDF1提高3.2%;在长视频跟踪中,多目标跟踪准确度、多目标跟踪精确度、身份切换次数和IDF1值分别为57.3%、0.244、21次和47.9%,YOLOv5-CBAM+StrongSORT的优势主要体现在身份切换次数上,与YOLOv5+ByteTrack、YOLOv5+DeepSORT和YOLOv5+OCSORT相比,分别减少13次、10次和12次。

关键词: 羊只, 目标检测, 多目标跟踪, 改进YOLOv5, StrongSORT

Abstract: The behavior of sheep can reflect its health status and physiological stages. Automatic tracking of the objects for sheep in the farm environment is a prerequisite for statistics and analysis of its behavior. In this paper, captive sheep were used as the experimental subjects, and then a multiple object tracking method for sheep based on StrongSORT algorithm was proposed. It used YOLOv5-CBAM as the front⁃end detector, then combined the currently advanced StrongSORT tracker. The experimental results showed that, in the short video tracking, the multiple object tracking accuracy, multiple object tracking precision, the total number of identity switches and IDF1 of 10 sheep reached 91.6%, 0.269, 52 and 70.7%, respectively. Compared with the YOLOv5+StrongSORT algorithm, the multi‑object tracking accuracy of the YOLOv5-CBAM+StrongSORT algorithm proposed in this paper was improved by 0.4%, the multi‑object precision tracking was basically unchanged, the number of identity switching times was reduced by 17.5%, and the IDF1 value was increased by 3.2%. In the long video tracking, the above evaluation indicators were 57.3%, 0.244, 21 and 47.9%, respectively, and the advantages of YOLOv5-CBAM+StrongSORT were mainly reflected in the number of identity switches, which were reduced by 13, 10 and 12 times compared with YOLOv5+ByteTrack, YOLOv5+DeepSORT, and YOLOv5+OCSORT, respectively.

Key words: sheep, object detection, multiple object tracking, improved YOLOv5, StrongSORT

中图分类号: