Abstract
Recommendations for pig production include behavior observations within the daily protocols, which is an improvement in utilizing the pig as an indicator of its status. The additional burden of increasing individual animal observation on a commercial farm would increase the number of tasks for caretakers, while the industry already faces a shortage of workers on farms. An automated tool to evaluate behavior would theoretically alleviate some of the human workload for behavior observations and provide a more complete dataset from which to derive trends and ultimately valuable decisions. Existing tools and technologies have numerous limitations for practical deployment on commercial farms, including computing resources and processing time for real-time analysis. This research evaluates the accuracy of two machine learning models (YOLOv8 and MobileNet) trained to categorize pig behavior. The evaluation uses novel data from a commercial finishing pig farm dataset. The evaluation examines the usability of one or both models for continued development. The dataset evaluated consists of one hour of continuously recorded video from six pens (each with its own camera) each containing 9-15 pigs. Results for each trained model's application and error characterization will be presented in this paper. The models were trained with three labels (Category 1, Category 2, Category3) with single images, using a frame dataset consisting of 3,730 frames across the six cameras. For the YOLOv8 image model confusion matrix has confidence for each label as 96%, 84%, and 81%, respectively, for the three labels and an overall accuracy of 78%. For the MobileNet image model confusion matrix has confidence for each label as 98%, 73%, and 64%, respectively, for the three labels and an overall accuracy of 87%. The video subset was manually labeled by a trained observer in B.O.R.I.S to create a groundtruth. Both models were then applied to the same video subset (Hr00 and Hr07), where the models labeled every frame in the videos and an excel sheet of all labels would be provided. The YOLOv8 video model demonstrated overall accuracy above 70% for every application. The MobileNet video model had overall accuracy above 40% for every application and demonstrated better results when labeling Category 1 behaviors.
| Original language | English (US) |
|---|---|
| DOIs | |
| State | Published - 2025 |
| Event | 2025 American Society of Agricultural and Biological Engineers Annual International Meeting, ASABE 2025 - Toronto, Canada Duration: Jul 13 2025 → Jul 16 2025 |
Conference
| Conference | 2025 American Society of Agricultural and Biological Engineers Annual International Meeting, ASABE 2025 |
|---|---|
| Country/Territory | Canada |
| City | Toronto |
| Period | 7/13/25 → 7/16/25 |
Keywords
- Machine learning
- MobileNet
- YOLOv8
ASJC Scopus subject areas
- Agronomy and Crop Science
- Bioengineering
Fingerprint
Dive into the research topics of 'Application of Two Computer Vision Models on Commercial Finishing Pig Novel Data'. Together they form a unique fingerprint.Cite this
- APA
- Standard
- Harvard
- Vancouver
- Author
- BIBTEX
- RIS