Peanut disease detection and yield prediction method based on canopy parameter processing

By collecting peanut canopy spectra and leaf images, and using the CNN-LSTM network for disease identification and yield prediction, it solves the problem of low efficiency and accuracy of peanut disease detection in the existing technology, achieves fast and accurate disease detection and yield prediction, and improves improve the efficiency and accuracy of agricultural production.

CN114965501BActive Publication Date: 2024-10-29QINGDAO AGRI UNIV
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202210561268.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-23
Publication Date
2024-10-29
Estimated Expiration
2042-05-23

AI Technical Summary

Technical Problem

Existing technologies have problems in peanut disease detection such as low recognition efficiency and accuracy, complex processes, and long time consumption. In particular, due to the large gap between hyperspectral feature data and disease feature dimensions, it is difficult to achieve accurate disease detection and yield prediction.

Method used

By collecting canopy spectral images and leaf images of peanuts at different growth stages, image processing and data analysis techniques are used to obtain the normalized vegetation index and leaf area index, and the CNN-LSTM network is used to identify disease types and locations, and establish a peanut canopy Layer parameter correlation analysis model outputs peanut yield prediction values.

Benefits of technology

It achieves fast and accurate peanut disease detection and yield prediction, improves detection speed and accuracy, and optimizes the detection speed and memory usage of the model, which is of great significance to the development of precision agriculture.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114965501B_ABST
    Figure CN114965501B_ABST
Patent Text Reader

Abstract

The present invention discloses a peanut disease detection and yield prediction method based on canopy parameter processing, collects hyperspectral images and leaf images of peanut seedlings, flowering and fruiting periods, extracts characteristic images of peanuts in different growth periods, calculates normalized vegetation index and leaf area index, and performs correlation analysis on normalized vegetation index and leaf area index; establishes a peanut leaf disease rapid detection model to identify the disease type and location of peanut leaves in the picture; finally, inputs normalized vegetation index, leaf area index and its correlation coefficient with disease category and location data into CNN-LSTM network, establishes peanut canopy parameter correlation analysis and yield prediction model, and outputs peanut yield prediction value. This scheme uses image processing technology and data analysis methods to monitor and predict the growth process of peanuts from aspects such as peanut yield and disease conditions, so as to achieve the purpose of obtaining crop growth conditions through data analysis and guiding agricultural production.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of peanut canopy parameter processing and application research, and in particular relates to a peanut disease detection and yield prediction method based on canopy parameter processing. Background Art

[0002] Peanut is one of China's important high-quality oil crops, and improving the yield and quality of peanuts is of great significance. Crop diseases are one of the direct threats to food security, and the global agricultural losses caused by pests and diseases are as high as 250 billion US dollars each year. Affected by growth characteristics and external environmental factors, the roots and leaves of peanuts are easily infected by viruses, resulting in slow growth, serious diseases and other problems, resulting in reduced yield and quality. Therefore, monitoring the growth status of peanut crops and providing guidance for agricultural production is the key to improving peanut yield and quality.

[0003] Traditional crop disease diagnosis methods are usually based on expert diagnosis and chemical tests. Due to objective conditions such as experience, technology and time cost, there are problems such as complex processes, long time consumption, low recognition efficiency and accuracy. Therefore, how to quickly and accurately detect the type and location of peanut diseases and predict their yield has become a difficult problem. In the prior art, methods for disease detection based on image processing and other technologies by acquiring plant phenotypes have gradually emerged. However, current plant phenotype acquisition methods are mostly limited to hyperspectral feature data extraction or single leaf disease detection and identification.

[0004] For example, in terms of hyperspectral feature data extraction, since the same disease may manifest different symptoms in different periods and under different environments, and the disease characteristics on plant leaves are small, irregular, and unevenly distributed, there is a lack of relatively mature methods to guide agricultural production based on feature data extracted from hyperspectral images; in terms of disease identification, since the differences in the characteristics of different diseases of peanuts are small, and the existing target detection models often pay equal attention to the entire image, there are certain defects in the detection speed and accuracy of peanut diseases; in terms of data fusion and practical application, due to the large gap in the dimensions of hyperspectral feature data and disease feature data, it is difficult to obtain accurate results in specific applications. Therefore, it is urgent to propose a method that can realize disease detection and yield prediction based on peanut canopy parameters. Summary of the invention

[0005] The present invention collects images of peanuts at different growth stages, uses image processing and data analysis techniques to analyze data such as the normalized vegetation index and leaf area index at different growth stages, uses target recognition technology to detect the disease type and location of peanut leaves, conducts peanut disease detection and yield prediction, and provides reference and guidance for agricultural production.

[0006] The present invention is implemented by adopting the following technical scheme: a peanut disease detection and yield prediction method based on canopy parameter processing, characterized in that it comprises the following steps:

[0007] Step A, respectively collecting canopy spectral image information of peanuts in the seedling stage, flowering stage and fruiting stage, as well as leaf image information of peanuts in the seedling stage, flowering stage and fruiting stage, and recording the time information of the collection;

[0008] Step B: Based on the canopy spectral image information obtained in step A, the normalized vegetation index and leaf area index of peanut are obtained through phenotypic feature processing, and the normalized vegetation index and leaf area index are correlated to obtain the correlation coefficient between the normalized vegetation index and leaf area index of peanut at different growth periods and the growth of peanut;

[0009] Step C: establishing a peanut leaf disease recognition model, based on the leaf image information obtained in step A, identifying the disease type and location of the peanut leaves in the image;

[0010] Step D: Input the data of normalized vegetation index, leaf area index and its correlation coefficient with disease type and location into the CNN-LSTM network, analyze and process them through CNN-LSTM, and finally output the predicted value of peanut yield.

[0011] Furthermore, the step D specifically includes the following steps:

[0012] Step D1, data feature extraction and dimensionality reduction;

[0013] The extracted normalized vegetation index, leaf area index and their correlation coefficients, as well as the leaf disease category and location data, are input into the CNN network in the order of the collected seedling stage, flowering stage and fruiting stage. The CNN network includes a convolution layer and a pooling layer. The convolution and pooling operations of the network are used to extract data features and reduce their dimensionality.

[0014] Step D2, establishing a peanut canopy parameter correlation analysis model of normalized vegetation index, leaf area index and their correlation coefficients with disease category and location data;

[0015]

[0016] i t =sigmoid(w ix x t +w is s t-1 +b i )

[0017]

[0018] o t =sigmoid(wox x t +w os s t-1 +b c )

[0019]

[0020] Among them, f t is the output signal of the forget gate, which determines the forgetting ratio of memory unit c; i t It is the output signal of the output gate, which determines how much of the current input information is input into the memory unit c; is the preliminary information to be input into the memory unit c, and i t Point product gets the information in memory unit c; o t It is the output signal of the output gate, which determines the proportion of the output of the memory unit c to the current state s; is the preliminary information that will be output to the hidden layer state s, o t The dot product is used to get the information of the output; s is the state information of the hidden layer; x t is the input value at time t; w is the weight matrix; b t is the bias parameter;

[0021] Step D3: Fit the trained data through the CNN-LSTM network and output the peanut yield prediction value p t ;

[0022]

[0023]

[0024] This will help predict peanut production.

[0025] Furthermore, the step D2 is specifically implemented in the following manner:

[0026] (1) The LSTM network includes layer units, the number of hidden neurons in each layer is set according to the input, and a point-by-point feature fusion operation is added between the peanut canopy parameter correlation analysis model to add multiple spectral features to multiple image features to obtain hyperspectral features;

[0027]

[0028] Among them, x and y represent the data of the hyperspectral feature matrix and the disease feature matrix respectively, and F represents the linear mapping function of feature fusion, which is expressed as:

[0029] F = x i y i ,x i ,yi ∈R m

[0030] (2) The feature-fused data is input into the LSTM network in the order of seedling stage, flowering stage, and fruiting stage. The forget gate, input gate, and output gate in the network adjust their own parameters through continuous iterative training of data, so that the LSTM network learns the time fitting relationship between data from the data information extracted by the CNN network and outputs the correlation coefficient between the spectral data and disease information at different periods. Then the correlation analysis model of peanut canopy parameters was obtained.

[0031] Furthermore, step C is specifically implemented in the following manner:

[0032] (1) preparing a peanut disease image dataset, calibrating the images, dividing them into a training set and a test set, and enhancing data samples, wherein the disease types include brown spot disease and peanut rust disease;

[0033] (2) Construct an improved YOLOv5 network model; based on the original YOLOv5 network model structure, replace the C3 module and FPN+PANet module of the YOLOv5 network model with the CBAMC3 module and Concat_BiFPN module respectively;

[0034] (3) The training set and test set are respectively input into the improved YOLOv5 network model for training and testing, and the model parameters are continuously adjusted to output the disease target label and the location information of the target annotation box.

[0035] Furthermore, step B is specifically implemented in the following manner:

[0036] Step B1, calculation of normalized vegetation index:

[0037] (1) Obtain the feature matching points of the canopy spectral image through the Harris feature detector and stitch the drone images to obtain the global canopy spectral image of the experimental field;

[0038] (2) The canopy spectral image is preprocessed using the wavelet analysis algorithm and the spectral normalization non-uniformity correction method to remove the influence of environmental noise; the two-dimensional convolution model CNN is used to perform convolution and pooling operations, and the canopy spectral image is processed into a color image through one-dimensional convolution, and the color features are extracted from the red, green, and blue spectral bands of the color image. The feature map is output through two-dimensional convolution processing, and the texture and morphological features of the feature image are extracted from the feature map;

[0039] (3) The normalized vegetation index NDVI is calculated based on the texture and morphological characteristics of the feature image. The calculation formula of NDVI is:

[0040] NDVI=(float(b2)-float(b1)) / (float(b2)+float(b1))

[0041] Among them, b1: near infrared channel, b2: red channel;

[0042] Step B2, leaf area index calculation:

[0043] Calculate the leaf area index LAI of land cover types of peanuts at different stages, and save the calculated LAI as an ENVI standard file. The calculation formula of LAI is:

[0044]

[0045] Step B3: Conduct correlation analysis on the normalized difference vegetation index NDVI and the leaf area index LAI, and analyze the correlation between NDVI, LAI and other parameters and peanut growth in different growth periods of peanuts, using the correlation coefficient r xy To measure the standard, the specific calculation process is as follows:

[0046]

[0047]

[0048]

[0049]

[0050] Among them, s xy represents the sample covariance, s x 、s y Represents the sample standard deviation of x and y, r xy represents the correlation coefficient, and n is the sample size.

[0051] Furthermore, in step A, spectral image information of peanut canopy is collected based on a hyperspectral sensor mounted on an unmanned aerial vehicle, and image information of peanut leaves is collected using a camera.

[0052] Compared with the prior art, the advantages and positive effects of the present invention are:

[0053] This scheme optimizes and improves the CNN-LSTM network by fusing UAV hyperspectral images with ground image information data, and establishes a peanut canopy parameter correlation analysis model based on hyperspectral image data and disease image data to judge and predict peanut yield and disease conditions. It uses image enhancement and other operations to make its own peanut disease dataset, and optimizes and improves the original YOLOv5 model by introducing the CBAM mechanism and BiFPN structure to improve the model's detection speed and accuracy. It monitors and predicts the peanut growth process from aspects such as peanut yield and disease conditions, which is of great significance to the development of precision agriculture. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 This is a schematic diagram of the overall process of disease detection and yield prediction according to an embodiment of the present invention;

[0055] Figure 2 This is a schematic diagram of the CNN-LSTM network model structure described in an embodiment of the present invention;

[0056] Figure 3 This is a schematic diagram of the structure of a peanut leaf disease recognition model according to an embodiment of the present invention;

[0057] Figure 4 This is a schematic diagram of the CBAM structure introduced into the peanut leaf disease recognition model in an embodiment of the present invention;

[0058] Figure 5 This is a schematic diagram of the recognition results of the peanut leaf disease recognition model according to an embodiment of the present invention;

[0059] Figure 6 Schematic diagram of the visualization training process of an embodiment of the present invention. DETAILED DESCRIPTION

[0060] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described below in conjunction with the accompanying drawings and embodiments. In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention can also be implemented in other ways different from those described herein, and therefore, the present invention is not limited to the specific embodiments disclosed below.

[0061] Embodiment, a peanut disease detection and yield prediction method based on canopy parameter processing, such as Figure 1 As shown, the following steps are included:

[0062] Step A, respectively collecting canopy spectral image information of peanuts at the seedling stage, flowering stage and fruiting stage, as well as leaf image information of peanuts at the seedling stage, flowering stage and fruiting stage, and recording the time information of the collection;

[0063] Step B, obtaining the normalized vegetation index and leaf area index of peanuts by phenotypic characteristic processing, and performing correlation analysis on the normalized vegetation index and leaf area index to obtain the correlation coefficient between the normalized vegetation index and leaf area index of peanuts at different growth periods and the growth of peanuts;

[0064] Step C, establishing a peanut leaf disease recognition model to identify the disease type and location of the peanut leaves in the image;

[0065] Step D: Input the data of normalized vegetation index, leaf area index and its correlation coefficient with disease type and location into the CNN-LSTM network, analyze and process them through the CNN-LSTM network, and output the predicted value of peanut yield.

[0066] In step A, a drone is used to capture spectral images of the peanut canopy. In this embodiment, a DJI Phantom 4 equipped with a hyperspectral sensor is used for image acquisition, and a Canon 80D digital camera is used to acquire peanut leaf images. The leaf images are then classified according to the disease type, in preparation for the training and testing of the peanut disease detection model.

[0067] In the step B, based on the canopy spectral image information obtained in step A, the normalized vegetation index and leaf area index data of peanut are obtained by using phenotypic feature processing methods such as hyperspectral data processing and leaf area index calculation, which specifically includes:

[0068] Step B1, calculation of normalized difference vegetation index (NDVI):

[0069] (1) Using the local matching characteristics of the image, the Harris feature detector was used to obtain the feature matching points of the canopy spectral image and perform UAV image stitching to obtain the global canopy spectral image of the experimental field, which facilitates the extraction of peanut feature information in the experimental field;

[0070] (2) The canopy spectral image is denoised, smoothed, and sharpened using the wavelet analysis algorithm and spectral normalization non-uniformity correction method to remove the influence of environmental noise. In order to fully extract the spectral and spatial features of the canopy spectral image, a two-dimensional convolutional model CNN is used for convolution and pooling operations. After one-dimensional convolution, the 240*1 input canopy spectral image is processed into a 64*64 color image. The color features are extracted from the red, green, and blue spectral bands of the color image. After processing by the two-dimensional convolution layer, 64 8*8 feature maps are output. Then, the texture and morphological features of the feature image are extracted from the feature maps.

[0071] (3) Based on the texture and morphological features of the feature image, the normalized difference vegetation index (NDVI) is calculated. The ENVI function is called in IDL. The calculation formula of NDVI is:

[0072] NDVI=(float(b2)-float(b1)) / (float(b2)+float(b1))

[0073] Among them, b1: near infrared channel, b2: red channel;

[0074] Step B2, leaf area index (LAI) calculation:

[0075] Call the cal_LAI function in IDL to calculate the leaf area index of peanut land cover types at different stages, and save the calculated LAI as an ENVI standard file. The calculation formula of LAI is:

[0076]

[0077] Step B3: Conduct correlation analysis on the normalized difference vegetation index NDVI and the leaf area index LAI, and analyze the correlation between NDVI, LAI and other parameters and peanut growth in different growth periods of peanuts, using the correlation coefficient r xy To measure the standard, the specific calculation process is as follows:

[0078]

[0079]

[0080]

[0081]

[0082] Among them, n is the number of samples, x and y represent the extracted peanut NDVI and LAI data, s xy represents the covariance of peanut NDVI and LAI, s x 、s y Respectively represent the standard deviation of peanut NDVI and LAI, r xy Represents the correlation coefficient between peanut NDVI and LAI.

[0083] In step C, the established peanut leaf disease recognition model is an improved YOLOv5 network. A peanut disease image dataset is established by image preprocessing methods such as image enhancement. The dataset is input into the improved YOLOv5 network to identify the disease type and location of the peanut leaves in the image, specifically including:

[0084] (1) Based on the peanut leaf image information obtained in step A, the obtained peanut disease images were subjected to image enhancement preprocessing and feature labeling to create a peanut disease image dataset. A total of 326 peanut brown spot images and 136 peanut rust images were collected. The collected images were subjected to image enhancement operations such as channel separation, inversion, fuzzy operation, color enhancement, edge detection enhancement, logarithmic transformation, and image denoising to increase the number of data sets and avoid overfitting of the model. Finally, 2282 peanut brown spot images and 1224 peanut rust images were obtained. The size of the data set was unified to 128*128px, and the training set and test set were divided into a ratio of 7:3. The samples of the data enhancement operation were:

[0085]

[0086] Among them, x b is the image data of the labeled samples, B represents the batch size, b represents the bth sample in this batch, Represents the image data of the labeled sample after data enhancement;

[0087] Use the Python-written graphic image annotation tool LabelImg to calibrate the image. Annotate the training set and test set images in the PASCAL VOC format (the format used by ImageNet) to obtain the xml and txt files. Then convert the VOC format saved after annotation to the YOLO format. The conversion process is as follows:

[0088]

[0089]

[0090] Among them, YOLO label data contains [class, X center ,Y center ,width,height], respectively representing the category of the detected target, the X coordinate and Y coordinate of the center point, and the width and height of the target box. The coordinate information stored in the VOC label data is the coordinate position of the calibration box [x min , x max ,y min ,y max ], representing the left and right values ​​of the X coordinate and the upper and lower values ​​of the Y coordinate of the target box respectively;

[0091] (2) Construct an improved YOLOv5 network model; based on the original YOLOv5 network structure, replace the C3 module and FPN+PANet module of the YOLOv5 network model with the CBAM C3 module and Concat_BiFPN module;

[0092] The original YOLOv5 network model is introduced as follows: it includes input layer, Backbone layer, Neck layer and Prediction layer. The input layer uses the Mosaic data enhancement method to adaptively calculate the best anchor box according to the name of the data set, and adaptively add the least black edge to the scaled image; the Backbone layer uses the Focus benchmark network to extract features of different scales and perform feature fusion through feature superposition; the Neck layer uses the tandem FPN+PAN structure to perform feature fusion and multi-scale prediction between different layers from bottom to top, and locate pixels to form a mask; the Prediction layer outputs the target box according to the feature part, and finally completes the detection of peanut diseases;

[0093] The improved YOLOv5 network model structure introduces the CBAM attention mechanism to perceive the information of direction and position, thereby improving the detection accuracy, replaces the original FPN+PANet structure with the BiFPN structure, and uses fast normalized fusion to perform weighted feature fusion to improve the detection speed.

[0094] Load the training configuration file, import the model configuration file and modify the model parameters according to the relevant configuration. Improve the original YOLO v5 model by adding the CBAM module and BiFPN structure. Replace the C3 module and FPN+PANet module of the YOLOv5 network model with the CBAM C3 module and the Concat_BiFPN module. Make the Concat layer connect different layers and use the Pairwise add operation for channel separation. Call the modified yolov5l.yaml when training the model to improve the detection accuracy of the model.

[0095] (3) The training set and test set are respectively input into the improved YOLOv5 model for training and testing, and the model parameters such as learning rate, threshold, and number of iterations are continuously adjusted to improve the response speed and detection accuracy of the network model detection, and output the disease target label and the location information of the target annotation box.

[0096] The disease identification model structure of the present invention is as follows Figure 3As shown in the figure, the main process is: first, the input image is divided into S*S grids, and then the image is sent to the network to predict whether there is a target, target category, and target bounding box in each grid. Finally, the predicted bounding box is subjected to non-maximum suppression (NMS) to select the best bounding box and output it. The output dimension is S*S*(B*5+C). As shown in the figure, the YOLOv5 structure is mainly divided into four levels: the input layer uses the Mosaic data enhancement method to adaptively calculate the best anchor box according to the name of the data set; the Backbone layer uses the Focus benchmark network, CSPDarknet53 and SPP structure to extract features from the image for feature fusion; the Neck layer uses the tandem FPN+PAN structure to perform feature fusion and multi-scale prediction between different layers from bottom to top, and strengthen the propagation of semantic features and positioning information; the Prediction layer uses CIOU_Loss as the loss function of the Bounding box, and uses the weighted NMS method to screen the target box, which has a good detection effect for occluded and overlapping targets.

[0097] The CBAM structure introduced in the peanut leaf disease recognition model of the present invention is as follows: Figure 4 As shown in the figure, the main process is to obtain the intermediate feature F(H×W×C) by performing convolution operations and averaging and maximum pooling operations on the Inputs, and then use the activation function to calculate and output the channel attention Mc. Mc is multiplied by MLP to obtain the channel attention distribution map F', which shows the importance of the channel in the feature map. The channel attention map F' is averaged, max pooled and convolved to obtain the spatial attention Ms. Ms is multiplied by F' to obtain the spatial attention map F", and the channel attention map is multiplied by the spatial attention map and then added to the original input to obtain the final output Outputs.

[0098] In step D, the normalized vegetation index, leaf area index and its correlation coefficient, and the data of disease category and location are input into the CNN-LSTM network, the trained data is fitted by the CNN-LSTM network, and the peanut yield prediction value is output through the fully connected layer, and a peanut canopy parameter correlation analysis model based on hyperspectral image data and disease data is established, such as Figure 2 As shown, specifically including:

[0099] Step D1, data feature extraction and dimensionality reduction;

[0100] The extracted normalized vegetation index, leaf area index and its correlation coefficient, as well as the data of leaf disease category and location, are input into the CNN network in the order of the collected seedling stage, flowering stage and fruiting stage. The CNN network includes a convolution layer and a pooling layer. The core size of the convolution layer is set to 3*3, and the pooling layer adopts the maximum pooling operation. Through the convolution and pooling operations of the network, the data features are extracted and the dimension is reduced.

[0101]

[0102]

[0103] Among them, x k l represents the kth convolution mapping of layer l; f is the activation function; N represents the number of input convolution mappings; * represents the convolution operation; w ik l b represents the weight of the k-th convolution kernel in layer l for the i-th operation; b k l Indicates the bias of the kth convolution kernel corresponding to layer l;

[0104] Step D2, establishing a peanut canopy parameter correlation analysis model based on the normalized vegetation index, leaf area index and its correlation coefficient and disease category and location data;

[0105] (1) The LSTM network includes layer units, and the number of hidden neurons in each layer is set according to the input. In order to better associate the data between the CNN network and the LSTM network, a point-by-point feature fusion operation is added between the peanut canopy parameter correlation analysis model. The 2880 spectral features and the 2880 image features are added to obtain a hyperspectral feature with a length of 5760.

[0106]

[0107] Among them, x and y represent the data of the hyperspectral feature matrix and the disease feature matrix respectively, and F represents the linear mapping function of feature fusion, which is expressed as:

[0108] F = x i y i ,x i ,y i ∈R m

[0109] (2) The feature-fused data is input into the LSTM network in the order of seedling stage, flowering stage, and fruiting stage. The forget gate, input gate, and output gate in the network adjust their own parameters through continuous iterative training of data, so that the LSTM network learns the time fitting relationship between data from the data information extracted by the CNN network and outputs the correlation coefficient between the spectral data and disease information at different periods. Establish a correlation analysis model between hyperspectral image data and data on disease categories and locations;

[0110]

[0111] i t=sigmoid(w ix x t +w is s t-1 +b i )

[0112]

[0113] o t =sigmoid(w ox x t +w os s t-1 +b c )

[0114]

[0115] Among them, f t is the output signal of the forget gate, which determines the forgetting ratio of memory unit c; i t It is the output signal of the output gate, which determines how much of the current input information is input into the memory unit c; is the preliminary information to be input into the memory unit c, and i t Point product gets the information in memory unit c; o t It is the output signal of the output gate, which determines the proportion of the output of the memory unit c to the current state s; is the preliminary information that will be output to the hidden layer state s, o t The dot product is used to get the information of the output; s is the state information of the hidden layer; x t is the input value at time t; w is the weight matrix; b t is the bias parameter;

[0116] Step D3: Fit the trained data through the CNN-LSTM network, and output the peanut yield prediction value p according to the parameter values ​​set in different periods through the fully connected layer. t ;

[0117]

[0118]

[0119] This will help predict peanut production.

[0120] The scheme of the present invention is described in detail below with reference to specific cases. The data collection location is the "Yuhua No. 11" peanut planted in the Modern Agricultural Science and Technology Demonstration Park of Qingdao Agricultural University, Jiaozhou City, Qingdao City, Shandong Province (N: 36°26′24.61″, E: 120°04′51.30″); the hyperspectral image acquisition equipment is a visible light remote sensing system composed of a UAV remote sensing platform equipped with a hyperspectral camera: the DJI Phantom 4 UAV is equipped with a UHD185 imaging spectrometer with a wavelength range of 450-950nm. When collecting spectra, the instrument is ensured to be vertically downward. Before collecting data, hyperspectral image radiation correction is performed on the ground using a black and white board; the ground image acquisition equipment is a digital SLR camera Canon EOS 80D with an effective pixel of 20 million to 29.99 million CMOS sensor and a shutter speed of 1 / 8000 to 30s.

[0121] The operating system used for disease recognition model training is Microsoft Windows 10 Ultimate (64-bit), the deep learning framework is Pytorch1.4, CUDA4.10.1 version, and the processor is Core TM i7-7200CPU@2.50GHz, graphics card is NVIDIARTX 2070S (8GB memory), programming language is Python1.8, and the original model is YOLOv5.

[0122] UAVs and cameras were used to collect hyperspectral images and ground leaf images of peanuts at the seedling, flowering and fruiting stages, and the time of collection was recorded. The matching features of adjacent images were used to obtain the feature matching points of the images through the Harris feature detector and the drone images were stitched. The images were denoised, smoothed and sharpened, and the normalized vegetation index, leaf area index and other data of peanuts were obtained by using phenotypic feature processing methods such as hyperspectral data processing and leaf area index calculation. Image enhancement was used to grayscale and detect edges of peanut leaf images, increase the number of data sets and unify the image size to 128*128px.

[0123] The C3 module and FPN+PANet module of the YOLOv5 network model were replaced with the CBAM C3 module and the Concat_BiFPN module. The data set was input into the improved and optimized YOLOv5 network to establish a rapid detection model for peanut leaf diseases, and the disease type and location of the peanut leaves in the image were identified. The normalized vegetation index, leaf area index and its correlation coefficient were input into the CNN-LSTM neural network according to the time series, and the trained data was fitted through the CNN-LSTM network. The peanut yield prediction value was output through the fully connected layer, and a correlation analysis model of the CNN-LSTM hyperspectral image data and the disease image data was established.

[0124] The disease identification results of the present invention are as follows Figure 5 As shown in the figure, it can be seen that by training and optimizing the model for the data sets of complex field background and simple field background, the location and category characteristics of peanut diseases can be detected. While ensuring the consistency of other parameters, network models with different structures are selected: Faster R-CNN, VGG16, YOLOv4, YOLOv5 and improved YOLOv5 for testing. The test results are shown in Table 1. By comparing the detection time, loss function, accuracy (P), recall rate (R), F1 score (F1) and other indicators of the model: (1) The size of the improved model is 17.8MB; it saves 147.2MB, 100.2MB and 15.9MB respectively compared with the Faster R-CNN model, VGG model and YOLOv4 model; it shows that the improved model can greatly save memory usage. (2) The average detection time for a single image is 15ms, which is 93.6%, 90.5%, 37.5%, and 11.8% higher than that of Faster R-CNN, VGG16, YOLO v4, and YOLO v5 models, respectively; indicating that the improved model has improved the detection speed. (3) The accuracy, recall rate, and F1 score of the improved YOLO v5 model for disease detection are 93.73%, 92.94%, and 92.97%, respectively; which are 3.98%, 2.69%, and 2.29% higher than those of the original YOLOv5 model, respectively; indicating that the improved model has a better detection effect. Based on the above analysis, it can be seen that the detection method proposed in this study has obvious advantages in terms of model size, detection speed, and detection accuracy, and meets the needs of peanut disease detection tasks.

[0125] Table 1 Comparison of recognition performance of different network models

[0126]

[0127]

[0128] The visualization training process of the present invention is as follows Figure 6 As shown in the figure, during the model iteration 0-300 times, the model parameters fluctuated greatly. During the model iteration 300-600 times, as the number of iterations increased, the model performance continued to optimize. During the model iteration 900-1000 times, each indicator gradually stabilized, and the accuracy (P) reached about 93% and gradually stabilized. Therefore, considering the impact of the number of iterations on the stability and efficiency of the model, the optimal number of iterations for this model was selected as 1000. After the model was trained 1000 times, the learning rate dropped by 0.1, and the training time was about 9.5h.

[0129] The above description is only a preferred embodiment of the present invention and does not limit the present invention in other forms. Any technician familiar with the profession may use the technical content disclosed above to change or modify it into an equivalent embodiment with equivalent changes and apply it to other fields. However, any simple modification, equivalent change and modification made to the above embodiment based on the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.

Claims

1. A peanut disease detection and yield prediction method based on canopy parameter processing, characterized in that: The following steps are involved: Step A, respectively collecting canopy spectral image information of peanuts in the seedling stage, flowering stage and fruiting stage, as well as leaf image information of peanuts in the seedling stage, flowering stage and fruiting stage, and recording the time information of the collection; Step B: Based on the canopy spectral image information obtained in step A, the normalized vegetation index and leaf area index of peanut are obtained through phenotypic feature processing, and the normalized vegetation index NDVI and leaf area index LAI are correlated to obtain the correlation between the normalized vegetation index and leaf area index of peanut at different growth stages and the growth of peanut, with the correlation coefficient r xy To measure the standard, it is achieved through the following methods: Step B1, calculation of normalized vegetation index: (1) Obtain the feature matching points of the canopy spectral image through the Harris feature detector and stitch the drone images to obtain the global canopy spectral image of the experimental field; (2) The canopy spectral image is preprocessed using the wavelet analysis algorithm and the spectral normalization non-uniformity correction method to remove the influence of environmental noise; the two-dimensional convolution model CNN is used to perform convolution and pooling operations, and the canopy spectral image is processed into a color image through one-dimensional convolution, and the color features are extracted from the red, green, and blue spectral bands of the color image. The feature map is output through two-dimensional convolution processing, and the texture and morphological features of the feature image are extracted from the feature map; (3) The normalized vegetation index NDVI is calculated based on the texture and morphological characteristics of the feature image. The calculation formula of NDVI is: NDVI=(float(b2)-float(b1)) / (float(b2)+float(b1)) Among them, b1: near infrared channel, b2: red channel; Step B2, leaf area index calculation: Calculate the leaf area index LAI of land cover types of peanuts at different stages, and save the calculated LAI as an ENVI standard file. The calculation formula of LAI is: Step B3: Conduct correlation analysis on the normalized difference vegetation index NDVI and the leaf area index LAI, and analyze the correlation between the NDVI and LAI parameters and the growth of peanuts at different growth stages. The correlation coefficient r is used to calculate the correlation coefficient. xy To measure the standard, the specific calculation process is as follows: Among them, n is the number of samples, x and y represent the extracted peanut NDVI and LAI data, s xy represents the covariance of peanut NDVI and LAI, s x 、s y Respectively represent the standard deviation of peanut NDVI and LAI, r xy represents the correlation coefficient between peanut NDVI and LAI; Step C: establishing a peanut leaf disease recognition model, based on the leaf image information obtained in step A, identifying the disease type and location of the peanut leaves in the image; Step D: Input the data of normalized vegetation index, leaf area index and its correlation coefficient with disease type and location into the CNN-LSTM network, analyze and process them through CNN-LSTM, and finally output the predicted value of peanut yield.

2. The peanut disease detection and yield prediction method based on canopy parameter processing according to claim 1, characterized in that: The step D specifically comprises the following steps: Step D1, data feature extraction and dimensionality reduction; The extracted normalized vegetation index, leaf area index and their correlation coefficients, as well as leaf disease types and location data, are input into the CNN network in the order of the collected seedling stage, flowering stage and fruiting stage. The CNN network includes a convolution layer and a pooling layer. The convolution and pooling operations of the network are used to extract data features and reduce their dimensionality. Step D2, establishing a peanut canopy parameter correlation analysis model of normalized vegetation index, leaf area index and their correlation coefficients with disease category and location data; i t =sigmoid(w ix x t +w is s t-1 +b i ) o t =sigmoid(w ox x t +w os s t-1 +b o ) Among them, f t is the output signal of the forget gate, which determines the forgetting ratio of memory unit c; i t It is the output signal of the output gate, which determines how much of the current input information is input into the memory unit c; is the preliminary information to be input into the memory unit c, and i t Point product gets the information in memory unit c; o t It is the output signal of the output gate, which determines the proportion of the output of the memory unit c to the current state s; is the preliminary information that will be output to the hidden layer state s, o t The dot product is used to get the information of the output; s is the state information of the hidden layer; x t is the input value at time t; w is the weight matrix; b t is the bias parameter; Step D3: Fit the trained data through the CNN-LSTM network and output the peanut yield prediction value p t ; This will help predict peanut production.

3. The peanut disease detection and yield prediction method based on canopy parameter processing according to claim 1, characterized in that: The step D2 is specifically implemented in the following manner: (1) The LSTM network includes layer units, the number of hidden neurons in each layer is set according to the input, and a point-by-point feature fusion operation is added between the peanut canopy parameter correlation analysis model to add multiple spectral features to multiple image features to obtain hyperspectral features; Among them, x and y represent the data of the hyperspectral feature matrix and the disease feature matrix respectively, and F represents the linear mapping function of feature fusion, which is expressed as: F=x i y i ,x i ,y i ∈R m (2) The feature-fused data is input into the LSTM network in the order of seedling stage, flowering stage, and fruiting stage. The forget gate, input gate, and output gate in the network adjust their own parameters through continuous iterative training of data, so that the LSTM network learns the time fitting relationship between data from the data information extracted by the CNN network and outputs the correlation coefficient between the spectral data and disease information at different periods. Then the correlation analysis model of peanut canopy parameters was obtained.

4. The peanut disease detection and yield prediction method based on canopy parameter processing according to claim 1, characterized in that: The step C is specifically implemented in the following manner: (1) preparing a peanut disease image dataset, calibrating the images, dividing them into a training set and a test set, and enhancing data samples, wherein the disease types include brown spot disease and peanut rust disease; (2) Construct an improved YOLOv5 network model; based on the original YOLOv5 network model structure, replace the C3 module and FPN+PANet module of the YOLOv5 network model with the CBAM C3 module and Concat_BiFPN module respectively; (3) The training set and test set are respectively input into the improved YOLOv5 network model for training and testing, and the model parameters are continuously adjusted to output the disease target label and the location information of the target annotation box.

5. The peanut disease detection and yield prediction method based on canopy parameter processing according to claim 1, characterized in that: In step A, the spectral image information of the peanut canopy is collected based on the hyperspectral sensor carried by the drone, and the image information of the peanut leaves is collected using a camera.

Citation Information

Patent Citations

  • Crop pest monitoring method based on multispectral remote sensing image of deep learning

    CN110287944A

  • Monitoring method of farmland cotton aphid damage grade model based on unmanned aerial vehicle imaging

    CN111062251A

  • Peanut leaf disease recognition method

    CN113688787A

  • Pepper disease identification method, identification system and computer readable storage medium

    CN114170137A

  • System and method for forest management using stand development performance as measured by lai

    US20120253740A1