A deep learning method for remote sensing extraction of cultivated land with enhanced edge features

By adding an edge feature module, a hole spatial convolution pooling pyramid module and a global attention mechanism to the deep learning model, the EAG-Net model is constructed, which solves the adhesion problem caused by unclear land parcel boundaries in high-resolution remote sensing images, and achieves It provides high-precision farmland plot extraction and is suitable for large-scale plot information extraction.

CN118334536BActive Publication Date: 2024-08-27HUAZHONG NORMAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410773717.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-08-27
Estimated Expiration
2044-06-17

AI Technical Summary

Technical Problem

In the existing technology, in high-resolution remote sensing images, the boundaries of cultivated land plots are not clear, which leads to the adhesion of plot extraction results, and the reliance on manual interpretation consumes a lot of manpower and material resources, making it difficult to meet the needs of large-scale plot extraction.

Method used

A deep learning method for remote sensing extraction of cultivated land plots with enhanced edge features is proposed. Based on the U-Net model, the edge feature module, the hole spatial convolution pooling pyramid module and the global attention mechanism are added to build the EAG-Net model. Through multi-task learning Strategies and composite loss functions to improve the completeness and accuracy of plot boundary extraction.

Benefits of technology

It effectively solves the adhesion problem caused by unclear plot boundaries, significantly improves the accuracy and completeness of plot extraction, and achieves high-precision farmland plot extraction, which is suitable for precision agriculture and smart agriculture.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118334536B
    Figure CN118334536B
Patent Text Reader

Abstract

The present invention discloses a deep learning method for remote sensing extraction of cultivated land plots with enhanced edge features, obtaining a high-resolution remote sensing image of a study area; obtaining a black-and-white binary image of a real cultivated land plot corresponding to the high-resolution remote sensing image as a sample label, obtaining a real cultivated land plot boundary map and a real cultivated land plot distance change map corresponding to the black-and-white binary image of the real cultivated land plot, and using the high-resolution remote sensing image as a sample, constructing a training data set, a test data set, and a verification data set based on the sample; constructing an EAG‑Net model and a composite loss function; training the EAG‑Net model based on the training data set to obtain a trained EAG‑Net model. The present invention effectively solves the problem that the unclear boundaries of cultivated land plots lead to the adhesion of plot extraction results. More importantly, the method can not only extract the boundaries of plots well, but also enhance the integrity of the plot extraction results, and significantly improve the extraction accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of farmland plot extraction from remote sensing images, and in particular to a deep learning method for remote sensing extraction of farmland plots with enhanced edge features. Background Art

[0002] As the most basic means of agricultural production, cultivated land is not only the most basic element of food production, but also the basic natural resource and important spatial carrier for human survival and development. Timely and accurate acquisition of large-scale cultivated land information is of great significance to agricultural production and management.

[0003] Traditional methods of obtaining cultivated land information mostly rely on field surveys, which consume a lot of manpower, material and financial resources, and have poor timeliness, making it difficult to extract large-scale cultivated land information and crop planting conditions. Remote sensing technology is a ground observation technology that perceives objects over a large range and at a long distance. It has many advantages, such as large coverage area, strong timeliness, and rich information. It is widely used in cultivated land extraction tasks. With the rapid development of satellite sensor technology, the spatial resolution of remote sensing images has gradually increased to the meter level or even sub-meter level. The features of the objects presented in the images are more refined, providing important data support for obtaining cultivated land plot information.

[0004] With respect to high-resolution remote sensing images, domestic and foreign scholars have conducted a number of research methods on the extraction of cultivated land plots, which are mainly divided into manual vectorization methods and computer automatic extraction methods. The manual vectorization method relies on manual visual interpretation, obtains cultivated land plot data by digital means, and obtains cultivated land plots through human-computer interactive interpretation of GF-2 images. The farmland plot data is obtained by manually digitizing the GF-2 image. However, this method requires professional technicians with rich experience in image interpretation to perform visual interpretation, which consumes a lot of manpower and material resources, and this high-cost and low-efficiency method is difficult to meet the needs of large-scale cultivated land plot extraction. Summary of the invention

[0005] In view of the above-mentioned problems existing in the prior art, a deep learning method for remote sensing extraction of cultivated land plots with enhanced edge features is provided, which solves the problem of how to effectively improve the problems of incomplete extracted plot boundaries and adhesion of adjacent plots due to the similarity of spectral information between adjacent plots or too narrow plot spacing, and shows superior performance in the extraction of cultivated land plots.

[0006] The present invention achieves the above-mentioned purpose through the following technical solutions:

[0007] A deep learning method for remote sensing extraction of cultivated land with enhanced edge features, comprising the following steps:

[0008] Step 1: Obtain high-resolution remote sensing images of the study area;

[0009] Step 2: Obtain the real black-and-white binary image of the cultivated land plot corresponding to the high-resolution remote sensing image as the sample label, obtain the real cultivated land plot boundary map and the real cultivated land plot distance change map corresponding to the real cultivated land plot black-and-white binary image, use the high-resolution remote sensing image as the sample, and construct the training data set, test data set, and verification data set based on the sample;

[0010] Step 3: Construct EAG-Net model and composite loss function;

[0011] Step 4: Train the EAG-Net model based on the training data set to obtain the trained EAG-Net model.

[0012] The real cultivated land plot black and white binary map, the real cultivated land plot boundary map and the real cultivated land plot distance change map in step 2 are obtained based on the following steps:

[0013] Step 21: Draw the vector data of cultivated land plots corresponding to the high-resolution remote sensing image;

[0014] Step 22: Convert the cultivated land plot vector data into a real cultivated land plot black and white binary image;

[0015] Step 23: Based on the black-and-white binary image of the real cultivated land parcel, calculate the corresponding real cultivated land parcel boundary image and the real cultivated land parcel distance change image.

[0016] Constructing the training data set, the test data set, and the validation data set in step 2 as described above includes the following steps:

[0017] The high-resolution remote sensing image, the corresponding black-and-white binary map of the real cultivated land plot, the corresponding real cultivated land plot boundary map and the corresponding real cultivated land plot distance change map are cropped to a set size; the cropped high-resolution remote sensing image, the cropped black-and-white binary map of the real cultivated land plot, the cropped real cultivated land plot boundary map and the cropped real cultivated land plot distance change map are rotated and flipped, and noise is randomly added to the cropped high-resolution remote sensing image to achieve the expansion of the high-resolution remote sensing image. The expanded high-resolution remote sensing image is used as a sample, and a training data set, a test data set, and a verification data set are constructed based on the sample.

[0018] Constructing the EAG-Net model in step 3 as described above includes the following steps:

[0019] Step 31: Add an edge feature module based on the encoder of the U-Net model;

[0020] Step 32: Introduce a dilated spatial convolutional pooling pyramid module at the bottom of the encoder of the U-Net model;

[0021] Step 33: Introduce a global attention mechanism module at the decoder end of the U-Net model.

[0022] As described above, the edge feature module in step 31 includes an edge perception module and an edge guidance feature module, and adding the edge feature module in step 31 includes the following steps:

[0023] Step 311: The edge perception module performs 1×1 convolution on the low-level feature f2 and the high-level feature f5, adjusts the number of channels to 256, and obtains feature f2′ and feature f5′ respectively. The low-level feature f2 is the output feature of the second downsampling layer of the encoder, and the high-level feature f5 is the output feature of the fifth downsampling layer of the encoder.

[0024] Step 312: Use bilinear interpolation to upsample feature f5′ to obtain feature f5″, so that the size of feature f5″ is consistent with the size of feature f2′;

[0025] Step 313: concatenate the features f2′ and f5″ in the channel dimension to obtain the feature ft;

[0026] Step 314: Perform two 3×3 convolutions and one 1×1 convolution operation on the feature ft, and then use the Sigmoid activation function to perform a nonlinear transformation to obtain the feature map fe.

[0027] Step 315: Use the edge-guided feature module to integrate the feature map fe with the feature to be calculated fi to obtain the corresponding primary feature f, where the feature to be calculated fi is the output feature of the i-th downsampling layer of the encoder, where the value range of i is 2~5,

[0028] Step 316: After performing average pooling, 1D convolution and Sigmoid activation function operations on the primary feature f, feature f′ is obtained;

[0029] Step 317: Use a multiplication operation to fuse the primary feature f and the feature f′ to obtain the feature f″, and use a 1×1 convolution operation to reduce the number of channels of the feature f″ to obtain the final enhanced feature F corresponding to the feature fi to be calculated. The final enhanced feature F is input into the i-th upsampling layer of the decoder.

[0030] In step 315 described above, the feature graph fe is integrated with the feature to be calculated fi by using the edge-guided feature module to obtain the corresponding primary feature f, which includes the following steps:

[0031] First, the feature fe is downsampled to obtain the feature fe′, so that the size of the feature fe′ and the feature fi to be calculated are consistent, and the feature fe′ is multiplied by the feature fi to be calculated to obtain the feature fe″, and then the feature fe″ is added to the feature fi to be calculated, and a 3×3 convolution operation is performed to obtain the primary feature f.

[0032] As described above, in step 32, introducing a dilated spatial convolutional pooling pyramid module at the bottom of the encoder of the U-Net model includes the following steps:

[0033] Step 321: Introduce three 3×3 convolution kernels with different expansion rates to operate on the output feature f6 of the sixth downsampling layer of the input encoder to obtain features f61, f62, and f63 of receptive fields of different scales, and at the same time perform convolution operations on the features f61, f62, and f63 through 1×1 convolution to obtain feature f64;

[0034] Step 322: The output feature f6 is subjected to global average pooling, 1×1 convolution and upsampling operations to obtain feature f65;

[0035] Step 323: stacking the features f61, f62, f63, f64 and f65 to obtain a multi-scale feature f6′;

[0036] Step 324: The feature f6′ is convolved with the output feature f6 of the sixth downsampling layer of the input encoder through a 1×1 convolution operation to keep the number of channels consistent, and finally the output result f6″ is obtained. The output result f6″ is input to the first upsampling layer corresponding to the decoder.

[0037] As described above, introducing the global attention mechanism module at the decoder end of the U-Net model in step 33 includes the following steps:

[0038] Step 331: The global attention mechanism module includes two modules: channel attention and spatial attention. First, the feature FJ1 output by the decoder of the U-Net model is enhanced in the spatial dimension through the channel attention module to obtain the feature FJ2;

[0039] Step 332: Perform spatial attention module operation on feature FJ2 to obtain feature FJ3;

[0040] The calculation formula of the channel attention module is as follows: ,

[0041] Where M C (FJ1) represents the channel attention map, represents element-wise multiplication, FJ2 represents the features calculated by the channel attention module,

[0042] The calculation formula of the spatial attention module is as follows: ,

[0043] Where FJ3 represents the feature calculated by the spatial attention module, M C (FJ2) represents the spatial intention diagram, Represents element-wise multiplication.

[0044] As mentioned above, the composite loss function L is based on the following formula: , where L represents the composite loss function of the EAG-Net model, represents the loss function of the plot range, represents the loss function of the plot boundary, represents the loss function for the internal distance of the plot,

[0045] Plot-wide loss function The definition is as follows: , where represents the loss function of the plot range, Represents the black and white binary image of the real cultivated land plot corresponding to the sample, Represents the black and white binary probability map of the predicted cultivated land plot corresponding to the sample,

[0046] The loss function for the plot boundary is defined as follows: , where represents the loss function of the plot boundary, A represents the real cultivated land plot boundary map corresponding to the sample, B represents the predicted cultivated land plot boundary map corresponding to the sample, represents the intersection operation. represents the union operation,

[0047] The loss function for the internal distance of a plot is defined as follows: , where represents the loss function of the internal distance of the plot, N represents the number of samples, It represents the distance change diagram of the real cultivated land plots corresponding to the samples, Represents the predicted cultivated land plot distance change map corresponding to the samples.

[0048] Compared with the prior art, the present invention has the following main advantages:

[0049] The deep learning method for remote sensing extraction of cultivated land plots with enhanced edge features proposed in the present invention effectively solves the problem of unclear boundaries of cultivated land plots leading to sticky plot extraction results by enhancing edge features. More importantly, this method can not only extract the boundaries of plots well, but also enhance the integrity of plot extraction results, significantly improve the extraction accuracy, and is of great significance for precision agriculture and smart agriculture. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 It is the EAG-Net model structure diagram of the present invention.

[0051] Figure 2 This is the structure diagram of the atrous spatial convolution pooling pyramid module.

[0052] Figure 3 This is the module structure diagram of the global attention mechanism.

[0053] Figure 4 This is the structure diagram of the edge perception module.

[0054] Figure 5 It is the structural diagram of the edge-guided feature module.

[0055] Figure 6 This is the structure diagram of the channel attention module.

[0056] Figure 7 This is the structure diagram of the spatial attention module.

[0057] Figure 8 (a) Schematic diagram of the first sample;

[0058] Figure 8 (b) is a schematic diagram of the sample label of the first sample (a black-and-white binary image of a real cultivated land plot);

[0059] Figure 8 (c) is a black-and-white binary image of the predicted cultivated land obtained by processing the first sample with the U-Net model;

[0060] Figure 8 (d) is a black-and-white binary image of the predicted cultivated land obtained by processing the first sample with the Psi-Net model;

[0061] Figure 8 (e) is a black-and-white binary image of the predicted cultivated land obtained by processing the first sample with the BsiNet model;

[0062] Figure 8 (f) is a black-and-white binary image of the predicted cultivated land obtained by processing the first sample with the EAG-Net model;

[0063] Figure 9 (a) Schematic diagram of the second sample;

[0064] Figure 9 (b) is a schematic diagram of the sample label of the second sample (a real black-and-white binary image of a cultivated land plot);

[0065] Figure 9 (c) is a black-and-white binary image of the predicted cultivated land obtained by processing the second sample with the U-Net model;

[0066] Figure 9 (d) is a black-and-white binary image of the predicted cultivated land obtained by processing the second sample with the Psi-Net model;

[0067] Figure 9 (e) is a black-and-white binary image of the predicted cultivated land obtained by processing the second sample with the BsiNet model;

[0068] Figure 9 (f) is the black-and-white binary image of the predicted cultivated land obtained by processing the second sample with the EAG-Net model;

[0069] Figure 10 (a) Schematic diagram of the third sample;

[0070] Figure 10 (b) is a schematic diagram of the sample label of the third sample (a black-and-white binary image of a real cultivated land plot);

[0071] Figure 10 (c) is a black-and-white binary image of the predicted cultivated land obtained by processing the third sample with the U-Net model;

[0072] Figure 10 (d) is a black-and-white binary image of the predicted cultivated land obtained by processing the third sample with the Psi-Net model;

[0073] Figure 10 (e) is a black-and-white binary image of the predicted cultivated land obtained by processing the third sample with the BsiNet model;

[0074] Figure 10 (f) is a black-and-white binary image of the predicted cultivated land obtained by processing the third sample with the EAG-Net model;

[0075] Figure 11 (a) Schematic diagram of the fourth sample;

[0076] Figure 11 (b) is a schematic diagram of the sample label of the fourth sample (a black-and-white binary image of a real cultivated land plot);

[0077] Figure 11 (c) is a black-and-white binary image of the predicted cultivated land obtained by processing the fourth sample with the U-Net model;

[0078] Figure 11 (d) is a black-and-white binary image of the predicted cultivated land obtained by processing the fourth sample with the Psi-Net model;

[0079] Figure 11 (e) is a black-and-white binary image of the predicted cultivated land obtained by processing the fourth sample with the BsiNet model;

[0080] Figure 11 (f) is a black-and-white binary image of the predicted cultivated land obtained by processing the fourth sample with the EAG-Net model;

[0081] Figure 12 (a) is a black-and-white binary image of the predicted cultivated land obtained by processing the first sample with the U-Net+E model;

[0082] Figure 12 (b) is a black-and-white binary image of the predicted cultivated land obtained by processing the first sample with the U-Net+EA model;

[0083] Figure 12 (c) is a black-and-white binary image of the predicted cultivated land obtained by processing the first sample with the U-Net+EG model;

[0084] Figure 12 (d) is a black-and-white binary image of the predicted cultivated land obtained by processing the first sample with the U-Net+A model;

[0085] Figure 12 (e) is a black-and-white binary image of the predicted cultivated land obtained by processing the first sample with the U-Net+G model;

[0086] Figure 12 (f) is a black-and-white binary image of the predicted cultivated land obtained by processing the first sample with the U-Net+AG model;

[0087] Figure 13 (a) is a black-and-white binary image of the predicted cultivated land obtained by processing the second sample with the U-Net+E model;

[0088] Figure 13 (b) is a black-and-white binary image of the predicted cultivated land obtained by processing the second sample with the U-Net+EA model;

[0089] Figure 13 (c) is a black-and-white binary image of the predicted cultivated land obtained by processing the second sample with the U-Net+EG model;

[0090] Figure 13 (d) is a black-and-white binary image of the predicted cultivated land obtained by processing the second sample with the U-Net+A model;

[0091] Figure 13 (e) is a black-and-white binary image of the predicted cultivated land obtained by processing the second sample with the U-Net+G model;

[0092] Figure 13 (f) is a black-and-white binary image of the predicted cultivated land obtained by processing the second sample with the U-Net+AG model;

[0093] Figure 14 (a) is a black-and-white binary image of the predicted cultivated land obtained by processing the third sample with the U-Net+E model;

[0094] Figure 14 (b) is a black-and-white binary image of the predicted cultivated land obtained by processing the third sample with the U-Net+EA model;

[0095] Figure 14 (c) is a black-and-white binary image of the predicted cultivated land obtained by processing the third sample with the U-Net+EG model;

[0096] Figure 14 (d) is a black-and-white binary image of the predicted cultivated land obtained by processing the third sample with the U-Net+A model;

[0097] Figure 14 (e) is a black-and-white binary image of the predicted cultivated land obtained by processing the third sample with the U-Net+G model;

[0098] Figure 14 (f) is a black-and-white binary image of the predicted cultivated land obtained by processing the third sample with the U-Net+AG model;

[0099] Figure 15 (a) is a black-and-white binary image of the predicted cultivated land obtained by processing the fourth sample with the U-Net+E model;

[0100] Figure 15 (b) is a black-and-white binary image of the predicted cultivated land obtained by processing the fourth sample with the U-Net+EA model;

[0101] Figure 15 (c) is a black-and-white binary image of the predicted cultivated land obtained by processing the fourth sample with the U-Net+EG model;

[0102] Figure 15 (d) is a black-and-white binary image of the predicted cultivated land obtained by processing the fourth sample with the U-Net+A model;

[0103] Figure 15 (e) is a black-and-white binary image of the predicted cultivated land obtained by processing the fourth sample with the U-Net+G model;

[0104] Figure 15 (f) is a black-and-white binary image of the predicted cultivated land obtained by processing the fourth sample using the U-Net+AG model. DETAILED DESCRIPTION

[0105] In order to facilitate those skilled in the art to understand and implement the present invention, the present invention is further described in detail below in conjunction with embodiments. It should be understood that the implementation examples described herein are only used to illustrate and explain the present invention and are not used to limit the present invention.

[0106] Aiming at the problems of incomplete extraction of plot boundaries and adhesion of adjacent plots due to similarity of spectral information between adjacent plots or too narrow plot spacing, the present invention proposes a deep learning method for remote sensing extraction of cultivated land plots with enhanced edge features, thus achieving high-precision extraction of cultivated land plots. Specifically, the present invention adds an edge feature module on the basis of the U-Net model to help the network better understand the plot boundaries; at the same time, in order to capture the features and contextual information of plots of different scales, the present invention introduces a dilated spatial convolutional pooling pyramid module at the bottom of the encoder; finally, in order to more efficiently integrate global and local features and fully capture boundary details and complex textures, the present invention introduces a global attention mechanism module at the end of the model decoder.

[0107] Example 1

[0108] A deep learning method for remote sensing extraction of cultivated land with enhanced edge features, comprising the following steps:

[0109] Step 1: Obtain high-resolution remote sensing images of the study area:

[0110] The GF-2 image data was obtained from the land observation satellite data service platform of the China Resources Satellite Application Center. The ENVI software was used to preprocess the acquired GF-2 images. The main steps were: first, the multispectral band data of the GF-2 images were calibrated by radiation, atmospheric correction and geometric correction; secondly, the panchromatic band data of the GF-2 images were calibrated by radiation and orthorectified; finally, the NNDiffuse Pan Sharpening method was used to fuse the processed panchromatic band data and multispectral band data to obtain a high-resolution remote sensing image with a resolution of 1 m.

[0111] Step 2: Obtain the real black-and-white binary image of the cultivated land plot corresponding to the high-resolution remote sensing image as the sample label, obtain the real cultivated land plot boundary map and the real cultivated land plot distance change map corresponding to the real cultivated land plot black-and-white binary image, use the high-resolution remote sensing image as the sample, and construct the training data set, test data set, and verification data set based on the sample;

[0112] The specific steps include:

[0113] Step 21: Based on the high-resolution remote sensing image preprocessed in step 1, the vector surface construction method in ArcMap software is used to draw the cultivated land plot vector data corresponding to the high-resolution remote sensing image, and the non-cultivated land area is not drawn;

[0114] Step 22: Based on the cultivated land plot vector data constructed in step 21, the vector-to-raster tool in ArcMap software is used to convert the cultivated land plot vector data into a real cultivated land plot black-and-white binary map, where the cultivated land plot is white and the non-cultivated land plot is black;

[0115] Step 23: Based on the black-and-white binary image of the real cultivated land obtained in step 22, the Canny function and the Distance Transform function in the cv2 library are used to calculate the corresponding real cultivated land boundary map and the real cultivated land distance change map;

[0116] Step 24: To facilitate model input, the high-resolution remote sensing image, the corresponding real farmland plot black-and-white binary image, the corresponding real farmland plot boundary image, and the corresponding real farmland plot distance change image are cropped to a set size, which is 256 in this embodiment. 256 size;

[0117] Step 25: In order to prevent model overfitting and improve model robustness, the cropped high-resolution remote sensing image, the cropped black-and-white binary image of the real cultivated land plot, the cropped real cultivated land plot boundary map and the cropped real cultivated land plot distance change map are rotated and flipped to expand the high-resolution remote sensing image, the real cultivated land plot black-and-white binary image, the real cultivated land plot boundary map and the real cultivated land plot distance change map. The cropped high-resolution remote sensing image is expanded by randomly adding noise. The expanded high-resolution remote sensing image is used as a sample, and finally 18,000 samples for constructing the training data set and the verification data set, and 700 samples for constructing the test data set are obtained. The 18,000 samples are divided into a training data set of 14,400 samples and a verification data set of 3,600 samples according to a sample ratio of 8:2. At the same time, in order to ensure the correctness of the model test, 700 pairs of images are selected as the test data set.

[0118] Step 3, build the EAG-Net model:

[0119] Based on the U-Net model, the EAG-Net model is improved. The EAG-Net model includes an encoder and a decoder. The structure of the EAG-Net model is as follows: Figure 1 As shown in the figure, firstly, an edge feature module and a dilated spatial convolutional pooling pyramid module are added to the encoder of the U-Net model to help the network better understand the boundaries of plots, capture the features and contextual information of plots of different scales, and then form the encoder of the EAG-Net model. Then, a global attention mechanism module is introduced at the end of the decoder of the U-Net model to more efficiently integrate global and local features, fully capture boundary details and complex texture information, and then form the decoder of the EAG-Net model. Finally, the cultivated land plot extraction result is obtained according to the calculation results of the decoder of the EAG-Net model, including the following steps:

[0120] The edge feature module, the dilated spatial convolutional pooling pyramid module and the global attention mechanism module are added to the U-Net model. At the same time, the EAG-Net model is proposed in combination with the multi-task learning strategy. The specific steps include:

[0121] Step 31: Based on the encoder of the U-Net model, an edge feature module is added to help the network better understand the boundaries of plots;

[0122] Step 32: Introduce a dilated spatial convolutional pooling pyramid module at the bottom of the encoder of the U-Net model to capture multi-scale semantic information through convolution operations and global pooling at different scales, so that the model can better understand the features and contextual information of plots at different scales. Its structure is as follows: Figure 2 As shown;

[0123] Step 33: Introduce a global attention mechanism module at the end of the decoder of the U-Net model to more efficiently integrate global and local features and fully capture boundary details and complex textures to improve the recognition accuracy of land parcels. Its structure is as follows: Figure 3 As shown;

[0124] Step 34: The EAG-Net model adopts a multi-task learning strategy, using the Adam optimizer and a composite loss function.

[0125] In the above step 31, the edge feature adding module includes an edge perception module and an edge guidance feature module. The edge perception module can integrate low-level features and high-level features; and the edge guidance feature module can force the network to pay more attention to the object structure and details, and gradually aggregate multi-level fusion features from top to bottom. The specific steps are as follows:

[0126] Step 311: Use the edge perception module to combine the low-level feature f2 containing local edge details and the high-level feature f5 containing global position information, where the low-level feature f2 is the output feature of the second downsampling layer of the encoder, and the high-level feature f5 is the output feature of the fifth downsampling layer of the encoder. The structure of the edge perception module is as follows: Figure 4 First, perform 1×1 convolution on the low-level feature f2 and the high-level feature f5, adjust the number of channels to 256, and obtain the feature f2′ and feature f5′ respectively;

[0127] Step 312: Use bilinear interpolation to upsample feature f5′ to obtain feature f5″, so that the size of feature f5″ is consistent with the size of feature f2′;

[0128] Step 313: Use the concat function to concatenate the features f2′ and f5″ in the channel dimension to obtain the feature ft;

[0129] Step 314: Perform two 3×3 convolutions and one 1×1 convolution operation on the feature ft, and then use the Sigmoid activation function to perform a nonlinear transformation to obtain the feature map fe.

[0130] Step 315: Use the edge-guided feature module to integrate the feature map fe with the feature to be calculated fi to obtain the corresponding primary feature f. The feature to be calculated fi is the output feature of the i-th downsampling layer of the encoder, where the value range of i is 2~5, to guide feature enhancement. Its structure is as follows Figure 5As shown. First, the feature fe is downsampled to obtain the feature fe′, so that the size of the feature fe′ and the feature fi to be calculated (the output feature of the second downsampling layer of the encoder or the output feature of the third downsampling layer or the output feature of the fourth downsampling layer or the output feature of the fifth downsampling layer) are consistent, and the feature fe′ is multiplied with the feature fi to be calculated to obtain the feature fe″, and then the feature fe″ is added to the feature fi to be calculated, and a 3×3 convolution operation is performed to obtain a primary feature f;

[0131] Step 316: After performing average pooling, 1D convolution and Sigmoid activation function operations on the primary feature f, feature f′ is obtained;

[0132] Step 317: Use a multiplication operation to fuse the primary feature f and the feature f′ to obtain the feature f″, and use a 1×1 convolution operation to reduce the number of channels of the feature f″ to obtain the final enhanced feature F corresponding to the feature fi to be calculated. The final enhanced feature F is input into the i-th upsampling layer of the decoder.

[0133] In the above step 32, the introduction of the dilated spatial convolutional pooling pyramid module includes the following steps:

[0134] Step 321: Introduce three 3×3 convolution kernels with different expansion rates (6, 12, 18) to operate on the output feature f6 of the sixth downsampling layer of the input encoder to obtain features f61, f62, and f63 of receptive fields of different scales. At the same time, perform convolution operations on features f61, f62, and f63 through 1×1 convolution to obtain feature f64;

[0135] Step 322: In order to fully obtain global semantic information, the output feature f6 is subjected to global average pooling, 1×1 convolution and upsampling operations to obtain feature f65;

[0136] Step 323: Based on the calculation results of steps 321 and 322, feature f61, feature f62, feature f63, feature f64 and feature f65 are stacked to obtain a multi-scale feature f6′;

[0137] Step 324: Based on the calculation result of step 323, the feature f6′ is convolved with the output feature f6 of the sixth downsampling layer of the input encoder through a 1×1 convolution operation to keep the number of channels consistent, and finally the output result f6″ of the atrous spatial convolution pooling pyramid module is obtained. The output result f6″ is directly input to the first upsampling layer corresponding to the decoder.

[0138] In the above step 33, the introduction of the global attention mechanism module at the decoder end of the U-Net model includes the following steps:

[0139] Step 331: The global attention mechanism module includes two modules: channel attention and spatial attention. First, the feature FJ1 output by the decoder of the U-Net model is enhanced in the spatial dimension through the channel attention module to obtain the feature FJ2, whose structure is as follows: Figure 6 As shown;

[0140] Step 332: Based on the calculation result of step 331, feature FJ2 is operated by the spatial attention module to enhance the expressiveness of the feature in the spatial dimension, and feature FJ3 is obtained, whose structure is as follows: Figure 7 shown.

[0141] In the above step 331, the calculation formula of the channel attention module is as follows:

[0142] , where FJ1 represents the input feature, M C (FJ1) represents the channel attention map, represents element-wise multiplication, and FJ2 represents the features calculated by the channel attention module.

[0143] In the above step 332, the calculation formula of the spatial attention module is as follows: ,

[0144] Where FJ3 represents the feature calculated by the spatial attention module, M C (FJ2) represents the spatial intention diagram, represents element-wise multiplication, and FJ2 represents the features calculated by the channel attention module. The input of the EAG-Net model is a high-resolution remote sensing image, and the output result is a predicted black-and-white binary probability map of cultivated land. Based on the predicted black-and-white binary probability map of cultivated land, the corresponding predicted black-and-white binary map of cultivated land, the predicted cultivated land boundary map, and the predicted cultivated land distance change map are obtained.

[0145] In the above step 34, the composite loss function L is defined as follows: , where L represents the composite loss function of the EAG-Net model, The loss function representing the range of the plot uses the binary cross entropy loss function. The loss function for the plot boundary is represented by the Jaccard loss function. The loss function representing the internal distance of the plot uses the mean square error loss function.

[0146] Plot-wide loss function The definition is as follows: , where represents the loss function of the plot range, Represents the black and white binary image of the real cultivated land plot corresponding to the sample, Represents the black and white binary probability map of the predicted cultivated land plot corresponding to the sample.

[0147] The loss function for the plot boundary is defined as follows: , where represents the loss function of the plot boundary, A represents the real cultivated land plot boundary map corresponding to the sample, B represents the predicted cultivated land plot boundary map corresponding to the sample, represents the intersection operation. Represents a union operation.

[0148] The loss function for the internal distance of a plot is defined as follows: , where represents the loss function of the internal distance of the plot, N represents the number of samples, It represents the distance change diagram of the real cultivated land plots corresponding to the samples, Represents the predicted cultivated land plot distance change map corresponding to the samples.

[0149] Step 4: Perform EAG-Net model training based on the training data set to obtain a trained EAG-Net model.

[0150] Based on the training data set obtained in step 2, the EAG-Net model is trained to obtain the training weight parameters of the EAG-Net model. Finally, the samples of the test data set are input into the EAG-Net model to extract the cultivated land and evaluate the results, including the following steps:

[0151] Step 41: The initial learning rate of the EAG-Net model is 0.0001; the learning rate decay method is cosine annealing; the training batch of the EAG-Net model is set to 4; the number of iterations of the EAG-Net model is set to 100;

[0152] Step 42: Input the samples of the training data set into the EAG-Net model for training, and use the weight of the last iteration as the weight of the trained EAG-Net model;

[0153] The trained EAG-Net model is tested based on the samples of the test data set, and the predicted black-and-white binary map of cultivated land, the predicted boundary map of cultivated land and the predicted distance change map of cultivated land are output;

[0154] The difference between the predicted black-and-white binary image of the cultivated land plot and the real black-and-white binary image of the cultivated land plot corresponding to the sample is calculated, and the true positive (True Positive, TP), false positive (False Positive, FP), false negative (False Negative, FN) and true negative (True Negative, TN) of the cultivated land plot extraction results are counted. The precision (Precision), recall rate (Recall), F1 value and intersection of Union (IoU) are calculated, and the model accuracy is evaluated based on these four indicators.

[0155] Example 2

[0156] This embodiment uses multiple domestic high-resolution remote sensing images to conduct experiments. Steps 1-4 in Embodiment 1 are implemented.

[0157] Experimental setup:

[0158] The present invention uses the Pytorch framework to conduct experiments in the Ubuntu system, and the graphics cards are 2 Nvidia GeForceRTX3090 (with a total of 48GB of video memory). The initial learning rate of the model is 0.0001, the number of iterations is 100, the batch size is 4, and the Adam optimizer is used for the experiment. The learning rate decay mode is cosine decay. The training data set is used for training to obtain the training weight of the model, and the test data set is used for the final prediction to analyze the model's arable land plot extraction accuracy.

[0159] In order to verify that the effect of the present invention on the extraction of cultivated land plots is better than that of the basic deep learning model, the black-and-white binary images of cultivated land plots predicted by the three basic network models of U-Net, Psi-Net and BsiNet were compared with the black-and-white binary images of cultivated land plots predicted by the EAG-Net model of the present invention for comparative experiments, and each model used the same training data set and experimental parameters.

[0160] It can be seen from Figures 8 (a) to 8 (f), Figures 9 (a) to 9 (f), Figures 10 (a) to 10 (f), and Figures 11 (a) to 11 (f) that in the black-and-white binary images of predicted cultivated land plots identified by the U-Net, Psi-Net, and BsiNet models, there are inaccurate boundary extraction and adhesion of plots with similar colors, and the plot information cannot be accurately obtained. In the black-and-white binary images of predicted cultivated land plots of the EAG-Net model, there are only very few adhesion phenomena, and most of the recognition results are good. Therefore, this further illustrates that the plot results extracted by the EAG-Net model proposed in the present invention have fewer adhesion phenomena, and the plot information can be directly and accurately obtained, which can provide a data basis for subsequent crop classification at the plot scale.

[0161] Quantitative comparison of experimental results:

[0162] The quantitative evaluation of the experimental results of each model is shown in Table 1. The indicators in the table are overall accuracy (Accuracy), precision (Precision), recall (Recall), comprehensive evaluation index (F1) and intersection over union (IoU). It can be seen from Table 1 that the EAG-Net model proposed in the present invention has the highest accuracy in predicting the black and white binary map of cultivated land plots, with a specific overall accuracy of 92.57%, a precision of 92.83%, a recall of 92.20%, an F1 of 92.52%, and an IoU of 86.07%, which is 2.10%, 2.85%, 1.34%, 2.10% and 3.56% higher than the overall accuracy, precision, recall, F1 and IoU of the U-Net model in predicting the black and white binary map of cultivated land plots. Compared with the experimental results of other cultivated land extraction models, the overall accuracy of the EAG-Net model in predicting the black and white binary images of cultivated land plots is improved by 1.62% (92.57% vs 90.95%) and 0.61% (92.57% vs 91.96%) compared with the Psi-Net and BsiNet models; the precision is improved by 2.37% (92.83% vs 90.46%) and 1.93% (92.83% vs 90.90%); the recall rate is improved by 0.86% (92.20% vs 91.34%) compared with the Psi-Net model, and is reduced by 0.50% (92.20% vs 92.70%) compared with the BsiNet model; the F1 is improved by 1.62% (92.52% vs 90.90%) and 0.73% (92.52% vs 91.79%); IoU increased by 4.18% (86.07% vs 81.89%) and 2.16% (86.07% vs 83.91%).

[0163] Table 1

[0164]

[0165] Table 1 is the extraction accuracy table of the black and white binary images of cultivated land plots of each model.

[0166] Example 3

[0167] This embodiment uses multiple domestic high-resolution remote sensing images to conduct experiments. Steps 1-4 in Embodiment 1 are implemented.

[0168] In order to verify the effectiveness of the three improved parts of the EAG-Net model (introduction of edge perception module (E), dilated spatial convolutional pooling pyramid module (A) and global attention mechanism (G)), various combinations of the three improved parts were used to carry out comparative experiments, and the parameters and training data sets of each experiment were the same.

[0169] Table 2

[0170]

[0171] Table 2 is an example table of improved module comparison experiment combinations.

[0172] Qualitative comparison of experimental results:

[0173] Figures 12(a) to 12(f), 13(a) to 13(f), 14(a) to 14(f), and 15(a) to 15(f) are comparison charts of the experimental results of the three improved parts of the EAG-Net model, which can more intuitively show the extraction results of the model by each improved module.

[0174] From Figure 12 (a) to Figure 12 (f), we can see the extraction of black and white binary images of cultivated land plots predicted by different models for the first sample of regular long strips of fields. It can be seen that the edge feature module (E) has a good recognition result for the boundary of the plots, and the adhesion phenomenon between the plots can be better avoided. The edge perception module (EAM) and the edge guided feature module (EFM) are key modules to improve the accuracy of plot boundary recognition. EAM combines simple edge information and complex semantic features to enhance the model's sensitivity to details; EFM enhances this effect by focusing on important feature channels, making the network pay more attention to the structure of the plot. The two modules work together to integrate rich low-level and high-level features, strengthen the network's attention to the structure of the object, and at the same time, through the gradual aggregation of multi-level features, ensure a full understanding of local details and global context, and jointly improve the model's ability to recognize boundaries.

[0175] From Figure 13 (a) to Figure 13 (f), we can see that different models extract the black and white binary image of the predicted cultivated land for the second sample with clear boundaries. It can be seen that different models can identify most of the plots well, but the result of only adding the void space convolution pooling pyramid module A and the global attention mechanism module G still has the problem of incomplete segmentation of adjacent plots.

[0176] From Figure 14 (a) to Figure 14 (f), we can see that different models extract the black and white binary images of the predicted cultivated land plots of the third sample with irregular boundaries and significant area differences. Although each model can successfully identify most of the plots, the area marked by the box can be seen, but the effect of adding a single module (A / G / E) is not as good as the combination of multiple modules, especially the places where large plots are connected cannot be segmented well. Among them, in the experiment of adding only the void space convolution pooling pyramid module A, it cannot handle closely connected plots well. Although the ASPP module can increase the receptive field and capture multi-scale information, it may not provide enough detailed information to distinguish closely adjacent plots for irregular and adherent plot boundaries. For complex plot boundaries, richer high-level semantic features may be required to correctly identify and segment adherent plots.

[0177] From Figure 15 (a) to Figure 15 (f), we can see that different models can extract the black and white binary image of the predicted cultivated land plots of the fourth sample with large color differences and multiple small-area plots. Most of the plots with clear boundaries can be identified and extracted, and the final model has the best effect.

[0178] Quantitative comparison of experimental results:

[0179] The quantitative evaluation of the experimental results of the three improved modules (A / G / E) is shown in Table 3. It can be seen from Table 3 that after the introduction of the edge perception module (U-Net+E), the void space convolution pooling pyramid module (U-Net+A) and the global attention mechanism (U-Net+G), the overall accuracy of the farmland plot extraction results is improved by 1.88% (92.35% vs 90.47%), 0.77% (91.24% vs 90.47%) and 0.78% (91.25% vs 90.47%) respectively; the precision rate is improved by 2.52% (92.50% vs 89.98%), 0.73% (90.71% vs 89.98%) and 1.95% (91.93% vs 89.98%) respectively; the recall rate is improved by 1.21% (92.07% vs 90.86%), 0.66% (91.52% vs 90.86%) and -0.33% (90.53% vs 90.86%); F1 increased by 1.86% (92.28% vs 90.42%), 0.69% (91.11% vs 90.42%) and 0.81% (91.23% vs 90.42%); IoU increased by 3.16% (85.67% vs 82.51%), 1.17% (83.68% vs 82.51%) and 1.36% (83.87% vs 82.51%). Overall, in the EAG-Net model proposed in the present invention, the farmland plot extraction results of all three modules improved are better than those of improving two modules, and then better than those of improving one module, indicating that the improved three modules all promote the extraction of farmland plots.

[0180] Table 3

[0181]

[0182] Table 3 is the accuracy table of the model improvement comparison experiment results.

[0183] The above is only an explanation of the preferred embodiments of the present invention, but it should not be understood as a limitation of the claims. The present invention is not limited to the above embodiments, and its specific structure is allowed to be changed. All changes made within the protection scope of the independent claims of the present invention are within the protection scope of the present invention.

Claims

1. A deep learning method for remote sensing extraction of cultivated land with enhanced edge features, characterized in that: The following steps are involved: Step 1: Obtain high-resolution remote sensing images of the study area; Step 2: Obtain the real black-and-white binary image of the cultivated land plot corresponding to the high-resolution remote sensing image as the sample label, obtain the real cultivated land plot boundary map and the real cultivated land plot distance change map corresponding to the real cultivated land plot black-and-white binary image, use the high-resolution remote sensing image as the sample, and construct the training data set, test data set, and verification data set based on the sample; Step 3: Construct EAG-Net model and composite loss function; Step 4: Train the EAG-Net model based on the training data set to obtain the trained EAG-Net model; The construction of the EAG-Net model in step 3 includes the following steps: Step 31: Add an edge feature module based on the encoder of the U-Net model; Step 32: Introduce a dilated spatial convolutional pooling pyramid module at the bottom of the encoder of the U-Net model; Step 33: Introduce the global attention mechanism module at the decoder end of the U-Net model; The edge feature module in step 31 includes an edge perception module and an edge guidance feature module. Adding the edge feature module in step 31 includes the following steps: Step 311: The edge perception module performs 1×1 convolution on the low-level feature f2 and the high-level feature f5, adjusts the number of channels to 256, and obtains feature f2′ and feature f5′ respectively. The low-level feature f2 is the output feature of the second downsampling layer of the encoder, and the high-level feature f5 is the output feature of the fifth downsampling layer of the encoder. Step 312: Use bilinear interpolation to upsample feature f5′ to obtain feature f5″, so that the size of feature f5″ is consistent with the size of feature f2′; Step 313: concatenate the features f2′ and f5″ in the channel dimension to obtain the feature ft; Step 314: Perform two 3×3 convolutions and one 1×1 convolution operation on the feature ft, and then use the Sigmoid activation function to perform a nonlinear transformation to obtain the feature map fe. Step 315: Use the edge-guided feature module to integrate the feature map fe with the feature to be calculated fi to obtain the corresponding primary feature f, where the feature to be calculated fi is the output feature of the i-th downsampling layer of the encoder, where the value range of i is 2~5, Step 316: After performing average pooling, 1D convolution and Sigmoid activation function operations on the primary feature f, feature f′ is obtained; Step 317: Use a multiplication operation to fuse the primary feature f and the feature f′ to obtain a feature f″, and use a 1×1 convolution operation to reduce the number of channels of the feature f″ to obtain a final enhanced feature F corresponding to the feature fi to be calculated, and the final enhanced feature F is input into the i-th upsampling layer of the decoder; In step 315, the feature graph fe is integrated with the feature to be calculated fi by using the edge-guided feature module to obtain the corresponding primary feature f, which includes the following steps: First, downsample the feature fe to obtain the feature fe′, so that the size of the feature fe′ and the feature fi to be calculated are consistent, and multiply the feature fe′ and the feature fi to be calculated to obtain the feature fe″, then add the feature fe″ and the feature fi to be calculated, and perform a 3×3 convolution operation to obtain the primary feature f; In step 32, introducing a dilated spatial convolutional pooling pyramid module at the bottom of the encoder of the U-Net model includes the following steps: Step 321: Introduce three 3×3 convolution kernels with different expansion rates to operate on the output feature f6 of the sixth downsampling layer of the input encoder to obtain features f61, f62, and f63 of receptive fields of different scales, and at the same time perform convolution operations on the features f61, f62, and f63 through 1×1 convolution to obtain feature f64; Step 322: The output feature f6 is subjected to global average pooling, 1×1 convolution and upsampling operations to obtain feature f65; Step 323: stacking the features f61, f62, f63, f64 and f65 to obtain a multi-scale feature f6′; Step 324: The feature f6′ is convolved with the output feature f6 of the sixth downsampling layer of the input encoder through a 1×1 convolution operation to keep the number of channels consistent, and finally the output result f6″ is obtained. The output result f6″ is input to the first upsampling layer corresponding to the decoder; In step 33, introducing a global attention mechanism module at the decoder end of the U-Net model includes the following steps: Step 331: The global attention mechanism module includes two modules: channel attention and spatial attention. First, the feature FJ1 output by the decoder of the U-Net model is enhanced in the spatial dimension through the channel attention module to obtain the feature FJ2; Step 332: Perform spatial attention module operation on feature FJ2 to obtain feature FJ3; The calculation formula of the channel attention module is as follows: , Where M C (FJ1) represents the channel attention map, represents element-wise multiplication, FJ2 represents the features calculated by the channel attention module, The calculation formula of the spatial attention module is as follows: , Where FJ3 represents the feature calculated by the spatial attention module, M C (FJ2) represents the spatial intention diagram, It means element-wise multiplication; The composite loss function L is based on the following formula: , where L represents the composite loss function of the EAG-Net model, represents the loss function of the plot range, represents the loss function of the plot boundary, represents the loss function for the internal distance of the plot, Plot-wide loss function The definition is as follows: , where represents the loss function of the plot range, Represents the black and white binary image of the real cultivated land plot corresponding to the sample, Represents the black and white binary probability map of the predicted cultivated land plot corresponding to the sample, The loss function for the plot boundary is defined as follows: , where represents the loss function of the plot boundary, A represents the real cultivated land plot boundary map corresponding to the sample, B represents the predicted cultivated land plot boundary map corresponding to the sample, represents the intersection operation. represents the union operation, The loss function for the internal distance of a plot is defined as follows: , where represents the loss function of the internal distance of the plot, N represents the number of samples, It represents the distance change diagram of the real cultivated land plots corresponding to the samples, Represents the predicted cultivated land plot distance change map corresponding to the samples.

2. According to the deep learning method for remote sensing extraction of cultivated land with enhanced edge features in claim 1, it is characterized in that: The real cultivated land plot black-and-white binary image, the real cultivated land plot boundary image and the real cultivated land plot distance change image in step 2 are obtained based on the following steps: Step 21: Draw the vector data of cultivated land plots corresponding to the high-resolution remote sensing image; Step 22: Convert the cultivated land plot vector data into a real cultivated land plot black and white binary image; Step 23: Based on the black-and-white binary image of the real cultivated land parcel, calculate the corresponding real cultivated land parcel boundary image and the real cultivated land parcel distance change image.

3. According to the deep learning method for remote sensing extraction of cultivated land with enhanced edge features as described in claim 1, it is characterized in that: Constructing the training data set, the test data set, and the validation data set in step 2 includes the following steps: The high-resolution remote sensing image, the corresponding black-and-white binary map of the real cultivated land plot, the corresponding real cultivated land plot boundary map and the corresponding real cultivated land plot distance change map are cropped to a set size; the cropped high-resolution remote sensing image, the cropped black-and-white binary map of the real cultivated land plot, the cropped real cultivated land plot boundary map and the cropped real cultivated land plot distance change map are rotated and flipped, and noise is randomly added to the cropped high-resolution remote sensing image to achieve the expansion of the high-resolution remote sensing image. The expanded high-resolution remote sensing image is used as a sample, and a training data set, a test data set, and a verification data set are constructed based on the sample.