Real-time extrapolation cloud removal method and system based on time series remote sensing iteration
By using the combination method of time-series remote sensing iteration and LSTM model in remote sensing applications in subtropical humid climate regions, simulated cloud masks are generated and training data are dynamically updated, which solves the problem of insufficient cloud-free image scenes and realizes the realization of subtropical humid climate regions. The demand for real-time de-clouding of remote sensing images improves prediction accuracy.
Patent Information
- Application Number
- CN202410163632.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-05
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-02-05
AI Technical Summary
In the existing technology, in subtropical humid climate areas, due to the small number of cloud-free image scenes, it is difficult to accurately predict the cloud repair data at the current moment through deep learning methods, making it difficult to achieve real-time cloud removal of remote sensing images.
A real-time extrapolation cloud removal method based on time-series remote sensing iteration is used to generate simulated cloud masks by selecting test research areas that are similar in landform, land cover or crop type to the target research area, and utilizes a long short-term memory network with an encoder-decoder structure. The LSTM model performs time-series iteration, dynamically updates training data, and predicts cloud-free images at the current moment.
Even in areas covered by clouds throughout the year, cloud-free images at the current moment can be quickly and accurately estimated, providing the data basis required for remote sensing applications in high cloud frequency areas, improving prediction accuracy and feasibility.
Smart Images

Figure CN118135213B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of image data processing, and in particular to a real-time extrapolation cloud removal method, system, computer-readable storage medium and electronic device based on time-series remote sensing iteration. Background Art
[0002] For a long time, cloud shadows caused by clouds have been a major natural factor restricting the completeness of optical remote sensing images.
[0003] In the field of remote sensing image missing data reconstruction and cloud and cloud shadow removal, from a methodological point of view, it can currently be divided into two categories: spatial and temporal. The method based on the spatial dimension is to reconstruct the missing image data in space. It can be achieved by finding similar pixels or establishing the relationship between pixels on the basis of a single image, such as weighted linear regression (Weighted Linear Regression, WLR), local minimum histogram matching (Local Linear Histogram Match, LLHM), neighboring similar pixel interpolation (Neighborhood Similar Pixel Interpolator, NSPI; Modified Neighborhood Similar Pixel Interpolator, mNSPI), etc. However, in the case of high surface heterogeneity and insufficient similar pixels, it is difficult to reconstruct missing data based only on a single image. Reconstruction based on the time dimension uses the characteristics of the time series curve and the time series smoothing and interpolation methods to estimate the missing pixel values. The mainstream methods include Savitzky-Golay filtering, bilogistic function fitting, asymmetric Gaussian (AG) function fitting, Best Index Slope Extraction (BISE) method, etc. The time series can be processed based on the smoothing function first, and then the missing moments can be interpolated according to the adjacent moments.
[0004] However, the existing methods mentioned above interpolate the entire time series and need to obtain the characteristics of the entire time series from the beginning to the end to achieve cloud removal and obtain a denser time series. Therefore, it is necessary to collect the time series information before and after the missing phase. But in actual business applications, people often want to reconstruct the image of the current cloud-containing phase in real time to quickly obtain the repair data containing clouds at the current moment. In this demand context, it is unrealistic to use the time series after the missing phase. The missing pixels that need to be repaired can only be derived from the time series samples before the phase.
[0005] To this end, some technologies use deep learning methods to extrapolate and predict the future changes of time series through the trend information of time series. In most study areas, this deep learning method can timely predict the cloud-free images needed at the current time. However, in some special areas, such as subtropical humid climate areas, due to the influence of latitude and climate factors, there are too few cloud-free images in these areas throughout the year, which cannot provide a large number of training samples for deep learning methods, and thus cannot timely obtain accurate cloud repair data at the current moment.
[0006] Therefore, it is necessary to provide an improved technical solution to address the above-mentioned deficiencies in the prior art. Summary of the invention
[0007] The purpose of the present application is to provide a real-time extrapolation cloud removal method, system, computer-readable storage medium and electronic device based on time-series remote sensing iteration to solve or alleviate the problems existing in the above-mentioned prior art.
[0008] In order to achieve the above objectives, this application provides the following technical solutions:
[0009] The present application provides a real-time extrapolation cloud removal method based on time series remote sensing iteration, which is used to remove the cloud area in the cloud image at the current time point of the target study area, including:
[0010] Acquire historical time-series remote sensing images of the test study area and the target study area; the frequency of cloud images appearing in the time-series remote sensing images of the test study area is less than the frequency of cloud images appearing in the historical time-series remote sensing images of the target study area;
[0011] According to the number of cloud-free images in the historical time-series remote sensing images of the target study area and the time-series distribution of cloud-free images, cloud-free images of corresponding number and time-series distribution are selected from the historical time-series remote sensing images of the test study area and recorded as first time-series cloud-free images; other remote sensing images in the historical time-series remote sensing images of the test study area except the first time-series cloud-free images are recorded as test cloud images;
[0012] Extracting cloud mask data of the target study area based on cloud images in historical time-series remote sensing images of the target study area;
[0013] Based on the cloud mask data of the target study area, a simulated cloud mask is generated in the test cloud image of the test study area, and the original value of each pixel in the area of the simulated cloud mask is recorded as the true value of each pixel in the area of the simulated cloud mask;
[0014] For the historical time series remote sensing images of the test study area, the first time series cloud-free images are used as the cloud-free image sequence, the test cloud images are used as the image sequence to be predicted, and the time point of the first cloud-free image in the cloud-free image sequence is used as the initial iteration time point. All pixels of the first cloud-free image are used as the initial training data, and the following time series iteration steps are performed:
[0015] The training data is input into a time series extrapolation model for training; the time series extrapolation model is a long short-term memory network LSTM model based on an encoder-decoder structure;
[0016] Determine the remote sensing image at the next time point based on the historical time series remote sensing image of the test study area;
[0017] If the remote sensing image at the next time point belongs to a cloud-free image sequence, all pixels of the remote sensing image are merged with the training data as additional training samples to obtain new training data, and the next time point is used as a new iteration time point, and the step of inputting the training data into the time series extrapolation model for training is performed;
[0018] If the remote sensing image at the next time point belongs to the image sequence to be predicted, the trained time series extrapolation model is used to predict the value of each pixel in the cloud mask area in the remote sensing image to obtain the predicted value of each pixel in the cloud mask area in the remote sensing image;
[0019] All pixels of the predicted remote sensing image are combined with the training data as additional training samples to obtain new training data, and the next time point is used as a new iteration time point, and the training data is input into the time series extrapolation model for training.
[0020] When the predicted values of all pixels in the areas of all cloud masks in the image sequence to be predicted are obtained, the execution of the time series iteration step is stopped;
[0021] Calculating errors based on predicted values and true values of each pixel in the area of all cloud masks in the image sequence to be predicted;
[0022] If the error is less than a preset error threshold, then for the historical time series remote sensing images of the target study area, all cloud-free images of the target study area are taken as a cloud-free image sequence, and all cloud images of the target study area are taken as an image sequence to be predicted. The time point of the first cloud-free image in the cloud-free image sequence is taken as the initial iteration time point, and all pixels of the first cloud-free image are taken as initial training data. The time series iteration step is executed to obtain a cloud-free image of the target study area at the current time point.
[0023] Preferably, in the historical time-series remote sensing images of the target study area, the ratio of the number of cloud images to the number of all historical time-series remote sensing images is greater than or equal to 90%.
[0024] Preferably, there are multiple test study areas.
[0025] Preferably, the historical time-series remote sensing images of the test study area and the target study area are all medium-resolution images (spatial resolution 10-100m, temporal resolution 1-20d), and the historical time-series remote sensing images of the test study area and the target study area include at least red, green, blue, near-infrared and short-wave infrared bands.
[0026] Preferably, the encoder of the time series extrapolation model includes a first LSTM cell unit, and the encoder is used to convert the training data into semantic encoding;
[0027] The decoder of the time series extrapolation model includes a second LSTM cell unit, and the decoder is used to decode the semantic encoding into an output result.
[0028] Preferably, before inputting the training data into the time series extrapolation model for training, the method further comprises: normalizing the historical time series remote sensing images of the test study area and the target study area.
[0029] Preferably, after calculating the error based on the true value and the predicted value of each pixel in the area of the simulated cloud mask, the method further comprises:
[0030] The error is compared with the prediction error of the traditional LSTM model to determine whether the error meets the preset accuracy requirement.
[0031] The embodiment of the present application provides a real-time extrapolation cloud removal system based on time series remote sensing iteration, the system is used to remove the cloud area in the cloud image of the target study area at the current time point, including:
[0032] An acquisition unit is configured to acquire historical time-series remote sensing images of a test study area and a target study area; the frequency of cloud images appearing in the time-series remote sensing images of the test study area is less than the frequency of cloud images appearing in the historical time-series remote sensing images of the target study area;
[0033] A selection unit is configured to select cloud-free images of corresponding quantity and time series distribution from the historical time series remote sensing images of the test study area according to the quantity of cloud-free images in the historical time series remote sensing images of the target study area and the time series distribution of cloud-free images, and record them as first time series cloud-free images; and record other remote sensing images in the historical time series remote sensing images of the test study area except the first time series cloud-free images as test cloud images;
[0034] An extraction unit is configured to extract cloud mask data of the target study area based on cloud images in historical time-series remote sensing images of the target study area;
[0035] A simulated cloud unit is configured to generate a simulated cloud mask in the test cloud image of the test study area based on the cloud mask data of the target study area, and record the original value of each pixel in the area of the simulated cloud mask as the true value of each pixel in the area of the simulated cloud mask;
[0036] The iterative execution unit is configured to perform the following time series iteration steps for the historical time series remote sensing images of the test study area, using the first time series cloud-free images as a cloud-free image sequence, using the test cloud images as a to-be-predicted image sequence, and using the time point of the first cloud-free image in the cloud-free image sequence as an initial iteration time point, and using all pixels of the first cloud-free image as initial training data:
[0037] The training data is input into a time series extrapolation model for training; the time series extrapolation model is a long short-term memory network LSTM model based on an encoder-decoder structure;
[0038] Determine the remote sensing image at the next time point based on the historical time series remote sensing image of the test study area;
[0039] If the remote sensing image at the next time point belongs to a cloud-free image sequence, all pixels of the remote sensing image are merged with the training data as additional training samples to obtain new training data, and the next time point is used as a new iteration time point, and the step of inputting the training data into the time series extrapolation model for training is performed;
[0040] If the remote sensing image at the next time point belongs to the image sequence to be predicted, the trained time series extrapolation model is used to predict the value of each pixel in the cloud mask area in the remote sensing image to obtain the predicted value of each pixel in the cloud mask area in the remote sensing image;
[0041] All pixels of the predicted remote sensing image are combined with the training data as additional training samples to obtain new training data, and the next time point is used as a new iteration time point, and the training data is input into the time series extrapolation model for training.
[0042] When the predicted values of all pixels in the area of all cloud masks in the image sequence to be predicted are obtained, the execution of the time series iteration step is stopped;
[0043] The error analysis unit is configured to calculate the error based on the predicted value and the true value of each pixel in the area of all cloud masks in the image sequence to be predicted; if the error is less than a preset error threshold, then for the historical time series remote sensing images of the target study area, all cloud-free images of the target study area are used as a cloud-free image sequence, all cloud images of the target study area are used as an image sequence to be predicted, and the time point of the first cloud-free image in the cloud-free image sequence is used as an initial iteration time point, and all pixels of the first cloud-free image are used as initial training data, and the time series iteration step is performed to obtain a cloud-free image of the target study area at the current time point.
[0044] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method described in any of the above embodiments is implemented.
[0045] An embodiment of the present application further provides an electronic device, comprising: a memory, a processor, and a program stored in the memory and executable on the processor, wherein the processor implements the method described in any of the above embodiments when executing the program.
[0046] The technical solution of the embodiment of the present application has the following beneficial effects:
[0047] In the real-time extrapolation cloud removal method based on time series remote sensing iteration provided in the present application, for the target study area where cloud images appear frequently, by selecting a test study area with the same or similar crop type, land cover type or landform type as the target study area, a simulated cloud mask is generated in the test study area to simulate the cloud image of the target study area, and at the same time, the original value of each pixel in the test study area is recorded as the true value, thereby obtaining a large number of training samples in the test study area, laying the foundation for verifying the accuracy and feasibility of the method. On this basis, time series remote sensing iteration is performed for the historical time series remote sensing images of the test study area, and each iteration executes: updating the time series extrapolation model through the training data, and using the model to predict the remote sensing image at the next time point, and then dynamically appending the predicted remote sensing image at the next time point to the training data to update the content of the training data, thereby being able to infer the cloud-free image at the current moment, and applying the method to the target study area when the error converges. In this way, even if the target study area is covered by clouds all year round due to factors such as climate and latitude, this method can be used to timely infer accurate cloud-free images, laying a data foundation for remote sensing applications in the realistic context of high cloud frequency and difficulty in obtaining cloud-free images. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. Among them:
[0049] Figure 1 A schematic flowchart of a real-time extrapolation cloud removal method based on time-series remote sensing iteration in a test study area according to some embodiments of the present application.
[0050] Figure 2 A schematic flowchart of a real-time extrapolation cloud removal method based on time-series remote sensing iteration in a target study area according to some embodiments of the present application.
[0051] Figure 3 A schematic diagram of the structure of a timing extrapolation model provided according to some embodiments of the present application.
[0052] Figure 4 A logical schematic diagram of an LSTM cell unit provided according to some embodiments of the present application.
[0053] Figure 5 Schematic diagram of the iterative extrapolation logic of the traditional LSTM.
[0054] Figure 6 A logical diagram of iterative extrapolation of a timing extrapolation model provided according to some embodiments of the present application.
[0055] Figure 7 A schematic diagram of the error comparison between the traditional LSTM method and the time series extrapolation model of the present application in the test study area A according to some embodiments of the present application.
[0056] Figure 8 A schematic diagram of the error comparison between the time series extrapolation model of the traditional LSTM and the present application in the test study area B according to some embodiments of the present application.
[0057] Fig. 9 A schematic diagram of the error comparison between the traditional LSTM and the time series extrapolation model of the present application in the test study area B according to other embodiments of the present application.
[0058] Fig.10 A schematic diagram of the cloud removal effect of using the time series extrapolation model of the present application in a target study area according to some embodiments of the present application. DETAILED DESCRIPTION
[0059] The present application will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments. Each example is provided by way of explanation of the present application and does not limit the present application. In fact, it will be clear to those skilled in the art that modifications and variations may be made in the present application without departing from the scope or spirit of the present application. For example, a feature shown or described as a part of an embodiment may be used in another embodiment to produce yet another embodiment. Therefore, it is desired that the present application includes such modifications and variations within the scope of the appended claims and their equivalents.
[0060] In the following description, the terms "first / second / third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first / second / third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0061] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present disclosure belongs. The terms used herein are only for the purpose of describing the embodiments of the present disclosure and are not intended to limit the present disclosure.
[0062] Exemplary Methods
[0063] The present application embodiment provides a real-time extrapolation cloud removal method based on time series remote sensing iteration, which is used to remove the cloud area in the cloud image of the target study area at the current time point, such as Figures 1-2 As shown, the method includes:
[0064] Step S1, obtaining historical time series remote sensing images of the test study area and the target study area.
[0065] Among them, the planting crop type, land cover type or landform type of the test study area is the same as or similar to that of the target study area, and the frequency of cloud images in the time series remote sensing images of the test study area is lower than the frequency of cloud images in the historical time series remote sensing images of the target study area.
[0066] Step S2: According to the number of cloud-free images in the historical time-series remote sensing images of the target study area and the time-series distribution of cloud-free images, select cloud-free images of corresponding number and time-series distribution from the historical time-series remote sensing images of the test study area, and record them as the first time-series cloud-free images; and record the other remote sensing images in the historical time-series remote sensing images of the test study area except the first time-series cloud-free images as test cloud images.
[0067] Step S3: extracting cloud mask data of the target study area based on cloud images in historical time-series remote sensing images of the target study area.
[0068] Step S4: Based on the cloud mask data of the target study area, a simulated cloud mask is generated in the test cloud image of the test study area, and the original value of each pixel in the area of the simulated cloud mask is recorded as the true value of each pixel in the area of the simulated cloud mask.
[0069] Step S5: for the historical time series remote sensing images of the test study area, the first time series cloud-free image is used as the cloud-free image sequence, the test cloud image is used as the image sequence to be predicted, and the time point of the first cloud-free image in the cloud-free image sequence is used as the initial iteration time point. All pixels of the first cloud-free image are used as the initial training data, and the following time series iteration steps are performed:
[0070] Step S51, inputting the training data into a time series extrapolation model for training; the time series extrapolation model is a long short-term memory network LSTM model based on an encoder-decoder structure;
[0071] Step S52, determining the remote sensing image at the next time point based on the historical time series remote sensing images;
[0072] Step S53: If the remote sensing image at the next time point belongs to a cloud-free image sequence, all pixels of the remote sensing image are used as additional training samples and merged with the training data to obtain new training data, and the next time point is used as a new iteration time point, and the process proceeds to the step of inputting the training data into the time series extrapolation model for training, i.e., step S51;
[0073] Step S54: if the remote sensing image at the next time point belongs to the image sequence to be predicted, the trained time series extrapolation model is used to predict the value of each pixel in the cloud mask area in the remote sensing image to obtain the predicted value of each pixel in the cloud mask area in the remote sensing image;
[0074] Step S55, merging all pixels of the predicted remote sensing image as additional training samples with the training data to obtain new training data, and taking the next time point as a new iteration time point, and at the same time going to the step of inputting the training data into the time series extrapolation model for training, i.e., step S51;
[0075] Step S56: When the predicted values of all pixels in the areas of all cloud masks in the image sequence to be predicted are obtained, the execution of the time series iteration step is stopped.
[0076] Step S6, calculating the error according to the true value and the predicted value of each pixel in the area of all cloud masks in the image sequence to be predicted.
[0077] Step S7, if the error is less than the preset error threshold, then for the historical time series remote sensing images of the target study area, all cloud-free images of the target study area are taken as a cloud-free image sequence, and all cloud images of the target study area are taken as a sequence of images to be predicted, and the time point of the first cloud-free image in the cloud-free image sequence is taken as the initial iteration time point, and all pixels of the first cloud-free image are taken as initial training data, and the time series iteration steps of steps S51 to S56 are executed to obtain a cloud-free image of the target study area at the current time point.
[0078] It should be noted that the cloud-free image described in this application refers to a remote sensing image that is not blocked by clouds / cloud shadows, and correspondingly, the clouded image refers to a remote sensing image in which part of the area is blocked by clouds / cloud shadows. Clouds block the spectral reflectance of the surface, making it impossible for remote sensors to obtain surface information under cloud cover. The shadows brought by clouds will also cause changes in the surface reflectivity, making it difficult to accurately obtain surface information, making the applied research on surface changes based on optical time series face serious data constraints.
[0079] Obtaining cloud-free images usually requires shooting images under suitable meteorological conditions. If the meteorological conditions are poor and there are too many clouds, accurate remote sensing information cannot be obtained in the obstructed areas. Therefore, how to obtain cloud-free, high-quality images to provide clear surface information has been a long-standing concern in the field of remote sensing image processing.
[0080] The above method provided in the embodiment of the present application is mainly used to remove the cloud area in the cloud image of the target study area at the current time point, especially in the area where the frequency of cloud images appears frequently or the area covered by clouds / cloud shadows is large within a specified period. For example, the method provided in the present application is particularly suitable for use in areas where the target study area belongs to a subtropical humid climate, such as Guizhou, Yunnan and other provinces in my country. These areas are hot and humid and rainy all year round, resulting in many remote sensing images being almost completely covered by clouds and unusable, and the existing methods cannot achieve the ideal cloud removal effect.
[0081] For example, in most remote sensing application scenarios in crop-growing areas in monsoon climate and subtropical humid climate zones, the crop growing period is concentrated in the summer, which is not only a period of rapid crop phenological transition and growth changes, but also a period of frequent rain and cloudy weather. Remote sensing images are significantly affected by cloud shadows. The influence of cloud shadows results in data loss in optical images, which restricts remote sensing monitoring during the crop growing period.
[0082] In addition, the goal of this application also includes timely obtaining cloud-free images at the current time point. Traditional time- or space-based prediction methods cannot achieve this goal. Therefore, this application proposes a real-time extrapolation declouding method based on time series remote sensing iteration, which is based on a time recurrent neural network method to predict the image covered by cloud / cloud shadows at the current time point.
[0083] In order to solve the problem of inaccurate predictions caused by insufficient training data in neural networks, this application adopts a real-time extrapolation strategy of time-series remote sensing iteration. The basic idea of this strategy is to input the time-series image sequence consisting of cloud-free images and cloud-containing images into the time recurrent neural network, and use the output of the test sample at the current moment as part of the training sample at the next moment to predict the cloud-containing image at the next moment. In this way, through iteration on the time series, the problem of too sparse time series of remote sensing images in cloudy areas and insufficient sample utilization is solved, and the original samples are expanded from sparse, cloud-free time series to dense, cloud-containing time series.
[0084] Since the target study area is heavily obscured by clouds, directly applying the real-time extrapolation strategy of time-series remote sensing iteration to the target study area will not be able to determine the accuracy and feasibility of the prediction results of this method. Therefore, before applying the strategy to the target study area, the embodiment of the present application first selects a test study area to simulate the situation in the target study area.
[0085] Here, to ensure that this method can be applied to the target study area, certain conditions should be met between the test study area and the target study area. For example, the types of crops planted can be the same or similar, such as both planting double-season rice, or both planting large areas of corn, etc.; the land cover types can also be the same or similar, for example, both contain a certain area of wetlands, woodlands, etc.; the landform types can also be the same or similar, for example, both are hilly, etc.
[0086] Among them, in order to be able to carry out prediction accuracy and precision analysis, the test study area should also be distributed in areas with good climatic conditions, so as to ensure that high-quality cloud-free images can be obtained in the test study area most of the time. In other words, good climatic conditions can ensure that the frequency of cloud images in the time series remote sensing images of the test study area is less than the frequency of cloud images in the historical time series remote sensing images of the target study area.
[0087] It should be noted that the frequency described in this embodiment refers to the ratio of the number of cloud images in the remote sensing images within a period of time to the total number of remote sensing images within the time range. The frequency of cloud images appearing on the time axis in the historical time series remote sensing images of the target study area is relatively high, and cloud coverage is frequent. It can also be understood that in the historical time series remote sensing images of the target study area, the proportion of cloud-free images to the total number of images is relatively low, and the proportion of cloud images is relatively high.
[0088] It should also be noted that among the remote sensing images of the target study area, there may be some that are completely or mostly obscured by clouds, for example, the area of a single remote sensing image obscured by clouds may reach more than 60%. For such remote sensing images, due to the lack of sufficient training samples, it is difficult to predict the surface reflectivity at the pixel level in the cloud area, and it is not easy to carry out experiments, so they need to be further deleted through visual judgment.
[0089] In this embodiment, the historical time series remote sensing images of the test study area and the target study area can be Sentinel-2 remote sensing images, Landsat remote sensing images, or other types of remote sensing images. The type of remote sensing image must be able to effectively identify the characteristics of cloud and cloudlessness. This application does not limit the specific type. Moreover, the method of obtaining the above remote sensing images is common knowledge in the field and will not be elaborated here.
[0090] In step S2, the cloud-free images in the historical time-series remote sensing images of the target study area are first analyzed, including the number, proportion, time-series distribution, etc. of cloud-free images. The number and proportion of cloud-free images can be obtained by statistical analysis methods, and the time-series distribution can be obtained by time-series analysis methods, such as time series graphs, trend analysis methods, etc. This application does not limit the method for obtaining the above attributes.
[0091] In the process of time series prediction, the distribution of cloud-free images and the image quality have a great influence on the accuracy of the prediction results. Therefore, after obtaining the situation of cloud-free images in the historical time series remote sensing images of the target study area, this embodiment selects cloud-free images of corresponding quantity and time series distribution from the historical time series remote sensing images of the test study area according to the number of cloud-free images in the historical time series remote sensing images of the target study area and the time series distribution of cloud-free images, so that the number and time series distribution of cloud-free images of the two match.
[0092] The cloud-free images of corresponding quantity and time series distribution are selected from the historical time series remote sensing images of the test study area, which are recorded as the first time series cloud-free images, and the remaining images in the historical time series remote sensing images of the test study area are recorded as test cloud images. The test cloud images are used to simulate the cloud / cloud shadow occlusion area of the target study area.
[0093] In order to accurately simulate the cloud morphology and cloud distribution of the target study area, step S3 extracts the cloud mask of the target study area to obtain cloud mask data of the target study area.
[0094] In this embodiment, cloud mask data is generated using cloud mask products of the corresponding time period of the historical time series remote sensing images of the target study area. For example, the Sentinel-2 cloud mask product released in the Google Earth Engine platform can be used. The cloud mask product is a cloud probability image produced by the s2cloudless algorithm.
[0095] In this embodiment, the cloud mask data of the target study area can be extracted through the following steps: first, a cloud mask probability threshold is determined, which can be 15, for example; then, the cloud probability image is binarized based on the cloud mask probability threshold, and visual interpretation is performed to ensure that the clouds and cloud shadows in the image are completely removed; then, the binarized cloud probability image is strictly manually visually interpreted to ensure that all pixels containing clouds and cloud shadows in the target study area have been made into cloud mask data.
[0096] After obtaining the cloud mask data, a simulated cloud mask is generated in the test study area through step S4 to synchronize the cloud image distribution and cloud morphology of the target study area and the test study area, thereby ensuring that the prediction conclusion of the test study area matches that of the target study area.
[0097] Specifically, the cloud mask data of the target study area is applied to the test study area. The cloud mask data with matching time periods in the historical time series remote sensing images of the two can be directly applied to the test study area. At the same time, in order to better align the historical time series remote sensing images of the test study area with those of the target study area in time, the cloud mask data can also be flipped, mirrored, translated, and other operations can be performed first.
[0098] When generating the simulated cloud mask, it is also necessary to record the original value of each pixel within the area covered by the simulated cloud mask in the test study area. The original value is used as the true value of each pixel in the area of the simulated cloud mask for subsequent calculation of the error of the prediction result to evaluate the prediction accuracy of the method.
[0099] In practical applications, since there are a large number of areas blocked by clouds in the target study area, it is almost impossible to obtain the true pixel values of the remote sensing images of the target study area. Therefore, this embodiment selects an area with similar or identical topography, land cover and / or crop planting to the target study area, good climatic conditions, and the ability to obtain high-quality cloud-free images as a test study area. The test study area is used to simulate the scene of the target study area, and the method provided in this embodiment is used to perform time series remote sensing iteration on the test study area to study the feasibility of removing clouds and reconstructing missing pixels through time series information.
[0100] In step S5, the historical time series remote sensing images of the test study area are used as input data of the time series extrapolation model. Through the time series iteration of the time series extrapolation model and the continuous use of test samples to expand the training data during the training process, the predicted image at the current time point, i.e., the cloud-free image, is obtained.
[0101] It should be understood that the historical time series remote sensing images of the test study area here include the first time series cloud-free images and the test cloud images. The first time series cloud-free images are used to simulate the distribution of cloud-free images in the target study area, and the test cloud images are used to simulate the distribution and morphology of the cloud images in the target study area. It is not general that the first time series cloud-free images are called cloud-free image sequences, and the test cloud images are called image sequences to be predicted. The image sequences to be predicted include cloud coverage areas, namely cloud mask areas. For the test study area, the cloud mask area is simulated, and for the target study area, the cloud mask area is a real cloud coverage area. It is necessary to use a time series extrapolation model to obtain the predicted values of each pixel in the cloud mask area.
[0102] In this embodiment, the time series extrapolation model is a time recurrent neural network. Specifically, the time series extrapolation model is a long short-term memory network LSTM model based on an encoder-decoder structure, that is, the model is an LSTM of an encoder-decoder structure, wherein the encoder is used to encode the input data into a semantic vector of a fixed length, which is passed to the decoder as an intermediate representation, and the decoder is used to decode the semantic vector into an expected output result. By introducing a gating unit, LSTM can overcome the errors of traditional networks in time series backward propagation, avoid gradient vanishing and explosion, and will not suffer short-term losses even in noisy, incompressible input sequences.
[0103] At the beginning of the iteration, first find the first cloud-free image in the cloud-free image sequence, use the time point corresponding to the first cloud-free image as the initial iteration time point, and use all the pixels in the first cloud-free image as the initial training data. Input the time series extrapolation model for training to obtain the trained model for this round of iteration.
[0104] Then, according to the time sequence of the historical time series remote sensing images, the remote sensing image at the next time point is determined, mainly to determine whether the category of the remote sensing image is a cloud-free image or a cloud-covered image.
[0105] If the remote sensing image at the next time point is a cloud-free image, the cloud-free image is directly appended to the training data to expand the content of the training data, and enter the next time point to perform the iterative process of model training and prediction.
[0106] If the remote sensing image at the next time point is a cloud image, that is, an image to be predicted, the trained model is used to predict the remote sensing image at the next time point, and the pixel-level prediction results of the area covered by the cloud mask in the cloud image are obtained, and the predicted values of each pixel are obtained. Then all the pixel values in the predicted cloud image (including the original data, that is, the cloudless pixels and the original data with clouds and the cloudless pixels obtained after prediction) are appended to the training data to obtain new training data to expand the content of the training data, and the new training data is used as input to continue iterative training of the time series extrapolation model, and the predicted values are dynamically appended to the training data during the iterative training until all the cloud images are predicted, or the preset termination time point is reached, and the iteration is stopped.
[0107] It should be noted that the predicted cloud images include the predicted values of the pixels in the cloud mask area and the original values of the pixels not covered by the cloud mask area. These pixels are appended to the training data, which can effectively utilize the newly predicted pixels in the time series iteration process to increase the number of training samples, thereby improving the prediction accuracy of the model in subsequent iterations.
[0108] After stopping the iteration, the prediction error of the model can be calculated based on the true value of each pixel in the cloud mask area recorded in step S4 and the predicted value obtained by the model during the time series iteration process included in step S5, and it can be determined whether the error meets the preset error threshold. If so, it indicates that the method can remove clouds in real scenes with frequent cloud coverage and a large proportion of cloud coverage area in a single remote sensing image, and obtain reliable cloud removal effects, and then the time series iteration step included in step S5 is applied to the historical time series remote sensing images of the target study area to obtain a cloud-free image of the target study area at the current time point.
[0109] Figure 5 This is a logical diagram of the iterative extrapolation of the traditional LSTM. Figure 6 Schematic diagram of the iterative extrapolation logic of the time series extrapolation model provided according to some embodiments of the present application. In order to illustrate the difference between the time series iteration step of the present application and the traditional LSTM, the following reference Figure 5 , Figure 6 Provide detailed explanation.
[0110] exist Figure 5 The figure includes two time series remote sensing sequences. The upper one is the historical time series remote sensing image before prediction; the lower one is the time series remote sensing image after LSTM prediction.
[0111] The historical time series remote sensing images before prediction include cloud-free images and cloud images. The cloud-free images are distributed above the time axis, and the cloud images are distributed below the time axis. The four cloud-free images are numbered 1, 2, 3, and 4. The numbers arranged vertically below the cloud images indicate the cloud-free images that can be used when predicting the cloud images. During the training and prediction process, the model extracts training samples from these usable cloud-free images and uses them as training data to train the model. As can be seen from the figure, in the traditional LSTM method, when it is necessary to predict the cloud images at any point in time, only the cloud-free images in the historical time series remote sensing images are used as the source of its training data.
[0112] That is to say, in the traditional LSTM method, the process of LSTM time series interpolation of cloud images is carried out using completely cloud-free images, but this will cause a waste of pixels in the non-cloud area of the cloud-containing images.
[0113] The time series remote sensing images after LSTM prediction include cloud-free images and predicted images. Here, the cloud areas in the predicted images have been removed through prediction, and they are essentially completely cloud-free images without cloud occlusion. However, for the sake of ease of description, images without cloud occlusion from the beginning are called cloud-free images, and images without cloud occlusion after prediction are called predicted images.
[0114] In the time series remote sensing images predicted by LSTM, the cloud-free images are still numbered 1, 2, 3, and 4. The predicted image number is in the form of "ab", where a represents the number of cloud-free images used to predict the image, and b is the prediction sequence number of the image. For example, a=1, b=1 means that 1 cloud-free image is used as training data for prediction, and it is the first image predicted using this cloud-free image, b=2 means the second image predicted, and so on. For another example, when the predicted image number is "4.3", it means that the image is predicted using 4 cloud-free images, and in the time series it is the third predicted image predicted using 4 cloud-free images, and the other numbers are similar.
[0115] exist Figure 6 The iterative extrapolation process shown is an iterative method for expanding the availability of samples. When it is necessary to predict the cloud-covered image at any time point, the source of the training data includes both the cloud-free image in the historical time series remote sensing image and the output of the test sample at the current time point. That is, the process appends the predicted cloud-free image obtained at the current time point as new training data, so that the training sample at each moment not only contains the data of the cloud-free image, but also contains the data of the cloud area predicted by the cloud-free image at the previous moment, and also contains the data of the area originally covered by the cloud in the cloud image, so as to achieve the effect of rapidly expanding the training data.
[0116] For details, see Figure 6 , Figure 6 It also includes two time series remote sensing sequences. The upper one is the historical time series remote sensing image before prediction, and the lower one is the time series remote sensing image after LSTM prediction.
[0117] The historical time series remote sensing images before prediction include cloud-free images and cloud images. The cloud-free images are distributed above the time axis, and the cloud images are distributed below the time axis. The four cloud-free images are numbered 1, 2, 3, and 4. The numbers arranged vertically below the cloud image indicate the cloud-free images that can be used when predicting the cloud image. As can be seen from the figure, as time goes by, the predicted images are continuously appended to the training data and used as training samples to participate in the training and prediction of the next time point.
[0118] In the time series remote sensing images predicted by LSTM, the numbering method of cloud-free images and predicted images is the same Figure 5 Same, but in Figure 6 In the method shown, due to the different training data used in the prediction, the prediction accuracy is completely different. The prediction accuracy will be discussed in the subsequent steps.
[0119] In summary, in this embodiment, the real-time extrapolation declouding method based on time series remote sensing iteration is used to increase the spatiotemporal availability of samples by iterating over the time series and appending the predicted image or cloud-free image to the training data in each iteration step. Compared with the traditional LSTM declouding method, the prediction accuracy of image extrapolation can be effectively improved. In addition, the method can achieve accurate extrapolation using only a single-sided remote sensing image. That is to say, when predicting the cloud-covered area, the method only needs to refer to the time series remote sensing image before the current time point, and does not need to refer to the image after the current time point. The pixel prediction value of the cloud-covered area of the current remote sensing image can be extrapolated (reconstructed) in real time and accurately through the past time series, thereby obtaining a cloud-free image of the area.
[0120] This method takes the actual immediate needs of remote sensing as the application background, combined with the realistic background of high cloud frequency and difficulty in image acquisition in subtropical humid climate, and based on the existing research on time series extrapolation and image reconstruction based on time series, it is beneficial to quickly repair the Sentinel-2 image containing clouds at the current moment through an iterative deep learning reconstruction method on the time series.
[0121] In some optional embodiments, in the historical time-series remote sensing images of the target study area, the ratio of the number of cloud images to the number of all historical time-series remote sensing images is greater than or equal to 90%. In the above-mentioned area, the number of cloud-free images is less than 10%, and it is difficult to obtain cloud-free images that meet the requirements using traditional methods. However, the method provided in this embodiment can reliably achieve cloud removal of remote sensing images in the above-mentioned area and obtain corresponding cloud-free images.
[0122] Optionally, there are multiple test study areas. For example, test study area A can be used to simulate the topography of the target study area, test study area B can be used to simulate the crop planting conditions of the target study area, and test study area C can be used to simulate the land cover conditions of the target study area. By selecting multiple test study areas to simulate different influencing factors of the target study area separately and independently, the relationship between different factors and cloud coverage can be analyzed in a targeted manner, and then the contribution of each influencing factor to the prediction result can be obtained, providing a prerequisite for further optimization of the model.
[0123] Optionally, the historical time-series remote sensing images of the test study area and the target study area are all medium-resolution images (spatial resolution 10-100m, temporal resolution 1-20d). This embodiment is illustrated by taking Sentinel 2 images as an example, and the historical time-series remote sensing images of the test study area and the target study area include at least red, green, blue, near-infrared and short-wave infrared bands, among which visible light includes B3 and B4 bands, near-infrared B8 is used to reflect vegetation growth, and short-wave infrared bands B11 and B12 are used to reflect the moisture content of the underlying surface.
[0124] Optionally, the encoder of the time series extrapolation model includes a first LSTM cell unit, and the encoder is used to convert the training data into semantic codes; the decoder of the time series extrapolation model includes a second LSTM cell unit, and the decoder is used to decode the semantic codes into output results.
[0125] In this embodiment, the time series extrapolation model is an LSTM of Encoder-Decoder structure, such as Figure 3 As shown in the figure, the model is constructed by two neural networks, namely, Encoder-LSTM and Decoder-LSTM. The Encoder-LSTM includes 1 layer and 64 neurons, and the Decoder-LSTM also includes 1 layer and 64 neurons. In this embodiment, the above parts are combined into a whole model (abbreviated as ED-LSTM) for training. Specifically, in ED-LSTM, given an input time series (x1, x2...x t ), the Encoder-LSTM layer (also called the Encoder layer) extracts features from the time series information, converts it into semantically encoded information, and then inputs it into the Decoder-LSTM layer (also called the Decoder layer), which outputs the predicted value x at the next moment. t+1 .
[0126] Time Series X t =(x1, x2…x t ) includes t time steps, each of which is represented by Figure 4The LSTM cell unit shown in the figure is processed, wherein the Encoder-LSTM includes a first LSTM cell unit for converting the training data into a semantic code; the Decoder-LSTM includes a second LSTM cell unit for decoding the semantic code into an output result. For the LSTM cell unit, C t Indicates the cell state at the current moment, C t-1 Indicates the cell state at the last moment, H t represents the hidden state at the current moment, H t-1 represents the hidden layer state at the previous moment, σ is the fully connected layer and activation function. t is the input variable of the current time step, and t-1 After merging, use the fully connected layer and tanh function activation, and then compare it with the cell state C at the previous moment t-1 After performing matrix addition, we get the cell state C at the current moment. t In the end, the fully connected layer will output H t Perform dimensionality reduction and convert it into an output value of 1 time step.
[0127] In this embodiment, the LSTM of the Encoder-Decoder structure is trained as an overall time series extrapolation model (ED-LSTM for short). Compared with direct training using the LSTM network, the LSTM of the Encoder-Decoder structure has a more concise tensor transmission. The fixed-length vector output by the encoder can better capture the contextual information of the sequence, thereby improving the model's ability to understand and generate sequences.
[0128] Optionally, before inputting the training data into the time series extrapolation model for training, the method further includes: normalizing the historical time series remote sensing images of the test study area and the target study area.
[0129] Before applying the ED-LSTM model to image declouding, normalization is performed to make the gradient as stable as possible to improve the model convergence effect.
[0130] Some optional embodiments further include: combining cloud mask data of the target study area, using the non-cloud area in the cloudy image to perform a histogram adjustment on the prediction result so that the prediction result matches the actual cloud-containing image.
[0131] Optionally, after calculating the error based on the predicted value and the true value of each pixel in the area of all cloud masks in the image sequence to be predicted, the method further includes: comparing and analyzing the error with the prediction error of the traditional LSTM model to determine whether the error meets the preset accuracy requirement.
[0132] Specifically, the normalized mean square error (NMSE), correlation coefficient (CC), structural similarity index (SSIM), and peak signal-to-noise ratio (PSNR) can be used to evaluate the effect of image reconstruction based on the global image after prediction.
[0133] For example, it is taken that the test study area A is located in a certain area in Heilongjiang Province, the test study area B is located in a certain area in Shanxi Province, and the target study area is located in a certain area in Guizhou Province.
[0134] Test study area A, test study area B, and target study area are distributed from northeast to southwest. The target study area is a mountainous crop planting area, where the main crops are corn and rice. Due to the limitations of meteorological conditions, it is difficult to obtain high-quality cloud-free images in the area, which in turn limits the application of remote sensing technology in agricultural surveys. Test study area A is a plain crop planting area, where the main crops are rice, corn, and soybeans, and is used to simulate the crop planting characteristics of the target study area; test study area B is a mountainous crop planting area, where the main crop is wheat, and is used to simulate the topographic and geomorphic characteristics of the target study area.
[0135] The time series datasets of Sentinel-2 images of test study area A, test study area B, and target study area are obtained as historical time series remote sensing images. The time ranges of the historical time series remote sensing images of test study area A and test study area B are from March to September and March to October 2021, respectively, and the time range of the historical time series remote sensing images of the target study area is the whole year of 2022.
[0136] The Sentinel-2 images of test study area A and test study area B are repeatedly taken by two revisit tracks. Compared with the Sentinel-2 images of the target study area, the revisit period is doubled, which can provide more high-quality cloud-free images for the simulation of this embodiment.
[0137] Table 1. Frequency of cloud occurrence in time series
[0138]
[0139] Table 1 shows the frequency of cloud occurrence in the time series of historical remote sensing images of test study area A, test study area B, and target study area. Since test study area A and test study area B are located in the temperate monsoon region with relatively little precipitation, the cloud-free images (cloud coverage rate of 0%) account for 24.2% and 18.8% of the acquired data sets, respectively. The target study area is located in the subtropical humid climate zone. Among the 69 images acquired throughout the year, there are only 4 cloud-free images, accounting for 5.80%. In addition to the cloud-free images, the images with cloud cover (cloud coverage rate) below 60% only account for 20.6%, and many images are almost completely covered by clouds and cannot be used.
[0140] It can be seen that due to the influence of clouds, a large number of time series images of the target study area are missing. According to the revisit period of the sentinels, it takes an average of about 3 months to obtain a usable cloud-free image. Under this realistic background, it is very difficult to use remote sensing data to monitor and study seasonal changes. Therefore, the dataset of test study area A reflects the time series characteristics of irrigation crops such as rice in the target study area, and the dataset of test study area B reflects the time series characteristics of land cover in the mountains of the target study area.
[0141] Based on the above time series dataset, the cloud mask data of the target study area is used to generate simulated cloud areas in the test study areas A and B. Then, real-time extrapolation and cloud removal based on time series remote sensing iteration are performed on the test study areas A and B to predict the missing pixel values under cloud cover.
[0142] Finally, the prediction error is calculated and compared with the prediction error of the traditional LSTM model to compare the de-clouding effect to determine whether the error meets the preset accuracy requirements.
[0143] Figure 7 to Figure 9 The error comparison under different accuracy evaluation indicators is shown respectively. Figure 7 , Figure 8 Using the structural similarity index SSIM as the accuracy evaluation index, the prediction accuracy of the two methods in the test study area A and B was compared and analyzed. Fig. 9 The normalized root mean square error (NMSE) was used as the accuracy evaluation index to compare and analyze the prediction accuracy of the test study area B under the two methods.
[0144] A comparative analysis was conducted between the traditional LSTM method (referred to as General-LSTM-CR) and the method of the present application (referred to as TsIR-LSTM-CR). The General-LSTM-CR used four cloud-free images from the historical time series remote sensing images of the test study areas A and B as training data. Each prediction randomly sampled 5,000 points as training samples for time series extrapolation prediction to establish a sample set. In the method of the present application, the prediction results of completely cloud-free images through General-LSTM-CR were used. Using this prediction result, samples with longer time series than the original samples can be produced, and at the same time, samples predicted by General-LSTM-CR containing cloud-free samples can be produced. The sample set is input into the LSTM and iterated once to obtain the prediction results for the cloud area.
[0145] Based on the prediction results, NMSE is used to calculate the difference between pixel values, and the correlation coefficient is used to calculate the correlation between pixel values. Figures 7 to 9It can be seen that the accuracy of TsIR-LSTM-CR and General-LSTM-CR shows similar oscillation rules in most of the time. In most phases, the results of TsIR-LSTM-CR can achieve lower NMSE and higher correlation coefficient than those of General-LSTM-CR, and the predicted values at the pixel level are closer to the actual pixel values.
[0146] The analysis results show that TsIR-LSTM-CR can achieve higher prediction accuracy than General-LSTM-CR in images far away from the cloud-free phase, and is suitable for cloud recovery work in areas with long-term cloud coverage.
[0147] Based on the success and experience of the simulation of test study area A and test study area B, a real-time extrapolation cloud removal experiment based on time-series remote sensing iteration was carried out on the target study area with higher frequency of cloud images and higher cloud coverage. Fig.10 The present invention is a schematic diagram of the cloud removal effect of using the time series extrapolation model of the present invention in the target study area according to some embodiments of the present invention. Due to the obstruction of clouds, it is impossible to obtain real remote sensing data to verify the reliability of the TsIR-LSTM-CR recovery results. It is difficult to quantitatively evaluate the error of the recovery results. The quality of the restored images in Xiuwen County can only be checked visually. There are 14 available Sentinel-2 data for the target study area throughout the year. 4 of them are cloud-free images, and 10 cloud images of the target study area throughout the year are restored. From the visual effect, the image restoration quality of the target study area is relatively high. Through the extrapolation of the time series, effective prediction can be achieved for surface images covered by thin and thick clouds.
[0148] In summary, the method provided in this application can effectively extend the time series through iteration based on time series remote sensing, make full use of the pixel information of cloud-free areas in cloudy images, enhance the spatiotemporal availability of samples, and achieve better results than traditional methods.
[0149] The method provided in the present application has a high degree of data utilization and can make full use of samples to achieve higher accuracy. Moreover, for cloud images that are far away from the time point of cloud-free images, a better improvement effect can be obtained than for phases that are close to the time point of cloud-free images. The method is suitable for cloud repair work in areas with frequent clouds all year round. At the same time, the method does not rely on time series after a time point and can achieve real-time prediction.
[0150] Exemplary Systems
[0151] The embodiment of the present application provides a real-time extrapolation cloud removal system based on time series remote sensing iteration, which is used to remove the cloud area in the cloud image of the target study area at the current time point, including:
[0152] An acquisition unit is configured to acquire historical time-series remote sensing images of a test study area and a target study area; the test study area and the target study area have the same or similar planting crop types, land cover types, and landform types, and a frequency of cloud images appearing in the time-series remote sensing images of the test study area is less than a frequency of cloud images appearing in the historical time-series remote sensing images of the target study area;
[0153] The selection unit is configured to select cloud-free images of corresponding quantity and time series distribution from the historical time series remote sensing images of the test study area according to the quantity of cloud-free images in the historical time series remote sensing images of the target study area and the time series distribution of the cloud-free images, and record them as first time series cloud-free images; and record other remote sensing images in the historical time series remote sensing images of the test study area except the first time series cloud-free image as test cloud images;
[0154] An extraction unit is configured to extract cloud mask data of the target study area based on cloud images in historical time-series remote sensing images of the target study area;
[0155] A simulated cloud unit is configured to generate a simulated cloud mask in a test cloud image of a test study area based on cloud mask data of a target study area, and record original values of each pixel in an area of the simulated cloud mask as true values of each pixel in an area of the simulated cloud mask;
[0156] The iterative execution unit is configured to test the historical time series remote sensing images of the study area, take the first time series cloud-free image as the cloud-free image sequence, take the test cloud image as the image sequence to be predicted, take the time point of the first cloud-free image in the cloud-free image sequence as the initial iteration time point, and all pixels of the first cloud-free image as the initial training data, and perform the following time series iteration steps:
[0157] The training data is input into the time series extrapolation model for training; the time series extrapolation model is a long short-term memory network LSTM model based on the encoder-decoder structure;
[0158] Determine the remote sensing image at the next time point based on the historical time series remote sensing images of the test study area;
[0159] If the remote sensing image at the next time point belongs to a cloud-free image sequence, all pixels of the remote sensing image are merged with the training data as additional training samples to obtain new training data, and the next time point is used as a new iteration time point, and the step of inputting the training data into the time series extrapolation model for training is performed;
[0160] If the remote sensing image at the next time point belongs to the image sequence to be predicted, the trained time series extrapolation model is used to predict the value of each pixel in the cloud mask area in the remote sensing image to obtain the predicted value of each pixel in the cloud mask area in the remote sensing image;
[0161] All pixels of the predicted remote sensing image are merged with the training data as additional training samples to obtain new training data, and the next time point is used as a new iteration time point, and the training data is input into the time series extrapolation model for training.
[0162] When the predicted values of all pixels in the area of all cloud masks in the image sequence to be predicted are obtained, the execution of the time series iteration step is stopped;
[0163] The error analysis unit is configured to calculate the error based on the predicted value and the true value of each pixel in the area of all cloud masks in the image sequence to be predicted; if the error is less than a preset error threshold, then for the historical time series remote sensing images of the target study area, all cloud-free images of the target study area are used as the cloud-free image sequence, and all cloud images of the target study area are used as the image sequence to be predicted, and the time point of the first cloud-free image in the cloud-free image sequence is used as the initial iteration time point, and all pixels of the first cloud-free image are used as initial training data, and the time series iteration step is performed to obtain the cloud-free image of the target study area at the current time point.
[0164] The real-time extrapolation cloud removal system based on time-series remote sensing iteration provided in the embodiment of the present application can implement the steps and processes of the real-time extrapolation cloud removal method based on time-series remote sensing iteration provided in any of the above embodiments, and achieve the same technical effects, which will not be repeated here one by one.
[0165] Exemplary Devices
[0166] Some embodiments of the present application provide an electronic device, the electronic device comprising:
[0167] one or more processors;
[0168] The computer-readable storage medium may be configured to store one or more programs, and when one or more processors execute the one or more programs, the following steps are implemented:
[0169] Obtain historical time-series remote sensing images of the test study area and the target study area; the planting crop type, land cover type or landform type of the test study area and the target study area are the same or similar, and the frequency of cloud images in the time-series remote sensing images of the test study area is less than the frequency of cloud images in the historical time-series remote sensing images of the target study area; according to the number of cloud-free images in the historical time-series remote sensing images of the target study area and the time-series distribution of cloud-free images, select cloud-free images with corresponding number and time-series distribution from the historical time-series remote sensing images of the test study area, and record them as the first time-series cloud-free images; record other remote sensing images in the historical time-series remote sensing images of the test study area except the first time-series cloud-free image Recorded as the test cloud image; extract the cloud mask data of the target study area based on the cloud image in the historical time series remote sensing images of the target study area; generate a simulated cloud mask in the test cloud image of the test study area based on the cloud mask data of the target study area, and record the original value of each pixel in the area of the simulated cloud mask as the true value of each pixel in the area of the simulated cloud mask; for the historical time series remote sensing images of the test study area, take the first time series cloud-free image as the cloud-free image sequence, take the test cloud image as the image sequence to be predicted, and take the time point of the first cloud-free image in the cloud-free image sequence as the initial iteration time point, and all pixels of the first cloud-free image as the initial The training data is used to perform the following time series iteration steps: input the training data into the time series extrapolation model for training; the time series extrapolation model is a long short-term memory network LSTM model based on the encoder-decoder structure; the remote sensing image at the next time point is determined based on the historical time series remote sensing images of the test study area; if the remote sensing image at the next time point belongs to a cloud-free image sequence, all pixels of the remote sensing image are used as additional training samples and merged with the training data to obtain new training data, and the next time point is used as a new iteration time point, and at the same time, the training data is input into the time series extrapolation model for training; if the remote sensing image at the next time point belongs to the image sequence to be predicted, The trained time series extrapolation model is then used to predict the value of each pixel in the cloud mask area of the remote sensing image, and the predicted value of each pixel in the cloud mask area of the remote sensing image is obtained; all pixels of the predicted remote sensing image are used as additional training samples and merged with the training data to obtain new training data, and the next time point is used as a new iteration time point, and at the same time, the step of inputting the training data into the time series extrapolation model for training is performed; when the predicted value of each pixel in the cloud mask area of all the image sequences to be predicted is obtained, the execution of the time series iteration step is stopped; according to the predicted value and the true value of each pixel in the cloud mask area of all the image sequences to be predicted, the error is calculated;If the error is less than the preset error threshold, then for the historical time series remote sensing images of the target study area, all cloud-free images of the target study area are taken as the cloud-free image sequence, all cloud images of the target study area are taken as the image sequence to be predicted, and the time point of the first cloud-free image in the cloud-free image sequence is taken as the initial iteration time point, and all pixels of the first cloud-free image are taken as the initial training data, and the time series iteration step is performed to obtain the cloud-free image of the target study area at the current time point. ;
[0170] Some embodiments of the present application also provide a hardware structure of an electronic device; the hardware structure of the electronic device may include: a processor, a communication interface, a computer-readable storage medium (also called a memory), and a communication bus.
[0171] The processor, the communication interface, and the computer-readable storage medium communicate with each other via a communication bus.
[0172] A computer-readable storage medium may be configured to store one or more programs.
[0173] Optionally, the communication interface may be an interface of a communication module, such as an interface of a GSM module.
[0174] The processor executes one or more programs for removing the cloud area in the cloud image of the target study area at the current time point, and implements the following steps:
[0175] Obtain historical time-series remote sensing images of the test study area and the target study area; the planting crop type, land cover type or landform type of the test study area and the target study area are the same or similar, and the frequency of cloud images in the time-series remote sensing images of the test study area is less than the frequency of cloud images in the historical time-series remote sensing images of the target study area; according to the number of cloud-free images in the historical time-series remote sensing images of the target study area and the time-series distribution of cloud-free images, select cloud-free images with corresponding number and time-series distribution from the historical time-series remote sensing images of the test study area, and record them as the first time-series cloud-free images; record other remote sensing images in the historical time-series remote sensing images of the test study area except the first time-series cloud-free image Recorded as the test cloud image; extract the cloud mask data of the target study area based on the cloud image in the historical time series remote sensing images of the target study area; generate a simulated cloud mask in the test cloud image of the test study area based on the cloud mask data of the target study area, and record the original value of each pixel in the area of the simulated cloud mask as the true value of each pixel in the area of the simulated cloud mask; for the historical time series remote sensing images of the test study area, take the first time series cloud-free image as the cloud-free image sequence, take the test cloud image as the image sequence to be predicted, and take the time point of the first cloud-free image in the cloud-free image sequence as the initial iteration time point, and all pixels of the first cloud-free image as the initial The training data is used to perform the following time series iteration steps: input the training data into the time series extrapolation model for training; the time series extrapolation model is a long short-term memory network LSTM model based on the encoder-decoder structure; the remote sensing image at the next time point is determined based on the historical time series remote sensing images of the test study area; if the remote sensing image at the next time point belongs to a cloud-free image sequence, all pixels of the remote sensing image are used as additional training samples and merged with the training data to obtain new training data, and the next time point is used as a new iteration time point, and at the same time, the training data is input into the time series extrapolation model for training; if the remote sensing image at the next time point belongs to the image sequence to be predicted, The trained time series extrapolation model is then used to predict the value of each pixel in the cloud mask area of the remote sensing image, and the predicted value of each pixel in the cloud mask area of the remote sensing image is obtained; all pixels of the predicted remote sensing image are used as additional training samples and merged with the training data to obtain new training data, and the next time point is used as a new iteration time point, and at the same time, the step of inputting the training data into the time series extrapolation model for training is performed; when the predicted value of each pixel in the cloud mask area of all the image sequences to be predicted is obtained, the execution of the time series iteration step is stopped; according to the predicted value and the true value of each pixel in the cloud mask area of all the image sequences to be predicted, the error is calculated;If the error is less than the preset error threshold, then for the historical time series remote sensing images of the target study area, all cloud-free images of the target study area are taken as the cloud-free image sequence, all cloud images of the target study area are taken as the image sequence to be predicted, and the time point of the first cloud-free image in the cloud-free image sequence is taken as the initial iteration time point, and all pixels of the first cloud-free image are taken as the initial training data, and the time series iteration step is performed to obtain the cloud-free image of the target study area at the current time point. ;
[0176] The processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc. It may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0177] The device and system embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components described as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.
Claims
1. A real-time extrapolation cloud removal method based on time series remote sensing iteration, characterized in that: The method is used to remove the cloud area in the cloud image of the target study area at the current time point, and the method includes: Obtain historical time-series remote sensing images of the test study area and the target study area; the test study area and the target study area have the same planting crop type, land cover type or landform type, and the frequency of cloud images appearing in the time-series remote sensing images of the test study area is less than the frequency of cloud images appearing in the historical time-series remote sensing images of the target study area; According to the number of cloud-free images in the historical time-series remote sensing images of the target study area and the time-series distribution of cloud-free images, cloud-free images of corresponding number and time-series distribution are selected from the historical time-series remote sensing images of the test study area and recorded as first time-series cloud-free images; other remote sensing images in the historical time-series remote sensing images of the test study area except the first time-series cloud-free images are recorded as test cloud images; Extracting cloud mask data of the target study area based on cloud images in historical time-series remote sensing images of the target study area; Based on the cloud mask data of the target study area, a simulated cloud mask is generated in the test cloud image of the test study area, and the original value of each pixel in the area of the simulated cloud mask is recorded as the true value of each pixel in the area of the simulated cloud mask; For the historical time series remote sensing images of the test study area, the first time series cloud-free images are used as the cloud-free image sequence, the test cloud images are used as the image sequence to be predicted, and the time point of the first cloud-free image in the cloud-free image sequence is used as the initial iteration time point. All pixels of the first cloud-free image are used as the initial training data, and the following time series iteration steps are performed: The training data is input into a time series extrapolation model for training; the time series extrapolation model is a long short-term memory network LSTM model based on an encoder-decoder structure; Determine the remote sensing image at the next time point based on the historical time series remote sensing images; If the remote sensing image at the next time point belongs to a cloud-free image sequence, all pixels of the remote sensing image are merged with the training data as additional training samples to obtain new training data, and the next time point is used as a new iteration time point, and the step of inputting the training data into the time series extrapolation model for training is performed; If the remote sensing image at the next time point belongs to the image sequence to be predicted, the trained time series extrapolation model is used to predict the value of each pixel in the cloud mask area in the remote sensing image to obtain the predicted value of each pixel in the cloud mask area in the remote sensing image; All pixels of the predicted remote sensing image are combined with the training data as additional training samples to obtain new training data, and the next time point is used as a new iteration time point, and the training data is input into the time series extrapolation model for training. When the predicted values of all pixels in the areas of all cloud masks in the image sequence to be predicted are obtained, the execution of the time series iteration step is stopped; Calculating errors based on predicted values and true values of each pixel in the area of all cloud masks in the image sequence to be predicted; If the error is less than a preset error threshold, then for the historical time series remote sensing images of the target study area, all cloud-free images of the target study area are taken as a cloud-free image sequence, and all cloud images of the target study area are taken as an image sequence to be predicted. The time point of the first cloud-free image in the cloud-free image sequence is taken as the initial iteration time point, and all pixels of the first cloud-free image are taken as initial training data. The time series iteration step is executed to obtain a cloud-free image of the target study area at the current time point.
2. The method according to claim 1, characterized in that In the historical time-series remote sensing images of the target study area, the ratio of the number of cloud images to the number of all historical time-series remote sensing images is greater than or equal to 90%.
3. The method according to claim 1, characterized in that There are multiple test study areas.
4. The method according to claim 3, characterized in that The historical time-series remote sensing images of the test study area and the target study area are all medium-resolution images, and the historical time-series remote sensing images of the test study area and the target study area include at least red, green, blue, near-infrared and short-wave infrared bands.
5. The method according to claim 1, characterized in that: The encoder of the time series extrapolation model includes a first LSTM cell unit, and the encoder is used to convert the training data into semantic coding; The decoder of the time series extrapolation model includes a second LSTM cell unit, and the decoder is used to decode the semantic encoding into an output result.
6. The method according to claim 1, characterized in that Before inputting the training data into the time series extrapolation model for training, the method further includes: normalizing the historical time series remote sensing images of the test study area and the target study area.
7. The method according to claim 1, characterized in that After calculating the error based on the predicted value and the true value of each pixel in the area of all cloud masks in the image sequence to be predicted, the method further includes: The error is compared with the prediction error of the traditional LSTM model to determine whether the error meets the preset accuracy requirement.
8. A real-time extrapolation cloud removal system based on time series remote sensing iteration, characterized in that: The system is used to remove the cloud area in the cloud image of the target study area at the current time point, and the system includes: An acquisition unit is configured to acquire historical time-series remote sensing images of a test study area and a target study area; the test study area and the target study area have the same planting crop type, land cover type, and landform type, and the frequency of cloud images appearing in the time-series remote sensing images of the test study area is less than the frequency of cloud images appearing in the historical time-series remote sensing images of the target study area; A selection unit is configured to select cloud-free images of corresponding quantity and time series distribution from the historical time series remote sensing images of the test study area according to the quantity of cloud-free images in the historical time series remote sensing images of the target study area and the time series distribution of cloud-free images, and record them as first time series cloud-free images; and record other remote sensing images in the historical time series remote sensing images of the test study area except the first time series cloud-free images as test cloud images; An extraction unit is configured to extract cloud mask data of the target study area based on cloud images in historical time-series remote sensing images of the target study area; A simulated cloud unit is configured to generate a simulated cloud mask in the test cloud image of the test study area based on the cloud mask data of the target study area, and record the original value of each pixel in the area of the simulated cloud mask as the true value of each pixel in the area of the simulated cloud mask; The iterative execution unit is configured to perform the following time series iteration steps for the historical time series remote sensing images of the test study area, using the first time series cloud-free images as a cloud-free image sequence, using the test cloud images as a to-be-predicted image sequence, and using the time point of the first cloud-free image in the cloud-free image sequence as an initial iteration time point, and using all pixels of the first cloud-free image as initial training data: The training data is input into a time series extrapolation model for training; the time series extrapolation model is a long short-term memory network LSTM model based on an encoder-decoder structure; Determine the remote sensing image at the next time point based on the historical time series remote sensing image of the test study area; If the remote sensing image at the next time point belongs to a cloud-free image sequence, all pixels of the remote sensing image are merged with the training data as additional training samples to obtain new training data, and the next time point is used as a new iteration time point, and the step of inputting the training data into the time series extrapolation model for training is performed; If the remote sensing image at the next time point belongs to the image sequence to be predicted, the trained time series extrapolation model is used to predict the value of each pixel in the cloud mask area in the remote sensing image to obtain the predicted value of each pixel in the cloud mask area in the remote sensing image; All pixels of the predicted remote sensing image are combined with the training data as additional training samples to obtain new training data, and the next time point is used as a new iteration time point, and the training data is input into the time series extrapolation model for training. When the predicted values of all pixels in the areas of all cloud masks in the image sequence to be predicted are obtained, the execution of the time series iteration step is stopped; The error analysis unit is configured to calculate the error according to the predicted value and the true value of each pixel in the area of all cloud masks in the image sequence to be predicted; if the error is less than a preset error threshold, then for the historical time series remote sensing images of the target study area, all cloud-free images of the target study area are used as the cloud-free image sequence, all cloud images of the target study area are used as the image sequence to be predicted, and the time point of the first cloud-free image in the cloud-free image sequence is used as the initial iteration time point, and all pixels of the first cloud-free image are used as initial training data, and the time series iteration step is performed to obtain the cloud-free image of the target study area at the current time point.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer program is a method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: include: A memory, a processor, and a program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 7 when executing the program.
Citation Information
Patent Citations
A method for detecting and removing thick clouds from coarse-to-fine time-series remote sensing images
CN109063663A
Single remote sensing image cloud removal method based on cloud thickness estimation and deep learning
CN115222629A
