Enhanced U-Net with Chest-Cavity–Guided Localization: A Dual-Stage Network for Accurate Backfat Thickness Estimation in Pig Carcasses
摘要
The objective of this study was to address the challenge of reliable backfat thickness estimation in pig carcasses, often hindered by muscle coverage, fat deposits, and bloodstains, by proposing a robust and efficient dual-stage deep learning network.
MethodsAn enhanced U-Net architecture was proposed, integrated with chest cavity–guided localization to form a dual-stage network. A custom image acquisition system was developed to collect carcass images under real slaughterhouse conditions for dataset construction. The baseline U-Net was enhanced with a dual-attention mechanism (DANet) and residual connections to improve structural edge perception of key anatomical regions. For precise localization, multiple edge detection methods (Roberts, Sobel, Laplacian, and Canny) were compared to extract the chest cavity contour and identify the terminal point of the sternum, defining the optimal measurement site. A secondary segmentation stage, guided by the localized chest cavity, was then employed to focus on critical regions and enhance detection accuracy.
ResultsThe proposed ARU-PCSN network achieved an average IoU of 97.12% on 100 pig carcass images, with a mean measurement error of 0.61 mm and a processing time under 0.3 s per image.
ConclusionThe results confirm the effectiveness and practical potential of the proposed dual-stage network for intelligent and precise backfat thickness estimation in pig carcasses.