高级检索+

PoultryFecesNet-Lite:基于鸡粪图像识别的笼养蛋鸡疾病监测模型

PoultryFecesNet-Lite: A disease monitoring model for fecal image identification in intensive poultry farming

  • 摘要: 针对工厂化养殖环境下笼养蛋鸡常发疾病及人工检测效率低的问题,本文提出了一种轻量化禽病目标检测网络PoultryFecesNet-Lite,旨在通过实时捕捉疑似病变特征触发预警实现典型禽病的高精度监测。为建立模型训练基础,研究收集了典型病鸡(球虫病、新城疫、沙门菌等)及健康鸡只的粪便图像,利用DiffuseMix扩散模型进行了数据增强。本研究在YOLO11n为基准框架进行了多项改进的基础上构建了PoultryFecesNet-Lite轻量化模型:融合 GSConv 轻量卷积与 VoVGSCSP 跨层特征融合模块以降低计算冗余,引入MV2Block与MobileViTBlock增强全局语义信息捕获能力并缓解样本重叠及背景干扰,通过DSPPF(Double-SPPF)实现多尺度特征聚合以适应不同观察距离下的粪便目标,采用LAMP分数(Layer-adaptive magnitude pruning)对模型进行剪枝以降低参数量和浮点数。结果表明,采用DiffuseMix扩散模型对数据集数据增强解决了数据集的类别不平衡的问题,提高了模型在稀缺类别的识别能力。PoultryFecesNet-Lite模型在该数据集上的mAP@0.5达到92.35%,参数量仅1.47M,相比基准模型YOLO11n分别减少了1.14M(43.67%)的参数量和4.28G(66%)的浮点数,实现了检测精度、实时性能与资源效率的有效平衡;Grad-CAM可视化分析表明模型能够准确关注病鸡粪便的病理特征。该模型可为健康鸡粪及球虫病、新城疫、沙门氏菌感染鸡粪的早期识别和异常预警提供技术支撑。

     

    Abstract: In intensive poultry farming, caged laying hens are highly susceptible to infectious diseases, while conventional manual inspection methods are in low efficiency and delayed responses. This study proposed a lightweight object detection network, PoultryFecesNet-Lite, enabling high-precision monitoring of typical poultry diseases through real-time detection of pathological features from fecal images. It can contribute to early warning of disease infection and precise control. An image dataset was constructed including fecal of hens infected by Coccidiosis, Newcastle disease, and Salmonella, as well as the fecal of healthy hens. Data augmentation was performed using the DiffuseMix diffusion model to alleviate class imbalance and improve recognition performance for underrepresented categories. The proposed deep learning network, PoultryFecesNet-Lite, was rephrased from the YOLO11n framework, incorporating multiple modules to enhance accuracy and efficiency. In which, GSConv lightweight convolution and the VoVGSCSP cross-layer feature fusion module reduced computational redundancy while preserving critical semantic information. MV2Block and MobileViTBlock modules strengthened mid- and high-level semantic feature extraction, improving recognition of overlapping samples and mitigating background interference. Multi-scale feature aggregation was achieved through a DSPPF (Double-SPPF) layer, adapting to fecal targets at varying observation distances. Finally, a layer-adaptive magnitude pruning (LAMP) strategy streamlined the network, reducing parameters and computational cost without compromising detection performance. Meanwhile, the Heatmap Intersection over Union (IoUheat) and Center Offset Distance (Dc) was introduced into the evaluation system to complement conventional object detection metrics. While standard indicators such as mAP and Precision characterized the model’s classification and localization accuracy (i.e., predictive correctness), the interpretability metrics (IoUheat and Dc) quantified the spatial consistency between the model’s high-response regions and actual lesions (i.e., the rationality of feature focus). Together, these metrics validated the model’s capability to filter out interference and precisely capture pathological features in complex backgrounds, ensuring the robustness and reliability of the PoultryFecesNet-Lite model for early disease warning in intricate farming environments. Extensive tests demonstrated that DiffuseMix augmentation effectively addressed dataset imbalance, enhancing recognition capability for scarce categories. The training results of PoultryFecesNet-Lite presented a mean Average Precision (mAP@0.5) of 92.35%, with 1.47M parameters and 2.20 GFLOPs. Compared with YOLO11n, the parameter amount reduced by 1.14M (43.67%) and the computational cost was reduced by 4.28G (66%), while the mAP@0.5 increased by 0.55%, which achieved a balanced trade-off between accuracy, real-time performance, and resource efficiency. Grad-CAM visualization result confirmed accurate localization of key pathological features in all categories, providing interpretability and reliable focus on disease-specific characteristics. Ablation studies validated the effectiveness of individual modules and their combined contributions. The improved PoultryFecesNet-Lite model simultaneously increased IoUheat and reduced the center offset distance (Dc) across all categories, indicating that the recognition results not only covered targets more comprehensively but also aligned more precisely with target centers. Specifically, the Ncd class exhibited the most significant improvement in IoUheat, rising by 0.103, and achieved the greatest reduction in Dc, decreasing by 0.045. The synchronized enhancement in both coverage precision and localization concentration demonstrated the effectiveness of employing the DiffuseMix diffusion model to augment the training samples for the Ncd category. In conclusion, three achievements can be summarized for study, first, a dataset of 9,511 images covering four conditions was built using DiffuseMix to mitigate class imbalance and background interference, boosting model robustness against scarce samples and complex scenes; second, PoultryFecesNet-Lite integrated lightweight modules and pruning to reduce computational complexity while maintaining high accuracy, significantly enhancing deployment feasibility compared to the YOLO11n baseline; third, visualization analysis via heatmap IoU and center offset distance confirmed the model accurately focuses on lesion areas consistent with pathology, thereby improving its interpretability.

     

/

返回文章
返回