98%
921
2 minutes
20
Pig posture is closely linked with livestock health and welfare. There has been significant interest among researchers in using deep learning techniques for pig posture detection. However, this task is challenging due to variations in image angles and times, as well as the presence of multiple pigs in a single image. In this study, we explore an object detection and segmentation algorithm based on instance segmentation scoring to detect different pig postures (sternal lying, lateral lying, walking, and sitting) and segment pig areas in group images, thereby enabling the identification of individual pig postures within a group. The algorithm combines a residual network with 50 layers and a feature pyramid network to extract feature maps from input images. These feature maps are then used to generate regions of interest (RoI) using a region candidate network. For each RoI, the algorithm performs regression to determine the location, classification, and segmentation of each pig posture. To address challenges such as missing targets and error detections among overlapping pigs in group housing, non-maximum suppression (NMS) is used with a threshold of 0.7. Through extensive hyperparameter analysis, a learning rate of 0.01, a batch size of 512, and 4 images per batch offer superior performance, with accuracy surpassing 96%. Similarly, the mean average precision (mAP) exceeds 83% for object detection and instance segmentation under these settings. Additionally, we compare the method with the faster R-CNN object detection model. Further, execution times on different processing units considering various hyperparameters and iterations have been analyzed.
Download full-text PDF |
Source |
---|---|
http://dx.doi.org/10.1111/asj.13975 | DOI Listing |
Animal
July 2025
Adaptation Physiology Group, Department of Animal Sciences, Wageningen University & Research, PO Box 338, 6700 AH Wageningen, the Netherlands.
The tail of a pig can be positioned in various postures such as curled, straight out, hanging down or tucked against the body. The tail hanging down is suggested to be indicative of a negative emotional state in several situations. The objective of this study was to explore whether the hanging posture could also be used as an indicator of a negative emotional state in a novel situation.
View Article and Find Full Text PDFAnimals (Basel)
July 2025
School of Information and Artificial Intelligence, Anhui Agricultural University, Hefei 230036, China.
Accurate pig counting is crucial for precision livestock farming, enabling optimized feeding management and health monitoring. Detection-based counting methods face significant challenges due to mutual occlusion, varying illumination conditions, diverse pen configurations, and substantial variations in pig densities. Previous approaches often struggle with complex agricultural environments where lighting conditions, pig postures, and crowding levels create challenging detection scenarios.
View Article and Find Full Text PDFVet Sci
June 2025
College of Electronic Engineering, South China Agricultural University, Guangzhou 510642, China.
Understanding how piglets move around sows during posture changes is crucial for their safety and healthy growth. Automated monitoring can reduce farm labor and help prevent accidents like piglet crushing. Current methods (called Joint Detection-and-Tracking-based, abbreviated as JDT-based) struggle with problems like misidentifying piglets or losing track of them due to crowding, occlusion, and shape changes.
View Article and Find Full Text PDFAnimal
July 2025
Department of Applied Animal Science and Welfare, Swedish University of Agricultural Sciences, PO Box 234, SE-532 23 Skara, Sweden.
According to the EU legislation, all animals farmed for food production must be stunned before being exsanguinated (exempt slaughter prescribed by religious rites). Stunning methods must be reliable, effective, and free from avoidable pain, distress, and suffering, warranting continuous improvement. New methods must be thoroughly evaluated from an animal welfare perspective before approval.
View Article and Find Full Text PDFJ Anim Sci
January 2025
Division of Animal Sciences, University of Missouri, Columbia, MO 65211, USA.
Genomic selection for greater HS tolerance (TOL) may enhance swine welfare under heat stress (HS) conditions. However, genomic selection for TOL based on variability in performance traits across environmental gradients tends to be genetically associated with reduced productivity. Therefore, the study objective was to biologically characterize genomic selection for TOL based on the rate of vaginal temperature (TV) change with rising environmental temperatures.
View Article and Find Full Text PDF