Cargando…

Efficient Detection Method of Pig-Posture Behavior Based on Multiple Attention Mechanism

Due to the low detection precision and poor robustness, the traditional pig-posture and behavior detection method is difficult to apply in the complex pig captivity environment. In this regard, we designed the HE-Yolo (High-effect Yolo) model, which improves the Darknet-53 feature extraction network...

Descripción completa

Detalles Bibliográficos
Autores principales: Huang, Li, Xu, Lijia, Wang, Yuchao, Peng, Yingqi, Zou, Zhiyong, Huang, Peng
Formato: Online Artículo Texto
Lenguaje:English
Publicado: Hindawi 2022
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9308522/
https://www.ncbi.nlm.nih.gov/pubmed/35880056
http://dx.doi.org/10.1155/2022/1759542
_version_ 1784752999134920704
author Huang, Li
Xu, Lijia
Wang, Yuchao
Peng, Yingqi
Zou, Zhiyong
Huang, Peng
author_facet Huang, Li
Xu, Lijia
Wang, Yuchao
Peng, Yingqi
Zou, Zhiyong
Huang, Peng
author_sort Huang, Li
collection PubMed
description Due to the low detection precision and poor robustness, the traditional pig-posture and behavior detection method is difficult to apply in the complex pig captivity environment. In this regard, we designed the HE-Yolo (High-effect Yolo) model, which improves the Darknet-53 feature extraction network and integrates DAM (Dual attention mechanism) of channel attention mechanism and space attention mechanism, to recognize the posture behaviors of the enclosure pigs in real-time. First, the pig data set is clustered and optimized by the K-means algorithm to obtain a new anchor frame size. Second, the DSC (Depthwise separable convolution) and h-switch activation function are innovatively introduced into the Darknet-53 feature extraction network, and the C-Res (Contrary residual structure) unit is designed to build Darknet-A feature extraction network, so as to avoid network gradient explosion and ensure the integrity of feature information. Subsequently, DAM integrating the spatial attention mechanism and the channel attention mechanism is established, and it is further combined with the Incep-abate module to form DAB (Dual attention block), and HE-Yolo is finally built by Darknet-A and DAB. A total of 2912 images of 46 enclosure pigs are divided into the training set, the verification set, and the test set according to the ratio of 14 : 3:3, and the recognition performance of HE-Yolo is verified according to the parameters of the precision P, the recall R, the AP (i.e., the area of P-R curve) and the MAP (i.e., the average value of AP). The experiment results show that the AP values of HE-Yolo reach 99.25%, 98.41%, 94.43%, and 97.63%, respectively, in the recognition of four pig-posture behaviors of standing, sitting, prone and sidling of the test set. Compared with other models such as Yolo v3, SSD, and faster R–CNN, the mAP value of HE-Yolo is increased by 5.61%, 4.65%, and 0.57%, respectively, and the single-frame recognition time of HE-Yolo is only 0.045 s. In the recognition of images with foreign body occlusion and pig adhesion, the mAP values of HE-Yolo are increased by 4.04%, 4.94%, and 1.76%, respectively, while compared with other models. Under different lighting conditions, the mAP value of HE-Yolo is also higher than that of other models. The experimental results show that HE-Yolo can recognize the pig-posture behaviors with high precision, and it shows good generalization ability and luminance robustness, which provides technical support for the recognition of pig-posture behaviors and real-time monitoring of physiological health of the enclosure pigs.
format Online
Article
Text
id pubmed-9308522
institution National Center for Biotechnology Information
language English
publishDate 2022
publisher Hindawi
record_format MEDLINE/PubMed
spelling pubmed-93085222022-07-24 Efficient Detection Method of Pig-Posture Behavior Based on Multiple Attention Mechanism Huang, Li Xu, Lijia Wang, Yuchao Peng, Yingqi Zou, Zhiyong Huang, Peng Comput Intell Neurosci Research Article Due to the low detection precision and poor robustness, the traditional pig-posture and behavior detection method is difficult to apply in the complex pig captivity environment. In this regard, we designed the HE-Yolo (High-effect Yolo) model, which improves the Darknet-53 feature extraction network and integrates DAM (Dual attention mechanism) of channel attention mechanism and space attention mechanism, to recognize the posture behaviors of the enclosure pigs in real-time. First, the pig data set is clustered and optimized by the K-means algorithm to obtain a new anchor frame size. Second, the DSC (Depthwise separable convolution) and h-switch activation function are innovatively introduced into the Darknet-53 feature extraction network, and the C-Res (Contrary residual structure) unit is designed to build Darknet-A feature extraction network, so as to avoid network gradient explosion and ensure the integrity of feature information. Subsequently, DAM integrating the spatial attention mechanism and the channel attention mechanism is established, and it is further combined with the Incep-abate module to form DAB (Dual attention block), and HE-Yolo is finally built by Darknet-A and DAB. A total of 2912 images of 46 enclosure pigs are divided into the training set, the verification set, and the test set according to the ratio of 14 : 3:3, and the recognition performance of HE-Yolo is verified according to the parameters of the precision P, the recall R, the AP (i.e., the area of P-R curve) and the MAP (i.e., the average value of AP). The experiment results show that the AP values of HE-Yolo reach 99.25%, 98.41%, 94.43%, and 97.63%, respectively, in the recognition of four pig-posture behaviors of standing, sitting, prone and sidling of the test set. Compared with other models such as Yolo v3, SSD, and faster R–CNN, the mAP value of HE-Yolo is increased by 5.61%, 4.65%, and 0.57%, respectively, and the single-frame recognition time of HE-Yolo is only 0.045 s. In the recognition of images with foreign body occlusion and pig adhesion, the mAP values of HE-Yolo are increased by 4.04%, 4.94%, and 1.76%, respectively, while compared with other models. Under different lighting conditions, the mAP value of HE-Yolo is also higher than that of other models. The experimental results show that HE-Yolo can recognize the pig-posture behaviors with high precision, and it shows good generalization ability and luminance robustness, which provides technical support for the recognition of pig-posture behaviors and real-time monitoring of physiological health of the enclosure pigs. Hindawi 2022-07-16 /pmc/articles/PMC9308522/ /pubmed/35880056 http://dx.doi.org/10.1155/2022/1759542 Text en Copyright © 2022 Li Huang et al. https://creativecommons.org/licenses/by/4.0/This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
spellingShingle Research Article
Huang, Li
Xu, Lijia
Wang, Yuchao
Peng, Yingqi
Zou, Zhiyong
Huang, Peng
Efficient Detection Method of Pig-Posture Behavior Based on Multiple Attention Mechanism
title Efficient Detection Method of Pig-Posture Behavior Based on Multiple Attention Mechanism
title_full Efficient Detection Method of Pig-Posture Behavior Based on Multiple Attention Mechanism
title_fullStr Efficient Detection Method of Pig-Posture Behavior Based on Multiple Attention Mechanism
title_full_unstemmed Efficient Detection Method of Pig-Posture Behavior Based on Multiple Attention Mechanism
title_short Efficient Detection Method of Pig-Posture Behavior Based on Multiple Attention Mechanism
title_sort efficient detection method of pig-posture behavior based on multiple attention mechanism
topic Research Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9308522/
https://www.ncbi.nlm.nih.gov/pubmed/35880056
http://dx.doi.org/10.1155/2022/1759542
work_keys_str_mv AT huangli efficientdetectionmethodofpigposturebehaviorbasedonmultipleattentionmechanism
AT xulijia efficientdetectionmethodofpigposturebehaviorbasedonmultipleattentionmechanism
AT wangyuchao efficientdetectionmethodofpigposturebehaviorbasedonmultipleattentionmechanism
AT pengyingqi efficientdetectionmethodofpigposturebehaviorbasedonmultipleattentionmechanism
AT zouzhiyong efficientdetectionmethodofpigposturebehaviorbasedonmultipleattentionmechanism
AT huangpeng efficientdetectionmethodofpigposturebehaviorbasedonmultipleattentionmechanism