基于YOLOv8n的猪多场景行为识别

IF 2.7 2区 农林科学 Q1 AGRICULTURE, DAIRY & ANIMAL SCIENCE
Animals Pub Date : 2025-10-09 DOI:10.3390/ani15192927
Panqi Pu, Junge Wang, Geqi Yan, Hongchao Jiao, Hao Li, Hai Lin
{"title":"基于YOLOv8n的猪多场景行为识别","authors":"Panqi Pu, Junge Wang, Geqi Yan, Hongchao Jiao, Hao Li, Hai Lin","doi":"10.3390/ani15192927","DOIUrl":null,"url":null,"abstract":"<p><p>Advances in smart animal husbandry necessitate efficient pig behavior monitoring, yet traditional approaches suffer from operational inefficiency and animal stress. We address these limitations through a lightweight YOLOv8n architecture enhanced with SPD-Conv for feature preservation during downsampling, LSKBlock attention for contextual feature fusion, and a dedicated small-target detection head. Experimental validation demonstrates superior performance: the optimized model achieves a 92.4% mean average precision (mAP@0.5) and 87.4% recall, significantly outperforming baseline YOLOv8n by 3.7% in AP while maintaining minimal parameter growth (3.34M). Controlled illumination tests confirm enhanced robustness under strong and warm lighting conditions, with performance gains of 1.5% and 0.7% in AP, respectively. This high-precision framework enables real-time recognition of standing, prone lying, lateral lying, and feeding behaviors in commercial piggeries, supporting early health anomaly detection through non-invasive monitoring.</p>","PeriodicalId":7955,"journal":{"name":"Animals","volume":"15 19","pages":""},"PeriodicalIF":2.7000,"publicationDate":"2025-10-09","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC12523645/pdf/","citationCount":"0","resultStr":"{\"title\":\"EnhancedMulti-Scenario Pig Behavior Recognition Based on YOLOv8n.\",\"authors\":\"Panqi Pu, Junge Wang, Geqi Yan, Hongchao Jiao, Hao Li, Hai Lin\",\"doi\":\"10.3390/ani15192927\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<p><p>Advances in smart animal husbandry necessitate efficient pig behavior monitoring, yet traditional approaches suffer from operational inefficiency and animal stress. We address these limitations through a lightweight YOLOv8n architecture enhanced with SPD-Conv for feature preservation during downsampling, LSKBlock attention for contextual feature fusion, and a dedicated small-target detection head. Experimental validation demonstrates superior performance: the optimized model achieves a 92.4% mean average precision (mAP@0.5) and 87.4% recall, significantly outperforming baseline YOLOv8n by 3.7% in AP while maintaining minimal parameter growth (3.34M). Controlled illumination tests confirm enhanced robustness under strong and warm lighting conditions, with performance gains of 1.5% and 0.7% in AP, respectively. This high-precision framework enables real-time recognition of standing, prone lying, lateral lying, and feeding behaviors in commercial piggeries, supporting early health anomaly detection through non-invasive monitoring.</p>\",\"PeriodicalId\":7955,\"journal\":{\"name\":\"Animals\",\"volume\":\"15 19\",\"pages\":\"\"},\"PeriodicalIF\":2.7000,\"publicationDate\":\"2025-10-09\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC12523645/pdf/\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Animals\",\"FirstCategoryId\":\"97\",\"ListUrlMain\":\"https://doi.org/10.3390/ani15192927\",\"RegionNum\":2,\"RegionCategory\":\"农林科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"AGRICULTURE, DAIRY & ANIMAL SCIENCE\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Animals","FirstCategoryId":"97","ListUrlMain":"https://doi.org/10.3390/ani15192927","RegionNum":2,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURE, DAIRY & ANIMAL SCIENCE","Score":null,"Total":0}
引用次数: 0

摘要

智能畜牧业的发展需要高效的猪行为监测,但传统方法存在操作效率低和动物压力大的问题。我们通过轻量级的YOLOv8n架构解决了这些限制,该架构增强了SPD-Conv,用于下采样期间的特征保存,LSKBlock关注上下文特征融合,以及专用的小目标检测头。实验验证表明,优化后的模型达到了92.4%的平均精度(mAP@0.5)和87.4%的召回率,在保持最小参数增长(3.34M)的情况下,显著优于基准YOLOv8n在AP中的3.7%。受控照明测试证实,在强照明和温暖照明条件下,性能增强了1.5%和0.7%。这种高精度的框架可以实时识别商业养猪场的站立、俯卧、侧卧和喂养行为,通过非侵入性监测支持早期健康异常检测。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
EnhancedMulti-Scenario Pig Behavior Recognition Based on YOLOv8n.

Advances in smart animal husbandry necessitate efficient pig behavior monitoring, yet traditional approaches suffer from operational inefficiency and animal stress. We address these limitations through a lightweight YOLOv8n architecture enhanced with SPD-Conv for feature preservation during downsampling, LSKBlock attention for contextual feature fusion, and a dedicated small-target detection head. Experimental validation demonstrates superior performance: the optimized model achieves a 92.4% mean average precision (mAP@0.5) and 87.4% recall, significantly outperforming baseline YOLOv8n by 3.7% in AP while maintaining minimal parameter growth (3.34M). Controlled illumination tests confirm enhanced robustness under strong and warm lighting conditions, with performance gains of 1.5% and 0.7% in AP, respectively. This high-precision framework enables real-time recognition of standing, prone lying, lateral lying, and feeding behaviors in commercial piggeries, supporting early health anomaly detection through non-invasive monitoring.

求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
Animals
Animals Agricultural and Biological Sciences-Animal Science and Zoology
CiteScore
4.90
自引率
16.70%
发文量
3015
审稿时长
20.52 days
期刊介绍: Animals (ISSN 2076-2615) is an international and interdisciplinary scholarly open access journal. It publishes original research articles, reviews, communications, and short notes that are relevant to any field of study that involves animals, including zoology, ethnozoology, animal science, animal ethics and animal welfare. However, preference will be given to those articles that provide an understanding of animals within a larger context (i.e., the animals'' interactions with the outside world, including humans). There is no restriction on the length of the papers. Our aim is to encourage scientists to publish their experimental and theoretical research in as much detail as possible. Full experimental details and/or method of study, must be provided for research articles. Articles submitted that involve subjecting animals to unnecessary pain or suffering will not be accepted, and all articles must be submitted with the necessary ethical approval (please refer to the Ethical Guidelines for more information).
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信