Abstract:With the development of modern animal husbandry, dairy cow behavior monitoring is of great significance for reducing breeding costs and preventing diseases, and multi-object tracking technology is the key to its realization. Aiming at the demand for multi-object tracking technology in dairy cow behavior analysis, a dairy cow multi-object tracking method was proposed based on YOLO 11n-LD and Strongsort-LBM to solve the ID switching problem of existing visual algorithms. In the aspect of object detection, LDConv, SimSPPF and SIoU loss functions were introduced to improve detection accuracy, and the object detection model YOLO 11n-LD was constructed, whose precision, recall and mAP@0.5 reached 96.1%, 95.1% and 95.7%, respectively. In terms of tracking optimization, the Strongsort algorithm was improved, a position-based matching mechanism was designed, and the mismatched trajectories and detection targets were re-associated combined with the optimized Hungarian matching algorithm. The test results showed that the HOTA, MOTA, MOTP and IDF1 of Strongsort-LBM algorithm were 83.43%, 96.92%, 79.95% and 89.90%, respectively, and the number of ID switches was reduced to 18, which was about 86% lower than that of YOLO 11n+Strongsort algorithm. It was superior to DeepSORT, ByteTrack and Ocsort algorithms in HOTA and IDF1, and greatly reduced the number of ID switches. The research result can provide an efficient and reliable tracking solution for dairy cow behavior monitoring in cattle shed breeding environment.