Skip to main content
SLU:s publikationsdatabas (SLUpub)

Forskningsartikel2019Vetenskapligt granskadÖppen tillgång

Automatic scoring of lateral and sternal lying posture in grouped pigs using image processing and Support Vector Machine

Nasirahmadi, Abozar; Sturm, Barbara; Olsson, Anne-Charlotte; Jeppsson, Knut-Hakan; Mueller, Simone; Edwards, Sandra; Hensel, Oliver

Sammanfattning

The behaviour of animals provides information on their health, welfare and environmental situation. In different climatic conditions, pigs adopt different lying postures; at higher temperatures they lie laterally on their side with their limbs extended, while in lower temperatures they will adopt a sternal or belly lying posture. Machine vision has been widely used in recent years to monitor individual and group pig behaviours. So, the aim of this study was to determine whether a two-dimensional imaging system could be used for lateral and sternal lying posture detection in grouped pigs under commercial farm conditions. An image processing algorithm with Support Vector Machine (SVM) classifier was applied in this work. Pigs were monitored by top view RGB cameras and animals were extracted from their background using a background subtracting method. Based on the binary image properties, the boundaries and convex hull of each animal were found. In order to determine their lying posture, the area and perimeter of each boundary and convex hull were calculated in lateral and sternal lying postures as inputs for training of a linear SVM classifier. The trained SVM was then used to detect the target postures in binary images. By means of the image features and the classification technique, it was possible to automatically score the lateral and sternal lying posture in grouped pigs under commercial farm conditions with high accuracy of 94.4% for the classification and 94% for the scoring (detection) phases using two-dimensional images.

Nyckelord

Image processing; Lateral; Lying postures; Sternal; SVM

Publicerad i

Computers and Electronics in Agriculture
2019, Volym: 156, sidor: 475-481