The invention discloses a
crop disease and pest recognition method and
system based on image recognition, and relates to the technical field of image recognition, and the method comprises the steps: collecting a farmland image, recognizing and positioning a
disease and pest region in the image, and carrying out the super-resolution restoration of a low-resolution region in the image; local features of the image are extracted through a ViT model, multi-scale features of diseases and
insect pests in the image are captured through DMSAU-Net, and the types of the diseases and
insect pests are recognized according to the extracted features of the diseases and
insect pests. According to the method, detail restoration is carried out on a low-resolution area through the SAGAN generator, the definition of pest and
disease damage characteristics is improved, the accuracy of image recognition is greatly improved, the ViT model and the DMSAU-Net model are used, expansion
convolution and a multi-scale attention mechanism are combined, the pest and
disease damage characteristics under different scales can be captured at the same time, and the image recognition accuracy is improved. The problem that a traditional
image processing model is difficult to process multi-scale features is solved, and the accuracy and practicability of disease and pest recognition are improved.