Sow farrowing detection and farrowing duration analysis based on Rotated Bounding Box and improved YOLOv8

Read full text
Authors: Yizhi Luo, Enli Lv, Xinyuan He, Zhixiong Zeng, Jingjing Xia
Cited by: 0
References: 38

Abstract

Sow farrowing represents a critical stage in porcine production, profoundly impacting farm profitability and the welfare of both sows and piglets. Timely monitoring of maternal behavior is essential for ensuring successful delivery outcomes. This study proposes a novel real-time detection framework designed to identify farrowing onset and track individual piglets, thereby enabling continuous monitoring of the birthing process and precise recording of the total farrowing duration. To balance high detection accuracy with the computational efficiency required for on-farm deployment, several architectural optimizations are introduced: firstly, the standard C2f module is replaced with Ghost lightweight convolutions to minimize model complexity; secondly, a parameter-free SimAM attention mechanism is integrated to refine feature extraction for subtle variations in sow posture and piglet appearance; and thirdly, a specialized detection head, incorporating a Lightweight Asymmetric Decoupled Head, is employed to address piglet orientation challenges through the implementation of rotated bounding boxes, thereby enhancing localization and classification precision. Experimental results demonstrate that the optimized model achieves a mean average precision (mAP@0.5) of 96.7%, representing a 2.0% improvement over the baseline, while maintaining a low computational footprint of 1.14 million parameters and 2.9 GFLOPs. This robust and efficient system facilitates practical real-time monitoring in commercial farm environments, providing critical data to improve sow welfare and production efficiency within the paradigm of smart livestock farming.

Fields of Study & Subjects

Smart Agriculture and AI Advanced Neural Network Applications Water Quality Monitoring Technologies

Publication details

Journal / source
Smart Agricultural Technology
Volume
13
Pages
101803–101803
Publication date
15 January 2026
Language
EN