A multi-scale road network similarity calculation method supported by graph convolutional autoencoder

Through the graph convolutional neural network autoencoder model, combined with the global, local and topological characteristics of the road network, it solves the problem of lack of deep feature extraction in the road network similarity calculation in the existing technology, and achieves more accurate similarity calculation results. .

CN117351239BActive Publication Date: 2024-09-06LANZHOU JIAOTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311315929.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-11
Publication Date
2024-09-06
Estimated Expiration
2043-10-11

AI Technical Summary

Technical Problem

The existing technology lacks a comprehensive and comprehensive feature measurement method in road network similarity calculation, and the weight setting between factors in the multi-factor integration method is too subjective and fails to effectively capture the deep characteristics of the road network.

Method used

An autoencoder model based on graph convolutional neural network is used to obtain the deep coding of the road network through unsupervised training. The similarity of the road network is calculated using cosine similarity, and feature extraction is performed based on the global, local and topological features of the road network. and similarity calculation.

Benefits of technology

It achieves road network similarity calculation results that are more in line with human cognition, avoids the subjectivity of weight setting, and can effectively handle the similarity calculation of multi-scale road networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117351239B
    Figure CN117351239B
Patent Text Reader

Abstract

The present invention discloses a method for calculating the similarity of a road network based on a graph convolutional autoencoder, comprising: (1) firstly constructing a dual graph of a road network, and based on the principle of the relationship between the whole and the parts of the structure, assigning the spatial feature information of the road network to the nodes of the dual graph from the three aspects of global, local and connection characteristics, and obtaining a quantitative expression of the structure of the road network graph; (2) secondly, using a graph convolutional autoencoder to aggregate and update the node feature information and structural information of the road network graph, forming a deep cognition of the road network, and obtaining a coded expression of the road network node information; (3) finally, using an average pooling operation to map a complex high-dimensional feature space to an easily measurable low-dimensional feature space to obtain a set of feature vectors, and using cosine similarity to calculate their similarity. The similarity calculated by the method of the present invention has high sensitivity, maintains a high consistency with the actual road change situation, and is more in line with human cognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of geometry, graphics, cartography, computer-aided design and manufacturing, and map synthesis, and more specifically to a spatial similarity measurement method that takes into account the global, local, and connection characteristics of a road network and is used in multi-scale road network similarity calculation. Background Art

[0002] As a subset of spatial relations, spatial similarity relations have very important applications in the fields of spatial data matching, multi-scale expression and evaluation of spatial data, spatial query and search, and comprehensive map quality evaluation. Spatial similarity judgment is closely related to human cognition. Quantitative expression of similarity relations can not only promote geographic spatial cognition and improve spatial relationship theory, but also provide theoretical and technical support for automatic map synthesis. Road network is a very important geographical element in the map and one of the most frequently changing geographical elements. The study of its similarity relations is an important part of similarity relation theory. If a value in the interval [0,1] is used to represent the similarity between two targets, the larger the value, the more similar the two targets are.

[0003] Existing methods have taken into account the geometric, topological, distributional and partial semantic features of line groups in different aspects during similarity calculation, but a comprehensive and all-encompassing feature measurement method has not yet been formed. Specifically, existing methods calculate similarity based on artificially defined rules, and spatial features are not sufficiently taken into account; although the multi-factor integration method has achieved relatively satisfactory results, the weight setting between factors is too subjective.

[0004] Deep learning can capture high-level features through back propagation. Graph convolutional neural network is a convolutional neural network for graph structured data, which inherits the advantages of convolutional neural network in feature extraction. The present invention combines the advantages of graph convolutional neural network in feature extraction and the characteristics of autoencoder model that can reconstruct the original input graph, and constructs a road network similarity calculation model based on graph convolutional autoencoder network, and obtains similarity calculation results that are more in line with human cognition. Summary of the invention

[0005] The present invention provides a multi-scale road network similarity calculation method based on graph convolutional autoencoder. By leveraging the advantages of graph convolutional neural networks in feature extraction and the characteristic that the autoencoder model can minimize the difference between input and output, end-to-end training is performed in an unsupervised manner to obtain deep-level coding cognition of the road network. Finally, the cosine similarity is used to calculate the similarity between two road networks.

[0006] In order to achieve the above object, the present invention adopts the following technical solutions:

[0007] The calculation process is as followsFigure 1 As shown. The algorithm process can be divided into the following three steps:

[0008] 1) Construction of road network graph structure. The entire road network is broken at the intersection, and the dual graph of the road network is established by converting intersections to edges and edges to nodes.

[0009] 2) Graph node feature extraction: Design and select the characteristic description parameters of the road, extract the description features of the road section as the attribute features of the graph node.

[0010] 3) Graph convolutional autoencoder model construction: A graph convolutional autoencoder model is built based on a graph convolutional neural network, and the model is trained in an unsupervised manner to minimize the difference between input and output.

[0011] 4) Road network similarity calculation. Construct validation set data to verify the graph convolutional autoencoder model trained in the previous step. The output of the model is a node-level embedding vector, which is first converted into a graph-level embedding vector, and then the cosine similarity is used to calculate the similarity. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in 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 only schematic diagrams of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0013] Figure 1 A flowchart of road network similarity calculation based on graph convolutional autoencoder provided by the present invention;

[0014] Figure 2 A road network graph structure construction diagram provided by the present invention;

[0015] Figure 3 A schematic diagram of extracting the global structural features of a road network provided by the present invention;

[0016] Figure 4 A schematic diagram of calculating the long side direction of the minimum circumscribed rectangle provided by the present invention;

[0017] Figure 5 A schematic diagram of calculating the directional mean provided by the present invention;

[0018] Figure 6 The road network similarity calculation model based on graph convolutional autoencoder provided by the present invention;

[0019] Figure 7 The model training loss curve provided by the present invention;

[0020] Figure 8 A graph showing the change in accuracy and loss value of the training set and validation set provided by the present invention with the number of iterations;

[0021] Fig. 9 The first set of experimental data provided by the present invention is a psychological cognitive survey result diagram

[0022] Fig.10 The second set of experimental data provided by the present invention is a psychological cognition survey result diagram

[0023] Fig.11 The third group of experimental data provided by the present invention is a psychological cognition survey result diagram

[0024] Fig.12 Visualization of the road network and similarity results of our model DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0026] The following are the construction parts of the model training set and test set:

[0027] Step 1: Prepare a road network vector map and simplify the data by changing double lines into single lines and complex intersections.

[0028] Step 2: Construct the road network stroke, classify the road grades and correct the topological errors to obtain the original vector road data suitable for the experiment.

[0029] Step 3: Graph structure construction

[0030] The road network is a natural graph structure data, and its intersections only reflect the topological connection relationship of the road network, but the main information of the road network is mostly concentrated on the edges. In the graph structure, the nodes can well contain the attribute characteristics of the road sections, and the edges can describe the connection relationship of the road network. Therefore, the dual graph of the road network can well solve the storage problem of the road network edges. Therefore, the present invention establishes a graph structure by converting the road network into a dual graph, and converts the feature extraction problem of the road network into a dimensionality reduction problem of node features on the dual graph. First, the road is interrupted at the intersection, and the dual graph G = {V, E, W} of the road network is established by converting road sections to nodes and intersections to edges, where V represents the set of nodes, E represents the set of edges, and W represents the adjacency matrix of the graph. The construction method is as follows: Figure 2 .

[0031] Step 4: Feature extraction

[0032] The present invention utilizes a graph convolutional autoencoder network to learn the node features of a road network. Therefore, the node features of the road network dual graph are an important basis for the similarity calculation of the present invention. In order to make the selected features reflect the characteristics of the road network well, the present invention describes the graph node features of the road network from three aspects: connection features, global features, and local features.

[0033] Connection characteristics: The degree of a node comes from the concept of a complex network. In the network, the degree of a node indicates the number of connections between the node and other nodes. The road network has a complex morphological structure. The degree of a node can not only describe the connectivity of the road network, but also reflect the relatively important sections of the road network. The larger the degree of a node, the more important the road section corresponding to the node is. Therefore, the present invention uses the degree of a node to reflect the topological similarity of the road network.

[0034] Global distribution characteristics: Based on the Gestalt psychological cognitive principles, when people observe an object, they will first start from the global distribution characteristics, that is, the specific positions of the various components that make up the object in the human eye, and then observe some local subtle structures. In order to quantitatively describe the position of each road section in the road network, the present invention uses the center point of the road network as a reference point, and calculates the difference in angle and distance formed by the center point and the two endpoints of the road section, so as to express the overall structure of the road network. The two features of the difference in angle and distance describe the global structure of the road network from the two perspectives of direction and distance respectively. Both are used at the same time to ensure the uniqueness of the position of each road section in the road network. Figure 3 As shown, the center point of the road network is denoted as O, the two endpoints corresponding to the node P are A and B, connecting OA and OB, the length of OA is denoted as L1, the length of OB is denoted as L2, α is the angle, and the global feature calculation formula of the node P is as follows:.

[0035] Δl=L1-L2 (1)

[0036]

[0037] Local structural features: The local features of a road network can reflect the characteristics of each road section in the road network. In order to better describe the local structural features of a road network, the present invention selects the following local feature description parameters to encode each road section of the road network, namely, length, straightness, direction mean, and direction of the long side of the circumscribed rectangle.

[0038] 1) Length: Length can intuitively reflect the shape characteristics of the road section and is also the most basic feature of the line element. Its calculation formula is as shown in Formula 3:

[0039]

[0040] 2) Tortuosity: The ratio of the total length of a road section to the length of the line connecting its first and last points.

[0041] 3) Long side direction of the circumscribed rectangle: The direction of a single line element is generally divided into an overall direction and a local direction. The present invention uses the long side direction of the minimum circumscribed rectangle of the line element to represent its overall direction, and uses its azimuth angle for quantitative description. Figure 4 As shown:

[0042] 4) Directional mean

[0043] The present invention uses the ratio of the length of each broken line segment in the road section to the total length of the road section as the weight coefficient, multiplies the direction angle formed by each broken line segment in the road section by the corresponding weight coefficient, and finally accumulates and sums the weighted direction angles to obtain the value of the direction mean. The direction mean uses the length as the weight factor, comprehensively considers the direction and angle, and can better reflect the local detail differences of the road section.

[0044] like Figure 5 As shown, the length of the entire road section is recorded as L, and the distance between two adjacent points in the road section is recorded as D i , then the length coefficient is calculated as shown in formula 4:

[0045]

[0046] For the entire road section, we can calculate its directional mean using Formula 5:

[0047] θ 均值 =λ1θ1+λ2θ2+…+λ i θ i (5)

[0048] In the formula, θ i is the angle between the ith line and the positive direction of the x-axis.

[0049] Step 5: Construction of model training set and test set

[0050] The data set required for this experiment is mainly obtained from the official website of OSM (www.openstreetmap.org). The road network data of different regions are manually intercepted from the downloaded road network data as the initial data set for this experiment. Due to the poor standardization of OSM road network data, the initial data set needs to be preprocessed, mainly including the processing of some pseudo nodes and isolated roads. In this experiment, a total of 840 blocks of road network data from different regions were intercepted. After data preprocessing and other operations, 800 data sets that meet the standards were obtained, of which 700 were used to train the model and the other 100 were used to test the model.

[0051] The following steps are based on the construction and training of the graph convolutional autoencoder model:

[0052] Step 6: Construction of graph autoencoder

[0053] The autoencoder is mainly composed of an encoder and a decoder, and is usually used to learn the representation and effective encoding of raw data. The autoencoder is usually trained in an unsupervised manner, and its learning goal is to make the difference between the original sample and the reconstructed sample as small as possible, and no reconstruction of the label is required. Therefore, the present invention uses a graph autoencoder model to extract features from the road network, so that the extracted features can well retain the information of the original road network data, and provide support for the similarity calculation of the road network.

[0054] Since graph convolution has high computational efficiency and great advantages in feature extraction, the present invention uses the graph convolution autoencoder model proposed in the literature and applies it to the calculation of road network similarity. On this basis, training and learning are performed to form a deep feature encoding of the road network. The encoder of the graph autoencoder is composed of multiple convolutional layers. The encoder maps the input graph to a vector space to form a vectorized expression of road network spatial cognition, and the decoder reconstructs the original input graph. In the output variable of the encoder, each row represents a vertex. In deep learning, the inner product of a vector can often be used to calculate the cosine similarity of two vectors. Therefore, the similarity of each row in the latent variable can be learned by calculating the inner product to generate the output adjacency matrix.

[0055] Step 7: Choice of loss function

[0056] The present invention trains the model in an unsupervised manner and uses an unlabeled cross entropy loss function to calculate the loss. In machine learning, cross entropy is widely used to evaluate the difference between the true probability distribution and the predicted probability distribution. By minimizing the cross entropy loss, the model can be as close to the actual situation as possible, improving its performance and accuracy.

[0057] Since the ultimate goal of the training of the present invention is to minimize the difference between input and output, rather than the reconstruction of labels, the unlabeled cross entropy loss function is used as a constraint to optimize the model, where the smaller the cross entropy value, the higher the similarity between the two probability distributions, and the better the model prediction effect. The calculation formula of the cross entropy loss is as shown in Formula 7:

[0058]

[0059] Where σ is the sigmoid activation function, Z is the node-level embedding vector output by the encoder, and Z - is the node-level embedding vector of the negative sample. The positive and negative samples act on the loss function at the same time. The positive sample is the index of the edge of the adjacency matrix in the original sample, and the index of the negative sample edge is randomly generated and consistent with the number of edges of the positive sample.

[0060] Step 8: Model training and parameter setting

[0061] During model training, parameters such as the number of convolutional layers and the size of the convolution kernel will affect the final performance of the model. The present invention further analyzes the parameters and the training results are as follows: Figure 7 As shown:

[0062] By comparison Figure 7 From the loss curves of a, b, c, and d, we can see that when the number of convolution layers is constant, only the loss of c is lower when the kernel is 128 than when the kernel is 256. In other cases, the loss is getting smaller and smaller as the embedding dimension increases. In e, f, g, and h, when the embedding dimension is the same, the more convolution layers there are, the lower the loss is. The loss is roughly the same when the number of convolution layers is 4 and 5. A higher embedding dimension and number of convolution layers can make the model achieve lower loss. The reason may be that the smaller the embedding dimension, the greater the feature fluctuation, which is less conducive to the model's reconstruction of the feature. The higher the dimension, the smoother the feature is, which is conducive to its reconstruction. At the same time, as the number of convolution layers increases, the captured neighborhood feature information is richer, and the reconstruction of the original feature is more accurate. A smaller loss means that the model's reconstructed image is closer to the original input image, but it cannot explain the superiority of its encoding ability. The embedding dimension of the model cannot be too high. Too high an embedding dimension will reduce the information compression capability of the model, making it possible to reconstruct the model through simple copying and mapping. At the same time, too many convolutional layers will bring a heavy computational burden and easily cause gradient vanishing and explosion, thus affecting the performance of the model.

[0063] The first layer of the encoder is the input layer, the input feature vector dimension is 7, the embedded feature vector dimension is 128, and the activation function is ReLU. The 2nd to 4th layers are hidden layers. In each layer, the input feature vector dimension is 128, the embedded feature vector dimension is 128, and the activation function is ReLU.

[0064] The decoder reconstructs the original input graph by calculating the inner product and uses the sigmoid function to normalize the inner product value so that its distribution range is between (0,1).

[0065] Finally, 700 training sets and 100 validation sets are used to train and validate the model, and the accuracy of the model reconstruction is reflected by the accuracy. The final training loss, validation loss and validation accuracy of the model are obtained as follows: Figure 8 As shown:

[0066] from Figure 8It can be seen that after 500 iterations, the model has basically converged, and its loss value has stabilized at around 0.75. The accuracy on the validation set has reached above 0.99, which further illustrates that the model has a high reconstruction accuracy for the original input graph and has good generalization performance, while providing support for the subsequent similarity calculation of the road network.

[0067] The following steps are the road network similarity calculation part based on the graph convolutional autoencoder model:

[0068] Step 9: Obtaining the validation set

[0069] The verification data of the experiment was obtained from USGS (https: / / apps.nationalmap.gov). The original road network scale was 1:10,000. Some regional road networks were randomly selected and the original road network data for this experiment was obtained after data preprocessing and other operations. In order to ensure the diversity and rationality of the samples of this experiment, a number of personnel with rich mapping experience and engaged in similarity theory research in this major integrated the original road network data. First, the road network Stroke was constructed, and then the Stroke was sorted according to its importance. Finally, the sorted road network Stroke was scaled according to the square root law, and the road networks at five scales of 1:25,000, 1:50,000, 1:100,000, 1:250,000 and 1:500,000 were obtained. There were 3 original road networks, each of which was integrated 5 times, and a total of 15 road networks were obtained as the verification data for this experiment.

[0070] Step 10: Conversion of node-level embedding vectors to graph-level embedding vectors

[0071] Since the ultimate goal is to obtain a graph-level embedding vector of the road network so that it can be measured using cosine similarity, the present invention needs to perform an average pooling operation on the output vector of the encoder to convert it into a one-dimensional vector of uniform length. Figure 6 It is a graph autoencoder model for calculating the similarity of a road network of the present invention, A is the adjacency matrix of the original input graph, A' is the adjacency matrix reconstructed by the decoder, Z is the node-level embedding vector output by the encoder, and the training goal is to minimize the difference between A' and A. Among them, in the node-level embedding vector output by the encoder, the horizontal dimension is the number of features contained in each node, and the vertical dimension is the number of nodes. The graph-level embedding vector of the road network can be obtained by averaging it by column. The graph aggregation of the present invention can not only obtain the overall characteristics of the road network, but also solve the problem of difficult similarity calculation for inconsistent node numbers, and can effectively realize multi-scale road network similarity calculation.

[0072] Step 11: Calculate similarity using cosine similarity

[0073] The training of the present invention needs to be completed with the help of the encoder and the decoder, and the final road network similarity calculation only needs to use the encoder. The output vector of the encoder is a node-level embedding vector, which is a high-dimensional vector. Therefore, the node-level vector must be aggregated to convert it into a one-dimensional graph-level vector of the same size. The similarity of the road network is the cosine similarity between the two graph-level vectors. The calculation formula is as shown in Formula 8:

[0074]

[0075] In the formula, r a is the graph-level vector of road network a, r b is the graph-level vector of the road network b, and m is the dimension of the graph-level vector.

[0076] Step 12: Below is an example to calculate the spatial similarity of multi-scale road networks.

[0077] In order to verify the rationality of the method of the present invention, a similarity measurement experiment was carried out using the above verification data. Fig.12 Road network data before and after cartographic synthesis of three different areas and their similarity calculation results.

[0078] according to Fig.12 The experimental results show that as the degree of integration continues to increase, the similarity continues to decrease, which is consistent with the theory that the similarity decreases as the degree of integration increases. From the experimental results of the above three sets of data, it can be seen that the road network similarity results calculated by the model of the present invention at each scale are relatively consistent with the span of the scale, which fully demonstrates the rationality of the model, and the difference in similarity calculated at a specific scale is small. The main reason for the difference is that the verification data at each scale is manually synthesized, and the real data and the scale size are not completely consistent.

[0079] In order to further verify the applicability and effectiveness of the model of the present invention, the following will demonstrate from a psychological cognitive experiment. Similarity is a vague human perception. In order to verify whether the similarity calculation results of the model are consistent with human cognition, this psychological cognitive experiment is conducted in the form of a questionnaire survey. Participants use the original sample as a reference to score the similarity of the integrated road network. Taking into account that human cognition is affected by various factors in different scenarios, the similarity is divided into six intervals in this questionnaire, namely 90%-100%, 80%-90%, 70%-80%, 60%-70%, 50%-60%, and below 50% for respondents to choose. A total of 420 questionnaires were collected in this psychological cognitive survey experiment, of which 60% were professionals and 40% were non-professionals. The survey results are as follows Fig. 9 , Fig.10 , Fig.11 As shown:

[0080] Depend on Fig. 9 , Fig.10 , Fig.11 It can be seen that in these three groups of psychological cognition investigation experiments, the cognitive results of non-professionals and professionals are relatively consistent with the results calculated by the model of the present invention, and maintain a high degree of consistency with the actual road changes, which is more in line with human cognition.

[0081] The present invention takes into account the global, local and topological structure characteristics of the road network when selecting node feature factors. The proposed graph autoencoder model can better extract features of the road network and train the model in an unsupervised manner to form a deep understanding of the road network. It effectively avoids the shortcomings of difficult and overly subjective weight assessment, and can aggregate the information of neighborhood nodes to obtain richer node-level embedded information. The final similarity calculation result is also more in line with human cognition.

[0082] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined by the scheme may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown in the scheme, but will conform to the widest scope consistent with the principles and novel features disclosed in the present invention.

Claims

1. A multi-scale road network similarity calculation method supported by a graph convolutional autoencoder, the calculation steps comprising: S 1: Convert the data from double lines to single lines and simplify the complex intersections; S2: constructing road network stroke, road grade classification and topology error correction to obtain original vector road data; S3: Construct the dual graph of the road network by converting edges to nodes and intersections to edges; S4: Extract node features from three aspects: global, local and connection features; S5: Construction of model training set; S6: Construction of model test set; S7: Use the program to traverse the training set and test set to generate the feature matrix and adjacency matrix of the input model; S8: Build a graph convolutional autoencoder model based on graph convolutional neural network; S9: Input the feature matrix and adjacency matrix of the training set into the model for unsupervised training; S 10: Observe the model convergence through the training set and test set loss curves and test set accuracy; S11: Save the trained model; S 12: performing scale transformation on the acquired road network data to obtain several groups of road network data at multiple scales; S 13: using the model saved in S 11 to respectively calculate the node-level embedding vectors of the two road networks to be compared; S 14: Use the average pooling operation to transform the node-level embedding vector into a graph-level embedding vector to obtain two sets of one-dimensional vectors of the same size; S 15: Calculate the similarity between the two one-dimensional vectors using cosine similarity calculation to obtain the similarity Sim between all scale-transformed roads and the original roads.

2. According to claim 1, a multi-scale road network similarity calculation method supported by a graph convolutional autoencoder is characterized in that: In steps S7 to S11, the model is trained using the high-quality dataset constructed in steps S1 to S6.

3. The multi-scale road network similarity calculation method supported by a graph convolutional autoencoder according to claim 1 or 2, characterized in that: In steps S12 to S15, the multi-scale road network similarity calculation is performed using the model trained in steps S7 to S11.