Mengyuan Chu , Yongsheng Si , Qian Li , Xiaowen Liu , Gang Liu
{"title":"Deep learning-based model to classify mastitis in Holstein dairy cows","authors":"Mengyuan Chu , Yongsheng Si , Qian Li , Xiaowen Liu , Gang Liu","doi":"10.1016/j.biosystemseng.2025.02.013","DOIUrl":null,"url":null,"abstract":"<div><div>The occurrence and prevalence of dairy cow mastitis has brought significant challenges to animal welfare and economy. To overcome the complexities and accumulated errors present in previous detection methods, a rapid and accurate mastitis detection approach is developed based on image processing and deep learning, leveraging thermal infrared imaging. Image processing techniques, including the Hough transform and morphological operations, are used to classify affected cows from thermal images. An image pyramid is constructed based on upsampling to tackle motion blur induced by the cows' rapid movement. The multi-scale convolution and the spatial and channel Squeeze & Excitation (scSE) block were integrated into the DenseNet-201 architecture to enhance the feature extraction process. This enabled the network to adaptively recalibrate channel-wise feature responses and strengthening the discriminative power of the learned representations. For mastitis detection, a deep learning model, the multi-scale scSE-DenseNet-201 (MS-scSE-DenseNet-201) architecture, is refined to predict the severity of mastitis. The framework takes images of both sides of the cow's udder as input, and outputs one of three mastitis severity levels: negative (N), subclinical mastitis (SCM), or clinical mastitis (CM). To assess the model's performance in detecting mastitis, a dataset comprising 5000 thermal images from 802 cows, was used. The model achieved accuracy, precision, and recall of 90.18%, 92.16%, and 88.38%, respectively, showing notable improvement over previous methods. This work integrated object segmentation and blind deblurring to strengthen the MS-scSE-DenseNet-201 in the automatic detection of cow mastitis, which will open a promising application horizon for other animal disease diagnostics.</div></div>","PeriodicalId":9173,"journal":{"name":"Biosystems Engineering","volume":"252 ","pages":"Pages 92-104"},"PeriodicalIF":4.4000,"publicationDate":"2025-03-06","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Biosystems Engineering","FirstCategoryId":"97","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S1537511025000455","RegionNum":1,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURAL ENGINEERING","Score":null,"Total":0}
引用次数: 0
Abstract
The occurrence and prevalence of dairy cow mastitis has brought significant challenges to animal welfare and economy. To overcome the complexities and accumulated errors present in previous detection methods, a rapid and accurate mastitis detection approach is developed based on image processing and deep learning, leveraging thermal infrared imaging. Image processing techniques, including the Hough transform and morphological operations, are used to classify affected cows from thermal images. An image pyramid is constructed based on upsampling to tackle motion blur induced by the cows' rapid movement. The multi-scale convolution and the spatial and channel Squeeze & Excitation (scSE) block were integrated into the DenseNet-201 architecture to enhance the feature extraction process. This enabled the network to adaptively recalibrate channel-wise feature responses and strengthening the discriminative power of the learned representations. For mastitis detection, a deep learning model, the multi-scale scSE-DenseNet-201 (MS-scSE-DenseNet-201) architecture, is refined to predict the severity of mastitis. The framework takes images of both sides of the cow's udder as input, and outputs one of three mastitis severity levels: negative (N), subclinical mastitis (SCM), or clinical mastitis (CM). To assess the model's performance in detecting mastitis, a dataset comprising 5000 thermal images from 802 cows, was used. The model achieved accuracy, precision, and recall of 90.18%, 92.16%, and 88.38%, respectively, showing notable improvement over previous methods. This work integrated object segmentation and blind deblurring to strengthen the MS-scSE-DenseNet-201 in the automatic detection of cow mastitis, which will open a promising application horizon for other animal disease diagnostics.
期刊介绍:
Biosystems Engineering publishes research in engineering and the physical sciences that represent advances in understanding or modelling of the performance of biological systems for sustainable developments in land use and the environment, agriculture and amenity, bioproduction processes and the food chain. The subject matter of the journal reflects the wide range and interdisciplinary nature of research in engineering for biological systems.