Biologyarticle2026-12-01

Camera-based body weight estimation of fattening pigs under practical outdoor housing conditions using two-dimensional image analysis

Open access0 citations

Abstract

Accurate body weight measurement supports management, economic decision-making, and assessment of health and growth in pig production. Conventional weighing is time-consuming, labor-intensive, and stressful for animals and humans. Camera-based approaches may provide an alternative for automated monitoring. This study evaluated a two-dimensional camera-based system for body weight estimation in fattening pigs under practical production conditions. The study was conducted on a Swiss fattening farm with outdoor access and included 824 pigs monitored over 84 days. Body weights were recorded at three-week intervals, providing 1849 reference measurements, while top-view images were captured using a fixed 2D camera. Bounding-box-based and segmentation-based image-processing approaches were compared. Performance was evaluated using an animal-independent hold-out test dataset from the same farm (n = 193), covering reference body weight from 27 to 100 kg. The segmentation approach showed lower mean absolute error (11.6 vs. 13.4 kg), root mean squared error (14.3 vs. 17.0 kg), and mean bias (+7.84 vs. +9.61 kg) than the bounding-box approach. Mean absolute percentage error was 23.4% and 26.7%, respectively. Both approaches overestimated reference body weight on average, with performance varying across weight classes. Only images meeting visual image-quality criteria were included, meaning that the reported performance reflects selected suitable images rather than unrestricted fully automated processing under all farm conditions. Camera-based body weight estimation was feasible under commercial outdoor housing conditions, with segmentation improving prediction performance. However, remaining prediction errors limit precise individual body weight estimation. Further studies should evaluate the approach using larger, more diverse datasets across multiple farms.

// Source

View paper (DOI)Open access versionOpenAlexVeterinary and Animal SciencePublished 2026-12-01

Authors: Martina Schmid, Johannes Schmidt-Mosig, P. Gross, Niklas Rabe, Cornelia Mühlebach, Xaver Sidler, Dolf Kümmerlen, Thomas Echtermann

Institutions: University of Zurich