Yuhang Hu , Xin Dai , Baisheng Dai , Ran Li , Junlong Fang , Yanling Yin , Honggui Liu , Weizheng Shen
{"title":"基于姿态估计和关键点特征判别的群养猪摄食行为识别","authors":"Yuhang Hu , Xin Dai , Baisheng Dai , Ran Li , Junlong Fang , Yanling Yin , Honggui Liu , Weizheng Shen","doi":"10.1016/j.compag.2025.111039","DOIUrl":null,"url":null,"abstract":"<div><div>In the field of intelligent sensing for smart animal husbandry, accurate recognition of feeding behavior in group-housed pigs is crucial for achieving precision farming and improving pig welfare. Currently, pig feeding behavior recognition relies on detection boxes-based methods, which are difficult to exclude Non-Nutritive Visiting Behavior within the feeding zone. To precisely recognize the feeding behavior of group-housed pigs, this study proposes a feeding behavior recognition method based on pose estimation and keypoint features discrimination. Firstly, Pig-HRNet is designed to estimate the pose of group-housed pigs, in which a Context Transformer (COT) attention module is specially introduced to detect the keypoints of pigs more accurately under crowded conditions. Secondly, by analyzing the correlation between keypoints and feeding zone, group-housed pigs are divided into visiting the feeding zone and Non-Feeding Behavior (NFB). For visiting the feeding zone, the behaviors are further categorized into Feeding Behavior (FB) and Non-Nutritive Visiting Behavior (NNVB). The experimental data of group-housed pigs were collected in commercial pig farms, including a total of 1400 video frames. Experimental results show that the Pig-HRNet model achieves an average precision (AP) of 97.1% in estimating pig poses. Compared to other pose estimation network models such as KAPAO, HigherHRNet, DeepLabCut, and HRNet, the detection AP improved by 69.0%, 16.3%, 12.3%, and 0.5%, respectively. The feeding behavior recognition method proposed in this paper achieved precision and recall rates of 98.8% and 99.9%, respectively. The relevant results indicate that the proposed feeding behavior recognition method performs well, while also meeting the requirement for accurately estimating pig poses under crowded conditions. The feeding behavior dataset established in this paper has been shared on <span><span><u>https://github.com/IPCLab-NEAU/Group-housed-pigs-Feeding-Behavior-Recognition</u></span><svg><path></path></svg></span> for use by the precision animal husbandry research community.</div></div>","PeriodicalId":50627,"journal":{"name":"Computers and Electronics in Agriculture","volume":"239 ","pages":"Article 111039"},"PeriodicalIF":8.9000,"publicationDate":"2025-10-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Feeding behavior recognition of group-housed pigs based on pose estimation and keypoint features discrimination\",\"authors\":\"Yuhang Hu , Xin Dai , Baisheng Dai , Ran Li , Junlong Fang , Yanling Yin , Honggui Liu , Weizheng Shen\",\"doi\":\"10.1016/j.compag.2025.111039\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>In the field of intelligent sensing for smart animal husbandry, accurate recognition of feeding behavior in group-housed pigs is crucial for achieving precision farming and improving pig welfare. Currently, pig feeding behavior recognition relies on detection boxes-based methods, which are difficult to exclude Non-Nutritive Visiting Behavior within the feeding zone. To precisely recognize the feeding behavior of group-housed pigs, this study proposes a feeding behavior recognition method based on pose estimation and keypoint features discrimination. Firstly, Pig-HRNet is designed to estimate the pose of group-housed pigs, in which a Context Transformer (COT) attention module is specially introduced to detect the keypoints of pigs more accurately under crowded conditions. Secondly, by analyzing the correlation between keypoints and feeding zone, group-housed pigs are divided into visiting the feeding zone and Non-Feeding Behavior (NFB). For visiting the feeding zone, the behaviors are further categorized into Feeding Behavior (FB) and Non-Nutritive Visiting Behavior (NNVB). The experimental data of group-housed pigs were collected in commercial pig farms, including a total of 1400 video frames. Experimental results show that the Pig-HRNet model achieves an average precision (AP) of 97.1% in estimating pig poses. Compared to other pose estimation network models such as KAPAO, HigherHRNet, DeepLabCut, and HRNet, the detection AP improved by 69.0%, 16.3%, 12.3%, and 0.5%, respectively. The feeding behavior recognition method proposed in this paper achieved precision and recall rates of 98.8% and 99.9%, respectively. The relevant results indicate that the proposed feeding behavior recognition method performs well, while also meeting the requirement for accurately estimating pig poses under crowded conditions. The feeding behavior dataset established in this paper has been shared on <span><span><u>https://github.com/IPCLab-NEAU/Group-housed-pigs-Feeding-Behavior-Recognition</u></span><svg><path></path></svg></span> for use by the precision animal husbandry research community.</div></div>\",\"PeriodicalId\":50627,\"journal\":{\"name\":\"Computers and Electronics in Agriculture\",\"volume\":\"239 \",\"pages\":\"Article 111039\"},\"PeriodicalIF\":8.9000,\"publicationDate\":\"2025-10-02\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Computers and Electronics in Agriculture\",\"FirstCategoryId\":\"97\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0168169925011457\",\"RegionNum\":1,\"RegionCategory\":\"农林科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"AGRICULTURE, MULTIDISCIPLINARY\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computers and Electronics in Agriculture","FirstCategoryId":"97","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0168169925011457","RegionNum":1,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURE, MULTIDISCIPLINARY","Score":null,"Total":0}
Feeding behavior recognition of group-housed pigs based on pose estimation and keypoint features discrimination
In the field of intelligent sensing for smart animal husbandry, accurate recognition of feeding behavior in group-housed pigs is crucial for achieving precision farming and improving pig welfare. Currently, pig feeding behavior recognition relies on detection boxes-based methods, which are difficult to exclude Non-Nutritive Visiting Behavior within the feeding zone. To precisely recognize the feeding behavior of group-housed pigs, this study proposes a feeding behavior recognition method based on pose estimation and keypoint features discrimination. Firstly, Pig-HRNet is designed to estimate the pose of group-housed pigs, in which a Context Transformer (COT) attention module is specially introduced to detect the keypoints of pigs more accurately under crowded conditions. Secondly, by analyzing the correlation between keypoints and feeding zone, group-housed pigs are divided into visiting the feeding zone and Non-Feeding Behavior (NFB). For visiting the feeding zone, the behaviors are further categorized into Feeding Behavior (FB) and Non-Nutritive Visiting Behavior (NNVB). The experimental data of group-housed pigs were collected in commercial pig farms, including a total of 1400 video frames. Experimental results show that the Pig-HRNet model achieves an average precision (AP) of 97.1% in estimating pig poses. Compared to other pose estimation network models such as KAPAO, HigherHRNet, DeepLabCut, and HRNet, the detection AP improved by 69.0%, 16.3%, 12.3%, and 0.5%, respectively. The feeding behavior recognition method proposed in this paper achieved precision and recall rates of 98.8% and 99.9%, respectively. The relevant results indicate that the proposed feeding behavior recognition method performs well, while also meeting the requirement for accurately estimating pig poses under crowded conditions. The feeding behavior dataset established in this paper has been shared on https://github.com/IPCLab-NEAU/Group-housed-pigs-Feeding-Behavior-Recognition for use by the precision animal husbandry research community.
期刊介绍:
Computers and Electronics in Agriculture provides international coverage of advancements in computer hardware, software, electronic instrumentation, and control systems applied to agricultural challenges. Encompassing agronomy, horticulture, forestry, aquaculture, and animal farming, the journal publishes original papers, reviews, and applications notes. It explores the use of computers and electronics in plant or animal agricultural production, covering topics like agricultural soils, water, pests, controlled environments, and waste. The scope extends to on-farm post-harvest operations and relevant technologies, including artificial intelligence, sensors, machine vision, robotics, networking, and simulation modeling. Its companion journal, Smart Agricultural Technology, continues the focus on smart applications in production agriculture.