Jinshuo Zhang, Xinzhong Wang, Hewei Meng, Junzhu Huang, Xinran Zhang, Kuizhou Zhou, Yaping Li, Huijie Peng
To address the low efficiency and stress-inducing nature of traditional manual weighing for dairy cows, this study proposes a semantically guided 3D reconstruction and body weight estimation method for dairy cows. First, a dual-viewpoint Kinect V2 camera synchronous acquisition system captures top-view and side-view point cloud data from 150 calves and 150 lactating cows. Subsequently, the CSS-PointNet++ network model was designed. Building upon PointNet++, it incorporates Convolutional Block Attention Module (CBAM) and Attention-Weighted Hybrid Pooling Module (AHPM) to achieve precise semantic segmentation of the torso and limbs in the side-view point cloud. Based on this, point cloud registration algorithms were applied to align the dual-view point clouds. Missing parts were mirrored and completed using semantic information to achieve 3D reconstruction. Finally, a body weight estimation model was established based on volume and surface area through surface reconstruction. Experiments demonstrate that CSS-PointNet++ achieves an Overall Accuracy (OA) of 98.35% and a mean Intersection over Union (mIoU) of 95.61% in semantic segmentation tasks, representing improvements of 2.2% and 4.65% over PointNet++, respectively. In the weight estimation phase, the BP neural network (BPNN) delivers optimal performance: For the calf group, the Mean Absolute Error (MAE) was 1.8409 kg, Root Mean Square Error (RMSE) was 2.4895 kg, Mean Relative Error (MRE) was 1.49%, and Coefficient of Determination (R2) was 0.9204; for the lactating cows group, MAE was 12.5784 kg, RMSE was 14.4537 kg, MRE was 1.75%, and R2 was 0.8628. This method enables 3D reconstruction and body weight estimation of cows during walking, providing an efficient and precise body weight monitoring solution for precision farming.