Pig Detection Using Computer Vision Models Trained on Synthetic Datasets
- 29 September 2025
- conference paper
- Published by Sociedade Brasileira de Computação
- p. 915-926
Abstract
Pork is a major commodity in the global food industry, yet monitoring pigs in their living spaces remains a challenge due to the scarcity of annotated datasets for AI models. In this study, an existing method for generating training datasets by utilizing a limited number of annotated images is adapted for pig detection, with the goal of enabling accurate pig counting in future applications. Using the COCO dataset and the Multi-Camera Pig Dataset, we applied Digital Image Processing and Meta’s Segment Anything Model 2 (SAM2) to augment data. A YOLO model trained on the generated datasets demonstrated that manual annotation can be reduced by 40% with minimal performance loss, significantly decreasing dataset production effort.Keywords
This publication has 19 references indexed in Scilit:
- A review of convolutional neural networks in computer visionArtificial Intelligence Review, 2024
- Animal Behavior for Chicken Identification and Monitoring the Health Condition Using Computer Vision: A Systematic ReviewIEEE Access, 2023
- Enhanced camera-based individual pig detection and tracking for smart pig farmsComputers and Electronics in Agriculture, 2023
- Review and analysis of synthetic dataset generation methods and techniques for application in computer visionArtificial Intelligence Review, 2023
- Deep traffic sign detection and recognition without target domain real imagesMachine Vision and Applications, 2022
- Computer Vision2022
- A survey of image labelling for computer vision applicationsJournal of Business Analytics, 2021
- A computer vision approach based on deep learning for the detection of dairy cows in free stall barnComputers and Electronics in Agriculture, 2021
- Deep traffic light detection by overlaying synthetic context on arbitrary natural imagesComputers & Graphics, 2021
- Microsoft COCO: Common Objects in Context2014