Hostname: page-component-7b7567c8c-tnzcf Total loading time: 0 Render date: 2026-11-14T01:18:07.624Z Has data issue: false hasContentIssue false

Mastitis detection in dairy cows: the application of support vector machines

Published online by Cambridge University Press:  15 April 2013

B. MIEKLEY*
Affiliation:
Institute of Animal Breeding and Husbandry, Hermann-Rodewald-Straße 6, 24118 Kiel, Germany
I. TRAULSEN
Affiliation:
Institute of Animal Breeding and Husbandry, Hermann-Rodewald-Straße 6, 24118 Kiel, Germany
J. KRIETER
Affiliation:
Institute of Animal Breeding and Husbandry, Hermann-Rodewald-Straße 6, 24118 Kiel, Germany
*
*To whom all correspondence should be addressed. Email: bmiekley@tierzucht.uni-kiel.de
Rights & Permissions [Opens in a new window]

Summary

The current investigation analysed the applicability of support vector machines (SVMs), a sub-discipline in the field of artificial intelligence, for the early detection of mastitis. Data used were recorded on the Karkendamm dairy research farm (Kiel, Germany) between January 2010 and December 2011. Data from 215 cows in their first 200 days in milk (DIM) were analysed. Mastitis was specified according to veterinary treatments and defined as disease blocks. The two different definitions used varied solely in the sequence length of the blocks. Only the days before the treatment were included in the blocks. The following parameters were used for the recognition of mastitis: milk electrical conductivity (MEC), milk yield (MY), stage of lactation, month, mastitis history during lactation, deviation from the 5-day moving average of MEC as well as MY, and the 5-day moving standard deviations of the same traits. To develop and verify the model of the SVMs, the mastitis dataset was divided into training and test datasets. Support vector machines are tools for statistical pattern recognition, focusing on algorithms capable of learning and adapting the structure of the input parameters based on the training dataset. The results show that the block sensitivity of mastitis detection considering both mastitis definitions was 84·6%, while specificity was 71·6 and 78·3%, respectively. Showing feasible features for pattern recognition of biological data, SVMs can principally be applied for disease detection. However, without further performance improvement or different study settings (e.g. other indicator variables) SVMs cannot be easily implemented into practical usage.

Information

Type
Animal Research Papers
Copyright
Copyright © Cambridge University Press 2013 
Figure 0

Table 1.Number of all, healthy and ill cows as well as the mean (s.d. in parenthesis) of the measured variables milk electrical conductivity (MEC) and milk yield (MY) for training and test datasets

Figure 1

Table 2.Number of days of health and days of disease (proportion of days of health and days of disease in parenthesis) according to the different mastitis definitions considered

Figure 2

Fig. 1.The margin, separating hyperplane (decision boundary) and support vectors for a two-class classification problem.

Figure 3

Fig. 2.A process description of an SVM for disease detection.

Figure 4

Fig. 3.Receiver operator characteristic (ROC) and their corresponding AUC values for the training process depending on mastitis definition.

Figure 5

Table 3.Results of mastitis detection for the training and test datasets depending on the two disease definitions