基于SOLOv2与点云空腔特征的奶牛瘤胃充盈度自动评分方法

    Automatic rumen filling scoring method for dairy cows based on SOLOv2 and cavity feature of point cloud

    • 摘要: 瘤胃充盈度评分是反映奶牛个体采食量与能量摄入状态的直观指标,为实现奶牛瘤胃充盈度的自动评分,该研究提出了一种基于SOLOv2网络和空腔特征的瘤胃充盈度自动评分方法,首先对获取的奶牛背部深度图像进行预处理以提取目标奶牛;其次利用SOLOv2实例分割网络对奶牛瘤胃区域进行分割以获取瘤胃区域点云,将其投影至X-Z平面内采样得到二值图像,通过形态学处理得到空腔结构特征图;最后构建分类模型对特征图像进行分类以实现瘤胃充盈度的自动评分。试验结果表明,主干网络为ResNet-101-FPN时SOLOv2模型对测试集图像分割的平均精度达到86.29%,瘤胃充盈度自动评分的精准识别率为85.77%,评分误差在1以内的样本达到99.9%,平均识别速率为5.5 帧/s,并对肥瘦程度不同的奶牛具有较强的鲁棒性。该方法可实现规模化养殖中奶牛个体瘤胃充盈度的无接触评定。

       

      Abstract: Abstract: Rumen Filling Score (RFS) has been an intuitive indicator to reflect the individual and energy intake status of dairy cows. However, the manual scoring can be confined to subjectivity and repeatability, leading to a core bottleneck for the popularization and application of this technology in feed intake monitoring. There is no report on the automatic rumen scoring system so far. Therefore, this study aims to realize the automatic scoring of rumen filling degree for the dairy cows, further improving the monitoring accuracy of individual feed intake and the management level of pasture feeding. A three-dimensional structural feature map was constructed using the imaging of rumen point cloud, according to the instances segmentation network and the gradual characteristics of rumen shape over time. A classification model was then established to implement the automation and objectivity of scoring operation. Firstly, the background difference method was used to preprocess the acquired images of cow back depth, thereby extracting the target cow. Secondly, the SOLOv2 instance segmentation network was used to segment the rumen area of the cow image after the rotation correction, according to the inclination of the spine point fitting line, where the rumen point cloud was obtained, according to the color difference of the ruminal region before and after segmentation. Then, the rumen point cloud was projected to the X-Z plane, in order to obtain the cavity feature map for the rumen filling degree of dairy cows. Specifically, the two-dimensional convex hull was utilized to define the cavity range using some operations, such as binarization, dilation corrosion, and the maximum connected domain solution. The nearest neighbor interpolation was also used to unify the image size of the rumen point cloud for better cavity comparability. Thirdly, a two-level classification model was constructed using the tilt angle detection and LeNet-5 network. The feature images were then classified to balance the sample distribution and the accuracy of the model. Finally, the model was trained and tested using 1784 depth images of 75 cows, further to compare the backbone networks, segmentation models, and scoring recognition. The results showed that the average precision of the SOLOv2 model for the image segmentation of the test set increased by 1.7%, and 86.29% with the backbone network of ResNet-101-FPN, compared with ResNet-50-FPN. The proportions of images with the rumen filling score error within 0 and 1 were 85.77% and 99.90%, respectively, and the average F1 values were 86.85% and 99.9%, respectively, where the average recognition rate was 5.5 FPS in the two-level classification. Compared with the combination of BlendMask, Yolact++, MaskRcnn segmentation models and two-level classification model, the identification index values of the two-level models are all optimal. And compared with the above three segmentation networks, the AP value of SOLOv2 network segmentation was increased by 1.3, 3.52 and 2.01 percentage points respectively. Therefore, the recognition accuracy of two-stage scoring with the SOLOv2 and classification model was improved by 16.95 percentage points, where the precision, recall, and F1 values all reached more than 84.37%, indicating much higher than the index value of the single-step method. The average accuracy of RFS recognition under 9 BCS values reached 89.7%, and the correlation coefficient between BCS and RFS was only 0.0034, indicating the strong robustness to the changes of cow body conditions and individual differences. Therefore, the non-contact evaluation can be realized for the ruminal filling degree of dairy cattle in large-scale farming, indicating the high precision, strong applicability, and low cost. The automatic approach can also be widely expected to improve the accuracy of individual feed intake monitoring of dairy cattle.

       

    /

    返回文章
    返回