Abstract:Aiming to address the limited information representation capability and constrained measurement accuracy of existing single-view methods for pig backfat thickness measurement, a contactless pig backfat thickness measurement method was proposed based on hierarchical collaborative fusion of dual-view RGB – D images and phenotypic parameters. A total of 92 pigs were used as research subjects. Top-view and side-view RGB – D images were synchronously collected, together with the corresponding body size traits and body weight data, resulting in a multimodal pig dataset containing 3496 sample groups. Each pig provided 38 sample groups, and each sample group included synchronously collected top-view and side-view RGB – D images, together with the corresponding body size traits and body weight data. EfficientNet – B0 was adopted as the backbone network, and the convolutional block attention module ( CBAM ) and atrous spatial pyramid pooling ( ASPP ) were embedded to enhance the extraction of backfat-related features and multi-scale morphological information. Meanwhile, a gated fusion network (GFN) was introduced to achieve complementary fusion of RGB and depth features within a single view. To enable efficient collaborative modeling between dual-view features, a phenotype-parameter-guided cross-modal attention fusion (CMA) module was designed. The normalized body size traits and body weight information were used as prior guidance factors to adaptively regulate the weight allocation of RGB – D fused features from the top and side views, thereby accomplishing high-level feature fusion across the two views. Finally, an XGBoost regressor was employed for accurate prediction of backfat thickness. Experimental results showed that the proposed method achieved a root mean square error, mean absolute error, mean absolute percentage error, and coefficient of determination of 0.65 mm, 0.46 mm, 3.58% , and 0.95, respectively, in backfat thickness measurement. Compared with the original EfficientNet – B0 model, the error metrics were reduced by 17.95% , 19.64% , and 19.54% , respectively, while the coefficient of determination was increased by 4.40% . Under the same experimental conditions, the proposed method outperformed comparative models using ResNet50, DenseNet, MobileNetV3, and ShuffleNet as backbone networks, providing technical support for contactless, low-stress, and high-precision measurement of pig backfat thickness.