A remote sensing image elevation extraction method integrating context information
Through the combination of the elevation extraction network model and the rational function imaging model, the problem of low elevation prediction accuracy of single-view remote sensing images is solved, fast and accurate elevation prediction is achieved, and the stability of the prediction results is improved through the fusion processing of local and global features. performance and precision.
Patent Information
- Application Number
- CN202210555808.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-19
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-05-19
AI Technical Summary
In the existing technology, when single-view remote sensing images are used for elevation prediction, there are problems of low accuracy, especially the lack of information and local optimal problems caused by occlusion.
An elevation extraction network model is used, including a local feature encoder, a contextual feature extractor, a contextual feature fusion and an improved elevation decoder. Through training set construction and feature fusion processing, the elevation prediction results of single-view remote sensing images are extracted, using rational functions Imaging models and least squares methods are used to obtain accurate training data, and feature fusion is performed through a multi-head attention mechanism.
The speed and accuracy of elevation prediction are improved. The improved elevation decoder improves the accuracy by 0.3m, ensuring the accuracy and stability of elevation prediction results.
Smart Images

Figure CN114926646B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of geographic information technology, and in particular relates to a remote sensing image elevation extraction method integrating context information. Background Art
[0002] Digital Elevation Model (DEM) records the spatial distribution of geographic entities and has a wide range of application scenarios. For example, digital elevation models are used in combination with remote sensing images to monitor and prevent geological disasters. The surface is monitored around the clock and in all weather conditions. Remote sensing images are analyzed based on digital elevation models to extract elevation information, and then the deformation of the surface is determined based on the extracted elevation information, thereby preventing geological disasters such as landslides and mudslides.
[0003] When predicting elevation, most of the methods are to simultaneously carry multiple cameras on the flight platform to obtain more abundant image information from vertical and other inclined directions, and then use multi-view remote sensing images to identify elevation geometric information. The recognition process is as follows: first, multiple remote sensing images are obtained, and the acquired remote sensing images are preprocessed, and then feature points are extracted from multiple remote sensing images, and then adjustment calculations are performed to extract elevation prediction results. This recognition method integrates rich information from multiple angles, which can undoubtedly ensure the accuracy of elevation prediction. However, this method requires a series of calculations for each remote sensing image. The calculation process is complex and time-consuming, and the elevation prediction speed is slow. In order to solve this problem, single-view remote sensing images can be used for elevation prediction. However, single-view remote sensing images are only images from one angle, and there are often occlusions in the real world. The single-view remote sensing image is likely to be an occluded remote sensing image, and information is missing, which is bound to lead to a decrease in the accuracy of elevation prediction results. Summary of the invention
[0004] The purpose of the present invention is to provide a remote sensing image elevation extraction method integrating context information to solve the problem of low accuracy in the prior art when using a single remote sensing image for elevation prediction.
[0005] In order to solve the above technical problems, the present invention provides a remote sensing image elevation extraction method integrating context information, comprising the following steps:
[0006] A single-view remote sensing image is obtained and input into an elevation extraction network model to obtain an elevation prediction result of the single-view remote sensing image; the elevation extraction network model is trained using the single-view remote sensing image and the corresponding digital elevation model as a training set, and the elevation extraction network model includes a local feature encoder, a context feature extractor, a context feature fusion device and an elevation decoder; the local feature encoder is used to extract local features of each cropped local single-view remote sensing image; the context feature extractor is used to extract context features of the downsampled single-view remote sensing image; the context feature fusion device is used to fuse the extracted local features and context features; the elevation decoder is used to decode the result of the fusion process to obtain the elevation prediction result corresponding to each local single-view remote sensing image, thereby obtaining the elevation prediction result of the entire single-view remote sensing image.
[0007] The beneficial effects of the above technical solution are as follows: First, the present invention uses an elevation extraction network model to extract and process features of a single remote sensing image to predict its elevation. This processing method improves the speed of elevation prediction compared to the method of using multiple remote sensing images for elevation prediction. Secondly, in the process of feature extraction and processing, facing the problem of large size of the original remote sensing image, the original remote sensing image is cropped, that is, only part of the remote sensing image is processed each time. Since the original remote sensing image (single-view remote sensing image) is segmented and the original remote sensing image is segmented into multiple small images, the global information of the remote sensing image is lost. If the global information is not integrated, it is easy to fall into the local optimum, and the accuracy of the elevation prediction result is low. In order to solve this problem, the present invention uses a context feature extractor to extract context features (global information), and fuses the context features with the local features extracted by the local feature encoder, thereby ensuring the accuracy of the elevation prediction on the basis of improving the speed of elevation prediction.
[0008] Furthermore, the elevation decoder includes a four-layer structure connected in sequence, the first layer structure is a first convolution module, and the remaining layer structures include a transposed convolution module and a first convolution module connected in sequence; the transposed convolution module includes: a transposed convolution layer, an activation function, and a padding operation layer after the transposed convolution calculation.
[0009] The beneficial effects of the above technical solution are as follows: the elevation decoder of the present invention has made further improvements on the U-net decoder structure. Different from the U-Net decoder that directly uses the upsample layer of the expanded scale, the present invention uses step convolution, and adds a transposed convolution layer to other structures except the first layer structure of the decoder, so as to better depict the details. Specifically, the elevation decoder of the present invention performs convolutions of corresponding convolution kernel sizes in the x-direction and y-direction, respectively, so as to help the network perceive the changes in terrain gradients, thereby enriching the texture details of terrain prediction, and adds ordinary convolution after the transposed convolution to eliminate the checkerboard shadows. Experimental results show that the use of the improved elevation decoder improves the accuracy of elevation prediction by 0.3m. In addition, the present invention adopts the U-net decoder structure, realizes feature fusion by splicing, and has a simple and stable structure.
[0010] Furthermore, the method for constructing the training set includes the following steps:
[0011] Obtain a single-view remote sensing image I and a digital elevation model D of the corresponding geographic range;
[0012] The single-view remote sensing image I is divided into multiple small images. For each small image, the pixels I(i, j) are traversed one by one. The longitude X, latitude Y and elevation H corresponding to the current pixel (r, c) and the digital elevation model D are obtained by the least squares method for each current pixel in the following way to obtain a training set. The method for obtaining the longitude X, latitude Y and elevation H using the least squares method is:
[0013] a. Select the longitude X in the rational function imaging model RFM corresponding to the single-view remote sensing image I 0 , Latitude Y 0 , elevation offset H 0 , recorded as the initial value of the iteration;
[0014] b. Calculate the pixel coordinates (r p ,c p ), calculating the difference between the pixel coordinates and the current pixel point, wherein the difference is recorded as a projection error;
[0015] c. Obtain the partial derivatives of the projection error with respect to the longitude and latitude, and construct a partial derivative arrangement matrix;
[0016] d. solving the correction numbers in the longitude and latitude directions according to the partial derivative arrangement matrix and the projection error;
[0017] f. updating the initial value of the iteration according to the correction number, recorded as the initial value of the current iteration, and obtaining the elevation corresponding to the longitude and latitude in the initial value of the current iteration from the digital elevation model by interpolation, and updating the elevation value in the initial value of the current iteration;
[0018] g. Repeat steps bf until convergence, thereby obtaining the elevation value corresponding to the current pixel;
[0019] Preferably, the interpolation method is a bilinear interpolation method; preferably, the partial derivative arrangement matrix is a Jacobian matrix.
[0020] The beneficial effects of the above technical scheme are as follows: in the prior art, the digital elevation model DEM is used to obtain training data. When the DEM model is used to obtain training data, on the one hand, the remote sensing image has not been corrected by geographic information, and on the other hand, the obtained triple data coordinates composed of longitude, latitude and elevation are obtained by interpolation, and are not the coordinate values on the actual DEM model; therefore, the regular triple data coordinates obtained after grid sampling cannot correspond to the remote sensing image pixels one by one, but there is a certain deviation, resulting in inaccurate training data and elevation prediction results. The present invention uses a rational function imaging model to obtain a training set, traverses pixel points pixel by pixel, and then uses the least squares method to set an iteration initial value, build error, linear approximation and correct triple data coordinate errors, etc., and gradually iterates and calculates so that the coordinate data composed of longitude, latitude and elevation on the rational function imaging model strictly corresponds to each pixel on the remote sensing image, the correspondence between the remote sensing image and the rational function imaging model is more accurate, and the obtained triple data coordinates are more accurate, which is conducive to subsequent accurate elevation prediction results.
[0021] Furthermore, the calculation method adopted by the context feature fuser is:
[0022] The context features and local features are processed separately to obtain context feature data sequences and local feature data sequences with consistent dimensions; the context feature data sequences and local feature data sequences are operated by a multi-head attention mechanism to obtain results after the multi-head attention mechanism operation; the results after the multi-head attention mechanism operation are subjected to a multi-layer perception operation through an MLP layer to obtain result data of the fusion processing.
[0023] Furthermore, the context feature extractor includes a four-layer structure connected in sequence, the first layer structure includes two second convolution modules; the remaining layer structures are sequentially provided with a maximum pooling layer and two second convolution modules; the second convolution module includes a convolution layer, a batch normalization layer, and an activation function.
[0024] Furthermore, the local feature encoder is ResNet-18.
[0025] Furthermore, the loss function used in training the elevation extraction network model includes a scale-invariant elevation error loss function, wherein the scale-invariant elevation error loss function L g for:
[0026]
[0027] d = log(h p )-log(h t )
[0028] Where M is the number of sample pixels, (r, c) is the pixel coordinate in the remote sensing image, and h p Denotes the predicted elevation, h t Indicates the true value of elevation.
[0029] Furthermore, the loss function used in training the elevation extraction network model includes a reprojection loss function, wherein the reprojection loss function L r for:
[0030]
[0031] grid = RFM(X′, Y′, h p )
[0032]
[0033]
[0034] Where M is the number of sample pixels, SSIM is the image pattern consistency descriptor, μ is the mean calculator, σ is the variance calculator, C1 and C2 are constants to prevent the denominator from being 0, α is the weight control parameter, X' is the matrix composed of longitude in the sample, Y' is the matrix composed of latitude in the sample, h p is a matrix composed of predicted elevations, I is the original remote sensing image, RFM represents the rational function imaging model, and grid is the matrix of X', Y', h using RFM. p The pixel coordinate grid obtained after reprojection, An image generated by sampling the original image using a grid. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 is a schematic diagram of training data production in an embodiment of the present invention;
[0036] Figure 2 It is a flow chart of a remote sensing image elevation extraction method integrating context information of the present invention;
[0037] Figure 3-1is the first original remote sensing image in the embodiment of the method of the present invention;
[0038] Figure 3-2 In the embodiment of the method of the present invention Figure 3-1 The corresponding elevation distribution truth map;
[0039] Figure 3-3 In the embodiment of the method of the present invention Figure 3-1 The corresponding elevation distribution prediction value;
[0040] Figure 3-4 In the embodiment of the method of the present invention Figure 3-1 Corresponding elevation error distribution heat map;
[0041] Figure 4-1 is a second original remote sensing image in the embodiment of the method of the present invention;
[0042] Figure 4-2 In the embodiment of the method of the present invention Figure 4-1 The corresponding elevation distribution truth map;
[0043] Figure 4-3 In the embodiment of the method of the present invention Figure 4-1 The corresponding elevation distribution prediction value;
[0044] Figure 4-4 In the embodiment of the method of the present invention Figure 4-1 Corresponding elevation error distribution heat map;
[0045] Figure 5-1 is the third original remote sensing image in the embodiment of the method of the present invention;
[0046] Figure 5-2 In the embodiment of the method of the present invention Figure 5-1 The corresponding elevation distribution truth map;
[0047] Figure 5-3 In the embodiment of the method of the present invention Figure 5-1 The corresponding elevation distribution prediction value;
[0048] Figure 5-4 In the embodiment of the method of the present invention Figure 5-1 Corresponding elevation error distribution heat map;
[0049] Figure 6-1 is the fourth original remote sensing image in the method embodiment of the present invention;
[0050] Figure 6-2 In the embodiment of the method of the present invention Figure 6-1 The corresponding elevation distribution truth map;
[0051] Figure 6-3 In the embodiment of the method of the present invention Figure 6-1The corresponding elevation distribution prediction value;
[0052] Figure 6-4 In the embodiment of the method of the present invention Figure 6-1 Corresponding elevation error distribution heat map;
[0053] Figure 7-1 is the fifth original remote sensing image in the method embodiment of the present invention;
[0054] Figure 7-2 In the embodiment of the method of the present invention Figure 7-1 The corresponding elevation distribution truth map;
[0055] Figure 7-3 In the embodiment of the method of the present invention Figure 7-1 The corresponding elevation distribution prediction value;
[0056] Figure 7-4 In the embodiment of the method of the present invention Figure 7-1 Corresponding heat map of elevation error distribution. DETAILED DESCRIPTION
[0057] The present invention uses a single-view depth estimation method based on deep learning, combined with the rational function imaging model (Rational Functional Model, RFM) of remote sensing images to perform single-view elevation estimation, so as to achieve rapid extraction of elevation prediction results, and then achieve rapid extraction of ground object distribution. The main concept of the present invention is: limited by the size of the remote sensing image, the computing power of the equipment and the geographical attributes, the present invention uses RFM (Rational Functional Model, RFM) to re-extract training samples; then according to the general elevation prediction model, it is composed of a local image feature encoder and a local elevation decoder; the features encoded by the local image feature encoder can be directly put into the elevation decoder in terms of data format to generate an elevation prediction result consistent with the original size. However, the above-mentioned segmentation operation is performed on the original remote sensing image (single-view remote sensing image), and the original remote sensing image is divided into multiple small images, resulting in the problem of losing the global information of the remote sensing image; because the global information is not integrated, it is easy to fall into the local optimum, and the accuracy of the elevation prediction result is low. Therefore, if Figure 2 As shown, the present invention fuses the extracted context information (global information) with the extracted local information through a context feature fuser (the core of which is a multi-head attention mechanism module), and inputs the improved elevation decoder, thereby obtaining an elevation prediction result with global information. Therefore, a remote sensing image elevation extraction method with high accuracy of elevation prediction results is provided.
[0058] A remote sensing image elevation extraction method integrating context information of the present invention is described in detail below in conjunction with the accompanying drawings and embodiments.
[0059] Method Example:
[0060] A method embodiment of a remote sensing image elevation extraction method integrating context information of the present invention comprises the following steps:
[0061] Step 1: Dataset construction.
[0062] Limited by the size of remote sensing images, equipment computing power and geographical attributes, the present invention uses the rational function imaging model RFM to re-extract training samples. Given the original large-format remote sensing image I (single-view remote sensing image) and the digital elevation model D of the corresponding geographical range. First, the original remote sensing image I is divided into m×n small images I(i, j), where 0≤i≤m, 0≤j≤n, and then, start traversing I(i, j) pixel by pixel, and obtain the longitude, latitude and elevation coordinate tuple (X, Y, H) corresponding to the current pixel (r, c) from D according to the following method, where r and c represent the row number and column number of the current pixel in I(i, j), respectively:
[0063] Step 01: Select the longitude, latitude, and elevation offset X in the RFM corresponding to I 0 , Y 0 , H 0 is the initial value of the iteration;
[0064] Step 02: Calculate the use of X 0 , Y 0 , H 0 The pixel coordinates (r p , c p ), construct the projection error L = (r p , c p )-(r, c);
[0065] Step 03: Calculate the partial derivative of the projection error L with respect to X and Y Construct the Jacobian matrix A (partial derivative permutation matrix), where
[0066] Step 04: Calculate the correction values ΔX and ΔY in the X and Y directions. T A) -1 L;
[0067] Step 05. Update (X 0 , Y 0 )←(X 0 , Y 0 )+(ΔX, ΔY), and obtain the current (X 0 , Y 0 ) corresponding to the elevation H, update H 0 ←H.
[0068] Step 06, repeat steps 02-05 until convergence. You can get dense elevation samples of sample I (i, j) that meet the RFM projection conditions pixel by pixel. Produce all small-scale images within the range of 0≤i≤m, 0≤j≤n to build a training set for DEM elevation prediction. The data production result example is as follows: Figure 1 shown.
[0069] In the above-mentioned segmentation operation of the original remote sensing image (single-view remote sensing image), the context information between the images is lost. In the design of the main prediction model, the present invention adopts a context feature fuser to fuse the global information with the local information. The main workflow is Figure 2 shown.
[0070] Step 2: construct an elevation extraction network model, and use the data set constructed in step 1 to train the elevation extraction network model to obtain a trained elevation extraction network model.
[0071] The specific structure of the elevation extraction network model is as follows: Figure 2 As shown, it includes a local feature encoder, a context feature extractor, a context feature fusion device and an elevation decoder. The local feature encoder is used to extract local features from each cropped local single-view remote sensing image; the context feature extractor is used to extract context features from the downsampled single-view remote sensing image; the context feature fusion device is used to fuse the extracted local features and context features; the elevation decoder is used to decode the fusion result to obtain the elevation prediction result corresponding to each local single-view remote sensing image, thereby obtaining the elevation prediction result of the entire single-view remote sensing image.
[0072] The following is a detailed introduction to these structures and the loss functions used during training.
[0073] 1) Contextual feature extractor.
[0074] The global information of the remote sensing image is lost during the above-mentioned segmentation operation of the original remote sensing image. In order to solve the problem of losing global information, the present invention designs a global feature encoder (context feature extractor) based on the feature extractor design pattern (stacked design, convolution, BatchNorm, activation function), and then uses the global feature encoder to extract global information (context features) to solve the problem of global information loss of remote sensing images. The global feature encoder (context feature extractor) includes a four-layer structure connected in sequence, the first layer structure includes two second convolution modules; the remaining layer structures are sequentially provided with a maximum pooling layer and two of the second convolution modules; the second convolution module includes a convolution layer, a batch normalization layer, and an activation function. Specifically, the global feature encoder structure is shown in Table 1:
[0075] Table 1 Global feature encoder (context feature extractor) structure
[0076]
[0077]
[0078] Among them, Conv represents the convolution layer, and its parameter list is: the number of input channels, the number of output channels, the convolution kernel size, and the edge padding size; BatchNorm represents the batch normalization layer, and its parameter list is: the number of feature channels; ReLU is the activation function. In specific application, the original remote sensing image I with a height of H and a width of W is downsampled to a feature map with a height of Hc and a width of Wc, and the feature map is input into the global feature encoder to obtain context information features.
[0079] 2) Local feature encoder and elevation decoder.
[0080] The elevation extraction network model of the present invention includes a local feature encoder and an elevation decoder, and the overall encoder-decoder structure is an enhanced U-Net structure. The local feature encoder is a ResNet-18 structure, and the elevation decoder includes a four-layer structure connected in sequence. The first layer structure is a first convolution module, and the remaining layer structures include a transposed convolution module and a first convolution module connected in sequence; the transposed convolution module includes: a transposed convolution layer, an activation function, and a padding operation layer after the transposed convolution calculation. Specifically, the elevation decoder structure is shown in Table 2:
[0081] Table 2 Elevation decoder structure
[0082]
[0083]
[0084] Among them, the first convolution module includes a padding operation layer Pad, a convolution layer Conv, an activation function Leaky_relu, a padding operation layer Pad, a convolution layer Conv and an activation function Leaky_relu; the transposed convolution module includes a transposed convolution layer ConvTr, an activation function Leaky_relu and a padding operation layer Pad_Tr after transposed convolution; Pad represents an edge padding operation according to a step size combination, the purpose of which is to successfully complete subsequent convolutions. ConvTr represents transposed convolution, and the parameter list is (number of input channels, number of output channels, convolution kernel size, step size), and Pad_Tr represents a padding operation after transposed convolution, and the parameter is the step size. As shown above, Conv is a normal convolution operation. Unlike U-Net, which directly uses the upsample layer with an expanded scale, the present invention uses stepped convolution and transposed convolution to better depict details. Specifically, (1) the decoder performs convolutions with kernels (3, 1) and (1, 3) in the x-direction and y-direction, respectively, to help the network perceive changes in terrain gradients; (2) a transposed convolution layer with learnable parameters is used, and a normal convolution is added after the transposed convolution to eliminate checkerboard shadows, thereby enriching the texture details of the predicted terrain. Experimental results show that the improvement of the model contributes to a 0.3m accuracy improvement in the elevation direction.
[0085] In specific application, the original remote sensing image is locally cropped, and the cropped remote sensing image is input into the local image feature encoder to extract the local image features.
[0086] The local image features extracted after encoding by the local image feature encoder can be directly input into the elevation decoder to generate dense prediction results consistent with the original size in terms of data format, but the global information is not incorporated, so it is easy to fall into the local optimum. Therefore, the present invention adopts a context feature fuser to combine the two types of information.
[0087] 3) Context feature fuser. The context feature fuser includes a Patch-embedding preprocessing layer, a multi-head attention mechanism MSA, and an MLP. In the specific calculation, the context features and local features are respectively subjected to Patch-embedding preprocessing using a linear layer to obtain a context feature data sequence and a local feature data sequence; the context feature data sequence and the local feature data sequence are subjected to a multi-head attention mechanism operation to obtain the result after the multi-head attention mechanism operation; the result after the multi-head attention mechanism operation is subjected to a multi-layer perception operation through an MLP layer to obtain the result data of the fusion processing. The data fusion processing process is described in detail below.
[0088] The context feature of the original image after downsampling is obtained by the context feature extractor as follows: c is the number of channels. The local features extracted by the local feature encoder are Now for x c and x l Perform fusion to update x l First, the two sets of features are serialized separately to obtain Then, a uniform linear transformation is performed to obtain a sequence with consistent descriptor dimensions, namely:
[0089] The following explains Figure 1 The principle of Multi-Head Self-Attention (MSA) in the paper. According to the theory of attention mechanism, from px l and px c Extract three weight matrices, denoted as Q, K, and V. Q comes from px l , the main matrix, K and V come from px c , is the auxiliary matrix. Assuming the number of attention heads in the multi-head attention module is n, then This is implemented using a linear layer with an output channel of Dim / n. The features are projected into a new dimension using a weight matrix:
[0090]
[0091]
[0092]
[0093] Update px l :
[0094] The updated px l By decoding it in the elevation decoder, we can get the elevation prediction result with global information. The fusion method is the calculation of the QKV matrix in MSA, while the calculation of QKV in the original Transformer comes from the data itself, not the fusion of this data.
[0095] 4) Training is driven by a loss function based on geographical characteristics.
[0096] We use two loss functions for supervised training.
[0097] The first one is the elevation error loss L with scale invariance. g :
[0098]
[0099] d = log(h p )-log(h t )
[0100] Where M is the number of sample pixels, (r, c) is the pixel coordinate of the remote sensing image, and h p Denotes the predicted elevation, h t Indicates the true value of elevation.
[0101] The second is the reprojection loss function L r :
[0102]
[0103] grid = RFM(X′, Y′, h p )
[0104]
[0105]
[0106] Where M is the number of sample pixels, SSIM is the image pattern consistency descriptor, μ is the mean calculator, σ is the variance calculator, C1 and C2 are constants to prevent the denominator from being 0, which are generally set to 0.0001 and 0.0003 respectively; α is the weight control parameter, which is generally 0.85, X' is the matrix composed of the longitude in the sample, Y' is the matrix composed of the latitude in the sample, and h p is a matrix composed of predicted elevations, I is the original remote sensing image, RFM represents the rational function imaging model, and grid is the matrix of X', Y', h using RFM. p The pixel coordinate grid obtained after reprojection, The image is generated by sampling the original image using the grid. In theory, when the predicted elevation is consistent with the true value, It will be exactly the same as I. Comparing it with the original remote sensing image I, its loss can be used as the error to drive training.
[0107] Step 3: Obtain the single-view remote sensing image to be predicted and input it into the elevation extraction network model to obtain the prediction result. The effectiveness of the method of the present invention is verified in conjunction with a specific example. The effect of the elevation prediction verification is shown in Table 3:
[0108] Table 3 Elevation prediction results
[0109]
[0110] Some visualization results are compared and displayed through original remote sensing images, true values of elevation distribution, predicted values of elevation distribution model, and heat map of elevation error distribution. Figure 3-1 The first original remote sensing image, Figure 3-2 is the corresponding elevation distribution true value map, Figure 3-3 is the corresponding elevation distribution prediction value, Figure 3-4is the corresponding elevation error distribution heat map; Figure 4-1 The second original remote sensing image, Figure 4-2 is the corresponding elevation distribution true value map, Figure 4-3 is the corresponding elevation distribution prediction value, Figure 4-4 is the corresponding elevation error distribution heat map; Figure 5-1 For the third original remote sensing image, Figure 5-2 is the corresponding elevation distribution true value map, Figure 5-3 is the corresponding elevation distribution prediction value, Figure 5-4 is the corresponding elevation error distribution heat map; Figure 6-1 For the fourth original remote sensing image, Figure 6-2 is the corresponding elevation distribution true value map, Figure 6-3 is the corresponding elevation distribution prediction value, Figure 6-4 is the corresponding elevation error distribution heat map; Figure 7-1 The fifth original remote sensing image, Figure 7-2 is the corresponding elevation distribution true value map, Figure 7-3 is the corresponding elevation distribution prediction value, Figure 7-4 The corresponding elevation error distribution heat map.
[0111] The present invention uses an elevation extraction network model to extract and process features of a single remote sensing image to achieve the prediction of its elevation. This processing method improves the speed of elevation prediction compared to the method of using multiple remote sensing images for elevation prediction. Secondly, in the process of feature extraction and processing, facing the problem of large size of the original remote sensing image, the original remote sensing image is cropped, that is, only part of the remote sensing image is processed each time. Since the original remote sensing image (single-view remote sensing image) is segmented and divided into multiple small images, the phenomenon of losing the global information of the remote sensing image occurs. If the global information is not integrated, it is easy to fall into the local optimum, and the accuracy of the elevation prediction result is low. In order to solve this problem, the present invention uses a context feature extractor to extract context features (global information), and fuses the context features and the local features extracted by the local feature encoder, thereby ensuring the accuracy of the elevation prediction on the basis of improving the speed of elevation prediction. In addition, the structure of the elevation decoder is improved to further improve the accuracy of the prediction results of the network model.
Claims
1. A remote sensing image elevation extraction method integrating context information, characterized in that: The following steps are involved: Obtain a single-view remote sensing image and input it into the elevation extraction network model to obtain the elevation prediction result of the single-view remote sensing image; The elevation extraction network model is trained using single-view remote sensing images and corresponding digital elevation models as training sets, and the elevation extraction network model includes a local feature encoder, a context feature extractor, a context feature fusion device and an elevation decoder; the local feature encoder is used to extract local features of each cropped local single-view remote sensing image; the context feature extractor is used to extract context features of the downsampled single-view remote sensing image; the context feature fusion device is used to fuse the extracted local features and context features; the elevation decoder is used to decode the result of the fusion process to obtain the elevation prediction result corresponding to each local single-view remote sensing image, thereby obtaining the elevation prediction result of the entire single-view remote sensing image.
2. The remote sensing image elevation extraction method integrating context information according to claim 1 is characterized in that: The elevation decoder includes a four-layer structure connected in sequence, the first layer structure is a first convolution module, and the remaining layer structures include a transposed convolution module and a first convolution module connected in sequence; the transposed convolution module includes: a transposed convolution layer, an activation function, and a padding operation layer after the transposed convolution calculation.
3. The remote sensing image elevation extraction method integrating context information according to claim 1 is characterized in that: The method for constructing the training set comprises the following steps: Obtain a single-view remote sensing image I and a digital elevation model D of the corresponding geographic range; divide the single-view remote sensing image I into multiple small images, traverse the pixel points of each small image pixel by pixel I(i,j), and use the least squares method to obtain the longitude X, latitude Y and elevation H corresponding to the current pixel point (r,c) and the digital elevation model D according to the following method for each current pixel point to obtain a training set; the method for obtaining the longitude X, latitude Y and elevation H using the least squares method is: a. Select the longitude X0, latitude Y0, and elevation offset H0 in the rational function imaging model RFM corresponding to the single-view remote sensing image I, and record them as the initial values of the iteration; b. Calculate the pixel coordinates (r p ,c p ), calculating the difference between the pixel coordinates and the current pixel point, wherein the difference is recorded as a projection error; c. Obtain the partial derivatives of the projection error with respect to the longitude and latitude, and construct a partial derivative arrangement matrix; d. solving the correction numbers in the longitude and latitude directions according to the partial derivative arrangement matrix and the projection error; f. updating the initial value of the iteration according to the correction number, recorded as the initial value of the current iteration, and obtaining the elevation corresponding to the longitude and latitude in the initial value of the current iteration from the digital elevation model by interpolation, and updating the elevation value in the initial value of the current iteration; g. Repeat steps bf until convergence, thereby obtaining the elevation value corresponding to the current pixel.
4. The remote sensing image elevation extraction method integrating context information according to claim 1 is characterized in that: The calculation method adopted by the context feature fuser is: The context features and local features are processed separately to obtain context feature data sequences and local feature data sequences with consistent dimensions; the context feature data sequences and local feature data sequences are operated by a multi-head attention mechanism to obtain results after the multi-head attention mechanism operation; the results after the multi-head attention mechanism operation are subjected to a multi-layer perception operation through an MLP layer to obtain result data of the fusion processing.
5. The remote sensing image elevation extraction method integrating context information according to claim 1 is characterized in that: The context feature extractor includes a four-layer structure connected in sequence, the first layer structure includes two second convolution modules; the remaining layer structures are sequentially provided with a maximum pooling layer and two second convolution modules; the second convolution module includes a convolution layer, a batch normalization layer, and an activation function.
6. The remote sensing image elevation extraction method integrating context information according to claim 1, characterized in that: The local feature encoder is ResNet-18.
7. The remote sensing image elevation extraction method integrating context information according to any one of claims 1 to 6, characterized in that: The loss function used when training the elevation extraction network model includes a scale-invariant elevation error loss function, wherein the scale-invariant elevation error loss function L g for: d=log(h p )-log(h t ) Where M is the number of sample pixels, (r, c) is the pixel coordinate of the remote sensing image, and h p Denotes the predicted elevation, h t Indicates the true value of elevation.
8. The remote sensing image elevation extraction method integrating context information according to any one of claims 1 to 6, characterized in that: The loss function used in training the elevation extraction network model includes a reprojection loss function, wherein the reprojection loss function L r for: grid=RFM(X′,Y′,h p ) Where M is the number of sample pixels, SSIM is the image pattern consistency descriptor, μ is the mean operator, σ is the variance operator, C1 and C2 are constants to prevent the denominator from being 0, α is the weight control parameter, X' is the matrix composed of longitude in the sample, Y' is the matrix composed of latitude in the sample, and h p is a matrix composed of predicted elevations, I is the original remote sensing image, RFM represents the rational function imaging model, and grid is the matrix of X', Y', h using RFM. p The pixel coordinate grid obtained after reprojection, An image generated by sampling the original image using a grid.
9. The remote sensing image elevation extraction method integrating context information according to claim 3 is characterized in that: The interpolation method is a bilinear interpolation method.
10. The remote sensing image elevation extraction method integrating context information according to claim 3 is characterized in that: The partial derivative arrangement matrix is a Jacobian matrix.
Citation Information
Patent Citations
High spatial resolution remote sense image-based tidal flat DEM (Digital Elevation Model) optimization method
CN104573239A
Digital elevation model production method based on deep learning
CN110084817A
Remote sensing image building extraction method based on attention mechanism and boundary loss
CN114387521A
Semantically-aware image-based visual localization
US20200357143A1
