The invention discloses a method and
system for identifying Citri medica diseases and
insect pests based on an improved yolov5 network, and the method comprises the steps of obtaining a Citri medica diseases and
insect pests image, marking, and constructing an initial
data set; introducing a yolov5
network model, and improving a
backbone network and a Neck module of the yolov5
network model; training, verifying and testing the improved yolov5
network model by using the initial
data set to obtain a final diseases and
insect pests identification model; pre-
processing a to-be-detected image; judging whether the to-be-detected image is shot in a sunny day or a rainy day, and if the to-be-detected image is shot in the rainy day,
processing the to-be-detected image by using an Attentive GAN
algorithm; if the to-be-detected image is shot in sunny days, not
processing; and carrying out diseases and insect pests identification on the pre-processed to-be-detected
image based on the diseases and insect pests identification model. According to the method, the improved yolov5 network is combined with the Attentive GAN
algorithm, so that the Citri medica diseases and insect pests can be identified under
rainy weather conditions, the
network parameter quantity and the size of a network model can be reduced, and the identification accuracy is improved.