Yang Aqing, Li Shimei, Tu Shuqin, Han Na, Zhang Lei, Luo Yizhi, Xue Yueju
College of Computer Science, Guangdong Polytechnic Normal University, Guangzhou 510665, China.
AI Middle Platform Department, Guangzhou Kingmed Diagnostics Group Co., Ltd., Guangzhou 510005, China.
Vet Sci. 2025 Jun 24;12(7):616. doi: 10.3390/vetsci12070616.
Understanding how piglets move around sows during posture changes is crucial for their safety and healthy growth. Automated monitoring can reduce farm labor and help prevent accidents like piglet crushing. Current methods (called Joint Detection-and-Tracking-based, abbreviated as JDT-based) struggle with problems like misidentifying piglets or losing track of them due to crowding, occlusion, and shape changes. To solve this, we developed MSHMTracker, a smarter tracking system that introduces a motion-status hierarchical architecture to significantly improve tracking performance by adapting to piglets' motion statuses. In MSHMTracker, a score- and time-driven hierarchical matching mechanism (STHM) was used to establish the spatio-temporal association by the motion status, helping maintain accurate tracking even in challenging conditions. Finally, piglet group aggregation or dispersion behaviors in response to sow posture changes were identified based on the tracked trajectory information. Tested on 100 videos (30,000+ images), our method achieved 93.8% tracking accuracy (MOTA) and 92.9% identity consistency (IDF1). It outperformed six popular tracking systems (e.g., DeepSort, FairMot). The mean accuracy of behavior recognition was 87.5%. In addition, the correlations (0.6 and 0.82) between piglet stress responses and sow posture changes were explored. This research showed that piglet movements are closely related to sow behavior, offering insights into sow-piglet relationships. This work has the potential to reduce farmers' labor and improve the productivity of animal husbandry.
了解仔猪在母猪姿势变化时如何围绕母猪移动,对它们的安全和健康成长至关重要。自动监测可以减少农场劳动力,并有助于预防仔猪被压等事故。当前的方法(称为基于联合检测与跟踪,简称为基于JDT)存在一些问题,比如由于拥挤、遮挡和形状变化而误识别仔猪或失去对它们的跟踪。为了解决这个问题,我们开发了MSHMTracker,这是一种更智能的跟踪系统,它引入了运动状态分层架构,通过适应仔猪的运动状态来显著提高跟踪性能。在MSHMTracker中,使用了一种分数和时间驱动的分层匹配机制(STHM),根据运动状态建立时空关联,即使在具有挑战性的条件下也有助于保持准确的跟踪。最后,根据跟踪的轨迹信息识别仔猪对母猪姿势变化的群体聚集或分散行为。在100个视频(30,000多张图像)上进行测试,我们的方法实现了93.8%的跟踪准确率(MOTA)和92.9%的身份一致性(IDF1)。它优于六种流行的跟踪系统(如DeepSort、FairMot)。行为识别的平均准确率为87.5%。此外,还探索了仔猪应激反应与母猪姿势变化之间的相关性(0.6和0.82)。这项研究表明,仔猪的运动与母猪行为密切相关,为母猪与仔猪的关系提供了见解。这项工作有可能减少农民的劳动力,并提高畜牧业的生产力。