Estimation of Number of Pigs Taking in Feed Using Posture Filtration

Pork production is hugely impacted by the health and breeding of pigs. Analyzing the eating pattern of pigs helps in optimizing the supply chain management with a healthy breeding environment. Monitoring the feed intake of pigs in a barn provides information about their eating habits, behavioral patterns, and surrounding environment, which can be used for further analysis to monitor growth in pigs and eventually contribute to the quality and quantity of meat production. In this paper, we present a novel method to estimate the number of pigs taking in feed by considering the pig’s posture. In order to solve problems arising from using the pig’s posture, we propose an algorithm to match the pig’s head and the corresponding pig’s body using the major-and-minor axis of the pig detection box. In our experiment, we present the detection performance of the YOLOv5 model according to the anchor box, and then we demonstrate that the proposed method outperforms previous methods. We therefore measure the number of pigs taking in feed over a period of 24 h and the number of times pigs consume feed in a day over a period of 30 days, and observe the pig’s feed intake pattern.