Suppr超能文献

用于复杂农业环境中稳健的生猪检测与计数的增强型YOLOv8

Enhanced YOLOv8 for Robust Pig Detection and Counting in Complex Agricultural Environments.

作者信息

Li Jian, Ma Wenkai, Wei Yanan, Wang Tan

机构信息

School of Biology and Food Engineering, Fuyang Normal University, Fuyang 236037, China.

Anhui Provincial Key Laboratory of Embryo Development and Reproductive Regulation, Fuyang 236037, China.

出版信息

Animals (Basel). 2025 Jul 21;15(14):2149. doi: 10.3390/ani15142149.

Abstract

Accurate pig counting is crucial for precision livestock farming, enabling optimized feeding management and health monitoring. Detection-based counting methods face significant challenges due to mutual occlusion, varying illumination conditions, diverse pen configurations, and substantial variations in pig densities. Previous approaches often struggle with complex agricultural environments where lighting conditions, pig postures, and crowding levels create challenging detection scenarios. To address these limitations, we propose EAPC-YOLO (enhanced adaptive pig counting YOLO), a robust architecture integrating density-aware processing with advanced detection optimizations. The method consists of (1) an enhanced YOLOv8 network incorporating multiple architectural improvements for better feature extraction and object localization. These improvements include DCNv4 deformable convolutions for irregular pig postures, BiFPN bidirectional feature fusion for multi-scale information integration, EfficientViT linear attention for computational efficiency, and PIoU v2 loss for improved overlap handling. (2) A density-aware post-processing module with intelligent NMS strategies that adapt to different crowding scenarios. Experimental results on a comprehensive dataset spanning diverse agricultural scenarios (nighttime, controlled indoor, and natural daylight environments with density variations from 4 to 30 pigs) demonstrate our method achieves 94.2% mAP@0.5 for detection performance and 96.8% counting accuracy, representing 12.3% and 15.7% improvements compared to the strongest baseline, YOLOv11n. This work enables robust, accurate pig counting across challenging agricultural environments, supporting precision livestock management.

摘要

精确的猪只计数对于精准畜牧业至关重要,有助于实现优化的饲养管理和健康监测。基于检测的计数方法面临诸多重大挑战,原因包括猪只相互遮挡、光照条件变化、猪圈布局多样以及猪只密度差异巨大。以往的方法在复杂的农业环境中往往难以应对,在这些环境中,光照条件、猪只姿势和拥挤程度会造成具有挑战性的检测场景。为解决这些局限性,我们提出了EAPC - YOLO(增强型自适应猪只计数YOLO),这是一种强大的架构,将密度感知处理与先进的检测优化相结合。该方法包括:(1)一个增强的YOLOv8网络,融入了多项架构改进,以实现更好的特征提取和目标定位。这些改进包括用于处理不规则猪只姿势的DCNv4可变形卷积、用于多尺度信息整合的BiFPN双向特征融合、用于提高计算效率的EfficientViT线性注意力以及用于改进重叠处理的PIoU v2损失。(2)一个具有智能NMS策略的密度感知后处理模块,可适应不同的拥挤场景。在一个涵盖多种农业场景(夜间、可控室内以及自然光环境,猪只密度从4只到30只不等)的综合数据集上的实验结果表明,我们的方法在检测性能方面达到了94.2%的mAP@0.5,计数准确率达到了96.8%,与最强基线YOLOv11n相比,分别提高了12.3%和15.7%。这项工作能够在具有挑战性的农业环境中实现稳健、精确的猪只计数,支持精准畜牧业管理。

相似文献

1
Enhanced YOLOv8 for Robust Pig Detection and Counting in Complex Agricultural Environments.
Animals (Basel). 2025 Jul 21;15(14):2149. doi: 10.3390/ani15142149.
3
DASNet a dual branch multi level attention sheep counting network.
Sci Rep. 2025 Jul 2;15(1):23228. doi: 10.1038/s41598-025-97929-w.
4
Robust face mask detection in complex scenarios using YOLOv8 and context-aware convolutions.
Sci Rep. 2025 Jul 1;15(1):21350. doi: 10.1038/s41598-025-04768-w.
6
SDA-YOLO: An Object Detection Method for Peach Fruits in Complex Orchard Environments.
Sensors (Basel). 2025 Jul 17;25(14):4457. doi: 10.3390/s25144457.
7
DFN-YOLO: Detecting Narrowband Signals in Broadband Spectrum.
Sensors (Basel). 2025 Jul 5;25(13):4206. doi: 10.3390/s25134206.
8
YOLOv8-Scm: an improved model for citrus fruit sunburn identification and classification in complex natural scenes.
Front Plant Sci. 2025 Jul 7;16:1591989. doi: 10.3389/fpls.2025.1591989. eCollection 2025.
9
Few-shot object detection for pest insects via features aggregation and contrastive learning.
Front Plant Sci. 2025 Jun 19;16:1522510. doi: 10.3389/fpls.2025.1522510. eCollection 2025.

本文引用的文献

1
3
Research on Dynamic Pig Counting Method Based on Improved YOLOv7 Combined with DeepSORT.
Animals (Basel). 2024 Apr 19;14(8):1227. doi: 10.3390/ani14081227.
4
Powerful-IoU: More straightforward and faster bounding box regression loss with a nonmonotonic focusing mechanism.
Neural Netw. 2024 Feb;170:276-284. doi: 10.1016/j.neunet.2023.11.041. Epub 2023 Nov 22.
5
An Improved Pig Counting Algorithm Based on YOLOv5 and DeepSORT Model.
Sensors (Basel). 2023 Jul 11;23(14):6309. doi: 10.3390/s23146309.
7
The Research Progress of Vision-Based Artificial Intelligence in Smart Pig Farming.
Sensors (Basel). 2022 Aug 30;22(17):6541. doi: 10.3390/s22176541.
9
Deep Learning and Machine Vision Approaches for Posture Detection of Individual Pigs.
Sensors (Basel). 2019 Aug 29;19(17):3738. doi: 10.3390/s19173738.
10
Multi-Pig Part Detection and Association with a Fully-Convolutional Network.
Sensors (Basel). 2019 Feb 19;19(4):852. doi: 10.3390/s19040852.

文献AI研究员

20分钟写一篇综述,助力文献阅读效率提升50倍。

立即体验

用中文搜PubMed

大模型驱动的PubMed中文搜索引擎

马上搜索

文档翻译

学术文献翻译模型,支持多种主流文档格式。

立即体验