Rice extraction method based on semi-supervised learning generative adversarial network

By using a generative adversarial network based on semi-supervised learning combined with SAR and multispectral data to extract rice in cloudy and rainy areas, the problem of insufficient rice extraction accuracy and sample number is solved, the extraction accuracy is improved and the manual extraction time is reduced.

CN118366044BActive Publication Date: 2024-08-23CHENGDU UNIVERSITY OF TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410790633.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-08-23
Estimated Expiration
2044-06-19

AI Technical Summary

Technical Problem

In cloudy and rainy areas, the quality of optical remote sensing data is low and it is difficult to accurately extract rice crops. Existing technology cannot effectively solve the over-fitting problem caused by insufficient rice extraction accuracy and sample number.

Method used

The generative adversarial network (SSGAN) based on semi-supervised learning is used to combine the time-series Sentinel-1 SAR data and the time-series Sentinel-2 multispectral data, and use the backscattering coefficients of VH polarization and VV polarization and NDWI, NDVI, and NDSI features to utilize The improved SSGAN network classifier is used for rice extraction, which reduces the investment in manpower, material resources, and financial resources.

Benefits of technology

It improves rice recognition accuracy, solves the over-fitting problem caused by a small number of training samples, provides high-quality rice extraction support in cloudy and rainy areas, and reduces manual extraction time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118366044B
    Figure CN118366044B
Patent Text Reader

Abstract

The invention relates to the technical field of image data processing, and discloses a rice extraction method based on a semi-supervised learning generative adversarial network, comprising the steps of: acquiring remote sensing images, the remote sensing images comprising Time-Series Sentinel-1 SAR data and Time-Series Sentinel-2 multispectral data; extracting rice features, the extracted rice features comprising backscatter coefficients of VH polarization and VV polarization extracted using Time-Series Sentinel-1 SAR data, and NDWI, NDVI, and NDSI extracted using Time-Series Sentinel-2 multispectral data; while acquiring the remote sensing images, performing field sampling and high-resolution image acquisition, and marking rice samples on the field sampling and high-resolution acquired images as label images; inputting the remote sensing images and their corresponding label images and the extracted rice features into an SSGAN network classifier to obtain a rice extraction result. The invention improves the rice extraction accuracy by an improved SSGAN network classifier.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image data processing, and in particular to a rice extraction method based on a semi-supervised learning generative adversarial network. Background Art

[0002] As global food demand continues to increase, accurate food crop mapping is essential for understanding agricultural land use and monitoring crop growth. As one of the important food crops in the world, rice is of great significance to farmers and the agricultural sector. Rice cultivation usually has an agricultural irrigation phase, as well as continuous or periodic water layers covering the soil to control weeds and pests, so the temporal changes in water-soil-rice composition are a key factor in extracting rice crops. For rice extraction, one of the main methods is phenological analysis based on optical or radar time series, which mainly extracts rice by planting stage.

[0003] Optical remote sensing data can provide rich spectral information about rice, and rice can be extracted by detecting changes in the time-series spectral curve. Under good ground observation conditions, rice can be accurately extracted using time-series optical remote sensing images of the rice growth cycle. However, most rice-growing areas are located in subtropical and tropical regions, and the key phenological period of rice growth usually has severe weather that limits optical observation, making it difficult to obtain high-quality time-series optical images. Summary of the invention

[0004] The purpose of the present invention is to improve the rice extraction accuracy through an improved SSGAN network classifier and provide a rice extraction method based on a semi-supervised learning generative adversarial network.

[0005] In order to achieve the above-mentioned object of the invention, the embodiment of the present invention provides the following technical solutions:

[0006] The rice extraction method based on semi-supervised learning generative adversarial network includes the following steps:

[0007] Step 1, obtaining remote sensing images of rice phenological periods in the study area, wherein the remote sensing images include Time Series Sentinel-1 SAR data and Time Series Sentinel-2 multispectral data, wherein the Time Series Sentinel-1 SAR data is processed by VH polarization and VV polarization;

[0008] Step 2, extracting rice features based on remote sensing images, the extracted rice features include VH polarization and VV polarization backscattering coefficients extracted using Time-Series Sentinel-1 SAR data, and NDWI, NDVI, and NDSI extracted using Time-Series Sentinel-2 multispectral data;

[0009] Step 3, while acquiring the remote sensing image in step 1, field sampling and high-resolution image acquisition are performed on the same area, and rice samples are marked on the field sampling and high-resolution acquired images as label images;

[0010] Step 4: Input the remote sensing image and its corresponding label image and the extracted rice features into the SSGAN network classifier to obtain the rice extraction result.

[0011] Compared with the prior art, the present invention has the following beneficial effects: the rice extraction method provided by the present invention combines the Time-Series Sentinel-1 SAR data with the Time-Series Sentinel-2 multispectral data, and only uses a small amount of training samples and multiple features. The rice planting area in cloudy and rainy areas can be extracted through an improved SSGAN network classifier. The improved SSGAN network classifier not only solves the problem of overfitting caused by a small number of training samples, but also improves the rice recognition accuracy; and the sentinel image data can be obtained free of charge, which reduces the investment in manpower, material resources and financial resources, solves the problem of long time for manual extraction of rice areas, and provides technical support for the accurate extraction of rice in cloudy and rainy areas. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0013] Figure 1 is a flow chart of the method of the present invention;

[0014] Figure 2 Schematic diagram of backscattering coefficient of VH polarization in Example 2 of the present invention;

[0015] Figure 3 Schematic diagram of backscattering coefficient of VV polarization in Example 2 of the present invention;

[0016] Figure 4 It is a schematic diagram of the architecture of the SSGAN network classifier of the present invention;

[0017] Figure 5 It is a schematic diagram of the network structure of the generator of the present invention;

[0018] Figure 6 Schematic diagram of the network structure of the basic residual block and the bottleneck layer in the convolution block of the present invention, Figure 6 (a) is a schematic diagram of the basic residual block network structure before improvement. Figure 6 (b) is a schematic diagram of the improved basic residual block network structure. Figure 6(c) is a schematic diagram of the network structure of the bottleneck layer before improvement. Figure 6 (d) is a schematic diagram of the network structure of the improved bottleneck layer;

[0019] Figure 7 Schematic diagram of the network structure of the discriminator of the present invention. DETAILED DESCRIPTION

[0020] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents the selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present invention.

[0021] It should be noted that similar numbers and letters represent similar items in the following figures, so once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance, or implying any such actual relationship or order between these entities or operations. In addition, the terms "connected", "connected", etc. can be directly connected between elements, units, and modules, or indirectly connected via other elements, units, and modules.

[0022] Embodiment 1:

[0023] The present invention is achieved through the following technical solutions: Figure 1 As shown, the rice extraction method based on semi-supervised learning generation adversarial network includes the following steps:

[0024] Step 1, obtaining remote sensing images of rice phenological periods in the study area, wherein the remote sensing images include Time-Series Sentinel-1 SAR data and Time-Series Sentinel-2 multispectral data, wherein the Time-Series Sentinel-1 SAR data is processed by VH polarization and VV polarization.

[0025] In southern China, the rice growing season is often accompanied by high temperatures and heavy rains, and the quality of optical satellite imaging is low. Sentinel-1 is not affected by cloudy and rainy weather images, and is equipped with a C-band synthetic aperture radar system with a revisit period of 12 days, high temporal resolution, and is available free of charge. Rice cultivation usually has an agricultural irrigation phase, as well as continuous or periodic water layers covering the soil to control weeds and pests. Therefore, the temporal changes in the water-soil-rice composition are key factors in identifying rice crops. Radar images are sensitive to dielectric constants, and one of the main factors affecting dielectric constants is water content, so radar images are very beneficial for rice extraction. From the perspective of data acquisition and practical application, radar data has more advantages in rice extraction, so the remote sensing images obtained by Sentinel-1 are time-series Sentinel-1 SAR data.

[0026] VH polarization and VV polarization are two commonly used polarization modes for radar data. The electric field vector of the energy pulse emitted by the radar can be polarized in the vertical plane or the horizontal plane. Regardless of the wavelength, the radar signal can transmit the horizontal (H) or vertical (V) electric field vector and receive the horizontal (H) or vertical (V) return signal. Radar systems commonly use four polarization modes: HH, VV, HV, and VH. The first two are co-polarization, and the latter two are cross-polarization. The time-series Sentinel-1 SAR data is processed with VH polarization and VV polarization.

[0027] The time-series Sentinel-2 multispectral data is obtained free of charge by Sentinel-2, with a maximum resolution of 10 meters. It has blue band, red band, near-infrared band and three red edge bands, and has strong recognition capabilities for vegetation, water bodies and soil. Therefore, multispectral data (i.e. optical data) is necessary, but using all bands of optical data as features will cause information redundancy and the features are not prominent. Therefore, this scheme only extracts water body index (NDWI), vegetation index (NDVI) and soil index (NDSI) as spectral index features. Even if there are no available images during the critical growth period of rice (transplanting period to milky period), images from other periods can provide feature information for rice identification.

[0028] Step 2: Extract rice features based on remote sensing images. The extracted rice features include the backscatter coefficients of VH polarization and VV polarization extracted using the Time-Series Sentinel-1 SAR data, and NDWI, NDVI, and NDSI extracted using the Time-Series Sentinel-2 multispectral data.

[0029] Due to the special irrigation method during the rice planting period, the Sentinel-1 SAR data has different performances in VH polarization and VV polarization, so the backscatter coefficients of the two polarizations are extracted as rice features. Extracting rice features includes two steps: data preprocessing and feature extraction. Data preprocessing:

[0030] The time series Sentinel-1 SAR data were input into SNAP software for image mosaicking, orbit correction, radiation correction, speckle filtering, and Doppler terrain correction. Image mosaicking used the TOPSARSlice Assembly technology dedicated to Sentinel-1 SAR image mosaicking; speckle filtering was used to remove radar data noise information, and the Refined Lee filter was used for sampling filtering, with a filter window size of 7×7.

[0031] Feature extraction of backscatter coefficient:

[0032] The backscatter coefficient obtained by data preprocessing is converted into decibels using the following formula to obtain the final backscatter coefficient:

[0033]

[0034] in, represents the backscattering coefficient, Refers to the backscatter coefficient after decibelization.

[0035] The purpose of decibelization is: first, to stretch the range of the backscatter coefficient to an approximate Gaussian distribution; second, the number of storage bits of the backscatter coefficient data can be reduced after decibelization (from double-precision double data to float floating-point data), saving storage space; third, radar data defaults to linear values, which are not suitable for calculations due to their wide value range. Decibelization makes visualization and data analysis more convenient.

[0036] The rice growth process undergoes changes from water to soil to rice, so NDWI, NDVI and NDSI are all indicative of rice identification. Therefore, these three spectral indices are extracted from the time-series Sentinel-2 multispectral data as rice features. Extracting rice features includes two steps: data preprocessing and feature extraction. Data preprocessing:

[0037] The time-series Sentinel-2 multispectral data were input into the remote sensing image processing software ENVI5.6. The data had been radiometrically calibrated and atmospherically corrected, and only required data preprocessing for image resampling.

[0038] Feature extraction of spectral indices:

[0039]

[0040]

[0041]

[0042] Among them, NDWI represents water body index, NDVI represents vegetation index, and NDSI represents soil index; Green represents green band, corresponding to B3 band of Time-Series Sentinel-2 multispectral data; Red represents red band, corresponding to B4 band of Time-Series Sentinel-2 multispectral data; NIR represents near infrared band, corresponding to B8 band of Time-Series Sentinel-2 multispectral data; SWIR represents shortwave infrared band, corresponding to B11 band of Time-Series Sentinel-2 multispectral data.

[0043] Step 3, while acquiring the remote sensing image in step 1, field sampling and high-resolution image acquisition are performed on the same area, and rice samples are marked on the field sampling and high-resolution acquired images as label images.

[0044] The samples in the study area mainly come from field sampling, but when the number of field sampling samples is too small to support deep learning, high-resolution images can be collected to supplement the samples. Then, the field sampling and the collected high-resolution images are marked with rice samples as real label images, and used together with the remote sensing images obtained in step 1 as training samples to train the SSGAN network classifier in step 4.

[0045] Step 4: input the remote sensing image and its corresponding label image and the extracted rice features into the SSGAN network classifier to obtain the rice extraction result, wherein the rice features include NDWI, NDVI, NDSI, VH polarized backscattering coefficient, and VH polarized backscattering coefficient.

[0046] Remote sensing images and corresponding labeled images are used as training samples, and the extracted rice features are used as features. It can be seen that each remote sensing image corresponds to 5 features. Therefore, when the number of training samples is small and the number of features is large, the use of fully supervised algorithms is prone to problems of difficulty in fitting. Semi-supervised algorithms can mine additional information from unlabeled data and increase the diversity of samples. The GAN network (Generative Adversarial Network) uses adversarial learning strategies to make image recognition capabilities stronger and stronger until the discriminator cannot determine whether the input is a true sample or a false sample, thereby improving the final rice extraction accuracy. Therefore, when the number of training samples is insufficient, the SSGAN network (Semi-Supervise Generative Adversarial Networks) classifier is a reliable method. It should be noted that "true samples" refer to samples with labeled images that have been marked in step 3, and "false samples" refer to the segmentation results predicted by the generator.

[0047] The architecture of the SSGAN network classifier used in this solution is as follows Figure 4As shown in the figure, it includes a generator and a discriminator. The generator is a segmentation network, which is used to segment the remote sensing image and the rice features it carries, and generate a predicted classification probability map; the label image is converted into a one-hot encoding label data format and the predicted classification probability is Figure 1 The same input discriminator, the discriminator is a fully convolutional network, which is used to output the prediction confidence map.

[0048] The generator uses the improved segmentation network Deeplabv3+, and its specific network structure is as follows Figure 5 As shown in the figure, Deeplabv3+ is an encoder-decoder structure, and its main features are the wide residual module and spatial pyramid pooling module (ASPP) in the encoder. The spatial pyramid pooling module applies multi-sampling rate dilated convolution, multi-receptive field convolution or pooling to the input features to explore multi-scale contextual information. The encoder-decoder structure captures clear target boundaries by gradually restoring spatial information. The traditional method increases the receptive field by stacking convolution layers + pooling layers, but also reduces the size of the feature map. Therefore, upsampling is also required to restore the image size, and there are many problems with the stacked neural network, such as the results of the upsampling layer (such as bilinear interpolation) are fixed and unlearnable, the internal data structure is lost, and the spatial level information is lost. The hollow convolution layer in the spatial pyramid pooling module of this solution can increase the receptive field while keeping the size of the feature map unchanged.

[0049] The traditional Deeplabv3+ backbone network Xception requires more training samples to fully learn and give full play to its advantages. If the training samples are insufficient, it may cause problems such as difficulty in fitting or performance degradation, so it has poor adaptability to small data sets. To solve this problem, this solution has made improvements to Deeplabv3+, such as Figure 5 As shown in the figure, first, the backbone network of Deeplabv3+ is replaced by a wide residual network (Wide-ResNet) from Xception; second, the basic residual blocks and bottleneck layers in the last three convolutional blocks (a total of 7 convolutional blocks) of the wide residual network are improved. Specifically, combined with Figure 6 As shown in , each convolution block originally includes a basic residual block and a bottleneck layer. For the last three convolution blocks, this scheme replaces the two 3*3 convolution layers in the basic residual block (such as Figure 6 (a) in the figure) is replaced with two 3*3 hole convolution layers, and a Dropout layer is added between the two 3*3 hole convolution layers (as shown in Figure 6 Then, the 3*3 convolutional layer in the bottleneck layer (as shown in (b) in Figure 6 The 3*3 hole convolution layer is replaced with a 3*3 hole convolution layer, and a Dropout layer is added after the 3*3 hole convolution layer (as shown in (c) in the figure). Figure 6As shown in (d) in the figure), the first four convolution blocks still use the structure of the basic residual block and the bottleneck layer, which ensures that the wide residual network can fully learn the characteristics of the data. Third, the order of "convolution-batch normalization-activation" of the improved basic residual block and the bottleneck layer is changed to "batch normalization-activation-convolution" ( Figure 6 not shown).

[0050] The discriminator uses a fully convolutional network, and its network structure is as follows: Figure 7 As shown, the predicted classification probability map output by the generator is distinguished from the ground truth distribution while considering the spatial resolution. The fully convolutional network achieves semi-supervised learning by discovering credible areas in the prediction results of unlabeled images, thereby providing additional supervision signals and outputting a prediction confidence map.

[0051] Please continue to see Figure 4 , the SSGAN network classifier has four loss functions, namely, the semi-supervised loss function L based on the prediction confidence map semi , the cross entropy loss function L for segmenting the true value ce , focus on the dynamic adversarial loss function L f_adv , discriminator loss function L D .

[0052] Among them, the cross entropy loss function L of the segmentation true value ce for:

[0053]

[0054] Among them, X n Y represents the feature map of the input generator (the feature map is the remote sensing image and the rice features it carries); n represents one-hot encoded label data (i.e., true label); G(·) represents the generator, G(X n ) represents the predicted classification probability map output by the generator. The size of the predicted classification probability map is H×W×C, where H is the height, W is the width, and C is the number of categories. C=2 represents the two categories of rice and background. (h,w) represents the position of the pixel, h represents the vertical position, and w represents the horizontal position. The c in (h,w,c) represents the category of the pixel, c∈C.

[0055] Semi-supervised loss function L based on prediction confidence map semi for:

[0056]

[0057] Where D(·) represents the discriminator, D(G(X n)) represents the predicted confidence map of the discriminator for the output of the generator, which contains several grids, each grid has a confidence value; T semi represents the threshold; I(·) represents the indicator function, which is used to select the area where the segmentation result of the generator can confuse the discriminator, and then further optimize the segmentation result of the area; Represents the label of the predicted classification probability map (same format as one-hot encoded label data), when When , it indicates background.

[0058] Discriminator loss function L D for:

[0059]

[0060] Among them, y n Represents the input source of the discriminator. When y n = 0, indicating that the input source is the predicted classification probability map (i.e., the prediction result of the generator). n =1, it means that the input source is one-hot encoded label data (that is, the real label).

[0061] This scheme further transforms the adversarial loss function L of the SSGAN network classifier adv Improved to focus on dynamic adversarial loss function L f_adv , the traditional adversarial loss function L adv for:

[0062]

[0063] Improved focused dynamic adversarial loss function L f_adv for:

[0064]

[0065] in, is the balance factor, is the focusing factor.

[0066] Since the traditional adversarial loss function is to sum the cross entropy of the generator's output and the true label pixel by pixel, when the generator's segmentation network has a good segmentation result for most areas of the input feature map, a large number of pixels that are enough to confuse the discriminator have a small loss value, which will lower the loss value of the overall feature map, making it difficult for the discriminator to further effectively constrain the gradient update direction of the generator's segmentation network. In order to solve the above problem, this solution introduces the adjustment item and balance factor .Balance Factor The main function is to balance the importance of positive and negative samples. The larger is, the more important the positive sample loss is, and the less important the negative sample loss is. It is not possible to distinguish between difficult and easy samples (it should be noted that the "positive sample" refers to rice, with a label of 1, and the "negative sample" refers to the background, with a label of 0). Therefore, the prediction confidence map D(G(X n )) (h,w) and focusing factor Dynamically adjust the loss contribution of difficult and easy samples. If the prediction confidence map is high, the sample is an easy sample. The adjustment item will produce a lower weight to reduce the proportion of such sample loss in the overall loss. On the contrary, if the prediction confidence map is low, the sample is a difficult sample. The adjustment item will produce a higher weight to increase the proportion of such sample loss in the overall loss, so that the network pays more attention to the learning of difficult samples. Focusing factor Controls the degree of attention paid to learning difficult samples. The larger the value, the more attention the network pays to the learning of difficult samples, and the more suitable it is for more extreme positive and negative sample imbalance problems. By focusing on the dynamic adversarial loss function, the model pays more attention to difficult samples and positive samples, so that the gradient update direction is effectively constrained to improve the rice extraction accuracy of the model, which is particularly suitable for model training when the number of training samples is small.

[0067] In the above training process, the input feature map is used to generate a predicted classification probability map through the segmentation network of the generator, and it is input into the discriminator together with the one-hot encoded label data. The discriminator generates a predicted confidence map (the predicted confidence map is a binary classification probability map. When the confidence value of the grid is greater than the threshold T semi , it means that the prediction result is close enough to the true label distribution and is regarded as a credible region. These credible regions can be used to train the segmentation network of the generator, that is, participate in the training as pseudo samples). Calculate L by predicting the confidence map semi and L f_adv , and then minimize L D Since only feature maps but not corresponding label images are needed in the process of updating the network gradient of the generator using the discriminator constraint, L can be trained without labels. f_adv , thus achieving semi-supervised learning.

[0068] Embodiment 2:

[0069] This embodiment is based on the above-mentioned embodiment 1, and takes the rice extraction in the central area of ​​Chongming Island, China in 2023 as an example for demonstration.

[0070] 1. Data acquisition

[0071] (1) Acquisition of rice sample data:

[0072] The real sample data of rice mainly comes from field sampling and high-resolution image collection. Field sampling was carried out in Chongming Island in late June, mid-September and early December 2023. Due to the influence of funding and other factors, the field sampling area is small and insufficient to support semi-supervised classification learning. Therefore, the Jilin-1 wide-band 01B satellite is used to supplement the samples of high-resolution images. The resolution of the satellite's panchromatic image is better than 0.5m and the resolution of the multispectral image is better than 3m. After image fusion processing, the resolution of the multispectral image can reach 0.5m.

[0073] (2) Remote sensing image acquisition:

[0074] ① Time series Sentinel-1 SAR data:

[0075] Using the interferometric wide swath (IW) mode and ground distance detection (GRD) time-series Sentinel-1 SAR data, image acquisition was completed through the ASF platform, and image processing was completed in the SNAP software, mainly including image mosaicking, orbit correction, coherent speckle filtering, terrain correction, and decibelization. The image mosaicking method uses the TOPSAR SliceAssembly technology dedicated to Sentinel-1 SAR image mosaicking, and the mosaicking effect is better than ordinary raster mosaicking. Since Chongming Island grows single-season rice and the rice planting-harvesting period is from mid-May to mid-November, the study selected images between May 2023 and December 2023. Considering that the revisit period of the time-series Sentinel-1 SAR data is 12 days, there are a total of 36 scenes and 18 periods of images. Table 1 shows the detailed information of the time-series Sentinel-1 SAR data.

[0076] Table 1 Detailed information of the time series Sentinel-1 SAR data

[0077]

[0078] ②Time series Sentinel-2 multispectral data:

[0079] Image acquisition was completed through the European Space Agency platform, and all high-quality images without cloud cover between January and December 2023 were selected, with a total of 18 scenes and 9 periods of images. Table 2 shows the detailed information of the time-series Sentinel-2 multispectral data.

[0080] Table 2 Detailed information of the Sentinel-2 multispectral data

[0081]

[0082] (ii) Data preprocessing and feature extraction.

[0083] (1) Time series of Sentinel-1 SAR data:

[0084] The backscatter coefficients of VH polarization and VV polarization were obtained by SNAP software, including the changes in the backscatter coefficient values ​​of rice and other ground objects. Figure 2 shows the backscatter coefficient for VH polarization, Figure 3 The backscatter coefficient for VV polarization is shown.

[0085] (2) Time series Sentinel-2 multispectral data:

[0086] By resampling the image resolution of each band to 10 m using ENVI5.6 software, the vegetation index NDVI, water body index NDWI and soil index NDSI of each period can be calculated.

[0087] (iii) SSGAN network classifier model training.

[0088] (1) Marking sample preparation:

[0089] The Time-Series Sentinel-1 SAR data and the Time-Series Sentinel-2 multispectral data were resampled to a resolution of 10 m. After sliding window cropping with a repetition rate of 0.2, the images of the study area were cropped into training samples of size 256*256, and finally a total of 199 training samples were obtained.

[0090] (2) Network model construction:

[0091] The adversarial learning strategy of the SSGAN network classifier is as follows Figure 4 As shown; the generator uses the improved segmentation network Deeplabv3+, the specific network structure is as follows Figure 5 As shown; the network structure of the basic residual block and bottleneck layer of the generator's backbone network is as follows Figure 6 As shown; the discriminator adopts a fully convolutional network, and the specific network structure is as follows Figure 7 shown.

[0092] (3) Network model training:

[0093] The training samples were divided into training set and validation set in a ratio of 8:2, and then sample enhancement was performed by horizontal flipping, vertical flipping, mirror flipping, random scaling and random cropping. After sample enhancement, there were still cases where the number of training samples was small and the number of features was large. The enhanced training samples were input into the SSGAN network classifier, and the network parameters were adjusted to achieve the optimal value. 1000 iterations were performed, and all real samples were used in the first 300 iterations to fully learn the rice features. Semi-supervised training began from the 301st iteration, using a certain proportion of real samples and a large number of pseudo samples generated by the generator for training.

[0094] 4. Accuracy verification.

[0095] (1) Accuracy evaluation indicators:

[0096] In order to quantitatively evaluate the segmentation performance of different methods as network architectures, this embodiment uses Mean Intersection over Union (MIoU), FI score (F1 Score) and Overall Accuracy (OA) as criteria for judging rice extraction results. The parameter representation is shown in Table 3.

[0097] Table 3 Parameter representation table

[0098]

[0099] TP (True positive): True rice, correctly predicting rice as rice number;

[0100] FP (False positive): false rice, the background is mistakenly predicted as rice;

[0101] FN (False negative): false background, rice is mistakenly predicted as background number;

[0102] TN (True negative): True background, the background is correctly predicted as the background number.

[0103] Essentially, MIoU calculates the ratio of the intersection and union between each type of predicted segmentation pixels and the true segmentation pixels, that is:

[0104]

[0105] Among them, M represents the number of categories; the higher the correctly predicted part (TP) in the segmented image, the fewer the wrongly predicted parts (FP, FN), and the better the prediction result. In other words, the higher the MIoU value, the more accurate the extraction result.

[0106] OA calculates the ratio of correctly classified samples to all samples, that is:

[0107]

[0108] Among them, the higher the OA value, the more accurate the classification.

[0109] (2) Hyperparameter analysis:

[0110] The focused dynamic adversarial loss function L proposed in this scheme f_adv The focus factor and balance factor Experiments were conducted with different values ​​of to determine the appropriate parameter values. The values ​​of are set to 1, 2, and 5 respectively. The values ​​of are set to 0.25 and 0.75 respectively; the features carried by the input feature map include the backscatter coefficient of VH polarization (represented by "VH" in Table 7), the backscatter coefficient of VV polarization (represented by "VV" in Table 7), the water body index (represented by "NDWI" in Table 7), the vegetation index (represented by "NDVI" in Table 7), and the soil index (represented by "NDSI" in Table 7); the ratios of true samples to false samples are 1, 3 / 4, and 1 / 4 respectively. As shown in Table 4, no matter how much the true samples account for, when , When , the rice extraction accuracy is higher than other values, and the rice extraction accuracy is highest when the true sample accounts for 3 / 4, which proves that the semi-supervised algorithm of the SSGAN network classifier in this scheme is better than the fully supervised algorithm.

[0111] Table 4 Analysis of the values ​​of focusing factor and balance factor

[0112]

[0113] (3) Generator performance analysis:

[0114] In order to verify the advancedness of the segmentation network of the generator of this solution, the improved Deeplabv3+ is compared with the traditional Deeplabv3+. The input feature maps are the same, and the number of training samples accounts for 1 / 4, 3 / 4 and all of the total training samples respectively. As shown in Table 5, regardless of the number of training samples, the rice extraction accuracy of the improved Deeplabv3+ (represented by "optimized Deeplabv3+" in Table 5) of this scheme is much better than that of the traditional Deeplabv3+ (represented by "Deeplabv3+" in Table 5). When all training samples are used for training, the MIoU of this scheme is improved by 31.88%, and the OA is improved by 15.39%. When 3 / 4 and 1 / 4 training samples are used, the traditional Deeplabv3+ is difficult to converge and underfit due to too many input features and a small number of training samples. All verification samples are predicted as background values, so compared with the use of all training samples, OA is improved, but MIoU is reduced. The improved Deeplabv3+ still performs stably when the number of training samples is reduced, and MIoU remains above 80.5% and OA remains above 92.4%. It proves that the improvement of Deeplabv3+ by this scheme makes it more suitable for multi-feature small sample data sets.

[0115] Table 5 Comparison of rice extraction accuracy between traditional Deeplabv3+ and this solution Deeplabv3+

[0116]

[0117] (4) Verification of rice extraction accuracy:

[0118] According to the hyperparameter analysis results, Set to 0.75, Set to 2, and conduct accuracy comparison experiments. In order to verify that the improvement made by this scheme on the SSGAN network classifier is positive, the same feature map is input, and the generator is replaced with the improved Deeplabv3+ (indicated by “+ optimized Deeplabv3+” in Table 6) and the adversarial loss function is changed to the focused dynamic adversarial loss function (indicated by “+L f_adv ” indicates), and in order to compare with the fully supervised learning algorithm, the ratio of true samples to false samples is set to 1, 3 / 4 and 1 / 4 respectively, and the true sample ratio of 1 represents fully supervised learning. Table 6 is the analysis of rice extraction accuracy. It can be seen from Table 6 that each improvement made by this scheme to the SSGAN network classifier can improve the rice extraction accuracy. Under full supervision, the MIoU value is increased by 5.34%, and the OA is increased by 2.03%; under semi-supervision, when the true sample ratio is 3 / 4, the MIoU value is increased by 5.39%, and the OA is increased by 2.01%. When the true sample ratio is 1 / 4, the MIoU value is increased by 6.51%, and the OA is increased. The rice extraction accuracy of the SSGAN network classifier is 2.6% higher than that of the reference SSGAN. The less the true sample labels are, the more obvious the improvement effect of the rice extraction accuracy of the SSGAN network classifier of this scheme is. The rice extraction accuracy is the highest when the true sample ratio is 1, and the full supervised learning effect is better than the semi-supervised learning at this time. However, after the improvement, the rice extraction accuracy of the model is the highest when the true sample ratio is 3 / 4, and the semi-supervised learning effect is better than the full supervision at this time. The MIoU value is 82.10%, and the OA value is 93.29%. The overall accuracy is better than the existing deep learning method for extracting rice using sentinel data and a small number of training samples, which confirms that the improvement of the SSGAN network classifier by this scheme is positive.

[0119] Table 6 Analysis of rice extraction accuracy

[0120]

[0121] In order to verify the advancedness of the dual-polarized backscattering coefficient combined with the spectral index feature extraction of rice proposed in the present invention, different feature combinations were input into the SSGAN network classifier for experiments. Table 7 shows the MIoU and OA values ​​of the validation set with different feature combinations as input. Among them, √ indicates that the feature is added, and × indicates that the feature is not added. It can be seen from Table 7 that the rice extraction accuracy is significantly higher than the rice extraction accuracy using only some features using the feature combination of ④VH, VV, NDWI, NDVI, and NDSI proposed in this scheme, and the rice extraction accuracy is the highest when the true sample ratio is 3 / 4, which once again confirms that the semi-supervised learning of the present invention is better than the fully supervised learning method.

[0122] Table 7 Comparison of rice extraction accuracy using different feature combinations

[0123]

[0124] Through comparative tests of different training samples, it is believed that the feature combination of VH+VV+NDWI+NDVI+NDSI is the most advantageous for rice extraction. At the same time, in order to reduce the difficulty in fitting due to the small number of training samples and high feature dimension, the SSGAN network classifier is used to extract rice. When the proportion of true samples is 3 / 4, the model has the highest accuracy in extracting rice. Experiments have proved that this scheme for extracting rice is feasible and effective for improving the difficulty in fitting multi-feature small data sets and improving accuracy.

[0125] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A rice extraction method based on semi-supervised learning generative adversarial network, characterized by: The following steps are involved: Step 1, obtaining remote sensing images of rice phenological periods in the study area, wherein the remote sensing images include Time Series Sentinel-1 SAR data and Time Series Sentinel-2 multispectral data, wherein the Time Series Sentinel-1 SAR data is processed by VH polarization and VV polarization; Step 2, extracting rice features based on remote sensing images, the extracted rice features include VH polarization and VV polarization backscattering coefficients extracted using Time-Series Sentinel-1 SAR data, and NDWI, NDVI, and NDSI extracted using Time-Series Sentinel-2 multispectral data; Step 3, while acquiring the remote sensing image in step 1, field sampling and high-resolution image acquisition are performed on the same area, and rice samples are marked on the field sampling and high-resolution acquired images as label images; Step 4: Input the remote sensing image and its corresponding label image and the extracted rice features into the SSGAN network classifier to obtain the rice extraction result; In step 4, the SSGAN network classifier includes a generator and a discriminator; wherein the generator is a segmentation network, which is used to segment the remote sensing image and the rice features it carries, and generate a predicted classification probability map; the label image is converted into a one-hot encoding label data format, and is input into the discriminator together with the predicted classification probability map, and the discriminator is a fully convolutional network, which is used to output a prediction confidence map; The generator is a segmentation network Deeplabv3+, which includes a wide residual network and a spatial pyramid pooling module. The wide residual network includes 7 convolution blocks, each of which includes a basic residual block and a bottleneck layer. Each basic residual block in the first four convolution blocks includes two connected 3*3 convolution layers, and each bottleneck layer in the first four convolution blocks includes a 1*1 convolution layer, a 3*3 convolution layer, and a 1*1 convolution layer connected in sequence; Each basic residual block in the last three convolution blocks includes a 3*3 dilated convolution layer, a Dropout layer, and a 3*3 dilated convolution layer connected in sequence, and each bottleneck layer in the last three convolution blocks includes a 1*1 convolution layer, a 3*3 dilated convolution layer, a Dropout layer, and a 1*1 convolution layer connected in sequence; The loss function of the SSGAN network classifier includes a focused dynamic adversarial loss function L f_adv : Among them, X n represents the feature map of the input generator; (h, w) represents the position of the pixel, h represents the vertical position, and w represents the horizontal position; G(·) represents the generator, G(X n ) represents the predicted classification probability map output by the generator. The size of the predicted classification probability map is H×W×C, where H is the height, W is the width, and C is the number of categories; D(·) represents the discriminator, D(G(X n )) represents the discriminator's predicted confidence map of the generator's output; is the balance factor, is the focusing factor.

2. The rice extraction method based on semi-supervised learning generative adversarial network according to claim 1, characterized in that: In step 2, the step of extracting the backscatter coefficients of VH polarization and VV polarization using the time-series Sentinel-1 SAR data includes: Data preprocessing: The time-series Sentinel-1 SAR data were input into SNAP software for image mosaicking, orbit correction, radiation correction, speckle filtering, and Doppler terrain correction. Feature extraction of backscatter coefficient: The backscatter coefficient obtained by data preprocessing is converted into decibels using the following formula to obtain the final backscatter coefficient: in, represents the backscattering coefficient, Refers to the backscatter coefficient after decibelization.

3. The rice extraction method based on semi-supervised learning generative adversarial network according to claim 1, characterized in that: In step 2, the step of extracting NDWI, NDVI, and NDSI using the Time Series Sentinel-2 multispectral data includes: Data preprocessing: The time-series Sentinel-2 multispectral data were input into the remote sensing image processing software ENVI5.6 for data preprocessing of image resampling; Feature extraction of spectral indices: Among them, NDWI is the water body index, Green represents the green band, corresponding to the B3 band of the Time-Series Sentinel-2 multispectral data; NDVI is the vegetation index, Red represents the red band, corresponding to the B4 band of the Time-Series Sentinel-2 multispectral data; NDSI is the soil index, NIR represents the near infrared band, corresponding to the B8 band of the Time-Series Sentinel-2 multispectral data; SWIR represents the shortwave infrared band, corresponding to the B11 band of the Time-Series Sentinel-2 multispectral data.