The invention discloses an
animal identification method and device, and the method comprises the steps: employing an improved YOLO
network model for detection, obtaining the multi-scale features of a to-be-analyzed
image based on a
backbone network, the multi-scale features at least comprise a first scale feature map and a second scale feature map, and the scale of the first scale feature map is larger than that of the second scale feature map; inputting the first scale feature map and the second scale feature map into a cross
attention network, outputting a first cross attention feature map and a second cross attention feature map, and performing
feature fusion on the first cross attention feature map and the second cross attention feature map to obtain a fused feature map; and inputting the fused feature map into a detection head, when the face and the
nose of the animal in the to-be-analyzed image are detected at the same time, outputting a face image and a
nose image of the animal, and performing
animal identification based on the face image and the
nose image of the animal. The method can detect the face and nose of the animal in the image at the same time, and greatly improves the accuracy of animal recognition.