Farmland crop disease and insect pest identification method based on hyperspectral technology

Hyperspectral technology is used to acquire and process hyperspectral data and time series data of farmland crops, and build pest and disease identification models, which solves the problems of high labor cost, low accuracy and difficulty in real-time monitoring in the existing technology, and realizes the identification of farmland crop diseases and pests. Efficient, accurate and real-time monitoring reduces manual labor and time costs.

CN118736409APending Publication Date: 2024-10-01INST OF WATER RESOURCES FOR PASTERAL AREA MINIST OF WATER RESOURCES P R C

Patent Information

Application Number
CN202410845995.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing technology has high human resource costs, low accuracy, and large time costs in monitoring farmland crop diseases and pests, and cannot monitor changes in crop conditions in real time, resulting in possible missed opportunities for timely discovery and treatment of pests and diseases.

Method used

Using hyperspectral technology-based farmland crop disease and pest identification methods, by acquiring hyperspectral data and time series data, performing preprocessing and feature extraction, a farmland crop pest and disease identification model is constructed, and the trained model is used for identification to achieve real-time monitoring of plant diseases and insect pests. and quick feedback.

Benefits of technology

It improves the efficiency and accuracy of monitoring farmland crop diseases and pests, enables timely prevention and control measures, reduces losses, reduces manual labor through automated processing, and enables rapid analysis of large-scale data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736409A_ABST
    Figure CN118736409A_ABST
Patent Text Reader

Abstract

The invention provides a farmland crop disease and insect pest identification method based on a hyperspectral technology, and relates to the technical field of agricultural crop disaster identification, and the method comprises the steps: obtaining hyperspectral data of a target farmland and time sequence data corresponding to the hyperspectral data; sequentially carrying out pretreatment and feature extraction on the hyperspectral data to obtain pest and disease damage features; inputting the pest and disease damage characteristics and the corresponding time sequence data into a preset training model for training to obtain a constructed farmland crop pest and disease damage identification model; and identifying the to-be-detected data according to the farmland crop disease and insect pest identification model to obtain an identification result. According to the invention, high-frequency data acquisition can be provided by a hyperspectral technology, real-time monitoring and rapid feedback of farmland crop diseases and insect pests can be realized in combination with time sequence data analysis, and timely taking of prevention and control measures is facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of agricultural crop disaster identification, and in particular to a method for identifying crop diseases and insect pests based on hyperspectral technology. Background Art

[0002] Farmland crop diseases and pests have always been an important issue in agricultural production. The occurrence of diseases and pests will directly affect crop yield and quality, causing economic losses to farmers. Traditional pest and disease monitoring and identification methods mainly rely on manual inspections and visual diagnosis, which have the following problems: 1) High human resource costs: Manual inspections require a lot of manpower, are labor-intensive and inefficient. 2) Low accuracy: Manual visual diagnosis is easily affected by subjective factors and has limited accuracy. 3) High time cost: Traditional methods require a lot of time for monitoring and diagnosis, and cannot detect and respond to pests and diseases in a timely manner.

[0003] In recent years, with the development of hyperspectral imaging technology, the use of hyperspectral technology for monitoring farmland crop pests and diseases has gradually attracted attention. Hyperspectral imaging technology has the following advantages: 1) Hyperspectral sensors can obtain spectral information of farmland crops in hundreds of continuous bands, which helps to extract richer features. Hyperspectral data can provide more subtle differences and can capture the characteristics of crops in different physiological states. Hyperspectral technology can achieve early monitoring and identification of pests and diseases, help reduce losses and take timely countermeasures. 2) The farmland crop pest and disease identification method based on hyperspectral technology has potential application prospects, which can realize the automated and intelligent monitoring of crop pests and diseases and improve the efficiency and quality of agricultural production.

[0004] The invention patent with application number CN202211565218.2 discloses a precision pesticide application method and system based on pest and disease detection, which includes a camera, a spectral imaging system, a modeling module, an analysis module, a combination module, a spraying module, a control module and a database; the analysis module analyzes and compares the acquired spectral data with the existing pest and disease information to determine whether the farmland crops are pests and diseases, so as to obtain pest and disease data; the combination module loads the acquired pest and disease data into the three-dimensional model to obtain a three-dimensional model with pest and disease markings; the spraying module sprays the farmland crops. This technology can accurately detect the pest and disease conditions in each area of ​​the farmland through the coordinated setting of three-dimensional modeling and spectral imaging system, improve the accuracy of pesticide application, and capture the spectral data by embedding a network model in the analysis module, so as to determine the lesions and insect disasters on the stems and leaves of the crops. However, three-dimensional modeling requires processing a large amount of spectral imaging data and pest and disease information. The processing process may be complicated and tedious, requiring a lot of time and computing resources. The generated three-dimensional model needs to accurately reflect the actual situation of farmland crops, including the location and extent of different pests and diseases. Therefore, high requirements are placed on the precision and accuracy of the model.

[0005] In addition, the technology does not take into account the time series of images, which means that the system cannot monitor and analyze changes in crop conditions in real time, and may miss the opportunity to detect and treat pests and diseases in a timely manner. Summary of the invention

[0006] In order to overcome the deficiencies of the prior art, the object of the present invention is to provide a method for identifying crop diseases and insect pests based on hyperspectral technology.

[0007] To achieve the above object, the present invention provides the following solutions:

[0008] A method for identifying crop diseases and insect pests based on hyperspectral technology, comprising:

[0009] Acquire hyperspectral data of target farmland and time series data corresponding to the hyperspectral data;

[0010] Preprocessing and feature extraction are performed on the hyperspectral data in sequence to obtain pest and disease characteristics;

[0011] Inputting the pest and disease characteristics and the corresponding time series data into a preset training model for training to obtain a constructed farmland crop pest and disease identification model;

[0012] The test data is identified according to the farmland crop pest identification model to obtain an identification result.

[0013] Preferably, the hyperspectral data is preprocessed and feature extracted in sequence to obtain pest and disease features, including:

[0014] Performing radiation correction and geometric correction on the hyperspectral data to obtain corrected image data;

[0015] Removing abnormal bands in the correction data to obtain valid image data;

[0016] Performing filtering processing on the effective image data to obtain filtered image data;

[0017] According to preset crop pest and disease characteristics, a key band in the filtered image data is selected as the pest and disease characteristics; and

[0018] Calculating the spectral index in the filtered image data as the pest feature; and

[0019] The filter image data is simplified by using a dimensionality reduction method such as principal component analysis or linear discriminant analysis to obtain the pest characteristics.

[0020] Preferably, filtering the effective image data to obtain filtered image data includes:

[0021] Taking each pixel in the valid image data as the center, taking a neighborhood;

[0022] Calculate the pixel feature value of each pixel in the corresponding neighborhood;

[0023] Constructing a smoothing denoising model according to the pixel feature values;

[0024] The effective image data is filtered using the smoothing denoising model to obtain the filtered image data.

[0025] Preferably, the formula of the smoothing denoising model is:

[0026] f(x)=1-exp(▽u(x)-▽u mean (x) 2 -u(x)-u median (x)); where ▽u(x) represents the gradient value of pixel x in the corresponding neighborhood, ▽u mean (x) is the mean pixel value of the neighborhood centered on pixel point x, u(x) represents the pixel value of pixel point x, and u median (x) represents the pixel median of the neighborhood centered on pixel x.

[0027] Preferably, filtering the effective image data using the smoothing denoising model to obtain the filtered image data comprises:

[0028] Calculate the smoothing value of each pixel using the smoothing denoising model;

[0029] All pixel points whose smoothing values ​​are greater than the denoising threshold are filtered using a mean filtering method to obtain the filtered image data.

[0030] Preferably, the pest and disease characteristics and the corresponding time series data are input into a preset training model for training to obtain a constructed farmland crop pest and disease identification model, including:

[0031] Performing data enhancement on the pest and disease characteristics and the time series data to obtain enhanced pest and disease characteristics and enhanced time series data;

[0032] The initial CNN model is trained according to the enhanced pest and disease characteristics and the enhanced time series data to obtain the trained first classifier and the second classifier;

[0033] Using the evaluation results of the maximum accuracy of the first classifier and the second classifier as training threshold data to train another classifier again, so that the accuracy of the evaluation results of each classifier is greater than or equal to the training threshold data, and finally cascading the trained classifiers to obtain a classification network;

[0034] The trained LSTM neural network is connected to the classification network to obtain the farmland crop disease and insect pest recognition model.

[0035] Preferably, the operation steps of performing data enhancement on the pest and disease characteristics include: rotation, flipping, scaling and translation.

[0036] Preferably, the loss function of the farmland crop pest identification model is: cross entropy loss function; the formula of the cross entropy loss function is: Among them, N is the number of samples, K is the number of categories, and y ik is the value of the k-th category corresponding to the i-th sample of the true label, The probability value of the i-th sample corresponding to the k-th category predicted by the model, is the cross entropy loss function.

[0037] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0038] The present invention provides a method for identifying crop diseases and insect pests based on hyperspectral technology, comprising: obtaining hyperspectral data of a target farmland and time series data corresponding to the hyperspectral data; preprocessing and feature extraction of the hyperspectral data in sequence to obtain pest characteristics; inputting the pest characteristics and the corresponding time series data into a preset training model for training to obtain a constructed crop disease and insect pest identification model; identifying the data to be tested according to the crop disease and insect pest identification model to obtain an identification result. The hyperspectral technology of the present invention can provide high-frequency data collection, and combined with time series data analysis, can realize real-time monitoring and rapid feedback of crop diseases and insect pests, which is helpful to take prevention and control measures in a timely manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0040] Figure 1 A flow chart of a method provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of 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.

[0042] The purpose of the present invention is to provide a method for identifying crop diseases and pests based on hyperspectral technology, which has obvious advantages in accuracy, non-contact, real-time, and automated processing, can improve the monitoring and management efficiency of crop diseases and pests, and provide better support and guarantee for agricultural production.

[0043] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0044] Figure 1 A flow chart of a method provided by an embodiment of the present invention, such as Figure 1 As shown, the present invention provides a method for identifying crop diseases and insect pests based on hyperspectral technology, comprising:

[0045] Step 100: Acquire hyperspectral data of a target farmland and time series data corresponding to the hyperspectral data;

[0046] Step 200: Preprocessing and feature extraction are performed on the hyperspectral data in sequence to obtain pest and disease features;

[0047] Step 300: input the pest and disease characteristics and the corresponding time series data into a preset training model for training to obtain a constructed farmland crop pest and disease identification model;

[0048] Step 400: Identify the data to be tested according to the farmland crop pest identification model to obtain an identification result.

[0049] Specifically, this embodiment uses a hyperspectral imaging device (such as a hyperspectral camera or a hyperspectral sensor carried by a drone) to photograph farmland crops. The specific steps are as follows:

[0050] Step 101: Select a suitable time window for shooting (including sunny days with sufficient sunshine, and avoid obtaining data on cloudy or rainy days).

[0051] Step 102: Adjust device parameters (such as spectral band range, spatial resolution, etc.).

[0052] Step 103: Perform line-by-line scanning to obtain hyperspectral images to ensure that the entire target farmland area is covered.

[0053] Preferably, the hyperspectral data is preprocessed and feature extracted in sequence to obtain pest and disease features, including:

[0054] Performing radiation correction and geometric correction on the hyperspectral data to obtain corrected image data;

[0055] Removing abnormal bands in the correction data to obtain valid image data;

[0056] Performing filtering processing on the effective image data to obtain filtered image data;

[0057] According to preset crop pest and disease characteristics, a key band in the filtered image data is selected as the pest and disease characteristics; and

[0058] Calculating the spectral index in the filtered image data as the pest feature; and

[0059] The filter image data is simplified by using a dimensionality reduction method such as principal component analysis or linear discriminant analysis to obtain the pest characteristics.

[0060] Specifically, in this embodiment, methods such as radiation correction and geometric correction are used to correct spectral deviations caused by device properties and environmental changes, and irrelevant or noisy bands are removed to retain valid bands.

[0061] Furthermore, this embodiment may also utilize a filter (such as Savitzky-Golay filter) to smooth the spectral data to reduce the influence of noise.

[0062] Furthermore, the specific steps of selecting the characteristic band in this embodiment are as follows:

[0063] 1. Select key bands (such as infrared band, near-infrared band, etc.) according to the characteristics of crop diseases and pests.

[0064] 2. Calculate spectral index: Calculate commonly used spectral indexes (such as Normalized Difference Vegetation Index NDVI, red edge position, etc.).

[0065] 3. Data dimensionality reduction: Use dimensionality reduction methods such as principal component analysis (PCA) or linear discriminant analysis (LDA) to simplify the feature set.

[0066] Preferably, filtering the effective image data to obtain filtered image data includes:

[0067] Taking each pixel in the valid image data as the center, taking a neighborhood;

[0068] Calculate the pixel feature value of each pixel in the corresponding neighborhood;

[0069] Constructing a smoothing denoising model according to the pixel feature values;

[0070] The effective image data is filtered using the smoothing denoising model to obtain the filtered image data.

[0071] Preferably, the formula of the smoothing denoising model is:

[0072] f(x)=1-exp(▽u(x)-▽u mean (x) 2 -u(x)-u median (x)); where ▽u(x) represents the gradient value of pixel x in the corresponding neighborhood, ▽u mean (x) is the mean pixel value of the neighborhood centered on pixel point x, u(x) represents the pixel value of pixel point x, and u median (x) represents the pixel median of the neighborhood centered on pixel x.

[0073] Preferably, filtering the effective image data using the smoothing denoising model to obtain the filtered image data comprises:

[0074] Calculate the smoothing value of each pixel using the smoothing denoising model;

[0075] All pixel points whose smoothing values ​​are greater than the denoising threshold are filtered using a mean filtering method to obtain the filtered image data.

[0076] In practical applications, this embodiment can set a denoising threshold according to the smoothing value of the pixel point, and at the same time, perform mean filtering on all the pixels in the noise interval to obtain the median pixel point, and then use the median pixel point to replace the values ​​of all the pixels in the neighborhood, so as to obtain the filtered image data. The original filtering algorithm, such as the mean filtering algorithm, performs mean processing on the pixels in each neighborhood on the image, so the processed image will become blurred, and this embodiment can find the noise points on the filtered image data by using the smoothing denoising model, and then perform mean filtering on the corresponding noise points, which can smooth out the noise points in the image while maximally maintaining the original information of the target image.

[0077] Preferably, the pest and disease characteristics and the corresponding time series data are input into a preset training model for training to obtain a constructed farmland crop pest and disease identification model, including:

[0078] Performing data enhancement on the pest and disease characteristics and the time series data to obtain enhanced pest and disease characteristics and enhanced time series data;

[0079] The initial CNN model is trained according to the enhanced pest and disease characteristics and the enhanced time series data to obtain the trained first classifier and the second classifier;

[0080] Using the evaluation results of the maximum accuracy of the first classifier and the second classifier as training threshold data to train another classifier again, so that the accuracy of the evaluation results of each classifier is greater than or equal to the training threshold data, and finally cascading the trained classifiers to obtain a classification network;

[0081] The trained LSTM neural network is connected to the classification network to obtain the farmland crop disease and insect pest recognition model.

[0082] Optionally, after the present embodiment uses time series data to train a classifier, the data obtained include a trained classifier model, model parameters, performance indicators, prediction results, and related analysis results. These data can be used to classify and predict new time series data, thereby assisting the detection of pest and disease characteristics in the present embodiment.

[0083] Furthermore, this embodiment also considers adopting a model fusion method to fuse multiple trained classifiers to comprehensively utilize their prediction results and improve the overall classification performance.

[0084] Preferably, the operation steps of performing data enhancement on the pest and disease characteristics include: rotation, flipping, scaling and translation.

[0085] Specifically, this embodiment uses data enhancement technology during the training process, such as rotation, flipping, scaling, translation and other operations, which can expand the training data set and improve the generalization ability of the model.

[0086] Preferably, the loss function of the farmland crop pest identification model is: cross entropy loss function; the formula of the cross entropy loss function is: Among them, N is the number of samples, K is the number of categories, and y ik is the value of the k-th category corresponding to the i-th sample of the true label, The probability value of the i-th sample corresponding to the k-th category predicted by the model, is the cross entropy loss function.

[0087] Specifically, the cross entropy loss function can measure the difference between the model's predicted value and the true label. By minimizing the loss function, the model parameters are optimized so that the model's prediction results are closer to the actual situation.

[0088] For example, in addition to the cross entropy loss function, this embodiment can also apply other types of sequence loss functions, such as mean square error (MSE), etc., and select a suitable loss function for model training according to specific tasks and model requirements.

[0089] The beneficial effects of the present invention are as follows:

[0090] (1) The hyperspectral technology of the present invention can provide rich spectral information, capture the subtle spectral features of crop leaves or soil surfaces, and more accurately distinguish different types of plant diseases and insect pests.

[0091] (2) The present invention uses hyperspectral technology for detection without direct contact with plant leaves or soil, thus avoiding the damage or impact that may be introduced by traditional contact detection, and is more convenient for large-area detection applications.

[0092] (3) The hyperspectral technology of the present invention can provide high-frequency data acquisition. Combined with time series data analysis, it can achieve real-time monitoring and rapid feedback of crop diseases and insect pests, and can take preventive measures in a timely manner.

[0093] (4) The present invention realizes the automated processing and analysis of large-scale data by preprocessing, feature extraction and model training of hyperspectral data, thereby improving work efficiency and reducing manual labor.

[0094] (5) The hyperspectral technology of the present invention does not require a large amount of chemical reagents and manpower input, is environmentally friendly, saves resources, and meets the requirements of sustainable agricultural management.

[0095] (6) The present invention takes into account that hyperspectral data contains rich spectral reflectance information, can provide diverse characteristics of vegetation, leaves or soil, and can comprehensively analyze and identify different farmland crop diseases and pests.

[0096] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0097] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A method for identifying crop diseases and insect pests based on hyperspectral technology, characterized in that: include: Acquire hyperspectral data of target farmland and time series data corresponding to the hyperspectral data; Preprocessing and feature extraction are performed on the hyperspectral data in sequence to obtain pest and disease characteristics; Inputting the pest and disease characteristics and the corresponding time series data into a preset training model for training to obtain a constructed farmland crop pest and disease identification model; The test data is identified according to the farmland crop pest identification model to obtain an identification result.

2. The method for identifying crop diseases and insect pests based on hyperspectral technology according to claim 1, characterized in that: The hyperspectral data is preprocessed and feature extracted in sequence to obtain pest and disease features, including: Performing radiation correction and geometric correction on the hyperspectral data to obtain corrected image data; Removing abnormal bands in the correction data to obtain valid image data; Performing filtering processing on the effective image data to obtain filtered image data; According to preset crop pest and disease characteristics, a key band in the filtered image data is selected as the pest and disease characteristics; and Calculating the spectral index in the filtered image data as the pest feature; and The filter image data is simplified by using a dimensionality reduction method such as principal component analysis or linear discriminant analysis to obtain the pest characteristics.

3. The method for identifying crop diseases and insect pests based on hyperspectral technology according to claim 2, characterized in that: Filtering the effective image data to obtain filtered image data includes: Taking each pixel in the valid image data as the center, taking a neighborhood; Calculate the pixel feature value of each pixel in the corresponding neighborhood; Constructing a smoothing denoising model according to the pixel feature values; The effective image data is filtered using the smoothing denoising model to obtain the filtered image data.

4. The method for identifying crop diseases and insect pests based on hyperspectral technology according to claim 3, characterized in that: The formula of the smoothing denoising model is: f(x)=1-exp(▽u(x)-▽u mean (x) 2 -u(x)-u median (x)); where ▽u(x) represents the gradient value of pixel x in the corresponding neighborhood, ▽u mean (x) is the mean pixel value of the neighborhood centered on pixel point x, u(x) represents the pixel value of pixel point x, and u median (x) represents the pixel median of the neighborhood centered on pixel x.

5. The method for identifying crop diseases and insect pests based on hyperspectral technology according to claim 4, characterized in that: Filtering the effective image data using the smoothing denoising model to obtain the filtered image data includes: Calculate the smoothing value of each pixel using the smoothing denoising model; All pixel points whose smoothing values ​​are greater than the denoising threshold are filtered using a mean filtering method to obtain the filtered image data.

6. The method for identifying crop diseases and insect pests based on hyperspectral technology according to claim 1, characterized in that: The pest and disease characteristics and the corresponding time series data are input into a preset training model for training to obtain a constructed farmland crop pest and disease identification model, including: Performing data enhancement on the pest and disease characteristics and the time series data to obtain enhanced pest and disease characteristics and enhanced time series data; The initial CNN model is trained according to the enhanced pest and disease characteristics and the enhanced time series data to obtain the trained first classifier and the second classifier; Using the evaluation results of the maximum accuracy of the first classifier and the second classifier as training threshold data to train another classifier again, so that the accuracy of the evaluation results of each classifier is greater than or equal to the training threshold data, and finally cascading the trained classifiers to obtain a classification network; The trained LSTM neural network is connected to the classification network to obtain the farmland crop disease and insect pest recognition model.

7. The method for identifying crop diseases and insect pests based on hyperspectral technology according to claim 6, characterized in that: The operation steps of performing data enhancement on the pest and disease characteristics include: rotation, flipping, scaling and translation.

8. The method for identifying crop diseases and insect pests based on hyperspectral technology according to claim 6, characterized in that: The loss function of the farmland crop pest and disease identification model is: cross entropy loss function; The formula of the cross entropy loss function is: Among them, N is the number of samples, K is the number of categories, and y ik is the value of the k-th category corresponding to the i-th sample of the true label, The probability value of the i-th sample corresponding to the k-th category predicted by the model, is the cross entropy loss function.

Citation Information

Patent Citations

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

    CN110287944A

  • Ultrasonic based gesture recognition

    CN110383284A

  • Fatigue driving detection method, device and storage medium

    CN111543982A

  • Crop seed quality prediction method and system based on deep learning

    CN116777874A

  • Corn disease and insect pest detection method based on remote sensing image

    CN118038450A

Cited By

  • Barn pest monitoring and early warning method, system and equipment based on big data and medium

    CN119557665A