Litcius/Paper detail

PBR-YOLO: A lightweight piglet multi-behavior recognition algorithm based on improved yolov8

Yizhi Luo, Kai Lin, Zixuan Xiao, Enli Lv, Xinyu Wei, Bin Li, Huazhong Lu, Zhixiong Zeng

2025Smart Agricultural Technology17 citationsDOIOpen Access PDF

Abstract

• To address these challenges, this paper proposes an efficient and lightweight method for multi-behavior recognition of piglets, aimed at overcoming the limitations of existing approaches and providing an end-to-end, cost-effective solution for practical applications. In addition, we conduct comprehensive experimental evaluations to compare the proposed method with several state-of-the-art approaches. The primary contributions of this paper are as follows: • A comprehensive dataset was established to encompass various piglet behaviors in an intensive farming environment, including high-quality annotations of multiple typical behaviors, making it suitable for behavior recognition research in complex settings. This dataset provides essential support for research in piglet behavior recognition and facilitates the evaluation and validation of different algorithms in practical applications. • An efficient and lightweight algorithm named Piglet Behavior Recognition-YOLO (PBR-YOLO) is proposed, capable of accurately detecting and recognizing multiple piglet behaviors in intensive farming environments. • A novel detection head module is proposed, featuring a parallel structure and shared convolution mechanism to enhance inference speed. In modern intensive pig farming, precise recognition of piglet behavior is essential for assessing growth and enhancing animal welfare; however, existing research largely focuses on adult pigs, lacking detailed classification for piglets, while traditional detection models face challenges in real-world farming environments due to large model parameters and high computational complexity. To overcome these limitations, this paper proposes a lightweight multi-behavior detection model for piglets based on YOLOv8, designed to recognize eight behaviors (Lying, Kneeling, Standing, Drinking, Suckling, Trampling, Hitting and Biting ear). Firstly, GhostNet is employed to replace the original backbone of YOLOv8, simplifying the architecture while improving detection speed, and the FasterNet Block, integrated with an efficient multi-scale attention (EMA) mechanism, is embedded into the C2f module to effectively facilitate the feature fusion process through enhanced feature extraction. Additionally, an efficient lightweight multi-path detection head (ELMD) is utilized to reduce computational complexity through parallel structures and shared convolutional parameters. Experimental results indicate that the improved model significantly outperforms the original YOLOv8n model, achieving a 2.5 % increase in precision, a 1.5 % improvement in mean average precision(mAP), a 9.1 ms reduction in inference latency, and a 59.1 % decrease in parameter count, resulting in a final model size of 3.6 MB. Compared to mainstream detection models like SSD, RT-DETR, Faster R-CNN, YOLOv5n, YOLOv7-tiny, and YOLOv10n, our improved model exhibits superior performance with a precision of 82.7 %, mAP of 78.5 % with 1.23M Parameters and 3.9G FLOPs, demonstrating its efficiency, accuracy, and lightweight design. To validate the improved YOLOv8 model's effectiveness on edge devices, the proposed model was deployed on the NVIDIA Jetson Orin NX platform, and its performance metrics were analyzed to assess its efficiency in recognizing multiple piglet behaviors. Finally, with TensorRT acceleration on the Jetson Orin NX platform, the average inference time per image reached 15.8 ms. This study offers a feasible solution for intelligent monitoring in intensive pig farming.

Topics & Concepts

Computer scienceAlgorithmArtificial intelligenceAnimal Behavior and Welfare StudiesFace and Expression RecognitionSmart Agriculture and AI