A Computerized Mastitis Classification Aid Using a Dairy Herd-Based Records: Multi-Layer Perceptron (MLP) Neural Network With Backpropagation Approach

Document Type : Original Article

Authors

1 Department of Animal Wealth Development (Biostatistics), Faculty of Veterinary Medicine, Benha University, Moshtohor, Toukh, 13736, Qalyubia, Egypt.

2 Statistics Department, Faculty of Economics and Political Science, Cairo University, Giza, Egypt.

3 Animal Wealth Development Department, Faculty of Veterinary Medicine, Zagazig University, El-Zeraa str. 114, Sharkia, Zagazig 44511, Egypt.

4 Animal and poultry production, Department of Animal Wealth Development, Faculty of Veterinary Medicine, Benha University, Moshtohor, Toukh, 13736, Qalyubia, Egypt.

5 Genetic Engineering and Biotechnology Research Institute, University of Sadat City, El-Monofya, Egypt.

Abstract

The main objective of this study is to develop an efficient machine learning-based model for the early prediction of clinical mastitis in Holstein Friesian dairy cattle where the automatic milking system (AMS) data is used. The model aims to offer a costless opportunity for mastitis control and reduce its negative impact on the livestock production. Different forward multilayer perceptron (MLP) neural networks with backpropagation (BP) learning algorithms using various numbers of hidden neurons and epochs have been introduced. The results of the established models are evaluated based on different metrics such as the accuracy, the F1 core, the precision, the recall, and the area under the receiver operating characteristic curve (ROC-AUC). Out of the established twelve models, the optimal neural network was of a single hidden layer of 15 hidden neurons, Relu hidden activation function, sigmoid activation function at the output layer, and on training the model for 100 epochs, achieved a high classification accuracy of 86%, F1-score (78%), precision (93%), Recall (67%), and an excellent ROC-AUC (82%). The study demonstrated that the total milk this lactation (TOTM), days in milk (DIM), days open, milk peak (MPEAK), 305-day mature equivalent milk production (305 ME), and daily milk yield (DMY) are important inputs for the model training. The results show that the forward neural network (FNN) with a backpropagation algorithm can offer opportunities to integrate clinical mastitis prediction within a computerized decision support tool.

Keywords

Main Subjects