A method for detecting and removing thin clouds and fog in unpaired remote sensing images
Through the additive loss guidance network and alternating optimization strategy, the shortcomings of the existing technology in non-homogeneous thin cloud and fog correction and small data sets are solved, adaptive thin cloud and fog detection and removal on small data sets are realized, and the correction is improved. efficiency.
Patent Information
- Application Number
- CN202210554878.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-19
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-05-19
AI Technical Summary
Existing thin cloud and fog correction methods have low universal applicability in non-homogeneous conditions, especially poor performance on small data sets, and deep learning methods based on unpaired data have unsatisfactory correction effects in urban areas.
An adaptive thin cloud and fog detection and removal method based on additive loss guidance network is designed. The alternating optimization strategy is used to adaptively separate the surface component and cloud and fog components in remote sensing images, and the data set is expanded by calculating the real cloud and fog radiation in each band. Unpaired data correction for small data sets.
It realizes the self-correction capability on small data sets, reduces the requirements for data set construction, improves the efficiency of thin cloud and fog detection and removal, and is suitable for the detection and removal of non-homogeneous thin clouds and fog.
Smart Images

Figure CN114882378B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of remote sensing image processing, and in particular relates to an unpaired thin cloud and fog detection and removal method, which can be adaptively applied to non-uniform thin cloud and fog correction and can achieve better performance on a small data set. Background Art
[0002] Thin fog has become an unavoidable problem in optical remote sensing images due to its wide distribution range and high frequency of occurrence. The thin fog area in remote sensing images contains both partial surface information and mixed fog information. Its formation process includes degradation problems such as radiation bias, regional blur and color distortion. Correcting thin fog in remote sensing images can improve the application potential of remote sensing data and the research accuracy of remote sensing applications.
[0003] There are four main methods for thin fog correction. 1) Correction method based on radiation transfer model; this method considers the physical imaging model and conducts rigorous mathematical modeling, which can describe the thin fog imaging process more objectively. However, because the use of this method for thin fog correction relies on measured parameters, its universality is low. Moreover, this method can only realize uniform atmospheric light correction, and it is difficult to adapt to the problem of non-uniform thin fog correction. 2) Correction method based on statistical information; this method does not need to rely on measured parameters, and can only realize correction with spatial and spectral statistical information of remote sensing images, and has a wide range of applications. However, because the scattering degradation process is less considered, the correction result is insufficient in spectral fidelity. 3) Correction method coupling physical model and statistical information; this type of method has few parameter requirements and considers spectral information, and has high correction accuracy. However, this type of method mostly relies on special bands, the type of thin fog corrected is limited, and the method has low universality. 4) Correction methods based on deep learning: Deep learning methods have strong nonlinear mapping capabilities and can achieve more accurate cloud and fog intensity estimation, but their correction effect depends largely on the quality of the data set. The scarcity of paired data limits the use of existing mainstream deep learning methods in the problem of thin cloud and fog correction; and deep learning methods based on unpaired data, such as Cycle-GAN, are only applicable to large data sets, and the correction effect is not ideal in urban areas where the surface cover changes frequently.
[0004] Therefore, the present invention designs a method for detecting and removing unpaired data thin clouds that can achieve self-correction with a single-view image suitable for a small data set. Summary of the invention
[0005] The purpose of the present invention is to design a method for detecting and removing thin clouds and fog from unpaired adaptive remote sensing images based on a small data set in view of the above-mentioned deficiencies in the prior art. Aiming at the physical imaging characteristics of thin cloud-covered images, the present invention proposes an additive loss-guided network training; and in view of the non-uniform distribution of thin clouds and fog and the randomness of the scene, it proposes to use an alternating optimization strategy to adaptively separate the surface component and the real component in the image to be corrected. The present invention can use unpaired data to realize the detection and extraction of thin clouds and fog in the image to be corrected, and can also use any surface or any reference cloud and fog image to reconstruct the image to be corrected to expand the training data. In addition, in view of the construction of a reference cloud and fog data set, a method for calculating the real cloud and fog radiation in each band is proposed.
[0006] To achieve the above purpose, the technical solution proposed by the present invention is as follows:
[0007] Step S1, establishing a data set according to a thin cloud imaging model, the data set includes three parts: data to be corrected, reference surface data, and reference thin cloud data;
[0008] Step S2, designing a convolutional network structure for thin cloud detection and removal, wherein the convolutional network includes three generators and two discriminators, wherein the generator includes a surface generator G g , Cloud Generator G c and the reconstruction generator G r , the discriminator includes the surface discriminator D g and cloud discriminator D c ;
[0009] Generator G g , G c and G r It realizes the extraction of surface components, the extraction of cloud and fog components and the reconstruction of the image to be corrected respectively, and its structure is any convolutional neural network or Transformer structure;
[0010] Discriminator D g and D c , respectively realize the authenticity of the generated surface component and the authenticity of the generated cloud component, and its structure is an arbitrary discriminant model;
[0011] Step S3, designing the loss function of the convolutional network and training it. After the network training is completed, the optimal network parameters are obtained, wherein the loss function includes the generator loss function and the discriminator loss function;
[0012] Step S4: For any remote sensing image to be corrected, the optimal network parameters are used to calculate and output the surface extraction results and cloud extraction results. g To extract the surface components of remote sensing images, use G c To extract the cloud and fog components of remote sensing images, use Gr Realize the simulation of thin cloud cover data with realistic distribution.
[0013] Furthermore, the thin cloud imaging model in step S1 is constructed as follows;
[0014] Under turbid atmospheric conditions, the image observed by the sensor can be expressed as follows:
[0015] I=TI g +I c ≈I g +I c (1)
[0016] Where, I is the radiation received by the sensor, corresponding to the data to be corrected; I g is the reflected radiation from the ground below the cloud, corresponding to the ground component; I c is the thin cloud radiation, corresponding to the cloud component, and T is the uplink and downlink transmittance of the radiation.
[0017] Furthermore, in step S1, the data to be corrected and the reference surface data are obtained from visible light remote sensing images. After radiometric calibration, the apparent reflectance (TOA) data are obtained, and the image area to be corrected with thin cloud coverage and the clear sky image area without cloud coverage are screened out. In the thin cloud coverage area, a cloud amount calculation module is designed, and the reference thin cloud data is calculated by using the band correlation of cloud fog and image statistical information. The specific calculation details are as follows: (1) According to the band correlation of cloud fog, i and j represent any band pair in visible light, near infrared, and cirrus, λ is the central wavelength of the band, and γ is a constant representing the atmospheric state; (2) According to the strong linear correlation between the coastline band and the blue band of Landsat8 data, γ can be calculated according to the above formula; (3) According to the cirrus band of Landsat8 data and the corresponding γ value, the radiation value of cirrus in each band can be calculated; (4) After data enhancement operation, reference thin cloud data with specific resolution, scale, and random shape can be obtained;
[0018] The images to be corrected, the reference surface data and the reference thin cloud data are cropped into image blocks of size K×K and added to the corresponding data sets.
[0019] Furthermore, the generator loss function in step S3 includes four parts: generating adversarial loss, alternating optimization loss, identity loss, and additive loss;
[0020] L G (G g ,G c ,G r ,D g ,D c )=ω1L adv +ω2Lopt +ω3L id +ω4L add (2)
[0021] Among them, L G represents the generation loss, G g represents the surface generator, G c represents the cloud generator, G r represents the reconstruction generator, D g Denotes surface discrimination, D c represents the cloud discriminator, ω1, ω2, ω3, ω4 represent weighting coefficients, and L adv represents the adversarial loss, L opt represents alternating optimization loss, L id Indicates identity loss, L add represents additive loss;
[0022] S31, Generative Adversarial Loss
[0023] The adversarial loss is applied to G g and G c In this way, the information extracted by the generator is consistent with the distribution characteristics of the reference data, thus improving the overall correction effect;
[0024]
[0025]
[0026] Among them, g indicates the surface component loss, c indicates the cloud component loss, I indicates the data to be corrected, and the subscript adv indicates the adversarial loss;
[0027] S32, alternating optimization loss
[0028] Alternating optimization loss to achieve the matching of image information and component information, acting on three parts respectively: reconstructed image, surface component and thin cloud component;
[0029]
[0030]
[0031]
[0032] Among them, r represents the reconstruction loss, I g Represents reference surface data, I c represents the reference thin cloud data, and the subscript opt identifies the alternating optimization loss;
[0033] S33, identity loss
[0034] In order to correctly preserve the true characteristics of the clear sky area, the generator G is enhancedg and G c The recognition ability of each component introduces identity loss;
[0035]
[0036]
[0037] Here, the subscript id indicates the identity loss;
[0038] S34, additive loss
[0039]
[0040]
[0041] Here, the subscript add indicates the additive loss.
[0042] Furthermore, the discriminator loss function is the discriminant adversarial loss, as follows;
[0043] The feature distribution of real data is defined as 1, and the feature distribution of generated data is defined as 0. The discriminative adversarial loss is as follows:
[0044]
[0045]
[0046]
[0047] In the formula, ε represents the mathematical expectation, P data Represents data distribution characteristics.
[0048] Furthermore, the loss function is used to guide network training, and the final constraint goal is to find the maximum and minimum values of the discriminant generation, as shown in the following formula:
[0049]
[0050] Among them, L is the total loss function, which includes five parts: generative adversarial loss, alternating optimization loss, identity loss, additive loss and discriminative adversarial loss.
[0051] Furthermore, the convolutional network in step S2 realizes thin cloud detection and thin cloud removal through a divide-and-conquer strategy, and its input is any three unpaired training images: the data to be corrected I, the reference surface data I g , refer to Boyun data I c , the thin cloud detection task is regarded as the “cloud component extraction subtask” of the image to be corrected. This task uses the cloud generator G c Extract the corresponding thin fog component I' from the data to be corrected I c, and use the cloud discriminator D c The data distribution of thin cloud and fog components is checked; the thin cloud removal task is regarded as the "surface component extraction subtask" of the image to be corrected, which uses the surface generator G g Extract the corresponding surface component I' from the data to be corrected I g , and use the surface discriminator D g The data distribution of the surface component is checked; the target task network structure is [I→I′ g ,I′ c ], → represents the generator structure, → the left side is the generator input, and the right side is the generator output, because I′ g and I′ c Since it is unknown, it cannot be trained. Therefore, it is designed as a pairing task of "separation first and then reconstruction" and "construction first and then separation". Through alternating optimization between subtasks, unpaired thin cloud detection and removal can be achieved. The network structure is [I→I′ g ,I′ c →I″]; [I g ,I c →I′→I″ g ,I″ c ]; I″ is caused by I′ g and I′ c Synthesized thin cloud cover image, I′ is composed of I g and I c Composite image of thin cloud cover, I″ g is the surface component extracted from I′, I″ c is the thin cloud component extracted from I′.
[0052] Compared with the prior art, the advantages and beneficial effects of the present invention are:
[0053] The present invention provides a method for detecting and removing thin clouds and fog from unpaired remote sensing images suitable for small data sets, including establishing a thin cloud imaging model and designing a corresponding additive loss function to guide network training; constructing an unpaired thin cloud and fog correction image small data set for a single-view image, and proposing a calculation method for reference thin cloud and fog image data combined with cloud and fog band correlation; proposing an alternatingly optimized multi-task network model that can be adaptively applied to the detection and removal of non-uniform thin clouds and fog, and the network can be applied to data set expansion. The solution proposed by the present invention reduces the requirements for data set construction and can be effectively applied to the detection and removal of thin clouds and fog from various remote sensing images, thereby improving the efficiency of thin cloud correction. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 It is a flow chart for implementing the model training method described in the present invention.
[0055] Figure 2It is a flow chart for implementing the thin cloud detection and removal tasks described in the present invention. DETAILED DESCRIPTION
[0056] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0057] The technical solution of the present invention is described in detail below with reference to the accompanying drawings and embodiments. Figure 1 As shown in FIG. 1 , it mainly includes the data set establishment and network training process, and finally three sub-networks can be obtained for thin cloud detection and removal tasks. The implementation flow chart of the present invention for thin cloud detection and removal tasks is shown in FIG. Figure 2 shown.
[0058] The present invention combines a thin cloud imaging model, band correlation information of clouds and fog, a reference image data set construction method, and an alternating optimized generative adversarial network, and the specific implementation includes the following steps:
[0059] Step 1: Thin cloud imaging model establishment
[0060] Under turbid atmospheric conditions, the image observed by the sensor can be expressed as follows:
[0061] I=TI g +I c ≈I g +I c (16)
[0062] Where, I is the radiation received by the sensor; I g I is the radiation reflected by the ground below the cloud; c is the radiation of thin clouds and fog; T is the uplink and downlink transmittance of radiation, which is generally greater than 0.9 and close to 1.
[0063] According to the above formula, two convolutional networks will be used during training to decompose the thin cloud image I to be corrected into the surface component I g and cloud component I c ; Use the third convolutional network to transform any surface I g and any thin cloud I c Reconstruct the image I to be corrected with the real data distribution characteristics.
[0064] Step 2: Dataset creation
[0065] The network is trained using the apparent reflectance (TOA) data processed by radiometric calibration. The network input includes three parts: the data to be corrected, the reference surface data, and the reference thin cloud data. The data to be corrected and the reference surface data come from visible light remote sensing images, from which the image area to be corrected with thin cloud coverage and the clear sky image area without cloud coverage, i.e., the reference surface data, are selected. In the thin cloud coverage area, a cloud amount calculation module is designed, and the reference thin cloud image is calculated using the band correlation of cloud fog and image statistical information. The specific calculation details are as follows: (1) According to the band correlation of cloud fog, I c is the reference thin cloud data, i and j represent any band pair in visible light, near infrared, and cirrus, λ is the central wavelength of the band, and γ is a constant representing the atmospheric state; (2) Since the coastline band and blue band of Landsat8 data have a strong linear correlation, γ can be calculated according to the above formula; (3) According to the cirrus band of Landsat8 data and the corresponding γ value, the radiation value of cirrus in each band can be calculated; (4) After data enhancement operation, reference thin cloud and fog data with specific resolution, scale, and random shape can be obtained, so that the thin cloud and fog detection and removal model can be extended from Landsat8 data to different data types.
[0066] The image of the selected area is cropped into image blocks of size K×K and added to the corresponding dataset. In the thin cloud coverage area, the band correlation and image statistical information of clouds and fog are used to calculate the reference thin cloud image, which is cropped into image blocks of size K×K and added to the reference thin cloud dataset.
[0067] Step 3: Network structure design
[0068] The network has a total of 3 generators: surface generator G g , Cloud Generator G c , Reconstruction generator G r And 2 discriminators: surface discriminator D g , Cloud Discriminator D c Its input is any three unpaired training images: the data to be corrected I, the reference surface data I g , refer to Boyun data I c The unpaired thin cloud removal is achieved through a divide-and-conquer strategy. The thin cloud detection task is regarded as the “cloud component extraction subtask” of the image to be corrected. This task uses the cloud generator G c Extract the corresponding thin fog component I' from the data to be corrected I c , and use the cloud discriminator D c The data distribution of thin cloud and fog components is checked; the thin cloud removal task is regarded as the "surface component extraction subtask" of the image to be corrected, which uses the surface generator G gExtract the corresponding surface component I' from the data to be corrected I g , and use the surface discriminator D g The data distribution of the surface component is checked; the target task network structure is [I→I′ g ,I′ c ], → represents the generator structure, → the left side is the generator input, and the right side is the generator output. Because I′ g and I′ c It is unknown and therefore cannot be trained. Therefore, the current network design is a pairing task of "separation first and then reconstruction" and "construction first and then separation". The unpaired thin cloud detection and removal is achieved through alternating optimization between subtasks. The network structure is [I→I′ g ,I′ c →I″]; [I g ,I c →I′→I″ g ,I″ c ]; I″ is caused by I′ g and I′ c The synthesized thin cloud cover image is the same as the input I, and I′ is the g and I c Composite image of thin cloud cover, I″ g The surface component extracted from I′ and the input I g Same, I″ c The cloud component extracted from I′ and the input I c Same; Generator G g , G c , G r It can be any convolutional neural network or Transformer structure that meets the input and output size requirements. The discriminator D g D c It can be any discriminant model.
[0069] Step 4: Loss function design
[0070] According to step 3, the loss function corresponding to the generator is designed, including four parts: generative adversarial loss, alternating optimization loss, identity loss, and additive loss. The discriminator loss function is designed to be discriminative adversarial loss.
[0071] 4.1, Generator Loss
[0072] 4.1, Generation Loss
[0073] The generated loss function consists of 4 parts, as shown below:
[0074] L G (G g ,G c ,G r ,Dg ,D c )=ω1L adv +ω2L opt +ω3L id +ω4L add (17)
[0075] Among them, L G represents the generation loss, G g represents the surface generator, G c represents the cloud generator, G r represents the reconstruction generator, D g Denotes surface discrimination, D c represents the cloud discriminator, ω1, ω2, ω3, ω4 represent weighting coefficients, and L adv represents the adversarial loss, L opt represents alternating optimization loss, L id Indicates identity loss, L add represents additive loss.
[0076] 4.1.1, Adversarial Loss
[0077] The adversarial loss is applied to the generator G g and G c In this way, the information extracted by the generator is consistent with the distribution characteristics of the reference data, thus improving the overall correction effect.
[0078]
[0079]
[0080] Among them, g indicates the surface component loss, c indicates the cloud component loss, I indicates the data to be corrected, and the subscript adv indicates the adversarial loss.
[0081] 4.1.2, Alternating Optimization Loss
[0082] Alternating optimization loss is used to achieve the matching of image information and component information, acting on three parts respectively: reconstructed image, surface component and thin cloud component.
[0083]
[0084]
[0085]
[0086] Among them, r represents the reconstruction loss, I g Represents reference surface data, I c represents the reference thin cloud data, and the subscript opt identifies the alternating optimization loss.
[0087] 4.1.3, Identity Loss
[0088] In order to correctly preserve the true characteristics of the clear sky area, G g G c The generator's ability to identify its own components introduces identity loss.
[0089]
[0090]
[0091] Here, the subscript id indicates the identity loss;
[0092] 4.1.4 Additive Loss
[0093] According to the formula described in step 1, additive loss is introduced to simplify the difficulty of nonlinear mapping.
[0094]
[0095]
[0096] Among them, the subscript add indicates additive loss;
[0097] 4.2, Discriminative Adversarial Loss
[0098] The feature distribution of real data is defined as 1, and the feature distribution of generated data is defined as 0. The discriminative adversarial loss is as follows:
[0099]
[0100]
[0101]
[0102] In the formula, ε represents the mathematical expectation, P data Represents data distribution characteristics.
[0103] Step 5: Network training
[0104] According to steps 2, 3, and 4, the loss function is used to guide network training, and the final constraint goal is to find the maximum and minimum values generated by the discriminant, as shown in the following formula:
[0105]
[0106] Among them, L is the total loss function, which includes five parts: generative adversarial loss, alternating optimization loss, identity loss, additive loss and discriminative adversarial loss.
[0107] Step 6: Remote sensing image thin cloud removal
[0108] After network training, use G g The generator can realize the extraction of surface components of remote sensing images; using G c The generator can extract the cloud and fog components of remote sensing images; for any remote sensing image to be corrected, the network parameters obtained in step 5 can be used for calculation, and the surface extraction results and cloud and fog extraction results can be output. r The generator can realize the simulation of thin cloud coverage data with realistic distribution. For any clear sky surface image and any reference thin cloud image, the network parameters obtained in step 5 can be used to calculate and output the simulation results of thin cloud coverage data with realistic distribution.
[0109] The specific implementation process of the present invention is described below through a simple example;
[0110] Step 1: Dataset creation
[0111] The dataset to be corrected and the reference surface data are obtained from visible light remote sensing images which are corrected for apparent reflectance (TOA) data through radiation correction. The image areas to be corrected with thin cloud coverage and the clear sky image areas without cloud coverage are screened out, and the images of the selected areas are cropped into image blocks of size K×K and added to the corresponding dataset. In the thin cloud coverage area, the band correlation of clouds and fog is used to calculate the reference thin cloud image, which is cropped into image blocks of size K×K and added to the reference thin cloud dataset.
[0112] Step 2: Network training process
[0113] The input of the training is a given data set {X, Y, Z}, where X is the TOA data to be corrected, Y is the clear sky surface TOA data, and Z is the reference thin cloud TOA data. The network structure is as follows: Figure 1 As shown, it contains 3 generators and 2 discriminators, the generator G g G c G r The extraction of surface components, the extraction of cloud components and the reconstruction of the image to be corrected are realized respectively. Its structure can be any convolutional neural network that meets the input and output size requirements. The generator structure used in the example is as follows Figure 2 As shown. Discriminator D g D c , respectively realizes the discrimination of the authenticity of the generated surface component, the authenticity of the generated cloud component, and the authenticity of the constructed image to be corrected. Its structure can be any discriminator. The loss function is used to guide the network training, and the final constraint target is shown in formula (15).
[0114] Step 3: Detection and removal of thin clouds in remote sensing images
[0115] After network training, use G gThe generator can realize the extraction of surface components of remote sensing images; using G c The generator can extract the cloud and fog components of remote sensing images; for any remote sensing image to be corrected, the network parameters obtained in step 2 can be used for calculation, and the thin cloud removal results and thin cloud detection results can be output. r The generator can realize the simulation of thin cloud cover data with realistic distribution. For any clear sky surface image and any reference thin cloud image, the network parameters obtained in step 2 can be used to calculate and output the simulation results of thin cloud cover data with realistic distribution.
[0116] It should be understood that parts not elaborated in detail in this specification belong to the prior art.
[0117] The specific embodiments described herein are merely examples of the spirit of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in similar ways, but they will not deviate from the spirit of the present invention or exceed the scope defined by the appended claims.
Claims
1. A method for detecting and removing thin clouds and fog from unpaired remote sensing images, characterized in that: The steps include: Step S1, establishing a data set according to a thin cloud imaging model, the data set includes three parts: data to be corrected, reference surface data, and reference thin cloud data; Step S2, designing a convolutional network structure for thin cloud detection and removal, wherein the convolutional network includes three generators and two discriminators, wherein the generator includes a surface generator G g , Cloud Generator G c and the reconstruction generator G r , the discriminator includes the surface discriminator D g and cloud discriminator D c ; Generator G g , G c and G r It realizes the extraction of surface components, the extraction of cloud and fog components and the reconstruction of the image to be corrected respectively, and its structure is any convolutional neural network or Transformer structure; Discriminator D g and D c , respectively realize the authenticity of the generated surface component and the authenticity of the generated cloud component, and its structure is an arbitrary discriminant model; Step S3, designing the loss function of the convolutional network and training it. After the network training is completed, the optimal network parameters are obtained, wherein the loss function includes the generator loss function and the discriminator loss function; Step S4: For any remote sensing image to be corrected, the optimal network parameters are used to calculate and output the surface extraction results and cloud extraction results. g To extract the surface components of remote sensing images, use G c To extract the cloud and fog components of remote sensing images, use G r Realize the simulation of thin cloud cover data with realistic distribution.
2. A remote sensing image thin cloud and fog detection and removal method as claimed in claim 1, characterized in that: The thin cloud imaging model in step S1 is constructed as follows; Under turbid atmospheric conditions, the image observed by the sensor can be expressed as follows: I=YOU g +I c ≈And g +I c (1) Where, I is the radiation received by the sensor, corresponding to the data to be corrected; I g is the reflected radiation from the ground below the cloud, corresponding to the ground component; I c is the thin cloud radiation, corresponding to the cloud component, and T is the uplink and downlink transmittance of the radiation.
3. A remote sensing image thin cloud and fog detection and removal method as claimed in claim 1, characterized in that: In step S1, the data to be corrected and the reference surface data are obtained from visible light remote sensing images. After radiometric calibration, the apparent reflectance data are obtained, and the image area to be corrected with thin cloud coverage and the clear sky image area without cloud coverage are screened out, namely, the reference surface data. In the thin cloud coverage area, a cloud amount calculation module is designed, and the reference thin cloud data is calculated by using the band correlation of cloud fog and image statistical information. The specific calculation details are as follows: (1) According to the band correlation of cloud fog, I c is the reference thin cloud data, i and j represent any band pair in visible light, near infrared, and cirrus, λ is the central wavelength of the band, and γ is a constant representing the atmospheric state; (2) According to the strong linear correlation between the coastline band and the blue band of Landsat8 data, γ can be calculated according to the above formula; (3) According to the cirrus band of Landsat8 data and the corresponding γ value, the radiation value of cirrus in each band can be calculated; (4) After data enhancement operation, reference thin cloud data with specific resolution, scale, and random shape can be obtained; The images to be corrected, the reference surface data and the reference thin cloud data are cropped into image blocks of size K×K and added to the corresponding data sets.
4. A remote sensing image thin cloud and fog detection and removal method as claimed in claim 1, characterized in that: The generator loss function in step S3 includes four parts: generating adversarial loss, alternating optimization loss, identity loss, and additive loss; L G (G g ,G c ,G r ,D g ,D c )=ω1L adv +ω2L opt +ω3L id +ω4L add (2) Among them, L G represents the generation loss, G g represents the surface generator, G c represents the cloud generator, G r represents the reconstruction generator, D g Denotes surface discrimination, D c represents the cloud discriminator, ω1, ω2, ω3, ω4 represent weighting coefficients, and L adv represents the adversarial loss, L opt represents alternating optimization loss, L id Indicates identity loss, L add represents additive loss; S31, Generative Adversarial Loss The adversarial loss is applied to G g and G c In this way, the information extracted by the generator is consistent with the distribution characteristics of the reference data, thus improving the overall correction effect; Among them, g indicates the surface component loss, c indicates the cloud component loss, I indicates the data to be corrected, and the subscript adv indicates the adversarial loss; S32, alternating optimization loss Alternating optimization loss to achieve the matching of image information and component information, acting on three parts respectively: reconstructed image, surface component and thin cloud component; Among them, r represents the reconstruction loss, I g Represents reference surface data, I c represents the reference thin cloud data, and the subscript opt identifies the alternating optimization loss; S33, identity loss In order to correctly preserve the true characteristics of the clear sky area, the generator G is enhanced g and G c The recognition ability of each component introduces identity loss; Here, the subscript id indicates the identity loss; S34, additive loss Here, the subscript add indicates the additive loss.
5. A remote sensing image thin cloud and fog detection and removal method as claimed in claim 4, characterized in that: The discriminator loss function is the discriminant adversarial loss, as follows; The feature distribution of real data is defined as 1, and the feature distribution of generated data is defined as 0. The discriminative adversarial loss is as follows: In the formula, ε represents the mathematical expectation, P data Represents data distribution characteristics.
6. A remote sensing image thin cloud and fog detection and removal method as claimed in claim 5, characterized in that: The loss function is used to guide network training, and the final constraint goal is to find the maximum and minimum values of the discriminant generation, as shown in the following formula: Among them, L is the total loss function, which includes five parts: generative adversarial loss, alternating optimization loss, identity loss, additive loss and discriminative adversarial loss.
7. A remote sensing image thin cloud and fog detection and removal method as claimed in claim 1, characterized in that: The convolutional network in step S2 realizes thin cloud detection and removal through a divide-and-conquer strategy. Its input is any three unpaired training images: the data to be corrected I, the reference surface data I g , refer to Boyun data I c , the thin cloud detection task is regarded as the "cloud and fog component extraction subtask" of the data to be corrected. This task uses the cloud generator G c Extract the corresponding thin fog component I' from the data to be corrected I c , and use the cloud discriminator D c The data distribution of thin cloud and fog components is checked; the thin cloud removal task is regarded as the "surface component extraction subtask" of the image to be corrected, which uses the surface generator G g Extract the corresponding surface component I' from the data to be corrected I g , and use the surface discriminator D g The data distribution of the surface component is checked; the target task network structure is [I→I′ g ,I′ c ], → represents the generator structure, → the left side is the generator input, and the right side is the generator output, because I′ g and I′ e Since it is unknown, it cannot be trained. Therefore, it is designed as a pairing task of "separation first and then reconstruction" and "construction first and then separation". Through alternating optimization between subtasks, unpaired thin cloud detection and removal can be achieved. The network structure is [I→I′ g ,I′ c →I″]; [I g ,I c →I′→I″ g ,I″ c ]; I″ is caused by I′ g and I′ c Synthesized thin cloud cover image, I′ is composed of I g and I c Composite image of thin cloud cover, I″ g is the surface component extracted from I′, I″ c is the thin cloud component extracted from I′.
