This invention discloses a method,
system, and device for estimating the area of the
eye muscles and the backfat thickness of live pigs based on
deep learning. The method includes: acquiring and constructing a dataset of live pig
ultrasound images; selecting regions of interest (ROIs) in the
ultrasound images, preprocessing them, and standardizing the input size; inputting the preprocessed
ultrasound images into a ReAMS-UNet neural network for semantic segmentation of the
eye muscle region; filtering the image contours to remove
false positives and false negatives in the segmentation results; determining the upper and lower boundaries of the backfat thickness through image binarization; calculating the
eye muscle area and backfat thickness, and outputting the calculation results. Based on a large-scale, highly diverse dataset of pig ultrasound images, this invention utilizes ReAMS-UNet to integrate residual learning for stable training, a
hybrid attention mechanism for adaptive feature optimization, multi-scale fusion for contextual and spatial
information fusion, and auxiliary supervision for enhanced gradient propagation. It achieves high segmentation accuracy, fast
inference speed, accurate trait
estimation, and results that reflect true carcass traits. The process is automated and suitable for high-
throughput analysis applications.