基于Byte的生猪多目标跟踪算法

    Multi-object tracking of pig behavior using byte algorithm

    • 摘要: 多目标跟踪技术对猪只精细化养殖具有重要意义。针对饲养环境差异、猪只的快速移动以及群猪之间的频繁遮挡带来的多目标跟踪挑战,该研究提出了一种基于Byte的生猪多目标跟踪算法UKFTrack。首先,构建了一个采用定向边界框(oriented bounding box,OBB)标注的多样化数据集,涵盖了猪只多种运动模式以及不同饲养场景和猪群密度;其次,引入了无迹卡尔曼滤波以更好地适配OBB标注,并对传统的状态向量进行扩展,新增了角度和角速度参数,设计了残差函数处理角度变量以避免直接相减所造成的误差。最后,提出了一种多阶段匹配策略,通过多次轨迹关联和补充匹配机制,确保在遮挡严重或剧烈运动的情况下,仍能保持对目标的持续跟踪。试验结果表明,在白天重度密集、白天极度密集、夜间重度密集和夜间极度密集4种复杂场景下,UKFTrack的高阶跟踪精度(higher order tracking accuracy,HOTA)分别为96.10%、83.10%、76.50%和84.00%,IDF1得分(identification F1 score)分别为95.70%、78.20%、70.10%和77.60%。相较于ByteTrack,UKFTrack的HOTA分别提高了21.0、17.1、5.5和5.5个百分点,IDF1分别提高了4.7、9.1、5.8和5.0个百分点。因此,该研究提出的跟踪算法能实现复杂环境下群体生猪的准确跟踪,且展现出较强的鲁棒性,能为实际应用中猪只行为与健康监测提供可靠的技术支持。

       

      Abstract: Pig tracking has been one of the most important steps in precision livestock farming. Especially, some challenges are still remained on the multi-object tracking of pigs. Various factors also included the varying feeding environment, the rapid movements of pigs, and frequent occlusions among them. In this study, a UKFTrack algorithm was proposed using the Byte framework. An advanced unscented kalman filter (UKF) was also introduced to enhance the tracking accuracy and robustness. A multi-stage matching strategy was obtained in complex farming environments. A comprehensive dataset was constructed with the sufficient training data, in order to verify the effectiveness of the UKFTrack algorithm. Oriented bounding boxes (OBB) was then used to annotate the dataset. Diverse patterns of pig motion were observed in different feeding scenarios and densities. These scenarios were ranged from the rapid movements in the high-density farming to the sudden directional changes and nighttime feeding behaviors. The dataset with the considerable size also exceeded the quality, temporal length, and diversity of existing public datasets. Consequently, the robust data support was provided for the research on the multi-object tracking in complex environments of pig farming. A broad range of critical challenges was captured to test the tracking algorithms, such as the occlusions, lighting changes, and interactions between pigs. In terms of UKFTrack algorithm design, an improved version of the UKF was introduced to specifically tailor for the tracking tasks with the OBB annotations. The traditional state vector was extended into the new parameters, such as the angle and angular velocity. A residual function was designed to handle these angular variables. The relatively errors were effectively avoided to significantly improve the tracking accuracy. The errors were typically arisen from directly subtracting angles. Particularly, these errors often occurred when tracking pigs' irregular and abrupt movements in complex environments. Furthermore, the multi-stage matching strategy also confirmed the stable tracking performance, even in the severe occlusions or rapid movements of pigs. Trajectory association and supplementary matching were incorporated to prevent the target loss for the continuous tracking of individual pigs, even under the high levels of occlusion and disturbances. The experimental results demonstrated that the outstanding performance of the UKFTrack algorithm was achieved in the four challenging scenarios: dense pig farming during the day, extremely dense pig farming during the day, dense pig farming at night, and extremely dense pig farming at night. There were the impressive HOTA (higher order tracking accuracy) scores of 96.10%, 83.10%, 76.50%, and 84.00%, respectively, along with IDF1 (Identity F1 Score) scores of 95.70%, 78.20%, 70.10%, and 77.60%, respectively. The UKFTrack also shared the remarkable improvements, with the HOTA increasing by 21, 17.1, 5.5, and 5.5 percentage points in the respective scenarios, while the IDF1 increasing by 4.7, 9.1, 5.8, and 5.0 percentage points, compared with the baseline ByteTrack algorithm. Especially, the high accurate and robust tracking were obtained in the high-density farming, frequent occlusions, and complex pig movements. In conclusion, the UKFTrack algorithm was effectively realized the multi-object tracking in complex farming environments. A reliable tool was also offered for the real-world applications in the pig behavior monitoring and health assessment. The superior performance of UKFTrack was greatly contributed to the smart farming technologies. Looking ahead, the scalability of this UKFTrack algorithm can also be expected to extended into the larger datasets in the potential application, particularly for tracking other animals under multi-object scenarios. The UKFTrack algorithm can also hold the promise to significantly advance the precision of livestock monitoring in the challenging environments for the more efficient and effective smart farming.

       

    /

    返回文章
    返回