Pig Weight Estimation According to RGB Image Analysis

  • Andras Kárpinszky EN-CO Software cPlc
  • Gergely Dobsinszki EN-CO Software cPlc.
Keywords: image processing, pig size, decision support system, precision livestock farming


In pig farming, knowing the exact weight of each animal is critical for the owner. Such information can help determine the amount and type of feed that needs to be fed to a specific fattening pig. Weighing pigs has always been problematic, because it is highly time consuming, and herding the pigs on the scale is extremely cumbersome. Moreover, it causes stress to the animals. The aim of our study was to build an RGB-based system that could estimate the daily weight of pigs and individual animal weight. The study was set up in a 100-day rotation in a commercial pig farm where we monitored 32 pigs. We developed a system to identify the features of the pigs, more particularly the head, shoulder, belly, and rump part. Three different models
were tested, and their main differences were linked to image processing and training data. Using these models, we received higher than 97% accuracy between the predicted and the manually recorded weight of the animals. This system allows owners to manage and monitor their pigs using our web interface, allowing them to make crucial decisions during the farming process.


Download data is not yet available.

Author Biographies

Andras Kárpinszky, EN-CO Software cPlc

Budapest, Hungary

Gergely Dobsinszki, EN-CO Software cPlc.

Budapest, Hungary.

How to Cite
Kárpinszky A., & Dobsinszki G. (2023). Pig Weight Estimation According to RGB Image Analysis. Agricultura Scientia, 20(1), 51-60. https://doi.org/10.18690/agricsci.20.1.6