A time series image reconstruction method based on ConvLSTM

Through the time-series image reconstruction method based on ConvLSTM, combined with image segmentation technology and ConvLSTM network, the problem of insufficient spatiotemporal correlation in the existing technology is solved, and more efficient remote sensing image data reconstruction is achieved.

CN113160345BActive Publication Date: 2024-09-06ZHEJIANG UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110359791.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-02
Publication Date
2024-09-06
Estimated Expiration
2041-04-02

AI Technical Summary

Technical Problem

Existing remote sensing image reconstruction methods usually only use the characteristics of the time domain or the spatial domain and fail to fully consider the spatiotemporal correlation, resulting in information loss and insufficient accuracy during data reconstruction.

Method used

A time-series image reconstruction method based on ConvLSTM is used to divide remote sensing images into homogeneous image blocks through image segmentation technology, and combine the ConvLSTM network to capture temporal and spatial features to achieve the reconstruction of missing data.

Benefits of technology

It improves the spatiotemporal correlation of data reconstruction, makes up for the shortcomings of single feature utilization, and improves reconstruction accuracy and calculation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113160345B
    Figure CN113160345B
Patent Text Reader

Abstract

A time series image reconstruction method based on ConvLSTM includes: step 1: constructing time series images; step 2: extracting homogeneous image objects on the surface; step 3: classifying homogeneous image objects, establishing a land object classification system CL according to different land object coverage types, selecting classification samples according to the classification system CL, and then constructing a feature space, that is, the features involved in classification, applying it to all categories, and finally performing classification to achieve the effect of classifying image spots according to different land object coverage types; step 4: constructing a ConvLSTM network framework; ConvLSTM converts the feedforward calculation method from input to state and state to state into a convolutional form based on FC-LSTM; step 5: making training samples and conducting model training; step 6: model prediction; P t 1 The difference operation between M and M is used to obtain the data set M' with the missing part that needs to be reconstructed. The time variation trend and spatial information characteristics captured by the model are used to predict M', thus realizing the reconstruction of the missing part.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of remote sensing image processing, and specifically relates to a method for reconstructing time series images based on a convolutional long short-term memory temporal network (ConvLSTM). The method utilizes a convolutional (Conv) network to realize image spatial features, utilizes a long short-term memory (LSTM) network to realize image temporal dimension features, and realizes remote sensing time series data reconstruction according to the laws of temporal and spatial features. Background Art

[0002] Satellite remote sensing, as a means of observing large-scale and long-term land surface changes, plays an important role in global change, urban monitoring and other applications. Affected by atmospheric conditions, cloud pollution and complex surface conditions, remote sensing images contain a lot of noise or data loss, which makes it impossible to truly and accurately record surface conditions. Therefore, reconstructing areas with missing data to provide more reliable time series data sets for various applications has become an important research topic in data preprocessing. At present, the methods for reconstructing time series data sets mainly include starting from the time domain, space domain and time-space coordination to achieve the final reconstruction effect.

[0003] In the time domain, common methods include maximum value synthesis. This method is based on the assumption that noise causes NDVI to be underestimated, and selects the maximum value within a period of time as the effective observation. In the case of clear sky observations during this period, the influence of clouds and atmosphere can be effectively eliminated to achieve reconstruction of missing areas. This method has a simple processing process, but fails to fully consider the bidirectional reflection of the surface, loses a lot of useful information, and retains too many residuals. SG filtering is one of the most commonly used methods for remote sensing time series reconstruction, but this method is based on fitting and is suitable for smooth, regularly spaced time series. The smoothing effect for unequally spaced time series needs to be improved.

[0004] In the spatial domain, common methods include Cokriging (Chuanrong Zhang, Weidong Li & David J. Travis (2009). Restoration of clouded pixels in multispectral remotely sensed imagery with cokriging. International Journal of Remote Sensing, 2009, 30 (9): 2173-2195). Cokriging regards the reconstruction of missing areas as a spatial difference. It uses unbiased estimates of the minimum and known errors of different attributes. By combining relevant secondary information and considering the spatial cross-correlation between primary and secondary variables, it improves the interpolation accuracy and achieves reconstruction of missing areas. However, the additional modeling and analysis required to obtain a useful kernelized model is a disadvantage of the Cokriging method. In addition, there is an over-limit median smoothing filter method. Based on the principle that the closer the distance is, the higher the similarity is, the image is smoothed using the information of neighboring pixels. In order to overcome the problem of blurred boundaries and information distortion caused by general spatial smoothing, only the over-limit pixels are processed. However, due to the spatial heterogeneity of the distribution of objects, it is difficult to set the over-limit value.

[0005] There are few spatiotemporal collaborative methods for time series remote sensing image reconstruction. For the missing blocks in medical images, a method based on M-RNN network is proposed to estimate the missing values ​​in the time series. The network contains interpolation blocks and interpolation blocks, and these blocks are trained simultaneously, which can effectively capture the correlation within and between data streams to fill the missing values ​​(Jinsung Yoon, William R. Zame, and Mihaela van der Schaar. Estimating Missing Data in Temporal Data Streams Using Multi-directional Recurrent Neural Networks. IEE Transactions on Biomedical Engineering, 2017). However, the network is designed for the characteristics of medical data sets, and whether it is applicable to other time series data remains to be evaluated.

[0006] As a typical spatial data, time series remote sensing datasets have the characteristics of temporal and spatial correlation of ground objects, but the existing time series reconstruction methods often only use one aspect of the characteristics. Reconstructing time series using a single characteristic greatly reduces the temporal and spatial correlation in geographic space, resulting in the loss of a large amount of valuable information. Summary of the invention

[0007] The present invention aims to overcome the above-mentioned shortcomings of the prior art and provide a time series image reconstruction method based on ConvLSTM, which combines the temporal characteristics and spatial characteristics into a single network for reconstruction.

[0008] Time series remote sensing images have strong temporal and spatial correlation characteristics, but the existing reconstruction methods only utilize one aspect of the characteristics. In this regard, the present invention proposes a time series remote sensing image reconstruction method based on ConvLSTM. The method first divides the time series images into homogeneous image blocks (patches) through image segmentation technology, and then classifies the patches according to the differences in the types of objects. For the same type of objects, time series features are constructed with patches as units and input into the ConvLSTM network model training, which not only captures the temporal change laws between patches, but also extracts the spatial information between patches, thereby realizing the reconstruction of missing time series data.

[0009] According to the above principles, a time series image reconstruction method based on ConvLSTM of the present invention comprises the following steps:

[0010] Step 1: Construct time series images;

[0011] Select the remote sensing time series image of the study area, denoted as I:

[0012] I={I1,I2,...,I m} (1)

[0013] There are m images in total, and each image is arranged in ascending time order.

[0014] The cloud coverage area on the image is marked using the marking tool, and the image is divided into non-intersecting cloud-free areas and cloud-covered areas. Then, the cloud area is marked as missing value, and the time series image with some missing areas is represented as

[0015]

[0016] Step 2: Extracting homogeneous surface image objects;

[0017] Select a cloudless or lightly clouded image from the remote sensing time series image I, and use the image segmentation method to cluster the pixels according to homogeneity to form homogeneous image objects (patches). This process can be further decomposed into the following two sub-steps:

[0018] Step 2-1: Preliminary segmentation;

[0019] The image was segmented using the commonly used multi-scale segmentation algorithm in the segmentation software eCognition. The segmentation parameters were determined by manual trial and error to obtain preliminary segmentation results.

[0020] Step 2-2: Optimize segmentation results;

[0021] The initial segmentation results are often not ideal and there is an over-segmentation phenomenon. The spectral similarity of adjacent segmented regions is used to merge regions to optimize the segmentation results. The spectral similarity of adjacent segmented regions is calculated by the Euclidean distance E(C i ,C j ) to measure:

[0022]

[0023] Among them, C i and C j is the average spectral vector of the segmented area, and M is the number of bands in the image. i ,C j ) is less than the threshold T, and the segmentation result is optimized.

[0024] Step 3: Classify homogeneous image objects (spots);

[0025] Based on step 2, a land feature classification system CL is established according to the different land feature coverage types, assuming that there are n different categories in the study area:

[0026] CL={cl1,cl2,...,cl n} (4)

[0027] Also using eCognition software, on the basis of obtaining the map spots, we select classification samples according to the classification system CL, and then construct the feature space, that is, the features involved in the classification, and apply it to all categories. Finally, we perform classification to achieve the effect of classifying the map spots according to the different coverage types of the ground objects.

[0028] Step 4: Build the ConvLSTM network framework;

[0029] Based on FC-LSTM, ConvLSTM converts the feedforward calculation method from input to state and from state to state into a convolutional form, which better simulates the spatiotemporal relationship.

[0030] Based on the above spatiotemporal series prediction problem, building the network framework is divided into the following two sub-steps:

[0031] Step 4-1: Construct the encoding network;

[0032] The encoding network is formed by stacking multiple ConvLSTM layers to compress the entire input sequence into a hidden state tensor.

[0033] Step 4-2: Build a prediction network;

[0034] The prediction network is also formed by stacking multiple ConvLSTM layers, and the prediction network unfolds the hidden state generated by the encoding network to give the final prediction result.

[0035] Step 5: Prepare training samples and conduct model training;

[0036] Based on step 3, we get the classified n types of spots P:

[0037] P={P 1 ,P 2 ,...,P n} (5)

[0038] Same type of pattern P i ∈P constructs time series data P according to the time order t i :

[0039]

[0040] For the time series data P composed of the first type of spots t 1 Screen and select the spots with no missing elements in timestamp t to form a new time series, that is, the training sample set M∈P t 1 , assuming there are l training samples:

[0041]

[0042] If the number of samples after screening is insufficient, the number of samples can be increased by data enhancement. After setting the training hyperparameters, the elements in the sample set M are trained to obtain the spatiotemporal sequence model f of the first type of land feature coverage. 1 .

[0043] According to the above method, P i ∈P,i=2,3,...,n patches are trained to obtain multiple spatiotemporal sequence prediction models f 2 ,f 3 ,...,f n .

[0044] Step 6: Model prediction;

[0045] In step 5, we get P t 1 The dataset M' with the missing part to be reconstructed is obtained by performing a difference operation with M. The temporal variation trend and spatial information features captured by the model are used to predict M', thus realizing the reconstruction of the missing part.

[0046] Time series data with missing domains are predicted based on different types of spatiotemporal series models to achieve reconstruction effect.

[0047] The advantages of the present invention are:

[0048] 1) The ConvLSTM network not only considers the correlation of time series but also the correlation of spatial information during reconstruction, which makes up for the shortcomings of insufficient utilization of spatiotemporal complementary information, and has high computational efficiency and strong practicality.

[0049] 2) Before reconstruction, the image segmentation technology is used to cluster the pixels according to homogeneity to form homogeneous image objects (patches), and then they are classified according to the different coverage types of the ground objects. This makes the pixels in the homogeneous image objects have similar temporal change trends. Compared with directly dividing the image blocks according to the W*W window size, the overall change trend and spatial characteristics can be more accurately captured during model training. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 is a flow chart of the method of the present invention.

[0051] Figure 2 It is a time series image of Shou County, Anhui Province.

[0052] Figure 3 It is the image segmentation result diagram of the present invention.

[0053] Figure 4 It is a network structure diagram of the present invention.

[0054] Figure 5 It is a time series image after reconstruction by the present invention. DETAILED DESCRIPTION

[0055] In order to facilitate those of ordinary skill in the art to understand and implement the present invention, the present invention is further described in detail below in conjunction with the embodiments and drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention, and the embodiments described are only part of the embodiments of the present invention, rather than all of the embodiments. Therefore, based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present invention.

[0056] Figure 1 It is a flow chart of the present invention. The embodiment process of the present invention is as follows:

[0057] Step 1: Construct time series images

[0058] The study area selected in this embodiment is Shou County, Huainan City, Anhui Province. The images obtained are Sentinel-2 optical images. There are 24 scenes in total, 2 scenes per month, evenly distributed in time, and each scene is arranged in ascending order of time to form a time series image, such as Figure 2 shown.

[0059] Use ArcGIS or other GIS software to identify the cloud-covered areas in the image, and divide the image into non-intersecting cloud-free areas and cloud-covered areas. Perform cloud masking on the image, keep the pixel values ​​in the cloud-free area unchanged, and set the pixel values ​​in the cloud-covered area to 0, thus forming a time series image with missing areas.

[0060] Step 2: Extracting homogeneous surface image objects

[0061] A cloudless or lightly clouded image is selected from the time series images, and the pixels are clustered according to homogeneity using image segmentation methods to form homogeneous image objects (patches).

[0062] Furthermore, in step 2, extracting the surface homogeneous image objects includes the following two sub-steps:

[0063] Step 2-1: Preliminary segmentation

[0064] The image was segmented using the commonly used multi-scale segmentation algorithm in the segmentation software eCognition. Only four bands, blue, green, red, and near-infrared, were selected for segmentation, that is, their weights were set to 1, and other layers were set to 0. The segmentation parameters included scale parameters, color, shape parameters, smoothness, and compactness, etc., which were determined by manual trial and error. After multiple tests, the scale parameter was selected as 10, the color and shape parameters were 0.7 and 0.3, respectively, and the smoothness and compactness were 0.5 and 0.5, respectively. Thus, the preliminary segmentation results were obtained.

[0065] Step 2-2: Segmentation result optimization

[0066] The initial segmentation results are often not ideal, and there is an over-segmentation phenomenon. The spectral similarity of adjacent segmented regions can be used to merge regions to optimize the segmentation results. The spectral similarity of adjacent segmented regions is measured by the Euclidean distance between the average spectral vectors of the two regions, as shown in formula (3). In this embodiment, 34.5 is selected as the average spectral vector distance threshold. When it is less than the threshold, the two adjacent regions are merged, and when it is greater than the threshold, they are not merged. In this way, the effect of segmentation optimization is achieved, such as Figure 3 shown.

[0067] Step 3: Classify homogeneous image objects (patches)

[0068] Based on step 2, a land feature classification system including water bodies, roads, vegetation, crops, buildings, etc. was established according to the different land feature coverage types in the Shou County study area.

[0069] Using the same eCognition software, on the basis of obtaining the spots, different types of spots are selected as classification samples according to the established land object classification system. Then, the feature space is constructed, that is, the features involved in the classification. In this example, spectral features such as the standard deviation and brightness of the band, shape features such as the shape index, as well as vegetation index, water index, building index, etc. are selected and applied to all categories. Finally, classification is performed based on the selected classification samples and the constructed features to achieve the effect of classifying the spots according to the different coverage types of the land objects.

[0070] Step 4: Build the ConvLSTM network framework

[0071] Based on FC-LSTM, ConvLSTM converts the feedforward calculation method from input to state and from state to transition into convolutional form to capture the local features of spatial data and better simulate the spatiotemporal relationship.

[0072] The network structure used in this embodiment is as follows Figure 4 As shown, the network structure consists of an encoding network and a prediction network.

[0073] Step 4-1: Build the encoding network

[0074] In this embodiment, the encoding network is composed of two layers of ConvLSTM, each layer has a convolution structure in both the input-to-state and state-to-state directions, such as Figure 4 The yellow box in the middle represents the input-state convolution, the blue box represents the transition-state convolution, and the size of the convolution kernel is set to 3×3, and the number of hidden states in the ConvLSTM layer is set to 128.

[0075] To ensure that the state has the same number of rows and columns as the input, the output shape of each convolution unit can be guaranteed to be the same as the input shape by padding with zeros before applying the convolution operation.

[0076] Step 4-2: Build a prediction network

[0077] The prediction network also uses two layers of ConvLSTM. The final state of the encoding network is input into the prediction module as the initial state and unit output of the prediction network. The size of the convolution kernel and the number of hidden states of the two layers of ConvLSTM are set to be consistent with the encoding network. Finally, all output states in the prediction network are concatenated and input into a convolution layer with a kernel size of 1×1 to generate a final prediction with the same dimension as the input.

[0078] In order to avoid overfitting during training, a Dropout layer is added between ConvLSTM layers. In addition, a BatchNormalization layer is added before each ConvLSTM layer to accelerate training, adjust the direction of data competition, and have fast convergence characteristics.

[0079] Step 5: Create training samples and perform model training

[0080] Based on step 3, five types of image spots are classified, and the same type of image spots constitute time series data in ascending order of time.

[0081] Since LSTM itself is sensitive to data values, and in order to ensure faster convergence during model training, the time series data composed of the same type of spots are normalized and preprocessed. First, the histogram of the same type of spots is counted to obtain the pixel value m when the number of pixel values ​​reaches 1% and the pixel value n when the number reaches 99%. The pixel values ​​less than m are set to m, and the pixel values ​​greater than n are set to n. The pixel values ​​in the [m,n] interval are linearly stretched to [1,255]. After preprocessing, the time series data composed of 5 types of spots are obtained.

[0082] The first type of time series data is screened and the patches with no missing parts at all times are selected to form a training sample set.

[0083] The length of each group of samples in the training sample set is 24, and they are input into the network framework constructed in step 4 as input data and prediction results for training.

[0084] Set hyperparameters: learning efficiency is 0.001, number of iterations is 200, and size of each batch is 8. Use the cross loss function to calculate the loss between the actual result and the predicted result, back propagate the error through the BP neural network, adjust the model parameters, and continue training until the network converges to obtain the spatiotemporal sequence model of the first type of land cover.

[0085] The remaining four types of patches are trained in the same way to obtain spatiotemporal sequence models of different types.

[0086] Step 6: Model prediction

[0087] Under the condition that the spatiotemporal series model of the first type of land cover is obtained in step 5, the temporal variation trend and spatial information characteristics captured by the model are used to predict the same type of time series data with missing parts remaining after screening, thereby realizing the reconstruction of the missing parts.

[0088] Other types of spots also use the above method to predict the same type of time series data with missing domains according to different types of spatiotemporal series models to achieve the final reconstruction effect, such as Figure 5 shown.

[0089] The above is only a description of an embodiment of the present invention, but the protection scope of the present invention should not be regarded as limited to the specific forms described in the embodiment. The protection scope of the present invention also extends to equivalent technical means that can be conceived by those skilled in the art based on the concept of the present invention.

Claims

1. A time series image reconstruction method based on ConvLSTM, comprising the following steps: Step 1: Construct time series images; Select the remote sensing time series image of the study area, denoted as I: I={I1,I2,...,I m } (1) There are m images in total, and each image is arranged in ascending order of time; The cloud coverage area on the image is marked by the marking tool, and the image is divided into non-intersecting cloud-free areas and cloud-covered areas; then, the cloud area is marked as missing value, and the time series image with some missing areas is represented as Step 2: Extracting homogeneous surface image objects; A cloudless or lightly clouded image is selected from the remote sensing time series image I, and the pixels are clustered according to homogeneity using an image segmentation method to form homogeneous image objects (patches); the step 2 is further decomposed into the following two sub-steps: Step 2-1: Preliminary segmentation; The image was segmented using the commonly used multi-scale segmentation algorithm in the segmentation software eCognition. The segmentation parameters were determined by manual trial and error to obtain preliminary segmentation results. Step 2-2: Optimize segmentation results; The spectral similarity of adjacent segmented regions is used to merge regions to optimize the segmentation results; the spectral similarity of adjacent segmented regions is calculated by the Euclidean distance E(C i ,C j ) to measure: Among them, C i and C j is the average spectral vector of the segmented area, M is the number of bands of the image; if E(C i ,C j ) is less than the threshold T, and the segmentation result is optimized; Step 3: Classify homogeneous image objects (spots); Based on step 2, a land feature classification system CL is established according to the different land feature coverage types, assuming that there are n different categories in the study area: CL={cl1,cl2,...,cl n } (4) Similarly, using eCognition software, on the basis of obtaining the spots, we select the classification samples according to the classification system CL, then construct the feature space, that is, the features involved in the classification, apply it to all categories, and finally perform the classification to achieve the effect of classifying the spots according to the different coverage types of the ground objects; Step 4: Build the ConvLSTM network framework; Based on FC-LSTM, ConvLSTM converts the feedforward calculation method from input to state and from state to state into a convolutional form; The step 4 is divided into the following two sub-steps: Step 4-1: Construct the encoding network; The encoding network is formed by stacking multiple ConvLSTM layers to compress the entire input sequence into a hidden state tensor; Step 4-2: Build a prediction network; The prediction network is also formed by stacking multiple ConvLSTM layers, and the prediction network will expand the hidden state generated by the encoding network to give the final prediction result; Step 5: Prepare training samples and conduct model training; Based on step 3, we get the classified n types of spots P: P={P 1 ,P 2 ,...,P n } (5) Same type of pattern P i ∈P constructs time series data P according to the time order t i : For the time series data P composed of the first type of patches t 1 Screen and select the spots with no missing elements in timestamp t to form a new time series, that is, the training sample set M∈P t 1 , assuming there are l training samples: If the number of samples after screening is insufficient, the number of samples can be increased by data enhancement. After setting the training hyperparameters, the elements in the sample set M are trained to obtain the spatiotemporal series prediction model f for the first type of land cover. 1 ; According to the above method, P i ∈P,i=2,3,...,n patches are trained to obtain multiple spatiotemporal sequence prediction models f 2 ,f 3 ,...,f n ; Step 6: Model prediction; In step 5, we get P t 1 The difference operation is performed with M to obtain the data set M' with the missing part to be reconstructed. The time variation trend and spatial information characteristics captured by the model are used to predict M', thus realizing the reconstruction of the missing part. Time series data with missing domains are predicted based on different types of spatiotemporal series models to achieve reconstruction effects.