• 文献检索
  • 文档翻译
  • 深度研究
  • 学术资讯
  • 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分钟生成高质量综述,智能提取关键信息,辅助科研写作。

立即免费体验

YOLOv5-KCB:一种使用优化 K-Means、CA 注意力机制和双向特征金字塔网络的个体猪检测新方法。

YOLOv5-KCB: A New Method for Individual Pig Detection Using Optimized K-Means, CA Attention Mechanism and a Bi-Directional Feature Pyramid Network.

机构信息

School of Information and Computer, Anhui Agricultural University, Hefei 230036, China.

Key Laboratory of Agricultural Sensors, Ministry of Agriculture and Rural Affairs, Hefei 230036, China.

出版信息

Sensors (Basel). 2023 May 31;23(11):5242. doi: 10.3390/s23115242.

DOI:10.3390/s23115242
PMID:37299967
原文链接:https://pmc.ncbi.nlm.nih.gov/articles/PMC10255871/
Abstract

Individual identification of pigs is a critical component of intelligent pig farming. Traditional pig ear-tagging requires significant human resources and suffers from issues such as difficulty in recognition and low accuracy. This paper proposes the YOLOv5-KCB algorithm for non-invasive identification of individual pigs. Specifically, the algorithm utilizes two datasets-pig faces and pig necks-which are divided into nine categories. Following data augmentation, the total sample size was augmented to 19,680. The distance metric used for K-means clustering is changed from the original algorithm to 1-IOU, which improves the adaptability of the model's target anchor boxes. Furthermore, the algorithm introduces SE, CBAM, and CA attention mechanisms, with the CA attention mechanism being selected for its superior performance in feature extraction. Finally, CARAFE, ASFF, and BiFPN are used for feature fusion, with BiFPN selected for its superior performance in improving the detection ability of the algorithm. The experimental results indicate that the YOLOv5-KCB algorithm achieved the highest accuracy rates in pig individual recognition, surpassing all other improved algorithms in average accuracy rate (IOU = 0.5). The accuracy rate of pig head and neck recognition was 98.4%, while the accuracy rate for pig face recognition was 95.1%, representing an improvement of 4.8% and 13.8% over the original YOLOv5 algorithm. Notably, the average accuracy rate of identifying pig head and neck was consistently higher than pig face recognition across all algorithms, with YOLOv5-KCB demonstrating an impressive 2.9% improvement. These results emphasize the potential for utilizing the YOLOv5-KCB algorithm for precise individual pig identification, facilitating subsequent intelligent management practices.

摘要

个体猪只识别是智能养猪的关键组成部分。传统的猪耳标需要大量的人力资源,并且存在识别困难和准确率低等问题。本文提出了一种用于个体猪只非侵入式识别的 YOLOv5-KCB 算法。具体来说,该算法利用了猪脸和猪颈两个数据集,将其分为九类。在进行数据增强后,总样本量增加到 19680 个。用于 K-means 聚类的距离度量从原始算法的 0.1-IOU 更改为 1-IOU,提高了模型目标锚框的适应性。此外,该算法引入了 SE、CBAM 和 CA 注意力机制,CA 注意力机制在特征提取方面表现出色。最后,使用 CARAFE、ASFF 和 BiFPN 进行特征融合,BiFPN 因其在提高算法检测能力方面的优异表现而被选中。实验结果表明,YOLOv5-KCB 算法在个体猪识别方面取得了最高的准确率,在平均准确率(IOU=0.5)方面超过了所有其他改进算法。猪头颈识别的准确率为 98.4%,猪脸识别的准确率为 95.1%,分别比原始的 YOLOv5 算法提高了 4.8%和 13.8%。值得注意的是,在所有算法中,猪头颈识别的平均准确率始终高于猪脸识别,而 YOLOv5-KCB 算法的准确率提高了 2.9%,表现尤为突出。这些结果强调了利用 YOLOv5-KCB 算法进行精确个体猪只识别的潜力,为后续的智能管理实践提供了便利。

https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/3aced9d5f9bb/sensors-23-05242-g018.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/50a605f965bc/sensors-23-05242-g008.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/fb9368137102/sensors-23-05242-g001.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/4268b0a65b3a/sensors-23-05242-g002.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/4cbaf176db96/sensors-23-05242-g003.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/c8844b768b84/sensors-23-05242-g004.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/36e5a9a01aa4/sensors-23-05242-g005.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/7f36df34410a/sensors-23-05242-g006.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/b60f8ffada64/sensors-23-05242-g007.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/f727216d4c78/sensors-23-05242-g009.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/4883fe7f30fa/sensors-23-05242-g010.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/035b2c32a0c8/sensors-23-05242-g011.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/7d7206276bef/sensors-23-05242-g012.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/f2fe5204ec37/sensors-23-05242-g013.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/5e516621afa9/sensors-23-05242-g014.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/599ba3ccee7a/sensors-23-05242-g015.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/ac8a107d3a22/sensors-23-05242-g016.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/67db29e35e05/sensors-23-05242-g017.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/3aced9d5f9bb/sensors-23-05242-g018.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/50a605f965bc/sensors-23-05242-g008.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/fb9368137102/sensors-23-05242-g001.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/4268b0a65b3a/sensors-23-05242-g002.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/4cbaf176db96/sensors-23-05242-g003.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/c8844b768b84/sensors-23-05242-g004.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/36e5a9a01aa4/sensors-23-05242-g005.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/7f36df34410a/sensors-23-05242-g006.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/b60f8ffada64/sensors-23-05242-g007.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/f727216d4c78/sensors-23-05242-g009.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/4883fe7f30fa/sensors-23-05242-g010.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/035b2c32a0c8/sensors-23-05242-g011.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/7d7206276bef/sensors-23-05242-g012.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/f2fe5204ec37/sensors-23-05242-g013.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/5e516621afa9/sensors-23-05242-g014.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/599ba3ccee7a/sensors-23-05242-g015.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/ac8a107d3a22/sensors-23-05242-g016.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/67db29e35e05/sensors-23-05242-g017.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/6e03/10255871/3aced9d5f9bb/sensors-23-05242-g018.jpg

相似文献

1
YOLOv5-KCB: A New Method for Individual Pig Detection Using Optimized K-Means, CA Attention Mechanism and a Bi-Directional Feature Pyramid Network.YOLOv5-KCB:一种使用优化 K-Means、CA 注意力机制和双向特征金字塔网络的个体猪检测新方法。
Sensors (Basel). 2023 May 31;23(11):5242. doi: 10.3390/s23115242.
2
Lightweight tea bud recognition network integrating GhostNet and YOLOv5.融合GhostNet与YOLOv5的轻量级茶芽识别网络
Math Biosci Eng. 2022 Sep 5;19(12):12897-12914. doi: 10.3934/mbe.2022602.
3
An Image Detection Method for Image Stabilization Deviation of the Tank Gunner's Primary Sight.坦克炮手主瞄准镜像移检测方法
Sensors (Basel). 2023 May 24;23(11):5039. doi: 10.3390/s23115039.
4
Recognition of terminal buds of densely-planted Chinese fir seedlings using improved YOLOv5 by integrating attention mechanism.基于注意力机制改进YOLOv5对密植杉木幼苗顶芽的识别
Front Plant Sci. 2022 Oct 10;13:991929. doi: 10.3389/fpls.2022.991929. eCollection 2022.
5
Improvement of the YOLOv5 Model in the Optimization of the Brown Spot Disease Recognition Algorithm of Kidney Bean.基于菜豆褐斑病识别算法优化的YOLOv5模型改进
Plants (Basel). 2023 Nov 3;12(21):3765. doi: 10.3390/plants12213765.
6
Research on Mask-Wearing Detection Algorithm Based on Improved YOLOv5.基于改进 YOLOv5 的口罩佩戴检测算法研究。
Sensors (Basel). 2022 Jun 29;22(13):4933. doi: 10.3390/s22134933.
7
Enhanced YOLOv5: An Efficient Road Object Detection Method.增强型YOLOv5:一种高效的道路目标检测方法。
Sensors (Basel). 2023 Oct 10;23(20):8355. doi: 10.3390/s23208355.
8
Research on improved algorithm for helmet detection based on YOLOv5.基于YOLOv5的头盔检测改进算法研究
Sci Rep. 2023 Oct 23;13(1):18056. doi: 10.1038/s41598-023-45383-x.
9
Dynamic Serpentine Convolution with Attention Mechanism Enhancement for Beef Cattle Behavior Recognition.基于注意力机制增强的动态蛇形卷积用于肉牛行为识别
Animals (Basel). 2024 Jan 31;14(3):466. doi: 10.3390/ani14030466.
10
Defect Detection for Metal Shaft Surfaces Based on an Improved YOLOv5 Algorithm and Transfer Learning.基于改进的 YOLOv5 算法和迁移学习的金属轴表面缺陷检测。
Sensors (Basel). 2023 Apr 5;23(7):3761. doi: 10.3390/s23073761.

引用本文的文献

1
Lightweight Sheep Face Recognition Model Combining Grouped Convolution and Parameter Fusion.结合分组卷积与参数融合的轻量级绵羊面部识别模型
Sensors (Basel). 2025 Jul 25;25(15):4610. doi: 10.3390/s25154610.
2
Nondestructive freshness recognition of chicken breast meat based on deep learning.基于深度学习的鸡胸肉无损新鲜度识别
Sci Rep. 2025 Jul 29;15(1):27538. doi: 10.1038/s41598-025-13576-1.
3
Enhanced YOLOv8 for Robust Pig Detection and Counting in Complex Agricultural Environments.用于复杂农业环境中稳健的生猪检测与计数的增强型YOLOv8

本文引用的文献

1
An Improved YOLOv5-Based Underwater Object-Detection Framework.一种改进的基于 YOLOv5 的水下目标检测框架。
Sensors (Basel). 2023 Apr 3;23(7):3693. doi: 10.3390/s23073693.
2
Waste Detection System Based on Data Augmentation and YOLO_EC.基于数据增强和 YOLO_EC 的废物检测系统。
Sensors (Basel). 2023 Mar 31;23(7):3646. doi: 10.3390/s23073646.
3
Sow Farrowing Early Warning and Supervision for Embedded Board Implementations.迄今已有的嵌入式板实现的分娩预警和监督。
Animals (Basel). 2025 Jul 21;15(14):2149. doi: 10.3390/ani15142149.
4
Self-calibrated acceleration and detail preserving for semantic segmentation of lactating sows and piglets under low-light conditions.用于低光照条件下哺乳母猪和仔猪语义分割的自校准加速与细节保留
Sci Rep. 2025 Jul 3;15(1):23795. doi: 10.1038/s41598-025-09146-0.
5
A Review of You Only Look Once Algorithms in Animal Phenotyping Applications.动物表型分析应用中的“你只看一次”算法综述。
Animals (Basel). 2025 Apr 13;15(8):1126. doi: 10.3390/ani15081126.
6
YOLOv8A-SD: A Segmentation-Detection Algorithm for Overlooking Scenes in Pig Farms.YOLOv8A-SD:一种用于猪场俯瞰场景的分割检测算法。
Animals (Basel). 2025 Mar 30;15(7):1000. doi: 10.3390/ani15071000.
7
PigFRIS: A Three-Stage Pipeline for Fence Occlusion Segmentation, GAN-Based Pig Face Inpainting, and Efficient Pig Face Recognition.猪脸FRIS:一种用于围栏遮挡分割、基于生成对抗网络的猪脸图像修复及高效猪脸识别的三阶段流程
Animals (Basel). 2025 Mar 28;15(7):978. doi: 10.3390/ani15070978.
8
Line-YOLO: An Efficient Detection Algorithm for Power Line Angle.直线YOLO:一种用于电力线角度的高效检测算法。
Sensors (Basel). 2025 Jan 31;25(3):876. doi: 10.3390/s25030876.
9
Dynamic Serpentine Convolution with Attention Mechanism Enhancement for Beef Cattle Behavior Recognition.基于注意力机制增强的动态蛇形卷积用于肉牛行为识别
Animals (Basel). 2024 Jan 31;14(3):466. doi: 10.3390/ani14030466.
10
YOLOv5-SA-FC: A Novel Pig Detection and Counting Method Based on Shuffle Attention and Focal Complete Intersection over Union.YOLOv5-SA-FC:一种基于洗牌注意力机制和焦点完全交并比的新型猪只检测与计数方法。
Animals (Basel). 2023 Oct 13;13(20):3201. doi: 10.3390/ani13203201.
Sensors (Basel). 2023 Jan 9;23(2):727. doi: 10.3390/s23020727.
4
Estimation of Number of Pigs Taking in Feed Using Posture Filtration.利用姿势过滤法估算采食猪只数量
Sensors (Basel). 2022 Dec 26;23(1):238. doi: 10.3390/s23010238.
5
A Novel Improved YOLOv3-SC Model for Individual Pig Detection.一种用于个体猪检测的新型改进 YOLOv3-SC 模型。
Sensors (Basel). 2022 Nov 15;22(22):8792. doi: 10.3390/s22228792.
6
HRST: An Improved HRNet for Detecting Joint Points of Pigs.HRST:一种改进的 HRNet 用于检测猪的关节点。
Sensors (Basel). 2022 Sep 23;22(19):7215. doi: 10.3390/s22197215.
7
Detecting Animal Contacts-A Deep Learning-Based Pig Detection and Tracking Approach for the Quantification of Social Contacts.检测动物接触——一种基于深度学习的猪检测与跟踪方法用于社交接触量化
Sensors (Basel). 2021 Nov 12;21(22):7512. doi: 10.3390/s21227512.
8
Deep-Learning-Based Automatic Monitoring of Pigs' Physico-Temporal Activities at Different Greenhouse Gas Concentrations.基于深度学习的不同温室气体浓度下猪的物理时间活动自动监测
Animals (Basel). 2021 Oct 29;11(11):3089. doi: 10.3390/ani11113089.
9
Long-Term Tracking of Group-Housed Livestock Using Keypoint Detection and MAP Estimation for Individual Animal Identification.基于关键点检测和 MAP 估计的个体动物识别的群居牲畜的长期跟踪。
Sensors (Basel). 2020 Jun 30;20(13):3670. doi: 10.3390/s20133670.
10
Self-Supervised Visual Feature Learning With Deep Neural Networks: A Survey.基于深度神经网络的自监督视觉特征学习:综述
IEEE Trans Pattern Anal Mach Intell. 2021 Nov;43(11):4037-4058. doi: 10.1109/TPAMI.2020.2992393. Epub 2021 Oct 1.