A crop recognition and classification method based on deep learning model

By building a spatio-temporal two-dimensional recognition model and using the residual mapping network based on the deep learning model, the problem of insufficient image resolution and noise interference in crop recognition is solved, the accuracy and speed of crop classification are improved, and a more efficient Identify and classify.

CN118506110BActive Publication Date: 2024-10-11天津市农业发展服务中心
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410961335.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-10-11
Estimated Expiration
2044-07-18

AI Technical Summary

Technical Problem

Existing technologies have problems in crop identification and classification such as insufficient image resolution, background noise interference, changes in crop growth processes, and high similarity between classes, resulting in low classification accuracy and high computational cost.

Method used

Using a method based on deep learning models, we collect multi-temporal high-resolution remote sensing images, build a spatio-temporal two-dimensional recognition model, extract key image frames, perform threshold segmentation and filter feature information, and use residual mapping networks to filter feature information to construct crop classification. model to achieve final accurate classification.

Benefits of technology

The accuracy and speed of crop identification and classification are improved, the recognition learning ability is enhanced, errors are reduced, and the accuracy and efficiency of the classifier are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118506110B_ABST
    Figure CN118506110B_ABST
Patent Text Reader

Abstract

The present invention proposes a crop recognition and classification method based on a deep learning model, which relates to the technical field of crop recognition and classification. For a target crop area, original multi-phase high-resolution remote sensing images are collected, a spatiotemporal two-dimensional recognition model is built, and key image frames are extracted; threshold segmentation processing is performed on the key image frames to obtain the foreground part of the key image frames, and feature information is extracted from the foreground part area; similarity coefficients between feature information and preset labels and between multiple feature information are calculated to obtain an optimal feature information combination; a residual mapping network is used to perform difference filtering on the obtained feature information combination to obtain a crop recognition feature set; based on the output crop recognition feature set, a crop classification model is constructed to achieve final classification, thereby improving the accuracy of crop recognition and classification, and improving the speed of crop recognition and classification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of crop identification and classification, and in particular to a crop identification and classification method based on a deep learning model. Background Art

[0002] In the agricultural field, using remote sensing data for crop classification is an important research topic. Taking advantage of the spatiotemporal scale of remote sensing images, timely and accurate acquisition of crop spatial distribution and planting area is of great significance to ensuring food security and promoting sustainable agricultural development. High-resolution remote sensing images have the characteristics of high background complexity, rich details and diverse spatial structures. When traditional machine learning classification algorithms are applied to high-resolution remote sensing image classification, there is often a problem of low classification accuracy. In recent years, many researchers have tried to build semantic segmentation networks through deep learning algorithms and apply them to the fine classification of objects at the pixel level. Remote sensing image classification based on artificial neural networks has become a development trend.

[0003] Crop identification and classification is an important field of remote sensing technology application. However, there are many technical problems in practical applications. These problems are mainly manifested in the following aspects: 1. Insufficient image resolution: The resolution of remote sensing images limits the accuracy of identification and classification. Due to the limitations of sensors and imaging methods, the pixel size of remote sensing images is large, and it is difficult to distinguish smaller objects, such as individual plants in crops. This leads to errors in classification and affects the accuracy of the results. 2. Background noise interference: There is often noise interference in remote sensing images, such as atmospheric, topographic, water and other factors. These noise interferences will affect the quality of the image, making it difficult for the classifier to accurately identify the target crop. 3. Changes in crop growth: Crops will go through different growth stages during growth, and the characteristics and morphology of each stage are different. This requires training and identification for different stages during classification, which increases the complexity and computational cost of the classifier. 4. High inter-class similarity: The spectral characteristics and texture characteristics of some crops are highly similar, which makes it easy for the classifier to make errors when distinguishing them. Summary of the invention

[0004] In order to solve the above technical problems, the present invention proposes a crop recognition and classification method based on a deep learning model, comprising the following steps:

[0005] S1. For the target crop area, collect original multi-temporal high-resolution remote sensing images, build a spatiotemporal two-dimensional recognition model, and extract key image frames;

[0006] S2, performing threshold segmentation processing on the key image frame to obtain the foreground part of the key image frame, and extracting feature information from the foreground part area;

[0007] S3, calculating the similarity coefficient between the feature information and the feature label and between multiple feature information, screening the feature information, and obtaining the optimal feature information combination;

[0008] S4, using a residual mapping network to perform differential filtering on the optimal feature information combination to obtain a crop recognition feature set;

[0009] S5. Based on the crop identification feature set, a crop classification model is constructed to achieve final classification.

[0010] Furthermore, the step S3 comprises:

[0011] S31, calculating a first similarity coefficient value between the input feature information and the feature label, and eliminating feature information whose first similarity coefficient value is less than a first threshold value;

[0012] S32, calculating the second similarity coefficient values ​​between the remaining multiple feature information, and eliminating the feature information whose second similarity coefficient value is greater than a given second threshold;

[0013] S33. Given the number of features M that need to be retained in the end, a nested loop model is constructed so that the number of feature information retained in step S32 is reduced to M, and M features constitute the optimal feature combination.

[0014] Furthermore, in step S31, the similarity coefficient value between each feature information and the feature label is calculated. :

[0015] ;

[0016] Where n is the total number of measurements in the similarity calculation, x i and i Represents the feature information and feature label i-th measurement value, and Represent the average values ​​of feature information and feature labels respectively.

[0017] Furthermore, in step S32, the second similarity coefficient value between any two feature information is calculated by the following formula: :

[0018] ;

[0019] Among them, w is the total number of measurements of the two feature information, x j and represents the jth measurement value of two feature information, and Represent the average value of two feature information respectively.

[0020] Further, in step S4, the nth feature information x in the optimal feature information combination is n Input to the residual mapping network, output data y n It is expressed as:

[0021] y n =R*(x n ,W);

[0022] Where W represents the training parameters in the residual mapping network, R is the residual mapping function, and R*(x n ,W) represents the weighted mapping between layers in the residual mapping network.

[0023] Furthermore, in step S1, a two-dimensional space-time recognition model is built, and the RGB video stream and the time series corresponding to the RGB video stream are used as input data, and the RGB video stream and the corresponding time series are used as inputs of the time dimension and the space dimension respectively; the key time point is determined, and according to the position of the key time point in the time series, the key image frame of the spatial position corresponding to the position in the time series is extracted.

[0024] Furthermore, in step S5, for the kth identification feature u k The corresponding output iteration value Expressed as:

[0025] ;

[0026] In the formula, is the crop classification model function after the mth iteration, M is the total number of iterations, and F is the function space of all crop classification models;

[0027] The category function is expressed as:

[0028] ;

[0029] In the formula, represents the kth output iteration value, y k represents the kth category label, there are N category labels in total, L is the error function, is the regularization function, and H represents the output category.

[0030] Compared with the prior art, the present invention has the following beneficial technical effects:

[0031] For the target crop area, the original multi-temporal high-resolution remote sensing images are collected, a spatiotemporal two-dimensional recognition model is built, and key image frames are extracted; threshold segmentation is performed on the key image frames to obtain the foreground part of the key image frames, and feature information is extracted from the foreground part area; compared with the traditional feature extraction process, the recognition learning ability is improved. The similarity coefficients between feature information and preset labels and between multiple feature information are calculated to obtain the optimal feature information combination; the residual mapping network is used to perform differential filtering on the obtained feature information combination to obtain a crop recognition feature set; based on the output crop recognition feature set, a crop classification model is constructed to achieve final classification, which improves the accuracy of crop recognition and classification, and improves the speed of crop recognition and classification. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0033] Figure 1 A flowchart of a crop identification and classification method based on a deep learning model of the present invention;

[0034] Figure 2 The flowchart of the present invention for obtaining the optimal feature information combination. DETAILED DESCRIPTION

[0035] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0036] In the drawings of the specific embodiments of the present invention, in order to better and more clearly describe the working principles of the various components in the system, the connection relationship of the various parts in the device is shown, which only clearly distinguishes the relative position relationship between the various components, and cannot constitute a limitation on the signal transmission direction, connection sequence and size, dimensions and shape of the components or structures.

[0037] like Figure 1 FIG. 1 is a flow chart of a crop identification and classification method based on a deep learning model of the present invention, and the crop identification and classification method includes the following steps:

[0038] S1. For the target crop area, collect original multi-temporal high-resolution remote sensing images, build a spatiotemporal two-dimensional recognition model, and extract key image frames.

[0039] Collect multi-temporal high-resolution remote sensing images, which can come from remote sensing platforms such as satellites or drones, and should have sufficient coverage and temporal resolution for effective change detection. Perform preprocessing steps such as radiometric calibration, atmospheric correction, and geocoding on the collected raw images to ensure the spatial and spectral consistency of the data and eliminate or reduce noise and distortion.

[0040] Build a spatiotemporal two-dimensional recognition model, use the RGB video stream and the time series corresponding to the RGB video stream as network input, and use the RGB video stream and the corresponding time series as the input of the time dimension and space dimension respectively. The spatiotemporal two-dimensional recognition model consists of two independent dimensional models: one for processing spatial information and the other for processing temporal information. The spatiotemporal two-dimensional recognition model architecture is particularly suitable for processing video streams and image frames, because video data contains both spatial information (color, shape, etc.) between image frames and temporal information (object motion, relationship between consecutive image frames, etc.).

[0041] The spatial dimension model of the spatiotemporal 2D recognition model is derived from the image recognition model, and its own parameters are fine-tuned through gradient back propagation. The output data consists of a series of images arranged in chronological order, which can process video streams of different sizes and speeds. The image recognition model allows computer vision algorithms to process images at multiple scales, thereby better handling movements of different sizes and speeds.

[0042] The key time point is determined, and according to the position of the time point in the time series, the key image frame of the spatial position corresponding to the time position is extracted.

[0043] First, the given time series is analyzed to determine the key time points, which can be achieved by observing the changing trend, periodic behavior, inflection points or other significant features of the time series data; once the key time points are determined, these time points are marked as their positions in the original time series by calculating the interval from the time point to the starting point of the sequence.

[0044] Since each time point has a fixed position in the time series, it can be mapped to the corresponding spatial position, and each time point can be mapped to a frame in the video; according to the mapping relationship, the key image frame corresponding to the key time point is extracted from the original data.

[0045] S2. Perform threshold segmentation processing on the key image frame to obtain the foreground part of the key image frame, and extract feature information from the foreground part area.

[0046] The OTSU segmentation algorithm is used to segment the key image frames extracted from the original multi-temporal remote sensing images. According to the segmentation results, the threshold range for extracting various types of crops is automatically determined on the key image frames using the histogram statistics method and the set confidence interval, thereby obtaining coarse training samples; objects with an area smaller than the set threshold are deleted, and small heterogeneous points are removed; the overlapping areas of various samples are removed; and pure samples of image blocks and pixel points are selected through the design of the optimal sliding window and the optimal image block size.

[0047] Read the information source image and calculate the histogram: First, read the information source image to be processed and convert the original color image into a grayscale image to simplify the processing process; for the grayscale image, calculate its histogram, which shows the frequency of occurrence of each pixel value in the image.

[0048] Apply the OTSU algorithm to segment the image: The OTSU algorithm will calculate the inter-class variance and find a threshold value that maximizes the inter-class variance between the foreground and the background. This threshold value will be used to segment the image. According to the calculated threshold value, the image is segmented into two parts: foreground and background. In the binarized image, the foreground pixels are set to a specific value (such as 255), while the background pixels are set to another value (such as 0).

[0049] Determine the optimal threshold range: On the segmented image, the histogram is counted again. This time the histogram will show the distribution of foreground pixels and background pixels. According to the histogram and the set confidence interval, the threshold range for extracting various types of crops is determined. This process needs to be iterated to find the optimal threshold range.

[0050] Extract feature information from the segmented image area. Using remote sensing processing algorithms, the required feature information is extracted from the segmented image area. The feature information is the variable atmospheric drag index VARIgreen, the ratio building land index RBI and the short-wave infrared SWIR.

[0051] Calculate the vegetation index (such as NDVI) for each pixel in the image area and convert it into a variable atmospheric resistance index; analyze the reflection characteristics of building land in different bands to distinguish between buildings and other types of surface cover; analyze the reflection or emission characteristics in the short-wave infrared band to obtain information about the properties of the material.

[0052] S3: Calculate the similarity coefficient between the input feature information and the label and between multiple feature information to obtain the optimal feature information combination. Figure 2 As shown, the process of obtaining the optimal feature information combination is as follows:

[0053] S31: Calculate a first similarity coefficient value between the input feature information and the label, and eliminate feature information whose first similarity coefficient value is less than a first threshold.

[0054] Calculate the first similarity coefficient value between the input feature information and the label. The first similarity coefficient value will test the direction (negative or positive) and strength between the input feature information and the feature label.

[0055] Calculate the first similarity coefficient value between each feature and the feature label. The formula is as follows:

[0056] ;

[0057] Where n is the total number of measurements in the similarity calculation, x i and i Represents the feature information and feature label i-th measurement value, and Represent the average value of feature information and feature label respectively. Similarity coefficient It is between 1.0 (complete positive correlation) and -1.0 (complete negative correlation). The larger the similarity coefficient, the stronger the monotonicity between the feature information and the feature label. Sort the feature information in descending order and eliminate The feature information whose value is less than the first threshold T0. M1 represents the number of retained feature information.

[0058] S32: Calculate the second similarity coefficient values ​​between the multiple feature information, and eliminate the feature information whose second similarity coefficient value is greater than a given second threshold.

[0059] The second similarity coefficient value between any two feature information is calculated by the following formula:

[0060] ;

[0061] Among them, w is the total number of measurements of the two feature information, x j and represents the level of the jth measurement value of two feature information, and Represent the average values ​​of two feature information respectively. Sort the feature information in ascending order and eliminate Feature information with a value greater than a given threshold T2 is feature information with strong correlation, and M2 represents the number of retained feature information.

[0062] S33: Given the number of features M to be retained, a nested loop model containing K features is constructed, where K = M2 is reduced to M, and the features with the lowest feature importance in the nested loop model are eliminated in each iteration. Finally, the remaining M features form the optimal feature combination.

[0063] The steps to build a nested loop model and select the optimal feature combination are as follows:

[0064] 1. Initialize the feature set: First, build a set containing all features, and set the total number of feature information in this set to M2.

[0065] 2. Determine the number of nested loops: The number of nested loops is determined by the number of features that need to be retained in the end, M. Since starting from M features, each iteration reduces one feature, the number of nested loops is log2(M).

[0066] 3. Build a nested loop model: In each iteration, build a random forest model. This model can be built using any standard random forest implementation, such as Python's scikit-1earn library.

[0067] 4. Calculate feature importance: After building the nested loop model, calculate the importance of each feature information. The importance of feature information can be measured using the average feature importance in the random forest.

[0068] 5. Remove the least important features: Based on the calculated feature importance, remove the least important features from the nested loop model. This can be achieved by setting a threshold to only keep the top K+1 features in importance, where K is the number of feature information in the current iteration.

[0069] 6. Repeat iteration: Repeat steps 4 and 5 until the final number of feature information M required is reached.

[0070] 7. Output the optimal feature combination: Finally, the remaining M features constitute the optimal feature information combination.

[0071] S4: Using the residual mapping network to perform differential filtering on the feature information combination obtained in step S3 to obtain a crop recognition feature set.

[0072] Take the nth feature information as the original input x n Input to the residual mapping network, output data y n It is expressed as:

[0073] y n =R*(x n ,W);

[0074] Among them, W represents the trainable parameters in the residual mapping network, which is combined with the original input x through the residual mapping function R n , variable residual value in fitting network training, R*(x n ,W) represents the weighted mapping between layers, ensuring that the information of the previous layer is not easily lost when propagating to deeper layers of the network.

[0075] In the residual mapping network, the dimensions of the input and output of the residual mapping process are the same. The input data does not undergo any nonlinear transformation, but directly "flows" through the network, ensuring that the input data can be directly passed to the subsequent layers.

[0076] R*(x n , W) is the representation of the residual mapping function. In the residual mapping network, each residual layer attempts to fit a residual mapping function that represents the difference between the input data and the output data. The present invention uses the residual mapping network to ensure the similarity of the feature information combination during feature transfer. n Combined into a crop identification feature set.

[0077] S5: Based on the crop identification feature set outputted in step S4, a crop classification model is constructed to achieve final classification.

[0078] Random forest is used as the classifier of the crop classification model. Random forest is a classifier developed from the tree model. Random forest is equivalent to a classifier composed of multiple tree models. Therefore, compared with traditional remote sensing classifiers, such as the nearest neighbor method, maximum likelihood method, and support vector machine, random forest can reduce variance without increasing bias, effectively preventing overfitting.

[0079] For the kth identification feature u k The corresponding output iteration value Expressed as:

[0080] ;

[0081] In the formula, is the crop classification model function after the mth iteration, M is the total number of iterations, and F is the function space of all crop classification models.

[0082] The category function is expressed as:

[0083] ;

[0084] In the formula, represents the kth output iteration value, y k represents the kth category label, there are N category labels in total, L is the error function, is the regularization function, and H represents the output category.

[0085] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.

[0086] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A crop recognition and classification method based on a deep learning model, characterized in that: The steps include: S1. For the target crop area, collect original multi-temporal high-resolution remote sensing images, build a spatiotemporal two-dimensional recognition model, and extract key image frames; S2, performing threshold segmentation processing on the key image frame to obtain the foreground part of the key image frame, and extracting feature information from the foreground part area; S3, calculating the similarity coefficient between the feature information and the feature label and between multiple feature information, screening the feature information, and obtaining the optimal feature information combination, including: S31, calculating a first similarity coefficient value between the input feature information and the feature label, and eliminating feature information whose first similarity coefficient value is less than a first threshold value; S32, calculating the second similarity coefficient values ​​between the remaining multiple feature information, and eliminating the feature information whose second similarity coefficient value is greater than a given second threshold; S33, given the number of features M that need to be retained in the end, construct a nested loop model so that the number of feature information retained in step S32 is reduced to M, and M features constitute the optimal feature combination; S4, using a residual mapping network to perform differential filtering on the optimal feature information combination to obtain a crop recognition feature set; S5. Based on the crop identification feature set, a crop classification model is constructed to achieve final classification.

2. The crop identification and classification method according to claim 1, characterized in that: In step S31, the similarity coefficient value between each feature information and the feature label is calculated : ; Where n is the total number of measurements in the similarity calculation, x i and i Represents the feature information and feature label i-th measurement value, and Represent the average values ​​of feature information and feature labels respectively.

3. The crop identification and classification method according to claim 1, characterized in that: In step S32, the second similarity coefficient value between any two feature information is calculated by the following formula: : ; Among them, w is the total number of measurements of the two feature information, x j and represents the jth measurement value of two feature information, and Represent the average value of two feature information respectively.

4. The crop identification and classification method according to claim 1, characterized in that: In step S4, the nth feature information x in the optimal feature information combination is n Input to the residual mapping network, output data y n It is expressed as: y n =R*(x n ,W); Where W represents the training parameters in the residual mapping network, R is the residual mapping function, and R*(x n ,W) represents the weighted mapping between layers in the residual mapping network.

5. The crop identification and classification method according to claim 1, characterized in that: In step S1, a two-dimensional spatiotemporal recognition model is constructed, and the RGB video stream and the time series corresponding to the RGB video stream are used as input data, and the RGB video stream and the corresponding time series are used as inputs of the time dimension and the space dimension respectively; the key time point is determined, and according to the position of the key time point in the time series, the key image frame of the spatial position corresponding to the position in the time series is extracted.

6. The crop identification and classification method according to claim 1, characterized in that: In step S5, for the kth identification feature u k The corresponding output iteration value Expressed as: ; In the formula, is the crop classification model function after the mth iteration, M is the total number of iterations, and F is the function space of all crop classification models; The category function is expressed as: ; In the formula, represents the kth output iteration value, y k represents the kth category label, there are N category labels in total, L is the error function, is the regularization function, and H represents the output category.