Mengyuan Chu , Yongsheng Si , Ziruo Li , Qian Li , Gang Liu
{"title":"基于深度学习的多特征图像层融合准确检测奶牛乳腺炎","authors":"Mengyuan Chu , Yongsheng Si , Ziruo Li , Qian Li , Gang Liu","doi":"10.1016/j.compag.2025.110937","DOIUrl":null,"url":null,"abstract":"<div><div>Mastitis in dairy cows is a costly disease that poses significant challenges to animal welfare and farm productivity. Traditional detection methods often rely on single feature and simple thresholding or machine learning algorithms, susceptible to environmental factors and individual cow specificity. To address these limitations, we proposed an automatic mastitis detection method based on the fusion of multiple feature image layers derived from thermal infrared imaging. First, thermal images of the udder region were captured to extract three distinct feature image layers, including temperature distribution, vascular structure, and udder size. The temperature layer captured the thermal variations of the udder and was generated by producing temperature contour plots from the raw images. The blood vessel layer highlighted vascular patterns derived from Laplacian filtering and skeletonization of the extracted udder region. The size layer provided measurements of udder dimensions, which were automatically detected using the CenterNet model and fitted with corresponding keypoints. These feature layers integrated both sides of the cow’s udder to create a dual-channel composite feature image. Finally, the DenseNet-201 deep learning model was employed to classify mastitis within a dataset of 7,000 thermal images. The proposed method achieved a classification accuracy of 91.88%, significantly outperforming the 78.60% accuracy obtained using only raw thermal images. Furthermore, ablation studies were conducted to assess the contributions of each feature layer to overall detection performance. The results demonstrate that multi-feature fusion achieved significantly superior performance to single features. Such an investigation provides a robust solution for early mastitis detection. It eliminates the requirements of manual feature extraction and temperature differential calculations, paving the way for automated animal health monitoring and unmanned farm management.</div></div>","PeriodicalId":50627,"journal":{"name":"Computers and Electronics in Agriculture","volume":"239 ","pages":"Article 110937"},"PeriodicalIF":8.9000,"publicationDate":"2025-09-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Multi-feature image layers fusion for accurate detection of dairy cow mastitis using deep learning\",\"authors\":\"Mengyuan Chu , Yongsheng Si , Ziruo Li , Qian Li , Gang Liu\",\"doi\":\"10.1016/j.compag.2025.110937\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>Mastitis in dairy cows is a costly disease that poses significant challenges to animal welfare and farm productivity. Traditional detection methods often rely on single feature and simple thresholding or machine learning algorithms, susceptible to environmental factors and individual cow specificity. To address these limitations, we proposed an automatic mastitis detection method based on the fusion of multiple feature image layers derived from thermal infrared imaging. First, thermal images of the udder region were captured to extract three distinct feature image layers, including temperature distribution, vascular structure, and udder size. The temperature layer captured the thermal variations of the udder and was generated by producing temperature contour plots from the raw images. The blood vessel layer highlighted vascular patterns derived from Laplacian filtering and skeletonization of the extracted udder region. The size layer provided measurements of udder dimensions, which were automatically detected using the CenterNet model and fitted with corresponding keypoints. These feature layers integrated both sides of the cow’s udder to create a dual-channel composite feature image. Finally, the DenseNet-201 deep learning model was employed to classify mastitis within a dataset of 7,000 thermal images. The proposed method achieved a classification accuracy of 91.88%, significantly outperforming the 78.60% accuracy obtained using only raw thermal images. Furthermore, ablation studies were conducted to assess the contributions of each feature layer to overall detection performance. The results demonstrate that multi-feature fusion achieved significantly superior performance to single features. Such an investigation provides a robust solution for early mastitis detection. It eliminates the requirements of manual feature extraction and temperature differential calculations, paving the way for automated animal health monitoring and unmanned farm management.</div></div>\",\"PeriodicalId\":50627,\"journal\":{\"name\":\"Computers and Electronics in Agriculture\",\"volume\":\"239 \",\"pages\":\"Article 110937\"},\"PeriodicalIF\":8.9000,\"publicationDate\":\"2025-09-03\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Computers and Electronics in Agriculture\",\"FirstCategoryId\":\"97\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0168169925010439\",\"RegionNum\":1,\"RegionCategory\":\"农林科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"AGRICULTURE, MULTIDISCIPLINARY\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computers and Electronics in Agriculture","FirstCategoryId":"97","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0168169925010439","RegionNum":1,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURE, MULTIDISCIPLINARY","Score":null,"Total":0}
Multi-feature image layers fusion for accurate detection of dairy cow mastitis using deep learning
Mastitis in dairy cows is a costly disease that poses significant challenges to animal welfare and farm productivity. Traditional detection methods often rely on single feature and simple thresholding or machine learning algorithms, susceptible to environmental factors and individual cow specificity. To address these limitations, we proposed an automatic mastitis detection method based on the fusion of multiple feature image layers derived from thermal infrared imaging. First, thermal images of the udder region were captured to extract three distinct feature image layers, including temperature distribution, vascular structure, and udder size. The temperature layer captured the thermal variations of the udder and was generated by producing temperature contour plots from the raw images. The blood vessel layer highlighted vascular patterns derived from Laplacian filtering and skeletonization of the extracted udder region. The size layer provided measurements of udder dimensions, which were automatically detected using the CenterNet model and fitted with corresponding keypoints. These feature layers integrated both sides of the cow’s udder to create a dual-channel composite feature image. Finally, the DenseNet-201 deep learning model was employed to classify mastitis within a dataset of 7,000 thermal images. The proposed method achieved a classification accuracy of 91.88%, significantly outperforming the 78.60% accuracy obtained using only raw thermal images. Furthermore, ablation studies were conducted to assess the contributions of each feature layer to overall detection performance. The results demonstrate that multi-feature fusion achieved significantly superior performance to single features. Such an investigation provides a robust solution for early mastitis detection. It eliminates the requirements of manual feature extraction and temperature differential calculations, paving the way for automated animal health monitoring and unmanned farm management.
期刊介绍:
Computers and Electronics in Agriculture provides international coverage of advancements in computer hardware, software, electronic instrumentation, and control systems applied to agricultural challenges. Encompassing agronomy, horticulture, forestry, aquaculture, and animal farming, the journal publishes original papers, reviews, and applications notes. It explores the use of computers and electronics in plant or animal agricultural production, covering topics like agricultural soils, water, pests, controlled environments, and waste. The scope extends to on-farm post-harvest operations and relevant technologies, including artificial intelligence, sensors, machine vision, robotics, networking, and simulation modeling. Its companion journal, Smart Agricultural Technology, continues the focus on smart applications in production agriculture.