84 Low-cost machine learning algorithms to predict growth and carcass traits in pigs

Abstract Genomic prediction involves analyzing pedigree, phenotype, and genomic data, facilitating the early prediction of the genetic merit of an individual. Phenotyping is an essential component of the genomic selection program. However, depending on the trait, traditional phenotyping can be time-consuming and labor-intensive. On the other hand, with the advancement in digital phenotyping, obtaining regular images of animals has become increasingly accessible. Coupled with computer vision and machine learning algorithms, phenotypes for traits of interest can be extracted from the images and used for different purposes, including genomic predictions. Previous attempts to predict genetic merit using machine learning were ineffective and computationally expensive for routine genetic evaluations. This research aimed to present a low-cost algorithm for predicting traits that are commonly used in pig breeding programs such as weight (WT), loin depth (LD), and backfat thickness (BF) from image data. The dataset included two-dimensional side views of 9,283 pigs captured between 2021 and 2023 and manually recorded phenotypes for WT, LD, and BF. We proposed a pipeline consisting of two major tasks to predict phenotypes: body segmentation and feature extraction using a convolutional neural network (CNN). Initially, we used the YOLOv7 model to leverage existing pre-trained layers to extract the individual region of interest from the source image. Then, low-variance images were removed to ensure a wide range of diversity within the individual. The images are then annotated with prerecorded traits and divided into training and test sets (80% and 20%, respectively), with no overlap. Our study benchmarked VGG16, InceptionV3, and ResNet50 model architectures by extracting features from the outputs of the final convolutional blocks or layers to reduce the impact of the fully connected layer on potential feature loss. The results show that the features extracted from the ResNet50 model had the lowest mean absolute error, with values of 5.22 for weight, 5.28 for loin depth, and 1.31 for backfat thickness. The performance could be improved further by fine-tuning the model parameters. As a future step for this study, the predicted phenotypes will be utilized for genomic evaluations using a multiple-trait model, where the subset of predicted animals will have prerecorded traits to account for the prediction error.

Authors

Institutions

Publication Details

Journal
Journal of Animal Science
Published
2024-09-01
DOI
https://doi.org/10.1093/jas/skae234.024
Citations
1
Primary Topic
Effects of Environmental Stressors on Livestock
Type
article
Field-Weighted Citation Impact
0.34
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

84 Low-cost machine learning algorithms to predict growth and carcass traits in pigs

Masum Billah, Eric Psota, Matias Bermann, I. Misztal et al.
1 citations
Journal of Animal Science
Effects of Environmental Stressors on Livestock
0.34
article

84 Low-cost machine learning algorithms to predict growth and carcass traits in pigs

Masum Billah, Eric Psota, Matias Bermann, I. Misztal, Daniela A. L. Lourenco, Ching-Yi Chen, Justin W. Holl
article en
1 citations

Abstract

Abstract Genomic prediction involves analyzing pedigree, phenotype, and genomic data, facilitating the early prediction of the genetic merit of an individual. Phenotyping is an essential component of the genomic selection program. However, depending on the trait, traditional phenotyping can be time-consuming and labor-intensive. On the other hand, with the advancement in digital phenotyping, obtaining regular images of animals has become increasingly accessible. Coupled with computer vision and machine learning algorithms, phenotypes for traits of interest can be extracted from the images and used for different purposes, including genomic predictions. Previous attempts to predict genetic merit using machine learning were ineffective and computationally expensive for routine genetic evaluations. This research aimed to present a low-cost algorithm for predicting traits that are commonly used in pig breeding programs such as weight (WT), loin depth (LD), and backfat thickness (BF) from image data. The dataset included two-dimensional side views of 9,283 pigs captured between 2021 and 2023 and manually recorded phenotypes for WT, LD, and BF. We proposed a pipeline consisting of two major tasks to predict phenotypes: body segmentation and feature extraction using a convolutional neural network (CNN). Initially, we used the YOLOv7 model to leverage existing pre-trained layers to extract the individual region of interest from the source image. Then, low-variance images were removed to ensure a wide range of diversity within the individual. The images are then annotated with prerecorded traits and divided into training and test sets (80% and 20%, respectively), with no overlap. Our study benchmarked VGG16, InceptionV3, and ResNet50 model architectures by extracting features from the outputs of the final convolutional blocks or layers to reduce the impact of the fully connected layer on potential feature loss. The results show that the features extracted from the ResNet50 model had the lowest mean absolute error, with values of 5.22 for weight, 5.28 for loin depth, and 1.31 for backfat thickness. The performance could be improved further by fine-tuning the model parameters. As a future step for this study, the predicted phenotypes will be utilized for genomic evaluations using a multiple-trait model, where the subset of predicted animals will have prerecorded traits to account for the prediction error.

Journal of Animal ScienceVol. 102(Supplement_3)
Genus (United Kingdom) (GB)
Openalex Percentile: Top 42%
Effects of Environmental Stressors on Livestock
0.34
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.