Abstract:Aiming to address the drawbacks of manual observation of mouse behavior, which is time-consuming, labor-intensive, and highly subjective, a multi-object mice behavior analysis method adapted for the Jetson Orin NX embedded platform was proposed. Through comparative experiments among multiple pose keypoint estimation models, YOLO 11n-Pose achieved the optimal comprehensive performance, with a precision of 94.1%, recall of 94.5%, the mean average precision was 96.4%, and inference latency of 36.04 ms per single image. To further optimize the model, an improvement scheme with WIoU loss function was proposed, which increased the precision by 2.1 percentage points and the mAP by 0.7 percentage points. Subsequently, model structure simplification and quantization were performed for edge deployment on the Jetson Orin NX platform. The compressed model achieved a precision of 93.93%, recall of 94.18%, and mAP of 95.88%, with the inference latency per single image reduced to 11.01 ms, a 69.46% reduction compared with that of the original model. Furthermore, comparative experiments were conducted on four mainstream multi-object tracking models, and the results showed that OC Sort outperformed other models with an inference latency of 2.18 ms per single image. On this basis, an improved OC Sort model was proposed. The optimized model achieved an IDF1 score of 83.5%, MOTA of 92.0%, and MOTP of 27.6%. The number of ID switches was reduced by 41.18% compared with that of the original OC Sort, while the inference latency was only 2.32 ms per single image. These results indicated that the improved OC Sort model significantly enhanced tracking accuracy without compromising real-time performance. For mouse behavior recognition, a threshold-based method was adopted. By comparing manual annotation results with model recognition outputs, the recognition accuracy of curving, shrinking and elongation behaviors reached 95.12%, 81.71% and 80.49%, respectively. The proposed method was applied to compare the 24 h behavioral activities of young mice and aged mice. The results showed that the activity level of young mice was significantly higher than that of aged mice; young mice stayed in a resting state for more time, while aged mice were mostly in a sleeping state. It demonstrated that the proposed multi-object mice behavior analysis method, which combined the improved YOLO 11n-Pose and optimized OC Sort models, can not only improve the accuracy of keypoint estimation and multi-object tracking, but also can realize portable and real-time multi-object mice behavior analysis after quantization and edge deployment.