Hostname: page-component-7b7567c8c-fvjsw Total loading time: 0 Render date: 2026-11-14T04:25:26.711Z Has data issue: false hasContentIssue false

A new approach for categorizing pig lying behaviour based on a Delaunay triangulation method

Published online by Cambridge University Press:  29 June 2016

A. Nasirahmadi*
Affiliation:
School of Agriculture, Food and Rural Development, Newcastle University, Newcastle upon Tyne NE1 7RU, UKDepartment of Agricultural and Biosystems Engineering, University of Kassel, 34213 Witzenhausen, Germany
O. Hensel
Affiliation:
Department of Agricultural and Biosystems Engineering, University of Kassel, 34213 Witzenhausen, Germany
S. A. Edwards
Affiliation:
School of Agriculture, Food and Rural Development, Newcastle University, Newcastle upon Tyne NE1 7RU, UK
B. Sturm
Affiliation:
School of Agriculture, Food and Rural Development, Newcastle University, Newcastle upon Tyne NE1 7RU, UKDepartment of Agricultural and Biosystems Engineering, University of Kassel, 34213 Witzenhausen, Germany

Abstract

Machine vision-based monitoring of pig lying behaviour is a fast and non-intrusive approach that could be used to improve animal health and welfare. Four pens with 22 pigs in each were selected at a commercial pig farm and monitored for 15 days using top view cameras. Three thermal categories were selected relative to room setpoint temperature. An image processing technique based on Delaunay triangulation (DT) was utilized. Different lying patterns (close, normal and far) were defined regarding the perimeter of each DT triangle and the percentages of each lying pattern were obtained in each thermal category. A method using a multilayer perceptron (MLP) neural network, to automatically classify group lying behaviour of pigs into three thermal categories, was developed and tested for its feasibility. The DT features (mean value of perimeters, maximum and minimum length of sides of triangles) were calculated as inputs for the MLP classifier. The network was trained, validated and tested and the results revealed that MLP could classify lying features into the three thermal categories with high overall accuracy (95.6%). The technique indicates that a combination of image processing, MLP classification and mathematical modelling can be used as a precise method for quantifying pig lying behaviour in welfare investigations.

Information

Type
Research Article
Copyright
© The Animal Consortium 2016 
Figure 0

Figure 1Schematic representation of research room showing the location of temperature sensors and cameras.

Figure 1

Figure 2Application of the ellipse fitting technique to a group of lying pigs.

Figure 2

Table 1Group lying patterns of pigs with their subsequent mathematical description

Figure 3

Figure 3Fitted ellipses in different lying patterns: (a) touching ellipses (black) with their parameters (blue) and a triangle of Delaunay triangulation (red) in cold situations (close pattern), (b) in normal situations (normal pattern) and (c) in warm situations (far pattern).

Figure 4

Figure 4The three lying patterns for each thermal category allocated with their SD bar. LRST=lower than room set temperature; ARST=room set temperature; HRST=higher than room set temperature.

Figure 5

Figure 5The area under the curve (AUC) and the relative operating characteristic values of network test set. LRST=lower than room set temperature; ARST=room set temperature; HRST=higher than room set temperature.

Figure 6

Table 2Statistical data (average, minimum, maximum and SD) of the Delaunay triangulation features in different thermal categories

Figure 7

Table 3The artificial neural network analysis: sensitivity, specificity and accuracy for the test data set