Method, device, equipment, medium and product for generating digital elevation model
By combining multi-temporal data with pre-trained neural networks and preset fusion algorithms, a digital elevation model is generated, which solves the shortcomings in accuracy and universality of optical satellite images and laser satellite altimetry data in the existing technology, and achieves high accuracy and Robust digital elevation model generation.
Patent Information
- Application Number
- CN202410630642.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-08-23
AI Technical Summary
The existing method of generating digital elevation models based on optical satellite images and laser satellite altimetry data is difficult to perform in scenarios with high accuracy requirements. It is especially difficult to ensure the reliability and universality of accuracy in areas with large terrain undulations.
A pre-trained neural network is used to combine multi-temporal optical remote sensing images and laser satellite altimetry data, and a digital elevation model is generated through time series input and preset fusion algorithms, taking into account changes in surface characteristics and suppressing the impact of elevation changes caused by changes in ground objects.
It realizes the generation of high-precision digital elevation model, which is robust and suitable for different scenarios and application requirements, improving the universality and accuracy of the model.
Smart Images

Figure CN118537503A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of satellite remote sensing product production, and in particular to a method, device, electronic device, non-transitory computer-readable storage medium, and computer program product for generating a digital elevation model. Background Art
[0002] Digital elevation model is a three-dimensional digital model generated by digitizing the elevation information of objects on the earth's surface (for example, natural features, buildings, roads, water bodies, etc.). Digital elevation model contains high-precision terrain and object features, and has been widely used in urban planning, natural resource management, disaster prevention and other fields in recent years. Therefore, how to quickly and efficiently obtain digital elevation models of interest areas has become a hot research direction. In related technologies, the methods for measuring surface elevation used to generate digital elevation models are mainly based on leveling elevation measurement and GPS elevation measurement. In recent years, elevation measurement methods using ground-based three-dimensional laser radar have also begun to be widely used. Although the measurement method using the above-mentioned related technology has high accuracy, it consumes a lot of manpower and material resources. In addition, it is difficult to carry out measurement work in areas that are difficult to enter, such as rights and interests disputes. In contrast, the wide field of view, strong currentness, and low cost of satellite remote sensing data make it an important means of surface elevation measurement, which can easily and quickly realize real-time, synchronous, and continuous monitoring of a large area.
[0003] Among them, optical satellite images are the main data source in the production of digital elevation models; and laser satellite altimetry data has the characteristics of not being restricted by the observation area, high precision, and large-scale earth observation. In recent years, it has been widely used in the acquisition of large-scale discrete ground elevation data.
[0004] In the existing technology, the digital elevation model generation method based on optical satellite images is mainly based on the spatial forward intersection of stereo image pairs. However, this solution has the problem of "being unable to cope with scenes with high precision requirements". In addition, the solution for generating high-precision digital elevation models based on the fusion of laser satellite altimetry data and optical satellite image data has the problem of difficulty in ensuring the reliability of its accuracy or low universality in certain areas (such as areas with large terrain undulations). Summary of the invention
[0005] The present disclosure provides a method, an apparatus, an electronic device, a non-transitory computer-readable storage medium, and a computer program product for generating a digital elevation model, so as to solve the defects in the prior art.
[0006] The present disclosure provides a method for generating a digital elevation model, comprising:
[0007] Acquire optical remote sensing images of multiple target locations in a target area at different times; wherein the target area is a geographical area for which a digital elevation model needs to be generated;
[0008] For each target position, the optical remote sensing images at different times corresponding to the target position are respectively input into the pre-trained neural network in time sequence, and the single-phase surface elevation values output by the pre-trained neural network that match the optical remote sensing images at each time are obtained as a set of single-phase surface elevation values corresponding to the target position; wherein the pre-trained neural network is trained by using multi-phase sample optical remote sensing images and corresponding phase sample laser satellite altimetry data;
[0009] Based on each group of single-phase surface elevation values, a final surface elevation value corresponding to the target position is determined using a preset fusion algorithm;
[0010] A digital elevation model of the target area is generated based on the final surface elevation values corresponding to each of the plurality of target locations.
[0011] The present disclosure also provides a device for generating a digital elevation model, comprising:
[0012] The data acquisition module is configured to: acquire optical remote sensing images of multiple target locations in a target area at different times; wherein the target area is a geographical area for which a digital elevation model needs to be generated;
[0013] The single-phase surface elevation prediction module is configured as follows: for each target location, the optical remote sensing images at different times corresponding to the target location are respectively input into the pre-trained neural network in time sequence, and the single-phase surface elevation values output by the pre-trained neural network that match the optical remote sensing images at each time are obtained as a set of single-phase surface elevation values corresponding to the target location; wherein the pre-trained neural network is trained by using multi-phase sample optical remote sensing images and corresponding phase sample laser satellite altimetry data;
[0014] The fusion module is configured to: determine the final surface elevation value corresponding to the target position based on each group of single-phase surface elevation values using a preset fusion algorithm;
[0015] The digital elevation model generation module is configured to generate a digital elevation model of the target area based on the final surface elevation values corresponding to each of the plurality of target locations.
[0016] The present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for generating a digital elevation model as described in any one of the above is implemented.
[0017] The present disclosure also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for generating a digital elevation model as described in any one of the above is implemented.
[0018] The present disclosure also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above methods for generating a digital elevation model.
[0019] As described above, using the method for generating a digital elevation model provided by the embodiment of the present disclosure, on the one hand, by using a "pre-trained neural network", not only can the context information of the single-phase satellite multispectral optical image and the elevation information provided by the corresponding phase laser satellite be taken into account, but also the final surface elevation value corresponding to the target position can be output; and the "pre-trained neural network" has a relatively simple structure, so it has high universality. On the other hand, by using a preset fusion algorithm to fuse multiple groups of single-phase surface elevation values of different phases, the changes in the surface characteristics of the target position and the target area can be taken into account, which has a significant advantage in resisting the influence of gross errors, making the final surface elevation value obtained more robust. Therefore, when there are elevation changes caused by changes in ground objects in the multi-phase data (which can be regarded as gross errors), the influence caused by them can be effectively suppressed.
[0020] Therefore, the method for generating a digital elevation model provided in the embodiment of the present disclosure is a lightweight method that can take into account different scenarios, and can make the generated digital elevation model have high precision and meet different application requirements while ensuring high precision. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the present disclosure or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0022] Figure 1 is a flowchart of a method for generating a digital elevation model provided by an embodiment of the present disclosure;
[0023] Figure 2 is a structural diagram of the image block method provided by an embodiment of the present disclosure;
[0024] Figure 3 is a schematic diagram of the structure of the pre-trained neural network provided in an embodiment of the present disclosure;
[0025] Figure 4is a schematic diagram of the rough separation of the Gaussian bimodal model provided in an embodiment of the present disclosure;
[0026] Figure 5 is a schematic diagram of the structure of a device for generating a digital elevation model provided by an embodiment of the present disclosure;
[0027] Figure 6 It is a schematic diagram of the structure of an electronic device provided by the present disclosure. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solutions and advantages of the present disclosure clearer, the technical solutions in the present disclosure will be clearly and completely described below in conjunction with the drawings in the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0029] Summary of the invention concept:
[0030] The inventors of the present disclosure have found through research that the causes of the problems in the prior art are:
[0031] On the one hand, for the method of generating digital elevation models based on optical satellite images, first, due to the use of dense matching algorithms to find the corresponding feature point pairs in the stereo image pairs, the precise internal parameters (focal length and principal point coordinates) and external parameters (attitude and position) of the sensor are determined based on the feature point pairs, and the spatial forward intersection is performed according to the strict imaging model or rational polynomial model to generate the digital elevation model pixel by pixel. However, the accuracy of the digital elevation model produced by this method is greatly affected by the base-to-height ratio of the optical satellite. When the base-to-height ratio is too large or too small, it will have a negative impact on the results of the spatial forward intersection, thereby reducing the accuracy of the digital elevation model. Second, optical satellites are extremely susceptible to the influence of bad weather, resulting in waste films. The base-to-height ratios of each stereo image pair are usually difficult to unify, and thus the digital elevation model cannot be guaranteed to have uniform accuracy. Third, the error of the spatial forward intersection model itself will also reduce the elevation accuracy of the digital elevation model, making it difficult to meet the needs of specific scenarios.
[0032] On the other hand, for the scheme of generating high-precision digital elevation models by fusing laser satellite altimetry data and optical satellite image data, one mainstream scheme is to first generate a digital elevation model using optical stereo image pairs, and then fuse the laser satellite altimetry data with the digital elevation model as an elevation constraint to generate a more accurate model. However, this method is a post-processing method, and the selection of the fused model is relatively simple, which can only ensure a certain improvement in the overall accuracy of the model. Therefore, it is difficult to ensure the reliability of its accuracy in some areas (such as areas with large terrain undulations). Another scheme mainly solves the problem from the upstream, that is, taking into account the elevation constraints of satellite laser altimetry data and constructing a new spatial forward intersection model. However, this model is usually more complex, so it has low universality.
[0033] In view of this, the inventors of the present disclosure considered that "the key to generating a high-precision digital elevation model based on satellite remote sensing data is to construct a lightweight model that can take into account different scenarios (for example, integrating multi-temporal data and taking into account changing ground features), so that the generated digital elevation model can meet different application requirements while ensuring accuracy", and then based on the above concept, proposed a solution for generating a digital elevation model as described in the following embodiment.
[0034] Example:
[0035] The scheme for generating a digital elevation model disclosed in the present invention is described below in conjunction with the accompanying drawings.
[0036] Figure 1 1 is a flow chart of a method for generating a digital elevation model provided by an exemplary embodiment of the present disclosure. This embodiment can be applied to electronic devices (for example, servers or cloud computing platforms), such as Figure 1 As shown, the method for generating a digital elevation model comprises the following steps:
[0037] S110, acquiring optical remote sensing images of multiple target locations in the target area at different times.
[0038] The target area is a geographical area where a digital elevation model needs to be generated, for example, a natural area that is difficult for workers to enter or reach.
[0039] It is understandable that to construct a digital elevation model (ie, a three-dimensional digital model, a three-dimensional topographic map) of a region, it is necessary to collect relevant optical remote sensing images that can cover multiple locations in the region. Therefore, it is necessary to select multiple target locations in the target area.
[0040] The reasons for collecting optical remote sensing images at different times for each target location are:
[0041] It is necessary to take into account the changes of the ground surface over time. Specifically, some seasonally changing objects, such as vegetation, are lush and dense in spring and summer, obscuring surface features, resulting in a reduction in visible terrain details in optical remote sensing images, which reduces the accuracy of stereo matching and digital elevation models; while in autumn and winter, sparse vegetation makes the previously obscured surface visible, which helps to obtain clearer terrain features. In addition, in areas where changes in ground object categories occur, such as construction sites, changes in surface elevation are often accompanied, which affects the production accuracy of the final digital elevation model.
[0042] In view of this, the present disclosure does not limit the determination method of different moments, and can be determined with seasonal changes, or can be adaptively determined in units of years. For example, for a certain target location, corresponding optical remote sensing images can be obtained in 2018, 2019, ..., 2024, respectively.
[0043] The present disclosure does not limit the method of obtaining "optical remote sensing images". For example, as an execution subject (such as a server or a cloud computing platform) that executes the above method of the present disclosure, it can communicate with a server that stores optical remote sensing images to obtain the corresponding optical remote sensing images; or, the execution subject can also communicate with an optical satellite that collects optical remote sensing images to obtain the corresponding optical remote sensing images.
[0044] S120. For each of the target positions, the optical remote sensing images at different times corresponding to the target position are input into the pre-trained neural network in time sequence, and the single-phase surface elevation values output by the pre-trained neural network that match the optical remote sensing images at each time are obtained as a set of single-phase surface elevation values corresponding to the target position.
[0045] The pre-trained neural network is trained using sample optical remote sensing images of multiple time phases and sample laser satellite altimetry data of corresponding time phases.
[0046] The multiple time phases represent multiple different moments, that is, each time phase may correspond to one moment.
[0047] In addition, the "pre-trained neural network" used in the embodiment of the present disclosure is a lightweight neural network, so the model structure complexity is low and the universality is high. Moreover, the "pre-trained neural network" can fuse the input optical remote sensing image with the corresponding laser satellite altimetry data to obtain the corresponding single-phase surface elevation value. The specific implementation will be described below and will not be repeated here.
[0048] S130: Based on each group of single-phase surface elevation values, a final surface elevation value corresponding to the target position is determined using a preset fusion algorithm.
[0049] Among them, a preset fusion algorithm is used to fuse multiple sets of single-phase surface elevation values of different phases, so that changes in the surface characteristics of the target location and the target area can be taken into account. The specific implementation details will be described below.
[0050] S140: Generate a digital elevation model of the target area based on the final surface elevation values corresponding to each of the plurality of target locations.
[0051] Optionally, a dedicated software for generating the digital elevation model (DEM) may be used to generate the digital elevation model of the target area using the final surface elevation value as input data.
[0052] The present disclosure does not limit DEM software, which may include but is not limited to ArcGIS, ENVI, GRASS GIS, etc., which are all very popular GIS software; or, there are some software specifically used for DEM processing, such as TIN Toolkit, IDRISI, etc.
[0053] As described above, using the method for generating a digital elevation model provided by the embodiment of the present disclosure, on the one hand, by using a "pre-trained neural network", not only can the context information of the single-phase satellite multispectral optical image and the elevation information provided by the corresponding phase laser satellite be taken into account, but also the final surface elevation value corresponding to the target position can be output; and the "pre-trained neural network" has a relatively simple structure, so it has high universality. On the other hand, by using a preset fusion algorithm to fuse multiple groups of single-phase surface elevation values of different phases, the changes in the surface characteristics of the target position and the target area can be taken into account, which has a significant advantage in resisting the influence of gross errors, making the final surface elevation value obtained more robust. Therefore, when there are elevation changes caused by changes in ground objects in the multi-phase data (which can be regarded as gross errors), the influence caused by them can be effectively suppressed.
[0054] Therefore, the method for generating a digital elevation model provided in the embodiment of the present disclosure is a lightweight method that can take into account different scenarios, and can make the generated digital elevation model have high precision and meet different application requirements while ensuring high precision.
[0055] exist Figure 1 Based on the embodiment, as an optional implementation method, refer to Figure 2 Step S120 "inputting the optical remote sensing images corresponding to the target position at different times into the pre-trained neural network in time sequence" can be achieved by:
[0056] Firstly, pixel values of different bands are extracted from the optical remote sensing images at different times using an image window of a preset size to obtain image blocks composed of pixel values of different bands; then, the image blocks are respectively input into a pre-trained neural network in a time sequence.
[0057] The present disclosure does not limit the "preset size", which can be determined adaptively according to the needs, for example, it can be 11×11 pixel units. Using an image window of this size, a multispectral image block of 11×11 pixel units can be extracted.
[0058] As an optional example, the structure of the image block may be as follows: Figure 2 As shown. During the training phase of the pre-trained neural network, Figure 2 The colored part can be used as the corresponding pixel of the laser point to extract different bands of the optical image (for example, Figure 2 The pixel values of band 1, band 2, band 3, ..., band n) and the corresponding laser elevation values are used to construct training data.
[0059] exist Figure 1 Based on the embodiment, as an optional implementation method, refer to Figure 3 The pre-trained neural network includes an input layer, a 3×3 convolutional layer, an activation layer, a 2×2 maximum pooling layer and a fully connected layer which are connected in cascade sequence.
[0060] Among them, refer to Figure 3 , the number of channels of the input layer is 4,
[0061] The number of channels of the convolution layer is 10, the convolution kernel is 3×3 (i.e., including 3×3 weight parameters), and the batch of the two-dimensional feature map of the image block processed by the convolution layer can be 128. The activation layer can be a ReLU (Rectified Linear Unit) activation layer, and the batch of the two-dimensional feature map of the image block processed by it can be 11; the batch of the two-dimensional feature map image block processed by the pooling layer can be 11; the batch of the two-dimensional feature map image block processed by the fully connected layer can be 5, and finally the two-dimensional feature map is converted into a one-dimensional 1×1 vector.
[0062] Among them, in the inference stage, after the image block composed of pixel values of different bands corresponding to a certain moment is input into the pre-trained neural network, the working process of the pre-trained neural network is summarized as follows: first, the image block is convolved through the convolution layer; then it passes through the activation layer and is activated by the ReLU module to reduce the gradient disappearance and reduce the complexity of the model; then the activated feature variables passing through the ReLU module are passed through the maximum pooling layer to further extract high-level feature information; finally, the pooled feature vector is passed through the fully connected layer to output the single-phase surface elevation value corresponding to the certain moment and the central area of the image block.
[0063] exist Figure 1 Based on the embodiment, as an optional implementation, the training step of the pre-trained neural network includes:
[0064] Step 1) Create a training dataset.
[0065] The training data set includes multiple groups of training data; each group of training data includes image blocks of a sample target area at multiple different times, and surface elevation values matching the central pixel position of the image block at the corresponding time.
[0066] The image block is used as a sample input value, and the matched surface elevation value is used as a sample true value.
[0067] As an optional example, step 1 may include the following steps:
[0068] Step 11), using an image window of a preset size, extract pixel values of different bands from a plurality of optical remote sensing images of the sample target area acquired at different times, and obtain an image block composed of pixel values of different bands.
[0069] The present disclosure does not limit the "preset size", which can be determined adaptively according to the needs, for example, it can be 11×11 pixel units. Using an image window of this size, a multispectral image block including 11×11 pixel units can be extracted.
[0070] As an optional example, refer to Figure 2 , Figure 2 The dark part, i.e., the center pixel position of the image block, can be used as a pixel matching the surface elevation value at the corresponding time to extract different bands of the optical image (e.g., Figure 2 The pixel values of band 1, band 2, band 3, ..., band n) can be used together with the corresponding surface elevation values to construct training data.
[0071] Step 12) Using a preset separation algorithm, the initial laser satellite altimetry data acquired at multiple different times about the sample target area are separated, and the laser satellite altimetry data located on the ground are extracted as the surface elevation value.
[0072] First of all, it should be noted that laser satellite data are often affected by factors such as the atmosphere and contain many abnormal values, and cannot be directly used as surface elevation values. Therefore, step 12) is required to separate the surface elevation values.
[0073] As an optional example, a local adaptive ellipse fitting filtering method can be used to classify ground points and non-ground points, and the filtering parameters can be automatically determined according to the distribution of laser height measurement points in different environments and surface coverage. Specifically, it includes:
[0074] First, the laser altimetry data is segmented vertically and fitted with a bimodal Gaussian function to complete the rough separation of ground and non-ground laser altimetry points; the non-ground laser altimetry points are used to determine the initial parameters a0 and b0 of the major and minor semi-axes of the elliptical filter. Figure 4 , which is a schematic diagram of rough separation of Gaussian bimodal model.
[0075] Specifically, the following calculation formulas (1) to (3) may be used to determine the initial parameters a0 and b0.
[0076] b0=|h max -h min | (1)
[0077]
[0078] a0=b0×r (3)
[0079] Among them, h max Indicates the maximum non-ground photon elevation; h min Indicates the minimum non-ground photon elevation; Δd indicates the horizontal division interval; ΔH other It represents the maximum elevation difference of non-ground laser altimetry points within the horizontal division; N represents the total number of horizontal divisions; a0 represents the initial parameters of the major semi-axis of the ellipse filter; b0 represents the initial parameters of the minor semi-axis of the ellipse filter; r represents the proportional coefficient.
[0080] Secondly, determine the minimum number of laser height measurement points The parameters of the elliptic filter are used for subsequent iterations. Specifically, the following calculation formulas (4) to (7) can be used to determine the minimum number of laser height measurement points:
[0081]
[0082] a=b×r (5)
[0083] b=b0+β× / h ground -h min / (6)
[0084]
[0085] Among them, l k Indicates the elevation value of the kth laser elevation point; h ground represents the surface photon elevation; represents the minimum number of photons per iteration; a represents the length of the major semi-axis of the elliptical filter; b represents the length of the minor semi-axis of the elliptical filter; β represents the scale factor; N other Indicates the total number of non-terrestrial laser height measurement points.
[0086] Finally, the elliptical filter parameters a and b are iteratively solved, and the parameters are used to detect and fit the ground and non-ground areas of the satellite laser altimetry data, respectively, so as to achieve fine separation of ground and non-ground laser altimetry data, and the obtained ground laser altimetry data is used as the surface elevation value.
[0087] Step 13), using a preset registration rule, positionally matching the image blocks with the surface elevation values to obtain the multiple sets of training data.
[0088] Wherein, in each set of the training data, the image block is used as a sample input value, and the matched surface elevation value is used as a sample true value.
[0089] As an optional example, the pixel position corresponding to the surface elevation value on the image block may be calculated based on the latitude and longitude information of the surface elevation value, the resolution of the image block and the spatial reference information, so as to achieve registration between the two.
[0090] Step 2) inputting the multiple sets of training data into the neural network to be trained to obtain a single-phase surface elevation value prediction value output by the neural network to be trained.
[0091] Step 3) Using a preset comprehensive loss function, based on the laser satellite altimetry data in each set of training data and the corresponding single-phase surface elevation value prediction value, the function value of the comprehensive loss function is obtained.
[0092] Since each set of the training data includes image blocks of the sample target area at multiple different times, and the surface elevation values that match the central pixel position of the image blocks at the corresponding time. For each image block used as input, the neural network to be trained will output a corresponding single-phase surface elevation value prediction value. Therefore, for each set of the training data, multiple sets of "single-phase surface elevation value prediction values" and corresponding laser satellite altimetry data (i.e., sample true values) will be obtained.
[0093] Furthermore, as an optional example, the preset comprehensive loss function can be expressed as: for each set of training data, the difference between the laser satellite altimetry data and the corresponding single-phase surface elevation value prediction value is summed.
[0094] Step 4) The comprehensive loss function value is fed back to the neural network to be trained.
[0095] Step 5) The neural network to be trained adjusts the network parameters of each network layer according to the function value of the comprehensive loss function.
[0096] Step 6) Iteratively execute step 3) to step 5) until a preset training completion condition is met; the pre-trained neural network is obtained from the neural network to be trained. The preset training completion condition includes that the number of iterations is greater than a preset iteration number threshold, or the function value of the comprehensive loss function is less than a preset convergence threshold.
[0097] Optionally, the training step of the pre-trained neural network may further include a verification step.
[0098] Specifically, the training data set in step 1) can be divided into a training data set and a verification data set according to a preset ratio, wherein the preset ratio can be, for example, 8:2, that is, the training data set accounts for 80% of the data volume, and the verification data set accounts for 20% of the data volume.
[0099] Furthermore, the verification data set can be used to verify the pre-trained neural network trained in the above steps 1) to 6), so that the parameters of the pre-trained neural network can be further optimized.
[0100] As described above, the above-mentioned embodiment of the present disclosure trains a lightweight neural network, using optical satellite image data and laser satellite altimetry data as training data, wherein the optical satellite image data is used as input and the corresponding laser satellite altimetry data is used as the sample truth value. The "pre-trained neural network" obtained by training the embodiment of the present disclosure is used to generate the corresponding final surface elevation value (and then generate a digital elevation model), which is a kind of ex ante generation method. Compared with the prior art method of first producing a digital elevation model by spatial forward intersection and then introducing the ex post generation method of laser altimetry constraints, this model can meet the generation of high-precision digital elevation models in different regions, different terrains, and different land uses, and has a wider range of application scenarios.
[0101] In addition, the convolutional neural network model used in the present invention is an empirical model. Compared with physical models such as spatial forward intersection, it has automatic feature extraction, nonlinear modeling capabilities and generalization capabilities, and can obtain more accurate and universal results. At the same time, the structure of this model is lightweight, and the core only includes one convolutional layer and one fully connected layer. Compared with the physical model, fewer parameters need to be confirmed and it is easier to understand, so it is more convenient to use.
[0102] exist Figure 1 Based on the example, as an optional implementation, S130 "determining the final surface elevation value corresponding to the target position by using a preset fusion algorithm based on each group of single-phase surface elevation values" can be implemented as follows:
[0103] Step I: Use each group of single-phase surface elevation values as observation values to construct an overall least squares model to be solved. Wherein, the final surface elevation value and the corresponding error value in the overall least squares model are unknown quantities. Step II: In response to obtaining the initial conditions, iteratively solve the overall least squares model to obtain the final surface elevation value of the target location.
[0104] Among them, the first thing that needs to be explained is that the reason why the "preset fusion algorithm" uses the overall least squares as the theoretical model is:
[0105] Each group of single-phase surface elevation values is fused, that is, the single-phase surface elevation values at multiple different times are fused, so it can be regarded as multiple observations of the surface elevation values at the same location. However, due to the differences in imaging conditions at each moment, coupled with the effects of ground laser point extraction and the parameter errors of the convolutional neural network model, the single-phase surface elevation values corresponding to each moment are also different, which will cause the generated digital elevation model to often contain gross errors of different precisions. Taking "the gross errors and single-phase surface elevation values as unknown parameters and using the overall least squares model for multi-phase fusion" can suppress the impact of errors to a certain extent.
[0106] Specifically, as an optional example, the step of "determining the final surface elevation value corresponding to the target position" may be performed in the following manner:
[0107] Step ①: Assume that the gross error of the single-phase surface elevation value also exists in the coefficient matrix B, which can be expressed as E B The error and the elevation value of the single-phase digital elevation model are taken as unknown parameters, and the overall least squares model is used for multi-temporal fusion. Its mathematical model is shown in the following formula (8):
[0108] H+V=(BE B )X (8)
[0109] Wherein, H represents a column vector composed of single-phase surface elevation values for the same target location at different times in order; X represents the final surface elevation value of the target location to be solved; B represents a coefficient matrix. When the number of different times is greater than or equal to 2, the above formula can be solved by overall least squares to obtain the final surface elevation value of the target location, that is, the X value.
[0110] Step 2: Consider the error E in the coefficient matrix B , and consider the weight matrix as the unit matrix, based on the calculation formula (8), the least squares criterion is transformed into the following formula (9).
[0111] V T V+vec(B) T vec(B)=min (9)
[0112] Among them, vec represents the matrix column straightening operator, and min represents finding the minimum value.
[0113] Taking the mathematical model as a constraint, the Lagrange multiplier method is used to solve the conditional extreme value of equation (9), and the normal equation is obtained as follows (10).
[0114] X=(B T B) -1 B T H+(B T B) -1 Xv (10)
[0115] Here, ∨ represents the scaling factor.
[0116] Since both sides of the above equation (10) contain unknown quantities, an iterative solution is required.
[0117] Specifically, let the initial value of the scale factor ∨ (0) =0, then X (1) =(B T B) -1 B T L. At the i-th iteration (i≥2), the solution can be obtained by iteratively using the following two equations (11) and (12).
[0118] v (i) =(BX (i) -H) T (BX (i) -H) / (1+X (i)T X (i) ) (11)
[0119] X (i+1) =(B T B) -1 B T H+(BT B) -1 X (i) v (i) (12)
[0120] Where i represents the number of iterations; when X (i) With X (i+1) When the absolute value of the difference is less than the preset threshold ε, the iteration is stopped to obtain the final surface elevation value of the target position.
[0121] The present disclosure does not limit the value of the preset threshold ε, which can be determined according to actual needs. For example, it can be 0.00001.
[0122] As described above, the method for generating a digital elevation model provided by the embodiment of the present disclosure uses a preset fusion algorithm to determine the final surface elevation value corresponding to the target position, and uses the single-phase surface elevation values at different times as input, based on the overall least squares theory, taking into account the elevation information of the single-phase surface elevation values at different times, so that the theoretical accuracy of the digital elevation model further generated is higher. In addition, the fusion algorithm also regards the sudden changes in elevation values caused by surface changes (such as seasonal changes in vegetation, changes in land object types, etc.) between different times as abnormal values, and eliminates them, so that the elevation value of the generated digital elevation model product is closer to the actual condition of the surface, reducing the calculation amount of subsequent post-processing operations such as ground point filtering.
[0123] In summary, the method for generating a digital elevation model provided by the embodiments of the present invention can generate a more accurate and realistic digital elevation model. It effectively eliminates outliers caused by surface changes through a lightweight convolutional neural network and an overall least squares model that is resistant to gross errors, and provides a simple and feasible method for generating high-precision digital elevation models.
[0124] The following is a description of an apparatus for generating a digital elevation model provided by the present disclosure. The apparatus for generating a digital elevation model described below and the method for generating a digital elevation model described above may refer to each other.
[0125] Figure 5 FIG. 1 is a schematic diagram of a device for generating a digital elevation model provided by an exemplary embodiment of the present disclosure. Figure 5 As shown, the device for generating a digital elevation model comprises:
[0126] The data acquisition module 510 is configured to: acquire optical remote sensing images of multiple target locations in a target area at different times; wherein the target area is a geographical area for which a digital elevation model needs to be generated;
[0127] The single-phase surface elevation prediction module 520 is configured as follows: for each of the target positions, the optical remote sensing images at different times corresponding to the target position are input into the pre-trained neural network in time sequence, and the single-phase surface elevation values output by the pre-trained neural network that match the optical remote sensing images at each time are obtained as a set of single-phase surface elevation values corresponding to the target position; wherein the pre-trained neural network is trained using multi-phase sample optical remote sensing images and corresponding phase sample laser satellite altimetry data.
[0128] The fusion module 530 is configured to: determine the final surface elevation value corresponding to the target location based on each group of single-phase surface elevation values using a preset fusion algorithm;
[0129] The digital elevation model generation module 540 is configured to generate a digital elevation model of the target area based on the final surface elevation values corresponding to each of the plurality of target locations.
[0130] Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6 As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute a method for generating a digital elevation model, the method comprising: obtaining optical remote sensing images of multiple target positions in a target area at different times; wherein the target area is a geographical area for which a digital elevation model needs to be generated; for each of the target positions, the optical remote sensing images at different times corresponding to the target position are respectively input into a pre-trained neural network in a time sequence, and a single-phase surface elevation value output by the pre-trained neural network matching the optical remote sensing image at each time is obtained as a set of single-phase surface elevation values corresponding to the target position; wherein the pre-trained neural network is trained using multi-phase sample optical remote sensing images and corresponding phase sample laser satellite altimetry data. Based on each group of single-phase surface elevation values, a final surface elevation value corresponding to the target position is determined using a preset fusion algorithm; based on the final surface elevation values corresponding to each of the multiple target positions, a digital elevation model of the target area is generated.
[0131] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present disclosure is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0132] On the other hand, the present disclosure also provides a computer program product, the computer program product includes a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by the processor, the computer can execute the method for generating a digital elevation model provided by the above methods, the method comprising: obtaining optical remote sensing images of multiple target positions in a target area at different times; wherein the target area is a geographical area for which a digital elevation model needs to be generated; for each of the target positions, the optical remote sensing images corresponding to the target position at different times are respectively input into a pre-trained neural network in a time sequence, and the single-phase surface elevation value output by the pre-trained neural network matching the optical remote sensing image at each time is obtained as a set of single-phase surface elevation values corresponding to the target position; wherein the pre-trained neural network is trained using multi-phase sample optical remote sensing images and corresponding phase sample laser satellite altimetry data. Based on each set of single-phase surface elevation values, a final surface elevation value corresponding to the target position is determined using a preset fusion algorithm; based on the final surface elevation values corresponding to each of the multiple target positions, a digital elevation model for the target area is generated.
[0133] On the other hand, the present disclosure also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it is implemented to execute the method for generating a digital elevation model provided by the above methods, the method comprising: obtaining optical remote sensing images of multiple target positions in a target area at different times; wherein the target area is a geographical area for which a digital elevation model needs to be generated; for each of the target positions, the optical remote sensing images corresponding to the target position at different times are respectively input into a pre-trained neural network in a time sequence, and the single-phase surface elevation value output by the pre-trained neural network that matches the optical remote sensing image at each time is obtained as a group of single-phase surface elevation values corresponding to the target position; wherein the pre-trained neural network is trained using multi-phase sample optical remote sensing images and corresponding phase sample laser satellite altimetry data. Based on each group of single-phase surface elevation values, a final surface elevation value corresponding to the target position is determined using a preset fusion algorithm; based on the final surface elevation values corresponding to each of the multiple target positions, a digital elevation model for the target area is generated.
[0134] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, 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. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0135] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0136] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present disclosure.
Claims
1. A method for generating a digital elevation model, comprising: Acquire optical remote sensing images of multiple target locations in a target area at different times; wherein the target area is a geographical area for which a digital elevation model needs to be generated; For each target position, the optical remote sensing images at different times corresponding to the target position are respectively input into the pre-trained neural network in time sequence, and the single-phase surface elevation values output by the pre-trained neural network that match the optical remote sensing images at each time are obtained as a set of single-phase surface elevation values corresponding to the target position; wherein the pre-trained neural network is trained by using multi-phase sample optical remote sensing images and corresponding phase sample laser satellite altimetry data; Based on each group of single-phase surface elevation values, a final surface elevation value corresponding to the target position is determined using a preset fusion algorithm; A digital elevation model of the target area is generated based on the final surface elevation values corresponding to each of the plurality of target locations.
2. The method according to claim 1, characterized in that The optical remote sensing images corresponding to the target location at different times are input into the pre-trained neural network in time sequence, including: Using an image window of a preset size, extracting pixel values of different bands from the optical remote sensing images at different times, to obtain image blocks composed of pixel values of different bands; The image blocks are respectively input into the pre-trained neural network in time sequence.
3. The method according to claim 1, characterized in that The pre-trained neural network includes an input layer, a 3×3 convolution layer, an activation layer, a 2×2 maximum pooling layer and a fully connected layer which are connected in cascade sequence.
4. The method according to claim 1, characterized in that: The training steps of the pre-trained neural network include: Step 1) Create a training data set; The training data set includes multiple sets of training data; each set of training data includes image blocks at multiple different times of a sample target area, and surface elevation values matching the central pixel position of the image block at the corresponding time; the image block is used as a sample input value, and the matching surface elevation value is used as a sample true value; Step 2) inputting the plurality of sets of training data into the neural network to be trained, and obtaining a single-phase surface elevation value prediction value output by the neural network to be trained; Step 3) using a preset comprehensive loss function, based on the laser satellite altimetry data in each set of training data and the corresponding single-phase surface elevation value prediction value, obtaining the function value of the comprehensive loss function; Step 4) transmitting the comprehensive loss function value back to the neural network to be trained; Step 5) the neural network to be trained adjusts the network parameters of each network layer according to the function value of the comprehensive loss function; Step 6) iteratively executes step 3) to step 5) until a preset training completion condition is met, and the pre-trained neural network is obtained from the neural network to be trained; wherein the preset training completion condition includes that the number of iterations is greater than a preset iteration number threshold, or the function value of the comprehensive loss function is less than a preset convergence threshold.
5. The method according to claim 4, characterized in that The creating of the training data set comprises: Using an image window of a preset size, pixel values of different bands are extracted from optical remote sensing images of the sample target area acquired at multiple different times, so as to obtain image blocks composed of pixel values of different bands; Using a preset separation algorithm, the initial laser satellite altimetry data acquired at multiple different times about the sample target area are separated, and the laser satellite altimetry data located on the ground are extracted as the surface elevation value; The image blocks are positionally matched with the surface elevation values by using preset registration rules to obtain the multiple sets of training data; wherein, in each set of the training data, the image blocks are used as sample input values, and the matched surface elevation values are used as sample true values.
6. The method according to claim 1, characterized in that Based on each group of single-phase surface elevation values, a final surface elevation value corresponding to the target position is determined using a preset fusion algorithm, including: Using each group of single-phase surface elevation values as observation values, an overall least squares model to be solved is constructed; wherein the final surface elevation value and the corresponding error value in the overall least squares model are unknown quantities; In response to obtaining the initial conditions, the overall least squares model is iteratively solved to obtain a final surface elevation value of the target location.
7. A device for generating a digital elevation model, comprising: The data acquisition module is configured to: acquire optical remote sensing images of multiple target locations in a target area at different times; wherein the target area is a geographical area for which a digital elevation model needs to be generated; The single-phase surface elevation prediction module is configured as follows: for each target location, the optical remote sensing images at different times corresponding to the target location are respectively input into the pre-trained neural network in time sequence, and the single-phase surface elevation values output by the pre-trained neural network that match the optical remote sensing images at each time are obtained as a set of single-phase surface elevation values corresponding to the target location; wherein the pre-trained neural network is trained by using multi-phase sample optical remote sensing images and corresponding phase sample laser satellite altimetry data; The fusion module is configured to: determine the final surface elevation value corresponding to the target position based on each group of single-phase surface elevation values using a preset fusion algorithm; The digital elevation model generation module is configured to generate a digital elevation model of the target area based on the final surface elevation values corresponding to each of the plurality of target locations.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method for generating a digital elevation model according to any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for generating a digital elevation model according to any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for generating a digital elevation model according to any one of claims 1 to 6 is implemented.
Citation Information
Cited By
Light-weight pulse neural network single-photon radar rear-end signal processing method
CN119395661A
