MasPA: A Machine Learning Application to Predict Risk of Mastitis in Cattle from AMS Sensor Data

Mastitis is a common disease that prevails in cattle owing mainly to environmental pathogens; they are also the most expensive disease for cattle in dairy farms. Several prevention and treatment methods are available, although most of these options are quite expensive, especially for small farms. In...

Full description

Bibliographic Details
Main Authors: Naeem Abdul Ghafoor, Beata Sitkowska
Format: Article
Language:English
Published: MDPI AG 2021-08-01
Series:AgriEngineering
Subjects:
Online Access:https://www.mdpi.com/2624-7402/3/3/37
id doaj-66bd2281e616499295caad03eadc3cff
record_format Article
spelling doaj-66bd2281e616499295caad03eadc3cff2021-09-25T23:33:50ZengMDPI AGAgriEngineering2624-74022021-08-0133757558310.3390/agriengineering3030037MasPA: A Machine Learning Application to Predict Risk of Mastitis in Cattle from AMS Sensor DataNaeem Abdul Ghafoor0Beata Sitkowska1Department of Molecular Biology and Genetics, Faculty of Science, Mugla Sitki Kocman University, 48000 Mugla, TurkeyDepartment of Animal Biotechnology and Genetics, Faculty of Animal Breeding and Biology, University of Science and Technology, 85-084 Bydgoszcz, PolandMastitis is a common disease that prevails in cattle owing mainly to environmental pathogens; they are also the most expensive disease for cattle in dairy farms. Several prevention and treatment methods are available, although most of these options are quite expensive, especially for small farms. In this study, we utilized a dataset of 6600 cattle along with several of their sensory parameters (collected via inexpensive sensors) and their prevalence to mastitis. Supervised machine learning approaches were deployed to determine the most effective parameters that could be utilized to predict the risk of mastitis in cattle. To achieve this goal, 26 classification models were built, among which the best performing model (the highest accuracy in the shortest time) was selected. Hyper parameter tuning and K-fold cross validation were applied to further boost the top model’s performance, while at the same time avoiding bias and overfitting of the model. The model was then utilized to build a GUI application that could be used online as a web application. The application can predict the risk of mastitis in cattle from the inhale and exhale limits of their udder and their temperature with an accuracy of 98.1% and sensitivity and specificity of 99.4% and 98.8%, respectively. The full potential of this application can be utilized via the standalone version, which can be easily integrated into an automatic milking system to detect the risk of mastitis in real time.https://www.mdpi.com/2624-7402/3/3/37machine learningdairy scienceanimal sciencemastitis
collection DOAJ
language English
format Article
sources DOAJ
author Naeem Abdul Ghafoor
Beata Sitkowska
spellingShingle Naeem Abdul Ghafoor
Beata Sitkowska
MasPA: A Machine Learning Application to Predict Risk of Mastitis in Cattle from AMS Sensor Data
AgriEngineering
machine learning
dairy science
animal science
mastitis
author_facet Naeem Abdul Ghafoor
Beata Sitkowska
author_sort Naeem Abdul Ghafoor
title MasPA: A Machine Learning Application to Predict Risk of Mastitis in Cattle from AMS Sensor Data
title_short MasPA: A Machine Learning Application to Predict Risk of Mastitis in Cattle from AMS Sensor Data
title_full MasPA: A Machine Learning Application to Predict Risk of Mastitis in Cattle from AMS Sensor Data
title_fullStr MasPA: A Machine Learning Application to Predict Risk of Mastitis in Cattle from AMS Sensor Data
title_full_unstemmed MasPA: A Machine Learning Application to Predict Risk of Mastitis in Cattle from AMS Sensor Data
title_sort maspa: a machine learning application to predict risk of mastitis in cattle from ams sensor data
publisher MDPI AG
series AgriEngineering
issn 2624-7402
publishDate 2021-08-01
description Mastitis is a common disease that prevails in cattle owing mainly to environmental pathogens; they are also the most expensive disease for cattle in dairy farms. Several prevention and treatment methods are available, although most of these options are quite expensive, especially for small farms. In this study, we utilized a dataset of 6600 cattle along with several of their sensory parameters (collected via inexpensive sensors) and their prevalence to mastitis. Supervised machine learning approaches were deployed to determine the most effective parameters that could be utilized to predict the risk of mastitis in cattle. To achieve this goal, 26 classification models were built, among which the best performing model (the highest accuracy in the shortest time) was selected. Hyper parameter tuning and K-fold cross validation were applied to further boost the top model’s performance, while at the same time avoiding bias and overfitting of the model. The model was then utilized to build a GUI application that could be used online as a web application. The application can predict the risk of mastitis in cattle from the inhale and exhale limits of their udder and their temperature with an accuracy of 98.1% and sensitivity and specificity of 99.4% and 98.8%, respectively. The full potential of this application can be utilized via the standalone version, which can be easily integrated into an automatic milking system to detect the risk of mastitis in real time.
topic machine learning
dairy science
animal science
mastitis
url https://www.mdpi.com/2624-7402/3/3/37
work_keys_str_mv AT naeemabdulghafoor maspaamachinelearningapplicationtopredictriskofmastitisincattlefromamssensordata
AT beatasitkowska maspaamachinelearningapplicationtopredictriskofmastitisincattlefromamssensordata
_version_ 1717368627204718592