PreciseEdge raster RGB image segmentation algorithm reduces user input for livestock digital body measurements highly correlated to real-world measurements

Computer vision is a tool that could provide livestock producers with digital body measures and records that are important for animal health and production, namely body height and length, and chest girth. However, to build these tools, the scarcity of labeled training data sets with uniform images (...

Full description

Bibliographic Details
Main Authors: M. Jennifer Woodward-Greene, Jason M. Kinser, Tad S. Sonstegard, Johann Sölkner, Iosif I. Vaisman, Curtis P. Van Tassell
Format: Article
Language:English
Published: Public Library of Science (PLoS) 2022-01-01
Series:PLoS ONE
Online Access:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9560539/?tool=EBI
_version_ 1811182445248118784
author M. Jennifer Woodward-Greene
Jason M. Kinser
Tad S. Sonstegard
Johann Sölkner
Iosif I. Vaisman
Curtis P. Van Tassell
author_facet M. Jennifer Woodward-Greene
Jason M. Kinser
Tad S. Sonstegard
Johann Sölkner
Iosif I. Vaisman
Curtis P. Van Tassell
author_sort M. Jennifer Woodward-Greene
collection DOAJ
description Computer vision is a tool that could provide livestock producers with digital body measures and records that are important for animal health and production, namely body height and length, and chest girth. However, to build these tools, the scarcity of labeled training data sets with uniform images (pose, lighting) that also represent real-world livestock can be a challenge. Collecting images in a standard way, with manual image labeling is the gold standard to create such training data, but the time and cost can be prohibitive. We introduce the PreciseEdge image segmentation algorithm to address these issues by employing a standard image collection protocol with a semi-automated image labeling method, and a highly precise image segmentation for automated body measurement extraction directly from each image. These elements, from image collection to extraction are designed to work together to yield values highly correlated to real-world body measurements. PreciseEdge adds a brief preprocessing step inspired by chromakey to a modified GrabCut procedure to generate image masks for data extraction (body measurements) directly from the images. Three hundred RGB (red, green, blue) image samples were collected uniformly per the African Goat Improvement Network Image Collection Protocol (AGIN-ICP), which prescribes camera distance, poses, a blue backdrop, and a custom AGIN-ICP calibration sign. Images were taken in natural settings outdoors and in barns under high and low light, using a Ricoh digital camera producing JPG images (converted to PNG prior to processing). The rear and side AGIN-ICP poses were used for this study. PreciseEdge and GrabCut image segmentation methods were compared for differences in user input required to segment the images. The initial bounding box image output was captured for visual comparison. Automated digital body measurements extracted were compared to manual measures for each method. Both methods allow additional optional refinement (mouse strokes) to aid the segmentation algorithm. These optional mouse strokes were captured automatically and compared. Stroke count distributions for both methods were not normally distributed per Kolmogorov-Smirnov tests. Non-parametric Wilcoxon tests showed the distributions were different (p< 0.001) and the GrabCut stroke count was significantly higher (p = 5.115 e-49), with a mean of 577.08 (std 248.45) versus 221.57 (std 149.45) with PreciseEdge. Digital body measures were highly correlated to manual height, length, and girth measures, (0.931, 0.943, 0.893) for PreciseEdge and (0.936, 0. 944, 0.869) for GrabCut (Pearson correlation coefficient). PreciseEdge image segmentation allowed for masks yielding accurate digital body measurements highly correlated to manual, real-world measurements with over 38% less user input for an efficient, reliable, non-invasive alternative to livestock hand-held direct measuring tools.
first_indexed 2024-04-11T09:32:32Z
format Article
id doaj.art-a980686cfea649768b67277357cc8b4d
institution Directory Open Access Journal
issn 1932-6203
language English
last_indexed 2024-04-11T09:32:32Z
publishDate 2022-01-01
publisher Public Library of Science (PLoS)
record_format Article
series PLoS ONE
spelling doaj.art-a980686cfea649768b67277357cc8b4d2022-12-22T04:31:50ZengPublic Library of Science (PLoS)PLoS ONE1932-62032022-01-011710PreciseEdge raster RGB image segmentation algorithm reduces user input for livestock digital body measurements highly correlated to real-world measurementsM. Jennifer Woodward-GreeneJason M. KinserTad S. SonstegardJohann SölknerIosif I. VaismanCurtis P. Van TassellComputer vision is a tool that could provide livestock producers with digital body measures and records that are important for animal health and production, namely body height and length, and chest girth. However, to build these tools, the scarcity of labeled training data sets with uniform images (pose, lighting) that also represent real-world livestock can be a challenge. Collecting images in a standard way, with manual image labeling is the gold standard to create such training data, but the time and cost can be prohibitive. We introduce the PreciseEdge image segmentation algorithm to address these issues by employing a standard image collection protocol with a semi-automated image labeling method, and a highly precise image segmentation for automated body measurement extraction directly from each image. These elements, from image collection to extraction are designed to work together to yield values highly correlated to real-world body measurements. PreciseEdge adds a brief preprocessing step inspired by chromakey to a modified GrabCut procedure to generate image masks for data extraction (body measurements) directly from the images. Three hundred RGB (red, green, blue) image samples were collected uniformly per the African Goat Improvement Network Image Collection Protocol (AGIN-ICP), which prescribes camera distance, poses, a blue backdrop, and a custom AGIN-ICP calibration sign. Images were taken in natural settings outdoors and in barns under high and low light, using a Ricoh digital camera producing JPG images (converted to PNG prior to processing). The rear and side AGIN-ICP poses were used for this study. PreciseEdge and GrabCut image segmentation methods were compared for differences in user input required to segment the images. The initial bounding box image output was captured for visual comparison. Automated digital body measurements extracted were compared to manual measures for each method. Both methods allow additional optional refinement (mouse strokes) to aid the segmentation algorithm. These optional mouse strokes were captured automatically and compared. Stroke count distributions for both methods were not normally distributed per Kolmogorov-Smirnov tests. Non-parametric Wilcoxon tests showed the distributions were different (p< 0.001) and the GrabCut stroke count was significantly higher (p = 5.115 e-49), with a mean of 577.08 (std 248.45) versus 221.57 (std 149.45) with PreciseEdge. Digital body measures were highly correlated to manual height, length, and girth measures, (0.931, 0.943, 0.893) for PreciseEdge and (0.936, 0. 944, 0.869) for GrabCut (Pearson correlation coefficient). PreciseEdge image segmentation allowed for masks yielding accurate digital body measurements highly correlated to manual, real-world measurements with over 38% less user input for an efficient, reliable, non-invasive alternative to livestock hand-held direct measuring tools.https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9560539/?tool=EBI
spellingShingle M. Jennifer Woodward-Greene
Jason M. Kinser
Tad S. Sonstegard
Johann Sölkner
Iosif I. Vaisman
Curtis P. Van Tassell
PreciseEdge raster RGB image segmentation algorithm reduces user input for livestock digital body measurements highly correlated to real-world measurements
PLoS ONE
title PreciseEdge raster RGB image segmentation algorithm reduces user input for livestock digital body measurements highly correlated to real-world measurements
title_full PreciseEdge raster RGB image segmentation algorithm reduces user input for livestock digital body measurements highly correlated to real-world measurements
title_fullStr PreciseEdge raster RGB image segmentation algorithm reduces user input for livestock digital body measurements highly correlated to real-world measurements
title_full_unstemmed PreciseEdge raster RGB image segmentation algorithm reduces user input for livestock digital body measurements highly correlated to real-world measurements
title_short PreciseEdge raster RGB image segmentation algorithm reduces user input for livestock digital body measurements highly correlated to real-world measurements
title_sort preciseedge raster rgb image segmentation algorithm reduces user input for livestock digital body measurements highly correlated to real world measurements
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9560539/?tool=EBI
work_keys_str_mv AT mjenniferwoodwardgreene preciseedgerasterrgbimagesegmentationalgorithmreducesuserinputforlivestockdigitalbodymeasurementshighlycorrelatedtorealworldmeasurements
AT jasonmkinser preciseedgerasterrgbimagesegmentationalgorithmreducesuserinputforlivestockdigitalbodymeasurementshighlycorrelatedtorealworldmeasurements
AT tadssonstegard preciseedgerasterrgbimagesegmentationalgorithmreducesuserinputforlivestockdigitalbodymeasurementshighlycorrelatedtorealworldmeasurements
AT johannsolkner preciseedgerasterrgbimagesegmentationalgorithmreducesuserinputforlivestockdigitalbodymeasurementshighlycorrelatedtorealworldmeasurements
AT iosifivaisman preciseedgerasterrgbimagesegmentationalgorithmreducesuserinputforlivestockdigitalbodymeasurementshighlycorrelatedtorealworldmeasurements
AT curtispvantassell preciseedgerasterrgbimagesegmentationalgorithmreducesuserinputforlivestockdigitalbodymeasurementshighlycorrelatedtorealworldmeasurements