Hostname: page-component-74656f9884-2dmjx Total loading time: 0 Render date: 2026-11-07T09:14:46.895Z Has data issue: false hasContentIssue false

Detection of mastitis and its stage of progression by automatic milking systems using artificial neural networks

Published online by Cambridge University Press:  24 December 2009

Zhibin Sun
Affiliation:
Centre for Advanced Computational Solutions (C-fACS), Lincoln University, New Zealand
Sandhya Samarasinghe*
Affiliation:
Centre for Advanced Computational Solutions (C-fACS), Lincoln University, New Zealand
Jenny Jago
Affiliation:
DairyNZ, Private Bag 3221, Hamilton, New Zealand
*
*For correspondence; e-mail: Sandhya.Samarasinghe@lincoln.ac.nz
Rights & Permissions [Opens in a new window]

Abstract

Two types of artificial neural networks, multilayer perceptron (MLP) and self-organizing feature map (SOM) were used to detect mastitis by automatic milking systems (AMS) using a new mastitis indicator that combined two previously reported indicators based on higher electrical conductivity (EC) and lower quarter yield (QY). Four MLPs with four combinations of inputs were developed to detect infected quarters. One input combination involved principal components (PC) adopted for addressing multi-collinearity in the data. The PC-based MLP model was superior to other non-PC-based models in terms of less complexity and higher predictive accuracy. The overall correct classification rate (CCR), sensitivity and specificity of this model were 90·74%, 86·90% and 91·36%, respectively. The SOM detected the stage of progression of mastitis in a quarter within the mastitis spectrum and revealed that quarters form three clusters: healthy, moderately ill and severely ill. The clusters were validated using k-means clustering, ANOVA and least significant difference. Clusters reflected the characteristics of healthy and subclinical and clinical mastitis, respectively. We conclude that the PC based model based on EC and QY can be used in AMS to detect mastitis with high accuracy and that the SOM model can be used to monitor the health status of the herd for early intervention and possible treatment.

Information

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

Table 1. Datasets with different input variables for multilayer perceptron (MLP) neural networks

Figure 1

Table 2. Prediction accuracy of the best multilayer perceptron (MLP) models for the four sets of inputs

Figure 2

Fig. 1. Relation of misclassified infected cases to healthy and infected cases for the validation data set. Crosses represent healthy cases; circles represent infected cases; triangles represent infected cases that were wrongly detected as healthy cases.

Figure 3

Fig. 2. Mapping of 3-dimensional data onto a two-dimensional SOM. The top-left panel shows the health states in terms of three clusters (white, grey and black clusters represent severely ill, moderately ill and healthy states, respectively). The other three panels show the distribution of the three input variables (necFD, nyfRM, and necRM) on the map. The bar below each panel shows the range of values for each variable. necRM, running mean of normalized electrical conductivity; necFD, fractional deviation from the smallest necRM; nyfRM, running mean of normalized quarter-yield fraction.

Figure 4

Fig. 3. SOM clustered three health categories (healthy, moderately ill, and severely ill) with respect to inputs (nyfRM, necFD and necRM) (empty circles indicate healthy, filled gray circles indicate moderately ill, and empty triangles indicate severely ill quarters). necRM, running mean of normalized electrical conductivity; necFD, fractional deviation from the smallest necRM; nyfRM, running mean of normalized quarter-yield fraction.

Figure 5

Table 3. Mean and sd of the variables in each self-organizing map (SOM) based health category