Abstract:Individual identification of dairy cows is the prerequisite and foundation for analyzing dairy cow behavior. To solve the problem of limited patterns or poor recognition performance of pure color dairy cows in machine vision based individual identification of dairy cows, a dairy cow individual identification method was proposed based on frame by frame gait energy image (FF-GEI). Firstly, the dairy cow’s hooves were automatically recognized and the motion cycle was divided based on changes in the position of the hooves. On this basis, DeepLabv3+ was utilized to preprocess image sequences of a motion cycle and generate frame by frame gait energy image. Then, the AlexNet network and the LSTM long and short-term memory network were constructed as the AlexNet-LSTM network. The AlexNet-LSTM network was introduced with the SENet attention mechanism to generate the SE-AlexNet-LSTM model. Individual identification experiments were conducted on a total of 1656 video datasets from 40 dairy cows. The results showed that there was little difference between the motion cycles automatically divided by the proposed method and those manually divided. For dairy cows with different health states of healthy, lame, and from healthy to lame, the SE-AlexNet-LSTM model achieved individual identification accuracies of 95.59%, 93.98%, and 87.81%, respectively, with an average accuracy of 91.46% and a fast convergence rate. The results can provide an effective technical support for machine vision-based individual dairy cow identification.