Method and device for matching multi-source road network data

By segmenting road network data into tiles and independently constructing local road network maps within each tile and performing graph neural network calculations, the problem of low efficiency in large-scale road network matching is solved, achieving efficient and accurate multi-source road network data matching.

CN123178994APending Publication Date: 2026-11-27BEIJING SIWEI TUXIN TECHNOLOGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611356485.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-02
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

The fundamental reason why existing road network matching methods based on graph neural networks are inefficient in large-scale scenarios is that they construct the entire road network as a single connected graph, resulting in excessive computational complexity and storage overhead, making it difficult to apply to the fusion of multi-source heterogeneous road networks and the continuous iterative updates of high-precision maps.

Method used

The entire road network is divided into multiple tiles according to geographical space. A local road network map is independently constructed in each tile and graph neural network calculations are performed independently. By performing feature learning and similarity calculation on road segment units, the huge amount of computation caused by whole-graph reasoning is avoided.

Benefits of technology

It improves the matching efficiency of large-scale multi-source road network data, enhances matching accuracy, and reduces computational complexity, making it suitable for large-scale real-world business scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178994A_ABST
    Figure CN123178994A_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a multi-source road network data matching method and device. The method comprises: performing sharding processing on the global road network data of a first data source and a second data source to be matched, to obtain road network tiles of each data source; each road network tile stores road network data corresponding to a geographical space range; constructing a local road network graph of each road network tile according to the road network data of each road network tile; the local road network graph takes a road segment unit in the road network tile as a graph node, and takes a spatial adjacency relationship and a topological connection relationship between the road segment units as a graph edge; performing graph neural network calculation on each local road network graph independently to obtain a feature vector of each road segment unit of the data source; and performing matching processing on the feature vector of each road segment unit of the first data source and the feature vector of each road segment unit of the second data source to obtain a road network matching result. The method is used to improve the efficiency of multi-source road network data matching.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of map technology, and in particular to a method and apparatus for matching multi-source road network data. Background Technology

[0002] Road network matching refers to the process of establishing corresponding relationships between road segments representing the same road entity from different data sources or acquired at different times. It is a fundamental step in map fusion, updating, and quality assessment.

[0003] In recent years, road network matching methods based on graph neural networks have significantly improved matching accuracy in complex scenarios by introducing spatial pattern-aware neighborhood aggregation. However, these methods typically construct the entire road network of the study area as a single connected graph, and feed the entire graph into the graph neural network for inference. When the road network reaches the scale of millions of road segments, the graph size is enormous, the computational complexity is high, and the matching efficiency drops sharply, making it difficult to apply to large-scale real-world business scenarios such as multi-source heterogeneous road network fusion and continuous iterative updates of high-precision maps. Summary of the Invention

[0004] The multi-source road network data matching method and apparatus provided in this application are used to improve the matching efficiency of multi-source road network data.

[0005] In a first aspect, embodiments of this application provide a method for matching multi-source road network data, including:

[0006] The full-domain road network data of the first and second data sources to be matched are segmented to obtain road network tiles for each data source; wherein, each road network tile corresponds to a preset geographic spatial range, and each road network tile stores road network data corresponding to the geographic spatial range.

[0007] For each data source, a local road network map of the road network tile is constructed based on the road network data of each road network tile of the data source; wherein, the local road network map uses the road segment units within the road network tile as graph nodes, and the spatial proximity and topological connection relationships between the road segment units as graph edges;

[0008] Graph neural network calculations are performed independently on each of the local road network maps to obtain the feature vectors of each road segment unit of the data source;

[0009] The road network matching result is obtained by matching the feature vectors of each road segment unit from the first data source and the feature vectors of each road segment unit from the second data source.

[0010] In one possible implementation, the step of independently performing graph neural network calculations on each of the local road network maps to obtain the feature vectors of each road segment unit of the data source includes:

[0011] For each road network tile of the data source, a graph neural network is independently calculated for the local road network map of the road network tile to obtain the feature vector of each road segment unit in the road network tile;

[0012] For a boundary road segment unit located within a preset boundary buffer zone of the road network tile, determine the adjacent road segment units in the adjacent road network tiles of the boundary road segment unit;

[0013] The feature vectors of the boundary road segment unit and the adjacent road segment unit are fused to update the feature vector of the boundary road segment unit.

[0014] In one possible implementation, the graph nodes have node feature information; for each road network tile of the data source, the local road network map of that road network tile is independently processed by a graph neural network to obtain the feature vector of each road segment unit in that road network tile, including:

[0015] For each neighboring node of a graph node in the local road network map, the sampling probability of that neighboring node is determined based on the node feature information of the graph node and the node feature information of the neighboring node.

[0016] Based on the sampling probability of each neighbor node, determine the neighbor node to be sampled corresponding to the graph node;

[0017] The feature vectors of each road segment unit in the road network tile are obtained by performing graph neural network calculations based on the graph node and its corresponding neighbor node to be sampled.

[0018] In one possible implementation, determining the sampling probability of a neighboring node based on the node feature information of the graph node and the node feature information of the neighboring node includes:

[0019] Based on the spatial distance between the road segment unit corresponding to the graph node and the road segment unit corresponding to the neighboring node, determine the spatial distance weight information;

[0020] Based on the road level in the node feature information of the neighboring node, determine the road level weight information;

[0021] The sampling probability of the neighboring node is determined based on the spatial distance weight information and the road level weight information.

[0022] In one possible implementation, the matching process based on the feature vectors of each road segment unit from the first data source and the feature vectors of each road segment unit from the second data source to obtain the road network matching result includes:

[0023] Index information is established for each road segment unit of the first data source and each road segment unit of the second data source;

[0024] For each source road segment unit of the first data source, the road segment units of the second data source are filtered according to the index information to obtain candidate road segment units of the second data source.

[0025] The similarity of each candidate road segment unit is determined based on the feature vector of the source road segment unit and the feature vector of the candidate road segment unit.

[0026] Based on the similarity of the candidate road segment units, the target road segment unit matched by the source road segment unit in the first data source in the second data source is determined.

[0027] In one possible implementation, determining the similarity of each candidate road segment unit based on the feature vector of the source road segment unit and the feature vector of the candidate road segment unit includes:

[0028] Geometric similarity is determined based on the geometric shape of the source road segment unit and the geometric shape of the candidate road segment unit;

[0029] Manhattan distance similarity and cosine similarity are determined based on the feature vectors of the source road segment unit and the candidate road segment unit.

[0030] The geometric similarity, the Manhattan distance similarity, and the cosine similarity are weighted and fused to obtain the similarity of each candidate road segment unit.

[0031] In one possible implementation, the global road network data of the first and second data sources to be matched are respectively processed into fragments to obtain road network tiles for each data source, including:

[0032] For the global road network data of each data source, a quadtree index structure is used to spatially recursively divide the global road network data. Starting from the root node covering the global road network data, if the road network density in the current area exceeds a preset threshold, the current area is divided into four equal sub-areas. This process is repeated recursively until the road network density in each sub-area is less than or equal to the preset threshold or reaches the preset minimum tile size, thus obtaining the road network tiles of the data source.

[0033] In one possible implementation, the method further includes:

[0034] In response to local incremental events in the road network, locate the affected road network tiles affected by the local incremental events in the road network;

[0035] The local road network map is reconstructed for the affected road network tiles, and the graph neural network is recalculated to update the feature vectors of the road segment units within the affected road network tiles, while the feature vectors of the road segment units within other road network tiles remain unchanged.

[0036] Secondly, embodiments of this application provide a matching device for multi-source road network data, comprising:

[0037] The sharding module is used to shard the global road network data of the first and second data sources to be matched, respectively, to obtain road network tiles for each data source; wherein, each road network tile corresponds to a preset geographic spatial range, and each road network tile stores road network data corresponding to the geographic spatial range.

[0038] A construction module is used to construct a local road network map for each road network tile based on the road network data of each road network tile of the data source; wherein, the local road network map uses the road segment units within the road network tile as graph nodes, and the spatial proximity and topological connection relationships between the road segment units as graph edges;

[0039] The calculation module is used to independently perform graph neural network calculations on each of the local road network maps to obtain the feature vectors of each road segment unit of the data source;

[0040] The matching module is used to perform matching processing based on the feature vectors of each road segment unit from the first data source and the feature vectors of each road segment unit from the second data source to obtain the road network matching result.

[0041] Thirdly, embodiments of this application provide an electronic device, including: a memory and a processor;

[0042] The memory stores computer-executed instructions;

[0043] The processor executes computer execution instructions stored in the memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.

[0044] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect.

[0045] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.

[0046] The multi-source road network data matching method and apparatus provided in this application embodiment divides the full-domain road network data of the first and second data sources to be matched into segments to obtain road network tiles for each data source. A local road network map is constructed for each road network tile of each data source, and a graph neural network is independently performed on each local road network map to obtain the feature vector of the road segment unit. Then, the matching process is performed based on the feature vector of each road segment unit in the first and second data sources to obtain the road network matching result. This approach achieves several advantages. First, by dividing the entire road network into multiple smaller tiles and independently constructing and calculating within each tile, it avoids the problem of excessively large graph size caused by constructing the entire road network as a single connected graph. This allows graph neural networks to be applied to large-scale multi-source road network data, improving matching efficiency. Second, by learning features from road segment units through graph neural networks, it is possible to integrate the geometric, topological, and semantic information of road segment units to obtain more discriminative feature representations, which is beneficial for improving matching accuracy. Third, the matching process only calculates similarity based on the feature vectors of each road segment unit, eliminating the need for pairwise comparisons of all road segment units across the entire network. This reduces the computational complexity of matching and further improves overall processing efficiency. Attached Figure Description

[0047] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0048] Figure 1 Flowchart of the matching method for multi-source road network data provided in this application Figure 1 ;

[0049] Figure 2 Flowchart of the matching method for multi-source road network data provided in this application Figure 2 ;

[0050] Figure 3 A schematic diagram of the structure of the multi-source road network data matching device provided in this application;

[0051] Figure 4 A schematic diagram of the structure of the electronic device provided in this application.

[0052] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0053] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application.

[0054] Traditional road network matching techniques primarily rely on manually designed geometric, topological, or semantic features for similarity calculation and matching decisions. The typical approach involves: calculating similarity based on road segment geometric features such as length, distance, and orientation angle; using topological relationships such as node connectivity and intersection for constraint matching; performing association mapping based on semantic attributes such as road grade and name; using directed Hausdorff distance to measure geometric differences; constructing a spatial buffer to generate candidate matching pairs; establishing a linear programming model with node-arc joint topological constraints; and using integer programming or greedy algorithms for global optimization matching. While these methods have some effectiveness in specific scenarios, their inherent limitations become increasingly apparent as urban road networks become more complex and data sources become more diverse.

[0055] Recent road network matching methods based on Graph Neural Networks (GNNs) effectively integrate spatial context information and topological features of road segments by introducing graph sampling and aggregation networks and spatial pattern-aware neighborhood aggregation. This significantly improves matching accuracy in complex scenarios, increasing precision from 84.97% to 89.98% and recall to 100%. However, these methods typically construct the entire road network of the study area as a single connected graph, feeding the entire graph into the GNN for inference. When the road network reaches millions of road segments, the graph size becomes enormous, resulting in high computational complexity and a sharp decline in matching efficiency. This makes them difficult to apply to large-scale real-world business scenarios such as multi-source heterogeneous road network fusion and continuous iterative updates of high-precision maps.

[0056] The inventors of this application realized during their research that the fundamental reason for the low efficiency of existing graph neural network-based road network matching methods in large-scale scenarios lies in constructing the entire road network as a single connected graph and performing whole-graph inference. The graph size increases dramatically with the road network size, leading to high computational complexity and storage overhead. To address this, the inventors devised a method to divide the entire road network into multiple tiles based on geographic spatial extent. Within each tile, a local road network graph is independently constructed, and graph neural network computation is performed independently. This limits the graph size for a single processing operation to the tile level, avoiding the enormous computational load caused by whole-graph inference. Simultaneously, the tiles are independent of each other and can be computed in parallel, further improving processing efficiency. For each road segment unit within a tile, its geometric, topological, and semantic information is encoded using a local graph neural network to obtain feature vectors that characterize the features of the road segment unit. During the matching phase, similarity comparison is only performed based on the feature vectors of road segment units from each data source, eliminating the need to access the global graph structure. This reduces the matching complexity from pairwise comparison of all nodes across the entire network to efficient retrieval and comparison based on feature vectors, improving the matching efficiency of large-scale road networks while maintaining the accuracy of graph neural network matching.

[0057] The execution subject of this application embodiment can be an electronic device with processing capabilities, such as a computer, server, etc., and this application embodiment is not limited thereto.

[0058] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0059] Figure 1 Flowchart of the matching method for multi-source road network data provided in this application Figure 1 ,like Figure 1 As shown, the method includes:

[0060] S101. The full-domain road network data of the first and second data sources to be matched are processed into fragments to obtain the road network tiles of each data source.

[0061] For example, a data source refers to different sources that provide road network data, such as crowdsourced road networks, high-precision maps, surveyed vector road networks, or trajectory-derived road networks. The data formats, precision, and coverage of different data sources may vary. Data sources can also correspond to different map providers, road network versions formed at different collection times, or road databases at different precision levels. The first data source and the second data source refer to two different data sources participating in road network matching; for example, the first data source might be a crowdsourced road network, and the second data source might be a high-precision map.

[0062] Global road network data refers to all road network data contained in a target geographic area by a certain data source, including the geometric location, topological connection relationship and road attributes of each road segment. Road attributes may include road segment number, road name, road grade, direction attribute, origin and destination coordinates and administrative region identifier.

[0063] Tiling refers to dividing the entire road network data into multiple smaller data blocks based on spatial location, allowing for independent processing of each block. A road network tile is a data block corresponding to each spatial region obtained after tiling. Each road network tile corresponds to a preset geographic spatial range and stores the road network data (road segment attributes and topology information) within that geographic spatial range. Optionally, the set of road network tiles for each data source can be represented as... , This represents the i-th road network tile.

[0064] In one example, a unified spatial tackling rule can be pre-established so that all data sources use the same geographic coordinate reference system and the same tile numbering rule. Before tackling, coordinate system I, field mapping, and road segment unit normalization processing are performed on different data sources. The road segment unit can be defined as the smallest road segment formed between two adjacent topological nodes, or as a basic road processing unit obtained by dividing based on road intersections, attribute change points, and geometric turning points.

[0065] In some possible implementations, the tiling process is performed using a fixed grid. The target geographic area is divided into regular squares according to latitude and longitude ranges or projected plane coordinates, with each square corresponding to a road network tile. When the geometric line segment of a road segment unit intersects with a certain square, the road segment unit is written into the road network tile corresponding to that square. For road segment units that cross multiple tile boundaries, a cropping and copying method can be used. That is, while maintaining the unique identifier of the original road segment, the road segment geometry is divided according to the boundaries and written into multiple related tiles, and the cross-tile association identifier is recorded so that the boundary adjacency relationship can be identified during subsequent local road network map construction.

[0066] In some possible implementations, for the global road network data of each data source, a quadtree index structure is used to spatially recursively partition the global road network data. Starting from the root node covering the global road network data, if the road network density in the current area exceeds a preset threshold, the current area is divided into four equal sub-areas. This process is repeated recursively until the road network density in each sub-area is less than or equal to the preset threshold or reaches the preset minimum tile size, thus obtaining the road network tiles of the data source.

[0067] Among them, the quadtree index structure refers to a tree-shaped spatial index structure that recursively divides a two-dimensional space into four quadrants or sub-regions. Each internal node corresponds to a rectangular spatial region, and each node has at most four child nodes, which correspond to the four sub-regions of the rectangular region.

[0068] Spatial recursive partitioning refers to the process of starting from the root node that covers the entire region and determining whether the current region needs to be further partitioned according to preset rules, layer by layer.

[0069] The root node refers to the top-level node in the quadtree index structure that covers the spatial range of the entire road network data.

[0070] Road network density refers to the density of road network data within a current spatial area, which can be measured based on indicators such as the number of road segment units, total length, or number of graph nodes within that area.

[0071] Dividing a rectangular space into four equal sub-regions means dividing the current rectangular space into four sub-regions of equal area along the longitudinal and transverse midlines.

[0072] The preset threshold refers to a pre-defined standard for judging road network density. When the road network density in a region exceeds this threshold, it indicates that the data volume in that region is too large, and further subdivision is required. The preset minimum tile size refers to the minimum spatial size corresponding to the road network tiles allowed to be generated during the subdivision process. Even if the road network density in the region still exceeds the preset threshold, further subdivision will stop when this minimum size is reached to avoid excessive tile quantity or excessively small tile area, which would lead to a decrease in processing efficiency. The above parameters can be set according to the scale of the entire road network data, the density of road distribution, and the subsequent graph computing capabilities, so as to maintain a stable data granularity of the generated road network tiles.

[0073] A road network tile refers to a data block corresponding to each spatial sub-region obtained after the division is stopped. Each road network tile corresponds to a preset geographic spatial range, and each road network tile stores the road network data within that geographic spatial range.

[0074] For example, for the global road network data of a certain data source, firstly, a root node of a quadtree index structure is created, covering the entire spatial range of the data source; then, the road network density within the area corresponding to the current node is calculated, i.e., the total number of road segment units within that area is counted; if this number exceeds a preset density threshold and the current area size is larger than a preset minimum tile size, then the current area is divided into four equal sub-areas along the vertical and horizontal centerlines, each corresponding to a child node; the above judgment and division process is repeated for each child node until the road network density in each area does not exceed the preset threshold, or the current area size has reached the preset minimum tile size; finally, each spatial sub-area that has stopped dividing is taken as the road network tile of the data source, and a tile identifier is assigned to each road network tile. For different data sources, the same quadtree rules can be used to ensure the consistency of the spatial organization of tiles across different data sources.

[0075] This partitioning method uses density-driven recursive partitioning to obtain smaller road network tiles in dense areas and larger tiles in sparse areas, thus balancing the amount of data within each road network tile. As a result, local road network maps from each data source can be independently constructed and computed within a limited space, reducing the storage and computational burden of large global maps and improving the efficiency of subsequent multi-source road network feature extraction and matching processes.

[0076] After the sharding process is completed, a tile index table is generated for each data source. The index table records the tile number, geographic boundary, number of road segments, number of nodes, and update time. Each road network tile can be stored independently as a file or written to a distributed key-value database or graph storage system, and retrieved by tile number. By first spatially sharding the entire road network data from different data sources, the subsequent calculation scope can be limited to local geographic units. This constrains the data scale involved in each local road network map construction and feature calculation, thereby reducing the computational scale and improving processing efficiency.

[0077] Optionally, the raw data from the multi-source heterogeneous road network can be loaded into a distributed computing framework. Arc segmentation and noise reduction are performed in parallel, using road segments as the basic processing unit. Excessively long arcs are divided into multiple shorter arcs according to a preset length threshold, and noisy arcs shorter than the preset threshold are filtered out. Subsequently, topology repair is performed on the road network data within each region in the distributed environment. Dangling nodes, pseudo-nodes, duplicate arcs, and broken road segments are automatically detected, and the correct topology is restored through splicing, merging, or deletion operations. Simultaneously, a unified enumeration mapping table is established between road attributes from different data sources to align and transform semantic attributes such as road grade, number of lanes, and speed limits in each data source. Finally, standardized road network data is output as input for the segmentation processing.

[0078] S102. For each data source, construct a local road network map of the road network tile based on the road network data of each road network tile of that data source.

[0079] For example, a local road network graph refers to a graph structure constructed based on road network data within a single road network tile, used to describe the spatial and topological relationships between road segment units within that tile. Its scale is much smaller than a single connected graph covering the entire domain. Specifically, the local road network graph uses road segment units within that road network tile as graph nodes, and the spatial proximity and topological connections between road segment units as graph edges.

[0080] A road segment unit refers to a basic road entity that serves as a graph node in a road network graph. It can be a single road segment or a sequence of Stroke road segments formed by merging multiple consecutive road segments that satisfy preset geometric continuity and topological connectivity conditions. Spatial proximity refers to the close spatial distance between two road segment units; for example, the minimum spatial distance between them is less than or equal to a preset distance threshold. Topological connectivity refers to the direct connection between two road segment units in the road network topology; for example, sharing at least one physical node. A graph edge is an edge connecting two graph nodes, used to characterize the spatial proximity or topological connectivity between nodes.

[0081] In one example, the local road network map uses road segment units within tiles as graph nodes and spatial proximity and topological connections between road segment units as graph edges. To ensure comparability of subsequent features from different data sources, consistent node and edge definition rules are applied to all data sources during the graph construction phase. Each graph node, in addition to its associated road segment unit identifier, can also contain node feature information. This node feature information includes at least the road segment length, direction angle, curvature statistics, road grade code, restricted direction code, road name code, and normalized center point coordinates. This node feature information is used to provide the node's geometric features and semantic description before graph neural network computation.

[0082] Spatial proximity describes the geometric proximity of two road segment units. In practice, the center point, circumscribed rectangle, and geometric buffer of each road segment unit are first calculated. When the distance between the center points of two road segment units is less than a preset threshold, or their buffers intersect, they are considered spatially adjacent, and graph edges are established between the corresponding graph nodes. Topological connectivity describes the connection status of two road segment units in the road network. In practice, based on the original road network topology data, it can be determined whether two road segment units share endpoints, are connected through the same intersection node, or form a continuous passage relationship. If any condition is met, topological graph edges are established between the corresponding graph nodes. For directional road segment units such as one-way roads, ramps, or viaducts, graph edges can be set as directed edges, and edge attributes can be recorded. For intersecting but not connected roads, such as viaducts intersecting ground roads on planar projection but without actual connection points, only spatial proximity graph edges are established, not topological connectivity graph edges, to ensure that the local road network diagram accurately represents the real structure. For example, a local road network map is independently constructed for each road network tile T_i. Here, V_i represents the set of graph nodes in the local road network graph, and each graph node corresponds to a road segment unit within the road network tile T_i, such as the Stroke road segment sequence extracted within the road network tile T_i; E_i represents the set of graph edges in the local road network graph, and each graph edge connects two graph nodes, used to represent the spatial proximity and topological connection relationship between the corresponding road segment units, such as a 40-meter spatial proximity edge and a topological edge sharing a physical node; X_i represents the set of node feature information of each graph node in the local road network graph, and the node feature information of each graph node includes the geometric features and attribute features of the corresponding road segment unit. The node feature information can be, for example, a 160-dimensional feature vector.

[0083] By mapping road segment units within road network tiles to graph nodes and constructing graph edges by combining spatial proximity and topological connectivity, the local road network graph can simultaneously preserve the local geometric relationships and connection structures of roads, enabling subsequent calculations to obtain contextual information related to matching without relying on the global graph.

[0084] S103. Perform graph neural network calculations independently on each local road network map to obtain the feature vectors of each road segment unit of the data source.

[0085] For example, graph neural network computation refers to the process of using graph neural networks to process graph structure data and extract feature vectors of road segment units (nodes) by aggregating information from neighboring nodes. This graph neural network can be an inductive graph neural network, which learns an aggregation function rather than a fixed embedding vector for each node. It can generate feature representations for nodes or graphs not encountered during training and is suitable for segmented graph construction and incremental update scenarios.

[0086] A feature vector is a low-dimensional vector representation of a graph node obtained after computation by a graph neural network. This vector integrates the features of the road segment unit (node) itself and the topological and spatial information of its neighboring nodes, and is used for subsequent matching.

[0087] Independent calculation means that each local road network map is calculated separately, and the map structures of each local road network map are not shared. They can be executed in parallel, thus limiting the map size of a single calculation to the tile level.

[0088] In one example, an inductive graph neural network model can be used for computation. For each local road network graph, the node feature information of the graph nodes is input into the model, and feature extraction is performed by combining the neighborhood relationships between graph nodes to obtain the feature vector corresponding to each graph node. Through this process, the graph node representation no longer depends solely on the geometric attributes of a single road segment unit, but rather integrates the structural information and contextual relationships of adjacent road segment units.

[0089] In terms of training and inference organization, the model can first be trained offline using existing cross-data source road segment corresponding samples. During training, known matching and non-matching road segment unit pairs are selected as supervision signals, so that the feature vectors of graph nodes representing the same road entity from different data sources are closer in the vector space, while non-matching node pairs are farther apart. The loss function can be contrastive loss, triplet loss, or cross-entropy loss. After training, the model parameters are fixed, and inference is performed on the local road network map to obtain the feature vectors of each road segment unit.

[0090] For example, an inductive graph neural network is trained independently for each local road network graph G_i to obtain the local embedding vector (feature vector) of each Stroke node (road segment unit) v. ,in, This represents the feature vector of graph node v. This represents a d-dimensional real vector space, meaning that the embedded vector is a real vector of length d; d is the dimension of the embedded vector, which is a pre-defined positive integer.

[0091] In one possible implementation, each local road network map is fed into multiple computing nodes in parallel without interdependence to perform inductive graph neural network calculations. The results of the inductive graph neural network calculations are written back to the feature vector index library, which records at least the data source identifier, tile number, road segment unit number, and corresponding vector.

[0092] By performing inductive graph neural network computation independently on each local road network map, the feature extraction process is transformed from a unified global computation to a divide-and-conquer local computation process, which controls the storage and inference scale while maintaining the expressive power of the local structure.

[0093] S104. Based on the feature vectors of each road segment unit from the first data source and the feature vectors of each road segment unit from the second data source, a matching process is performed to obtain the road network matching result.

[0094] For example, the matching process refers to the process of calculating the similarity between road segment units in two data sources based on feature vectors, and determining the correspondence accordingly. The road network matching result refers to the final output set of matching pairs, which indicates which road segment units in the first data source and which road segment units in the second data source represent the same road entity.

[0095] In one example, tile can be used as the basic matching unit to perform road segment candidate retrieval among tiles with the same number and consistent spatial range. Alternatively, candidate retrieval can be performed within an extended range consisting of the current tile and its neighboring tiles to cover the true correspondences near the boundary. For each road segment unit in the first data source, the set of candidate road segment units in the second data source is first filtered based on the spatial bounding box, center point distance, or projection overlap relationship. Then, a comprehensive score is calculated based on the similarity between the feature vectors of each road segment unit. The similarity can be expressed as cosine similarity, negative Euclidean distance transformed score, or the output score of a dual-tower network.

[0096] For each road segment unit of the first data source, the road segment unit of the second data source with the highest comprehensive score and exceeding the preset threshold is selected as the matching object to obtain the matching result of each road segment unit, i.e., the road network matching result.

[0097] Optionally, the road network matching results may include the road segment number of the first data source, the road segment number of the second data source, the matching score, the tile number to which it belongs, and the matching status flag. The matching status flag can distinguish between three categories: confirmed match, suspected match, and no match; among them, those with a comprehensive score reaching the high threshold are marked as confirmed matches, those between the high and low thresholds are marked as suspected matches and enter the manual review or subsequent re-judgment process, and those below the low threshold are marked as no match.

[0098] The multi-source road network data matching method provided in this application embodiment obtains road network tiles for each data source by segmenting the full-domain road network data of the first and second data sources to be matched. A local road network map is constructed for each road network tile of each data source, and a graph neural network is independently performed on each local road network map to obtain the feature vector of the road segment unit. Then, the matching process is performed based on the feature vector of each road segment unit in the first and second data sources to obtain the road network matching result. This approach achieves several advantages. First, by dividing the entire road network into multiple smaller tiles and independently constructing and calculating within each tile, it avoids the problem of excessively large graph size caused by constructing the entire road network as a single connected graph. This allows graph neural networks to be applied to large-scale multi-source road network data, improving matching efficiency. Second, by learning features from road segment units through graph neural networks, it is possible to integrate the geometric, topological, and semantic information of road segment units to obtain more discriminative feature representations, which is beneficial for improving matching accuracy. Third, the matching process only calculates similarity based on the feature vectors of each road segment unit, eliminating the need for pairwise comparisons of all road segment units across the entire network. This reduces the computational complexity of matching and further improves overall processing efficiency.

[0099] Figure 2 Flowchart of the matching method for multi-source road network data provided in this application Figure 2 ,like Figure 2 As shown, in this embodiment... Figure 1 Based on the embodiments, the matching method for multi-source road network data is described in detail. The method includes:

[0100] S201. The full-domain road network data of the first and second data sources to be matched are processed into fragments to obtain the road network tiles of each data source.

[0101] It should be noted that this step is similar to the aforementioned step S101, and will not be repeated here.

[0102] S202. For each data source, construct a local road network map of the road network tile based on the road network data of each road network tile of that data source.

[0103] It should be noted that this step is similar to the aforementioned step S102, and will not be repeated here.

[0104] S203. For each road network tile of the data source, perform graph neural network calculation independently on the local road network map of the road network tile to obtain the feature vector of each road segment unit in the road network tile.

[0105] In some possible implementations, for each neighboring node of a graph node in a local road network graph, the sampling probability of the neighboring node is determined based on the node feature information of the graph node and the node feature information of the neighboring node; based on the sampling probabilities of each neighboring node, the neighboring node to be sampled corresponding to the graph node is determined; and a graph neural network is used to calculate the feature vector of each road segment unit in the road network tile based on the graph node and the neighboring node to be sampled corresponding to the graph node.

[0106] In this graph network, a graph node represents a road segment unit in the local road network graph. It carries the node feature information corresponding to that road segment unit. Node feature information refers to the attribute representation of the road segment unit corresponding to the graph node, including the geometric and semantic attributes of the road segment unit. Geometric features include the spatial location and morphological information of the road segment unit, while semantic attributes include information such as road grade. Node feature information may include, for example, the road segment's geometric shape, length, road grade, direction attribute, name encoding, and connectivity information. Neighbor nodes represent adjacent road segment units that have a spatial proximity or topological connection with the current graph node. Their node feature information, together with the graph node's node feature information, constitutes the sampling judgment basis. The sampling probability is a probability value used to measure the importance of a neighbor node to the feature update of the current graph node. A higher sampling probability indicates that the neighbor node is more likely to be selected to participate in message passing. In other words, the sampling probability characterizes the likelihood of a neighbor node being selected for inductive graph neural network computation. The neighbor nodes to be sampled refer to the subset of neighbor nodes selected from all neighbor nodes based on the sampling probability that actually participate in the graph neural network calculation. By selecting some important neighbors instead of all neighbors, the amount of computation for message passing can be reduced, while retaining neighbor information that contributes significantly to feature updates.

[0107] For example, for each graph node within a road network tile, its set of neighboring nodes is first obtained, and the node feature information of the graph node and each neighboring node is read separately. The two are then input into a feature association function for matching calculation. The feature association function can consist of a linear mapping layer, a similarity calculation layer, and a normalization layer to output the corresponding sampling probability. Subsequently, based on the sampling probabilities of each neighboring node, threshold filtering and probability sorting are performed. The top-M neighboring nodes with the highest sampling probabilities are determined as the neighboring nodes to be sampled for the current graph node. These neighboring nodes to be sampled, along with the graph node, are input into the aggregation unit of an inductive graph neural network. The aggregation unit performs message passing, feature aggregation, and nonlinear transformation on the feature vectors of the target graph node and the neighboring nodes to be sampled, outputting an updated graph node representation, which is then used as the feature vector of each road segment unit in the road network tile.

[0108] This processing method independently performs neighbor sampling and inductive graph neural network calculations within each road network tile, keeping the computational scope of the local road network graph controlled and aggregating only representative neighbor node information to form a feature vector that can characterize the structural relationships of road segment units. Since the sampling probability is jointly determined by the node feature information of the graph node and its neighbor nodes, the obtained neighbor nodes to be sampled have a stronger correlation and consistency with the current graph nodes, thus the output feature vector can more stably reflect the local road network structure.

[0109] After adopting this method, the neighborhood redundancy information in the local road network map calculation is compressed, the computational and storage overhead of the inductive graph neural network is reduced accordingly, and each road network tile can independently complete feature extraction, which is beneficial to the subsequent vector matching processing between multiple source road networks and improves the processing efficiency and scalability in road network data update scenarios.

[0110] Specifically, spatial distance weight information is determined based on the spatial distance between the road segment unit corresponding to the graph node and the road segment unit corresponding to the neighboring node; road level weight information is determined based on the road level in the node feature information of the neighboring node; and the sampling probability of the neighboring node is determined based on the spatial distance weight information and the road level weight information.

[0111] Spatial distance refers to the spatial proximity between the road segment unit corresponding to a graph node and the road segment unit corresponding to its neighboring node, which can be measured by the minimum distance between their geometric lines. Spatial distance weight information refers to the weight value determined based on spatial distance to measure the importance of neighboring nodes in the spatial dimension. The closer the spatial distance, the stronger the spatial association between the two road segment units, the greater the contribution of the neighboring node to the feature update of the current graph node, and the greater the corresponding spatial distance weight.

[0112] Road grade refers to the hierarchical classification of road segment units within a road network, such as expressways, national highways, provincial highways, county roads, and township roads. Higher-grade roads typically play a more important role and have a wider impact within the road network. Road grade weight information refers to the weight value determined based on the road grade of the road segment unit corresponding to a neighboring node, used to measure the semantic importance of that neighboring node. The higher the road grade, the greater the contribution of that neighboring node to the feature update of the current graph node, and the greater its corresponding road grade weight. Sampling probability refers to the probability value obtained by combining spatial distance weight information and road grade weight information, used to determine whether a neighboring node is selected to participate in message passing. A higher sampling probability indicates that the neighboring node should be preferentially selected to participate in the graph neural network computation.

[0113] In one example, the spatial distance between two road segment units can be calculated first based on their geometric coordinates, the nearest point distance along the centerline, or the shortest distance along the boundary. This distance is then mapped to a weight value corresponding to a preset distance interval. Simultaneously, the road level is read from the node feature information of neighboring nodes, and the road level weight value is determined according to a preset level mapping table. Subsequently, the spatial distance weight information and the road level weight information are weighted and fused to generate the sampling probability of the neighboring node, and neighboring node sampling is performed accordingly. The weight fusion method can be linear weighting, product normalization, or normalization followed by summation. The weight coefficients are determined by training configuration or empirical parameters. In practical applications, these parameters can also be adjusted according to the characteristics of the data source; this application does not impose any limitations on this.

[0114] For example, for a neighboring node of the current graph node, first obtain the geometric line strings of the road segment units corresponding to the current graph node and the road segment units corresponding to the neighboring node, calculate the minimum spatial distance between them, and substitute this minimum spatial distance into a preset decay function to obtain spatial distance weight information. This decay function monotonically decreases as the spatial distance increases, so that spatially closer neighboring nodes receive a larger spatial distance weight. For example, it can be represented as... ,in, This represents the spatial distance weighting information between graph node v and its neighbor node u. This represents the spatial distance between graph node v and its neighbor node u; This is a preset distance attenuation coefficient, used to control how quickly the spatial distance weight decreases as distance increases. The larger the value, the slower the weight decays with increasing distance, and distant neighbors can still obtain a certain weight. The smaller the value, the faster the weight decays as the distance increases; only very close neighbors can obtain a higher weight. This indicates a direct proportional relationship. In one example, this spatial distance weighting information can be further represented as... .

[0115] Simultaneously, the road level is read from the node feature information of the neighboring node. Road levels are numerically represented according to a preset enumeration rule, for example, expressway = 1, national highway = 2, provincial highway = 3, county road = 4, and township road = 5. That is, the smaller the road level value, the more important the road. Based on a preset mapping relationship between road level and weight, road level weight information is obtained; the smaller the road level value, the more important the road, and the greater the corresponding road level weight. In one example, the road level weight information can be inversely proportional to the road level value, which can be expressed as... ;in, This represents the road hierarchy weight information between graph node v and its neighbor node u; This represents the road grade value of the neighbor node u. In another example, the road grade weight information can be represented as... .

[0116] Next, the spatial distance weight information and road level weight information are weighted and fused or multiplied to obtain the fusion weight of the neighbor node. Then, the fusion weights of all neighbor nodes of the current graph node are normalized so that the sum of the sampling probabilities of each neighbor node is one, thus obtaining the sampling probability of the neighbor node. In one example, the sampling probability can be expressed as... ;in, This represents the sampling probability of neighbor node u; This represents the normalization factor, which is the sum of the products of the spatial distance weights and road grade weights of all neighboring nodes of the current graph node v. It is used to convert the product values ​​of each neighboring node into sampling probabilities, ensuring that the sum of the sampling probabilities of all neighboring nodes is 1. In another example, the sampling probability can also be expressed as... .

[0117] For example, in the dynamic adaptive sampling strategy, the sampling configuration is to retain only the top 15 neighbor nodes with the highest sampling probability in each layer of the graph neural network for message passing, replacing the original configuration of sampling 25 neighbors in the first layer and 10 neighbors in the second layer under uniform random sampling. With this adjustment, the computational cost of message passing for each node in the two layers under uniform random sampling is 25 + 10 = 35 aggregations, while under dynamic adaptive sampling, each node retains 15 neighbors per layer, resulting in a total of 30 aggregations across the two layers. This slightly reduces the computational cost while maintaining feature representation capabilities. Performance comparisons show that the accuracy loss from dynamic adaptive sampling is less than 0.5%, while inference throughput is improved by approximately 1.4 times, indicating that this strategy can effectively improve computational efficiency with almost no sacrifice in matching accuracy.

[0118] By replacing uniform random sampling with a dynamic adaptive sampling strategy, the sampling results of neighboring nodes are affected by both spatial proximity and road grade. Neighboring nodes that are closer and have a higher road grade or better meet the preset characteristics will have a higher sampling probability, thus enabling the inductive graph neural network to retain more representative road segment context information when performing local aggregation.

[0119] After adopting the above method, neighbor node sampling no longer relies solely on a single spatial proximity relationship, but incorporates road level into a unified probability calculation. The sampling results are more consistent with the semantics of the road network structure, thereby improving the stability of local road network map feature representation and reducing the interference of irrelevant neighboring nodes on feature aggregation.

[0120] S204. For a boundary segment unit located within a preset boundary buffer zone of a road network tile, determine the adjacent road segment units in the adjacent road network tiles of the boundary segment unit.

[0121] For example, a preset boundary buffer zone refers to a strip-shaped area formed by extending a certain distance inward or outward from the boundary of a road network tile. Road segment units within this zone, due to their proximity to the tile boundary, may have their complete spatial or topological neighbors located in adjacent tiles. A boundary road segment unit refers to a road segment unit located within this preset boundary buffer zone. An adjacent road network tile refers to another road network tile spatially adjacent to the current road network tile. An adjacent road segment unit refers to a road segment unit within an adjacent road network tile that is spatially adjacent to the boundary road segment unit.

[0122] In one example, for each road network tile, the preset boundary buffer zone of that tile is determined based on the tile boundary coordinates and the preset buffer distance. Road segment units falling within this range are marked as boundary road segment units. For each boundary road segment unit, based on its spatial location and tile adjacency, adjacent road network tiles are determined. Then, among these adjacent road network tiles, road segment units whose spatial distance from the boundary road segment unit is less than or equal to a preset threshold are searched and designated as its adjacent road segment units. Indicates road network tiles The corresponding preset boundary buffer; This represents a road segment unit within a preset boundary buffer zone; Indicates road network tiles Geographic boundaries (boundary coordinates); This represents a function for calculating spatial distance. Indicates the preset buffer distance. Meters, R can be a value of 100 meters.

[0123] S205. The feature vectors of the boundary road segment units and the feature vectors of the adjacent road segment units are fused to update the feature vectors of the boundary road segment units.

[0124] For example, fusion processing refers to the operation of combining or weighting the feature vector of a boundary road segment unit with the feature vector of its neighboring road segment units. The purpose is to enable the feature vector of the boundary road segment unit to supplement the neighborhood information across tiles and avoid the fragmentation of boundary features caused by tile cutting. Update refers to replacing the original feature vector of the boundary road segment unit with the vector obtained after fusion processing, which serves as the final feature representation of the road segment unit used for matching.

[0125] In one example, for each boundary road segment unit, its feature vector obtained in step S203 is weighted and summed with the feature vectors of its adjacent road segment units to obtain a fused feature vector. The feature vector of the boundary road segment unit is then updated using the fused feature vector. The feature vectors of non-boundary road segment units remain unchanged. After the above fusion process, each road segment unit has a final feature vector that reflects its local and cross-tile neighborhood information.

[0126] For example, you can follow the formula ;in, This represents the feature vector of the updated boundary segment unit; This represents the feature vector of the boundary segment unit before the update; Let v represent the set of adjacent road segment units of the boundary road segment unit v, and u represent the adjacent road segment unit. The feature vector representing an adjacent road segment unit; , This is the learnable parameter matrix.

[0127] By designing a cross-tile boundary topology information transfer mechanism, for Stroke nodes located within the R-meter buffer zone of the road network tile boundary, an additional round of cross-tile neighbor aggregation is performed. The embedding vectors of the corresponding Stroke nodes in adjacent tiles are used as additional neighborhood information for secondary aggregation, avoiding the breakage of boundary features caused by simple segmentation. This processing method completes independent graph computation within the tile and introduces adjacent tile context information in the boundary region, making the feature representation of the boundary road segment unit more complete, thereby ensuring the consistency and comparability of the road segment features output by each tile. Since the features at the boundary are fused and updated, subsequent road network matching based on feature vectors can obtain a more stable input representation, thereby improving the matching coherence and processing efficiency in the segmentation scenario.

[0128] S206. Establish index information for each road segment unit of the first data source and each road segment unit of the second data source.

[0129] For example, index information refers to a data structure used to accelerate spatial queries. An index allows for quick location of road segment units within a specific spatial range, avoiding traversal of all road segment units. Index information can be a grid index, an R-tree index, or other spatial index structures. Building index information involves constructing an index based on the spatial location of all road segment units for each data source to support subsequent rapid candidate filtering.

[0130] In one example, a grid index is constructed for all road segment units of the first data source based on their spatial location, dividing the spatial area into several grid units and recording the road segment unit identifiers contained within each grid unit. The same method is used to construct a grid index for all road segment units of the second data source. This yields the spatial index information for each of the two data sources.

[0131] S207. For each source road segment unit of the first data source, filter the road segment units of the second data source according to the index information to obtain the candidate road segment units of the second data source.

[0132] For example, the source road segment unit refers to the road segment unit currently to be matched in the first data source. The filtering process refers to the process of quickly identifying road segment units in the second data source whose spatial distance from the source road segment unit is within a preset range, using index information, thereby eliminating a large number of candidate objects that are too far away and cannot be matched. The candidate road segment unit refers to the set of road segment units in the second data source that are retained after the filtering process and may form a matching relationship with the source road segment unit.

[0133] In one example, a grid index is first established for all road segment units in the second data source. The area to be matched is divided into several grid units of the same size, and the identifiers of the second data source road segment units contained in each grid unit are recorded. For each source road segment unit in the first data source, the grid in which it is located and the set of grids within its surrounding extended range are determined based on the spatial location of the source road segment unit. For example, a preset distance threshold (e.g., 500 meters) is extended outward from the center point of the source road segment unit to determine the set of grids covering this range. Then, all road segment units falling within these grids are queried from the grid index of the second data source, and these road segment units are used as candidate road segment units for the source road segment unit. After the filtering process, each source road segment unit forms only a small number of candidate pairs with spatially adjacent second data source road segment units. Subsequent similarity calculations are only performed on these candidate pairs, thus avoiding the computational explosion problem caused by pairwise combinations of all road segment units in the entire area.

[0134] Another example involves first constructing a spatial index for all road segment units in the target road network tile Ttgt. Then, based on the distributed spatial index, a coarse spatial range screening can be performed on all road segment units in both the source road network tile Tsrc and the target road network tile Ttgt. Specifically, for each road segment unit in the source road network tile Tsrc, the spatial index is queried based on its spatial location to obtain a set of candidate road segment units whose spatial distance is within a preset distance threshold Dth. These candidate road segment units are then paired with the source road segment unit to form candidate pairs. Road segment units whose spatial distance exceeds Dth are directly excluded from the candidate set. After this coarse screening, each source road segment unit retains only a few spatially adjacent road segment units as candidates, reducing the total number of candidate pairs from the original... Descending to This means obtaining candidate road segment units from the second data source.

[0135] Distributed spatial indexing refers to deploying spatial index structures in a distributed computing environment to support fast range queries on massive amounts of spatial data. Spatial indexes can be R-tree indexes or grid indexes. R-trees use a tree structure to hierarchically divide spatial objects, making them suitable for spatial data with arbitrary distribution. Grid indexes divide space into fixed-size grid cells, offering a simple structure and fast query speed. Source road network tiles refer to the road network tiles participating in the matching from the first data source, while target road network tiles refer to the road network tiles participating in the matching from the second data source. This represents the total number of road segment units in the first data source; This represents the total number of road segment units in the second data source. This represents the order of magnitude of the number of candidate pairs formed by combining all source segment units in the first data source with all segment units in the second data source before coarse screening. K represents the average number of candidate segment units retained for each source segment unit after coarse screening. This represents the order of magnitude of the total number of candidate pairs after coarse screening. Since k is usually much smaller than... Therefore, the number of candidate pairs has decreased significantly.

[0136] S208. Based on the feature vectors of the source road segment units and the feature vectors of the candidate road segment units, determine the similarity of each candidate road segment unit.

[0137] For example, similarity is an index used to measure the degree of feature difference between source road segment units and candidate road segment units. The higher the similarity, the more likely they are to correspond to the same road entity. Similarity can be determined based solely on feature vectors, or it can be comprehensively measured by combining information from multiple aspects such as geometric morphology.

[0138] In one example, for each source segment unit and each of its candidate segment units, the feature similarity is calculated based on their feature vectors to obtain the similarity of the candidate segment unit.

[0139] In some possible implementations, geometric similarity is determined based on the geometric shape of the source road segment unit and the candidate road segment unit; Manhattan distance similarity and cosine similarity are determined based on the feature vectors of the source road segment unit and the candidate road segment unit; and the geometric similarity, Manhattan distance similarity and cosine similarity are weighted and fused to obtain the similarity of each candidate road segment unit.

[0140] For example, geometric morphology refers to the shape characteristics of a road segment unit in space, including the direction, length, curvature, and overall outline of the road segment unit; geometric similarity is an index used to measure the degree of consistency of the geometric morphology of two road segment units. The closer the geometric morphology, the higher the geometric similarity.

[0141] Manhattan distance similarity is a similarity index derived from the Manhattan distance between two feature vectors. It measures the degree of difference between feature vectors in the L1 norm sense. The smaller the difference, the higher the similarity.

[0142] Cosine similarity refers to the cosine value of the angle between two feature vectors. It is used to measure the degree of similarity between feature vectors in terms of direction. The more consistent the directions of two feature vectors are, the higher the cosine similarity.

[0143] Weighted fusion refers to the process of assigning preset weight coefficients to the above-mentioned multiple similarity components and summing the weighted results to obtain the comprehensive similarity.

[0144] In one example, for a source road segment unit and a candidate road segment unit, their geometric line strings are first extracted, and the discrete Hausdorff distance between them is calculated. This distance is then mapped to geometric similarity using a pre-defined monotonically decreasing function; the smaller the Hausdorff distance, the closer the geometric similarity is to 1. Simultaneously, the feature vectors of the source and candidate road segment units are obtained, and the Manhattan distance between the two feature vectors is calculated. This distance is then mapped to Manhattan distance similarity using a monotonically decreasing function; the smaller the Manhattan distance, the higher the Manhattan distance similarity. The cosine similarity between the two feature vectors is calculated as the cosine similarity component. Finally, based on pre-defined weight coefficients, the geometric similarity, Manhattan distance similarity, and cosine similarity are weighted and summed to obtain the similarity of the candidate road segment unit. The weight coefficients can be determined through a grid search on the validation set to optimize matching accuracy. For example, the similarity of the candidate road segment unit... It can be represented as ;in, Indicates geometric similarity; Indicates Manhattan distance similarity; Indicates cosine similarity; , , This indicates the preset weighting coefficient.

[0145] The similarity of candidate road segment units serves as the basis for candidate selection and target determination during the matching process. This allows geometric and graphical feature information to participate in the judgment, enabling comprehensive differentiation even when road segments are similar in shape but differ in attribute expression, or similar in attribute but have significant differences in spatial contour. This results in more stable matching results. Using this method, the similarity expression of candidate road segment units is more complete, and the matching judgment is more adaptable to local deformation and single feature deviations, thereby improving the correspondence accuracy and consistency of multi-source road network data.

[0146] S209. Based on the similarity of candidate road segment units, determine the target road segment unit that matches the source road segment unit in the first data source in the second data source.

[0147] For example, the target road segment unit refers to the road segment unit in the second data source that forms a matching relationship with the source road segment unit in the first data source, that is, the corresponding road segment unit that is determined to represent the same road entity. The target road segment unit can be determined based on the similarity ranking result of the candidate road segment units, and the candidate road segment unit with the highest similarity can be selected as the matching result.

[0148] In one example, for each source road segment unit in the first data source, its candidate road segment units are sorted from highest to lowest similarity, and the candidate road segment unit with the highest similarity is selected as the target road segment unit to be matched in the second data source. For example, for each source road segment unit in the first data source, its candidate road segment units are sorted from highest to lowest similarity. The candidate road segment units are sorted from high to low, and the top K are taken as the initial matching results. Then, geometric constraints are applied to the initial matching results, such as checking whether the spatial distance between matching pairs exceeds the preset upper limit, whether the Hausdorff distance between them is too large, and whether there are many-to-one conflicts where multiple source road segment units match the same target road segment unit. Matching pairs that do not meet the geometric constraints are eliminated, or only the pair with the highest comprehensive similarity is retained in many-to-one conflicts. Finally, the matching pairs that meet all the constraints are output as the final matching results.

[0149] After traversing all source road segment units of the first data source, the road network matching result is obtained, which contains the correspondence between the road segment units of the first data source and the road segment units of the second data source.

[0150] The multi-source road network data matching method provided in this application embodiment obtains road network tiles by segmenting the full-domain road network data of the first and second data sources to be matched. For each road network tile of each data source, a local road network map is constructed and a graph neural network is independently used to calculate the feature vector of the road segment unit. The boundary road segment units located in the tile boundary buffer are fused and updated across tile adjacent road segment units. Then, index information is established for the road segment units of the two data sources, and candidate road segment units are obtained by filtering the second data source based on the index. The similarity is calculated according to the feature vectors of the source road segment units and the candidate road segment units, and finally the matching result is determined according to the similarity. This approach achieves several advantages. First, by dividing the entire road network data into multiple smaller road network tiles and independently constructing and calculating graphs within each tile, it avoids the problem of excessively large graph size caused by constructing the entire road network as a single connected graph. This allows graph neural networks to be applied to large-scale multi-source road network data, improving matching efficiency. Second, by fusing cross-tile adjacency information for boundary road segment units, it compensates for the incomplete boundary features caused by segmentation, ensuring the expressive power of the feature vectors of road segment units and thus guaranteeing matching accuracy. Third, by establishing index information to filter road segment units from the second data source, it significantly reduces the number of candidate pairs that need to be calculated for similarity, lowers the computational complexity of the matching stage, and further improves overall processing efficiency.

[0151] In some embodiments, a navigation road network and a third-party travel data source from 200 cities nationwide are used as examples. The navigation road network comprises approximately 15 million road segments, and the third-party travel data source comprises approximately 8 million road segments. Input data sources include crowdsourced road networks (OSM format, approximately 6 million road segments), vendor A's high-precision map (custom format, approximately 4 million road segments), vendor B's navigation road network (approximately 5 million road segments), and trajectory-derived road networks (GeoJSON format, approximately 2 million road segments). These four data sources differ in format, accuracy, and coverage.

[0152] In the distributed data access and cleaning phase, the cleaning process is executed in parallel based on a 10-node distributed computing framework cluster. First, the four heterogeneous formats mentioned above are uniformly converted to the standard link-level CSV format to achieve data format unification. Second, the coordinate system of all data is normalized to the WGS84 coordinate system to eliminate spatial deviations caused by inconsistent coordinate references. Then, suspended nodes, pseudo-nodes, and duplicate arcs are automatically detected and repaired to restore the integrity of the road network topology. Next, a unified enumeration mapping table for attributes such as road grade and number of lanes is established to align different descriptions of the same semantic attribute from different data sources. Finally, Douglas-Peucker simplification is performed on the trajectory-derived road network with a tolerance of 2 meters to remove geometric jitter and redundant points in the trajectory data. After the above cleaning process, the multi-source heterogeneous road network data is converted into standardized road network data.

[0153] In the spatiotemporal sharding storage stage, a quadtree index structure is used to adaptively shard the standardized road network data. Based on differences in road network density, fine-grained tiles of 1km×1km are used in the core areas of first-tier cities, generating approximately 8000 tiles; 2km×2km tiles are used in the suburbs of first-tier cities, generating approximately 5000 tiles; 2km×2km tiles are used in the core areas of second- and third-tier cities, generating approximately 6000 tiles; and 4km×4km tiles are used in the suburbs of second- and third-tier cities, generating approximately 4000 tiles, totaling approximately 23,000 road network tiles. Each tile stores standardized link data, tile boundary coordinates, and a list of adjacent tile identifiers. The adjacent tile identifier list is used to support subsequent cross-tile boundary information transmission.

[0154] In the tiled graph parallel GNN embedding stage, a distributed deep graph library was used to schedule 23,000 road network tiles to a cluster of 8 GPUs for parallel processing. Each tile independently constructed a local road network map and performed inductive graph neural network training. The model was set to 2 layers, with the first layer sampling neighbors S1=25 and the second layer sampling neighbors S2=10, using residual connections and a mixed loss. We set the value to 0.7. After completing the local embedding within each tile, we perform cross-tile neighbor aggregation on the Stroke nodes within a 100-meter buffer zone of each tile boundary. This involves fusing and updating the embedding vectors of the spatially nearest Stroke nodes within the adjacent tile with the local embedding vectors of the boundary nodes themselves, thus avoiding boundary feature breaks caused by tile segmentation. Finally, we perform L2 normalization on all embedding vectors and write the normalized embedding vectors into the distributed vector database.

[0155] In the two-stage matching process of coarse screening and fine matching, coarse screening is based on grid indexing. It spatially filters all Stroke nodes between the source and target road network tiles, eliminating candidate pairs with a spatial distance exceeding 500 meters. After coarse screening, the number of candidate pairs is reduced from approximately 1.2 × 10^14 pairs (out of 15 million and 8 million road segments) to approximately 1.8 × 10^8 pairs, a compression ratio of approximately 666:1. In the fine matching stage, the comprehensive similarity S_total is calculated for each of the 1.8 × 10^8 candidate pairs remaining after coarse screening. The comprehensive similarity is obtained by weighted fusion of geometric similarity, Manhattan distance similarity, and cosine similarity. The top-1 pairs are selected based on their comprehensive similarity and output as the final matching result.

[0156] In some embodiments, in response to a local incremental event in the road network, the affected road network tiles affected by the local incremental event are located; the local road network map is reconstructed for the affected road network tiles, and the graph neural network is recalculated to update the feature vectors of the road segment units within the affected road network tiles, while the feature vectors of the road segment units within other road network tiles remain unchanged.

[0157] For example, a local incremental event in the road network refers to an update event in which road network data changes within a local spatial range, including adding road segments, modifying road segment attributes or geometry, deleting road segments, etc., which are usually triggered by data source updates or data collection.

[0158] Affected road network tiles refer to tiles whose geographic space contains road segment units that have changed. Since changes in road segment units will change the graph structure and set of road segment units within the tile, these tiles need to reconstruct the local road network map and recalculate the feature vectors.

[0159] Reconstructing the local road network map refers to the process of re-extracting road segment units and re-establishing spatial proximity edges and topological connection edges for affected road network tiles based on updated road network data. Re-performing graph neural network calculations involves re-executing feature aggregation and node updates using the updated local road network map to obtain the feature vectors of the changed road segment units. Keeping the feature vectors unchanged means that the feature vectors of road segment units within road network tiles unaffected by incremental events still use the previously calculated results and do not need to be recalculated.

[0160] In one example, the road network data access module monitors changes in the road network data source in real time. When it detects an event of adding, modifying, or deleting a road segment from a data source, it determines which one or more road network tiles the changed road segment falls into based on its geometric location, identifying these tiles as affected road network tiles. For each affected road network tile, road segment unit extraction and graph edge construction are re-performed based on the updated road network data within the tile to obtain a new local road network map. Then, a graph neural network is used to recalculate the features of this new local road network map, obtaining the updated feature vectors of each road segment unit within the tile, and these updated feature vectors are written into the feature vector library. For other unaffected tiles, their feature vectors remain unchanged, and the existing calculation results are continued.

[0161] Optionally, the updated feature vectors can be written into a distributed vector database, and subsequent matching tasks can directly retrieve the vector database to achieve feature calculation once and reuse multiple times.

[0162] In this approach, local updates only apply to the affected road network tiles. Local road network map reconstruction and feature vector refresh are both limited to the changed areas, while the calculation results for the unchanged areas remain stable. This allows incremental updates and existing matching results to be continuously connected within the same feature space.

[0163] After adopting this processing method, local changes to the road network only trigger local road network map reconstruction and inductive graph neural network recalculation within the local area, reducing the amount of redundant calculations on the entire road network and enabling incremental updates to be reflected in the feature vectors of the affected areas more quickly, thereby improving the timeliness of road network data updates and system processing efficiency.

[0164] For example, with an established embedding vector library, the processing flow for responding to local incremental updates of the road network is as follows. Taking a specific scenario of adding 5 roads, modifying 12 roads, and deleting 3 roads in a first-tier city as an example, the processing flow is as follows: The distributed data access module first detects the road network change event and locates 8 affected tiles based on the spatial coordinates of the changed road segments; then, only these 8 tiles are re-executed with Stroke extraction, local road network map construction, and inductive graph neural network inference; cross-tile aggregation updates are performed on tiles whose boundaries are affected; finally, only the embedding vectors of approximately 20,000 road segment units within these 8 tiles are updated, while the embedding vectors of other tiles remain unchanged. Time consumption statistics show that the time for identifying affected tiles is less than 1 second, the local recalculation time is approximately 4 minutes, the vector library update time is less than 30 seconds, and the total time is approximately 4 minutes. In contrast, if the baseline method of full recalculation is adopted, approximately 23,000 tiles nationwide need to be reprocessed, taking about 3 hours. The efficiency of incremental update is improved by about 45 times, which fully verifies the significant advantages of the local incremental update mechanism in large-scale road network dynamic maintenance scenarios.

[0165] In this embodiment, by detecting local incremental events in the road network and locating the affected road network tiles, a local road network map is reconstructed for the affected tiles, and graph neural network calculations are re-performed to update the feature vectors of road segment units within them, while keeping the feature vectors of road segment units in other tiles unchanged. This approach achieves several advantages. First, by only recalculating the changed road network tiles locally, the significant time overhead of reconstructing and recalculating the entire road network is avoided. This makes the time cost of road network update processing related to the scale of the changed area, rather than the scale of the entire data area, significantly improving the efficiency of dynamic road network updates. Second, since each tile is independent, local updates only require reprocessing the affected tiles, and multiple affected tiles can be computed in parallel, further shortening the update time and meeting the timeliness requirements of continuous iterative updates in high-precision map scenarios. Third, the updated feature vectors are directly overwritten into the feature vector library, allowing subsequent matching tasks to instantly obtain the latest features, ensuring the timeliness of road network matching results.

[0166] In some embodiments, a hot and cold data hierarchical scheduling strategy can be adopted. That is, based on the access frequency of road network nodes and road grade, the core urban road network is defined as hot data and kept resident in memory to ensure fast response in high-frequency access scenarios; the sparse suburban road network is defined as cold data and loaded from distributed storage on demand to reduce the storage overhead of resident memory. The hot and cold data classification is not fixed, but is automatically adjusted by the Least Recently Used K (LRU-K) access strategy according to the actual access situation of road network tiles. This allows tiles with increased access frequency or increased road importance to be dynamically upgraded to hot data, while tiles with decreased access frequency are downgraded to cold data, thereby achieving an adaptive balance between storage cost and inference latency.

[0167] Specifically, based on the access frequency of road network tiles in the past 7 days and the average road grade within each tile, all road network tiles are divided into three levels: hot data, warm data, and cold data. Hot data refers to tiles accessed at least 10 times in the past 7 days and with an average road grade of no more than level 3 (i.e., national highways and above). These tiles typically correspond to high-grade road networks in the core urban areas and have frequent access demands; therefore, they are permanently stored in GPU memory and host memory, with a storage size of approximately 200GB and an access latency of less than 10 milliseconds. Cold data refers to tiles accessed less than 3 times in the past 7 days, or tiles with an average road grade of no less than level 6 (i.e., county and township roads and below). These tiles are mostly distributed in sparse suburban road networks and have low access frequency; they are stored in distributed object storage, with a storage size of approximately 50TB and an access latency of less than 2 seconds. Warm data falls between hot and cold data and is loaded from SSDs on demand, with a storage size of approximately 2TB and an access latency of less than 100 milliseconds. By employing the aforementioned hot and cold tiering strategy, core road network tiles that are accessed frequently are placed in high-speed storage media to ensure inference latency, while sparse road network tiles that are accessed infrequently are placed in low-cost distributed storage to reduce storage overhead, thereby achieving a balance between storage cost and access performance.

[0168] In actual testing, the embodiments of this application achieved the following performance indicators: In terms of matching accuracy, the matching precision is not less than 90%, the matching recall is not less than 95%, and the F1 score is not less than 0.9, indicating that high matching accuracy is maintained even under the block-parallel architecture; In terms of computational efficiency, the embedding inference latency of a single tile is less than 5 seconds, and the candidate pair compression ratio in the global coarse screening stage is not less than 100:1, which significantly reduces the computational load in the subsequent fine matching stage; In terms of incremental updates, the recalculation time of local tiles is less than 10 seconds, and there is no need to reconstruct and retrain the entire road network, meeting the timeliness requirements of high-precision map continuous iterative update scenarios.

[0169] In some embodiments, this application also provides a matching system for multi-source road network data. The system is composed of a data access module, a distributed preprocessing module, a block graph construction module, a parallel GNN embedding module, a coarse screening module, a fine matching module, a vector persistence module, and an incremental update module connected in sequence.

[0170] The data access module is used for streaming access to multi-source heterogeneous road network data, including crowdsourced road networks, high-precision maps from multiple vendors, surveying and mapping vector road networks, and trajectory-derived road networks, and supports continuous acquisition of newly added or changed road network data.

[0171] The distributed preprocessing module is used to perform arc segmentation and noise reduction, topology repair, semantic attribute alignment and coordinate system normalization in parallel based on a distributed computing framework. It converts heterogeneous data into standardized road network data and uses a quadtree index structure to perform spatiotemporal sharding on the standardized road network data to obtain multiple road network tiles corresponding to each data source. Each road network tile stores road network data within the corresponding geographic spatial range.

[0172] The block graph construction module is used to independently construct a local road network graph for each road network tile of each data source. The road segment units within the tile are used as graph nodes, and the spatial proximity and topological connection relationships between road segment units are used as graph edges. Each graph node is assigned node feature information.

[0173] The parallel GNN embedding module is used to independently perform inductive graph neural network computation on each local road network map. It selects important neighbor nodes to participate in message passing through dynamic adaptive neighbor sampling to obtain the local feature vector of each road segment unit. For the boundary road segment unit located within the tile boundary buffer, this module further determines the spatially nearest road segment unit from the adjacent tiles and fuses the feature vector of the adjacent road segment unit with the feature vector of the boundary road segment unit itself to update the final feature vector, so as to avoid the boundary feature breakage caused by the segmentation.

[0174] The coarse screening module is used to perform spatial range coarse screening of road segment units from the first and second data sources based on distributed spatial indexes such as R-trees or grid indexes, eliminating candidate pairs whose spatial distance exceeds a preset threshold, thereby significantly reducing the size of candidate pairs.

[0175] The fine matching module is used to calculate the comprehensive similarity of the candidate road segment units retained after coarse screening. The comprehensive similarity is obtained by weighted fusion of geometric similarity, Manhattan distance similarity and cosine similarity. The Top-K candidates are selected according to the comprehensive similarity, and the final matching result is output after filtering out wrong matches by geometric constraints.

[0176] The vector persistence module is used to persistently store the feature vectors of each road segment unit in a distributed vector database, so that subsequent matching tasks can directly retrieve the feature vectors for similarity calculation, realizing the reuse of features after one calculation.

[0177] The incremental update module is used to respond to local incremental events in the road network, locate the affected tiles, reconstruct the local road network map only for the affected tiles and recalculate the graph neural network, update the feature vector of the road segment unit in it, and keep the feature vector of the remaining tiles unchanged, thereby avoiding the time overhead of full recalculation.

[0178] The collaborative work of the above modules enables the system to be applied to multi-source heterogeneous road network fusion scenarios involving tens of millions of road segments nationwide, and maintains high matching efficiency and accuracy in real business environments such as continuous iteration and updating of high-precision maps and multi-source data streaming access.

[0179] Understandably, while graph neural network-based road network matching methods have significantly improved matching accuracy, they still face major limitations in three areas: data, graph modeling and inference, and training and computing architecture in practical applications.

[0180] At the data level, these methods typically perform a one-time matching of only two complete static road network files, lacking the ability to adapt to multi-source, incremental, and fragmented road network big data. Furthermore, the method of loading the entire road network of the study area at once to construct a single large map easily leads to memory overflow as the data volume increases. Moreover, its static input assumption means that once a local update occurs in the road network, the entire road network map must be reconstructed and retrained or inferred, failing to support dynamic updates. In addition, heterogeneous road networks come from diverse sources, such as crowdsourced open street maps, high-precision maps from multiple vendors, surveyed vector road networks, and trajectory-derived road networks, generally exhibiting problems such as a single coordinate system, fragmented topological segments, suspended arcs, missing attributes, and geometric noise. Traditional GNN methods typically assume that the input data has been cleaned, making it difficult to directly address noise from multi-source data.

[0181] At the graph modeling and reasoning level, constructing a single connected road network graph for the target region and feeding the entire graph into GNN for reasoning can lead to graph size explosion, insufficient GPU memory or RAM, and inability to directly reason when the road network reaches millions of road segments. Calculating the embedding similarity of each pair of road segments will cause the number of candidate pairs to increase quadratically, which is not feasible for massive data. In the massive road network graph, each road segment has a large number of topological neighbors, and traversing all first-order neighbors for message passing will cause serious computational redundancy.

[0182] At the training and computation architecture level, existing methods mostly adopt single-machine offline training and lack distributed training framework design, which is only suitable for small-scale laboratory datasets. Each matching task calculates the embedding from scratch, without feature persistence and reuse mechanisms, resulting in high overhead from repeated computation. The same loading strategy is used for urban core road networks and sparse suburban road networks, and there is no hierarchical classification of hot and cold data, making it difficult to balance storage costs and inference latency.

[0183] The aforementioned limitations prevent existing GNN road network matching methods from being applied to real-world business scenarios such as the fusion of multi-source heterogeneous road networks across the entire domain, continuous iterative updates of high-precision maps, mixed processing of urban core and suburban road networks, and real-time matching of multi-source data streaming access. Therefore, there is an urgent need for a distributed GNN road network matching method for big data scenarios that can address the scalability bottlenecks in terms of data scale, graph scale, and computing architecture while retaining the accuracy advantages of the original GNN matching algorithm.

[0184] This application's embodiments utilize a block-based graph parallel embedding architecture to divide the entire road network into multiple tiles and independently construct a local road network graph on each tile for inductive graph neural network computation. This breaks through the graph size limit of single-machine GNN inference, enabling it to support big data matching tasks involving tens of millions of road segments. Simultaneously, through a two-level matching architecture combining coarse screening and fine matching, it first performs spatial range coarse screening of road segment units based on a distributed spatial index, and then calculates multi-dimensional similarity for the remaining candidate pairs. This compresses the number of candidate pairs from a quadratic order of pairwise combinations of all road segment units in the source and target road networks to a linear order, effectively solving the candidate pair combination explosion problem.

[0185] Regarding the utilization of computing resources, this embodiment stores the feature vectors of each road segment unit in a distributed vector database through a vector persistence module. Subsequent matching tasks can directly retrieve the stored feature vectors for similarity calculation without re-executing the graph neural network calculation each time, achieving feature calculation once and reuse multiple times, significantly improving matching efficiency. Simultaneously, through a hot and cold data hierarchical scheduling strategy, urban core road network tiles with high access frequency and high road grade are designated as hot data and permanently resided in memory, while sparse suburban road network tiles with low access frequency and low road grade are designated as cold data and loaded from distributed storage on demand, achieving a balance between storage cost and inference latency. Furthermore, based on a distributed training architecture, cross-machine parallel training is achieved, breaking through the upper limit of single-machine computing power.

[0186] Regarding multi-source data adaptation and dynamic updates, this application embodiment employs a distributed cleaning and normalization pipeline to perform arc segmentation and noise reduction, topology repair, semantic attribute alignment, and coordinate system normalization in parallel. This unifies the processing of heterogeneous data from multiple sources, including crowdsourced road networks, high-precision maps from various vendors, surveying vector road networks, and trajectory-derived road networks, resolving differences in coordinate systems, topological structures, attribute representations, and geometric noise. Simultaneously, an incremental update module responds to local incremental events in the road network, reconstructing the local road network map and recalculating the graph neural network only for affected tiles. This achieves local tile-level incremental calculations without requiring full-domain retraining, adapting to the business scenario of continuous iterative updates of high-precision maps. Under the aforementioned block-parallel architecture, this application embodiment still maintains a matching effect of precision no less than 90%, recall greater than or equal to 95%, and F1 score no less than 0.9, preserving the accuracy advantages of the original GNN matching algorithm while improving computational efficiency.

[0187] Figure 3 A schematic diagram of the structure of the multi-source road network data matching device provided in this application is shown below. Figure 3 As shown, the multi-source road network data matching device 300 provided in this embodiment includes:

[0188] The sharding module 301 is used to shard the full-domain road network data of the first and second data sources to be matched, respectively, to obtain road network tiles for each data source; wherein, each road network tile corresponds to a preset geographic spatial range, and each road network tile stores the road network data of the corresponding geographic spatial range.

[0189] The construction module 302 is used to construct a local road network map for each road network tile based on the road network data of each road network tile of the data source; wherein, the local road network map uses the road segment units within the road network tile as graph nodes, and the spatial proximity and topological connection relationships between the road segment units as graph edges;

[0190] The calculation module 303 is used to independently perform graph neural network calculations on each local road network map to obtain the feature vectors of each road segment unit of the data source;

[0191] The matching module 304 is used to perform matching processing based on the feature vectors of each road segment unit of the first data source and the feature vectors of each road segment unit of the second data source to obtain the road network matching result.

[0192] In one possible implementation, the computing module 303 is used for:

[0193] For each road network tile of the data source, a graph neural network is independently calculated for the local road network map of the road network tile to obtain the feature vector of each road segment unit in the road network tile;

[0194] For a boundary road segment unit located within a preset boundary buffer zone of a road network tile, determine the adjacent road segment units in the adjacent road network tiles of the boundary road segment unit;

[0195] The feature vectors of the boundary road segment units and the feature vectors of the adjacent road segment units are fused to update the feature vectors of the boundary road segment units.

[0196] In one possible implementation, the graph nodes have node feature information; the calculation module 303 is used for:

[0197] For each neighboring node of a graph node in a local road network graph, the sampling probability of that neighboring node is determined based on the node feature information of the graph node and the node feature information of the neighboring node.

[0198] Based on the sampling probability of each neighbor node, determine the neighbor node to be sampled corresponding to the graph node;

[0199] The feature vectors of each road segment unit in the road network tile are obtained by performing graph neural network calculations based on the graph node and its corresponding neighbor node to be sampled.

[0200] In one possible implementation, the computing module 303 is used for:

[0201] Based on the spatial distance between the road segment unit corresponding to the graph node and the road segment unit corresponding to the neighboring node, determine the spatial distance weight information;

[0202] Based on the road level in the node feature information of the neighboring node, determine the road level weight information;

[0203] The sampling probability of the neighboring node is determined based on the spatial distance weight information and the road level weight information.

[0204] In one possible implementation, the matching module 304 is used for:

[0205] Index information is established for each road segment unit of the first data source and each road segment unit of the second data source;

[0206] For each source road segment unit of the first data source, the road segment units of the second data source are filtered according to the index information to obtain the candidate road segment units of the second data source.

[0207] The similarity of each candidate road segment unit is determined based on the feature vectors of the source road segment unit and the feature vectors of the candidate road segment units.

[0208] Based on the similarity of candidate road segment units, the target road segment unit that matches the source road segment unit in the first data source is determined in the second data source.

[0209] In one possible implementation, the matching module 304 is used for:

[0210] Geometric similarity is determined based on the geometric shape of the source road segment unit and the geometric shape of the candidate road segment unit;

[0211] Based on the feature vectors of the source road segment units and the feature vectors of the candidate road segment units, the Manhattan distance similarity and cosine similarity are determined.

[0212] The similarity of each candidate road segment unit is obtained by weighted fusion of geometric similarity, Manhattan distance similarity and cosine similarity.

[0213] In one possible implementation, the fragmentation module 301 is used for:

[0214] For the global road network data of each data source, a quadtree index structure is used to spatially recursively partition the global road network data. Starting from the root node covering the global road network data, if the road network density in the current area exceeds the preset threshold, the current area is divided into four equal sub-areas. This process is repeated recursively until the road network density in each sub-area is less than or equal to the preset threshold or reaches the preset minimum tile size, thus obtaining the road network tiles of the data source.

[0215] In one possible implementation, the device further includes an update module for:

[0216] In response to localized incremental events in the road network, locate the affected road network tiles that are impacted by these events;

[0217] The local road network map is reconstructed for the affected road network tiles, and the graph neural network is recalculated to update the feature vectors of the road segment units within the affected road network tiles, while the feature vectors of the road segment units within other road network tiles remain unchanged.

[0218] The multi-source road network data matching device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.

[0219] Figure 4 A schematic diagram of the structure of the electronic device provided in this application. Figure 4 As shown, the electronic device 400 provided in this embodiment includes at least one processor 401 and a memory 402. Optionally, the electronic device 400 further includes a communication component 403. The processor 401, memory 402, and communication component 403 are connected via a bus.

[0220] In a specific implementation, at least one processor 401 executes computer execution instructions stored in memory 402, causing at least one processor 401 to perform the above-described method.

[0221] The specific implementation process of processor 401 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.

[0222] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.

[0223] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.

[0224] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0225] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.

[0226] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.

[0227] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.

[0228] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.

[0229] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0230] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0231] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0232] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0233] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0234] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope.

Claims

1. A method for matching multi-source road network data, characterized in that, include: The full-domain road network data of the first and second data sources to be matched are segmented to obtain road network tiles for each data source; wherein, each road network tile corresponds to a preset geographic spatial range, and each road network tile stores road network data corresponding to the geographic spatial range. For each data source, a local road network map of the road network tile is constructed based on the road network data of each road network tile of the data source; wherein, the local road network map uses the road segment units within the road network tile as graph nodes, and the spatial proximity and topological connection relationships between the road segment units as graph edges; Graph neural network calculations are performed independently on each of the local road network maps to obtain the feature vectors of each road segment unit of the data source; The road network matching result is obtained by matching the feature vectors of each road segment unit from the first data source and the feature vectors of each road segment unit from the second data source.

2. The method according to claim 1, characterized in that, The step of independently performing graph neural network calculations on each of the local road network maps to obtain the feature vectors of each road segment unit of the data source includes: For each road network tile of the data source, a graph neural network is independently calculated for the local road network map of the road network tile to obtain the feature vector of each road segment unit in the road network tile; For a boundary road segment unit located within a preset boundary buffer zone of the road network tile, determine the adjacent road segment units in the adjacent road network tiles of the boundary road segment unit; The feature vectors of the boundary road segment unit and the adjacent road segment unit are fused to update the feature vector of the boundary road segment unit.

3. The method according to claim 2, characterized in that, The graph nodes possess node feature information; for each road network tile of the data source, a graph neural network is independently performed on the local road network map of that road network tile to obtain the feature vector of each road segment unit in that road network tile, including: For each neighboring node of a graph node in the local road network map, the sampling probability of that neighboring node is determined based on the node feature information of the graph node and the node feature information of the neighboring node. Based on the sampling probability of each neighbor node, determine the neighbor node to be sampled corresponding to the graph node; The feature vectors of each road segment unit in the road network tile are obtained by performing graph neural network calculations based on the graph node and its corresponding neighbor node to be sampled.

4. The method according to claim 3, characterized in that, The step of determining the sampling probability of a neighboring node based on the node feature information of the graph node and the node feature information of the neighboring node includes: Based on the spatial distance between the road segment unit corresponding to the graph node and the road segment unit corresponding to the neighboring node, determine the spatial distance weight information; Based on the road level in the node feature information of the neighboring node, determine the road level weight information; The sampling probability of the neighboring node is determined based on the spatial distance weight information and the road level weight information.

5. The method according to claim 1, characterized in that, The matching process based on the feature vectors of each road segment unit from the first data source and the feature vectors of each road segment unit from the second data source to obtain the road network matching result includes: Index information is established for each road segment unit of the first data source and each road segment unit of the second data source; For each source road segment unit of the first data source, the road segment units of the second data source are filtered according to the index information to obtain candidate road segment units of the second data source. The similarity of each candidate road segment unit is determined based on the feature vector of the source road segment unit and the feature vector of the candidate road segment unit. Based on the similarity of the candidate road segment units, the target road segment unit matched by the source road segment unit in the first data source in the second data source is determined.

6. The method according to claim 5, characterized in that, The step of determining the similarity of each candidate road segment unit based on the feature vector of the source road segment unit and the feature vector of the candidate road segment unit includes: Geometric similarity is determined based on the geometric shape of the source road segment unit and the geometric shape of the candidate road segment unit; Manhattan distance similarity and cosine similarity are determined based on the feature vectors of the source road segment unit and the candidate road segment unit. The geometric similarity, the Manhattan distance similarity, and the cosine similarity are weighted and fused to obtain the similarity of each candidate road segment unit.

7. The method according to claim 1, characterized in that, The entire road network data of the first and second data sources to be matched are respectively processed into fragments to obtain road network tiles for each data source, including: For the global road network data of each data source, a quadtree index structure is used to spatially recursively divide the global road network data. Starting from the root node covering the global road network data, if the road network density in the current area exceeds a preset threshold, the current area is divided into four equal sub-areas. This process is repeated recursively until the road network density in each sub-area is less than or equal to the preset threshold or reaches the preset minimum tile size, thus obtaining the road network tiles of the data source.

8. The method according to any one of claims 1-7, characterized in that, The method further includes: In response to local incremental events in the road network, locate the affected road network tiles affected by the local incremental events in the road network; The local road network map is reconstructed for the affected road network tiles, and the graph neural network is recalculated to update the feature vectors of the road segment units within the affected road network tiles, while the feature vectors of the road segment units within other road network tiles remain unchanged.

9. A matching device for multi-source road network data, characterized in that, include: The sharding module is used to shard the global road network data of the first and second data sources to be matched, respectively, to obtain road network tiles for each data source; wherein, each road network tile corresponds to a preset geographic spatial range, and each road network tile stores road network data corresponding to the geographic spatial range. A construction module is used to construct a local road network map for each road network tile based on the road network data of each road network tile of the data source; wherein, the local road network map uses the road segment units within the road network tile as graph nodes, and the spatial proximity and topological connection relationships between the road segment units as graph edges; The calculation module is used to independently perform graph neural network calculations on each of the local road network maps to obtain the feature vectors of each road segment unit of the data source; The matching module is used to perform matching processing based on the feature vectors of each road segment unit from the first data source and the feature vectors of each road segment unit from the second data source to obtain the road network matching result.

10. An electronic device / computer-readable storage medium / computer program product, characterized in that, The electronic device includes: a memory and a processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-8; The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-8; The computer program product includes a computer program that, when executed by a processor, is used to implement the method as described in any one of claims 1-8.