Object detection and state analysis of pigs by deep learning in pig breeding
DOI:
https://doi.org/10.56294/sctconf2024.1211Keywords:
Pig Breeding, Healthcare, Behavior, Discrete Wavelet Transform (DWT), Ladybug Beetle Optimized Adaptive Convolutional Neural Network (LBO-ACNN)Abstract
Introduction: Attack behavior is common in intensive pig breeding, where the hard conditions of the piggery can lead to illness or even death for the pigs. High labor expenses will result from manually observing and recognizing pig attack behaviors in intensive porcine breeding operations. Objective: This study aims to employ deep learning techniques to identify and classify various aggressive behaviors in pigs, enhancing monitoring efficiency in breeding facilities.
Methods: A novel ladybug beetle-optimized adaptive convolutional neural network (LBO-ACNN) was proposed to recognizepig behavior in pig breeding. Pigs' object detection dataset was gathered for this investigation. The data preprocessed using discrete wavelet transform (DWT) eliminates noise from each frequency component by breaking down the image into its elements. The proposed method is implemented using Python software. The proposed method is compared to other algorithms.
Result:The investigational outcome shows that the suggestedstrategy accurately identifies pig behaviors, achieving a high F1-score (93.31%), recall (92.51%), precision (94.17%), and accuracy (94.78%) demonstrating its effectiveness in monitoring and classifying behaviors in breeding facilities
References
1. Racewicz P, Ludwiczak A, Skrzypczak E, Składanowska-Baryza J, Biesiada H, Nowak T, Nowaczewski S, Zaborowicz M, Stanisz M, Ślósarz P. Welfare health and productivity in commercial pig herds. Animals. 2021 Apr 20;11(4):1176. https://doi.org/10.3390/ani11041176
2. Delsart M, Pol F, Dufour B, Rose N, Fablet C. Pig farming in alternative systems: strengths and challenges in terms of animal welfare, biosecurity, animal health and pork safety. Agriculture. 2020 Jul 2;10(7):261.https://doi.org/10.3390/agriculture10070261
3. Chen C, Zhu W, Norton T. Behaviour recognition of pigs and cattle: Journey from computer vision to deep learning. Computers and Electronics in Agriculture. 2021 Aug 1;187:106255.https://doi.org/10.1016/j.compag.2021.106255
4. Guo Q, Sun Y, Orsini C, Bolhuis JE, de Vlieg J, Bijma P, de With PH. Enhanced camera-based individual pig detection and tracking for smart pig farms. Computers and Electronics in Agriculture. 2023 Aug 1;211:108009.https://doi.org/10.1016/j.compag.2023.108009
5. Canario L, Bijma P, David I, Camerlink I, Martin A, Rauw WM, Flatres-Grall L, Zande LV, Turner SP, Larzul C, Rydhmer L. Prospects for the analysis and reduction of damaging behaviour in group-housed livestock, with application to pig breeding. Frontiers in Genetics. 2020 Dec 23;11:611073.https://doi.org/10.3389/fgene.2020.611073
6. Arulmozhi E, Bhujel A, Moon BE, Kim HT. The application of cameras in precision pig farming: An overview for swine-keeping professionals. Animals. 2021 Aug 9;11(8):2343.https://doi.org/10.3390/ani11082343
7. Reza MN, Ali MR, Kabir MS, Karim MR, Ahmed S, Kyoung H, Kim G, Chung SO. Thermal imaging and computer vision technologies for the enhancement of pig husbandry: a review. Journal of Animal Science and Technology. 2024 Jan;66(1):31.https://doi.org/10.5187%2Fjast.2024.e4
8. Riekert M, Klein A, Adrion F, Hoffmann C, Gallmann E. Automatically detecting pig position and posture by 2D camera imaging and deep learning. Computers and Electronics in Agriculture. 2020 Jul 1;174:105391.https://doi.org/10.1016/j.compag.2021.106213
9. Alameer A, Buijs S, O'Connell N, Dalton L, Larsen M, Pedersen L, Kyriazakis I. Automated detection and quantification of contact behaviour in pigs using deep learning. biosystems engineering. 2022 Dec 1;224:118-30.https://doi.org/10.1016/j.biosystemseng.2022.10.002
10. Witte JH, Gerberding J, Melching C, Gómez JM. Evaluation of deep learning instance segmentation models for pig precision livestock farming. InBusiness Information Systems 2021 Jul 2 (pp. 209-220).https://doi.org/10.52825/bis.v1i.59
11. Wutke M, Heinrich F, Das PP, Lange A, Gentz M, Traulsen I, Warns FK, Schmitt AO, Gültas M. Detecting animal contacts—A deep learning-based pig detection and tracking approach for the quantification of social contacts. Sensors. 2021 Nov 12;21(22):7512.https://doi.org/10.3390/s21227512
12. Alameer A, Kyriazakis I, Dalton HA, Miller AL, Bacardit J. Automatic recognition of feeding and foraging behaviour in pigs using deep learning. Biosystems engineering. 2020 Sep 1;197:91-104.https://doi.org/10.1016/j.biosystemseng.2020.06.013
13. Alameer A, Kyriazakis I, Bacardit J. Automated recognition of postures and drinking behaviour for the detection of compromised health in pigs. Scientific reports. 2020 Aug 12;10(1):13665.https://doi.org/10.1038/s41598-020-70688-6
14. Gan H, Ou M, Huang E, Xu C, Li S, Li J, Liu K, Xue Y. Automated detection and analysis of social behaviors among preweaning piglets using key point-based spatial and temporal features. Computers and Electronics in Agriculture. 2021 Sep 1;188:106357.https://doi.org/10.1016/j.compag.2021.106357
15. Hakansson F, Jensen DB. Automatic monitoring and detection of tail-biting behavior in groups of pigs using video-based deep learning methods. Frontiers in Veterinary Science. 2023 Jan 11;9:1099347.https://doi.org/10.3389/fvets.2022.1099347
16. Liu D, Oczak M, Maschat K, Baumgartner J, Pletzer B, He D, Norton T. A computer vision-based method for spatial-temporal action recognition of tail-biting behaviour in group-housed pigs. Biosystems Engineering. 2020 Jul 1;195:27-41.https://doi.org/10.1016/j.biosystemseng.2020.04.007
17. Chen C, Zhu W, Steibel J, Siegford J, Wurtz K, Han J, Norton T. Recognition of aggressive episodes of pigs based on convolutional neural network and long short-term memory. Computers and Electronics in Agriculture. 2020 Feb 1;169:105166.https://doi.org/10.1016/j.compag.2019.105166
18. Ji H, Yu J, Lao F, Zhuang Y, Wen Y, Teng G. Automatic position detection and posture recognition of grouped pigs based on deep learning. Agriculture. 2022 Aug 26;12(9):1314.https://doi.org/10.3390/agriculture12091314
19. Shao H, Pu J, Mu J. Pig-posture recognition based on computer vision: Dataset and exploration. Animals. 2021 Apr 30;11(5):1295.https://doi.org/10.3390/ani11051295
20. Li Y, Li J, Na T, Yang H. Detection of attack behaviour of pig based on deep learning. Systems Science & Control Engineering. 2023 Dec 31;11(1):2249934.https://doi.org/10.1080/21642583.2023.2249934
Published
Issue
Section
License
Copyright (c) 2024 Xiaolu Zhang , Jeffrey Sarmiento , Anton Louise De Ocampo , Rowell Hernandez (Author)

This work is licensed under a Creative Commons Attribution 4.0 International License.
The article is distributed under the Creative Commons Attribution 4.0 License. Unless otherwise stated, associated published material is distributed under the same licence.