PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
April 25, 2026Animals0 citationsOpen Access

Pose-Driven Cow Behavior Recognition in Complex Barn Environments: A Method Combining Knowledge Distillation and Deployment Optimization

View Full Paper
JHJie HuXLXuan LiRRRuyue Ren

Key Points

  • The aim is to improve cattle behavior recognition in complex barn environments for better monitoring and management.
  • Developed a 16-keypoint annotation scheme for bovine posture called cow16.
  • Utilized OpenPose to generate heatmaps and part affinity fields for posture representation.
  • Implemented knowledge distillation from a high-performance model to a lightweight model.
  • Combined training-stage class-imbalance correction with inference-stage multi-random-seed logits ensembling improved Macro-F1 score by 3.83 percentage points.
  • The distilled student model maintained competitive recognition performance while ensuring 1× inference cost.
  • Demonstrated a beneficial trade-off between accuracy and efficiency in cattle behavior recognition.

Abstract

Cattle behavior constitutes important phenotypic information reflecting animals’ health status, activity level, and welfare condition, and is therefore of considerable significance for automated monitoring and precision management in smart livestock farming. However, under complex barn conditions, cattle behavior recognition is easily affected by factors such as illumination variation, partial occlusion, background interference, and individual differences, thereby reducing recognition stability and generalization capability. To address these challenges, this study proposes a pose-driven method for cattle behavior recognition in complex barn environments. First, a 16-keypoint annotation scheme suitable for describing bovine posture, termed cow16, was constructed. Based on this scheme, OpenPose was employed to extract heatmaps (HMs) and part affinity fields (PAFs), which were then used to build an intermediate HM/PAF posture representation. Subsequently, this representation was taken as the input to a lightweight convolutional neural network for classifying three behavioral categories: stand, walk, and lying. On this basis, class-imbalance correction during training and a multi-random-seed logits ensemble strategy during inference were further introduced. In addition, knowledge distillation was adopted to transfer knowledge from a high-performance teacher model to a lightweight student model. Experimental results demonstrate that training-stage class-imbalance correction and inference-stage multi-random-seed logits ensembling exhibit strong complementarity; when combined, the AB configuration improves the test-set Macro-F1 by 3.83 percentage points. Moreover, the distilled student model still achieves competitive recognition performance while maintaining 1× inference cost, indicating a favorable trade-off between accuracy and efficiency. This study provides a useful reference for deployment-oriented cattle behavior recognition in smart farming scenarios and offers a lightweight technical basis for subsequent practical applications.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Hu et al. (2026) studied this question.

synapsesocial.com/papers/69ec5b2388ba6daa22dacb51https://doi.org/10.3390/ani16091301
Ask AI
Helpful
Bookmark
Share
View Full Paper