Abstract:In beef cattle farming management, the weight of beef cattle is crucial for monitoring growth, improving breeding, and controlling costs. Traditional weighing methods are not only time-consuming and labor-intensive but also prone to causing stress in the cattle. However, existing non-contact estimation methods are easily affected by posture and complex backgrounds, leading to low algorithm accuracy and poor robustness. Therefore, a beef cattle weight estimation method was proposed based on improved YOLO v9u-pose, which mainly consisted of two stages: key point detection and weight estimation. In the key point detection stage, YOLO v9u-pose was used as the baseline model, where the standard convolutions in the backbone network were replaced with omni-dimensional dynamic convolution (ODConv);DySample was employed to replace the upsampling module of the neck network;additionally, the excitation and modulation attention (EMA) was added to the RepNCSPELAN4 module connected to the detection head to improve the accuracy of the beef cattle key point detection algorithm. In the weight estimation stage, body size parameters were extracted by using depth maps and local point cloud processing methods. A beef cattle weight estimation algorithm was then constructed based on the parameters and the particle swarm optimization-eXtreme gradient boosting (PSO-XGBoost) approach. On testing with a self-constructed dataset, the F1 score, and mean average precision (mAP@0.75) of the key point detection model proposed were 97.2% and 98.2%, respectively. The mean absolute percentage error (MAPE)of weight estimation method based on PSO-XGBoost was 3.97%. Finally, the proposed cattle weight estimation model was deployed to a development board, providing technical support for intelligent beef cattle farming.