Plant leaf disease identification method and system based on bidirectional deep bottleneck module

By adopting the feature extraction method of bidirectional deep bottleneck module and multi-channel parallel convolution encoder in plant leaf disease identification, the problem of insufficient feature extraction capability in the existing technology is solved, and high-precision and efficient plant leaf disease identification is achieved. Better performance than other models.

CN118470552BActive Publication Date: 2024-09-03JIANGXI AGRICULTURAL UNIVERSITY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410940172.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-09-03
Estimated Expiration
2044-07-15

AI Technical Summary

Technical Problem

Existing deep learning models have insufficient feature extraction capabilities in plant leaf disease identification, are difficult to meet the needs for accurate identification, and have low identification accuracy and efficiency when migrating models from other fields.

Method used

An identification method based on the bidirectional deep bottleneck module is adopted, feature extraction is performed through the shallow feature extraction module and the deep feature extraction module, and the bidirectional deep bottleneck module and multi-channel parallel convolutional encoder are combined to fully extract the spatial and global disease information of plant leaves.

Benefits of technology

It improves the accuracy and efficiency of plant leaf disease identification, with the test accuracy reaching 99.77%, and the precision rate and recall rate both reaching over 99%, which is better than other commonly used classification models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118470552B
    Figure CN118470552B
Patent Text Reader

Abstract

The present invention discloses a plant leaf disease recognition method and system based on a bidirectional deep bottleneck module. The method inputs a plant leaf image into a shallow feature extraction module for shallow feature extraction, and inputs shallow features into a deep feature extraction module for deep feature extraction; the shallow feature extraction module is composed of a first downsampling module, a first bidirectional deep bottleneck module, a second downsampling module, a second bidirectional deep bottleneck module, and a third downsampling module connected in sequence; the deep feature extraction module is composed of a third bidirectional deep bottleneck module, a first multi-channel parallel convolutional encoder, a fourth downsampling module, a fourth bidirectional deep bottleneck module, and a second multi-channel parallel convolutional encoder connected in sequence. The present invention fully extracts partial spatial feature information of shallow and deep plant leaf diseases through the bidirectional deep bottleneck module, and fully extracts global disease information of the plant leaf image through the multi-channel parallel convolutional encoder.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of plant disease and insect pest image recognition, and in particular relates to a plant leaf disease recognition method and system based on a bidirectional deep bottleneck module. Background Art

[0002] Plant leaf disease recognition is an important research direction in computer vision and smart agriculture, and is widely used in crop disease and pest monitoring, precision agriculture, and agricultural research. In practice, it can be applied to plant leaf disease monitoring and prevention in plantations. Plant leaf disease recognition faces multiple challenges. First, plant disease features are small and dense, making it difficult to identify lesions. The similarities between different diseases increase the difficulty of recognition. Second, existing deep learning models mostly use simple stacked convolutional modules, which have insufficient feature extraction capabilities and are difficult to meet the needs of accurate plant disease recognition.

[0003] There are usually two main methods for identifying plant leaf diseases: one is to build a basic recognition model, and the other is to migrate models from other fields to plant leaf disease recognition. The first method only identifies plant leaf diseases by building a simple recognition model, but the effect is limited and it is difficult to extract complete lesion information, resulting in low efficiency and accuracy. Although the second method attempts to migrate recognition models from other fields, its application is limited due to large differences in objects, methods and systems. At the same time, since it is trained using data sets from other fields, it also faces problems of low recognition accuracy and efficiency when applied to plant leaf disease recognition. Summary of the invention

[0004] In view of the shortcomings of the prior art, the present invention provides a plant leaf disease identification method and system based on a bidirectional deep bottleneck module, which is used to solve the problem that the existing deep learning model has insufficient feature extraction capabilities and is difficult to meet the needs of accurate identification of plant diseases.

[0005] To achieve the above object, the present invention provides the following technical solution: a plant leaf disease recognition method based on a bidirectional deep bottleneck module, wherein the plant leaf image is input into a shallow feature extraction module for shallow feature extraction to obtain shallow features; the shallow features are input into a deep feature extraction module for deep feature extraction to obtain deep features; the deep features are input into a fully connected layer; and finally, the classification result is obtained by processing the fully connected layer;

[0006] The shallow feature extraction module is composed of a first downsampling module, a first bidirectional deep bottleneck module, a second downsampling module, a second bidirectional deep bottleneck module and a third downsampling module connected in sequence;

[0007] The deep feature extraction module is composed of a third bidirectional deep bottleneck module, a first multi-channel parallel convolutional encoder, a fourth downsampling module, a fourth bidirectional deep bottleneck module and a second multi-channel parallel convolutional encoder connected in sequence;

[0008] The first multi-channel parallel convolutional encoder and the second multi-channel parallel convolutional encoder have the same structure. The first multi-channel parallel convolutional encoder is composed of a convolution module and an encoder module. The features input to the first multi-channel parallel convolutional encoder are processed by the convolution module and the encoder module respectively, and the features output by the convolution module and the encoder module are fused to obtain the output of the first multi-channel parallel convolutional encoder.

[0009] The first bidirectional deep bottleneck module, the second bidirectional deep bottleneck module and the third bidirectional deep bottleneck module have the same structure. The first bidirectional deep bottleneck module is composed of a bottleneck residual module and a reverse bottleneck residual module. The features input into the first bidirectional deep bottleneck module are processed by the bottleneck residual module and the reverse bottleneck residual module respectively. The features output by the bottleneck residual module and the reverse bottleneck residual module are fused. The fused features are processed by the fifth convolution layer, the batch normalization layer and the activation function in sequence to obtain the output of the first bidirectional deep bottleneck module.

[0010] The main branch of the bottleneck residual module includes a first DW convolution layer, a second convolution layer, a second DW convolution layer, a batch normalization layer, an activation function and an SE module connected in sequence, and the features of the main branch output of the bottleneck residual module are superimposed on the input of the main branch of the bottleneck residual module through a residual connection; the main branch of the reverse bottleneck residual module includes a third convolution layer, a third DW convolution layer, a fourth convolution layer, a batch normalization layer, an activation function and an SE module connected in sequence; the features of the main branch output of the reverse bottleneck residual module are superimposed on the input of the reverse bottleneck residual module through a residual connection.

[0011] Further preferably, the convolution module includes four branches, the first branch is the residual connection of the second branch, and the fourth branch is the residual connection of the third branch; the second branch and the third branch have the same structure, and the second branch is sequentially connected by the sixth convolution layer, the seventh convolution layer, the eighth convolution layer, the batch normalization layer and the activation function, the features output by the first branch and the second branch are superimposed to obtain the first fusion feature, and the features output by the third branch and the fourth branch are superimposed to obtain the second fusion feature; the first fusion feature and the second fusion feature are multiplied to obtain the third fusion feature, and then the third fusion feature is processed by the ninth convolution layer, the batch normalization layer and the activation function in sequence to obtain the output of the convolution module.

[0012] Further preferably, the encoder module consists of a first feedforward module, a multi-head attention module and a second feedforward module connected in sequence, and the first feedforward module, the multi-head attention module and the second feedforward module are respectively provided with residual connections.

[0013] Further preferably, the first feedforward module is composed of a first linear layer, a first random dropout layer, a second linear layer, and a second random dropout layer connected in sequence, and activation functions are respectively set after the first linear layer and the second linear layer.

[0014] Further preferably, the processing process of the multi-head attention module is as follows:

[0015] The features input to the multi-head attention module are layer-normalized to obtain a two-dimensional matrix, which will be projected in parallel to the query, key and value vector spaces. The query and key attention score matrices are then calculated through the multi-head attention mechanism. The position bias matrix is ​​then added to the query and key attention score matrices. The soft maximum function is then calculated for the dimension where the last attention weight of the query and key attention score matrices is located. The attention weights are continued to be used to perform weighted summation on the vector space in the value matrix to obtain the attention-weighted value vector. All attention-weighted value vectors are concatenated on the last dimension to form an output tensor. The concatenated output tensor is processed by another learnable third linear layer.

[0016] Further preferably, the first downsampling module consists of two groups of downsampling modules, each group of downsampling modules consists of a first convolutional layer, a batch normalization layer and an activation function connected in sequence.

[0017] The present invention also provides a plant leaf disease identification system based on a bidirectional deep bottleneck module, comprising an image acquisition device and a plant leaf disease identification device, wherein the plant leaf disease identification device is provided with a plant leaf disease identification model, and the plant leaf disease identification model executes the above-mentioned plant leaf disease identification method based on the bidirectional deep bottleneck module.

[0018] The present invention also provides a non-volatile computer storage medium, which stores computer executable instructions, and the computer executable instructions execute the above-mentioned plant leaf disease identification method based on the bidirectional deep bottleneck module.

[0019] Compared with the existing technology, the present invention has the following beneficial effects: the present invention performs feature extraction through a shallow feature extraction module and a deep feature extraction module. The shallow feature extraction module performs four downsamplings to extract shallow features such as color changes, texture changes, and lesion shapes of plant leaf diseases. The deep feature extraction module performs only one downsampling to extract deep features such as plant microbial characteristics, cell structure abnormalities, and changes in biochemical components. In addition, the present invention proposes a bidirectional deep bottleneck module and a multi-channel parallel convolutional encoder. The bidirectional deep bottleneck module can fully extract partial spatial feature information of shallow and deep plant leaf diseases, and the multi-channel parallel convolutional encoder can combine the advantages of convolution and Transformer models to fully extract the global disease information of plant leaf images. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 It is a schematic diagram of the process structure of the shallow feature extraction module and the deep feature extraction module of the present invention.

[0021] Figure 2 It is a schematic diagram of the process structure of the bidirectional deep bottleneck module of the present invention.

[0022] Figure 3 It is a schematic diagram of the structure of the multi-channel parallel convolutional encoder process of the present invention. DETAILED DESCRIPTION

[0023] The present invention is further described in detail below with reference to implementation cases and accompanying drawings.

[0024] like Figure 1 As shown, a plant leaf disease recognition method based on a bidirectional deep bottleneck module is provided, wherein the plant leaf image is input into a shallow feature extraction module for shallow feature extraction to obtain shallow features; the shallow features are input into a deep feature extraction module for deep feature extraction to obtain deep features; the deep features are input into a fully connected layer; and finally, the classification result is obtained by processing the fully connected layer; the shallow feature extraction module is composed of a first downsampling module, a first bidirectional deep bottleneck module, a second downsampling module, a second bidirectional deep bottleneck module and a third downsampling module connected in sequence; the deep feature extraction module is composed of a third bidirectional deep bottleneck module, a first multi-channel parallel convolutional encoder, a fourth downsampling module, a fourth bidirectional deep bottleneck module and a second multi-channel parallel convolutional encoder connected in sequence.

[0025] like Figure 1 As shown in the figure, the first downsampling module consists of two groups of downsampling modules, each of which consists of a first convolutional layer, a batch normalization layer and an activation function connected in sequence; the plant leaf image is sequentially processed through a first convolutional layer (3×3) with a step size of 2 to achieve the downsampling operation, and the output of the downsampled first convolutional layer is processed through a batch normalization layer (BatchNormalization) and an activation function (GeLu) in sequence.

[0026] The first bidirectional deep bottleneck module, the second bidirectional deep bottleneck module and the third bidirectional deep bottleneck module have the same structure. Figure 2 As shown, it consists of a bottleneck residual module and a reverse bottleneck residual module.

[0027] The main branch of the bottleneck residual module (Bottleneck Residual Module) includes a first DW convolution layer (3×3) filled with 1, a second convolution layer (1×1), a second DW convolution layer (3×3) filled with 1, a batch normalization layer, an activation function (GeLu) and an SE module (Squeeze-and-Excitation Module) connected in sequence, and the features of the main branch output of the bottleneck residual module are superimposed on the input of the bottleneck residual module through a residual connection; the main branch of the reverse bottleneck residual module includes a third convolution layer (1×1), a third DW convolution layer (3×3) filled with 1, a fourth convolution layer (1×1), a batch normalization layer, an activation function (GeLu) and an SE module connected in sequence; the features of the main branch output of the reverse bottleneck residual module are superimposed on the input of the reverse bottleneck residual module through a residual connection.

[0028] The features input into the first bidirectional deep bottleneck module are processed by the bottleneck residual module and the reverse bottleneck residual module respectively. The features output by the bottleneck residual module and the reverse bottleneck residual module are fused. The fused features are passed through the fifth convolutional layer (1×1), and then through the batch normalization layer and the activation function (GeLu) to obtain the output of the first bidirectional deep bottleneck module.

[0029] The first multi-channel parallel convolutional encoder and the second multi-channel parallel convolutional encoder have the same structure, such as Figure 3 As shown, the first multi-channel parallel convolutional encoder is composed of a convolution module and an encoder module. The features input to the first multi-channel parallel convolutional encoder are processed by the convolution module and the encoder module respectively, and the features output by the convolution module and the encoder module are fused to obtain the output of the first multi-channel parallel convolutional encoder.

[0030] like Figure 3 As shown, the convolution module includes four branches, the first branch is the residual connection of the second branch, and the fourth branch is the residual connection of the third branch; the second branch and the third branch have the same structure, and the second branch is sequentially composed of the sixth convolution layer (7×7) filled with 3, the seventh convolution layer (1×1), the eighth convolution layer (1×1), the batch normalization layer and the activation function (GeLu) connection, the features output by the first branch and the second branch are superimposed to obtain the first fusion feature, and the features output by the third branch and the fourth branch are superimposed to obtain the second fusion feature; the first fusion feature and the second fusion feature are multiplied to obtain the third fusion feature, and then the third fusion feature is processed by the ninth convolution layer (1×1), the batch normalization layer and the activation function (GeLu) in turn to obtain the output of the convolution module.

[0031] like Figure 3As shown, the encoder module is composed of a first feedforward module, a multi-head attention module and a second feedforward module connected in sequence, and the first feedforward module, the multi-head attention module and the second feedforward module are respectively provided with residual connections. The input of the encoder module is first processed by the first feedforward module, and the input of the first feedforward module is added to the output processed by the first feedforward module, and the added output enters the multi-head attention module, and the input of the multi-head attention module is added to the output processed by the multi-head attention module and then enters the second feedforward module, and the output of the encoder module is obtained by adding the input of the second feedforward module and the output processed by the second feedforward module.

[0032] The first feedforward module and the second feedforward module have the same structure. The first feedforward module consists of a first linear layer, a first random dropout layer, a second linear layer, and a second random dropout layer connected in sequence. Activation functions are respectively set after the first linear layer and the second linear layer.

[0033] Reference Figure 3 , the multi-head attention module processing process is as follows:

[0034] The features input to the multi-head attention module are first normalized by a layer to obtain a two-dimensional matrix, which will be projected in parallel to the vector space of query, key and value, and then the multi-head attention mechanism is used to calculate the attention score matrix of the query and key. The spatial positional bias matrix is ​​then added to the attention score matrix of the query and key. The soft maximum function (softmax) is calculated for the dimension where the last attention weight of the attention score matrix of the query and key is located. The last attention weight is continued to be used to perform weighted summation on the vector space in the value matrix to obtain the attention-weighted value vector. All attention-weighted value vectors are concatenated on the last dimension to form an output tensor. The concatenated output tensor is processed by another learnable third linear layer, and then the output of the third linear layer is mapped back to the input dimension of the multi-head attention module to obtain the final output of the multi-head attention module.

[0035] Another embodiment of the present invention provides a plant leaf disease recognition system based on a bidirectional deep bottleneck module, comprising an image acquisition device and a plant leaf disease recognition device, wherein the plant leaf disease recognition device is provided with a plant leaf disease recognition model, and the plant leaf disease recognition model executes the plant leaf disease recognition method based on the bidirectional deep bottleneck module. The plant leaf disease recognition model comprises a shallow feature extraction module and a deep feature extraction module.

[0036] Another embodiment of the present invention provides a non-volatile computer storage medium storing computer executable instructions for executing the above-mentioned plant leaf disease identification method based on the bidirectional deep bottleneck module.

[0037] Table 1

[0038]

[0039] Table 1 shows a tomato leaf disease dataset extracted from a plant dataset (PlantVillage), with a total of ten tomato leaf disease images, a total of 12110 images in the training set, a total of 3023 images in the validation set, and a total of 3027 images in the test set. Under the ablation condition, each model iterates 500 rounds to ensure that each model is fully converged; compared with other eleven commonly used classification models (MobileNet V3 model, ResNet34 model, AlexNet model, VGG16 model, Swin Transformer model, Vision Transformer model, Shufflenet V2 model, RegNet model, DenseNet model, ConvNext model, GoogLeNet model), the method of the present invention achieves the best performance on this plant dataset, with a test accuracy of 99.77%, a precision of 99.70%, a recall of 99.68%, and an F1 score of 99.69%, all of which are better than other models.

[0040] Table 2

[0041]

[0042] The generalization performance of the model is compared when the data source is poor and the recognition difficulty is high. The tomato leaf dataset in the AI ​​Challenger dataset is used, which contains 20 tomato leaf disease images of different degrees, 9081 images in the training set, 2261 images in the validation set, and 1634 images in the test set. Since the number of image category labels in this dataset is extremely unbalanced, overfitting is prone to occur during the training process. Therefore, under the ablation condition, each model is iterated only 50 times to compare their performances. As shown in Table 2, the method of the present invention still achieves the best performance and has a lower number of parameters and calculations.

[0043] In plant plantations, farmers use high-definition cameras or drones to capture images of plant leaves, and then input these images into a plant leaf disease recognition system based on a bidirectional deep bottleneck module that has been trained with a large number of plant leaf disease images; the plant leaf disease recognition system based on the bidirectional deep bottleneck module can accurately identify and evaluate the extent of diseases such as late leaf spot, small leaf spot, sheath blight, and curvature of the leaf spot on plant leaves; once a serious disease is detected, the system immediately issues an early warning and provides targeted recommendations on the type and dosage of pesticides to achieve precise prevention and control of the diseased area and prevent the spread of the disease; the plant leaf disease recognition system based on the bidirectional deep bottleneck module can also record the time, location and environmental information of the disease occurrence, providing data support for subsequent research; by using the plant leaf disease recognition system based on the bidirectional deep bottleneck module, it can not only reduce the impact of pests and diseases on crops and the use of pesticides, improve agricultural production efficiency, but also achieve precise application of pesticides and promote sustainable agricultural development.

[0044] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A plant leaf disease identification method based on a bidirectional deep bottleneck module, characterized in that: The plant leaf image is input into the shallow feature extraction module for shallow feature extraction to obtain shallow features; the shallow features are input into the deep feature extraction module for deep feature extraction to obtain deep features; the deep features are input into the fully connected layer; and finally the classification result is obtained by processing the fully connected layer; The shallow feature extraction module is composed of a first downsampling module, a first bidirectional deep bottleneck module, a second downsampling module, a second bidirectional deep bottleneck module and a third downsampling module connected in sequence; The deep feature extraction module is composed of a third bidirectional deep bottleneck module, a first multi-channel parallel convolutional encoder, a fourth downsampling module, a fourth bidirectional deep bottleneck module and a second multi-channel parallel convolutional encoder connected in sequence; The first multi-channel parallel convolutional encoder and the second multi-channel parallel convolutional encoder have the same structure. The first multi-channel parallel convolutional encoder is composed of a convolution module and an encoder module. The features input to the first multi-channel parallel convolutional encoder are processed by the convolution module and the encoder module respectively, and the features output by the convolution module and the encoder module are fused to obtain the output of the first multi-channel parallel convolutional encoder. The first bidirectional deep bottleneck module, the second bidirectional deep bottleneck module and the third bidirectional deep bottleneck module have the same structure. The first bidirectional deep bottleneck module is composed of a bottleneck residual module and a reverse bottleneck residual module. The features input into the first bidirectional deep bottleneck module are processed by the bottleneck residual module and the reverse bottleneck residual module respectively. The features output by the bottleneck residual module and the reverse bottleneck residual module are fused. The fused features are processed by the fifth convolution layer, the batch normalization layer and the activation function in sequence to obtain the output of the first bidirectional deep bottleneck module. The main branch of the bottleneck residual module includes a first DW convolution layer, a second convolution layer, a second DW convolution layer, a batch normalization layer, an activation function and an SE module connected in sequence, and the features of the main branch output of the bottleneck residual module are superimposed on the input of the main branch of the bottleneck residual module through a residual connection; the main branch of the reverse bottleneck residual module includes a third convolution layer, a third DW convolution layer, a fourth convolution layer, a batch normalization layer, an activation function and an SE module connected in sequence; the features of the main branch output of the reverse bottleneck residual module are superimposed on the input of the reverse bottleneck residual module through a residual connection.

2. The plant leaf disease identification method based on a bidirectional deep bottleneck module according to claim 1, characterized in that: The convolution module includes four branches, the first branch is the residual connection of the second branch, and the fourth branch is the residual connection of the third branch; the second branch and the third branch have the same structure, and the second branch is sequentially connected by the sixth convolution layer, the seventh convolution layer, the eighth convolution layer, the batch normalization layer and the activation function; the features output by the first branch and the second branch are superimposed to obtain the first fusion feature, and the features output by the third branch and the fourth branch are superimposed to obtain the second fusion feature; the first fusion feature and the second fusion feature are multiplied to obtain the third fusion feature, and then the third fusion feature is processed by the ninth convolution layer, the batch normalization layer and the activation function in sequence to obtain the output of the convolution module.

3. The plant leaf disease identification method based on a bidirectional deep bottleneck module according to claim 2, characterized in that: The encoder module consists of a first feedforward module, a multi-head attention module and a second feedforward module connected in sequence, and the first feedforward module, the multi-head attention module and the second feedforward module are respectively provided with residual connections.

4. The plant leaf disease identification method based on a bidirectional deep bottleneck module according to claim 3 is characterized in that: The first feedforward module is composed of a first linear layer, a first random dropout layer, a second linear layer, and a second random dropout layer connected in sequence, and activation functions are respectively set after the first linear layer and the second linear layer.

5. The plant leaf disease identification method based on a bidirectional deep bottleneck module according to claim 3, characterized in that: The processing of the multi-head attention module is as follows: The features input to the multi-head attention module are layer-normalized to obtain a two-dimensional matrix, which will be projected in parallel to the query, key, and value vector spaces. The query and key attention score matrices are then calculated through the multi-head attention mechanism. The position bias matrix is ​​then added to the query and key attention score matrices. The soft maximum function is then calculated for the dimension where the last attention weight of the query and key attention score matrices is located. The attention weights are continued to be used to perform weighted summation on the vector space in the value matrix to obtain the attention-weighted value vector. All attention-weighted value vectors are concatenated on the last dimension to form an output tensor. The concatenated output tensor is processed through the third linear layer.

6. The plant leaf disease identification method based on a bidirectional deep bottleneck module according to claim 1, characterized in that: The first downsampling module consists of two groups of downsampling modules, and each group of downsampling modules consists of a first convolutional layer, a batch normalization layer and an activation function connected in sequence.

7. A plant leaf disease identification system based on a bidirectional deep bottleneck module, characterized in that: It comprises an image acquisition device and a plant leaf disease recognition device, wherein the plant leaf disease recognition device is provided with a plant leaf disease recognition model, and the plant leaf disease recognition model executes the plant leaf disease recognition method based on the bidirectional deep bottleneck module as described in any one of claims 1-6.

8. A non-volatile computer storage medium storing computer executable instructions, characterized in that: The computer-executable instruction executes the plant leaf disease identification method based on the bidirectional deep bottleneck module as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Pest and disease damage detection and disaster grade analysis method and system

    CN111444924A

  • Parallel capsule network cervical cancer cell detection method based on Inception module

    CN114266717A