A Cattle Behavior Recognition Method Based on Graph Neural Network Compression on the Edge

  • Hongbo Liu
  • , Ping Song*
  • , Xiaoping Xin
  • , Yuping Rong
  • , Junyao Gao
  • , Zhuoming Wang
  • , Yinglong Zhang
  • *Corresponding author for this work

Research output: Contribution to journalArticlepeer-review

Abstract

Cattle behavior is closely related to their health status, and monitoring cattle behavior using intelligent devices can assist herders in achieving precise and scientific livestock management. Current behavior recognition algorithms are typically executed on server platforms, resulting in increased power consumption due to data transmission from edge devices and hindering real-time computation. An edge-based cattle behavior recognition method via Graph Neural Network (GNN) compression is proposed in this paper. Firstly, this paper proposes a wearable device that integrates data acquisition and model inference. This device achieves low-power edge inference function through a high-performance embedded microcontroller. Secondly, a sequential residual model tailored for single-frame data based on Inertial Measurement Unit (IMU) and displacement information is proposed. The model incrementally extracts deep features through two Residual Blocks (Resblocks), enabling effective cattle behavior classification. Finally, a compression method based on GNNs is introduced to adapt edge devices’ limited storage and computational resources. The method adopts GNNs as the backbone of the Actor–Critic model to autonomously search for an optimal pruning strategy under Floating-Point Operations (FLOPs) constraints. The experimental results demonstrate the effectiveness of the proposed method in cattle behavior classification. Moreover, enabling real-time inference on edge devices significantly reduces computational latency and power consumption, thereby highlighting the proposed method’s advantages for low-power, long-term operation.

Original languageEnglish
Article number430
JournalAnimals
Volume16
Issue number3
DOIs
Publication statusPublished - Feb 2026
Externally publishedYes

Keywords

  • cattle behavior recognition
  • embedded machine learning
  • model compression
  • wearable devices

Fingerprint

Dive into the research topics of 'A Cattle Behavior Recognition Method Based on Graph Neural Network Compression on the Edge'. Together they form a unique fingerprint.

Cite this