With the spread of intensive, large-scale finishing pig farming, the increase in farm size has led to more serious problems relating to hierarchy within pig groups. Due to genetic differences among individual finishing pigs, those that grow faster attain a higher social rank. Larger and more aggressive pigs continuously acquire more resources, further limiting the survival space of weaker pigs. Therefore, finishing pigs must be grouped rationally, and the management of weaker pigs must be improved.

Materials and Methods: This study designed and implemented an intelligent sorting system based on weight estimation, taking into account current finishing pig farming requirements and actual production environments. The main hardware structure of the sorting equipment comprises a collection lane, a sorting lane, and sorting equipment. Experimental data from the original point clouds of the scenes were collected in the cloud and processed to extract the back point cloud of finishing pigs. Based on the morphological characteristics of finishing pigs, the back point cloud segmentation method was used to automatically extract key features such as hip width, hip height, shoulder width, shoulder height, and body length.

The segmentation algorithm first calculates the centroid of the points and the eigenvectors of the covariance matrix to reconstruct the coordinate system of the points. Then, based on the variation characteristics and geometric shape of consecutive horizontal sections, hip-width and shoulder-width sections are extracted, and the related features are calculated. Weight estimation was performed using Random Forest models, a multilayer perceptron (MLP), linear regression based on the least squares method, and ridge regression, with parameter optimization performed using Bayesian optimization. Mean squared error, mean absolute error, and mean relative error were used as evaluation metrics to assess model performance. Finally, classification capability was evaluated usingthe median and mean weights of fattening pigs as partitioning criteria.

Results: The experimental results show that the system's mean relative error in weight estimation is approximately 2,90% and the total time for the partitioning process is less than 15 seconds, meeting the needs of practical production.

Liu, L.; Ou, Y.; Zhao, Z.; Shen, M.; Zhao, R.; Liu, L. The Development of a Sorting System Based on Point Cloud Weight Estimation for Fattening Pigs. Agriculture 2025, 15, 365. https://doi.org/10.3390/agriculture15040365

Development of a sorting system based on weight estimation using point cloud data for finishing pigs — Illustration 1