Luo Liu , Jinxin Chen , Qi-an Ding , Ruqian Zhao , Mingxia Shen , Longshen Liu
{"title":"Detection and analysis of sow nursing behavior based on the number and location of piglets outside the suckling area using YOLOv5s","authors":"Luo Liu , Jinxin Chen , Qi-an Ding , Ruqian Zhao , Mingxia Shen , Longshen Liu","doi":"10.1016/j.compag.2025.110324","DOIUrl":null,"url":null,"abstract":"<div><div>The nursing behavior of sows plays a crucial role in piglet growth, making precise monitoring and robust statistical analysis essential for a comprehensive evaluation of maternal characteristics. This study employed RGB cameras alongside an innovative Recognition Sow Nursing–You Only Look Once (RSN-YOLO) model to effectively monitor sow nursing behavior. The experimental comprised 24 sows of Yorkshire or Landrace breeds, each fostering no more than 13 piglets. The system automatically detected and recorded the start and end times of each nursing episode, enabling the collection and subsequent analysis of both individual sow characteristics and group behaviors. Results indicate that the YOLOv5s object detection model strikes an optimal balance between speed and accuracy, processing frames at 5.7 ms/frame, while achieving a precision rate of 96.3 %, a recall rate of 95.0 %, and a mean Average Precision ([email protected]) of 97.3 %. Comparisons between these automated detections and manual counts from continuous 24-hour video recordings across five pens confirmed that the method accurately captures both the number of nursing instances and the total duration of nursing with over 95 % accuracy when count errors do not exceed two occurrences. Even when count errors exceed two, accuracy remains above 92 %, with the average duration of each nursing session consistently measured with high precision. The study further revealed that sow nursing behavior does not exhibit a significant day-night rhythm, although notable individual variability within the group is evident. This variability is critical for early identification and intervention in cases where sows exhibit abnormal nursing behaviors relative to overall group patterns. Over a 21-day lactation period, both the total and daily average nursing durations decreased and subsequently stabilized as piglets aged, while the frequency of nursing remained relatively constant. A notable positive correlation (r = 0.67) was found between the number of nursing events and the total nursing duration. Additionally, the results support previous findings that proximally influences the synchronicity of nursing behavior: sows located farther apart are significantly less likely to nurse simultaneously (<em>P</em> < 0.01). Overall, this methodology introduces a novel approach for automating the monitoring of sow nursing behavior on large-scale pig farms. By analyzing individual and group nursing patterns, the approach facilitates the early detection and warning of abnormal nursing behaviors, thereby enhancing the assessment of sow nursing performance and significantly advancing precision livestock farming.</div></div>","PeriodicalId":50627,"journal":{"name":"Computers and Electronics in Agriculture","volume":"235 ","pages":"Article 110324"},"PeriodicalIF":7.7000,"publicationDate":"2025-04-03","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/S0168169925004302","RegionNum":1,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURE, MULTIDISCIPLINARY","Score":null,"Total":0}
引用次数: 0
Abstract
The nursing behavior of sows plays a crucial role in piglet growth, making precise monitoring and robust statistical analysis essential for a comprehensive evaluation of maternal characteristics. This study employed RGB cameras alongside an innovative Recognition Sow Nursing–You Only Look Once (RSN-YOLO) model to effectively monitor sow nursing behavior. The experimental comprised 24 sows of Yorkshire or Landrace breeds, each fostering no more than 13 piglets. The system automatically detected and recorded the start and end times of each nursing episode, enabling the collection and subsequent analysis of both individual sow characteristics and group behaviors. Results indicate that the YOLOv5s object detection model strikes an optimal balance between speed and accuracy, processing frames at 5.7 ms/frame, while achieving a precision rate of 96.3 %, a recall rate of 95.0 %, and a mean Average Precision ([email protected]) of 97.3 %. Comparisons between these automated detections and manual counts from continuous 24-hour video recordings across five pens confirmed that the method accurately captures both the number of nursing instances and the total duration of nursing with over 95 % accuracy when count errors do not exceed two occurrences. Even when count errors exceed two, accuracy remains above 92 %, with the average duration of each nursing session consistently measured with high precision. The study further revealed that sow nursing behavior does not exhibit a significant day-night rhythm, although notable individual variability within the group is evident. This variability is critical for early identification and intervention in cases where sows exhibit abnormal nursing behaviors relative to overall group patterns. Over a 21-day lactation period, both the total and daily average nursing durations decreased and subsequently stabilized as piglets aged, while the frequency of nursing remained relatively constant. A notable positive correlation (r = 0.67) was found between the number of nursing events and the total nursing duration. Additionally, the results support previous findings that proximally influences the synchronicity of nursing behavior: sows located farther apart are significantly less likely to nurse simultaneously (P < 0.01). Overall, this methodology introduces a novel approach for automating the monitoring of sow nursing behavior on large-scale pig farms. By analyzing individual and group nursing patterns, the approach facilitates the early detection and warning of abnormal nursing behaviors, thereby enhancing the assessment of sow nursing performance and significantly advancing precision livestock farming.
期刊介绍:
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.