Agriculture Communications (Dec 2024)

A pig behavior-tracking method based on a multi-channel high-efficiency attention mechanism

  • Qifeng Li,
  • Zhenyuan Zhuo,
  • Ronghua Gao,
  • Rong Wang,
  • Na Zhang,
  • Yan Shi,
  • Tonghui Wu,
  • Weihong Ma

Journal volume & issue
Vol. 2, no. 4
p. 100062

Abstract

Read online

Summary: Given that the pig behavior reflects their health status, continuous and precise monitoring of behavior is important for effective health management and welfare protection. To mitigate potential tracking failures during analysis of video footage, we introduced a novel multi-target pig tracking method that consisted of detection and tracking components. The detection model was enhanced with an efficient attention mechanism and a Cross Stage Partial Darknet backbone network, which significantly improved detection accuracy. The tracking component used the Bytetrack algorithm to accurately track the movement trajectories of individual pigs. Together, these components were combined into the Dual-YOLOX-Tiny-ByteTrack (DYTB) model, which demonstrated superior performance in automatic monitoring of pig behaviors compared to previously published approaches. We established multi-object pig tracking datasets with 180,321 images to evaluate this method. The DYTB method achieved a pig detection accuracy of 98.3% and tracking accuracies of 95.3% and 97.1%. Compared to the YOLOX-Tiny-ByteTrack base model, DYTB showed a 3.4% improvement in multiple object tracking accuracy, making it a robust method for non-contact, intelligent monitoring of pig health and contributing to advances in precision livestock farming.

Keywords