Abstract:Aiming at the problems of poor sensitivity of feature learning, serious interference of complex redundant information in pasture background and difficulty in distinguishing high similarity individuals in cattle recognition task, a cattle face recognition method based on element-by-element dynamic fusion and adaptive loss function was proposed. Firstly, the StarNet architecture was used to redesign the feature extraction network, and an efficient network integrating multi-level features was constructed to extract key visual information and enhance the sensitivity of the model to subtle differences. Secondly, an element-by-element feature fusion module was proposed to screen low-dimensional features and perform weighted fusion on different feature maps to ensure that important features are retained, while irrelevant or redundant features were suppressed and removed. Finally, a dynamic adaptive ArcFace Loss was designed to adaptively adjust the angle boundary of ArcFace Loss, so as to enhance the model's ability to distinguish high similarity samples, and adaptively balance the feature distribution between different categories, which significantly improved the overall recognition performance. The algorithm was verified on the self-built data set and the public data set of 300 cattle. The experimental accuracy reached 88.42% and 86.67%, respectively, indicating the effectiveness and superiority of the algorithm. The running speed reached 15 f/s, and it was applied to complex environment testing. Both of them achieved high accuracy, which proved that the algorithm had high stability and robustness. Compared with other algorithms, the proposed algorithm had better recognition effect on cattle face recognition.