Liuru Pu , Yongjie Zhao , Haoyu Kang , Xiangfeng Kong , Xiaopeng Du , Huaibo Song
{"title":"DenseDFFNet: Dense connected dual-stream feature fusion network for calf manure segmentation and diarrhea recognition","authors":"Liuru Pu , Yongjie Zhao , Haoyu Kang , Xiangfeng Kong , Xiaopeng Du , Huaibo Song","doi":"10.1016/j.compag.2025.110328","DOIUrl":null,"url":null,"abstract":"<div><div>Neonatal calf diarrhea is a globally prevalent disease, accounting for 57% of pre-weaning calf mortality. Early detection and intervention of diarrhea symptoms are critical for reducing morbidity and mortality while improving breeding efficiency. In intensive farming environments, it is challenging for staff to identify diarrhea symptoms in calves timely and effectively, as automated recognition methods for calf diarrhea remain underdeveloped. To address this issue, a non-contact calf diarrhea recognition method based on DenseDFFNet has been developed. By employing the multi-modal segmentation model Grounded-Segment-Anything (G-SAM) for manure segmentation, the difficulty of data annotation was significantly reduced and a fecal diarrhea segmentation accuracy of 96.45% was achieved in complex backgrounds. After segmentation, to mitigate abrupt pixel value transitions at image boundaries, a Parallel Convolutional Squeeze-and-Excitation (ParallelConvSE) module was designed, effectively integrating local and global features through parallel standard convolution and Squeeze-and-Excitation (SE) attention mechanisms. And the overall performance and generalization capability of the model was enhanced. For diarrhea classification, the DenseDFFNet module was introduced. In fecal classification tasks, the model achieved a test accuracy of 95.87%. When validated with video data, recognition accuracies for diarrhea and normal states reached 93.92% and 91.21%, respectively. Additionally, a self-propelled data collection system has been developed to enable efficient diarrhea recognition in complex commercial farming scenarios, offering a novel solution for calf health monitoring and early diagnosis. With its non-contact, efficient, and objective characteristics, the proposed method significantly reduces labor intensity and provides a robust technical solution for the recognition of calf diarrhea.</div></div>","PeriodicalId":50627,"journal":{"name":"Computers and Electronics in Agriculture","volume":"234 ","pages":"Article 110328"},"PeriodicalIF":7.7000,"publicationDate":"2025-03-25","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/S016816992500434X","RegionNum":1,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURE, MULTIDISCIPLINARY","Score":null,"Total":0}
引用次数: 0
Abstract
Neonatal calf diarrhea is a globally prevalent disease, accounting for 57% of pre-weaning calf mortality. Early detection and intervention of diarrhea symptoms are critical for reducing morbidity and mortality while improving breeding efficiency. In intensive farming environments, it is challenging for staff to identify diarrhea symptoms in calves timely and effectively, as automated recognition methods for calf diarrhea remain underdeveloped. To address this issue, a non-contact calf diarrhea recognition method based on DenseDFFNet has been developed. By employing the multi-modal segmentation model Grounded-Segment-Anything (G-SAM) for manure segmentation, the difficulty of data annotation was significantly reduced and a fecal diarrhea segmentation accuracy of 96.45% was achieved in complex backgrounds. After segmentation, to mitigate abrupt pixel value transitions at image boundaries, a Parallel Convolutional Squeeze-and-Excitation (ParallelConvSE) module was designed, effectively integrating local and global features through parallel standard convolution and Squeeze-and-Excitation (SE) attention mechanisms. And the overall performance and generalization capability of the model was enhanced. For diarrhea classification, the DenseDFFNet module was introduced. In fecal classification tasks, the model achieved a test accuracy of 95.87%. When validated with video data, recognition accuracies for diarrhea and normal states reached 93.92% and 91.21%, respectively. Additionally, a self-propelled data collection system has been developed to enable efficient diarrhea recognition in complex commercial farming scenarios, offering a novel solution for calf health monitoring and early diagnosis. With its non-contact, efficient, and objective characteristics, the proposed method significantly reduces labor intensity and provides a robust technical solution for the recognition of calf diarrhea.
期刊介绍:
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.