Cargando…

Detection of Pig Movement and Aggression Using Deep Learning Approaches

SIMPLE SUMMARY: In this study, a deep learning-based detection and identification method is proposed to detect and identify the movement duration and aggressive behavior of pigs under on-farm conditions by using computer vision technology and electronic identity cards. The performance of different t...

Descripción completa

Detalles Bibliográficos
Autores principales: Wei, Jiacheng, Tang, Xi, Liu, Jinxiu, Zhang, Zhiyan
Formato: Online Artículo Texto
Lenguaje:English
Publicado: MDPI 2023
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10571548/
https://www.ncbi.nlm.nih.gov/pubmed/37835680
http://dx.doi.org/10.3390/ani13193074
_version_ 1785120026333806592
author Wei, Jiacheng
Tang, Xi
Liu, Jinxiu
Zhang, Zhiyan
author_facet Wei, Jiacheng
Tang, Xi
Liu, Jinxiu
Zhang, Zhiyan
author_sort Wei, Jiacheng
collection PubMed
description SIMPLE SUMMARY: In this study, a deep learning-based detection and identification method is proposed to detect and identify the movement duration and aggressive behavior of pigs under on-farm conditions by using computer vision technology and electronic identity cards. The performance of different target detection algorithms for individual pig and aggressive behavior detection is also evaluated. The aim of this study is to establish an automated system for detecting pig aggressive behavior and energy expenditure, which may be able to provide reliable data and technical support for the study of the social hierarchy of pigs, as well as the selection and breeding of pig health and aggression phenotypes. ABSTRACT: Motion and aggressive behaviors in pigs provide important information for the study of social hierarchies in pigs and can be used as a selection indicator for pig health and aggression parameters. However, relying only on visual observation or surveillance video to record the number of aggressive acts is time-consuming, labor-intensive, and lasts for only a short period of time. Manual observation is too short compared to the growth cycle of pigs, and complete recording is impractical in large farms. In addition, due to the complex process of assessing the intensity of pig aggression, manual recording is highly influenced by human subjective vision. In order to efficiently record pig motion and aggressive behaviors as parameters for breeding selection and behavioral studies, the videos and pictures were collected from typical commercial farms, with each unit including 8~20 pigs in 7~25 m(2) space; they were bred in stable social groups and a video was set up to record the whole day’s activities. We proposed a deep learning-based recognition method for detecting and recognizing the movement and aggressive behaviors of pigs by recording and annotating head-to-head tapping, head-to-body tapping, neck biting, body biting, and ear biting during fighting. The method uses an improved EMA-YOLOv8 model and a target tracking algorithm to assign a unique digital identity code to each pig, while efficiently recognizing and recording pig motion and aggressive behaviors and tracking them, thus providing statistics on the speed and duration of pig motion. On the test dataset, the average precision of the model was 96.4%, indicating that the model has high accuracy in detecting a pig’s identity and its fighting behaviors. The model detection results were highly correlated with the manual recording results (R(2) of 0.9804 and 0.9856, respectively), indicating that the method has high accuracy and effectiveness. In summary, the method realized the detection and identification of motion duration and aggressive behavior of pigs under natural conditions, and provided reliable data and technical support for the study of the social hierarchy of pigs and the selection of pig health and aggression phenotypes.
format Online
Article
Text
id pubmed-10571548
institution National Center for Biotechnology Information
language English
publishDate 2023
publisher MDPI
record_format MEDLINE/PubMed
spelling pubmed-105715482023-10-14 Detection of Pig Movement and Aggression Using Deep Learning Approaches Wei, Jiacheng Tang, Xi Liu, Jinxiu Zhang, Zhiyan Animals (Basel) Article SIMPLE SUMMARY: In this study, a deep learning-based detection and identification method is proposed to detect and identify the movement duration and aggressive behavior of pigs under on-farm conditions by using computer vision technology and electronic identity cards. The performance of different target detection algorithms for individual pig and aggressive behavior detection is also evaluated. The aim of this study is to establish an automated system for detecting pig aggressive behavior and energy expenditure, which may be able to provide reliable data and technical support for the study of the social hierarchy of pigs, as well as the selection and breeding of pig health and aggression phenotypes. ABSTRACT: Motion and aggressive behaviors in pigs provide important information for the study of social hierarchies in pigs and can be used as a selection indicator for pig health and aggression parameters. However, relying only on visual observation or surveillance video to record the number of aggressive acts is time-consuming, labor-intensive, and lasts for only a short period of time. Manual observation is too short compared to the growth cycle of pigs, and complete recording is impractical in large farms. In addition, due to the complex process of assessing the intensity of pig aggression, manual recording is highly influenced by human subjective vision. In order to efficiently record pig motion and aggressive behaviors as parameters for breeding selection and behavioral studies, the videos and pictures were collected from typical commercial farms, with each unit including 8~20 pigs in 7~25 m(2) space; they were bred in stable social groups and a video was set up to record the whole day’s activities. We proposed a deep learning-based recognition method for detecting and recognizing the movement and aggressive behaviors of pigs by recording and annotating head-to-head tapping, head-to-body tapping, neck biting, body biting, and ear biting during fighting. The method uses an improved EMA-YOLOv8 model and a target tracking algorithm to assign a unique digital identity code to each pig, while efficiently recognizing and recording pig motion and aggressive behaviors and tracking them, thus providing statistics on the speed and duration of pig motion. On the test dataset, the average precision of the model was 96.4%, indicating that the model has high accuracy in detecting a pig’s identity and its fighting behaviors. The model detection results were highly correlated with the manual recording results (R(2) of 0.9804 and 0.9856, respectively), indicating that the method has high accuracy and effectiveness. In summary, the method realized the detection and identification of motion duration and aggressive behavior of pigs under natural conditions, and provided reliable data and technical support for the study of the social hierarchy of pigs and the selection of pig health and aggression phenotypes. MDPI 2023-09-30 /pmc/articles/PMC10571548/ /pubmed/37835680 http://dx.doi.org/10.3390/ani13193074 Text en © 2023 by the authors. https://creativecommons.org/licenses/by/4.0/Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
spellingShingle Article
Wei, Jiacheng
Tang, Xi
Liu, Jinxiu
Zhang, Zhiyan
Detection of Pig Movement and Aggression Using Deep Learning Approaches
title Detection of Pig Movement and Aggression Using Deep Learning Approaches
title_full Detection of Pig Movement and Aggression Using Deep Learning Approaches
title_fullStr Detection of Pig Movement and Aggression Using Deep Learning Approaches
title_full_unstemmed Detection of Pig Movement and Aggression Using Deep Learning Approaches
title_short Detection of Pig Movement and Aggression Using Deep Learning Approaches
title_sort detection of pig movement and aggression using deep learning approaches
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10571548/
https://www.ncbi.nlm.nih.gov/pubmed/37835680
http://dx.doi.org/10.3390/ani13193074
work_keys_str_mv AT weijiacheng detectionofpigmovementandaggressionusingdeeplearningapproaches
AT tangxi detectionofpigmovementandaggressionusingdeeplearningapproaches
AT liujinxiu detectionofpigmovementandaggressionusingdeeplearningapproaches
AT zhangzhiyan detectionofpigmovementandaggressionusingdeeplearningapproaches