Skip to main content
ARS Home » Plains Area » Clay Center, Nebraska » U.S. Meat Animal Research Center » Genetics and Animal Breeding » Research » Publications at this Location » Publication #409184

Research Project: Multi-Dimension Phenotyping to Enhance Prediction of Performance in Swine

Location: Genetics and Animal Breeding

Title: Determining the presence and size of shoulder lesions in sows using computer vision

Author
item BERY, SHUBHAM - University Of Nebraska
item BROWN-BRANDL, TAMI - University Of Nebraska
item Jones, Bradley
item Rohrer, Gary
item SHARMA, SUDHENDU RAJ - University Of Nebraska

Submitted to: Animals
Publication Type: Peer Reviewed Journal
Publication Acceptance Date: 12/6/2023
Publication Date: 12/29/2023
Citation: Bery, S., Brown-Brandl, T.M., Jones, B.T., Rohrer, G.A., Sharma, S.R. 2023. Determining the presence and size of shoulder lesions in sows using computer vision. Animals. 14(1). Article 131. https://doi.org/10.3390/ani14010131.
DOI: https://doi.org/10.3390/ani14010131

Interpretive Summary: Shoulder lesions present a significant welfare concern, particularly among breeding sows. They are frequently linked to decreased mobility and loss of body condition during lactation. This research explores the use of standard cameras and the potential of diverse computer vision methods for detecting and estimating the size of shoulder lesions. Findings indicate that these techniques hold promise in effectively identifying and quantifying lesion size. This could empower producers to proactively monitor sow welfare, facilitating timely detection and intervention for these lesions.

Technical Abstract: Shoulder sores predominantly arise in breeding sows and often result in untimely culling. Reported prevalence rates vary significantly, spanning between 5% and 50% depending upon the type of crate flooring inside a farm, the animal’s body condition, or an existing injury that causes lameness. These lesions represent not only a welfare concern but also have an economic impact due to the labor needed for treatment and medication. The objective of this study was to evaluate the use of computer vision techniques in detecting and determining the size of shoulder lesions. A Microsoft Kinect V2 camera captured the top-down depth and RGB images of sows in farrowing crates. The RGB images were collected at a resolution of 1920 × 1080. To ensure the best view of the lesions, images were selected with sows lying on their right and left sides with all legs extended. A total of 824 RGB images from 70 sows with lesions at various stages of development were identified and annotated. Three deep learning-based object detection models, YOLOv5, YOLOv8, and Faster-RCNN, pre-trained with the COCO and ImageNet datasets, were implemented to localize the lesion area. YOLOv5 was the best predictor as it was able to detect lesions with an mAP@0.5 of 0.92. To estimate the lesion area, lesion pixel segmentation was carried out on the localized region using traditional image processing techniques like Otsu’s binarization and adaptive thresholding alongside DL-based segmentation models based on U-Net architecture. In conclusion, this study demonstrates the potential of computer vision techniques in effectively detecting and assessing the size of shoulder lesions in breeding sows, providing a promising avenue for improving sow welfare and reducing economic losses.