A DEM data synthesis method based on graph attention network
By combining domain knowledge and data-driven learning in the graph convolutional neural network, and using the graph attention network to process DEM data, it solves the gap in three-dimensional data mapping synthesis, realizes automatic learning of terrain features and topological structures, and generates multi-scale mapping results. Get rid of the manual limitations of traditional methods.
Patent Information
- Application Number
- CN202311359807.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-19
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2043-10-19
AI Technical Summary
Existing technologies have limitations in processing complex terrain and large-scale DEM data, especially the lack of effective methods in cartographic synthesis of three-dimensional data. Graph convolutional neural networks are mainly used in two-dimensional space and fail to fully utilize the characteristics of three-dimensional data. .
Combining domain knowledge and data-driven learning, the graph convolutional neural network based on the graph attention network is used to learn the terrain features and spatial relationships of the DEM data by constructing a graph convolutional neural network based on the TIN structure, and the GAT network is used to retain nodes. and discarding to achieve multi-scale cartographic synthesis of DEM data.
It realizes automatic learning of terrain features and topological structures, generates multi-scale DEM mapping comprehensive results, fills the gap in comprehensive research on three-dimensional data mapping, and gets rid of the manual limitations of traditional methods, which has important theoretical and practical significance.
Smart Images

Figure CN117671165B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of cartographic generalization, and in particular to a method for cartographic generalization of DEM data. Background Art
[0002] Digital Elevation Model (DEM) is mainly used to describe the altitude information of each point on the surface of the earth or the earth, reflecting the terrain undulation in the real world. In order to meet the different resolution requirements of users in different fields for DEM data, it is necessary to carry out multi-scale cartographic synthesis of DEM data. There are currently many algorithms for cartographic synthesis of DEM data. Weibel (1992) classified the existing algorithms into global filtering, selective filtering and heuristic algorithms. Chen and Li (2013) divided the existing algorithms into six categories: regular grid, feature point, point addition, point subtraction, 3D Douglas-Peucker algorithm and composite method. However, these methods have certain limitations when dealing with complex terrain and large-scale data.
[0003] In recent years, with the development of deep learning technology, graph convolutional neural networks have attracted widespread attention as a powerful nonlinear model. In the field of map synthesis, this technology has been applied to point feature selection, line feature simplification, building shape structure and pattern classification, and has promoted map synthesis from the era of algorithm-based to the era of combining domain knowledge and data-driven knowledge. However, the current application of graph convolutional neural networks in the field of map synthesis is currently mainly limited to specific geographic entities in two-dimensional space, such as points, lines and surface elements. This leads to a large gap in the research on cartographic synthesis of three-dimensional data, such as specific geographic spatial units. As one of the data structures in DEM data, triangulated irregular network (TIN) can be used to synthesize DEM data by synthesizing TIN nodes. Therefore, the present invention combines domain knowledge and data-driven learning, and uses graph convolutional neural networks to carry out a series of experiments on DEM data cartographic synthesis. Summary of the invention
[0004] In view of this, the present invention combines domain knowledge and data-driven learning, uses graph convolutional neural networks to perform cartographic synthesis of DEM data, and conducts a series of experiments. This study fills the research gap of using graph convolutional neural networks for cartographic synthesis of three-dimensional data, and has important theoretical and practical significance.
[0005] To achieve the above purpose, the present invention adopts a technical solution: a DEM data synthesis method based on a graph attention network, characterized in that the specific steps are as follows:
[0006] Step S1: According to the triangulated irregular network (TIN) structure in the DEM data, the vertices of TIN are used as nodes of the graph structure, and the edges of TIN are used as adjacent edges between nodes to construct a graph convolutional neural network based on the graph attention mechanism.
[0007] Step S2: Construct the feature matrix of each graph node. Initialize the feature vector for each node, which mainly includes the geometric features, statistical attributes and spatial relationship features of the TIN vertex.
[0008] Step S3: Construct the attention weights of adjacent edges, including the geometric features and spatial relationship features of adjacent edges.
[0009] Step S4: Obtain the label value of each graph node. Use the three-dimensional Douglas Poker (3D DP) algorithm to integrate the TIN vertices, set the label 1 for the nodes that remain after cartographic integration, and set the label 0 for the discarded nodes.
[0010] Step S5: Introduce the GAT network to learn the retention and discard of nodes.
[0011] Step S6: Based on the classification results of the nodes, the nodes are replayed into the TIN data to realize the cartographic synthesis of the DEM data, and the synthesis results are evaluated.
[0012] Furthermore, the specific steps of step S1 are as follows:
[0013] Step S11: Obtain the nodes of the graph structure. Open the 3D Analyst extension in ArcGIS, and use the 3D Analyst Tools->Conversion->From TIN->TIN Node tool in the toolbox to obtain the vertices of the TIN data as the nodes of the graph structure.
[0014] Step S12: Obtain the edges of the graph structure. Use the 3D Analyst Tools->Conversion->From TIN->TIN Edge tool in the toolbox to obtain the edges of the TIN data as the adjacent edges of the graph structure.
[0015] Furthermore, the specific steps of step S2 are as follows:
[0016] Step S21: Obtain the location attributes (X, Y, Z coordinates) of the point and the elevation curvature of the terrain where it is located as geometric features in ArcGIS.
[0017] Step S22: Obtain the maximum, minimum, total value and standard deviation of the elevation difference and slope between the point and its surrounding neighboring points as statistical attributes.
[0018] Step S23: Obtain the number of neighbor nodes around the point, the nearest neighbor distance, the farthest distance and the total distance as spatial relationship indicators.
[0019] Furthermore, the specific steps of step S3 are as follows:
[0020] Step S31: Obtain the three-dimensional length, elevation difference and slope value of the edge as geometric attributes.
[0021] Step S32: Obtain the direction of the adjacent edges of the TIN as a spatial relationship feature, which is defined here by eight quadrants in the space.
[0022] Furthermore, the specific steps of step S4 are as follows:
[0023] Step S41: Find an origin and a first base plane (first base plane) in the three-dimensional discrete points. When each original point has been tried as the origin O, and two points A and B are selected from the remaining point set each time, and the absolute value of the maximum vector product OA×OB can be obtained, points O, A, and B are determined, and the plane passing through these three points is the first base plane of the 3D DP algorithm.
[0024] Step S42: Order the unordered point set. Set point O as P0, point A as P1, and point B as P n Stored in the point column. Sort the remaining point set according to the 3D distance from point A, in order of P2, P3, ..., P n-1 .
[0025] Step S43: Select the remaining points after cartographic synthesis. In the ordered point set, calculate P2, P3, ..., P n-1 The distance to the first base surface. If this distance is less than the initial threshold, all points are deleted; otherwise, the point with the largest point-to-surface distance is taken as the split point C, denoted by P i . Using the divide-and-conquer method, calculate the distances from the remaining points to the base surface OAC again, recursively select a split point until no new split point can be selected; then calculate the distances from the remaining points to the base surface OBC, and recursively select all split points in the same way until no new split point can be selected. The remaining points are the points after cartographic generalization, and the labels of these points are set to 1, that is, they are retained, and the rest of the points are 0, that is, they are discarded.
[0026] Furthermore, the specific steps of step S5 are as follows:
[0027] Step S51: Forward propagation. Input the feature dimensions of the graph nodes, the attention weights of the edges, the input feature dimensions and the number of attention heads (multi-head attention mechanism) and other parameters, initialize the GAT network, and apply the network layer to the node features for forward propagation.
[0028] Step S52: Attention mechanism calculation. The network layer automatically calculates the attention mechanism, calculates the attention score for each node and its neighboring nodes, and performs a weighted summation of the attention score and the features of the neighboring nodes to obtain the context features of each node.
[0029] Step S53: Node feature aggregation: The network layer performs weighted aggregation on the features of neighbor nodes based on the calculated attention scores to obtain a feature representation of each node that integrates neighbor information.
[0030] Step S54: Add a nonlinear activation function ReLU and a regularized Dropout parameter to perform nonlinear mapping and improve the generalization ability of the model.
[0031] Step S55: Add a log_softmax layer after the network layer as the output layer. Output the classification category probabilities of all nodes in the graph structure, which are 0 and 1. 0 means discard and 1 means keep. Select the category with the highest probability for each node as the prediction result.
[0032] Step S56: During the training of the graph convolutional neural network, the negative log-likelihood loss function is used to calculate the loss between the predicted value and the true label. The optimal weight parameter is obtained by minimizing the loss function, and the Adam optimizer is used to improve the optimization efficiency.
[0033] Step S57: Repeat steps S52-S56, continuously iteratively calculating the attention coefficient and feature aggregation until the network converges to obtain the final representation of each node.
[0034] Furthermore, the specific steps of step S6 are as follows:
[0035] Step S61: According to the classification results of the graph attention network, all point data with predicted label l are replayed into the TIN data structure.
[0036] Step S62: Qualitatively evaluate the prediction results of the graph convolutional neural network and the results of the three-dimensional DP algorithm at the visualization level.
[0037] Step S63: Quantitatively evaluate the prediction results according to precision, accuracy, recall and F1 index.
[0038] Compared with the existing DEM mapping synthesis technology, the present invention has the following beneficial effects:
[0039] 1. The present invention combines domain knowledge and data-driven learning by learning the terrain features, spatial relationships, topological structures and other information of DEM data in a neural network. Domain knowledge provides an in-depth understanding of the terrain, while data-driven learning can capture patterns and regularities of data from a large amount of data. Combining these two methods, the neural network can automatically extract rich detail features from DEM data, and then fuse this information to generate a comprehensive mapping result of DEM data at multiple scales.
[0040] 2. This invention fills the research gap in the use of graph convolutional neural networks for three-dimensional data mapping and generalization, gets rid of the artificial limitations of traditional DEM mapping and generalization methods, and realizes the automatic learning of terrain features, which has important theoretical and practical significance. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 is a flow chart of the steps of the present invention;
[0042] Figure 2 An example diagram of a training set and a test set in an embodiment of the present invention; DETAILED DESCRIPTION
[0043] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0044] In the above-mentioned DEM data synthesis method based on graph attention network, step S1 first divides the study area into a training set and a test set, obtains TIN data within the study area, takes the vertices of TIN as nodes of the graph structure, and takes the edges of TIN as adjacent edges between nodes to construct a graph convolutional neural network based on graph attention mechanism. The specific steps are as follows:
[0045] Step S11: Get the nodes of the graph structure. Open the 3D Analyst extension in ArcGIS, and use the 3D Analyst Tools->Conversion->From TIN->TIN Node tool in the toolbox to get the vertices of the TIN data as the nodes of the graph structure. Figure 2 As shown, the experimental data of this example is located in Mianyang City, Sichuan Province ( Figure 2 b), where the training set is the TIN node data of Pingwu County, Mianyang City (59,229 nodes), and the test set is the TIN node data of Beichuan Wu Autonomous Prefecture, Mianyang City (31,866 nodes).
[0046] Step S12: Obtain the edges of the graph structure. Use the 3D Analyst Tools->Conversion->From TIN->TIN Edge tool in the toolbox to obtain the edges of the TIN data as the adjacent edges of the graph structure.
[0047] In the above-mentioned DEM data synthesis method based on graph attention network, the step S2 constructs the feature matrix of each graph node. The feature vector is initialized for each node, mainly including the geometric features, statistical attributes and spatial relationship features of the TiN vertex. The specific steps are as follows:
[0048] Step S21: Get the position attributes (X, Y, Z coordinates) and elevation curvature of the TiN node. First, use the position attributes in the TIN data structure to reflect the specific spatial position of the point attribute. The elevation curvature can reflect the undulation and steepness of the terrain. In order to obtain the elevation curvature, the TIN data needs to be converted into raster data, which can be achieved by using the "TIN to Raster" tool under the "Conversion" function in 3D Analyst Tools. Once the conversion is completed, the "Curvature" function in the Raster Surface tool can be used to calculate the elevation curvature of the raster data. Finally, the raster data and the three-dimensional point data are superimposed to obtain the elevation curvature of the three-dimensional point data.
[0049] Step S22: Get the maximum, minimum, total and standard deviation of the elevation difference and slope between the point and its neighboring points as statistical attributes. These attributes can be statistically analyzed using the summarize tool in the attribute table adjacent edge ID, where the slope is calculated as follows:
[0050]
[0051] In the formula, Z A and Z B They represent the elevations of point A and point B respectively, and Δd represents the horizontal distance between the two points. The specific calculation formula is as follows:
[0052] Δd=R*arccos((1-(sin(lat A )*sin(lat B )*cos(lon A -lon B )+cos(lat A )*cos(lat B ))))
[0053] Where Δd is the horizontal distance between points A and B in meters; lat A ,lon A and lat B ,lon B are the latitude and longitude of point A and point B, expressed in radians; R is the radius of the earth, which is 6371004.
[0054] Step S23: Get the number of neighbor nodes around the point, the nearest neighbor distance, the farthest distance, and the total distance as spatial relationship indicators. Similar to step S22, these attributes can be counted through the summarize tool in the attribute table adjacent edge ID, where the distance here refers to the actual three-dimensional distance, and the calculation formula is as follows:
[0055]
[0056] Where D actual is the actual three-dimensional distance in meters; Δd is the horizontal distance between points A and B calculated in step S22; Z A and Z B Represent the elevations of point A and point B respectively.
[0057] In the above-mentioned DEM data synthesis method based on graph attention network, the step S3 constructs the attention weight of the adjacent edges, including the geometric features and spatial relationship features of the adjacent edges. The specific steps are as follows:
[0058] Step S31: Obtain the three-dimensional length, elevation difference and slope value of the edge as geometric attributes. actual It represents the actual three-dimensional distance between the two adjacent points on each edge, reflecting the proximity between the points. A -Z B The slope is the elevation difference between two points in the undirected graph, which reflects the degree of change in the terrain. The slope is the elevation difference between two points divided by the horizontal distance between them, which reflects the steepness of the terrain between the two points. The calculation formulas of these attributes are shown in step S22.
[0059] Step S32: Get the direction of the adjacent edge of the TIN as the spatial relationship feature, which is defined in eight quadrants in space. Each quadrant represents a different direction. Assuming that the edge belongs to the positive direction of the x, y, and z axes, the direction is represented by an attribute vector, which is 1 only in the corresponding direction and 0 in other directions. In this case, the direction attribute can be represented as [1, 0, 0, 0, 0, 0, 0].
[0060] In the above-mentioned DEM data integration method based on graph attention network, step S4 obtains the label value of each graph node. The TIN vertices are integrated using the 3DD-P algorithm, and the nodes that are still retained after cartographic integration are set to label 1, and the discarded nodes are set to label 0. The specific steps are as follows:
[0061] Step S41: Find an origin and a first base plane (first base plane) in the three-dimensional discrete points. When each original point has been tried as the origin O, and two points A and B are selected from the remaining point set each time, and the absolute value of the maximum vector product OA×OB can be obtained, points O, A, and B are determined, and the plane passing through these three points is the first base plane of the 3D DP algorithm.
[0062] Step S42: Order the unordered point set. Set point O as P0, point A as P1, and point B as P n Store it in the point list. In the remaining point set of the original point, find and take out the point with the closest three-dimensional distance to point A as the P2 insertion point list. In the remaining point set, continue to find and take out the point with the closest three-dimensional distance to point P2 as the P3 insertion point list, until the last point is taken out as P n-1 Insert in P n Before.
[0063] Step S43: Select the remaining points after cartographic synthesis. In the ordered point set, calculate P2, P3, ..., P n-1 The distance from the remaining points to the base surface OAC is calculated again. The principle of recursively selecting a splitting point is as described above until no new splitting point can be selected. Then calculate P respectively. i+1 , P i+2 ,…,P n-1 The distance to the base surface OBC, recursively select all split points in the same way until no new split points can be selected. The remaining points are the points after cartographic generalization, and the labels of these points are set to 1, that is, they are retained, and the rest of the points are set to 0, that is, they are discarded.
[0064] In the above-mentioned DEM data integration method based on graph attention network, the step S5 introduces the GAT network to learn the retention and discard of nodes. The specific steps are as follows:
[0065] Step S51: Forward propagation. Input the feature dimensions of the graph nodes, the attention weights of the edges, the input feature dimensions and the number of attention heads (multi-head attention mechanism) and other parameters to initialize the GAT network, including the number of network layers and the parameters of each network layer. Apply the network layer to the node features for forward propagation.
[0066] Step S52: Attention mechanism calculation. For each node and its neighboring nodes, calculate the attention score. Assuming there is a node i and its neighboring node j, the attention score can be calculated using the following mathematical formula:
[0067] α ij=softmax(LeakyReLU(ω T [Wh i ||Wh j ])) (3)
[0068] Among them, α ij represents the attention coefficient, || represents the connection operation, W is the weight matrix, h i and h j are the feature representations of node i and its neighbor node j respectively. Through the transformation of weight matrix W, Wh i represents the result of linear transformation of the feature of node i in the GAT layer, Wh j represents the result of linear transformation of the feature of node j in the GAT layer, ω T is the learned attention weight. LeakyReLU is an activation function. For a multi-head attention mechanism with multiple heads, different attention weights can be used in each head. Finally, the attention scores of all heads are concatenated or averaged to obtain the attention feature of node i.
[0069] Step S53: Node feature aggregation. Use the attention coefficient to perform weighted aggregation on the features of neighboring nodes. Perform weighted summation of the attention score and the features of neighboring nodes to obtain the contextual features of each node i. The calculation formula is as follows:
[0070] c i =σ(∑ j α ij *[Wh i ||Wh j ]) (4)
[0071] Among them, c i represents the updated representation of node i, δ is the activation function, α ij is the attention coefficient calculated in step S52, Wh i ||Wh j Represents the concatenation of the feature representation of node i and the feature representation of node j.
[0072] Step S54: Add nonlinear activation function ReLU and regularized Dropout parameters. In order to introduce nonlinear mapping and improve the generalization ability of the model, after the node features are aggregated, the context features of the nodes are input into the ReLU activation function for nonlinear mapping. In addition, during the training process of the model, the Dropout regularization technique can be applied to randomly set a certain proportion of node features to 0 to reduce the risk of overfitting.
[0073] Step S55: After the network layer, add a log_softmax layer as the output layer. Input the contextual features of each node into the log_softmax layer to calculate the probability of each node belonging to different categories. In this case, two categories are set: discard (label 0) and keep (label 1). For each node, select the category with the highest probability as the prediction result.
[0074] Step S56: During the training of the graph convolutional neural network, the negative log-likelihood loss function is used to calculate the loss between the predicted value and the true label. The optimal weight parameter is obtained by minimizing the loss function, and the Adam optimizer is used to improve the optimization efficiency.
[0075] Step S57: Repeat steps S52 to S56, iteratively calculate attention scores and perform feature aggregation until the network converges. Each iteration updates the representation of node features until the final representation of each node is obtained.
[0076] In the above-mentioned DEM data synthesis method based on graph attention network, the step S6 is based on the classification result of the node, and plays it back into the TIN data, so as to realize the cartographic synthesis of DEM data. And the synthesis result is evaluated. The specific steps are as follows:
[0077] Step S61: According to the classification results of the graph attention network, select all point data with a predicted label of 1, and use the 3DAnalyst Tools->Data Management->TIN->Create TIN tool to replay them into the TIN data structure.
[0078] Step S62: Qualitatively evaluate the prediction results of the graph convolutional neural network and the results of the three-dimensional DP algorithm at the visualization level.
[0079] Step S63: According to the accuracy, precision, recall and F1 index score Quantitatively evaluate the prediction results. The calculation formulas of these indicators are as follows:
[0080]
[0081]
[0082]
[0083]
[0084] Among them, TP refers to the number of samples that are actually positive (1) and predicted to be positive (1); FN refers to the number of samples that are actually positive (1) but predicted to be negative (0); FP refers to the number of samples that are actually negative (0) but predicted to be positive (1); TN refers to the number of samples that are actually negative and predicted to be negative. Therefore, accuracy refers to the percentage of correctly classified samples in all experimental results to the total number of nodes; precision refers to the percentage of actual positive (1) samples among all samples predicted to be positive (1); recall refers to how many of the actual positive (1) samples are predicted to be positive (1); and the F1 index is an indicator that comprehensively considers accuracy and recall. Generally speaking, the larger the accuracy, the higher the experimental accuracy.
[0085] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any changes and modifications made to the above embodiment based on the technical essence of the present invention are within the scope of the present invention.
Claims
1. A digital elevation model synthesis method based on graph attention network, It is characterized in that The specific steps are as follows: Step S1: According to the irregular triangulated network TIN structure in the digital elevation model DEM data, the vertices of TIN are used as nodes of the graph structure, and the edges of TIN are used as adjacent edges between nodes to construct a graph convolutional neural network based on the graph attention mechanism; Step S2: construct a feature matrix for each node and initialize a feature vector for each node, including geometric features, statistical attributes and spatial relationship features of TIN vertices; The step S2 constructs a feature matrix for each node from three aspects: node geometry, statistical attributes, and spatial relationship features, which includes 16 features in total. The specific steps are as follows: Step S21: obtaining the location attribute of the node and the elevation curvature of the terrain where the node is located as geometric features; Step S22: obtaining the maximum value, minimum value, total value and standard deviation of the elevation difference and slope between the node and its surrounding neighboring nodes as statistical attributes; Step S23: Obtain the number of neighbor nodes around the node, the nearest neighbor distance, the farthest distance and the total distance as spatial relationship indicators; Step S3: construct the attention weights of adjacent edges, including the geometric features and spatial relationship features of adjacent edges; The step S3 constructs the attention weight of the adjacent edge from the two aspects of geometric features and spatial relationship features, which includes 11 features in total. The specific steps are as follows: Step S31: Obtain the three-dimensional length, elevation difference and slope value of the edge as geometric attributes; Step S32: obtaining the direction of the adjacent edge of the TIN as a spatial relationship feature, which is defined here by eight quadrants in the space; Step S4: Obtain the label value of each node: Use the 3D Douglas Poker 3D DP algorithm to integrate the TIN vertices, set the nodes that are still retained after cartographic integration to label 1, and set the discarded nodes to label 0; Step S41: Find an origin and a first base plane in the three-dimensional discrete points: When each original point has been tried as the origin O, and two points A and B are selected from the remaining node set each time, and the absolute value of the maximum vector product OA×OB can be finally obtained, the nodes O, A, and B are determined, and the plane passing through these three points is the first base plane of the 3D DP algorithm; Step S42: Order the unordered point set: Take node O as P 0 , node A is P 1 , node B is P n Store them in the point column, and sort the remaining point sets according to the three-dimensional distance from node A, in order of P 2 , P 3 ,…,P n-1 ; Step S43: Select the remaining nodes after cartographic generalization: Calculate P 2 , P 3 ,…,P n-1 The distance to the first base surface. If this distance is less than the initial threshold, all points are deleted; otherwise, the point with the largest point-to-surface distance is taken as the split point C, denoted by P i ; Use the divide and conquer method to calculate the distance from the remaining points to the base surface OAC again, recursively select a split point until no new split point can be selected; then calculate the distance from the remaining points to the base surface OBC respectively, and recursively select all split points in the same way until no new split point can be selected. The remaining points are the points after cartographic generalization. Set the labels of these nodes to 1, that is, keep them, and the labels of the remaining nodes to 0, that is, discard them; Step S5: Introduce the GAT network to learn the retention and discard of nodes; The specific steps of step S5 are as follows: Step S51: forward propagation: Input the feature dimension of the node, the attention weight of the edge and the number of attention heads, initialize the GAT network, and perform forward propagation; Step S52: Attention mechanism calculation: The network layer automatically calculates the attention mechanism, calculates the attention score for each node and its neighboring nodes, and performs a weighted summation of the attention score and the features of the neighboring nodes to obtain the contextual features of each node; Step S53: Node feature aggregation: The network layer performs weighted aggregation on the features of neighbor nodes based on the calculated attention scores to obtain a feature representation of each node that integrates neighbor information. Step S54: adding a nonlinear activation function ReLU and a regularized Dropout parameter to perform nonlinear mapping and improve the generalization ability of the model; Step S55: add a log_softmax layer after the network layer as the output layer, and output the classification category probabilities of all nodes in the graph structure, which are 0 and 1. 0 means discarding, and 1 means keeping. For each node, the category with the highest probability is selected as the prediction result; Step S56: During the training of the graph convolutional neural network, the negative log-likelihood loss function is used to calculate the loss between the predicted value and the true label, and the optimal weight parameter is obtained by minimizing the loss function. At the same time, the Adam optimizer is used to improve the optimization efficiency. Step S57: Repeat steps S52-S56, and continuously iterate and calculate the attention score and feature aggregation until the network converges to obtain the final representation of each node; Step S6: Based on the classification results of the nodes, the nodes are replayed into the TIN data to realize the cartographic synthesis of the DEM data, and the synthesis results are evaluated.
2. According to claim 1, a digital elevation model synthesis method based on graph attention network, It is characterized in that The specific steps of step S6 are as follows: Step S61: according to the classification result of the graph attention network, replay all node data with the predicted label of 1 into the TIN data structure; Step S62: qualitatively evaluating the prediction results of the graph convolutional neural network and the results of the 3D DP algorithm at the visualization level; Step S63: Quantitatively evaluate the prediction results according to precision, accuracy, recall and F1 index.
