A system and method for identifying diseases and insect pests of Scutellaria baicalensis
Through the combination of high-resolution image collection, generative adversarial network, and dynamic feature path network, the problem of low accuracy and computational efficiency in identifying Scutellaria baicalensis pests and diseases is solved, high-precision identification and generalization capabilities are achieved, and the efficiency of Scutellaria baicalensis planting management and yield quality are improved. .
Patent Information
- Application Number
- CN202411102774.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-08-13
AI Technical Summary
Existing automatic pest and disease identification technology has problems such as low identification accuracy, weak model generalization ability, and low computational efficiency, making it difficult to meet the needs of modern agriculture for Scutellaria baicalensis planting management.
Using high-resolution image acquisition, a data enhancement method based on generative adversarial networks and a dynamic feature path network, and through a multi-scale feature fusion mechanism and depth-separable convolution, an improved convolutional neural network model is constructed to achieve high-precision identification of Scutellaria baicalensis pests and diseases .
It significantly improves the identification accuracy and generalization ability of Scutellaria baicalensis pests and diseases, improves planting management efficiency and yield quality, and is suitable for deployment in resource-constrained environments.
Smart Images

Figure CN118628922B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image recognition, and in particular to a system and method for identifying diseases and insect pests of Scutellaria baicalensis. Background Art
[0002] In the process of agricultural production, the monitoring and management of pests and diseases are of great significance for ensuring the healthy growth of crops and increasing yields. In particular, for Chinese herbal medicines such as Scutellaria baicalensis, which have important medicinal value, the effective identification and timely prevention and control of pests and diseases are directly related to the quality and yield of medicinal materials. For example, the Chinese patent with application number CN202311838714.5 discloses a method for preventing and controlling pests and diseases and weeds in the cultivation of Chinese herbal medicines, which relates to the field of Chinese herbal medicine cultivation technology. The method for preventing and controlling pests and diseases and weeds in the cultivation of Chinese herbal medicines specifically includes the following steps: S1. Pest prevention; S2. Pest control; a. Soil covering; b. Weeding treatment; c. Edge prevention. The method for preventing and controlling diseases, insect pests and weeds in Chinese herbal medicine planting plays the role of attracting and killing pests by setting up insect trapping lamps and then cooperating with sticky insect boards, and also provides butterflies and ladybugs so that butterflies and ladybugs can kill pests in the medicinal field. At the same time, in this process, weed production is avoided by laying concrete foam bricks, and concrete and ground film are set outside the medicinal field to effectively prevent the invasion of external plants. Under the dual mode of preventing insect pests and weeds, the healthy growth of Scutellaria baicalensis can be greatly guaranteed and the occurrence of Scutellaria baicalensis diseases can be prevented. However, the traditional method of identifying diseases and insect pests mainly relies on manual experience judgment, which is not only time-consuming and labor-intensive, but also has low accuracy and efficiency, and is difficult to meet the needs of modern agricultural production.
[0003] With the development of information technology, automatic pest and disease identification technology based on image processing and machine learning has made some progress, but there are still problems such as low accuracy, weak generalization ability, and low computational efficiency. As a result, the performance of the model is significantly reduced when facing new pest and disease types or under changing environmental conditions; low computational efficiency affects the management efficiency and yield quality of Scutellaria baicalensis planting. Summary of the invention
[0004] The embodiment of the present invention provides a method for identifying diseases and pests of Scutellaria baicalensis, which realizes high-precision identification of diseases and pests of Scutellaria baicalensis by integrating high-resolution image acquisition, a data enhancement method based on a generative adversarial network, and a dynamic feature path network. The method solves the technical problems of low recognition accuracy, weak model generalization ability, and low calculation efficiency in the current automatic identification technology of diseases and pests, and improves the management efficiency and yield quality of Scutellaria baicalensis planting.
[0005] The embodiment of the present invention provides a method for identifying diseases and insect pests of Scutellaria baicalensis, comprising the following steps:
[0006] S1. Collect image data of Scutellaria baicalensis plants, and annotate the image data of Scutellaria baicalensis plants to form a training set and a test set;
[0007] S2. Expand the training set using a data enhancement method based on a generative adversarial network to obtain an enhanced training set;
[0008] S3. The images of the enhanced training set are subjected to multi-scale feature extraction and fusion processing through an improved convolutional neural network model based on a multi-scale feature fusion mechanism and deep separable convolution to obtain a multi-scale fusion feature map. The specific calculation is as follows:
[0009] ,
[0010] in, Feature map representing multi-scale fusion; Represents the feature map extracted by a small-sized convolution kernel; Represents the feature map extracted by the medium-sized convolution kernel; Represents the feature map extracted by large-size convolution kernel; Fusion weights for small-sized feature maps; Fusion weights for medium-sized feature maps; Fusion weights for large-size feature maps; , , Automatic adjustment through improved training of convolutional neural networks;
[0011] S4. Constructing an adaptive feature attention network algorithm to adjust the attention of different regions in the multi-scale fusion feature map to obtain a weighted feature map;
[0012] S5. Use the dynamic feature path network to analyze the weighted feature map, determine the feature extraction path, and obtain the dynamic feature map. The formula is as follows:
[0013] ,
[0014] in, Represents the total number of feature extraction paths; It is Feature extraction function of feature extraction paths; Is to select The probability of the path; Represents a dynamic feature map; Represents a weighted feature map; classifies pests and diseases based on the dynamic feature map to obtain a probability distribution of the pest and disease categories.
[0015] As a specific implementation, S1 specifically includes:
[0016] Image data of Scutellaria baicalensis plants were collected at different times and under different environmental conditions, and the contents of annotation for the image data of Scutellaria baicalensis plants included the type of pests and diseases, the location of disease and the severity.
[0017] As a specific implementation, S2 specifically includes:
[0018] The generative adversarial network generates realistic images of Scutellaria baicalensis diseases and pests through the generator, and distinguishes the generated images of Scutellaria baicalensis diseases and pests from the real images of Scutellaria baicalensis diseases and pests through the discriminator; through the adversarial process between the generator and the discriminator, an enhanced training set is obtained.
[0019] As a specific implementation, S3 specifically includes:
[0020] The specific formula for feature extraction based on the improved convolutional neural network model is as follows:
[0021] ,
[0022] in, Represents an image extracted by the improved convolutional neural network model No. Layer feature map; Represents a depthwise convolution operation; represents the convolution kernel; Represents the input feature map; Represents a point-by-point convolution operation; express The convolution kernel of Represents a convolution operation.
[0023] As a specific implementation, S4 specifically includes:
[0024] An adaptive feature attention network algorithm is used to enhance the expressiveness of important features in the multi-scale fused feature map, while suppressing unimportant features. The contribution of each feature point to the recognition task is calculated through the feature weight allocation network of the self-attention mechanism to obtain the feature attention weight. The weight distribution of the multi-scale fused feature map is adjusted according to the feature attention weight to obtain the weighted feature map.
[0025] As a specific implementation, S5 specifically includes:
[0026] The dynamic feature path network uses a set of pre-trained classifiers, each of which represents a feature extraction path, and forms a path selection vector based on the obtained set of feature extraction paths. , the specific calculation is as follows:
[0027] ,
[0028] in, represents the weight matrix; is the bias term; Function ensures that the path selection vector Each element value of is between 0 and 1, representing the probability of selecting each path; represents a weighted feature map;
[0029] Combined with the path selection vector The dynamic feature map is obtained by calculating the features extracted from each predefined path.
[0030] As a specific implementation, each predefined path is composed of convolutional layers, activation functions and pooling layers with different configurations.
[0031] As a specific implementation, S5 further includes:
[0032] The dynamic feature path network uses a deep fully connected network to classify pests and diseases on the dynamic feature graph to obtain the probability distribution of pest and disease categories.
[0033] The present application also discloses a scutellaria baicalensis pest identification system. The scutellaria baicalensis pest identification method is applied, and the scutellaria baicalensis pest identification system includes:
[0034] An image acquisition module, used to collect image data of Scutellaria baicalensis plants at different times and under different environmental conditions;
[0035] A labeling module is used to label the images of the scutellaria baicalensis plant collected by the image acquisition module to form a training set and a test set;
[0036] A data enhancement module is used to expand the training set formed by the annotation module by using a data enhancement method based on a generative adversarial network to obtain an enhanced training set;
[0037] The multi-scale feature extraction and fusion module is used to extract and process multi-scale features of the images of the training set enhanced by the data enhancement module based on the improved convolutional neural network model to obtain a multi-scale fused feature map;
[0038] The feature attention module is used to construct an adaptive feature attention network algorithm to adjust the attention of different regions in the multi-scale fused feature map obtained by the multi-scale feature extraction and fusion module to obtain a weighted feature map;
[0039] The feature path module is used to analyze the weighted feature map obtained by the feature attention module using the dynamic feature path network to determine the feature extraction path, obtain the dynamic feature map, and classify pests and diseases.
[0040] Beneficial effects:
[0041] The multiple technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages:
[0042] By generating diverse training samples through generative adversarial networks, the distribution of real Scutellaria baicalensis disease and insect pest images was simulated, greatly enhancing the generalization ability of the deep learning model, ensuring that the model can adapt to the data diversity in practical applications and effectively deal with unknown or rare types of diseases and insect pests.
[0043] The multi-scale feature fusion mechanism further enhances the ability to identify complex pest and disease characteristics, ensuring comprehensive coverage from details to the overall picture, and improving the overall recognition effect.
[0044] The dynamic feature path network is used to dynamically adjust the feature extraction process according to the specific characteristics of the image, thereby improving the recognition accuracy.
[0045] The introduction of deep separable convolution further optimizes the computational efficiency of the improved convolutional neural network model, significantly reducing the number of parameters and computational burden of the model, making the present invention more suitable for deployment in resource-constrained environments, such as mobile devices or field monitoring equipment, which is of great significance for the cultivation and management of Scutellaria baicalensis, and helps to take timely and effective prevention and control measures to reduce economic losses. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 A module connection diagram of a system for identifying diseases and insect pests of Scutellaria baicalensis according to an embodiment of the present invention;
[0047] Figure 2 The present invention is a flowchart of a method for identifying diseases and insect pests of Scutellaria baicalensis according to an embodiment of the present invention. DETAILED DESCRIPTION
[0048] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0049] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0050] The specific scheme of the Scutellaria baicalensis pest and disease identification system and method provided by the present invention is described in detail below with reference to the accompanying drawings.
[0051] Reference Figure 1The embodiment of the present invention discloses a system for identifying diseases and insect pests of Scutellaria baicalensis, which includes an image acquisition module, a labeling module, a data enhancement module, a multi-scale feature extraction and fusion module, a feature attention module and a feature path module.
[0052] The image acquisition module is used to collect image data of the scutellaria baicalensis plant at different times and under different environmental conditions using a high-resolution camera; the image acquisition module is connected to the labeling module by means of data transmission.
[0053] The labeling module is used to accurately label the image data of the Scutellaria baicalensis plant collected by the image acquisition module through an expert system with professional knowledge of plant protection, including the type of pests and diseases, the location of the disease and the severity, and to form a training set and a test set; the labeling module is connected to the data enhancement module through data transmission.
[0054] The data enhancement module is used to expand the training set by adopting the data enhancement method based on the generative adversarial network, and enhance the generalization ability of the deep learning model by generating diverse training samples; the data enhancement module is connected to the multi-scale feature extraction and fusion module through data transmission.
[0055] The multi-scale feature extraction and fusion module is used to capture different levels of image features by applying convolution kernels of different sizes in parallel based on the improved convolutional neural network model, and fuse the features of different levels to form a multi-scale fused feature map; the multi-scale feature extraction and fusion module is connected to the feature attention module through data transmission.
[0056] The feature attention module is used to construct an adaptive feature attention network algorithm, and obtain a weighted feature map by adaptively adjusting the attention of different areas in the multi-scale fusion feature map; further improve the recognition accuracy and generalization of Scutellaria baicalensis pests and diseases identification; the feature attention module is connected to the feature path module through data transmission.
[0057] The feature path module is used to analyze the weighted feature map using a dynamic feature path network to determine the most suitable feature extraction path for the current input image and perform pest and disease classification.
[0058] Another embodiment of the present invention also discloses a method for identifying diseases and insect pests of Scutellaria baicalensis. Based on the above-mentioned Scutellaria baicalensis disease and insect pest identification system, referring to Figure 2 The method for identifying diseases and insect pests of Scutellaria baicalensis includes the following steps:
[0059] Step S1: Collect image data of Scutellaria baicalensis plants and accurately annotate the images to form a training set and a test set.
[0060] The image acquisition module uses a high-resolution camera to collect image data of Scutellaria baicalensis plants at different times and under different environmental conditions to ensure that the image data covers all stages of Scutellaria baicalensis growth and all kinds of pests and diseases that may be encountered. The annotation module uses an expert system with plant protection expertise to accurately annotate images, including the type of pests and diseases, the site of disease, and the severity, to form a comprehensive and diverse training set and test set, providing a basis for the subsequent training of deep learning models.
[0061] Step S2: Expand the training set using a data enhancement method based on a generative adversarial network to obtain an enhanced training set.
[0062] In order to further enhance the diversity of the training set and improve the adaptability of the deep learning model to the diversity of Scutellaria baicalensis disease and insect pest images, the data enhancement module adopts a data enhancement method based on a generative adversarial network to enhance the generalization ability of the deep learning model by generating diverse training samples, simulating the distribution of real Scutellaria baicalensis disease and insect pest images, and automatically generating images that are difficult to distinguish from real data, thereby effectively expanding the training set. Specifically, the generative adversarial network attempts to create realistic Scutellaria baicalensis disease and insect pest images through the generator, and distinguishes the generated images from the real images through the discriminator. Through the adversarial process between the generator and the discriminator, the generator is motivated to generate high-quality and diverse data, and an enhanced training set is obtained, so that the deep learning model can better adapt to the data diversity in practical applications. The core objective function of the generative adversarial network is as follows:
[0063] ,
[0064] in, is a generator, is the discriminator, is the value function of the generative adversarial network, used to quantify the discriminator and generator The adversarial process between them trains the discriminator To maximize the probability of correct judgment and train the generator To minimize the discriminator The accuracy of judgment, Represents the real data distribution The expected value of Represents the distribution of real image data and simulates the real distribution of Scutellaria baicalensis pest and disease images. is an image sample from the real image data distribution; Represents the input noise distribution The expected value of Delegate Generator The random noise distribution of the input, Is a generator Input noise; Representation Generator According to the input noise The generated image, Represents the image sample that the discriminator will input The probability of being judged as a real image.
[0065] Step S3: Perform multi-scale feature extraction and processing on the enhanced training set images through the improved convolutional neural network model to obtain a multi-scale fusion feature map.
[0066] The training set data enhanced by the generative adversarial network is used to train the improved convolutional neural network model. The improved convolutional neural network model is based on the deep learning model, especially the powerful image processing ability of the convolutional neural network, to build a model that can automatically extract image features and achieve high-accuracy pest and disease recognition. The construction of the improved convolutional neural network model takes into account the complexity of Scutellaria baicalensis pest and disease image recognition, and specially introduces a multi-scale feature fusion mechanism. By applying convolution kernels of different sizes in parallel to capture different levels of image features, and fuse different levels of features, the recognition accuracy of the improved convolutional neural network model is improved. Specifically, for the images in the training set enhanced by the generative adversarial network, the improved convolutional neural network model uses them as input, performs multi-scale feature extraction and fusion processing, and obtains a multi-scale fusion feature map.
[0067] Furthermore, the improved convolutional neural network model is constructed based on the structural adjustment and algorithm optimization of the traditional convolutional neural network, which enhances the learning ability of fine-grained features and improves the computational efficiency of the improved convolutional neural network model, making it more suitable for the recognition task of Scutellaria pest and disease images. In order to enhance the recognition ability of complex pest and disease features, a multi-scale feature fusion mechanism is introduced in the improved convolutional neural network model. By applying convolution kernels of different sizes in parallel in the same network layer, the detailed features and global features of the image are captured at the same time, so as to understand the image content more comprehensively. Specifically, a small-size convolution kernel is used to extract the detailed features of the image, a medium-size convolution kernel is used to capture the local features, and a large-size convolution kernel is used to understand the global structure of the image.
[0068] Furthermore, the improved convolutional neural network model also introduces the form of depthwise separable convolution, which is used to further optimize the computational efficiency of the improved convolutional neural network model. By decomposing the traditional convolution operation into depthwise convolution (channel-by-channel convolution) and point-by-point convolution (1x1 convolution, integrating information from each channel), it not only maintains the ability of the convolutional layer to extract features, but also reduces the number of parameters and computational burden of the improved convolutional neural network model.
[0069] In the multi-scale feature extraction and fusion module, the calculation of the feature map by the improved convolutional neural network model can be expressed as:
[0070] ,
[0071] in, Represents an image extracted by the improved convolutional neural network model No. Layer feature map, Represents a deep convolution operation, using a convolution kernel For the input feature map Convolution is performed on each channel of the network to effectively extract the deep features within the channel. Represents the point-by-point convolution operation, through The convolution kernel Integrate the feature maps after deep convolution, fuse the information of different channels, and enhance feature expression; Represents a convolution operation.
[0072] The multi-scale feature extraction and fusion module extracts feature maps of different scales based on the improved convolutional neural network model, and fuses the extracted feature maps of different scales to obtain multi-scale fused feature maps. The specific calculation is as follows:
[0073] ,
[0074] in, Represents the feature map of multi-scale fusion, Represents the feature map extracted by the small-sized convolution kernel, Represents the feature map extracted by the medium-sized convolution kernel, Represents the feature map extracted by large-size convolution kernels, covering different perspectives from details to the whole picture; Fusion weights for small-sized feature maps, is the fusion weight of the medium-sized feature map, Fusion weights for large-size feature maps, , , Through the automatic adjustment of the training of the improved convolutional neural network, it is ensured that the feature maps of different scales can be reasonably integrated to optimize the feature understanding ability of the improved convolutional neural network model.
[0075] Step S4. Construct an adaptive feature attention network algorithm, adjust the attention of different regions in the multi-scale fusion feature map, and obtain a weighted feature map.
[0076] Based on the multi-scale fusion feature graph extracted by the improved convolutional neural network model, the feature attention module constructs an adaptive feature attention network algorithm, which further improves the accuracy and generalization of Scutellaria baicalensis pest and disease identification by adaptively adjusting the attention of different areas in the multi-scale fusion feature graph. The adaptive feature attention network algorithm adopts the attention mechanism in deep learning to achieve accurate identification of Scutellaria baicalensis pest and disease.
[0077] The feature attention module uses an adaptive feature attention network algorithm to enhance the expressiveness of important features in the multi-scale fused feature map, while suppressing unimportant features; through the feature weight distribution network of the self-attention mechanism, the contribution of each feature point to the recognition task, namely the feature attention weight, is calculated, and the weight distribution of the multi-scale fused feature map is adjusted accordingly. The feature attention weight formula is:
[0078] ,
[0079] in, Represents the feature attention weight, which is a feature map fused with multi-scale A matrix of the same size is used to represent the importance of each feature point; represent The activation function compresses the output value of the convolution operation to between 0 and 1, so that each feature attention weight is within this range; represents the convolution operation, is the convolution parameter, including the convolution kernel weight and bias. The convolution kernel weight is the weight matrix of the convolution kernel, which is used to perform convolution operations on the multi-scale fused feature map to extract features. For example, if you use The convolution kernel weight is Each convolution kernel has a corresponding bias value, which is used to adjust the output of the convolution operation. The bias value is added to the result after the convolution operation to provide better feature expression capabilities. The purpose of the convolution operation is to Process and extract important feature information. The specific steps are as follows:
[0080] At the beginning of training, the weights and biases of the convolution kernel are initialized by random methods, such as Gaussian initialization or Initialization. The convolution operation uses the convolution kernel to slide on the multi-scale fused feature map, performs a weighted summation on each position, and adds a bias. The formula is as follows:
[0081] ,
[0082] in, is the weight of the convolution kernel; is bias; Represents the spatial position of the multi-scale fused feature map and convolution kernel. The output of the convolution operation is passed through The activation function performs a nonlinear transformation so that the result is between 0 and 1. Generate feature attention weights .
[0083] The feature attention weights calculated To adjust the multi-scale fusion feature map The feature representation in , obtains the weighted feature map, that is, by focusing on the feature weights Feature maps with multi-scale fusion Perform element-by-element multiplication to increase the focus on key features. Weighted feature map The calculation method is:
[0084] ,
[0085] in, It represents element-by-element multiplication, so that each feature point is adjusted by its corresponding feature attention weight. This ensures that in the subsequent recognition process, the features that contribute most to the final task can be processed and focused on first, thus improving the accuracy of recognition.
[0086] Step S5: Analyze the weighted feature graph using a dynamic feature path network, determine the feature extraction path, and classify the pests and diseases.
[0087] After obtaining the weighted feature map, the feature path module uses a dynamic feature path network, takes the weighted feature map as the input of the dynamic feature path network, and analyzes the weighted feature map through the dynamic feature path network to determine which feature extraction paths are most suitable for the current input image. The dynamic feature path network can achieve a deep understanding of image features and dynamically adjust the feature extraction process according to the specific characteristics of the image to achieve high-precision identification of diseases and pests of Scutellaria baicalensis.
[0088] Specifically, the feature path module uses a set of pre-trained classifiers, each of which represents a feature extraction path, and constructs a path selection vector based on a set of feature extraction paths. , the specific calculation is as follows:
[0089] ,
[0090] in, represents the weight matrix, which is responsible for evaluating the features of the input image and determining the most appropriate feature extraction path. is a bias term used to adjust the baseline of the path selection vector, Function ensures Each element value of is between 0 and 1, representing the probability of selecting each path.
[0091] Dynamic feature path network selects vectors according to the path Dynamically select a suitable path from multiple predefined paths to extract features. Each predefined path is composed of convolutional layers, activation functions, and pooling layers with different configurations to capture image features of different levels and types. The test set is applied to the above-mentioned generative adversarial network trained with the training set, the improved convolutional neural network, the adaptive feature attention network algorithm, and the dynamic feature path network to obtain the output of dynamic feature extraction, namely the dynamic feature map , dynamic feature map is selected by combining the path vector And the features extracted from each predefined path are calculated:
[0092] ,
[0093] in, Represents the total number of feature extraction paths, It is The feature extraction function of the feature extraction path defines how to process the weighted feature map through this path To extract features, Is to select The probability of the path determines the The weights of the features extracted by the feature extraction paths in the final dynamic feature map.
[0094] The feature path module uses dynamic feature maps To carry out the final classification of pests and diseases, the dynamic feature path network uses a deep fully connected network to classify the dynamic feature graph. Classify pests and diseases to obtain the probability distribution of pest and disease categories. The specific formula is as follows:
[0095] ,
[0096] in, Indicates the predicted probability of each pest category, which can provide a quantitative basis for subsequent decision-making; is the weight of the fully connected layer, It is the bias of the fully connected layer and is responsible for mapping the dynamic feature map to the predicted probability of the pest and disease category.
[0097] Weights for the fully connected layers and bias Initialization is performed to ensure the effectiveness of training and the convergence of the deep fully connected network. Common initialization methods include:
[0098] Initialization: Applicable to and The activation function makes the variance of input and output consistent by controlling the variance of weight initialization.
[0099] ,
[0100] ,
[0101] in, Represents uniform distribution, ranging from arrive between, and are the number of input and output neurons respectively.
[0102] Through the back propagation algorithm, the weights of the fully connected layer and bias Optimize. Common optimization algorithms include:
[0103] Stochastic Gradient Descent (SGD): Updates parameters by calculating the gradient of each batch, which is suitable for training large-scale datasets.
[0104] Adam optimizer: combines momentum and RMSProp algorithms with adaptive learning rate, suitable for training deep fully connected networks.
[0105] The optimization goal is to minimize the loss function, such as cross entropy loss. Ensure that the weights of the fully connected layers and bias Get reasonable settings to improve the prediction accuracy of pest and disease categories.
[0106] As described above, the technical solution in the embodiment of the present invention can simulate the distribution of real Scutellaria baicalensis pest and disease images by generating diverse training samples through a generative adversarial network, greatly enhancing the generalization ability of the deep learning model, ensuring that the model can adapt to the data diversity in practical applications, and effectively deal with unknown or rare pest and disease types. The ability to identify complex pest and disease features is further enhanced by utilizing a multi-scale feature fusion mechanism, ensuring comprehensive coverage from details to the global, and improving the overall recognition effect. The recognition accuracy is improved by dynamically adjusting the feature extraction process according to the specific characteristics of the image using a dynamic feature path network; and the computational efficiency of the improved convolutional neural network model is further optimized by introducing deep separable convolutions, significantly reducing the number of parameters and computational burden of the improved convolutional neural network model, making the present invention more suitable for deployment in resource-constrained environments, such as mobile devices or field monitoring equipment.
[0107] From the above, the technical solution of the present invention can effectively solve the problem that the prior art has low recognition accuracy and weak model generalization ability, which leads to obvious performance degradation of the model when facing unseen pests and diseases or under changing environmental conditions. And the problem of low computational efficiency affecting the management efficiency and yield quality of Scutellaria baicalensis planting. That is, the technical solution of the embodiment of the present invention achieves the technical effect of high-precision identification of Scutellaria baicalensis pests and diseases by integrating high-resolution image acquisition, a data enhancement method based on a generative adversarial network, and a dynamic feature path network.
[0108] The order of the embodiments of the invention is for description only and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0109] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0110] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that the technical solutions described in the above embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.
Claims
1. A method for identifying diseases and insect pests of Scutellaria baicalensis, characterized in that: The following steps are involved: S1. Collect image data of Scutellaria baicalensis plants, and annotate the image data of Scutellaria baicalensis plants to form a training set and a test set; S2. Expand the training set using a data enhancement method based on a generative adversarial network to obtain an enhanced training set; S3. The images of the enhanced training set are subjected to multi-scale feature extraction and fusion processing through an improved convolutional neural network model based on a multi-scale feature fusion mechanism and deep separable convolution to obtain a multi-scale fusion feature map. The specific calculation is as follows: , in, Feature map representing multi-scale fusion; Represents the feature map extracted by a small-sized convolution kernel; Represents the feature map extracted by the medium-sized convolution kernel; Represents the feature map extracted by large-size convolution kernel; Fusion weights for small-sized feature maps; Fusion weights for medium-sized feature maps; Fusion weights for large-size feature maps; , , Automatic adjustment through improved training of convolutional neural networks; S4. Constructing an adaptive feature attention network algorithm to adjust the attention of different regions in the multi-scale fusion feature map to obtain a weighted feature map; S5. Use the dynamic feature path network to analyze the weighted feature map, determine the feature extraction path, and obtain the dynamic feature map. The formula is as follows: , in, Represents the total number of feature extraction paths; It is Feature extraction function of feature extraction paths; Is to select The probability of the path; Represents a dynamic feature map; represents a weighted feature map; and classifying pests and diseases according to the dynamic feature map to obtain a probability distribution of the pest and disease categories.
2. The method for identifying diseases and insect pests of Scutellaria baicalensis as claimed in claim 1, characterized in that: S1 specifically includes: Image data of Scutellaria baicalensis plants were collected at different times and under different environmental conditions, and the contents of annotation for the image data of Scutellaria baicalensis plants included the type of pests and diseases, the location of disease and the severity.
3. The method for identifying diseases and insect pests of Scutellaria baicalensis as claimed in claim 1, characterized in that: S2 specifically includes: The generative adversarial network generates realistic images of Scutellaria baicalensis diseases and pests through the generator, and distinguishes the generated images of Scutellaria baicalensis diseases and pests from the real images of Scutellaria baicalensis diseases and pests through the discriminator; through the adversarial process between the generator and the discriminator, an enhanced training set is obtained.
4. The method for identifying diseases and insect pests of Scutellaria baicalensis as claimed in claim 1, characterized in that: S3 specifically includes: The specific formula for feature extraction based on the improved convolutional neural network model is as follows: , in, Represents an image extracted by the improved convolutional neural network model No. Layer feature map; Represents a depthwise convolution operation; represents the convolution kernel; Represents the input feature map; Represents a point-by-point convolution operation; express The convolution kernel of Represents a convolution operation.
5. The method for identifying diseases and insect pests of Scutellaria baicalensis as claimed in claim 1, characterized in that: S4 specifically includes: An adaptive feature attention network algorithm is used to enhance the expressiveness of important features in the multi-scale fused feature map, while suppressing unimportant features. The contribution of each feature point to the recognition task is calculated through the feature weight allocation network of the self-attention mechanism to obtain the feature attention weight. The weight distribution of the multi-scale fused feature map is adjusted according to the feature attention weight to obtain the weighted feature map.
6. The method for identifying diseases and insect pests of Scutellaria baicalensis as claimed in claim 1, characterized in that: S5 specifically includes: The dynamic feature path network uses a set of pre-trained classifiers, each of which represents a feature extraction path, and forms a path selection vector based on the obtained set of feature extraction paths. , the specific calculation is as follows: , in, represents the weight matrix; is the bias term; Function ensures that the path selection vector Each element value of is between 0 and 1, representing the probability of selecting each path; represents a weighted feature map; Combined with the path selection vector The dynamic feature map is obtained by calculating the features extracted from each predefined path.
7. The method for identifying diseases and insect pests of Scutellaria baicalensis as claimed in claim 6, characterized in that: Each of the predefined paths is composed of convolutional layers, activation functions and pooling layers with different configurations.
8. The method for identifying diseases and insect pests of Scutellaria baicalensis as claimed in claim 1, characterized in that: The S5 also includes: The dynamic feature path network uses a deep fully connected network to classify pests and diseases on the dynamic feature graph to obtain the probability distribution of pest and disease categories.
9. A system for identifying diseases and insect pests of Scutellaria baicalensis, using the method for identifying diseases and insect pests of Scutellaria baicalensis as claimed in claim 1, characterized in that: The scutellaria baicalensis pest identification system comprises: An image acquisition module, used to collect image data of Scutellaria baicalensis plants at different times and under different environmental conditions; A labeling module, used to label the images of the scutellaria baicalensis plant collected by the image acquisition module to form a training set and a test set; A data enhancement module, used to expand the training set formed by the annotation module by adopting a data enhancement method based on a generative adversarial network to obtain an enhanced training set; A multi-scale feature extraction and fusion module, which is used to extract and process multi-scale features of the images of the training set enhanced by the data enhancement module based on an improved convolutional neural network model, so as to obtain a multi-scale fused feature map; A feature attention module is used to construct an adaptive feature attention network algorithm, adjust the attention of different regions in the multi-scale fused feature map obtained by the multi-scale feature extraction and fusion module, and obtain a weighted feature map; The feature path module is used to analyze the weighted feature map obtained by the feature attention module using a dynamic feature path network to determine the feature extraction path, obtain a dynamic feature map, and classify pests and diseases.
Citation Information
Patent Citations
Chinese herbal medicine planting pest and disease damage and weed damage prevention and control method
CN117652354A
A method for identifying fruit tree diseases and pests under complex background based on cavity convolution
CN109344883A
Lycium barbarum insect pest recognition method based on image-text multi-modal feature fusion
CN116563707A
Intelligent identification method, medium and system for tobacco plant diseases and insect pests
CN117372881A
Cell tissue pathology image intelligent analysis method and system based on graph neural network
CN117789207A
