Wheat planting area identification method, system, electronic device and storage medium

Through the multi-scale feature deep supervision network and the improved U-Net network, combined with the image pyramid and hole space convolution pooling pyramid layer, the dual attention module is used to enhance the recognition ability of wheat planting areas, and solve the problem of wheat in high-resolution remote sensing images. The lack of accuracy and interference problems in planting area identification achieve a more accurate extraction effect.

CN116844053BActive Publication Date: 2024-08-23BEIJING NORMAL UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310885972.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-19
Publication Date
2024-08-23
Estimated Expiration
2043-07-19

AI Technical Summary

Technical Problem

Existing deep learning semantic segmentation methods have insufficient accuracy in identifying wheat planting areas in high-resolution remote sensing images, especially in the case of densely distributed small-scale winter wheat patches and large intra-class differences, and are susceptible to other problems. Crop interference, leading to inaccurate extraction.

Method used

A multi-scale feature deep supervision network is used, combined with the improved U-Net network and side output layer, to extract deeper features and enhance the wheat planting area through the image pyramid input layer, dilated spatial convolution pooling pyramid layer and dual attention module. recognition ability.

Benefits of technology

It improves the recognition accuracy of wheat planting areas, can more accurately capture the boundaries of densely distributed small-scale winter wheat and the characteristics of winter wheat with large differences within categories, reduces interference with other crops, and significantly improves the extraction effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116844053B
    Figure CN116844053B
Patent Text Reader

Abstract

The present invention discloses a wheat planting area recognition method, system, electronic device and storage medium, which relates to the field of crop planting area recognition. First, the acquired Gaofen-2 satellite data of the area to be recognized is preprocessed, and then the wheat planting area of ​​the area to be recognized is determined by using a wheat planting area recognition model. The wheat planting area recognition model is obtained by training a multi-scale feature deep supervision network using a training data set; the multi-scale feature deep supervision network includes an image pyramid input layer, an improved U-Net network and a side output layer. The present invention uses the wheat planting area recognition model to extract the wheat planting area in the Gaofen-2 satellite data, thereby improving the accuracy of wheat planting area recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of crop planting area identification, and in particular to a wheat planting area identification method, system, electronic equipment and storage medium. Background Art

[0002] Agriculture, as China's basic industry, is closely related to the national economy, people's livelihood and social stability. Wheat is an important global food crop, widely planted around the world, of which winter wheat is China's main staple crop, accounting for about 90% of China's wheat production and 18% of the world's wheat production, making China the world's largest wheat producer. Therefore, accurately estimating the winter wheat planting area is crucial to understanding the food production situation and ensuring national food security.

[0003] Traditionally, winter wheat planting information is obtained mainly through labor-intensive and material-intensive methods such as reporting agricultural statistical tables. This method cannot meet the needs of today's society for rapid grasp of agricultural planting information and planning adjustments. Therefore, accurate and rapid acquisition of crop spatial distribution information is of great significance for strengthening crop monitoring and production management, optimizing the spatial pattern of crop planting, and assisting relevant government departments in formulating scientific and reasonable agricultural management policies. In recent years, remote sensing technology has received international attention for its ability to monitor agricultural planting information over a large area. With the advancement of domestic satellites, spatial resolution has been continuously improved, the spatial structure and location layout of ground objects have become clearer, and information such as texture and size have become more refined, providing a good data basis for extracting spatial distribution information of crops. Remote sensing technology has the advantages of wide field of view and multi-temporal phases, and is the most efficient method for accurately and quickly obtaining spatial distribution information of winter wheat over a large area. In order to improve the classification accuracy of remote sensing images, researchers from various countries have conducted a large number of related studies.

[0004] Image segmentation algorithms play an important role in the field of computer vision. Image segmentation is a bridge between low-level image processing and mid- and high-level image analysis and understanding. It classifies pixels with consistent element features into the same type of objects and extracts the targets of interest. Researchers apply image segmentation technology to remote sensing images. Traditional classification methods significantly improve the accuracy of remote sensing classification results by segmenting images pixel by pixel. Traditional image segmentation methods are mainly divided into the following three categories: threshold-based segmentation methods, edge-monitoring-based segmentation methods, and region-based segmentation methods. These traditional segmentation methods still remain at a low level in the representation of segmented image features. In the process of deep feature extraction, some overall information of the object will be lost. Therefore, these traditional image segmentation methods are only applicable to simple scene segmentation tasks, and the segmentation accuracy in complex scenes is far from meeting the actual application requirements. The rapid development of deep learning provides new research ideas for the above problems brought about by high-resolution remote sensing images. Scholars have developed methods such as pixel-to-object segmentation and image semantic segmentation, and have conducted in-depth research on remote sensing classification of various crops.

[0005] Compared with traditional non-deep learning segmentation methods, deep learning-based methods can extract image features more abstractly. On the basis of traditional segmentation methods, deep convolutional neural networks are applied to the image semantic segmentation task of pixel-level classification, and gradually develop into image semantic segmentation methods based on deep learning, which can extract unique features of different targets at a deeper level and have higher segmentation accuracy. In recent years, there have been studies on the use of FCN networks for wheat planting area extraction. FCN is the first semantic segmentation codec network. The network model designs a skip-layer connection structure to fuse high- and low-dimensional feature maps, and truly realizes end-to-end pixel-level semantic segmentation, but does not consider the relationship between pixels and lacks spatial consistency.

[0006] Winter wheat is China's main staple food crop. Accurately estimating winter wheat yield is crucial to understanding the state of food production. Deep learning semantic segmentation models have absolute advantages over traditional classification methods in extracting winter wheat from high-resolution images. However, the following problems will arise when the classic convolutional neural network model is directly used to extract winter wheat from high-resolution remote sensing images: (1) For densely distributed small-scale winter wheat patches, the segmentation results are not fine enough and the contours are rough. There is a phenomenon of mutual adhesion between winter wheat patches, resulting in the inability to effectively restore small-scale winter wheat patches. (2) Due to the large gap within the winter wheat class, the recognition ability of winter wheat with large feature differences is poor. (3) Due to the similarity between winter wheat and other crops, winter wheat extraction is interfered with, resulting in erroneous extraction. Summary of the invention

[0007] The purpose of the present invention is to provide a wheat planting area identification method, system, electronic equipment and storage medium to improve the accuracy of wheat planting area identification.

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

[0009] A wheat planting area identification method, comprising:

[0010] Acquire Gaofen-2 satellite data of the area to be identified; the area to be identified includes a wheat planting area; the Gaofen-2 satellite data includes multispectral images and panchromatic images;

[0011] Preprocessing the Gaofen-2 satellite data to obtain preprocessed Gaofen-2 satellite data; the preprocessing includes: radiation calibration, atmospheric correction, orthorectification and image fusion;

[0012] According to the preprocessed Gaofen-2 satellite data, the wheat planting area of ​​the area to be identified is determined using a wheat planting area recognition model; wherein the wheat planting area recognition model is obtained by training a multi-scale feature deep supervision network using a training data set; the training data set includes Gaofen-2 satellite data and wheat planting area labels of the training area; the multi-scale feature deep supervision network includes an image pyramid input layer, an improved U-Net network and a side output layer; the improved U-Net network includes an encoder and a decoder; the encoder includes four first semantic feature extraction units and one second semantic feature extraction unit connected in sequence; The first semantic feature extraction unit includes a residual module and a downsampling layer connected in sequence; the second semantic feature extraction unit includes a dilated spatial convolution pooling pyramid layer; the decoder includes four feature fusion units connected in sequence; the feature fusion unit includes an upsampling layer and a convolution layer; the first semantic feature extraction unit and the feature fusion unit correspond one to one and are connected through a dual attention module; the dilated spatial convolution pooling pyramid layer is connected to the first feature fusion unit; the image pyramid input layer corresponds one to one to the first semantic feature extraction unit; the side output layer includes four classifiers; the classifiers correspond one to one to the feature fusion unit.

[0013] Optionally, preprocessing the Gaofen-2 satellite data to obtain preprocessed Gaofen-2 satellite data specifically includes:

[0014] Performing radiation calibration, atmospheric correction and orthorectification processing on the multispectral image to obtain a processed multispectral image;

[0015] Performing radiometric calibration and orthorectification processing on the panchromatic image to obtain a processed panchromatic image;

[0016] The processed multispectral image and the processed panchromatic image are fused by using an image fusion algorithm to obtain pre-processed Gaofen-2 satellite data.

[0017] Optionally, performing radiation calibration, atmospheric correction and orthorectification processing on the multispectral image to obtain a processed multispectral image specifically includes:

[0018] Performing radiometric calibration on the multispectral image to obtain a calibrated multispectral image;

[0019] Performing atmospheric correction on the calibrated multispectral image to obtain a corrected multispectral image;

[0020] The corrected multispectral image is orthorectified to obtain a processed multispectral image.

[0021] Optionally, performing radiometric calibration and orthorectification processing on the panchromatic image to obtain a processed panchromatic image specifically includes:

[0022] Performing radiometric calibration on the panchromatic image to obtain a calibrated panchromatic image;

[0023] Orthorectification is performed on the calibrated panchromatic image to obtain a processed panchromatic image.

[0024] Optionally, the multi-scale feature deep supervision network is trained using a training data set, specifically including:

[0025] Preprocessing the Gaofen-2 satellite data of the training area to obtain preprocessed Gaofen-2 satellite data of the training area;

[0026] Labeling the preprocessed Gaofen-2 satellite data of the training area to obtain the preprocessed Gaofen-2 satellite data of the training area labeled with wheat planting area labels;

[0027] The multi-scale feature deep supervision network is trained using the pre-processed Gaofen-2 satellite data of the training area with the wheat planting area labels marked to obtain the wheat planting area recognition model.

[0028] A wheat planting area identification system, comprising:

[0029] A data acquisition module, used to acquire Gaofen-2 satellite data of the area to be identified; the area to be identified includes a wheat planting area; the Gaofen-2 satellite data includes multispectral images and panchromatic images;

[0030] A preprocessing module, used for preprocessing the Gaofen-2 satellite data to obtain preprocessed Gaofen-2 satellite data; the preprocessing includes: radiation calibration, atmospheric correction, orthorectification and image fusion;

[0031] The identification module is used to determine the wheat planting area of ​​the to-be-identified area by using a wheat planting area identification model according to the preprocessed Gaofen-2 satellite data; wherein the wheat planting area identification model is obtained by training a multi-scale feature deep supervision network using a training data set; the training data set includes Gaofen-2 satellite data and wheat planting area labels of the training area; the multi-scale feature deep supervision network includes an image pyramid input layer, an improved U-Net network and a side output layer; the improved U-Net network includes an encoder and a decoder; the encoder includes four first semantic feature extraction units and a second semantic feature extraction unit connected in sequence unit; the first semantic feature extraction unit includes a residual module and a downsampling layer connected in sequence; the second semantic feature extraction unit includes a dilated spatial convolution pooling pyramid layer; the decoder includes four feature fusion units connected in sequence; the feature fusion unit includes an upsampling layer and a convolution layer; the first semantic feature extraction unit and the feature fusion unit correspond one-to-one and are connected through a dual attention module; the dilated spatial convolution pooling pyramid layer is connected to the first feature fusion unit; the image pyramid input layer corresponds one-to-one to the first semantic feature extraction unit; the side output layer includes four classifiers; the classifiers correspond one-to-one to the feature fusion units.

[0032] An electronic device includes: a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the above-mentioned wheat planting area identification method.

[0033] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned wheat planting area identification method is implemented.

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

[0035] The wheat planting area recognition method, system, electronic device and storage medium provided by the present invention first pre-process the acquired Gaofen-2 satellite data of the area to be identified, and then determine the wheat planting area of ​​the area to be identified by using the wheat planting area recognition model. Wherein, the wheat planting area recognition model is obtained by training a multi-scale feature deep supervision network using a training data set; the multi-scale feature deep supervision network includes an image pyramid input layer, an improved U-Net network and a side output layer; the improved U-Net network includes an encoder and a decoder; the encoder includes four first semantic feature extraction units and one second semantic feature extraction unit connected in sequence; the decoder includes four feature fusion units connected in sequence; the first semantic feature extraction unit and the feature fusion unit correspond to each other one by one, and are connected through a dual attention module; the void space convolution pooling pyramid layer is connected to the first feature fusion unit. The present invention uses the wheat planting area recognition model to extract the wheat planting area in the Gaofen-2 satellite data, thereby improving the accuracy of wheat planting area recognition. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0037] Figure 1 A flow chart of the wheat planting area identification method provided by the present invention;

[0038] Figure 2 A schematic diagram of the research area provided by the present invention;

[0039] Figure 3 A schematic diagram of winter wheat sampling points provided by the present invention;

[0040] Figure 4 A schematic diagram of a wheat planting area identification model provided by the present invention;

[0041] Figure 5 A schematic diagram of the structure of a first semantic feature extraction unit provided by the present invention;

[0042] Figure 6 A schematic diagram of the dilated spatial convolutional pooling pyramid model structure provided by the present invention;

[0043] Figure 7 A schematic diagram of the structure of the feedforward convolutional neural network attention module provided by the present invention;

[0044] Figure 8A schematic diagram of the structure of the channel attention module provided by the present invention;

[0045] Fig. 9 A schematic diagram of the structure of the spatial attention module provided by the present invention;

[0046] Fig.10 A schematic diagram of the main structure of the improved Unet structure provided by the present invention;

[0047] Fig.11 Schematic diagram of the extraction effect of different network structures provided by the present invention on densely distributed small-scale winter wheat. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0049] The purpose of the present invention is to provide a wheat planting area identification method, system, electronic equipment and storage medium to improve the accuracy of wheat planting area identification.

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

[0051] Embodiment 1

[0052] like Figure 1 As shown, the wheat planting area identification method provided by the present invention comprises:

[0053] Step 101: Acquire Gaofen-2 satellite data of an area to be identified; the area to be identified includes a wheat planting area; the Gaofen-2 satellite data includes multispectral images and panchromatic images.

[0054] Step 102: preprocessing the Gaofen-2 satellite data to obtain preprocessed Gaofen-2 satellite data; the preprocessing includes: radiation calibration, atmospheric correction, orthorectification and image fusion.

[0055] As an optional implementation, step 102 specifically includes:

[0056] Step 1021: Perform radiation calibration, atmospheric correction and orthorectification processing on the multispectral image to obtain a processed multispectral image.

[0057] Specifically, step 1021 includes:

[0058] The multispectral image is radiometrically calibrated to obtain a calibrated multispectral image.

[0059] Performing atmospheric correction on the calibrated multispectral image to obtain a corrected multispectral image.

[0060] The corrected multispectral image is orthorectified to obtain a processed multispectral image.

[0061] Step 1022: Perform radiometric calibration and orthorectification processing on the panchromatic image to obtain a processed panchromatic image.

[0062] Specifically, step 1022 includes:

[0063] The full-color image is radiometrically calibrated to obtain a calibrated full-color image.

[0064] Orthorectification is performed on the calibrated panchromatic image to obtain a processed panchromatic image.

[0065] Step 1023: Using an image fusion algorithm, the processed multispectral image and the processed panchromatic image are fused to obtain pre-processed Gaofen-2 satellite data.

[0066] Step 103: Determine the wheat planting area of ​​the area to be identified using a wheat planting area recognition model based on the preprocessed GF-2 satellite data; wherein the wheat planting area recognition model is obtained by training a multi-scale feature deep supervision network using a training data set; the training data set includes the GF-2 satellite data of the training area and the wheat planting area label; the multi-scale feature deep supervision network includes an image pyramid input layer, an improved U-Net network and a side output layer; the improved U-Net network includes an encoder and a decoder; the encoder includes four first semantic feature extraction units and one second semantic feature extraction unit connected in sequence element; the first semantic feature extraction unit includes a residual module and a downsampling layer connected in sequence; the second semantic feature extraction unit includes a dilated spatial convolution pooling pyramid layer; the decoder includes four feature fusion units connected in sequence; the feature fusion unit includes an upsampling layer and a convolution layer; the first semantic feature extraction unit and the feature fusion unit correspond one to one and are connected through a dual attention module; the dilated spatial convolution pooling pyramid layer is connected to the first feature fusion unit; the image pyramid input layer corresponds one to one to the first semantic feature extraction unit; the side output layer includes four classifiers; the classifiers correspond one to one to the feature fusion units.

[0067] As an optional implementation method, the multi-scale feature deep supervision network is trained using a training data set, specifically including:

[0068] Step S1: preprocessing the Gaofen-2 satellite data in the training area to obtain preprocessed Gaofen-2 satellite data in the training area.

[0069] In this embodiment, the Linfen Basin is used as the research area (training area). The Linfen Basin is located in the southwest of Shanxi Province, China. It starts from Hanhouling in the north, goes south to Houma, and then turns west to the bank of the Yellow River. The east and west sides of the basin are connected to the mountains by the Huoshan Fault, Luoyun Mountain, and Hancheng Fault, respectively, and the south is connected to the Emei Terrace. It is 400-600 meters above sea level and is a typical graben basin. The Linfen Basin is located in the semi-arid and semi-humid monsoon climate zone, belonging to the temperate continental climate. It is surrounded by mountains and the middle is flat. The interior of the basin is mostly river-lake accumulation. The soil in most areas is fertile, and rain and heat occur at the same time. It is relatively dry in spring, with more rain in summer, mild and cool in autumn, and dry and cold with little snow in winter. The average annual temperature is 10℃-21℃, and the annual precipitation in Linfen is 525.1 mm. The good climatic conditions provide a good growth environment for crop planting. It is an important grain and cotton production base in North China. Winter wheat and other grain crops are widely planted in the basin. It is one of the main grain-producing areas in Shanxi Province. Figure 2 shown.

[0070] The experimental data uses the Gaofen-2 satellite data as the remote sensing image data source to meet the requirements of high spatial resolution. The Gaofen-2 satellite carries two cameras with a resolution of 1 meter panchromatic and 4 meters multispectral, with high positioning accuracy and rapid attitude maneuverability. The panchromatic sensor has a sub-meter spatial resolution, and the multispectral sensor is designed with four bands: blue, green, red, and near-infrared, which can meet the needs of conventional remote sensing image map production.

[0071] The experimental data used 9 scenes of Gaofen-2 satellite data to cover the Linfen Basin. All 9 images were taken on April 19, 2021, when winter wheat was in jointing stage and wheat was growing vigorously. The shooting time was close to the ground survey time. The 9 Gaofen-2 images have no cloud cover and are of high clarity.

[0072] The remote sensing service platform ENVI5.3 was used to preprocess the GF-2 remote sensing images in the study area. First, the multispectral images were subjected to radiation calibration, atmospheric correction, and orthorectification. The panchromatic images were also subjected to radiation calibration and orthorectification. Then, the NNDifuse Pan Sharping fusion method was used to fuse the panchromatic and multispectral images.

[0073] Multispectral Image Processing:

[0074] (1) Radiometric calibration: Use the domestic satellite extension tool in ENVI software and select the MSS.xml file to open. In the Toolbox tool, select Radiometric Correction → Radiometric Calibration. In File Selection, select the image to be processed. The Radiometric Calibration dialog box pops up. Confirm that the Calibration type is Radiance. Click Apply FLAASH Setting, set the output path and file name, and complete the radiometric calibration.

[0075] (2) Atmospheric correction: In the Toolbox, select Radiometric Correction → Atmospheric Correction Module → FLAASH Atmospheric Correction tool to start the FLAASH module; set the input and output file information, select the sensor type Multispectral → UNKNOWN → MSI; the average height of the imaging area is 500m, and the Pixel Size is set to 4m; the following parameters need to be set according to the longitude and latitude, image area, and imaging time: ①Atmospheric model: Mid-Latitude Summer; ②AerosolModel: Urban; ③AerosolRetrieval: None; ④Multispectral Settings: Select the GUI setting method, click "FilterFunctionFile" to load the spectral response function of GF2-PMS1 gf2_pms1_mss.sli; AdvancedSettings: Set Modtran Resolution to 15cm-1 to complete the atmospheric correction.

[0076] (3) Orthorectification: Open the atmospherically corrected image from File→Open, and use Toolbox→GeometricCorrection→Orthorectification→RPC Orthorectification Workflow to open the orthorectification workflow tool. In the File Selection panel, select the atmospherically corrected multispectral data from InputFile, and DEMFile will select the DEM data with a global resolution of 900 meters by default. In the Advanced options, change the output pixel size to 4 meters, select the cubic convolution method for the Image Resampling method, and keep other parameters as default. Set the output path and file name to complete the orthorectification.

[0077] Panchromatic Image Processing:

[0078] (1) Radiometric calibration: Open ENVI, select File→Open As→China Satellites→GF2, and select PAN.xml file to open. Use the same method to open the radiometric calibration tool and set the parameters as follows: Calibration Type: Reflectance, panchromatic image calibration is atmospheric apparent reflectance; Output Data Type: Uint; Scale Factor: 10000.

[0079] (2) Orthorectification: The orthorectification operation of panchromatic data is exactly the same as that of multispectral data. When orthorectifying panchromatic data, the output pixel size needs to be set to 1 meter.

[0080] Image fusion: Use the NNDiffuse Pan Sharpening tool for image fusion. Click Toolbox→Extensions→NNDiffuse Pan Sharpening. For Input Low Resolution Raster, select the multispectral data after the orthorectification in the previous step. For Input High Resolution Raster, select the panchromatic data after the orthorectification in the previous step. Keep other parameters as default to complete the GF-2 image preprocessing.

[0081] Step S2: labeling the preprocessed Gaofen-2 satellite data of the training area to obtain the preprocessed Gaofen-2 satellite data of the training area labeled with wheat planting area labels.

[0082] In order to make samples to train the model during the crop extraction process, it is necessary to conduct a field survey of the study area to ensure that the training samples conform to the actual situation of the spatial distribution of crops. Field sampling was carried out in the study area on April 26, 2021. During the survey, GPS was used to accurately record the latitude and longitude of the field survey sample points, and the crops at the measured sample points were photographed to more accurately grasp the characteristics of various major crops. The sample data is obtained through ground surveys, and the acquisition process is as follows: 1) First, the location and size of the sample plot to be investigated are preliminarily determined based on the existing remote sensing base map, and the vector boundary of the sample plot is digitized on the remote sensing image. In this process, the internal features of each sample plot are ensured to be as homogeneous as possible, and the size is not less than 16m. 2 ; 2) According to the existing sample vector boundaries, use GPS and RTK to find the sample to be measured in the field and determine the land type of the sample; 3) Discard some sample plots that are difficult to reach during the survey or sample plots with mixed land types in the field, and check the regularity and completeness of the data. After verification, the samples can meet the relevant accuracy requirements and can evenly cover the entire study area. After the field survey, 80 sampling points for winter wheat were obtained, such as Figure 3 shown.

[0083] The pre-processed GF-2 images (Gaofen-2 satellite data) of the study area were combined with ground survey data and visual interpretation, and the pre-processed GF-2 images were manually labeled using LabelMe software to create a dataset; the wheat-growing area was labeled as wheat, and other areas were background. The label image was created and cropped into an image of 600×600 pixels. The image block and the corresponding labeling result were used as an image-label pair. Finally, a total of 500 image-label pairs were obtained, of which 350 pairs were used for training, 100 pairs were used for verification, and 50 pairs were used for testing.

[0084] Step S3: training the multi-scale feature deep supervision network using the pre-processed Gaofen-2 satellite data of the training area with the wheat planting area labels, to obtain the wheat planting area recognition model.

[0085] For the winter wheat extraction task, this paper proposes a multi-scale feature deep supervision network model RAUNET with improved Unet as the backbone network and fusion dual attention mechanism, which consists of three main parts: Figure 4As shown in the figure. The first is the multi-scale input layer (image pyramid input layer), which is used to construct the image pyramid input and realize the fusion of different receptive fields. The second part improves the U-net model as the main architecture to learn rich multi-level features. The third part is the side output layer. There is an output path after each branch in the decoder for deep supervision. It improves the segmentation accuracy of small area features that are easily lost in cascade convolutions, and helps the network learn more local perception features about the classification target.

[0086] (I) Image pyramid input layer

[0087] The RAunet model constructs an image pyramid input such as Figure 4 As shown in part a of the figure, the average pooling layer is used to downsample the image by 2×2 to obtain images of different scales. Multiple input paths are constructed on the encoder. Before each Maxpooling layer of the decoder, the input images of each scale are respectively subjected to a 3×3 convolution layer, a batch normalization layer, and a Relu activation layer for extracting semantic features, which are integrated in the encoder to increase the network width of the decoder path and improve the utilization rate of each channel layer. This method combined with deep supervision can effectively enhance the ability of cascade convolution to capture small-scale features, which is conducive to the network learning more local perception features of the classification target, so that the model has better generalization.

[0088] (II) Backbone network construction

[0089] U-net is a completely symmetrical semantic segmentation model that can better integrate image features. The entire network consists of two parts: the encoder and the decoder. The encoder consists of five semantic extraction units, following the typical CNN architecture. Each semantic extraction unit uses two 3×3 convolutions in a stack, followed by a Relu nonlinear activation. Each semantic extraction unit is connected through a Maxpooling layer. After four downsamplings, the number of feature channels is expanded to 1024. During the encoding process, the network gradually compresses the spatial dimensions of the feature map, expands the feature map channels, and continuously extracts deeper features of the image. The decoder continuously enlarges the feature map through upsampling, and merges it with the feature map extracted by each layer of the decoder, fully combining shallow and deep semantic features. Since no padding is set for the convolution operation during network training, during the decoding process, the feature map needs to be cropped before fusion, and then connected through Concatenate to fully merge shallow and deep features, thereby restoring the feature map detail information. The feature map obtained after the encoder and decoder is compressed and connected to the SoftMax classifier to obtain the probability of each pixel belonging to the winter wheat and non-winter wheat categories, and the corresponding pixels are mapped to winter wheat or non-winter wheat.

[0090] Theoretically, the deeper the convolutional neural network, the richer the features extracted and the more semantic information it contains. However, in reality, due to the phenomenon of gradient diffusion, as the number of network layers increases, the learning and calculation speed of the convolutional network slows down. In the process of backpropagation, the multiplication of multiple layers of gradients less than 1 will make the gradient smaller and smaller, and eventually the gradient of a certain layer will be 0, which will cause the parameters of the first few layers of the network to no longer be updated, resulting in network degradation problems such as gradient disappearance or explosion, accuracy saturation or even decline. The introduction of ResNet modularizes the network and solves the model degradation problem caused by the deepening of the network depth.

[0091] The ResNet residual module adds an identity mapping to the ordinary convolution process. Its function is to output data obtained by adding the backbone network and the jump connection, so that the gradient does not need to pass through multiple layers of the network when propagating backward, avoiding the decrease in the learning accuracy of the entire model due to the superposition of multiple layers of the network. The residual structure calculation formula is shown in formula (1).

[0092] F(x)=H(x)-X (1).

[0093] Where: the input is x, the optimal mapping is H(x), the learned residual result is F(x), and X represents the identity mapping performed by skipping multiple layers of convolution. When the residual is 0, only the identity mapping is performed.

[0094] ResNet repeatedly stacks residual modules to form network structures of different depths. According to the feature extraction network structure suitable for U-Net, the bottleneck structure of ResNet50 is selected as the feature extraction module (first semantic feature extraction unit) of U-Net. Figure 5 As shown, the role of the residual structure is to increase the depth of the network.

[0095] The semantic segmentation model DeepLabv2 proposes the Atrous Spatial Convolution Pooling Pyramid Module (ASPP), which uses multiple parallel atrous convolution layers with different sampling rates. The features extracted for each sampling rate are further processed in a separate branch and fused to generate the final result. This module constructs convolution kernels with different receptive fields through different atrous rates to obtain multi-scale object information. The specific structure is as follows: Figure 6 shown.

[0096] Since dilated convolutions with different dilation rates have different receptive fields and can obtain multi-scale information, using dilated convolutions with different dilation rates in parallel is conducive to obtaining receptive fields of different sizes, capturing multi-scale features, fully integrating semantic information and position information, and further improving segmentation accuracy.

[0097] The double attention mechanism (CBAM) is a simple and effective attention module of feedforward convolutional neural network. The introduction of attention mechanism can change the allocation of resources and make more resources tend to winter wheat. During the training process, more weight parameters are assigned to winter wheat in the image, which can enhance the ability of winter wheat feature extraction and reduce the influence of background noise. Its structure is as follows Figure 7 shown.

[0098] (1) Channel Attention Module

[0099] The channel attention module first performs global average pooling and global maximum pooling operations on the input feature map (H×W×C) to aggregate the spatial information of the feature map and obtain two spatial context features: and Global average pooling integrates global spatial information, and global maximum pooling takes the maximum value of pixels in the neighborhood of the feature map to reduce the influence of useless information. The two features obtained are input into a shared network for addition. The network consists of a multi-layer perceptron (MLP) and a hidden layer, such as Figure 8 As shown in the figure, in order to calculate fewer parameters, the hidden layer size is set to C / r×1×1, where r is the compression ratio. Finally, the channel attention is calculated by the sigmoid function. The channel attention formula is:

[0100]

[0101] Where σ represents the sigmoid function, Represents the average pooling feature and the maximum pooling feature, W0 represents C / r×C; W1 represents C×C / r.

[0102] 2) Spatial Attention Module

[0103] Different from channel attention, the spatial attention module focuses on the position information in the channel, which complements the channel attention. Fig. 9 As shown. To calculate spatial attention, we first apply average pooling and maximum pooling operations along the channel axis and concatenate them to generate a valid feature descriptor. The feature map Mc(H×W×C) weighted by the channel attention module is average pooled and max pooled in the channel dimension to obtain the weighted average pooled feature. Weighted max pooling features Concatenate and superimpose the two feature maps to obtain F s =H×W×2. The obtained feature map is subjected to a convolution operation with a convolution kernel of 7×7 and compressed into a feature map with a channel number of 1. Finally, the spatial attention feature is calculated by the sigmoid function. The spatial attention calculation formula is:

[0104]

[0105] In the formula, σ represents the sigmoid function, f 7×7 Represents a convolution operation with a filter size of 7×7.

[0106] The main structure of the improved Unet structure is similar to that of the Unet model, such as Fig.10 As shown or Figure 4 As shown in part b of , they are all composed of an encoder and a decoder. The encoder is composed of five semantic feature extraction units, and the first four semantic feature extraction units (the first semantic feature extraction unit) contain a feature extraction layer. The feature extraction layer uses a residual module instead of a normal convolution layer to extract features, which eliminates the gradient vanishing and gradient explosion problems in the deep learning architecture to a certain extent. Then a 2×2 pooling layer is used for downsampling to compress the features. The bottom layer of the model uses a hollow spatial convolution pooling pyramid instead of a normal convolution operation. This module uses different hollow rates to construct convolution kernels with different receptive fields to obtain multi-scale object information. The decoder is composed of four feature fusion units, each of which contains a 2×2 upsampling layer and a convolution layer with a convolution kernel of 3×3, so that the low-resolution feature map with high-level abstract features can restore the feature map detail information and restore the feature map size while retaining the high-level abstract features. In the skip connection stage, the low-level feature map obtained by the encoder is input into the CBAM dual attention module to add weight information, and then four feature fusion operations are performed. During the network training process, the convolution operation sets padding to avoid cropping operations before feature map fusion during the decoding process.

[0107] (III) Side Output Layer

[0108] A multi-path output is set on the right side of the decoder, and an auxiliary classifier is added to each layer of the decoder to construct a side output layer, such as Figure 4 As shown in part c of the figure, each feature fusion path will finally perform a convolution operation with a convolution kernel size of 1×1 to adjust the number of channels, input the SoftMax classifier, and predict each pixel of the feature map at different scales. In order to directly use the prediction maps of different scales of the side output layer, the outputs in the branch network are upsampled by 2×2, 4×4, and 8×8 respectively and combined with the final output. The average layer is used to combine all the side output maps into the final prediction map. The side output layer back-propagates the side output loss and the final layer loss to the early layers on the decoder path, which can alleviate the gradient vanishing problem and help the training of the early layers. It can serve as a special bridge link between the loss layer and the early layers. The side output layer supervises the output mapping of each scale to output better results.

[0109] For the winter wheat extraction task, the present invention proposes a multi-scale feature deep supervision network RAUnet with a dual attention mechanism integrated with an improved Unet as the backbone network. First, an image pyramid is used as the input of the model, and multi-scale input is integrated into the decoder, which can not only increase the network width of the decoder path and improve the utilization rate of the image channel, but also avoid a large increase in parameters. Secondly, the residual module is used to replace the conventional convolution in the Unet decoder, which solves the problem of gradient explosion while deepening the network depth of the model, and eliminates the direct connection gap from the low-level to the high-level features of Unet to a certain extent; at the same time, a hollow spatial convolution pooling pyramid structure is introduced to obtain multi-scale winter wheat information; in the jump connection stage, the channel and space dual attention mechanisms are integrated, and weight information is added to the channel dimension and spatial dimension of the feature map, which can effectively suppress the model's ability to learn non-winter wheat features and enable the model to learn in a targeted manner. Finally, an auxiliary classifier is added to each layer in the decoder of the model to construct a side output layer, which can backpropagate the side output loss together with the final layer loss to the early layers on the decoder path, which helps the training of the early layers, improves the segmentation accuracy of small area features that are easily lost in cascaded convolutions, and helps the network learn more local perception features about the classification targets.

[0110] The wheat planting area identification method of the present invention is verified by experiments below.

[0111] The experiment is based on the Keras deep learning framework under the Windows 10 operating system, using Tensorflow as the backend and Python programming language. NVIDIA RTX 2080Ti GPU is used for training and testing. OpenCV, GDAL and other open source libraries are used as image processing methods. In order to obtain the best network model weight parameters and verify the accuracy of the method proposed in this invention, the number of iterations of the model is set to 50 times. Considering the limitations of GPU memory size and equivalent hyperparameters, the batch size is set to 2, the optimizer used is Adam, and the initial learning rate is set to 1×10 -3 , the loss function is the cross entropy loss function. The weight parameter file is saved every 3 iterations, and the optimal parameter file is finally selected.

[0112] The performance of the proposed RAunet model for extracting winter wheat was evaluated using precision, recall, F1 score, intersection over union (Iou), mean intersection over union (mIou), and overall accuracy as accuracy evaluation indicators. These evaluation indicators are accuracy measures based on the confusion matrix, which summarizes the pixel values ​​in an image according to two criteria, namely the true class and the predicted class, and describes the performance of the network model on a set of data. The rows and columns of the matrix represent the true values ​​and predicted values, respectively.

[0113] Precision represents the percentage of correctly classified winter wheat pixels in the predicted winter wheat pixels, and is calculated as follows:

[0114]

[0115] Recall represents the percentage of correctly classified winter wheat pixels to all actual winter wheat pixels, and the calculation formula is as follows:

[0116]

[0117] F1-score is the harmonic mean of precision and recall, and combines the precision and recall indicators with the same weight. The value range of F1-score is 0-100%. 100% means the best model detection result is obtained, and 0 means the worst model detection result is obtained. The calculation formula is as follows:

[0118]

[0119] IoU refers to the ratio of the intersection and union of actual category samples and predicted category samples, that is, the ratio of the number of accurately classified positive samples and the number of accurately classified positive samples to the sum of the number of positive samples misclassified as negative samples and the number of negative samples misclassified as positive samples. mIou is the result of averaging the intersection and union ratios of each category.

[0120]

[0121]

[0122] Accuracy represents the percentage of all correctly predicted pixels to all pixels in the sample, and is calculated as follows:

[0123]

[0124] TP represents the number of pixels correctly extracted as winter wheat; FN represents the number of pixels not correctly extracted as winter wheat; FP represents the number of pixels incorrectly extracted as background; TN represents the number of pixels correctly extracted as background.

[0125] Comparison of experimental results:

[0126] In order to verify the accuracy of RAunet model in extracting winter wheat spatial distribution information, the trained FCN, UNet, DeeplabV3, Segnet and RAunet models were tested on the test set. FCN and Unet are classic pixel-by-pixel encoding and decoding structure semantic segmentation models, DeeplabV3 has better ability to capture multi-scale information, and Segnet model is a fully convolutional neural network model based on supervised encoding and decoding structure. Using the above four models as comparison models can better reflect the advantages of RAunet model in winter wheat extraction.

[0127] Fig.11 Columns a, b, and c show the extraction effects of each network structure on densely distributed small-scale winter wheat. The segmentation results of the FCN and Unet models are quite different from the original labeled images. The edges of the winter wheat patches in the segmentation results are unclear and the contours are rough. The results are not fine enough and are not sensitive enough to the details of the captured image, resulting in the inability to effectively restore the small-scale winter wheat patches. The edges of the winter wheat patches in the segmentation results of Segnet and DeeplabV3 are improved, and the small-scale winter wheat patches are partially restored, but there is obvious adhesion between the winter wheat patches, and the splicing marks are more obvious. The RAunet model can accurately identify and capture the boundary features of densely distributed winter wheat, determine the boundaries that are dependent on each other, and accurately separate the winter wheat patches that are close to each other.

[0128] For winter wheat with large intra-class differences, the extraction results are as follows Fig.11 As shown in the middle column d, the color of winter wheat in the yellow box is light green, and the color characteristics of winter wheat are quite different. FCN and Segnet have poor recognition ability for winter wheat with large feature differences, while Unet and DeeplabV3 are improved compared with the above two models and can recognize most of this winter wheat information. RAUnet can accurately recognize winter wheat with large intra-class differences.

[0129] The winter wheat extraction results obtained under green vegetation interference with small inter-class differences are as follows Fig.11 As shown in the middle e column, the texture and color features of the green plants in the yellow box are very similar to those of winter wheat, which interferes with the accurate extraction of winter wheat. Due to the small inter-class gap between winter wheat and green plants, the network with poor recognition ability has a serious misclassification phenomenon. FCN and Unet both mistakenly identify some green vegetation as winter wheat. Segnet and DeeplabV3 perform better than the first two models, but there is an incomplete extraction of fragmented winter wheat patches. RAunet has a stronger feature recognition ability, can capture more detailed classification features, overcome the interference of objects with similar features to winter wheat, and extract winter wheat more completely.

[0130] Table 1 shows the confusion matrix of the segmentation results of FCN, Unet, DeeplabV3, Segnet, and RAunet (method of the present invention). Each row of the confusion matrix represents the proportion of the actual category, and each column represents the proportion of the predicted category. As can be seen from Table 1, the RAunet model proposed in the present invention has the best segmentation effect, with only 1.54% of winter wheat pixels being misclassified as non-winter wheat, and 2.32% of non-winter wheat being misclassified as winter wheat. Compared with the FCN model, it was reduced by 1.1% and 0.33%, respectively, compared with the Unet model, it was reduced by 1.03%, and 1.23%, respectively, and compared with the DeeplabV3 model, it was reduced by 0.71% and 0.05%, respectively. Compared with the Segnet model, it was reduced by 0.17% and 1.11%, respectively. The segmentation error rates of the five models were 5.29%, 6.12%, 4.17%, 5.14%, and 3.86%, respectively. In general, the RAunet model proposed in the present invention has the best segmentation effect.

[0131] Table 1 Confusion matrix statistics of each comparison model

[0132]

[0133] In order to accurately analyze and compare the winter wheat extraction accuracy of the five models of FCN, Unet, DeeplabV3, Segnet, and RAUnet, the precision (Precision), recall rate (Recall), F1 score, intersection over union (Iou), mean intersection over union (mIou) and overall accuracy (Accuracy) of the five models for winter wheat extraction results are shown in Table 2 as accuracy evaluation indicators. The quantitative evaluation results of the five models are shown in Table 2. By comparing the data in Table 2, it can be shown that the segmentation accuracy of the RAUnet model is better than that of the four comparison models of FCN, Unet, PSPnet, and Segnet. RAunet has the highest six indicators: Precision (96.52%), Recall (94.84%), Accuracy (96.13%), F-Score (95.81%), Iou (91.96%), and mIou (92.75%). RAunet has improved 3.01%, 4.54%, 1.63%, and 2.50% in Iou compared with FCN, Unet, DeeplabV3, and Segnet, respectively. The above analysis shows that the RAunet model can better solve the problem of winter wheat extraction and significantly improve the extraction effect of winter wheat compared with conventional methods.

[0134] Table 2 Comparison of evaluation indicators of various comparison models

[0135] Evaluation indicators FCN Unet DeeplabV3 Segnet RAunet Precision 0.9402 0.9417 0.9490 0.9612 0.9652 Recall 0.9400 0.9214 0.9466 0.9254 0.9484 Accuracy 0.9470 0.9387 0.9530 0.9486 0.9613 F1-Score 0.9401 0.9314 0.9478 0.9430 0.9567 Iou 0.8870 0.8717 0.9008 0.8921 0.9171 mIou 0.8982 0.8833 0.9106 0.9013 0.9248

[0136] This paper proposes a multi-scale feature deep supervision network model RAUnet that integrates a dual attention mechanism. The model uses an improved Unet model as the backbone network, an image pyramid as input, and adds auxiliary classifiers to each branch in the decoder to form a side output layer. The research results show that the model can effectively identify winter wheat when trained on a high-resolution remote sensing image dataset, and the extracted spatial distribution information of winter wheat is more complete.

[0137] In the above comparative experiments, the performance of the RAUnet model was evaluated. Table 2 quantitatively evaluates that the model has higher segmentation accuracy than the four compared models. As can be seen from Table 2, the RAUnet model has the highest precision of 96.53% in winter wheat, which is 2.5%, 2.35%, and 1.62% higher than the FCN, Unet, and DeeplabV3 models, respectively. The segmentation results of FCN and Unet are the worst, and the improvement is less than that of Segnet, but Segnet has the lowest score for the Recall index. Combined with Table 1, it can be seen that Segnet's misclassification rate for winter wheat is the lowest at 1.71% except for the RAUnet model, but Segnet's missed scores are as high as 3.43%. The RAunet model has the highest accuracy (96.13%), F1-Score (95.81%), Iou (91.96%), and mIou (92.75). The Iou index of RAunet is improved by 3.01%, 4.54%, 1.63%, and 2.50% compared with FCN, Unet, DeeplabV3, and Segnet, respectively. The above results show that RAunet can better balance the two indicators of precision and recall.

[0138] Fig.11 The winter wheat extraction results of five models were qualitatively evaluated. Fig.11 It can be seen from the abc columns that the segmentation results of FCN and Unet are the worst for densely distributed small-scale winter wheat. FCN does not take into account the relationship between pixels and ignores the spatial consistency in the pixel classification-based segmentation method, resulting in rough contours of the segmentation results. During the decoding process of the Unet model, continuous upsampling will lose a lot of edge information, resulting in a decrease in segmentation accuracy. The segmentation accuracy of the Segnet and DeeplabV3 models has improved. The SegNet model extracts high-level semantic features from rich image details through deep convolution. It shows advantages in extracting objects covering a large number of pixels, but for objects with a small number of covered pixels or a pixel containing multiple target objects, this structure not only fails to extract detailed features, but may also introduce additional noise due to the expansion of the field of view, which reduces the accuracy of the model classification results. Fig.11As shown in columns d and e, Segnet has poor recognition ability for winter wheat with large intra-class differences and small inter-class differences. The DeeplabV3 model captures multi-scale contextual information by setting different hole convolutions, and can restore most of the winter wheat patches with large differences. However, the extracted patches in areas with weak texture feature distinction are relatively fragmented. The RAUnet model increases the network width and improves the utilization rate of each channel by constructing a multi-scale pyramid. Combined with the advantages of deep supervision, it effectively improves the model's ability to capture small-scale features, which is conducive to the network learning more local perception features of winter wheat. By using residual modules instead of ordinary convolutions in the backbone network, the gradient explosion and vanishing problems can be effectively prevented; the hole spatial convolution pooling pyramid is introduced to obtain more scale feature information; in the jump connection stage, the CBAM dual attention module is added to improve the local attention of ASPP. Fig.11 As shown in column d, the model effectively solves the problem of difficult winter wheat identification with large intra-class differences and small inter-class differences. The results show that the model can effectively identify winter wheat when trained on high-resolution remote sensing image data sets, and the extracted winter wheat spatial distribution information is more complete. However, the present invention still has some shortcomings, and there is still a lot of room for improvement in future research. In terms of image data sources, only Gaofen-2 images are used. In the future, it can be considered to add other types of remote sensing data and use multi-temporal data to extract winter wheat spatial distribution information.

[0139] The present invention proposes a multi-scale feature deep supervision network RAUnet model that integrates a dual attention mechanism and is suitable for winter wheat extraction from high-resolution remote sensing images. The model uses an improved Unet model as the main structure, constructs an image pyramid input and a side output layer containing multiple auxiliary classifiers. This method inputs images of different scales into different input paths of the encoder, improves the utilization rate of each layer of channels by enhancing the network width, and the side output layer supervises the output mapping of each scale to output better results. Combined with deep supervision, the ability of cascaded convolution to capture small-scale features can be effectively enhanced, which is beneficial for the network to learn more about the local perception features of the classification target, thereby making the model more generalizable. The improved Unet model uses a residual structure instead of ordinary convolution in the encoding stage, which not only deepens the network depth of the model but also solves the problem of gradient explosion. It also eliminates the direct connection gap between the low-level and high-level features of the original model to a certain extent and protects the integrity of the information. The bottom layer of the model uses a dilated spatial convolution pooling pyramid instead of ordinary convolution operation, and uses different dilation rates to construct convolution kernels with different receptive fields to obtain multi-scale winter wheat information. In the jump connection stage, the channel and spatial dual attention mechanism is integrated, and weight information is added to the channel dimension and spatial dimension of the feature map, which can effectively suppress the model's ability to learn non-winter wheat features, making the model more efficient and targeted in learning; and improving the model's feature extraction ability. This model targets the problems of densely distributed small-scale winter wheat patches, large differences within the winter wheat class, and small differences between winter wheat and other crop classes. Compared with the four classic models of FCN, Unet, DeeplabV3, and Segnet, RAUnet reduces the phenomenon of missed classification, misclassification, and incomplete extraction of winter wheat. This model has a certain improvement in the six indicators of winter wheat extraction, and shows higher accuracy and robustness than other models.

[0140] Embodiment 2

[0141] In order to execute the method corresponding to the above embodiment 1 to achieve corresponding functions and technical effects, a wheat planting area identification system is provided below, including:

[0142] The data acquisition module is used to acquire the Gaofen-2 satellite data of the area to be identified; the area to be identified includes the wheat planting area; the Gaofen-2 satellite data includes multispectral images and panchromatic images.

[0143] The preprocessing module is used to preprocess the Gaofen-2 satellite data to obtain preprocessed Gaofen-2 satellite data; the preprocessing includes: radiation calibration, atmospheric correction, orthorectification and image fusion.

[0144] The identification module is used to determine the wheat planting area of ​​the to-be-identified area by using a wheat planting area identification model according to the preprocessed Gaofen-2 satellite data; wherein the wheat planting area identification model is obtained by training a multi-scale feature deep supervision network using a training data set; the training data set includes Gaofen-2 satellite data and wheat planting area labels of the training area; the multi-scale feature deep supervision network includes an image pyramid input layer, an improved U-Net network and a side output layer; the improved U-Net network includes an encoder and a decoder; the encoder includes four first semantic feature extraction units and a second semantic feature extraction unit connected in sequence unit; the first semantic feature extraction unit includes a residual module and a downsampling layer connected in sequence; the second semantic feature extraction unit includes a dilated spatial convolution pooling pyramid layer; the decoder includes four feature fusion units connected in sequence; the feature fusion unit includes an upsampling layer and a convolution layer; the first semantic feature extraction unit and the feature fusion unit correspond one-to-one and are connected through a dual attention module; the dilated spatial convolution pooling pyramid layer is connected to the first feature fusion unit; the image pyramid input layer corresponds one-to-one to the first semantic feature extraction unit; the side output layer includes four classifiers; the classifiers correspond one-to-one to the feature fusion units.

[0145] Embodiment 3

[0146] The present invention provides an electronic device, comprising: a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the wheat planting area identification method of embodiment 1.

[0147] Embodiment 4

[0148] The present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the wheat planting area identification method of embodiment 1 is implemented.

[0149] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0150] The present invention uses specific examples to illustrate the principles and implementation methods of the present invention. The above examples are only used to help understand the method and core ideas of the present invention. At the same time, for those skilled in the art, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A method for identifying wheat planting areas, characterized in that: include: Acquire Gaofen-2 satellite data of the area to be identified; the area to be identified includes a wheat planting area; the Gaofen-2 satellite data includes multispectral images and panchromatic images; Preprocessing the Gaofen-2 satellite data to obtain preprocessed Gaofen-2 satellite data; The preprocessing includes: radiation calibration, atmospheric correction, orthorectification and image fusion; Preprocessing the Gaofen-2 satellite data to obtain preprocessed Gaofen-2 satellite data specifically includes: Performing radiation calibration, atmospheric correction and orthorectification processing on the multispectral image to obtain a processed multispectral image; Performing radiometric calibration and orthorectification processing on the panchromatic image to obtain a processed panchromatic image; Using an image fusion algorithm to fuse the processed multispectral image and the processed panchromatic image to obtain pre-processed Gaofen-2 satellite data; According to the preprocessed Gaofen-2 satellite data, the wheat planting area of ​​the area to be identified is determined using a wheat planting area recognition model; wherein the wheat planting area recognition model is obtained by training a multi-scale feature deep supervision network using a training data set; the training data set includes Gaofen-2 satellite data and wheat planting area labels of the training area; the multi-scale feature deep supervision network includes an image pyramid input layer, an improved U-Net network, a side output layer and an average layer; the improved U-Net network includes an encoder and a decoder; the encoder includes four first semantic feature extraction units and one second semantic feature extraction unit connected in sequence; the first semantic feature The extraction unit includes a residual module and a downsampling layer connected in sequence; the second semantic feature extraction unit includes a dilated spatial convolution pooling pyramid layer; the decoder includes four feature fusion units connected in sequence; the feature fusion unit includes an upsampling layer and a convolution layer; the first semantic feature extraction unit and the feature fusion unit correspond one to one and are connected through a dual attention module; the dilated spatial convolution pooling pyramid layer is connected to the first feature fusion unit; the image pyramid input layer corresponds one to one to the first semantic feature extraction unit; the side output layer includes four classifiers; the classifiers correspond one to one to the feature fusion units; and the averaging layer is connected to the four classifiers respectively.

2. The wheat planting area identification method according to claim 1, characterized in that: The multispectral image is subjected to radiation calibration, atmospheric correction and orthorectification processing to obtain a processed multispectral image, specifically comprising: Performing radiometric calibration on the multispectral image to obtain a calibrated multispectral image; Performing atmospheric correction on the calibrated multispectral image to obtain a corrected multispectral image; The corrected multispectral image is orthorectified to obtain a processed multispectral image.

3. The wheat planting area identification method according to claim 1, characterized in that: The panchromatic image is subjected to radiometric calibration and orthorectification processing to obtain a processed panchromatic image, specifically comprising: Performing radiometric calibration on the panchromatic image to obtain a calibrated panchromatic image; Orthorectification is performed on the calibrated panchromatic image to obtain a processed panchromatic image.

4. The wheat planting area identification method according to claim 1, characterized in that: The multi-scale feature deep supervision network is trained using the training data set, including: Preprocessing the Gaofen-2 satellite data of the training area to obtain preprocessed Gaofen-2 satellite data of the training area; Labeling the preprocessed Gaofen-2 satellite data of the training area to obtain the preprocessed Gaofen-2 satellite data of the training area labeled with wheat planting area labels; The multi-scale feature deep supervision network is trained using the pre-processed Gaofen-2 satellite data of the training area with the wheat planting area labels marked to obtain the wheat planting area recognition model.

5. A wheat planting area identification system, characterized in that: include: A data acquisition module, used to acquire Gaofen-2 satellite data of the area to be identified; the area to be identified includes a wheat planting area; the Gaofen-2 satellite data includes multispectral images and panchromatic images; A preprocessing module, used for preprocessing the Gaofen-2 satellite data to obtain preprocessed Gaofen-2 satellite data; The preprocessing includes: radiation calibration, atmospheric correction, orthorectification and image fusion; Preprocessing the Gaofen-2 satellite data to obtain preprocessed Gaofen-2 satellite data specifically includes: Performing radiation calibration, atmospheric correction and orthorectification processing on the multispectral image to obtain a processed multispectral image; Performing radiometric calibration and orthorectification processing on the panchromatic image to obtain a processed panchromatic image; Using an image fusion algorithm to fuse the processed multispectral image and the processed panchromatic image to obtain pre-processed Gaofen-2 satellite data; The identification module is used to determine the wheat planting area of ​​the to-be-identified area by using a wheat planting area identification model according to the preprocessed Gaofen-2 satellite data; wherein the wheat planting area identification model is obtained by training a multi-scale feature deep supervision network using a training data set; the training data set includes Gaofen-2 satellite data and wheat planting area labels of the training area; the multi-scale feature deep supervision network includes an image pyramid input layer, an improved U-Net network, a side output layer and an average layer; the improved U-Net network includes an encoder and a decoder; the encoder includes four first semantic feature extraction units and one second semantic feature extraction unit connected in sequence; the first The semantic feature extraction unit includes a residual module and a downsampling layer connected in sequence; the second semantic feature extraction unit includes a dilated spatial convolution pooling pyramid layer; the decoder includes four feature fusion units connected in sequence; the feature fusion unit includes an upsampling layer and a convolution layer; the first semantic feature extraction unit and the feature fusion unit correspond one to one and are connected through a dual attention module; the dilated spatial convolution pooling pyramid layer is connected to the first feature fusion unit; the image pyramid input layer corresponds one to one to the first semantic feature extraction unit; the side output layer includes four classifiers; the classifiers correspond one to one to the feature fusion units; and the averaging layer is connected to the four classifiers respectively.

6. An electronic device, characterized in that: include: A memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the wheat planting area identification method described in any one of claims 1-4.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for identifying a wheat-planting area according to any one of claims 1 to 4 is implemented.