Hostname: page-component-74656f9884-kv2lp Total loading time: 0 Render date: 2026-11-05T11:07:59.486Z Has data issue: false hasContentIssue false

Principal component analysis for the early detection of mastitis and lameness in dairy cows

Published online by Cambridge University Press:  03 July 2013

Bettina Miekley*
Affiliation:
Institute of Animal Breeding and Husbandry, Hermann-Rodewald-Straße 6, D-24118 Kiel, Germany
Imke Traulsen
Affiliation:
Institute of Animal Breeding and Husbandry, Hermann-Rodewald-Straße 6, D-24118 Kiel, Germany
Joachim Krieter
Affiliation:
Institute of Animal Breeding and Husbandry, Hermann-Rodewald-Straße 6, D-24118 Kiel, Germany
*
*For correspondence; e-mail: bmiekley@tierzucht.uni-kiel.de
Rights & Permissions [Opens in a new window]

Abstract

This investigation analysed the applicability of principal component analysis (PCA), a latent variable method, for the early detection of mastitis and lameness. Data used were recorded on the Karkendamm dairy research farm between August 2008 and December 2010. For mastitis and lameness detection, data of 338 and 315 cows in their first 200 d in milk were analysed, respectively. Mastitis as well as lameness were specified according to veterinary treatments. Diseases were defined as disease blocks. The different definitions used (two for mastitis, three for lameness) varied solely in the sequence length of the blocks. Only the days before the treatment were included in the blocks. Milk electrical conductivity, milk yield and feeding patterns (feed intake, number of feeding visits and time at the trough) were used for recognition of mastitis. Pedometer activity and feeding patterns were utilised for lameness detection. To develop and verify the PCA model, the mastitis and the lameness datasets were divided into training and test datasets. PCA extracted uncorrelated principle components (PC) by linear transformations of the raw data so that the first few PCs captured most of the variations in the original dataset. For process monitoring and disease detection, these resulting PCs were applied to the Hotelling's T2 chart and to the residual control chart. The results show that block sensitivity of mastitis detection ranged from 77·4 to 83·3%, whilst specificity was around 76·7%. The error rates were around 98·9%. For lameness detection, the block sensitivity ranged from 73·8 to 87·8% while the obtained specificities were between 54·8 and 61·9%. The error rates varied from 87·8 to 89·2%. In conclusion, PCA seems to be not yet transferable into practical usage. Results could probably be improved if different traits and more informative sensor data are included in the analysis.

Information

Type
Research Article
Copyright
Copyright © Proprietors of Journal of Dairy Research 2013 
Figure 0

Table 1. Means of the analysed indicator variables for the training and test datasets of lameness and mastitis detection (sd in parenthesis)

Figure 1

Fig. 1. PCA and dimensionality reduction, based exemplarily on the indicator variables for mastitis detection and on one cow. The principal components t1 and t2 use the correlation of five variables (x1 = milk yield, x2 = milk electrical conductivity, x3 = feed intake, x4 = time at the through, x5 = number of visits) and break the detection process into two uncorrelated variables.

Figure 2

Fig. 2. Procedure of the principal component analysis (PCA) model construction and calculation of (new) principal components (PC(new)). On-line monitoring was based on Hotelling's T2 [T2(new) = (new) values of this chart] and residual [SPE(new) = (new) values of the residual chart] control charts with the corresponding control limits used (T2lim, SPElim).

Figure 3

Fig. 3. Example of a Hoteling's T2 (T2) and standard prediction error (SPE) control chart on one cow for mastitis detection. The measurements collected from the indicator variables at each time point are translated into one point on the T2 chart and one point on the SPE chart. The cow will be classified as ill if either the control limit of the T2 or SPE chart is passed.

Figure 4

Fig. 4. Receiver operating characteristic (ROC) curves for mastitis and lameness detection depending on the definitions used. The respective area under the curve (AUC) is stated in parenthesis below the curves.

Figure 5

Table 2. Results of mastitis (a) and lameness detection (b) depending on the disease definitions and requiring a block sensitivity of least 70%