{"title":"基于生理、行为和牛奶质量指标的奶牛子宫炎早期检测机器学习模型的应用","authors":"Karina Džermeikaitė, Justina Krištolaitytė, Ramūnas Antanaitis","doi":"10.3390/ani15111674","DOIUrl":null,"url":null,"abstract":"<p><p>Metritis is one of the most common postpartum diseases in dairy cows, associated with impaired reproductive performance and substantial economic losses. In this study, we investigated the potential of machine learning (ML) techniques applied to physiological, behavioural, and milk quality parameters for the early detection of metritis in dairy cows during the postpartum period. A total of 2707 daily observations were collected from 94 cows in early lactation, of which 11 cows (275 records) were diagnosed with metritis. The dataset included daily measurements of body weight, rumination time, milk yield, milk composition (fat, protein, lactose), somatic cell count (SCC), and feed intake. Five classification models-partial least squares discriminant analysis (PLS-DA), random forest (RF), support vector machine (SVM), neural network (NN), and an Ensemble model-were developed using standardised features and stratified 80/20 training/test splits. To address class imbalance, model loss functions were adjusted using class weights. Models were evaluated based on accuracy, sensitivity, specificity, positive and negative predictive values (PPV, NPV), area under the receiver operating characteristic (ROC) area under the curve (AUC), and Matthews correlation coefficient (MCC). The NN model demonstrated the highest overall performance (accuracy = 96.1%, AUC = 96.3%, MCC = 0.79), indicating strong capability in distinguishing both healthy and diseased animals. The SVM achieved the highest sensitivity (90.9%), while RF and Ensemble models showed high specificity (>98%) and PPV. This study provides novel evidence that ML methods can effectively detect metritis using routinely collected, non-invasive on-farm data. Our findings support the integration of neural and Ensemble learning models into automated health monitoring systems to enable earlier disease detection and improved animal welfare. Although external validation was not performed, internal cross-validation demonstrated consistent performance across models, suggesting suitability for application in multi-farm settings. To the best of our knowledge, this is among the first studies to apply ML for early metritis detection based exclusively only automated herd data.</p>","PeriodicalId":7955,"journal":{"name":"Animals","volume":"15 11","pages":""},"PeriodicalIF":2.7000,"publicationDate":"2025-06-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC12153533/pdf/","citationCount":"0","resultStr":"{\"title\":\"Application of Machine Learning Models for the Early Detection of Metritis in Dairy Cows Based on Physiological, Behavioural and Milk Quality Indicators.\",\"authors\":\"Karina Džermeikaitė, Justina Krištolaitytė, Ramūnas Antanaitis\",\"doi\":\"10.3390/ani15111674\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<p><p>Metritis is one of the most common postpartum diseases in dairy cows, associated with impaired reproductive performance and substantial economic losses. In this study, we investigated the potential of machine learning (ML) techniques applied to physiological, behavioural, and milk quality parameters for the early detection of metritis in dairy cows during the postpartum period. A total of 2707 daily observations were collected from 94 cows in early lactation, of which 11 cows (275 records) were diagnosed with metritis. The dataset included daily measurements of body weight, rumination time, milk yield, milk composition (fat, protein, lactose), somatic cell count (SCC), and feed intake. Five classification models-partial least squares discriminant analysis (PLS-DA), random forest (RF), support vector machine (SVM), neural network (NN), and an Ensemble model-were developed using standardised features and stratified 80/20 training/test splits. To address class imbalance, model loss functions were adjusted using class weights. Models were evaluated based on accuracy, sensitivity, specificity, positive and negative predictive values (PPV, NPV), area under the receiver operating characteristic (ROC) area under the curve (AUC), and Matthews correlation coefficient (MCC). The NN model demonstrated the highest overall performance (accuracy = 96.1%, AUC = 96.3%, MCC = 0.79), indicating strong capability in distinguishing both healthy and diseased animals. The SVM achieved the highest sensitivity (90.9%), while RF and Ensemble models showed high specificity (>98%) and PPV. This study provides novel evidence that ML methods can effectively detect metritis using routinely collected, non-invasive on-farm data. Our findings support the integration of neural and Ensemble learning models into automated health monitoring systems to enable earlier disease detection and improved animal welfare. Although external validation was not performed, internal cross-validation demonstrated consistent performance across models, suggesting suitability for application in multi-farm settings. To the best of our knowledge, this is among the first studies to apply ML for early metritis detection based exclusively only automated herd data.</p>\",\"PeriodicalId\":7955,\"journal\":{\"name\":\"Animals\",\"volume\":\"15 11\",\"pages\":\"\"},\"PeriodicalIF\":2.7000,\"publicationDate\":\"2025-06-05\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC12153533/pdf/\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Animals\",\"FirstCategoryId\":\"97\",\"ListUrlMain\":\"https://doi.org/10.3390/ani15111674\",\"RegionNum\":2,\"RegionCategory\":\"农林科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"AGRICULTURE, DAIRY & ANIMAL SCIENCE\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Animals","FirstCategoryId":"97","ListUrlMain":"https://doi.org/10.3390/ani15111674","RegionNum":2,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURE, DAIRY & ANIMAL SCIENCE","Score":null,"Total":0}
Application of Machine Learning Models for the Early Detection of Metritis in Dairy Cows Based on Physiological, Behavioural and Milk Quality Indicators.
Metritis is one of the most common postpartum diseases in dairy cows, associated with impaired reproductive performance and substantial economic losses. In this study, we investigated the potential of machine learning (ML) techniques applied to physiological, behavioural, and milk quality parameters for the early detection of metritis in dairy cows during the postpartum period. A total of 2707 daily observations were collected from 94 cows in early lactation, of which 11 cows (275 records) were diagnosed with metritis. The dataset included daily measurements of body weight, rumination time, milk yield, milk composition (fat, protein, lactose), somatic cell count (SCC), and feed intake. Five classification models-partial least squares discriminant analysis (PLS-DA), random forest (RF), support vector machine (SVM), neural network (NN), and an Ensemble model-were developed using standardised features and stratified 80/20 training/test splits. To address class imbalance, model loss functions were adjusted using class weights. Models were evaluated based on accuracy, sensitivity, specificity, positive and negative predictive values (PPV, NPV), area under the receiver operating characteristic (ROC) area under the curve (AUC), and Matthews correlation coefficient (MCC). The NN model demonstrated the highest overall performance (accuracy = 96.1%, AUC = 96.3%, MCC = 0.79), indicating strong capability in distinguishing both healthy and diseased animals. The SVM achieved the highest sensitivity (90.9%), while RF and Ensemble models showed high specificity (>98%) and PPV. This study provides novel evidence that ML methods can effectively detect metritis using routinely collected, non-invasive on-farm data. Our findings support the integration of neural and Ensemble learning models into automated health monitoring systems to enable earlier disease detection and improved animal welfare. Although external validation was not performed, internal cross-validation demonstrated consistent performance across models, suggesting suitability for application in multi-farm settings. To the best of our knowledge, this is among the first studies to apply ML for early metritis detection based exclusively only automated herd data.
AnimalsAgricultural and Biological Sciences-Animal Science and Zoology
CiteScore
4.90
自引率
16.70%
发文量
3015
审稿时长
20.52 days
期刊介绍:
Animals (ISSN 2076-2615) is an international and interdisciplinary scholarly open access journal. It publishes original research articles, reviews, communications, and short notes that are relevant to any field of study that involves animals, including zoology, ethnozoology, animal science, animal ethics and animal welfare. However, preference will be given to those articles that provide an understanding of animals within a larger context (i.e., the animals'' interactions with the outside world, including humans). There is no restriction on the length of the papers. Our aim is to encourage scientists to publish their experimental and theoretical research in as much detail as possible. Full experimental details and/or method of study, must be provided for research articles. Articles submitted that involve subjecting animals to unnecessary pain or suffering will not be accepted, and all articles must be submitted with the necessary ethical approval (please refer to the Ethical Guidelines for more information).