• 文献检索
  • 文档翻译
  • 深度研究
  • 学术资讯
  • Suppr Zotero 插件Zotero 插件
  • 邀请有礼
  • 套餐&价格
  • 历史记录
应用&插件
Suppr Zotero 插件Zotero 插件浏览器插件Mac 客户端Windows 客户端微信小程序
定价
高级版会员购买积分包购买API积分包
服务
文献检索文档翻译深度研究API 文档MCP 服务
关于我们
关于 Suppr公司介绍联系我们用户协议隐私条款
关注我们

Suppr 超能文献

核心技术专利:CN118964589B侵权必究
粤ICP备2023148730 号-1Suppr @ 2026

文献检索

告别复杂PubMed语法,用中文像聊天一样搜索,搜遍4000万医学文献。AI智能推荐,让科研检索更轻松。

立即免费搜索

文件翻译

保留排版,准确专业,支持PDF/Word/PPT等文件格式,支持 12+语言互译。

免费翻译文档

深度研究

AI帮你快速写综述,25分钟生成高质量综述,智能提取关键信息,辅助科研写作。

立即免费体验

用于群体饲养猪的注意力引导实例分割

Attention-Guided Instance Segmentation for Group-Raised Pigs.

作者信息

Hu Zhiwei, Yang Hua, Yan Hongwen

机构信息

College of Information Science and Engineering, Shanxi Agricultural University, Jinzhong 030801, China.

出版信息

Animals (Basel). 2023 Jul 3;13(13):2181. doi: 10.3390/ani13132181.

DOI:10.3390/ani13132181
PMID:37443979
原文链接:https://pmc.ncbi.nlm.nih.gov/articles/PMC10339863/
Abstract

In the pig farming environment, complex factors such as pig adhesion, occlusion, and changes in body posture pose significant challenges for segmenting multiple target pigs. To address these challenges, this study collected video data using a horizontal angle of view and a non-fixed lens. Specifically, a total of 45 pigs aged 20-105 days in 8 pens were selected as research subjects, resulting in 1917 labeled images. These images were divided into 959 for training, 192 for validation, and 766 for testing. The grouped attention module was employed in the feature pyramid network to fuse the feature maps from deep and shallow layers. The grouped attention module consists of a channel attention branch and a spatial attention branch. The channel attention branch effectively models dependencies between channels to enhance feature mapping between related channels and improve semantic feature representation. The spatial attention branch establishes pixel-level dependencies by applying the response values of all pixels in a single-channel feature map to the target pixel. It further guides the original feature map to filter spatial location information and generate context-related outputs. The grouped attention, along with data augmentation strategies, was incorporated into the Mask R-CNN and Cascade Mask R-CNN task networks to explore their impact on pig segmentation. The experiments showed that introducing data augmentation strategies improved the segmentation performance of the model to a certain extent. Taking Mask-RCNN as an example, under the same experimental conditions, the introduction of data augmentation strategies resulted in improvements of 1.5%, 0.7%, 0.4%, and 0.5% in metrics , , , and , respectively. Furthermore, our grouped attention module achieved the best performance. For example, compared to the existing attention module CBAM, taking Mask R-CNN as an example, in terms of the metric , , , and , the grouped attention outperformed 1.0%, 0.3%, 1.1%, and 1.2%, respectively. We further studied the impact of the number of groups in the grouped attention on the final segmentation results. Additionally, visualizations of predictions on third-party data collected using a top-down data acquisition method, which was not involved in the model training, demonstrated that the proposed model in this paper still achieved good segmentation results, proving the transferability and robustness of the grouped attention. Through comprehensive analysis, we found that grouped attention is beneficial for achieving high-precision segmentation of individual pigs in different scenes, ages, and time periods. The research results can provide references for subsequent applications such as pig identification and behavior analysis in mobile settings.

摘要

在养猪环境中,猪的粘连、遮挡以及身体姿势变化等复杂因素给多目标猪的分割带来了重大挑战。为应对这些挑战,本研究使用水平视角和非固定镜头收集视频数据。具体而言,从8个猪栏中选取了45头年龄在20至105天的猪作为研究对象,共获得1917张标注图像。这些图像被分为959张用于训练,192张用于验证,766张用于测试。在特征金字塔网络中采用分组注意力模块来融合深层和浅层的特征图。分组注意力模块由通道注意力分支和空间注意力分支组成。通道注意力分支有效地对通道间的依赖关系进行建模,以增强相关通道间的特征映射并改善语义特征表示。空间注意力分支通过将单通道特征图中所有像素的响应值应用于目标像素来建立像素级依赖关系。它进一步引导原始特征图过滤空间位置信息并生成与上下文相关的输出。将分组注意力与数据增强策略相结合,纳入Mask R-CNN和Cascade Mask R-CNN任务网络,以探究它们对猪分割的影响。实验表明,引入数据增强策略在一定程度上提高了模型的分割性能。以Mask-RCNN为例,在相同实验条件下,引入数据增强策略使指标、、、分别提高了1.5%、0.7%、0.4%和0.5%。此外,我们的分组注意力模块表现最佳。例如,与现有的注意力模块CBAM相比,以Mask R-CNN为例,在指标、、、方面,分组注意力分别优于1.0%、0.3%、1.1%和1.2%。我们进一步研究了分组注意力中分组数量对最终分割结果的影响。此外,对使用自上而下数据采集方法收集的第三方数据进行预测可视化(该方法未参与模型训练),结果表明本文提出的模型仍取得了良好的分割效果,证明了分组注意力的可迁移性和鲁棒性。通过综合分析,我们发现分组注意力有利于在不同场景、年龄和时间段实现对个体猪的高精度分割。研究结果可为后续诸如移动场景下的猪识别和行为分析等应用提供参考。

https://cdn.ncbi.nlm.nih.gov/pmc/blobs/a299/10339863/c1db42ec0f53/animals-13-02181-g008.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/a299/10339863/f9107111c68d/animals-13-02181-g001.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/a299/10339863/db206e02a410/animals-13-02181-g002.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/a299/10339863/8f43da492c12/animals-13-02181-g003.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/a299/10339863/4f6cea14e36f/animals-13-02181-g004.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/a299/10339863/75e3212d700c/animals-13-02181-g005.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/a299/10339863/9350a1cc195c/animals-13-02181-g006.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/a299/10339863/b0e7a60768f6/animals-13-02181-g007.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/a299/10339863/c1db42ec0f53/animals-13-02181-g008.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/a299/10339863/f9107111c68d/animals-13-02181-g001.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/a299/10339863/db206e02a410/animals-13-02181-g002.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/a299/10339863/8f43da492c12/animals-13-02181-g003.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/a299/10339863/4f6cea14e36f/animals-13-02181-g004.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/a299/10339863/75e3212d700c/animals-13-02181-g005.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/a299/10339863/9350a1cc195c/animals-13-02181-g006.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/a299/10339863/b0e7a60768f6/animals-13-02181-g007.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/a299/10339863/c1db42ec0f53/animals-13-02181-g008.jpg

相似文献

1
Attention-Guided Instance Segmentation for Group-Raised Pigs.用于群体饲养猪的注意力引导实例分割
Animals (Basel). 2023 Jul 3;13(13):2181. doi: 10.3390/ani13132181.
2
Pixel Self-Attention Guided Real-Time Instance Segmentation for Group Raised Pigs.用于群体饲养猪的像素自注意力引导实时实例分割
Animals (Basel). 2023 Nov 21;13(23):3591. doi: 10.3390/ani13233591.
3
Fusing attention mechanism with Mask R-CNN for instance segmentation of grape cluster in the field.将注意力机制与Mask R-CNN融合用于田间葡萄串的实例分割。
Front Plant Sci. 2022 Jul 22;13:934450. doi: 10.3389/fpls.2022.934450. eCollection 2022.
4
A Multiscale Instance Segmentation Method Based on Cleaning Rubber Ball Images.基于清理橡皮球图像的多尺度实例分割方法。
Sensors (Basel). 2023 Apr 25;23(9):4261. doi: 10.3390/s23094261.
5
Efficient Detection Method of Pig-Posture Behavior Based on Multiple Attention Mechanism.基于多重注意力机制的猪姿态行为高效检测方法。
Comput Intell Neurosci. 2022 Jul 16;2022:1759542. doi: 10.1155/2022/1759542. eCollection 2022.
6
Analysis of pig posture detection in group-housed pigs using deep learning-based mask scoring instance segmentation.基于深度学习的掩模评分实例分割技术分析群养猪中的猪姿态。
Anim Sci J. 2024 Jan-Dec;95(1):e13975. doi: 10.1111/asj.13975.
7
Improved Mask R-CNN Multi-Target Detection and Segmentation for Autonomous Driving in Complex Scenes.改进的 Mask R-CNN 多目标检测与分割在复杂场景下的自动驾驶。
Sensors (Basel). 2023 Apr 10;23(8):3853. doi: 10.3390/s23083853.
8
Mask-Refined R-CNN: A Network for Refining Object Details in Instance Segmentation.Mask-Refined R-CNN:用于实例分割中细化对象细节的网络。
Sensors (Basel). 2020 Feb 13;20(4):1010. doi: 10.3390/s20041010.
9
A lightweight network based on dual-stream feature fusion and dual-domain attention for white blood cells segmentation.一种基于双流特征融合和双域注意力的轻量级网络用于白细胞分割。
Front Oncol. 2023 Sep 4;13:1223353. doi: 10.3389/fonc.2023.1223353. eCollection 2023.
10
Pan-cancer image segmentation based on feature pyramids and Mask R-CNN framework.基于特征金字塔和 Mask R-CNN 框架的泛癌图像分割。
Med Phys. 2024 Aug;51(8):5427-5440. doi: 10.1002/mp.17014. Epub 2024 Mar 4.

引用本文的文献

1
Weakly supervised learning through box annotations for pig instance segmentation.通过边界框标注进行弱监督学习以实现猪实例分割
Sci Rep. 2025 Jun 4;15(1):19706. doi: 10.1038/s41598-025-05113-x.
2
YOLOv5-Atn: An Algorithm for Residual Film Detection in Farmland Combined with an Attention Mechanism.YOLOv5-Atn:一种结合注意力机制的农田残留地膜检测算法。
Sensors (Basel). 2023 Aug 8;23(16):7035. doi: 10.3390/s23167035.

本文引用的文献

1
Study on the Influence of PCA Pre-Treatment on Pig Face Identification with Random Forest.主成分分析(PCA)预处理对基于随机森林的猪脸识别影响的研究
Animals (Basel). 2023 May 6;13(9):1555. doi: 10.3390/ani13091555.
2
Automatic Detection and Segmentation for Group-Housed Pigs Based on PigMS R-CNN.基于 PigMS R-CNN 的群养猪自动检测与分割。
Sensors (Basel). 2021 May 7;21(9):3251. doi: 10.3390/s21093251.
3
Panoptic Segmentation of Individual Pigs for Posture Recognition.个体猪只全景分割用于姿势识别。
Sensors (Basel). 2020 Jul 2;20(13):3710. doi: 10.3390/s20133710.
4
Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks.更快的 R-CNN:基于区域建议网络的实时目标检测。
IEEE Trans Pattern Anal Mach Intell. 2017 Jun;39(6):1137-1149. doi: 10.1109/TPAMI.2016.2577031. Epub 2016 Jun 6.