The Use of Explainable Machine Learning for the Prediction of the Quality of Bulk-Tank Milk in Sheep and Goat Farms

The specific objective of the present study was to develop computational models, by means of which predictions could be performed regarding the quality of the bulk-tank milk in dairy sheep and goat farms. Our hypothesis was that use of specific variables related to the health management applied in t...

Full description

Saved in:
Bibliographic Details
Main Authors: Daphne T. Lianou, Yiannis Kiouvrekis, Charalambia K. Michael, Natalia G. C. Vasileiou, Ioannis Psomadakis, Antonis P. Politis, Angeliki I. Katsafadou, Eleni I. Katsarou, Maria V. Bourganou, Dimitra V. Liagka, Dimitrios C. Chatzopoulos, Nikolaos M. Solomakos, George C. Fthenakis
Format: Article
Language:English
Published: MDPI AG 2024-12-01
Series:Foods
Subjects:
Online Access:https://www.mdpi.com/2304-8158/13/24/4015
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1850086324614201344
author Daphne T. Lianou
Yiannis Kiouvrekis
Charalambia K. Michael
Natalia G. C. Vasileiou
Ioannis Psomadakis
Antonis P. Politis
Angeliki I. Katsafadou
Eleni I. Katsarou
Maria V. Bourganou
Dimitra V. Liagka
Dimitrios C. Chatzopoulos
Nikolaos M. Solomakos
George C. Fthenakis
author_facet Daphne T. Lianou
Yiannis Kiouvrekis
Charalambia K. Michael
Natalia G. C. Vasileiou
Ioannis Psomadakis
Antonis P. Politis
Angeliki I. Katsafadou
Eleni I. Katsarou
Maria V. Bourganou
Dimitra V. Liagka
Dimitrios C. Chatzopoulos
Nikolaos M. Solomakos
George C. Fthenakis
author_sort Daphne T. Lianou
collection DOAJ
description The specific objective of the present study was to develop computational models, by means of which predictions could be performed regarding the quality of the bulk-tank milk in dairy sheep and goat farms. Our hypothesis was that use of specific variables related to the health management applied in the farm can facilitate the development of predictions regarding values related to milk quality, specifically for fat content, protein content, fat and protein content combined, somatic cell counts, and total bacterial counts. Bulk-tank milk from 325 sheep and 119 goat farms was collected and evaluated by established techniques for analysis of fat and protein content, for somatic cell counting, and for total bacterial counting. Subsequently, computational models were constructed for the prediction of five target values: (a) fat content, (b) protein content, (c) fat and protein, (d) somatic cell counts, and (e) total bacterial counts, through the use of 21 independent variables related to factors prevalent in the farm. Five machine learning tools were employed: decision trees (18 different models evaluated), random forests (16 models), XGBoost (240 models), k-nearest neighbours (72 models), and neural networks (576 models) (in total, 9220 evaluations were performed). Tools found with the lowest mean absolute percentage error (MAPE) between the five tools used to test predictions for each target value were selected. In sheep farms, for the prediction of protein content, k-nearest neighbours was selected (MAPE: 3.95%); for the prediction of fat and protein content combined, neural networks was selected (6.00%); and for the prediction of somatic cell counts, random forests and k-nearest neighbours were selected (6.55%); no tool provided useful predictions for fat content and for total bacterial counts. In goat farms, for the prediction of protein content, k-nearest neighbours was selected (MAPE: 6.17%); for the prediction of somatic cell counts, random forests and k-nearest neighbours were selected (4.93% and 5.00%); and for the prediction of total bacterial counts, neural networks was selected (8.33%); no tool provided useful prediction models for fat content and for fat and protein content combined. The results of the study will be of interest to farmers, as well as to professionals; the findings will also be useful to dairy processing factories. That way, it will be possible to obtain a distance-aware, rapid, quantitative estimation of the milk output from sheep and goat farms with sufficient data attributes. It will thus become easier to monitor and improve milk quality at the farm level as part of the dairy production chain. Moreover, the findings can support the setup of relevant and appropriate measures and interventions in dairy sheep and goat farms.
format Article
id doaj-art-41ca7fd549354459b77d289d3ebaa162
institution DOAJ
issn 2304-8158
language English
publishDate 2024-12-01
publisher MDPI AG
record_format Article
series Foods
spelling doaj-art-41ca7fd549354459b77d289d3ebaa1622025-08-20T02:43:31ZengMDPI AGFoods2304-81582024-12-011324401510.3390/foods13244015The Use of Explainable Machine Learning for the Prediction of the Quality of Bulk-Tank Milk in Sheep and Goat FarmsDaphne T. Lianou0Yiannis Kiouvrekis1Charalambia K. Michael2Natalia G. C. Vasileiou3Ioannis Psomadakis4Antonis P. Politis5Angeliki I. Katsafadou6Eleni I. Katsarou7Maria V. Bourganou8Dimitra V. Liagka9Dimitrios C. Chatzopoulos10Nikolaos M. Solomakos11George C. Fthenakis12Veterinary Faculty, University of Thessaly, 43100 Karditsa, GreeceFaculty of Public and One Health, University of Thessaly, 43100 Karditsa, GreeceSchool of Veterinary Medicine, European University of Cyprus, Engomi, Nicosia 2404, CyprusFaculty of Animal Science, University of Thessaly, 41110 Larissa, GreeceFaculty of Public and One Health, University of Thessaly, 43100 Karditsa, GreeceVeterinary Faculty, University of Thessaly, 43100 Karditsa, GreeceFaculty of Public and One Health, University of Thessaly, 43100 Karditsa, GreeceVeterinary Faculty, University of Thessaly, 43100 Karditsa, GreeceFaculty of Public and One Health, University of Thessaly, 43100 Karditsa, GreeceFaculty of Animal Science, University of Thessaly, 41110 Larissa, GreeceFaculty of Public and One Health, University of Thessaly, 43100 Karditsa, GreeceVeterinary Faculty, University of Thessaly, 43100 Karditsa, GreeceVeterinary Faculty, University of Thessaly, 43100 Karditsa, GreeceThe specific objective of the present study was to develop computational models, by means of which predictions could be performed regarding the quality of the bulk-tank milk in dairy sheep and goat farms. Our hypothesis was that use of specific variables related to the health management applied in the farm can facilitate the development of predictions regarding values related to milk quality, specifically for fat content, protein content, fat and protein content combined, somatic cell counts, and total bacterial counts. Bulk-tank milk from 325 sheep and 119 goat farms was collected and evaluated by established techniques for analysis of fat and protein content, for somatic cell counting, and for total bacterial counting. Subsequently, computational models were constructed for the prediction of five target values: (a) fat content, (b) protein content, (c) fat and protein, (d) somatic cell counts, and (e) total bacterial counts, through the use of 21 independent variables related to factors prevalent in the farm. Five machine learning tools were employed: decision trees (18 different models evaluated), random forests (16 models), XGBoost (240 models), k-nearest neighbours (72 models), and neural networks (576 models) (in total, 9220 evaluations were performed). Tools found with the lowest mean absolute percentage error (MAPE) between the five tools used to test predictions for each target value were selected. In sheep farms, for the prediction of protein content, k-nearest neighbours was selected (MAPE: 3.95%); for the prediction of fat and protein content combined, neural networks was selected (6.00%); and for the prediction of somatic cell counts, random forests and k-nearest neighbours were selected (6.55%); no tool provided useful predictions for fat content and for total bacterial counts. In goat farms, for the prediction of protein content, k-nearest neighbours was selected (MAPE: 6.17%); for the prediction of somatic cell counts, random forests and k-nearest neighbours were selected (4.93% and 5.00%); and for the prediction of total bacterial counts, neural networks was selected (8.33%); no tool provided useful prediction models for fat content and for fat and protein content combined. The results of the study will be of interest to farmers, as well as to professionals; the findings will also be useful to dairy processing factories. That way, it will be possible to obtain a distance-aware, rapid, quantitative estimation of the milk output from sheep and goat farms with sufficient data attributes. It will thus become easier to monitor and improve milk quality at the farm level as part of the dairy production chain. Moreover, the findings can support the setup of relevant and appropriate measures and interventions in dairy sheep and goat farms.https://www.mdpi.com/2304-8158/13/24/4015artificial intelligencegoathealth managementk-nearest neighbourmastitismilk composition
spellingShingle Daphne T. Lianou
Yiannis Kiouvrekis
Charalambia K. Michael
Natalia G. C. Vasileiou
Ioannis Psomadakis
Antonis P. Politis
Angeliki I. Katsafadou
Eleni I. Katsarou
Maria V. Bourganou
Dimitra V. Liagka
Dimitrios C. Chatzopoulos
Nikolaos M. Solomakos
George C. Fthenakis
The Use of Explainable Machine Learning for the Prediction of the Quality of Bulk-Tank Milk in Sheep and Goat Farms
Foods
artificial intelligence
goat
health management
k-nearest neighbour
mastitis
milk composition
title The Use of Explainable Machine Learning for the Prediction of the Quality of Bulk-Tank Milk in Sheep and Goat Farms
title_full The Use of Explainable Machine Learning for the Prediction of the Quality of Bulk-Tank Milk in Sheep and Goat Farms
title_fullStr The Use of Explainable Machine Learning for the Prediction of the Quality of Bulk-Tank Milk in Sheep and Goat Farms
title_full_unstemmed The Use of Explainable Machine Learning for the Prediction of the Quality of Bulk-Tank Milk in Sheep and Goat Farms
title_short The Use of Explainable Machine Learning for the Prediction of the Quality of Bulk-Tank Milk in Sheep and Goat Farms
title_sort use of explainable machine learning for the prediction of the quality of bulk tank milk in sheep and goat farms
topic artificial intelligence
goat
health management
k-nearest neighbour
mastitis
milk composition
url https://www.mdpi.com/2304-8158/13/24/4015
work_keys_str_mv AT daphnetlianou theuseofexplainablemachinelearningforthepredictionofthequalityofbulktankmilkinsheepandgoatfarms
AT yianniskiouvrekis theuseofexplainablemachinelearningforthepredictionofthequalityofbulktankmilkinsheepandgoatfarms
AT charalambiakmichael theuseofexplainablemachinelearningforthepredictionofthequalityofbulktankmilkinsheepandgoatfarms
AT nataliagcvasileiou theuseofexplainablemachinelearningforthepredictionofthequalityofbulktankmilkinsheepandgoatfarms
AT ioannispsomadakis theuseofexplainablemachinelearningforthepredictionofthequalityofbulktankmilkinsheepandgoatfarms
AT antonisppolitis theuseofexplainablemachinelearningforthepredictionofthequalityofbulktankmilkinsheepandgoatfarms
AT angelikiikatsafadou theuseofexplainablemachinelearningforthepredictionofthequalityofbulktankmilkinsheepandgoatfarms
AT eleniikatsarou theuseofexplainablemachinelearningforthepredictionofthequalityofbulktankmilkinsheepandgoatfarms
AT mariavbourganou theuseofexplainablemachinelearningforthepredictionofthequalityofbulktankmilkinsheepandgoatfarms
AT dimitravliagka theuseofexplainablemachinelearningforthepredictionofthequalityofbulktankmilkinsheepandgoatfarms
AT dimitrioscchatzopoulos theuseofexplainablemachinelearningforthepredictionofthequalityofbulktankmilkinsheepandgoatfarms
AT nikolaosmsolomakos theuseofexplainablemachinelearningforthepredictionofthequalityofbulktankmilkinsheepandgoatfarms
AT georgecfthenakis theuseofexplainablemachinelearningforthepredictionofthequalityofbulktankmilkinsheepandgoatfarms
AT daphnetlianou useofexplainablemachinelearningforthepredictionofthequalityofbulktankmilkinsheepandgoatfarms
AT yianniskiouvrekis useofexplainablemachinelearningforthepredictionofthequalityofbulktankmilkinsheepandgoatfarms
AT charalambiakmichael useofexplainablemachinelearningforthepredictionofthequalityofbulktankmilkinsheepandgoatfarms
AT nataliagcvasileiou useofexplainablemachinelearningforthepredictionofthequalityofbulktankmilkinsheepandgoatfarms
AT ioannispsomadakis useofexplainablemachinelearningforthepredictionofthequalityofbulktankmilkinsheepandgoatfarms
AT antonisppolitis useofexplainablemachinelearningforthepredictionofthequalityofbulktankmilkinsheepandgoatfarms
AT angelikiikatsafadou useofexplainablemachinelearningforthepredictionofthequalityofbulktankmilkinsheepandgoatfarms
AT eleniikatsarou useofexplainablemachinelearningforthepredictionofthequalityofbulktankmilkinsheepandgoatfarms
AT mariavbourganou useofexplainablemachinelearningforthepredictionofthequalityofbulktankmilkinsheepandgoatfarms
AT dimitravliagka useofexplainablemachinelearningforthepredictionofthequalityofbulktankmilkinsheepandgoatfarms
AT dimitrioscchatzopoulos useofexplainablemachinelearningforthepredictionofthequalityofbulktankmilkinsheepandgoatfarms
AT nikolaosmsolomakos useofexplainablemachinelearningforthepredictionofthequalityofbulktankmilkinsheepandgoatfarms
AT georgecfthenakis useofexplainablemachinelearningforthepredictionofthequalityofbulktankmilkinsheepandgoatfarms