Preprint Article Version 1 Preserved in Portico This version is not peer-reviewed

Individual Piglet Detection in Weaning Stage using Deep Learning Techniques

Version 1 : Received: 8 May 2024 / Approved: 8 May 2024 / Online: 9 May 2024 (14:21:42 CEST)

How to cite: Lozano Cruz, E. F.; Tinôco, I. D. F. F.; Hernández, R. O.; Saraz, J. A. O.; Bernardes, R. C.; Cadavid, V. G.; Ríos, A. P. M.; Andrade, R. R.; Bambi, G. Individual Piglet Detection in Weaning Stage using Deep Learning Techniques. Preprints 2024, 2024050535. https://doi.org/10.20944/preprints202405.0535.v1 Lozano Cruz, E. F.; Tinôco, I. D. F. F.; Hernández, R. O.; Saraz, J. A. O.; Bernardes, R. C.; Cadavid, V. G.; Ríos, A. P. M.; Andrade, R. R.; Bambi, G. Individual Piglet Detection in Weaning Stage using Deep Learning Techniques. Preprints 2024, 2024050535. https://doi.org/10.20944/preprints202405.0535.v1

Abstract

Pig farms management is involved in multiple factors such as environmental conditions, animal behavior, weight gaining and others. In all those scenarios, it is fundamental to detect each individual and its development as it grows to reach the shipment phase. Therefore, the objective of this study was to apply an automatic individual pig detection algorithm using Deep Learning Techniques, in frames taken from videos recorded during the weaning phase in real production conditions of small and medium producers in tropical conditions in Colombia. The weaning phase was selected because individual detection in each cage is more difficult due to environmental adaptations that piglets undergo after nursing. Piglets tend to cluster together during this phase, making image processing more challenging compared to the fattening phase, where animals are more isolated. The You Only Look Once (YOLOv7) algorithm and VGG Image Annotator were used to detect individuals in two pens separated by gender. All animal postures, lighting conditions were considered. The Precision, Recall and mAP metrics were used to assess the model performance with different confidence values. A precision of 98.3% in a threshold of 0.9 was reached, Recall of 98.5% in a threshold of 0.85. Data augmentation techniques were important to increase the dataset and to have a more realistic model for individuals’ detection. The method used allowed us to identify all the complete pigs’ bodies under different posture and lighting situations.

Keywords

Object detection; Yolov7; VGG Image Annotator; pigs’ individual detection; swine individual detection

Subject

Biology and Life Sciences, Animal Science, Veterinary Science and Zoology

Comments (0)

We encourage comments and feedback from a broad range of readers. See criteria for comments and our Diversity statement.

Leave a public comment
Send a private comment to the author(s)
* All users must log in before leaving a comment
Views 0
Downloads 0
Comments 0
Metrics 0


×
Alerts
Notify me about updates to this article or when a peer-reviewed version is published.
We use cookies on our website to ensure you get the best experience.
Read more about our cookies here.