Abstract:In the context of decentralized management in small-scale livestock farms in China, efficient and accurate control of cattle slaughter timing is a critical factor for improving farming profitability. To address this issue, an intelligent slaughter decision strategy was proposed, Segment-Track-PixelMax (STPM), based on instance segmentation and multi-object tracking. Firstly, an improved GDL-YOLO 11n-seg model was developed to achieve high-precision instance segmentation of cattle body contours, generating clear boundary masks. Nextly, the OC-SORT algorithm was combined to assign a unique identity ID to each cow, enabling continuous tracking and dynamically recording the individual pixel area changes in the time series. Finally, the maximum pixel area of each cow over the entire period was extracted, and slaughter status was determined based on a set threshold. Experimental results demonstrated that the proposed method achieved good segmentation accuracy and tracking performance. The segmentation accuracy of the GDL-YOLO 11n-seg model was 94.4%, which represented an improvement of 2.1 percentage points over the original model, with reductions of 27.3% and 24.5% in parameter count and floating-point operations, respectively. The MOTA, MOTP, HOTA, and IDF1 of the OC-SORT algorithm were 87.7%, 83.3%, 79.3%, and 93.6%, respectively. The research result showed that this strategy can effectively perform cattle slaughter decision-making in real-world barn environments, providing strong technical support for intelligent cattle farming.