Hostname: page-component-74656f9884-8rzl6 Total loading time: 0 Render date: 2026-11-06T07:58:37.064Z Has data issue: false hasContentIssue false

Developing a multi-Kinect-system for monitoring in dairy cows: object recognition and surface analysis using wavelets

Published online by Cambridge University Press:  03 February 2016

J. Salau*
Affiliation:
Institute of Animal Breeding and Husbandry, Kiel University, Olshausenstraße 40, 24098 Kiel, Germany TiDa Tier und Daten GmbH, Bosseer Str. 4c, 24259 Westensee/Brux, Germany
J. H. Haas
Affiliation:
Institute of Animal Breeding and Husbandry, Kiel University, Olshausenstraße 40, 24098 Kiel, Germany
G. Thaller
Affiliation:
Institute of Animal Breeding and Husbandry, Kiel University, Olshausenstraße 40, 24098 Kiel, Germany
M. Leisen
Affiliation:
Rinderzucht Schleswig Holstein eG, Rendsburger Str. 178, 24537 Neumünster, Germany
W. Junge
Affiliation:
Institute of Animal Breeding and Husbandry, Kiel University, Olshausenstraße 40, 24098 Kiel, Germany

Abstract

Camera-based systems in dairy cattle were intensively studied over the last years. Different from this study, single camera systems with a limited range of applications were presented, mostly using 2D cameras. This study presents current steps in the development of a camera system comprising multiple 3D cameras (six Microsoft Kinect cameras) for monitoring purposes in dairy cows. An early prototype was constructed, and alpha versions of software for recording, synchronizing, sorting and segmenting images and transforming the 3D data in a joint coordinate system have already been implemented. This study introduced the application of two-dimensional wavelet transforms as method for object recognition and surface analyses. The method was explained in detail, and four differently shaped wavelets were tested with respect to their reconstruction error concerning Kinect recorded depth maps from different camera positions. The images’ high frequency parts reconstructed from wavelet decompositions using the haar and the biorthogonal 1.5 wavelet were statistically analyzed with regard to the effects of image fore- or background and of cows’ or persons’ surface. Furthermore, binary classifiers based on the local high frequencies have been implemented to decide whether a pixel belongs to the image foreground and if it was located on a cow or a person. Classifiers distinguishing between image regions showed high (⩾0.8) values of Area Under reciever operation characteristic Curve (AUC). The classifications due to species showed maximal AUC values of 0.69.

Information

Type
Research Article
Copyright
© The Animal Consortium 2016 
Figure 0

Figure 1 Prototype. A frame made of wood was constructed and six Kinect cameras were mounted (a). Each side was equipped with three cameras. One of those was mounted horizontally about 0.6 m above ground facing inwards (position of camera I). The other two were fixated top-to-top (b), with an angle of ~56° between them, in the diagonal corners of the frame (position of cameras II and III), facing the passing animals in diagonal top view. A schematic representation of the recording’s setting (c) illustrates their combined horizontal field of view (FOV): The FOV (112° from both sides) overlapped in a rhombus with ≈2.4 m diagonal. The multi-Kinect-system observed several steps of cows walking on the center line (dotted).

Figure 1

Table 1 Reconstruction errorsa for all four wavelets and for the sequences recorded in sideview and topview

Figure 2

Table 2 Computational times for the haar and the bior1.5 wavelet calculated on two separate computers (3.3 and 4.0 GHz) on 644 images chosen from sideview and topview sequences

Figure 3

Table 3 Descriptive statistics for the absolute values of horizontal, vertical, diagonal and summed details for every image averaged within image fore- and backgrounda

Figure 4

Table 4 Descriptive statistics for the averaged absolute values of horizontal, vertical, diagonal and summed details concerning the analysis of differences in cows’ and persons’ surfacesa

Figure 5

Table 5 Area under ROC curve (AUC) values for binary classifiers based on reconstructed wavelet detailsa

Figure 6

Figure 2 Reciever Operation Characteristic (ROC) curves for binary classifiers based on reconstructed wavelet details. The thresholds were equidistantly chosen between zero and mean(((AvAbsDet(backgr.)img)img). For this series sensitivity:=TP/(TP+FN) and specificity:=TN/(TN+FP) were calculated from the classifiers’ results, and the sensitivity values were plotted against the 1-specificity values. Exemplary ROC curves for the results of the classifiers used on the topview test sequence are presented. The classifiers were based on the horizontal and diagonal details calculated from wavelet transforms of one decomposition level using the haar wavelet.

Figure 7

Figure 3 An example for possible future analyses of cows’ surfaces using wavelet transform. The left illustration is an original depth map showing shoulders and back of a passing cow. It was recorded by a Kinect camera in topview position. The mid illustration presents a matrix with the pixelwise differences in vertical (Dv) and horizontal (Dh) details calculated from a level 1 decomposition using the haar wavelet: Dv-Dh. The gray areas denote the image background set to zero. Surface points where the difference ‘vertical-horizontal details’ is positive were marked orange, whereas the pixel colored in blue mark points where the difference ‘vertical-horizontal details’ is negative. The black line indicates a cutting line. The height profile through the cow’s surface along that cutting line is presented in the right illustration. The difference in detail values along that cutting line are additionally presented as orange and blue dots in the right illustration.

Supplementary material: PDF

Salau supplementary material

Figure S2

Download Salau supplementary material(PDF)
PDF 901.3 KB
Supplementary material: PDF

Salau supplementary material

Figure S1

Download Salau supplementary material(PDF)
PDF 1.9 MB

Salau supplementary material

Video

Download Salau supplementary material(Video)
Video 6.5 MB
Supplementary material: File

Salau supplementary material

Salau supplementary material S2

Download Salau supplementary material(File)
File 614.4 KB
Supplementary material: File

Salau supplementary material

Table S1

Download Salau supplementary material(File)
File 25.5 KB
Supplementary material: File

Salau supplementary material

Table S2

Download Salau supplementary material(File)
File 24.7 KB