Hostname: page-component-74656f9884-npj9w Total loading time: 0 Render date: 2026-11-07T21:27:56.731Z 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, UK Department 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, UK Department 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 1 Schematic representation of research room showing the location of temperature sensors and cameras.

Figure 1

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

Figure 2

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

Figure 3

Figure 3 Fitted 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 4 The 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 5 The 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 2 Statistical data (average, minimum, maximum and SD) of the Delaunay triangulation features in different thermal categories

Figure 7

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