面向复杂环境的多猪只行为识别方法研究

    Research on multi-pig behavior recognition methods for complex environments

    • 摘要:
      目的 为实现复杂环境下多猪只行为的准确识别,助力精准畜牧业的发展,并为猪只状态、疾病监测提供支持。
      方法 本研究提出了一种基于YOLOv8n的轻量化目标检测模型LAD-YOLO,对猪只背景相似、光照变化以及个体遮挡等因素干扰下的行为检测方法展开探索。在骨干网络引入可变核卷积模块(Alterable kernel convolution, AKConv),其任意数量的参数和可变的采样形状卷积核,增强了多尺度特征提取能力;嵌入自适应动态下采样模块(Adaptive downsample, ADown),通过减小步长、平均池化等方式,降低模型参数的同时保留关键信息;在颈部将大型可分离卷积(Large separable kernel attention, LSKA)集成至C2f模块,利用LSKA的特征提取能力增强了C2f的全局特征以及关键区域感知。
      结果 试验结果表明,LAD-YOLO准确率和召回率分别提升2.5和7.2个百分点,mAP50达到98.7%,模型大小仅为4.9 MB,参数量减少18.9%。和其他主流检测器相比以及在复杂背景以及光照变化的影响下,所提LAD-YOLO模型不仅更轻量、更高检测精度高还具备良好的鲁棒性。
      结论 LAD-YOLO为复杂环境下多猪只行为识别表现优异,为智能化养殖管理提供高效、可靠的技术支撑。

       

      Abstract:
      Objective This study was designed to enable accurate recognition of multiple pig behaviors in complex environments, facilitate the development of precision livestock farming, and support pig status and disease monitoring.
      Method A lightweight object detection model named LAD-YOLO, based on YOLOv8n, was proposed to address the challenges in behavior detection in scenarios characterized by background similarity, illumination variations, and inter-individual occlusion. An alterable kernel convolution (AKConv) module was incorporated into the backbone network, where its flexible parameterization and variable sampling-shape kernels were used to enhance multi-scale feature extraction. The adaptive downsampling (ADown) module was embedded to reduce model parameters through shortened strides and average pooling, while preserving critical information. In the neck, the large separable kernel attention (LSKA) mechanism was integrated into the C2f module, leveraging its feature extraction capability to enhance the global feature representation and key region awareness of C2f.
      Result Experimental results demonstrated that LAD-YOLO increased precision and recall by 2.5 and 7.2 percentage points, respectively, achieved an mAP50 of 98.7%, and reduced the model size to 4.9 MB with an 18.9% decrease in parameters. Compared with mainstream detectors and under complex backgrounds and lighting variations, LAD-YOLO exhibited lighter weight, higher detection accuracy, and better robustness.
      Conclusion LAD-YOLO performs excellently in recognizing multiple pig behaviors under complex environments and offers an efficient and reliable technical solution for intelligent livestock management.

       

    /

    返回文章
    返回