Abstract:Given the current research on beef cattle behavior, which mainly focused on basic behavior recognition and lacked local perception of complex behaviors, the identification of fine behaviors under basic behaviors of beef cattle was researched. A multi-behavior detection and statistical method based on YOLO v8 for beef cattle was proposed. Cattle behavior images were collected by cameras to build a comprehensive dataset that included fundamental behaviors such as standing, lying down, feeding, and drinking, as well as fine behaviors like licking, walking, searching, and tail flicking. YOLO v8n-P2 was selected as the basic model to enhance the ability of the model to detect calves;the feature extraction structure of C2F-PPA was designed;the YOLO v8 detection head was improved by interactive strategy, and the TDADH was constructed. MPDIoU loss function was used to address limitations associated with CIoU. Subsequently, statistical analysis of cattle behaviors based on detection results throughout the day was conducted;these results were visually displayed for various occlusion environments. The experimental results showed that the PTPM-YOLO v8n model achieved precision rate of 91.0%, a recall rate of 87.9%, and a mAP@0.5 score of 94.3% in recognizing all eight behaviors tested. Compared with the original model YOLO v8n, the mAP@0.5 of PTPM-YOLO v8n was increased by 3.0 percentage points, and the parameter number was decreased by 21.9%. which identified all behaviors and basic behaviors, the mAP@0.5 was increased by 3.0 and 2.4 percentage points, respectively. The method presented can accurately identify fine behaviors of beef cattle under farming conditions, providing a reference for multi-behavior monitoring of beef cattle.