A method and related device for intelligently locating citrus psyllids in citrus orchards

By taking images of citrus shoots with drones and using convolutional neural networks for feature extraction and fusion, the problem of citrus psyllid features being submerged was solved and the detection accuracy and positioning accuracy of citrus psyllids were improved.

CN114898233BActive Publication Date: 2024-09-06INST OF PLANT PROTECTION GUANGXI ACADEMY OF AGRI SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210485889.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-06
Publication Date
2024-09-06
Estimated Expiration
2042-05-06

AI Technical Summary

Technical Problem

In the existing technology, the characteristics of citrus psyllid are easily submerged in the background of the captured image during the training process of the convolutional neural network, resulting in a decrease in detection accuracy and positioning accuracy.

Method used

UAVs are used to capture citrus shoot images in multiple directions, and the trained convolutional neural network model is used to extract features at different depths and fuse features, and generate a set of probability values ​​to generate citrus psyllid alerts.

Benefits of technology

It improves the accuracy and location accuracy of detecting citrus psyllid-infected trees, and enhances the detection ability of citrus psyllids.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114898233B
    Figure CN114898233B
Patent Text Reader

Abstract

The present application discloses a method and related device for intelligently locating citrus psyllids in a citrus orchard, which are used to improve the accuracy of locating citrus psyllids. The present application method comprises: photographing a target citrus tree by a drone to obtain a group of citrus tip images; selecting a citrus tip image from the group of citrus tip images and inputting it into a trained target convolutional neural network model; performing feature extraction of different depths on the citrus tip image by the first, second, third and fourth feature extraction layers to generate a first depth feature set; fusing the first depth feature set by the residual layer to generate a first feature residual; classifying and calculating the first feature residual by the global average pooling layer and the softmax layer to generate a first probability value set that the citrus tip image belongs to the citrus psyllid tip; generating at least two first probability value sets corresponding to the citrus tip image group according to the above method; and generating a citrus psyllid alarm according to the first probability value set and the positioning information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of citrus disease detection, and more particularly to a method and related device for intelligently locating citrus psyllids in a citrus orchard. Background Art

[0002] With the continuous development of agriculture, more and more regions have begun to grow some agricultural products with high nutritional value and that have attracted the attention of consumers. Citrus is one of the fruits that consumers love.

[0003] Citrus is a plant of the genus Citrus in the Rutaceae family. It prefers warm and humid climates and is slightly more cold-resistant than grapefruit, sour orange, and sweet orange. Citrus psyllids are the main pests of citrus during the new shoot period and are also the vector of citrus Huanglongbing disease. Adults lay eggs on the tender shoots of the host, and after the nymphs hatch, they suck the sap of the tender shoots until the adults emerge. The tender shoots of the affected host may wilt and the new shoots may become deformed. Psyllids also secrete white honeydew that adheres to branches and leaves, which can cause sooty mold.

[0004] Accurate and efficient positioning and detection of citrus psyllids is an important prerequisite for the prevention and control of citrus Huanglongbing disease, and is also a key link in achieving precision agriculture. In response to the problems of manual detection methods in the field, many scholars at home and abroad have done a lot of research in the field of crop pest and disease identification based on convolutional neural network technology. However, due to the small size of citrus psyllids and the changes in their morphology during growth, the characteristics of citrus psyllids will be submerged in the background of the captured image during the training of convolutional neural networks. This is called the multi-scale problem, which leads to a decrease in the accuracy of the convolutional neural network model when detecting citrus psyllid-infected trees, which further leads to a decrease in the accuracy of citrus psyllid positioning. Summary of the invention

[0005] The first aspect of the present application provides a method for intelligently locating citrus psyllids in a citrus orchard, characterized by comprising:

[0006] Using a drone to shoot a target citrus tree in multiple directions, obtaining a citrus tip image group, wherein the citrus tip image group includes at least one shot image of the target citrus tree, and the citrus tip image group includes positioning information of the target citrus tree;

[0007] Select a citrus branch image from the citrus branch image group;

[0008] The citrus tip image is input into the trained target convolutional neural network model, which includes a first feature extraction layer, a second feature extraction layer, a third feature extraction layer, a fourth feature extraction layer, a residual layer, a global average pooling layer and a softmax layer. The first feature extraction layer is composed of a convolutional layer-normalization layer-convolutional layer-normalization layer arranged in series, a group of convolutional layers-normalization layers connected in parallel, and finally a maximum pooling layer connected in series. The second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer are the same as the first feature extraction layer;

[0009] Perform feature extraction of different depths on the citrus tip image through a first feature extraction layer, a second feature extraction layer, a third feature extraction layer, and a fourth feature extraction layer to generate a first depth feature set;

[0010] The first deep feature set is fused through a residual layer to generate a first feature residual, where the first feature residual includes a citrus psyllid feature residual or a diseased branch residual;

[0011] The first feature residual is classified and calculated through a global average pooling layer and a softmax layer to generate a first probability value set that the citrus branch image belongs to the citrus psyllid branch;

[0012] Generate at least two first probability value sets corresponding to the citrus branch image group according to the above method;

[0013] When there is a probability value greater than a preset threshold in at least two first probability value sets, a citrus psyllid alarm is generated according to the positioning information.

[0014] Optionally, before acquiring the citrus branch image group, the method further includes:

[0015] A citrus branch sample set is obtained, wherein the citrus branch sample set includes at least two training samples of citrus branches, and the training samples are images marked with the actual infection status of citrus psyllids and the target estimation threshold;

[0016] Constructing an initial convolutional neural network model, the initial convolutional neural network model includes a first feature extraction layer, a second feature extraction layer, a third feature extraction layer, a fourth feature extraction layer, a residual layer, a global average pooling layer and a softmax layer. The first feature extraction layer is composed of a convolution layer-normalization layer-convolution layer-normalization layer arranged in series, a group of convolution layers-normalization layers connected in parallel, and finally a maximum pooling layer connected in series. The second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer are the same as the first feature extraction layer;

[0017] Select training samples from the citrus tip sample set, and input the training samples into the initial convolutional neural network model;

[0018] Perform feature extraction of different depths on the training sample through the first feature extraction layer, the second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer to generate a second depth feature set;

[0019] The second deep feature set is fused through the residual layer to generate a second feature residual, where the second feature residual includes a citrus psyllid feature residual or a diseased branch residual;

[0020] The second feature residual is classified and calculated through a global average pooling layer and a softmax layer to generate a second probability value set of the training sample belonging to the citrus psyllid tip;

[0021] Calculating a loss value according to the second probability value set, the target estimation threshold, and a preset loss function of the initial convolutional neural network model to generate loss value data, where the loss value data is a set of loss values ​​statistically calculated during the training process;

[0022] Determine whether the loss value data converges to 0 within the preset range;

[0023] If the loss value data converges to 0 within a preset interval, the initial convolutional neural network model is determined to be the target convolutional neural network model.

[0024] Optionally, after determining whether the loss value data converges to 0 within a preset interval, the method further includes:

[0025] If the loss value data does not converge to 0 within the preset interval, it is determined whether the number of training times of the training sample meets the standard;

[0026] If the number of training samples reaches the standard, the weights of the initial convolutional neural network model are updated according to the mini-batch gradient descent method, and training samples are reselected from the training sample set and input into the initial convolutional neural network model for training.

[0027] Optionally, after determining whether the number of training times of the training sample reaches the standard, the method further includes:

[0028] If the number of training samples does not meet the requirement, the weights of the initial convolutional neural network model are updated according to the mini-batch gradient descent method, and the training samples are re-input into the initial convolutional neural network model for training.

[0029] Optionally, obtain a sample set of citrus tips, including:

[0030] Get a set of images of citrus branches;

[0031] The images in the citrus branch image set are subjected to sample expansion preprocessing to generate a citrus branch sample set. The sample expansion preprocessing includes scaling, cropping, rotation and uniform processing of the DC component of the background grayscale of the photo.

[0032] Optionally, performing feature extraction at different depths on the citrus tip image through a first feature extraction layer, a second feature extraction layer, a third feature extraction layer, and a fourth feature extraction layer to generate a first depth feature set includes:

[0033] Inputting the citrus tip image into the real-time first feature extraction layer to generate a first residual of the citrus tip image;

[0034] Inputting the first residual into the second feature extraction layer to generate a second residual of the citrus tip image;

[0035] Inputting the second residual into the third feature extraction layer to generate a third residual of the citrus tip image;

[0036] Inputting the third residual into a fourth feature extraction layer to generate a fourth residual of the citrus tip image;

[0037] The first residual, the second residual, the third residual and the fourth residual are determined as a first deep feature set.

[0038] Optionally, fusing the first deep feature set through a residual layer to generate a first feature residual includes:

[0039] The first residual to the fourth residual are sequentially fused through the residual layer to generate a first feature residual.

[0040] A second aspect of the present application provides a device for intelligently locating citrus psyllids in a citrus orchard, characterized by comprising:

[0041] A first acquisition unit is used to shoot the target citrus tree in multiple directions through a drone to acquire a citrus tip image group, wherein the citrus tip image group includes at least one shot image of the target citrus tree, and the citrus tip image group includes positioning information of the target citrus tree;

[0042] A first selection unit is used to select a citrus tip strip image from the citrus tip strip image group;

[0043] A first input unit is used to input the citrus tip image into the trained target convolutional neural network model, wherein the target convolutional neural network model includes a first feature extraction layer, a second feature extraction layer, a third feature extraction layer, a fourth feature extraction layer, a residual layer, a global average pooling layer and a softmax layer, wherein the first feature extraction layer is composed of a convolutional layer-normalization layer-convolutional layer-normalization layer arranged in series, a group of convolutional layers-normalization layers connected in parallel, and finally a maximum pooling layer connected in series, and the second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer are the same as the first feature extraction layer;

[0044] A first generating unit is used to extract features of different depths on the citrus tip image through a first feature extraction layer, a second feature extraction layer, a third feature extraction layer, and a fourth feature extraction layer to generate a first depth feature set;

[0045] A first fusion unit is used to fuse the first deep feature set through a residual layer to generate a first feature residual, where the first feature residual includes a citrus psyllid feature residual or a diseased branch residual;

[0046] The first calculation unit is used to perform classification calculation on the first feature residual through a global average pooling layer and a softmax layer to generate a first probability value set that the citrus branch image belongs to the citrus psyllid branch;

[0047] A first determination unit, configured to generate at least two first probability value sets corresponding to the citrus tip image group according to the above method;

[0048] The second determination unit is configured to generate a citrus psyllid alarm according to the positioning information when there is a probability value greater than a preset threshold in at least two first probability value sets.

[0049] Optionally, before acquiring the citrus branch image group, the method further includes:

[0050] The second acquisition unit is used to acquire a citrus branch sample set, wherein the citrus branch sample set includes at least two citrus branch training samples, and the training samples are images marked with the actual infection status of citrus psyllids and the target estimation threshold;

[0051] A construction unit is used to construct an initial convolutional neural network model, which includes a first feature extraction layer, a second feature extraction layer, a third feature extraction layer, a fourth feature extraction layer, a residual layer, a global average pooling layer and a softmax layer. The first feature extraction layer is composed of a convolution layer-normalization layer-convolution layer-normalization layer arranged in series, a group of convolution layers-normalization layers connected in parallel, and finally a maximum pooling layer connected in series. The second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer are the same as the first feature extraction layer;

[0052] The second selection unit is used to select training samples from the citrus tip sample set and input the training samples into the initial convolutional neural network model;

[0053] A second generating unit is used to extract features of different depths on the training sample through the first feature extraction layer, the second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer to generate a second depth feature set;

[0054] A second fusion unit is used to fuse the second deep feature set through a residual layer to generate a second feature residual, where the second feature residual includes a citrus psyllid feature residual or a diseased branch residual;

[0055] The second calculation unit is used to perform classification calculation on the second feature residual through a global average pooling layer and a softmax layer to generate a second probability value set of the training sample belonging to the citrus psyllid tip;

[0056] A third calculation unit is used to calculate a loss value according to the second probability value set, the target estimation threshold and a preset loss function of the initial convolutional neural network model to generate loss value data, where the loss value data is a set of loss values ​​statistically collected during the training process;

[0057] A first judgment unit, used to judge whether the loss value data converges to 0 within a preset interval;

[0058] The third determination unit is used to determine the initial convolutional neural network model as the target convolutional neural network model if the loss value data converges to 0 within a preset interval.

[0059] Optionally, after determining whether the loss value data converges to 0 within a preset interval, the method further includes:

[0060] A second judgment unit is used to judge whether the number of training times of the training sample reaches the standard if the loss value data does not converge to 0 within a preset interval;

[0061] The first updating unit is used to update the weights of the initial convolutional neural network model according to the mini-batch gradient descent method if the number of training times of the training samples reaches the standard, and re-select training samples from the training sample set to input into the initial convolutional neural network model for training.

[0062] Optionally, after determining whether the number of training times of the training sample reaches the standard, the method further includes:

[0063] The second updating unit is used to update the weights of the initial convolutional neural network model according to the mini-batch gradient descent method if the number of training times of the training samples does not meet the standard, and re-input the training samples into the initial convolutional neural network model for training.

[0064] Optionally, the second acquisition unit is specifically:

[0065] Get a set of images of citrus branches;

[0066] The images in the citrus branch image set are subjected to sample expansion preprocessing to generate a citrus branch sample set. The sample expansion preprocessing includes scaling, cropping, rotation and uniform processing of the DC component of the background grayscale of the photo.

[0067] Optionally, the first generation unit is specifically:

[0068] Inputting the citrus tip image into the real-time first feature extraction layer to generate a first residual of the citrus tip image;

[0069] Inputting the first residual into the second feature extraction layer to generate a second residual of the citrus tip image;

[0070] Inputting the second residual into the third feature extraction layer to generate a third residual of the citrus tip image;

[0071] Inputting the third residual into a fourth feature extraction layer to generate a fourth residual of the citrus tip image;

[0072] The first residual, the second residual, the third residual and the fourth residual are determined as a first deep feature set.

[0073] Optionally, the first fusion unit is specifically:

[0074] The first residual to the fourth residual are sequentially fused through the residual layer to generate a first feature residual.

[0075] A third aspect of the present application provides an electronic device, characterized in that it includes:

[0076] Processor, memory, input-output unit, and bus;

[0077] The processor is connected to the memory, the input and output unit, and the bus;

[0078] The memory stores a program, and the processor calls the program to execute the method of the first aspect and any one of the first aspect.

[0079] A third aspect of the present application provides a computer-readable storage medium, on which a program is stored. When the program is executed on a computer, the method of any one of the first aspects is performed.

[0080] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0081] In the present application scheme, a drone is first used for fixed-point shooting, and the fixed-point information is the position point on the drip line of the target citrus tree. The drip line refers to the extension area of ​​the crown of the fruit tree. The drone shoots on the drip line to obtain a citrus tip image group, and the citrus tip image group includes at least one shot image of the target citrus tree. The citrus tip image group includes the positioning information of the target citrus tree. Then, a citrus tip image is selected from the citrus tip image group, and the citrus tip image is input into the trained target convolutional neural network model, wherein the target convolutional neural network model includes a first feature extraction layer, a second feature extraction layer, a third feature extraction layer, a fourth feature extraction layer, a residual layer, a global average pooling layer and a softmax layer. The first feature extraction layer is composed of a convolution layer-normalization layer-convolution layer-normalization layer arranged in series, and then connected in parallel with a group of convolution layers-normalization layers, and finally connected in series with a maximum pooling layer. The second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer are the same as the first feature extraction layer. The first feature extraction layer, the second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer are used to extract features of different depths on the citrus tip image to generate a first depth feature set. The first depth feature set is then fused through the residual layer to generate a first feature residual, which includes a citrus psyllid feature residual or a diseased tip residual. The first feature residual is classified and calculated through a global average pooling layer and a softmax layer to generate a first probability value set that the citrus tip image belongs to a citrus psyllid tip. At least two first probability value sets corresponding to the citrus tip image group are generated according to the above method. When there is a probability value greater than a preset threshold in at least two first probability value sets, a citrus psyllid alarm is generated according to the positioning information. Since the first feature extraction layer, the second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer sequentially extract features of different depths on the citrus tip image, the extracted features will not be submerged in the background of the captured image, and through feature fusion, the accuracy of detecting trees infected with citrus psyllids is improved, further improving the accuracy of citrus psyllid positioning. BRIEF DESCRIPTION OF THE DRAWINGS

[0082] Figure 1 A schematic diagram of an embodiment of the method for intelligently locating citrus psyllids in a citrus orchard of the present application;

[0083] Figure 2-1 Figure 2-2 Figure 2-3 This is a schematic diagram of another embodiment of the method for intelligently locating citrus psyllids in a citrus orchard of the present application;

[0084] Figure 3 A schematic diagram of an embodiment of a device for intelligently locating citrus psyllids in a citrus orchard according to the present application;

[0085] Figure 4This is a schematic diagram of another embodiment of the device for intelligently locating citrus psyllids in a citrus orchard of the present application;

[0086] Figure 5 This is a schematic diagram of an embodiment of an electronic device of the present application. DETAILED DESCRIPTION

[0087] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0088] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0089] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0090] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0091] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0092] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0093] In the existing technology, accurate and efficient positioning and detection of citrus psyllids is an important prerequisite for the prevention and control of citrus Huanglongbing disease, and is also a key link in achieving precision agriculture. In response to the problems of manual detection methods in the field, many scholars at home and abroad have done a lot of research in the field of crop disease and pest identification based on convolutional neural network technology. However, due to the small size of citrus psyllids and the changes in their morphology during growth, the characteristics of citrus psyllids will be submerged in the background of the captured image during the training of convolutional neural networks. This is called the multi-scale problem, which leads to a decrease in the accuracy of the convolutional neural network model when detecting citrus psyllid-infected trees, which further leads to a decrease in the accuracy of citrus psyllid positioning.

[0094] Based on this, the present application discloses a method and related devices for intelligently locating citrus psyllids in a citrus orchard, which are used to improve the accuracy of locating citrus psyllids.

[0095] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0096] The method of the present application can be applied to a server, a device, a terminal or other devices with logic processing capabilities, and the present application does not limit this. For the convenience of description, the following description is made by taking the execution subject as an example of a terminal.

[0097] See also Figure 1 The present application provides an embodiment of a method for intelligently controlling citrus psyllids, comprising:

[0098] 101. Use a drone to shoot a target citrus tree in multiple directions to obtain a citrus tip image group, where the citrus tip image group includes at least one shot image of the target citrus tree, and the citrus tip image group includes positioning information of the target citrus tree;

[0099] The terminal first sets a fixed device around the target citrus tree so that the drone can capture the positioning information of the fixed device and take pictures. Specifically, the terminal sets at least one fixed device on the drip line of the target citrus tree. The fixed device can detect the drip line of the tree and send the positioning information to the drone. The drone uses the fixed device to take multi-directional pictures of the target citrus tree to obtain a citrus top image group. The citrus top image group contains at least one captured image of the target citrus tree. The citrus top image group contains the positioning information of the target citrus tree. Specifically, the drone is used to fly and shoot in the citrus planting area, and the image of the citrus tree is collected at every moment, mainly collecting images of the top of the citrus tree. Since citrus psyllids are mainly located in the new shoots, it is necessary to use the drone camera to shoot the top of the citrus tree. Each captured image in the citrus top image group corresponds to a marked citrus tree.

[0100] The drip line of a fruit tree refers to the outer extension area of ​​the crown of the fruit tree (looking down at the fruit tree, draw an outer circle, this circle is the drip line), which is the main growth area of ​​the capillary roots and fibrous roots of the fruit tree. The capillary roots and fibrous roots bear most of the functions of the fruit tree to absorb fertilizer and water. We need to prevent economic crops from being planted on the drip line. In this embodiment, the drip line can also be used as a shooting position.

[0101] 102. Select a citrus branch image from the citrus branch image group;

[0102] 103. Input the citrus tip image into the trained target convolutional neural network model, wherein the target convolutional neural network model includes a first feature extraction layer, a second feature extraction layer, a third feature extraction layer, a fourth feature extraction layer, a residual layer, a global average pooling layer and a softmax layer. The first feature extraction layer is composed of a convolutional layer-normalization layer-convolutional layer-normalization layer arranged in series, a group of convolutional layers-normalization layers connected in parallel, and finally a maximum pooling layer connected in series. The second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer are the same as the first feature extraction layer.

[0103] The terminal randomly selects an image of a citrus tip from the group of citrus tip images, and then inputs the image of the citrus tip into the trained target convolutional neural network model. The target convolutional neural network model of the embodiment of the present application includes a first feature extraction layer, a second feature extraction layer, a third feature extraction layer, a fourth feature extraction layer, a residual layer, a global average pooling layer and a softmax layer. The first feature extraction layer is composed of a convolution layer-normalization layer-convolution layer-normalization layer arranged in series, connected in parallel with a group of convolution layers-normalization layers, and finally connected in series with a maximum pooling layer. The second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer are the same as the first feature extraction layer.

[0104] The first feature extraction layer, the second feature extraction layer, the third feature extraction layer, and the fourth feature extraction layer are mainly used to extract the features of citrus psyllids at different depths and the features of citrus psyllids infected branches. During the detection process, it is only necessary to detect the features of citrus psyllids or the features of citrus psyllids infected branches to determine that the citrus tree is sick.

[0105] 104. Perform feature extraction of different depths on the citrus tip image through a first feature extraction layer, a second feature extraction layer, a third feature extraction layer, and a fourth feature extraction layer to generate a first depth feature set;

[0106] The terminal performs feature extraction at different depths on the citrus tip image through the first feature extraction layer, the second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer to generate a first depth feature set. By extracting features at different depths, it can prevent the situation where the features caused by the citrus psyllid being too small or in a growth stage are submerged.

[0107] 105. Fusing the first deep feature set through a residual layer to generate a first feature residual, where the first feature residual includes a citrus psyllid feature residual or a diseased branch residual;

[0108] The terminal fuses the first deep feature set through the residual layer to generate a first feature residual, which includes the citrus psyllid feature residual or the diseased branch residual. The main purpose of residual fusion is to integrate the citrus psyllid features or the features of the citrus psyllid diseased branches to obtain better features.

[0109] 106. Classify and calculate the first feature residual through a global average pooling layer and a softmax layer to generate a first probability value set that the citrus branch image belongs to the citrus psyllid branch;

[0110] The terminal classifies and calculates the first feature residual through the global average pooling layer and the softmax layer to generate a first probability value set that the citrus branch image belongs to the citrus psyllid branch, that is, analyzes the probability value of the first residual feature being the insect feature of citrus psyllid, or the probability value of the first residual feature being the diseased branch feature of the diseased branch of citrus psyllid.

[0111] The terminal calculates the first feature residual through the global average pooling layer and the softmax layer to generate a set of probability values.

[0112] The specific calculation method is as follows:

[0113]

[0114] where e x is an exponential function, y irepresents the nth input neuron in the output layer. The operation of the denominator indicates that there are n output neurons in the output layer, and the exponential sum of the input neurons in all output layers is calculated.

[0115] y i represents the output of the i-th neuron, softmax(y i ) is a set of probability values.

[0116] 107. Generate at least two first probability value sets corresponding to the citrus branch image group according to the above method;

[0117] The terminal determines the citrus psyllid infection status of the target citrus tree according to the first probability value set, and when the first probability value set shows that the probability of the citrus fruit tree being infected is greater than a preset threshold, it is determined that the fruit tree corresponding to the citrus tip image is infected. The terminal obtains the first probability value set for multiple images captured in the citrus tip image group.

[0118] It should be noted that in the process of training the citrus tip image, the target convolutional neural network model needs to generate numerical outputs, and in the actual application of the target convolutional neural network model, only the results with large probabilities and the corresponding probability values ​​need to be output. For example, in the training process, the model probability distribution P (probability value of disease P1, probability value of non-disease P2) needs to be output, and in the actual application of the target convolutional neural network model, only max(P(P1, P2)) needs to be output.

[0119] 108. When there is a probability value greater than a preset threshold in the at least two first probability value sets, generate a citrus psyllid alarm according to the positioning information.

[0120] When there is a probability value greater than a preset threshold in the first probability value set, a citrus psyllid alarm is generated according to the positioning information.

[0121] In the present application scheme, a drone is first used for fixed-point shooting, and the fixed-point information is the position point on the drip line of the target citrus tree. The drip line refers to the extension area of ​​the crown of the fruit tree. The drone shoots on the drip line to obtain a citrus tip image group, and the citrus tip image group includes at least one shot image of the target citrus tree. The citrus tip image group includes the positioning information of the target citrus tree. Then, a citrus tip image is selected from the citrus tip image group, and the citrus tip image is input into the trained target convolutional neural network model, wherein the target convolutional neural network model includes a first feature extraction layer, a second feature extraction layer, a third feature extraction layer, a fourth feature extraction layer, a residual layer, a global average pooling layer and a softmax layer. The first feature extraction layer is composed of a convolution layer-normalization layer-convolution layer-normalization layer arranged in series, and then connected in parallel with a group of convolution layers-normalization layers, and finally connected in series with a maximum pooling layer. The second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer are the same as the first feature extraction layer. The first feature extraction layer, the second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer are used to extract features of different depths on the citrus tip image to generate a first depth feature set. The first depth feature set is then fused through the residual layer to generate a first feature residual, which includes a citrus psyllid feature residual or a diseased tip residual. The first feature residual is classified and calculated through a global average pooling layer and a softmax layer to generate a first probability value set that the citrus tip image belongs to a citrus psyllid tip. At least two first probability value sets corresponding to the citrus tip image group are generated according to the above method. When there is a probability value greater than a preset threshold in at least two first probability value sets, a citrus psyllid alarm is generated according to the positioning information. Since the first feature extraction layer, the second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer sequentially extract features of different depths on the citrus tip image, the extracted features will not be submerged in the background of the captured image, and through feature fusion, the accuracy of detecting trees infected with citrus psyllids is improved, further improving the accuracy of citrus psyllid positioning.

[0122] See also Figure 2-1 Figure 2-2 Figure 2-3 The present application provides another embodiment of a method for intelligently controlling citrus psyllids, comprising:

[0123] 201. Obtain a set of images of citrus branches;

[0124] 202. Perform sample expansion preprocessing on the images in the citrus branch image set to generate a citrus branch sample set, wherein the sample expansion preprocessing includes scaling, cropping, rotation, and photo background grayscale DC component unification, and the citrus branch sample set includes at least two citrus branch training samples, and the training samples are images marked with actual infection conditions of citrus psyllids and target estimation thresholds;

[0125] After the terminal obtains the citrus branch image set, the images in the citrus branch image set are subjected to sample expansion preprocessing to generate a citrus branch sample set. The sample expansion preprocessing includes scaling, cropping, rotation, and photo background grayscale DC component unification. The citrus branch sample set contains at least two citrus branch training samples, which are images marked with the actual infection status of citrus psyllids and target estimation thresholds.

[0126] The terminal performs sample expansion preprocessing on the images in the citrus tip image set to generate a citrus tip sample set. The sample expansion preprocessing includes scaling, cropping, rotation, and uniform processing of the DC component of the background grayscale of the photo. For the citrus tip image set obtained by taking photos, the photos need to be sample expanded before being sent to the initial convolutional neural network model for training.

[0127] The initial convolutional neural network model training requires a large number of photos of citrus psyllids and a large number of flattened diseased shoots of citrus psyllids. The model is modeled through the data features learned from a large number of training samples. Sometimes the shooting sample set is not so sufficient, and it is necessary to artificially "add" defective samples through data enhancement. Data enhancement includes image operations such as rotation, offset, mirroring, cropping, and stretching of photos, so that the new picture and the original picture "look" different. In a sense, new photos are generated and the data set is expanded.

[0128] Cropping: The set of citrus branch images taken with an industrial camera includes some surrounding background images in addition to the citrus psyllid part and the citrus psyllid-infected branch part. These images are unnecessary and may affect the training and detection of the initial convolutional neural network model. The extra images will also increase the time cost and GPU memory consumption during the training and testing of the initial convolutional neural network model. Therefore, it is necessary to remove these useless images by cropping and only retain the citrus psyllid part and the citrus psyllid-infected branch part.

[0129] In addition to cropping, rotation, offset, mirroring and stretching can all be used to expand the training samples of the images in the citrus tip image set.

[0130] Unification of the DC component of the grayscale background of photos: Since the types of citrus psyllids and diseased branches of citrus psyllids are not necessarily exactly the same, and different manufacturers have different shooting conditions, the background grayscale of different defective photos will be different, which will bring inconvenience to the training and detection of the initial convolutional neural network model. The different background grayscales of the images in the training sample set may affect the final detection results. The image set of citrus branches includes the grayscale DC component of the background, the grayscale AC component of the citrus psyllid part, and the grayscale DC component of the diseased branches of citrus psyllid. This embodiment retains the grayscale AC component in the image and unifies the grayscale DC component of the background in all images, so that the initial convolutional neural network model can adapt to all images with different background grayscales in the citrus branches image set.

[0131] Secondly, for the RGB three-channel color images in the shooting sample set, the processing steps are slightly different. The green G channel is processed according to the above figure. After subtracting the average grayscale value of the red R channel and the blue B channel pixels from the average grayscale value of their respective channels, the added unified grayscale value is different from that of the green channel. The unified grayscale value is increased in the corresponding proportion according to the ratio of the average grayscale value of each channel to the average grayscale value of the green channel.

[0132] For example: the average grayscale values ​​of the RGB channels are 50, 75, and 100 respectively, and the uniform grayscale value added to the green channel is 128, that is, all pixel values ​​of the green channel are subtracted from 50 and added to 128, all pixel values ​​of the red channel are subtracted from 75 and added to 128*(75 / 50), and all pixel values ​​of the blue channel are subtracted from 100 and added to 128*(100 / 50).

[0133] 203. Construct an initial convolutional neural network model, which includes a first feature extraction layer, a second feature extraction layer, a third feature extraction layer, a fourth feature extraction layer, a residual layer, a global average pooling layer and a softmax layer. The first feature extraction layer is composed of a convolution layer-normalization layer-convolution layer-normalization layer arranged in series, a group of convolution layers-normalization layers connected in parallel, and finally a maximum pooling layer connected in series. The second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer are the same as the first feature extraction layer.

[0134] The terminal constructs an initial convolutional neural network model, which includes a first feature extraction layer, a second feature extraction layer, a third feature extraction layer, a fourth feature extraction layer, a residual layer, a global average pooling layer and a softmax layer. The first feature extraction layer is composed of a convolution layer-normalization layer-convolution layer-normalization layer arranged in series, a group of convolution layer-normalization layers in parallel, and finally a maximum pooling layer in series. The second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer are the same as the first feature extraction layer.

[0135] The residual layer is also composed of multiple layers of separable convolutional layers. The residual layer fuses two residual units at a time to achieve the function of fusing each residual unit to extract multi-scale features. It can extract multi-scale features and suppress the impact of partial occlusion.

[0136] 204. Selecting training samples from the citrus tip sample set, and inputting the training samples into the initial convolutional neural network model;

[0137] The terminal selects training samples from the citrus tip sample set and inputs the training samples into the initial convolutional neural network model. The terminal may randomly select one training sample from the citrus tip sample set or may randomly select multiple samples for training.

[0138] In this embodiment, a small batch of training samples with a batch size of 16 is used as the amount of one training, and a training effect is achieved through multiple iterations. In this embodiment, the number of iterations is about 25,000 times.

[0139] For example, input the training samples in the citrus tip sample set into the multi-scale convolutional neural network model. This training sample is an image of a tip with citrus psyllids, and the target prediction value is more than 90%. After extracting features of different depths through the first feature extraction layer, the second feature extraction layer, the third feature extraction layer, and the fourth feature extraction layer, the residual layer fuses the features of different depths, and calculates the loss value of the feature through the global average pooling of the output layer combined with the softmax layer and the cross entropy loss function, and outputs it.

[0140] 205. Perform feature extraction of different depths on the training sample through the first feature extraction layer, the second feature extraction layer, the third feature extraction layer, and the fourth feature extraction layer to generate a second depth feature set;

[0141] 206. Fusing the second deep feature set through a residual layer to generate a second feature residual, where the second feature residual includes a citrus psyllid feature residual or a diseased branch residual;

[0142] 207. Classify and calculate the second feature residual through a global average pooling layer and a softmax layer to generate a second probability value set that the training sample belongs to the citrus psyllid tip;

[0143] The terminal first extracts features of different depths on the training samples through the first feature extraction layer, the second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer to generate a second depth feature set.

[0144] The terminal then fuses the second deep feature set through a residual layer to generate a second feature residual, which includes citrus psyllid feature residuals or diseased shoot residuals.

[0145] The residual is calculated as follows: Assume that the input of the first feature extraction layer is X l , respectively, after two sets of convolutional layers-normalization layers arranged in series, and another set of convolutional layers-normalization layers in parallel, the formula is as follows:

[0146]

[0147] y l is the output of the lth residual unit, F is the residual function, F xl The residual value of Xl.

[0148] X l+1 The input of the second feature extraction layer is:

[0149]

[0150]

[0151] Y l+1 is the output of the l+1th residual unit, F is the residual function, F xl+1 For X l+1 The residual calculation value of .

[0152] 208. Calculate the loss value according to the second probability value set, the target estimation threshold, and the preset loss function of the initial convolutional neural network model to generate loss value data, where the loss value data is a set of loss values ​​counted during the training process;

[0153] The terminal calculates the loss value according to the second probability value set, the target estimation threshold and the preset loss function of the initial convolutional neural network model to generate loss value data, where the loss value data is a set of loss values ​​statistically calculated during the training process.

[0154] 209. Determine whether the loss value data converges to 0 within a preset interval;

[0155] The terminal determines whether the initial convolutional neural network model has completed convergence through the loss value data, and if so, executes step 210, if not, executes step 211.

[0156] 210. If the loss value data converges to 0 within a preset interval, the initial convolutional neural network model is determined to be the target convolutional neural network model;

[0157] When the terminal determines that the initial convolutional neural network model has completed convergence, the terminal can determine that the initial convolutional neural network model is the target convolutional neural network model and can enter practical application.

[0158] 211. If the loss value data does not converge to 0 within the preset interval, it is determined whether the number of training times of the training sample meets the standard;

[0159] When the terminal determines that the initial convolutional neural network model has not completed convergence, the terminal determines whether the number of training times of the training samples meets the standard. If so, step 212 is executed; if not, step 213 is executed.

[0160] 212. If the number of training samples reaches the standard, the weights of the initial convolutional neural network model are updated according to the mini-batch gradient descent method, and training samples are reselected from the training sample set and input into the initial convolutional neural network model for training;

[0161] When the training sample reaches the training amount, the terminal updates the weight of the initial convolutional neural network model according to the mini-batch gradient descent method, and reselects training samples from the training sample set to input into the initial convolutional neural network model for training.

[0162] 213. If the number of training samples does not meet the standard, the weights of the initial convolutional neural network model are updated according to the mini-batch gradient descent method, and the training samples are re-input into the initial convolutional neural network model for training;

[0163] If the number of training samples does not meet the standard, it means that the training samples have not reached the training amount. Then the weights of the initial convolutional neural network model are updated according to the mini-batch gradient descent method, and the training samples are re-input into the initial convolutional neural network model for training.

[0164] 214. Use a drone to shoot the target citrus tree in multiple directions to obtain a citrus tip image group, where the citrus tip image group includes at least one shot image of the target citrus tree, and the citrus tip image group includes positioning information of the target citrus tree;

[0165] 215. Select a citrus branch image from the citrus branch image group;

[0166] 216. Input the citrus tip image into the trained target convolutional neural network model, wherein the target convolutional neural network model includes a first feature extraction layer, a second feature extraction layer, a third feature extraction layer, a fourth feature extraction layer, a residual layer, a global average pooling layer and a softmax layer, wherein the first feature extraction layer is composed of a convolutional layer-normalization layer-convolutional layer-normalization layer arranged in series, a group of convolutional layers-normalization layers connected in parallel, and finally a maximum pooling layer connected in series, and the second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer are the same as the first feature extraction layer;

[0167] Steps 214 to 216 in this embodiment are similar to steps 101 to 103 in the above-mentioned embodiment and are not described again here.

[0168] 217. Inputting the citrus tip image into the real-time first feature extraction layer to generate a first residual of the citrus tip image;

[0169] 218. Input the first residual into the second feature extraction layer to generate a second residual of the citrus tip image;

[0170] 219. Input the second residual into the third feature extraction layer to generate a third residual of the citrus tip image;

[0171] 220. Input the third residual into a fourth feature extraction layer to generate a fourth residual of the citrus tip image;

[0172] 221. Determine the first residual, the second residual, the third residual, and the fourth residual as a first depth feature set;

[0173] 222. The first residual to the fourth residual are sequentially fused through the residual layer to generate a first feature residual;

[0174] The terminal inputs the citrus tip image into the real-time first feature extraction layer to generate the first residual of the citrus tip image, and inputs the first residual into the second feature extraction layer according to the above method to generate the second residual of the citrus tip image, and inputs the second residual into the third feature extraction layer to generate the third residual of the citrus tip image, and inputs the third residual into the fourth feature extraction layer to generate the fourth residual of the citrus tip image. Finally, the terminal fuses the first to fourth residuals in sequence through the residual layer to generate the first feature residual.

[0175] 223. Classify and calculate the first feature residual through a global average pooling layer and a softmax layer to generate a first probability value set that the citrus branch image belongs to the citrus psyllid branch;

[0176] 224. Generate at least two first probability value sets corresponding to the citrus branch image group according to the above method;

[0177] 225. When there is a probability value greater than a preset threshold in the at least two first probability value sets, generate a citrus psyllid alarm based on the positioning information.

[0178] Steps 223 to 225 in this embodiment are similar to steps 106 to 108 in the aforementioned embodiment and are not described again here.

[0179] In an embodiment of the present application, first, the terminal acquires a set of images of citrus branches, and the terminal performs sample expansion preprocessing on the images in the set of images of citrus branches to generate a set of citrus branches sample, thereby increasing the number of samples. The terminal constructs an initial convolutional neural network model, and the terminal selects training samples from the set of citrus branches sample, and inputs the training samples into the initial convolutional neural network model. The terminal first extracts features of different depths on the training samples through the first feature extraction layer, the second feature extraction layer, the third feature extraction layer, and the fourth feature extraction layer to generate a second depth feature set. The terminal then fuses the second depth feature set through the residual layer to generate a second feature residual, and the second feature residual includes a citrus psyllid feature residual or a diseased branch residual. The terminal classifies and calculates the second feature residual through a global average pooling layer and a softmax layer to generate a second probability value set that the training sample belongs to a citrus psyllid branch. The terminal calculates the loss value based on the second probability value set, the target estimation threshold, and the preset loss function of the initial convolutional neural network model to generate loss value data. The terminal determines whether the loss value data converges to 0 within the preset interval. If the loss value data converges to 0 within the preset interval, the terminal determines that the initial convolutional neural network model is the target convolutional neural network model. If the loss value data does not converge to 0 within the preset interval, the terminal determines whether the number of training times of the training sample meets the standard. If the number of training times of the training sample meets the standard, the terminal updates the weight of the initial convolutional neural network model according to the small batch gradient descent method, and reselects the training sample from the training sample set and inputs it into the initial convolutional neural network model for training. If the number of training times of the training sample does not meet the standard, the terminal updates the weight of the initial convolutional neural network model according to the small batch gradient descent method, and re-inputs the training sample into the initial convolutional neural network model for training.

[0180] First, the terminal uses a drone to shoot the target citrus tree in multiple directions to obtain a citrus tip image group, which includes at least one shot image of the target citrus tree, and the citrus tip image group includes the positioning information of the target citrus tree. The terminal then selects a citrus tip image from the citrus tip image group, and the terminal inputs the citrus tip image into the trained target convolutional neural network model, wherein the target convolutional neural network model includes a first feature extraction layer, a second feature extraction layer, a third feature extraction layer, a fourth feature extraction layer, a residual layer, a global average pooling layer and a softmax layer, the first feature extraction layer is composed of a convolution layer-normalization layer-convolution layer-normalization layer arranged in series, and then connected in parallel with a group of convolution layers-normalization layers, and finally connected in series with a maximum pooling layer, the second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer are the same as the first feature extraction layer. The terminal inputs the citrus tip image into the real-time first feature extraction layer to generate the first residual of the citrus tip image, and inputs the first residual into the second feature extraction layer according to the above method to generate the second residual of the citrus tip image, and inputs the second residual into the third feature extraction layer to generate the third residual of the citrus tip image, and inputs the third residual into the fourth feature extraction layer to generate the fourth residual of the citrus tip image. Finally, the terminal sequentially fuses the first to fourth residuals through the residual layer to generate the first feature residual, and the first feature residual includes the citrus psyllid feature residual or the diseased tip residual.

[0181] The terminal classifies and calculates the first feature residual through the global average pooling layer and the softmax layer to generate a first probability value set that the citrus tip image belongs to the citrus psyllid tip. The terminal generates at least two first probability value sets corresponding to the citrus tip image group according to the above method. When the terminal determines that there is a probability value greater than a preset threshold in at least two first probability value sets, the terminal generates a citrus psyllid alarm according to the positioning information. Because the first feature extraction layer, the second feature extraction layer, the third feature extraction layer, and the fourth feature extraction layer successively extract features of the citrus tip image at different depths, the extracted features will not be submerged in the background of the captured image, and through feature fusion, the accuracy of detecting trees infected with citrus psyllids is improved, further improving the accuracy of citrus psyllid positioning.

[0182] See also Figure 3 The present application provides an embodiment of a device for intelligently locating citrus psyllids in a citrus orchard, comprising:

[0183] The first acquisition unit 301 is used to shoot the target citrus tree in multiple directions by using a drone to acquire a citrus top image group, wherein the citrus top image group includes at least one shot image of the target citrus tree, and the citrus top image group includes positioning information of the target citrus tree;

[0184] The first selection unit 302 is used to select a citrus tip strip image from the citrus tip strip image group;

[0185] The first input unit 303 is used to input the citrus tip image into the trained target convolutional neural network model, wherein the target convolutional neural network model includes a first feature extraction layer, a second feature extraction layer, a third feature extraction layer, a fourth feature extraction layer, a residual layer, a global average pooling layer and a softmax layer, wherein the first feature extraction layer is composed of a convolutional layer-normalization layer-convolutional layer-normalization layer arranged in series, a group of convolutional layers-normalization layers connected in parallel, and finally a maximum pooling layer connected in series, and the second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer are the same as the first feature extraction layer;

[0186] The first generating unit 304 is used to extract features of different depths on the citrus tip image through the first feature extraction layer, the second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer to generate a first depth feature set;

[0187] The first fusion unit 305 is used to fuse the first deep feature set through a residual layer to generate a first feature residual, where the first feature residual includes a citrus psyllid feature residual or a diseased branch residual;

[0188] The first calculation unit 306 is used to perform classification calculation on the first feature residual through a global average pooling layer and a softmax layer to generate a first probability value set that the citrus branch image belongs to the citrus psyllid branch;

[0189] A first determining unit 307 is used to generate at least two first probability value sets corresponding to the citrus tip image group according to the above method;

[0190] The second determining unit 308 is configured to generate a citrus psyllid alarm according to the positioning information when there is a probability value greater than a preset threshold in at least two first probability value sets.

[0191] See also Figure 4 The present application provides another embodiment of a device for intelligently locating citrus psyllids in a citrus orchard, comprising:

[0192] The second acquisition unit 401 is used to acquire a citrus branch sample set, wherein the citrus branch sample set includes at least two citrus branch training samples, and the training samples are images marked with the actual infection status of citrus psyllids and the target estimation threshold;

[0193] Optionally, the second obtaining unit 401 is specifically:

[0194] Get a set of images of citrus branches;

[0195] The images in the citrus branch image set are subjected to sample expansion preprocessing to generate a citrus branch sample set. The sample expansion preprocessing includes scaling, cropping, rotation and uniform processing of the DC component of the background grayscale of the photo.

[0196] A construction unit 402 is used to construct an initial convolutional neural network model, which includes a first feature extraction layer, a second feature extraction layer, a third feature extraction layer, a fourth feature extraction layer, a residual layer, a global average pooling layer and a softmax layer. The first feature extraction layer is composed of a convolution layer-normalization layer-convolution layer-normalization layer arranged in series, a group of convolution layers-normalization layers connected in parallel, and finally a maximum pooling layer connected in series. The second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer are the same as the first feature extraction layer;

[0197] A second selection unit 403 is used to select training samples from the citrus tip sample set and input the training samples into the initial convolutional neural network model;

[0198] The second generating unit 404 is used to extract features of different depths on the training sample through the first feature extraction layer, the second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer to generate a second depth feature set;

[0199] The second fusion unit 405 is used to fuse the second deep feature set through a residual layer to generate a second feature residual, where the second feature residual includes a citrus psyllid feature residual or a diseased branch residual;

[0200] The second calculation unit 406 is used to perform classification calculation on the second feature residual through a global average pooling layer and a softmax layer to generate a second probability value set that the training sample belongs to the citrus psyllid tip;

[0201] A third calculation unit 407 is used to calculate a loss value according to the second probability value set, the target estimation threshold and a preset loss function of the initial convolutional neural network model to generate loss value data, where the loss value data is a set of loss values ​​statistically collected during the training process;

[0202] A first judgment unit 408, used to judge whether the loss value data converges to 0 within a preset interval;

[0203] A third determining unit 409 is used to determine the initial convolutional neural network model as a target convolutional neural network model if the loss value data converges to 0 within a preset interval;

[0204] A second judgment unit 410 is used to judge whether the number of training times of the training sample meets the standard if the loss value data does not converge to 0 within a preset interval;

[0205] A first updating unit 411 is used to update the weights of the initial convolutional neural network model according to the mini-batch gradient descent method if the number of training times of the training samples reaches the standard, and reselect training samples from the training sample set to input into the initial convolutional neural network model for training;

[0206] A second updating unit 412 is used to update the weights of the initial convolutional neural network model according to a mini-batch gradient descent method if the number of training times of the training sample does not meet the standard, and re-input the training sample into the initial convolutional neural network model for training;

[0207] The first acquisition unit 413 is used to shoot the target citrus tree in multiple directions by using a drone to acquire a citrus top image group, wherein the citrus top image group includes at least one shot image of the target citrus tree, and the citrus top image group includes positioning information of the target citrus tree;

[0208] The first selection unit 414 is used to select a citrus tip strip image from the citrus tip strip image group;

[0209] The first input unit 415 is used to input the citrus tip image into the trained target convolutional neural network model, wherein the target convolutional neural network model includes a first feature extraction layer, a second feature extraction layer, a third feature extraction layer, a fourth feature extraction layer, a residual layer, a global average pooling layer and a softmax layer, wherein the first feature extraction layer is composed of a convolutional layer-normalization layer-convolutional layer-normalization layer arranged in series, a group of convolutional layers-normalization layers connected in parallel, and finally a maximum pooling layer connected in series, and the second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer are the same as the first feature extraction layer;

[0210] The first generating unit 416 is used to extract features of different depths on the citrus tip image through the first feature extraction layer, the second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer to generate a first depth feature set;

[0211] Optionally, the first generating unit 416 is specifically:

[0212] Inputting the citrus tip image into the real-time first feature extraction layer to generate a first residual of the citrus tip image;

[0213] Inputting the first residual into the second feature extraction layer to generate a second residual of the citrus tip image;

[0214] Inputting the second residual into the third feature extraction layer to generate a third residual of the citrus tip image;

[0215] Inputting the third residual into a fourth feature extraction layer to generate a fourth residual of the citrus tip image;

[0216] The first residual, the second residual, the third residual and the fourth residual are determined as a first deep feature set.

[0217] A first fusion unit 417 is used to fuse the first deep feature set through a residual layer to generate a first feature residual, where the first feature residual includes a citrus psyllid feature residual or a diseased branch residual;

[0218] Optionally, the first fusion unit 417 is specifically:

[0219] The first residual to the fourth residual are sequentially fused through the residual layer to generate a first feature residual.

[0220] The first calculation unit 418 is used to perform classification calculation on the first feature residual through a global average pooling layer and a softmax layer to generate a first probability value set that the citrus branch image belongs to the citrus psyllid branch;

[0221] A first determining unit 419 is used to generate at least two first probability value sets corresponding to the citrus tip image group according to the above method;

[0222] The second determination unit 420 is configured to generate a citrus psyllid alarm according to the positioning information when there is a probability value greater than a preset threshold in at least two first probability value sets.

[0223] See also Figure 5 , the present application provides an electronic device, including:

[0224] Processor 501 , memory 502 , input / output unit 503 , and bus 504 .

[0225] The processor 501 is connected to the memory 502 , the input and output unit 503 , and the bus 504 .

[0226] The memory 501 stores a program, and the processor 501 calls the program to execute the following steps: Figure 1 to Figure 2-1 Figure 2-2 Figure 2-3 The method in .

[0227] The present application provides a computer-readable storage medium, on which a program is stored, and when the program is executed on a computer, the program performs the following steps: Figure 1 to Figure 2-1 Figure 2-2 Figure 2-3 The method in .

[0228] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0229] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0230] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0231] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0232] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.

Claims

1. A method for intelligently locating citrus psyllids in a citrus orchard, characterized in that: include: Using a drone to shoot a target citrus tree in multiple directions to obtain a citrus tip image group, wherein the citrus tip image group includes at least one shot image of the target citrus tree, and the citrus tip image group includes positioning information of the target citrus tree; Selecting a citrus tip strip image from the citrus tip strip image group; Inputting the citrus tip image into a trained target convolutional neural network model, the target convolutional neural network model includes a first feature extraction layer, a second feature extraction layer, a third feature extraction layer, a fourth feature extraction layer, a residual layer, a global average pooling layer and a softmax layer, the first feature extraction layer is composed of a convolution layer-normalization layer-convolution layer-normalization layer arranged in series, a group of convolution layers-normalization layers connected in parallel, and finally a maximum pooling layer connected in series, the second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer are the same as the first feature extraction layer; Perform feature extraction of different depths on the citrus tip image through the first feature extraction layer, the second feature extraction layer, the third feature extraction layer, and the fourth feature extraction layer to generate a first depth feature set; The first deep feature set is fused through the residual layer to generate a first feature residual, wherein the first feature residual includes a citrus psyllid feature residual or a diseased branch residual; The first feature residual is classified and calculated through the global average pooling layer and the softmax layer to generate a first probability value set that the citrus branch image belongs to the citrus psyllid branch; Generate at least two first probability value sets corresponding to the citrus tip image group according to the above method; When there is a probability value greater than a preset threshold in the at least two first probability value sets, a citrus psyllid alarm is generated according to the positioning information.

2. The method according to claim 1, characterized in that Before acquiring the citrus tip image group, the method further includes: Acquire a citrus branch sample set, wherein the citrus branch sample set includes at least two citrus branch training samples, and the training samples are images marked with actual infection conditions of citrus psyllids and target estimation thresholds; Constructing an initial convolutional neural network model, the initial convolutional neural network model includes a first feature extraction layer, a second feature extraction layer, a third feature extraction layer, a fourth feature extraction layer, a residual layer, a global average pooling layer and a softmax layer, the first feature extraction layer is composed of a convolution layer-normalization layer-convolution layer-normalization layer arranged in series, a group of convolution layers-normalization layers connected in parallel, and finally a maximum pooling layer connected in series, the second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer are the same as the first feature extraction layer; Selecting training samples from the citrus tip sample set, and inputting the training samples into the initial convolutional neural network model; Performing feature extraction of different depths on the training sample through the first feature extraction layer, the second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer to generate a second depth feature set; The second deep feature set is fused through the residual layer to generate a second feature residual, wherein the second feature residual includes a citrus psyllid feature residual or a diseased branch residual; The second feature residual is classified and calculated through the global average pooling layer and the softmax layer to generate a second probability value set of the training sample belonging to the citrus psyllid tip; Calculating a loss value according to the second probability value set, the target estimation threshold, and a preset loss function of the initial convolutional neural network model to generate loss value data, wherein the loss value data is a set of loss values ​​statistically calculated during the training process; Determine whether the loss value data converges to 0 within a preset interval; If the loss value data converges to 0 within a preset interval, the initial convolutional neural network model is determined to be the target convolutional neural network model.

3. The method according to claim 2, characterized in that After determining whether the loss value data converges to 0 within a preset interval, the method further includes: If the loss value data does not converge to 0 within the preset interval, determining whether the number of training times of the training sample meets the standard; If the training times of the training samples meet the requirements, the weights of the initial convolutional neural network model are updated according to the mini-batch gradient descent method, and training samples are reselected from the training sample set and input into the initial convolutional neural network model for training.

4. The method according to claim 3, characterized in that After determining whether the training times of the training sample meet the requirements, the method further includes: If the training times of the training samples do not meet the requirements, the weights of the initial convolutional neural network model are updated according to the mini-batch gradient descent method, and the training samples are re-input into the initial convolutional neural network model for training.

5. The method according to claim 2, characterized in that: The step of obtaining a sample set of citrus tips comprises: Get a set of images of citrus branches; The captured images in the citrus branch captured image set are subjected to sample expansion preprocessing to generate a citrus branch sample set, wherein the sample expansion preprocessing includes scaling processing, cropping processing, rotation processing and photo background grayscale DC component unification processing.

6. The method according to any one of claims 1 to 5, characterized in that The step of performing feature extraction at different depths on the citrus tip image through the first feature extraction layer, the second feature extraction layer, the third feature extraction layer, and the fourth feature extraction layer to generate a first depth feature set includes: Inputting the citrus tip image into a real-time first feature extraction layer to generate a first residual of the citrus tip image; Inputting the first residual into the second feature extraction layer to generate a second residual of the citrus tip image; Inputting the second residual into the third feature extraction layer to generate a third residual of the citrus tip image; Inputting the third residual into the fourth feature extraction layer to generate a fourth residual of the citrus tip image; The first residual, the second residual, the third residual and the fourth residual are determined as a first deep feature set.

7. The method according to claim 6, characterized in that The fusing the first deep feature set through the residual layer to generate a first feature residual includes: The first residual to the fourth residual are sequentially fused through the residual layer to generate a first feature residual.

8. A device for intelligently controlling citrus psyllids, characterized in that: include: A first acquisition unit is used to shoot a target citrus tree in multiple directions through a drone to acquire a citrus tip image group, wherein the citrus tip image group includes at least one shot image of the target citrus tree, and the citrus tip image group includes positioning information of the target citrus tree; A first selection unit is used to select a citrus tip strip image from the citrus tip strip image group; A first input unit is used to input the citrus tip image into a trained target convolutional neural network model, wherein the target convolutional neural network model includes a first feature extraction layer, a second feature extraction layer, a third feature extraction layer, a fourth feature extraction layer, a residual layer, a global average pooling layer and a softmax layer, wherein the first feature extraction layer is composed of a convolutional layer-normalization layer-convolutional layer-normalization layer arranged in series, a group of convolutional layers-normalization layers connected in parallel, and finally a maximum pooling layer connected in series, and the second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer are the same as the first feature extraction layer; A first generating unit is used to extract features of different depths on the citrus tip image through the first feature extraction layer, the second feature extraction layer, the third feature extraction layer and the fourth feature extraction layer to generate a first depth feature set; A first fusion unit is used to fuse the first deep feature set through the residual layer to generate a first feature residual, where the first feature residual includes a citrus psyllid feature residual or a diseased branch residual; A first calculation unit is used to perform classification calculation on the first feature residual through the global average pooling layer and the softmax layer to generate a first probability value set that the citrus branch image belongs to the citrus psyllid branch; A first determining unit, configured to generate at least two first probability value sets corresponding to the citrus tip image group according to the above method; The second determining unit is configured to generate a citrus psyllid alarm according to the positioning information when there is a probability value greater than a preset threshold in the at least two first probability value sets.

9. An electronic device, characterized in that: include: Processor, memory, input-output unit, and bus; The processor is connected to the memory, the input and output unit, and the bus; The memory stores a program, and the processor calls the program to execute the method according to any one of claims 1 to 7. 10 . A computer-readable storage medium having a program stored thereon, wherein the program, when executed on a computer, performs the method according to claim 1 .