Skip to main content

Article Category

Article available in the folowing languages:

Deep learning-based automated pig feeding behaviour detection for healthier livestock

Say goodbye to traditional pig tracking, extra sensors and individual marking. A fast and accurate 2D camera-based deep learning system automatically recognises pig feeding behaviour, making early detection of health and welfare problems possible.

Digital Economy
Food and Natural Resources

When raising livestock, feeding and associated behaviours need to be accurately quantified in order to detect any health and welfare problems at an early stage. Changes in feeding behaviours are a sign of such problems, and even subtle differences in the way an animal consumes its food could help in spotting health and welfare issues in livestock. Researchers supported by the EU-funded HealthyLivestock and Feed-a-Gene projects have developed a promising new method for monitoring pig feeding and foraging that could help with the early detection of such problems. Described in a paper published in the ‘Biosystems Engineering’ journal, the automated detection method can be used in a variety of husbandry and management situations. Based on convolutional neural networks, the 2D camera-based deep learning method automatically detects pig feeding behaviour without the use of additional sensors or individual marking. According to the study, “the system operates on grayscale video images, and was trained to handle the constantly changing farm conditions, e.g. lighting conditions, problems of occlusion caused by other pigs, and insects occluding the image from the camera.” Feeding behaviours aren’t estimated using traditional pig tracking methods. Instead, the researchers used “GoogLeNet-like architectures … to monitor a smaller predefined pen area covering two food troughs and a simple, clearly defined area in front of those troughs. In this way, the proposed system avoids short ID track-related issues, which can continuously distort the accumulative feeding-behaviour recognition process.”

Detecting subtle behavioural changes

Detection of feeding behaviour is fast (0.02 seconds per image) and accurate (99.4 %). Unlike with traditional pig tracking, the system doesn’t overestimate the actual time spent feeding. This is because it can distinguish between non-nutritive visits (NNVs) to the feeding area (where the feet but not the head are inside the feeding trough) and feeding (with the head also inside the trough). “As our system focuses only on a subset of available feeding troughs within a commercial context, we demonstrate that sufficient data can be collected from this subset to identify changes associated in feeding behaviours at group level,” the study reports. The method was first validated using video footage from a commercial pig farm in different settings. Next, during a planned period of food restriction in which the pigs received 80 % of their daily food for 4 consecutive days, the team tested the method’s ability to detect changes in feeding and NNV behaviours. “We found that the method was able to automatically quantify the expected changes in both feeding and NNV behaviours,” the researchers stated. Furthering the aims of HealthyLivestock (Tackling Antimicrobial Resistance through improved livestock Health and Welfare) and Feed-a-Gene (Adapting the feed, the animal and the feeding techniques to improve the efficiency and sustainability of monogastric livestock production systems), the method could help in the early detection of health and welfare challenges of commercial pigs. Feed-a-Gene ended in early 2020, while the 4-year HealthyLivestock project concludes in 2022. For more information, please see: HealthyLivestock project Feed-a-Gene project website


HealthyLivestock, Feed-a-Gene, pig, feeding behaviour, livestock

Related articles

Scientific advances
Food and Natural Resources

10 November 2022

Scientific advances
Food and Natural Resources

1 December 2020