TSML: A New Pig Behavior Recognition Method Based on Two-Stream Mutual Learning Network

Sensors (Basel). 2023 May 26;23(11):5092. doi: 10.3390/s23115092.

Abstract

Changes in pig behavior are crucial information in the livestock breeding process, and automatic pig behavior recognition is a vital method for improving pig welfare. However, most methods for pig behavior recognition rely on human observation and deep learning. Human observation is often time-consuming and labor-intensive, while deep learning models with a large number of parameters can result in slow training times and low efficiency. To address these issues, this paper proposes a novel deep mutual learning enhanced two-stream pig behavior recognition approach. The proposed model consists of two mutual learning networks, which include the red-green-blue color model (RGB) and flow streams. Additionally, each branch contains two student networks that learn collaboratively to effectively achieve robust and rich appearance or motion features, ultimately leading to improved recognition performance of pig behaviors. Finally, the results of RGB and flow branches are weighted and fused to further improve the performance of pig behavior recognition. Experimental results demonstrate the effectiveness of the proposed model, which achieves state-of-the-art recognition performance with an accuracy of 96.52%, surpassing other models by 2.71%.

Keywords: animal welfare; behavior recognition; computer vision; pig breeding; two stream mutual learning.

MeSH terms

  • Animals
  • Breeding*
  • Humans
  • Motion
  • Neural Networks, Computer*
  • Swine