Signal transmission system using road network sensors to measure traffic conditions
By deploying sensors in the traffic network and using graph reinforcement learning and structural entropy learning to abstract and reconstruct the road network graph based on coding trees, the problem of traffic network data noise and robustness is solved, and the accuracy of traffic status measurement is improved. Accuracy and robustness of graph neural networks.
Patent Information
- Application Number
- CN202310987829.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-07
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2043-08-07
AI Technical Summary
The existing technology has problems such as noise, low robustness, poor interpretability, low iteration efficiency and poor time-varying perception ability in traffic network data collection and graph structure optimization, resulting in low accuracy of traffic state measurement.
By deploying sensors in the traffic network to collect data, graph reinforcement learning and structural entropy learning are used to abstract and reconstruct the road network graph based on coding trees, reduce noise, optimize node features, and improve the robustness of the graph neural network.
Effectively identify and reduce noise in road network graphs, improve the richness of node feature information, improve the accuracy of traffic status measurement and the robustness of graph neural networks, and enhance the prediction capabilities of downstream tasks.
Smart Images

Figure CN116994434B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of signal transmission, and more specifically, to a signal transmission system for measuring traffic status using a road network sensor. Background Art
[0002] With the construction demand for intelligent transportation and other fields in the transportation field, how to accurately measure and collect data through road network sensors to achieve the measurement and prediction of traffic status has become an important issue. Among them, the road network is the basis for studying the transportation field. An excellent traffic road network can provide accurate road network information for downstream related tasks. The road network in the real world has three basic elements: "nodes, sections, and turns". Taking these elements into consideration, the real traffic road network is often represented by a graph.
[0003] However, there are certain defects in directly constructing a traffic network map using traffic network data collected by sensors in the traffic network, such as noise, incompleteness, and even certain contradictions, which makes the accuracy of using the road network map to measure downstream traffic conditions low. Therefore, how to optimize the traffic network map based on the traffic network data collected in real time by sensors in the traffic network to improve the quality of the given road network map of the graph neural network in the downstream task is an important factor in improving traffic state measurement. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a signal transmission system for measuring traffic status using road network sensors, so as to obtain traffic flow data through various sensors deployed in the traffic road network, and use graph reinforcement learning and structural entropy learning to abstract and reconstruct the road network graph based on the collected traffic flow data using a coding tree. While effectively identifying and reducing the attribute noise and edge noise in the road network graph, the node features in the road network graph are optimized, making the node features more informative, thereby improving the robustness of the graph neural network in downstream tasks, so as to improve the accuracy of traffic status measurement.
[0005] In a first aspect, an embodiment of the present invention provides a signal transmission system for measuring traffic conditions using road network sensors, the system comprising at least one type of road network sensor and a server, the road network sensor being deployed at a road intersection, a roadside and / or a vehicle, the server comprising a memory and a processor, and each of the road network sensors being communicatively connected to the server;
[0006] The road network sensor is used to periodically collect traffic network data and transmit the traffic network data to the server, wherein the traffic network data includes at least one or more of the following: traffic flow data, vehicle speed data, and road change conditions;
[0007] The processor is used to obtain the corresponding traffic status according to the traffic network data, and specifically performs the following steps:
[0008] Determine the initial road network diagram according to the traffic road network data;
[0009] Performing graph enhancement on the initial road network graph to obtain an enhanced fusion graph;
[0010] Determine a corresponding target coding tree based on the structural entropy and the enhanced fusion graph;
[0011] Reconstructing the target coding tree to obtain a target road network graph;
[0012] Perform feature processing on the target road network graph to obtain the corresponding traffic status.
[0013] In a second aspect, an embodiment of the present invention provides a method for determining a traffic network graph, the method comprising:
[0014] Determine the initial road network diagram according to the traffic road network data;
[0015] Performing graph enhancement on the initial road network graph to obtain an enhanced fusion graph;
[0016] Determine a corresponding target coding tree based on the structural entropy and the enhanced fusion graph;
[0017] The target coding tree is reconstructed to obtain a target road network graph.
[0018] In a third aspect, an embodiment of the present invention provides a traffic network diagram determining device, the device comprising:
[0019] A graph determination unit, configured to determine an initial road network graph according to the traffic road network data;
[0020] A graph enhancement unit is configured to perform graph enhancement on the initial road network graph to obtain an enhanced fusion graph;
[0021] A tree determination unit, configured to determine a corresponding target coding tree based on the structural entropy and the enhanced fusion graph;
[0022] The graph reconstruction unit is configured to perform graph reconstruction on the target coding tree to obtain a target road network graph.
[0023] In a fourth aspect, an embodiment of the present invention provides a server, comprising a memory and a processor, wherein the memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method as described above.
[0024] In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program implements the method described above when executed by a processor.
[0025] In a sixth aspect, an embodiment of the present invention provides a computer program product, which, when executed on a computer, enables the computer to execute the method described above.
[0026] The embodiment of the present invention collects traffic network data such as traffic flow, vehicle speed, and / or road changes by deploying various types of road network sensors in the traffic network, and transmits the collected traffic network data to a server, determines an initial road network graph based on the traffic network data through the server, performs graph enhancement on the initial road network graph, obtains an enhanced fusion graph, determines a corresponding target coding tree based on structural entropy and the enhanced fusion graph, and performs graph reconstruction on the target coding tree to obtain a target road network graph, so as to measure traffic status based on the target road network graph. Therefore, in this embodiment, the road network sensor can collect traffic network data in real time, and reconstruct the graph based on the traffic network data to reduce graph noise, improve the feature expression capability of the graph, and thus improve the accuracy of traffic status measurement. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
[0028] Figure 1 is a schematic diagram of a signal transmission system according to an embodiment of the present invention;
[0029] Figure 2 is a flow chart of a method for determining a traffic network diagram according to an embodiment of the present invention;
[0030] Figure 3 is a flow chart of a method for determining an initial road network diagram according to an embodiment of the present invention;
[0031] Figure 4 It is a schematic diagram of a construction process of an initial road network diagram according to an embodiment of the present invention;
[0032] Figure 5 is a flow chart of a graph enhancement method according to an embodiment of the present invention;
[0033] Figure 6 is a schematic diagram of a graph enhancement process according to an embodiment of the present invention;
[0034] Figure 7 is a schematic diagram of a target coding tree determination process according to an embodiment of the present invention;
[0035] Figure 8Schematic diagram of coding tree update of an edge strategy in an embodiment of the present invention;
[0036] Fig. 9 is a schematic diagram of coding tree update of another edge strategy in an embodiment of the present invention;
[0037] Fig.10 is a schematic diagram of updating a coding tree of a node strategy according to an embodiment of the present invention;
[0038] Fig.11 is a schematic diagram of a coding tree dynamic adjustment process according to an embodiment of the present invention;
[0039] Fig.12 is a flow chart of a graph reconstruction method according to an embodiment of the present invention;
[0040] Fig.13 Schematic diagram of the architecture of the traffic network graph reconstruction model according to an embodiment of the present invention;
[0041] Fig.14 is a schematic diagram of the process of the method for determining a traffic network diagram according to an embodiment of the present invention;
[0042] Fig.15 is a schematic diagram of a traffic network diagram determining device according to an embodiment of the present invention;
[0043] Fig.16 is a schematic diagram of a server according to an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The present application is described below based on embodiments, but the present application is not limited to these embodiments. In the detailed description of the present application below, some specific details are described in detail. It is possible for those skilled in the art to fully understand the present application without the description of these details. In order to avoid confusing the essence of the present application, known methods, processes, flows, components and circuits are not described in detail.
[0045] In addition, persons of ordinary skill in the art will appreciate that the drawings provided herein are for illustration purposes and are not necessarily drawn to scale.
[0046] Unless the context clearly requires otherwise, the words "include", "comprising" and similar words throughout the application should be interpreted as including rather than exclusive or exhaustive; that is, the meaning is "including but not limited to".
[0047] In the description of this application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, the meaning of "plurality" is two or more.
[0048] The solutions described in this specification and the embodiments, if they involve the processing of personal information or information in public places, will be processed on the premise of having a legal basis (such as obtaining the consent of the subject of personal information or relevant departments, or being necessary for the performance of a contract, etc.), and will only be processed within the scope of regulations or agreements. If a user refuses to process personal information other than the necessary information for basic functions, it will not affect the user's use of basic functions.
[0049] Existing graph neural network methods can effectively mine road network information, but their effectiveness is limited by the reliability of the graph structure, and most of the traffic map data in reality is noisy. Graph structure learning can improve the quality of the graph structure to a certain extent, which is beneficial to graph representation. Existing graph structure learning focuses on parameterizing the adjacency matrix of the graph and refining the graph structure through regularization constraints. Related technical solutions can mainly use metric-based methods or probability sampling-based methods to optimize the graph structure.
[0050] Metric-based methods: The weight of an edge between two nodes can be expressed as a distance metric between two end nodes. Metric learning methods optimize the structure of the graph, i.e., the adjacency matrix, by learning a bunch of metric functions in the representation. The adjacency matrix is then merged into the original adjacency matrix. At the same time, sparse regularization is added to prevent the huge computational burden and noise brought by overly dense graphs. Therefore, post-processing operations are usually performed based on the weights of the edges to obtain a kNN graph. Common metrics include Gaussian kernel function, inner product, cosine similarity, attention mechanism, or hybrid metrics.
[0051] Probabilistic sampling-based methods: Unlike metric learning methods that directly derive edge weights from pairwise relationships, probabilistic modeling is done in a deterministic way by modifying the structure of the graph. Probabilistic modeling methods assume that the graph is formed by a sampling process from a specific distribution, and model the probability of sampling edges through learnable parameters.
[0052] However, the above graph structure optimization method still has the following problems to be solved:
[0053] 1) Robustness to system noise on heterogeneous graphs. Existing graph structure learning methods improve the performance of node and topological structure features by reconstructing edge features. However, since such methods add some things that will affect the learning ability of graph neural network representation, such as uncertain prior topological structure, supervision information and node representation, these will inevitably generate additional noise and edge connections in the graph structure.
[0054] 2) Model interpretability. Existing graph structure learning methods fully parameterize the adjacency matrix, which on the one hand leads to high storage and update costs, and on the other hand leads to low model interpretability. In addition to some studies on improving the interpretability of graph neural networks, there are few works that can effectively measure and explain the evolution of graph topology during graph structure learning.
[0055] 3) Low iteration efficiency. Existing graph modeling methods require optimization of the adjacency matrix, which has a high algorithm complexity. In the traffic sequence system, although the spatial relationship changes slightly, each time step using the traditional graph learning method requires restarting the optimization, which is inefficient.
[0056] 4) Poor time-varying perception. Existing methods model the graph at each time step independently, and it is difficult to model the temporal relationship between dynamic road network graphs.
[0057] Therefore, how to effectively fuse node features and topological features in a noisy time-varying environment to obtain a graph structure that is friendly to the graph neural network is still a problem to be studied. Therefore, an embodiment of the present invention provides a signal transmission system that uses road network sensors to measure traffic conditions, so that various road network sensors in the traffic network can collect traffic network data in real time, generate an initial road network graph based on the traffic network data, perform graph enhancement learning on the initial road network graph, and use a coding tree based on structural entropy learning to abstract and reconstruct the road network graph. While effectively identifying and reducing attribute noise and edge noise in the road network graph, it can optimize the node features in the road network graph, making the node feature information richer, thereby improving the robustness of the graph neural network in the downstream tasks, and further improving the measurement accuracy of the traffic status in the downstream tasks. Among them, the traffic status in the downstream tasks may include traffic flow, or traffic status, etc. The downstream tasks may be path planning based on traffic flow, arrival time prediction, etc., which are not limited by this embodiment.
[0058] Figure 1 The signal transmission system of the embodiment of the present invention uses a road network sensor to measure the traffic status. Figure 1 As shown, the traffic network processing system of the embodiment of the present invention includes various road network sensors 11 and a server 20 deployed in the traffic network 10. Among them, each road network sensor 11 is in communication connection with the server 20.
[0059] Furthermore, the road network sensor 11 can be deployed at a road intersection, roadside and / or on a vehicle. Optionally, the road network sensor can be an image sensor, a radar sensor, an ultrasonic sensor, an infrared sensor, a magnetic sensor, or a temperature and humidity sensor. This embodiment does not limit the type of the road network sensor, and it only needs to be able to collect relevant traffic network data in the traffic network.
[0060] In this embodiment, the road network sensor 11 is used to periodically collect traffic network data and transmit it to the server 20, so that the server 20 can dynamically update the target road network map based on the received traffic network data, and then obtain a road network map sequence over a period of time, that is, a target road network map corresponding to different times, and perform feature processing on the road network map sequence to measure the corresponding traffic state. For example, the road network map sequence is feature processed by a pre-trained traffic flow prediction model to obtain the corresponding traffic flow data. Therefore, this embodiment can optimize the road network map based on the traffic network data periodically collected by the road network sensor 11, improve the robustness of the graph neural network in the downstream task, and then improve the measurement accuracy of the traffic state.
[0061] Furthermore, the traffic network data includes data collected by the road network sensors 11 in working state in the traffic network, which may include traffic flow data, vehicle speed data, road changes, and / or temperature and humidity information. Among them, traffic flow data, vehicle speed data, traffic changes can be collected and acquired by sensors such as image sensors, radar sensors, ultrasonic sensors, infrared sensors, magnetic sensors, etc., and temperature and humidity information can be acquired by temperature and humidity sensors. For example, image information can be collected according to an image sensor, and traffic flow can be determined based on the number of vehicles in the image, or vehicle speed can be determined based on the position changes of vehicles at different times. Road changes may include road closures, congestion, accidents, and other situations that affect road connectivity.
[0062] In this embodiment, the server 20 may include a memory and a processor. The memory may store information such as received traffic network data, historical target network graphs, historical target coding trees, and codes executed by the processor. The processor is used to determine the target network graph based on the received traffic network data, and determine the corresponding traffic state based on the characteristics of the target network graph. Specifically, the processor may determine the initial network graph based on the traffic network data, perform graph enhancement on the initial network graph, obtain an enhanced fusion graph, determine the corresponding target coding tree based on the structural entropy and the enhanced fusion graph, perform graph reconstruction on the target coding tree, obtain the target network graph, perform feature processing on the target network graph, and obtain the corresponding traffic state. Furthermore, the target coding tree may also be dynamically updated based on the difference between the historical traffic network data collected by each network sensor and the currently collected traffic network data to obtain a network graph sequence.
[0063] The embodiment of the present invention collects traffic network data such as traffic flow, vehicle speed, and / or road changes by deploying various road network sensors in the traffic network, and sends the collected traffic network data to the server, determines the initial road network graph according to the traffic network data through the server, performs graph enhancement on the initial road network graph, obtains the enhanced fusion graph, determines the corresponding target coding tree based on the structural entropy and the enhanced fusion graph, and performs graph reconstruction on the target coding tree to obtain the target road network graph, performs feature processing on the target road network graph, and obtains the corresponding traffic state. Therefore, this embodiment can obtain traffic flow data through various sensors deployed in the traffic network, and abstract and reconstruct the road network graph based on the collected traffic flow data using the coding tree through graph enhancement learning and structural entropy learning, while effectively identifying and reducing the attribute noise and edge noise in the road network graph, it can optimize the node features in the road network graph, making the node feature information richer, thereby improving the robustness of the graph neural network in the downstream task and the measurement accuracy of the traffic state in the downstream task.
[0064] Figure 2 FIG. 1 is a flow chart of a method for determining a traffic network diagram according to an embodiment of the present invention, which is applied to the server 20. Figure 2 As shown, the method for determining a traffic network diagram in an embodiment of the present invention comprises the following steps:
[0065] Step S110, determining an initial road network diagram according to the traffic road network data.
[0066] Figure 3 : is a flow chart of a method for determining an initial road network diagram according to an embodiment of the present invention. A traffic network refers to a network system composed of various traffic routes and traffic facilities (such as roads, railways, bridges, tunnels, etc.) used to connect transportation between different locations. Therefore, the traffic network structure is usually represented by a graph. Figure 3 As shown, the initial road network diagram of this embodiment is determined by the following steps:
[0067] Step S111, obtaining the traffic network data corresponding to at least one moment. In an optional implementation, since the traffic network data has the characteristics of time series change, for example, changes in the network structure caused by special circumstances (road closure due to reasons such as road construction, operation of new traffic facilities, etc.), or changes in traffic data (traffic flow, vehicle speed, etc.) on the road at different times, may cause changes in the road network map. Therefore, the traffic network data obtained by this embodiment may include the traffic network data collected at a certain moment. In another optional implementation, since the traffic network data generally does not change much in a short period of time, and due to the limitation of real-time communication capabilities, etc., the traffic network data collected at one moment may have data missing of some road network nodes. Therefore, in order to avoid the sparsity of the traffic network data collected at one moment, this embodiment can obtain the traffic network data collected at multiple moments within a period of time to construct the initial road network map.
[0068] Step S112, determining the road network node according to the intersection and / or the location of the road network sensor in the traffic road network data. The road network sensor is used to use the traffic data on the corresponding road, such as collecting data such as traffic flow, vehicle speed, and road changes. Optionally, the road network sensor includes any sensor for collecting traffic data, such as an image sensor, a radar sensor, an ultrasonic sensor, an infrared sensor, a magnetic sensor, a temperature and humidity sensor, etc., which are set within the traffic road range or on a vehicle entering the traffic road range. This embodiment does not limit the type of sensor.
[0069] Step S113, determining the initial road network graph according to the characteristic information of each road network node. Further optionally, the characteristic information of the road network node includes a combination of one or more of the following: location information of the road network node, road connectivity of each road network node, traffic flow, speed of traffic objects, congestion level, distance between road network nodes with connectivity, transportation cost, travel time, etc.
[0070] In this embodiment, a road network node is used to represent the intersection (i.e., road junction) and / or the location of the road network sensor in the traffic network data, and an edge is used to represent the traffic route connecting each intersection and / or the location of the road network sensor, and the characteristics of each road network node and the weight of the edge are determined based on the characteristic information of each intersection and / or the location of the road network sensor, so as to obtain the initial road network graph corresponding to the traffic network data. Among them, the weight of the edge can be determined according to the distance, transportation cost, and / or travel time between the road network nodes with connectivity.
[0071] In an optional implementation, the initial road network graph can be defined as a directed graph G = (V, E), where V is a set of road network nodes and E is a set of edges. Each road network node v∈V represents a road intersection or the location of a road network sensor, and each edge (u, v)∈E represents a continuous traffic section, that is, if the road network node v can be reached from the road network node u, then there is an edge (u, v) in E.
[0072] In addition to the topological structure of the road network itself, the road network in the real world also includes various physical attributes, such as the physical distance between road network nodes and other road network data. The initial road network graph can also express these attribute information. Further, the initial road network graph of this embodiment can be expressed as G = {V, E, X}. Where V represents the set of road network nodes, represents the edge set, X∈R n*d is the road network node feature (i.e., the physical attribute information in the above road network data). n represents the number of road network nodes, and d represents the dimension of the road network node feature. n×n Represents the adjacency matrix of the initial road network graph G. d(v i )=Σ j A ij is the network node v i The degree of . Among them, 0≤i≤n, 0≤j≤n. That is, the road network node v i The degree of a node can be represented by the number of adjacent network nodes (that is, the number of edges connected to it).
[0073] Furthermore, the initial road network diagram of this embodiment can also be represented as a graph with attributes G = (V, E, A V ,A E ,A B ). V represents the set of network nodes, and E represents the set of edges. V Represents the attributes of each road network node, such as the geographical location, longitude and latitude of the road network node. E Represents the attributes of each road segment (i.e., edge), such as the physical length of the road segment, the maximum speed of the road segment, etc. B Represents the properties of a road pair (u,v)(v,w), such as the angle between the road pairs, etc. Where u∈V, v∈V, w∈V, (u,v)∈E, (v,w)∈E.
[0074] As mentioned above, this embodiment does not limit the graphical representation of the initial road network graph of this embodiment, as long as it can conform to the traffic road network data.
[0075] Figure 4 is a schematic diagram of an initial road network diagram according to an embodiment of the present invention. Figure 4As shown, this embodiment obtains traffic network data d1-dT by acquiring multiple road network sensors 41 deployed in the traffic network, and constructs an initial road network graph G based on the above graph construction method. Among them, d1 represents the traffic network data collected by each road network sensor 41 at the first moment, dT represents the traffic network data collected by each road network sensor 41 at the Tth moment, and T≥1. It should be understood that Figure 4 The initial road network graph G in is merely exemplary and does not represent the road network graph under the actual road network.
[0076] Step S120, the initial road network graph is enhanced to obtain an enhanced fusion graph. Since the initial road network graph is directly constructed based on the traffic network data, the feature information of each road network node may not be fully represented. Therefore, this embodiment enhances the initial road network graph to merge the attribute features of the road network nodes and the information of the neighboring nodes as much as possible, thereby improving the feature representation capability of the road network graph.
[0077] Figure 5 is a flow chart of a method for image enhancement according to an embodiment of the present invention. In an optional implementation, Figure 5 As shown, the graph enhancement process of this embodiment includes the following steps:
[0078] Step S121, calculate the similarity between each road network node in the initial road network graph, and obtain the corresponding similarity matrix. The similarity matrix includes the similarity between each road network node. The similarity matrix can be expressed as S∈R |V|×|V| Among them, V represents the set of road network nodes in the initial road network graph, and |V| represents the number of road network nodes in the road network node set V.
[0079] Optionally, this embodiment can use the distance between the feature vectors corresponding to the road network nodes (such as cosine distance, Euclidean distance, etc.), dot product or heat kernel to characterize the similarity between the road network nodes. Further optionally, in order to describe the linear correlation between the road network nodes, this embodiment can also use the Pearson correlation coefficient (PCC) to represent the similarity measure between the road network nodes. The specific formula is:
[0080]
[0081] Among them, S ij Represents the similarity between network node i and network node j, where x i ,x j ∈R 1×d are the attribute characteristics of network node i and network node j respectively, u i and σ i is the attribute feature x i The mean and variance of j and σ jis the attribute feature x j The mean and variance of , E is the dot product operator.
[0082] In another optional implementation, this embodiment calculates the similarity between a road network node and other road network nodes whose distances are within a predetermined distance range, and sets the similarity between a road network node and other road network nodes whose distances are beyond the predetermined distance range to 0, so as to obtain a similarity matrix corresponding to the initial road network graph. Thus, the amount of calculation for obtaining the similarity matrix can be reduced, and the efficiency of constructing the road network graph can be improved.
[0083] Step S122, create edges between each road network node based on the similarity matrix, and obtain a road network neighbor graph. Optionally, this embodiment constructs edges between road network nodes based on the similarity between each road network node in the similarity matrix S. Further, if two road network nodes are connected by an edge, the weight of the edge can be determined by the similarity of the two corresponding road network nodes. For example, the similarity is directly determined as the weight of the edge, or the edge weight is determined based on a reference factor and the similarity (for example, the weight of the edge is represented by the sum or product of the reference factor and the similarity), and this embodiment does not limit this. It should be understood that this embodiment does not limit the method of the reference factor, which can be consistent with the traffic road network scenario. For example, it can be fixed or it can change with the change of the road network diagram.
[0084] In an optional implementation, after obtaining the similarity matrix S, a k-NN graph (i.e., a road network neighbor graph) can be constructed based on the similarities between the road network nodes in the similarity matrix S. Wherein, k represents the number of other road network nodes connected to the road network node through edges, and k≥1, i.e., the number of edges corresponding to the road network node.
[0085] Furthermore, the road network neighbor graph can be expressed as G knn = {V,E knn}. Among them, V represents the set of road network nodes, E knn Represents the edge set created based on the similarity matrix, that is, E knn The edges in represent the edges connecting a road network node and its nearest (i.e., the most similar) k points. Furthermore, the road network neighbor graph G knn The weight of an edge can be determined by the similarity between its two corresponding road network nodes.
[0086] Step S123, determining an enhanced fusion graph according to the initial road network graph and the road network neighbor graph.
[0087] In an optional implementation, this embodiment converts the road network neighbor graph G knn Mixed with the original image G to get the final image, G f = {V,E f =E∪Eknn}. Among them, the enhanced fusion graph G f The weights of the edges in can be based on the initial graph G of the road network and the neighboring graph G of the road network knn For example, if the enhanced fusion graph G f The edge in the road network is only in the initial graph G, then the weight of the edge in the initial graph G is determined as its weight in the enhanced fusion graph G f The weights in the enhanced fusion graph G f The edges in the road network neighbor graph G are only knn In the road network neighbor graph G knn The weight in the enhanced fusion graph G is determined by f The weights in the enhanced fusion graph G f The edges in are both in the initial graph G and the neighboring graph G knn In the above example, you can select one of them as the enhanced fusion graph G f The weights in the enhanced fusion graph G can be obtained by weighted average calculation f The weight in .
[0088] In another optional implementation, this embodiment obtains the union of the initial road network graph and the road network neighbor graph, obtains the candidate graph, reassigns the weights of the edges of the candidate graph, and obtains the enhanced fusion graph G f . Optionally, the re-assigned weight is determined based on the similarity of the road network nodes corresponding to the edge and the reference factor. The reference factor is determined based on the feature information of the road network nodes and edges in the initial road network graph, the road network neighbor graph, or the enhanced fusion graph. Specifically as follows:
[0089]
[0090] Among them, w ij To enhance the road network nodes i and j in the fusion graph Gf, S ij represents the similarity between network node i and network node j, and M is the reference factor. |V| represents the number of nodes corresponding to the network node set V in the enhanced fusion graph Gf, and |E| represents the initial network graph G or the network neighbor graph G knn , or the number of edges corresponding to the edge set in the enhanced fusion graph Gf. 1<i,j<n S ij Represents the sum of similarities between each road network node in the enhanced fusion graph Gf.
[0091] Therefore, this embodiment can re-assign the enhanced fusion graph and increase the relatively small weight through the reference factor, which makes the selection of the number of adjacent nodes k more sensitive to noise, so as to better identify and reduce the attribute noise and edge noise in the road network graph. At the same time, the reference factor M of this embodiment is not a pre-fixed value, but a value that changes with different initial road network graphs, so that each initial road network graph has a reference factor that is most suitable for the initial road network graph itself, which further improves the noise identifiability in the current road network graph construction process and can further reduce the noise in the road network graph.
[0092] Furthermore, in this embodiment, due to the excessively large k value, the obtained enhanced fusion graph G f There is too much noise and the computational complexity is high, while too small a k value will result in the obtained enhanced fusion graph G f The information in the enhanced fusion graph G is not sufficient and it is difficult to extract hierarchical semantics from it. Therefore, in this embodiment, the number of neighboring nodes k of each road network node in the road network neighbor graph is based on the enhanced fusion graph G. f The structural entropy is determined.
[0093] Since the information entropy of a graph is used to measure uncertainty in the graph (e.g., uncertainty in the graph structure, i.e., the diversity of the graph structure), and a larger information entropy of a graph means that the graph has more information, this embodiment can determine the number of neighboring nodes k of each road network node in the road network neighbor graph according to the structural entropy corresponding to the amount of information required to enhance the fusion graph.
[0094] The general graph information entropy is expressed as follows:
[0095]
[0096] Among them, M G is a structured or unstructured graph submodule m i Sets (such as subgraphs, nodes, neighborhoods, etc.), P(m i ) is used to measure module m i The commonly used measurement methods include centrality-based, path-based, and random walk-based. In the graph information entropy based on hierarchical partitioning, M G The structure is a directed graph or tree, such as a coding tree, m i Is a multi-level tree node sub-collection.
[0097] Therefore, this embodiment can determine the image submodule m of the enhanced fusion image corresponding to different k values. i , and determine the entropy value corresponding to the enhanced fusion graph obtained under different k values, and determine the k value that meets the requirements according to the entropy value. Therefore, this embodiment can enhance the initial road network graph based on structural entropy to enrich the information that the graph can represent while reducing graph noise.
[0098] Further, optionally, the uncertainty of the node set of the graph is measured in the one-dimensional structure, which is also the maximum value of the information that can be embedded in the graph. Optionally, the one-dimensional structural entropy of the graph can be regarded as degenerating into the unstructured Shannon entropy, and the specific formula is:
[0099] H 1 (G)=-Σ v∈V d v / vol(G)log2 d v / vol(G)
[0100] Among them, V represents the set of road network nodes in the graph G, d v is the degree of a network node v, and vol(G) is the sum of the degrees of all network nodes. v It can be represented by the number of other road network nodes connected to the road network node v through edges (that is, the number of edges corresponding to the road network node v).
[0101] Therefore, if the enhanced fusion graph G in this embodiment f With a larger one-dimensional structural entropy, it represents an enhanced fusion graph G f Possess more information. Therefore, this embodiment can determine the number of adjacent nodes that makes the one-dimensional structural entropy of the enhanced fusion graph reach the first predetermined condition, and determine the road network neighbor graph based on the adjacent degree matrix and the number of adjacent nodes. Among them, the first predetermined condition represents that the adjustment of the number of adjacent nodes makes the change value of the one-dimensional structural entropy less than the change threshold.
[0102] Further optionally, this embodiment can maximize the one-dimensional structure entropy H 1 (G f ) to select the number of adjacent nodes k. Optionally, the maximization of the one-dimensional structural entropy in this embodiment indicates that even if the value of k is continuously adjusted, the change value of the corresponding one-dimensional structural entropy is less than the change threshold, and it is determined that the current one-dimensional structural entropy has been maximized.
[0103] Specifically, in this embodiment, the parameter k can be gradually increased (for example, gradually increased from k=1) to obtain the corresponding road network neighbor graph G knn , and based on the initial road network graph G and the road network neighbor graph G knn Get the fusion enhancement image corresponding to the current k value Based on the above one-dimensional structural entropy formula, the corresponding one-dimensional structural entropy is calculated When k reaches a threshold k m When the corresponding one-dimensional structure entropy If there is no significant increase, k mThe number of adjacent nodes of each road network node in the road network neighbor graph is determined. Therefore, this embodiment can perform graph enhancement by maximizing the one-dimensional structural entropy, so that the obtained enhanced fusion graph has more information without increasing noise.
[0104] Figure 6 FIG. 1 is a schematic diagram of a graph enhancement process according to an embodiment of the present invention. Figure 6 As shown, the similarity between each road network node is calculated according to the road network node set corresponding to the initial road network graph G to determine the similarity matrix S, and the road network neighbor graph G when the number of adjacent nodes is k is determined according to the similarity matrix S knn , the similarity matrix S and the road network neighbor graph G knn Mix (i.e., take the union) to obtain an enhanced fusion image Further, the enhanced fusion graph under the current k value is calculated The corresponding one-dimensional structural entropy And based on the one-dimensional structural entropy and one-dimensional structural entropy The difference between determines whether the current k value meets the conditions, that is, the one-dimensional structure entropy and one-dimensional structural entropy Is the difference less than the change threshold? If not, update the k value, that is, get k = k + 1, until the one-dimensional structure entropy and one-dimensional structural entropy The difference is less than the change threshold, that is, until the one-dimensional structural entropy corresponding to the enhanced fusion graph Gf Maximize and obtain the corresponding enhanced fusion image at this time Therefore, this embodiment can perform graph enhancement by maximizing the one-dimensional structural entropy, so that the obtained enhanced fusion graph has more information without increasing the noise. At the same time, this embodiment can also re-assign the enhanced fusion graph Gf and increase the relatively small weight through the reference factor, which makes the selection of the number of adjacent nodes k more sensitive to noise, so as to better identify and reduce the attribute noise and edge noise in the road network graph. At the same time, the reference factor M of this embodiment is not a pre-fixed value, but a value that changes with different initial road network graphs, which makes each initial road network graph have a reference factor that is most suitable for the initial road network graph itself, which further improves the noise recognizability in the current road network graph construction process and can further reduce the noise in the road network graph.
[0105] Step S130, determining a corresponding target coding tree based on the structural entropy and the enhanced fusion graph.
[0106] In an optional implementation, in response to not having a historical coding tree, this embodiment generates a target coding tree based on structural entropy and the enhanced fusion graph, and in response to having a historical coding tree, dynamically updates the historical coding tree based on structural entropy and the enhanced fusion graph to obtain a target coding tree. The historical coding tree is constructed based on historical traffic network data. That is, in this embodiment, if the coding tree corresponding to the road network graph is not stored in the memory, a target coding tree (i.e., an initialized coding tree) is created based on the currently determined enhanced feature graph, and if the historical coding tree corresponding to the road network graph is stored in the memory, the historical coding tree is dynamically updated based on the currently determined enhanced fusion graph to obtain a target coding tree that conforms to the current traffic network data. It should be understood that the historical coding tree in the memory can be an initial coding tree created, or it can be a coding tree that is dynamically updated after the last acquisition of traffic data.
[0107] Entropy provides an effective measure of embedded information in any image and structure. The multi-level semantics of the graph can be abstracted and represented by an optimized coding tree. The coding tree can effectively represent a multi-granular division and can provide better interpretability. Therefore, this embodiment can maximize the amount of embedded information by maximizing the one-dimensional structural entropy of the graph, and minimize the high-dimensional structural entropy to minimize the uncertainty in the graph and the noise on the edges, so as to better identify and eliminate noise nodes. The specific method is to maximize the one-dimensional structural entropy of the graph to maximize the amount of embedded information, and minimize the high-dimensional structural entropy to minimize the uncertainty in the graph and the noise on the edges.
[0108] For example, for the coding tree T corresponding to the graph G, the K-dimensional structural entropy is:
[0109]
[0110] H T (G) = Σ α∈T,α≠λ H T (G; α)
[0111]
[0112] Among them, the tree node α is a non-root node of the coding tree T (that is, α∈T, α≠λ, λ is the root node of the coding tree T), α - is the parent node of tree node α, and T α Represents the subset of network nodes associated with tree node α, V α It is T α The sum of the degrees of all network nodes in , for The sum of the degrees of all network nodes in the network, g α It is a cut edge set vol(G) represents the sum of the degrees of all the nodes in the graph G, HT (G; α) is the structural entropy of the tree node α, H T (G) is the structural entropy of the coding tree T, H K (G) is the K-dimensional structural entropy of the K-dimensional coding tree.
[0113] Furthermore, this embodiment abstracts the road network graph into a hierarchical coding tree based on the structural entropy theory to minimize the uncertainty of the graph and maximize the knowledge embedding at a high-dimensional level. For a given graph G and its corresponding coding tree T with a height of K, its structural information I K (G)=H K (G), the optimal coding tree corresponding to minimizing structural entropy is:
[0114]
[0115] in is the optimal coding tree obtained, and K represents the highest level constraint (that is, the height threshold of the coding tree).
[0116] In an optional implementation, this embodiment constructs the target coding tree whose structural entropy satisfies the second predetermined condition according to the enhanced fusion graph. This embodiment makes the height of the target coding tree not exceed the predetermined height threshold to reduce the difficulty of quantizing the semantics of the graph. Among them, the second predetermined condition represents that the target coding tree has the minimum high-dimensional structural entropy at the corresponding height, so as to minimize the uncertainty of the graph while maximizing the knowledge embedding at the high-dimensional level.
[0117] Further optionally, this embodiment constructs a corresponding binary coding tree according to the enhanced fusion graph based on a greedy algorithm, so that the coding tree has a minimum K-dimensional structural entropy at a given height K.
[0118] In a further optional implementation, this embodiment divides each road network node in the enhanced fusion graph into communities to obtain a multi-dimensional community corresponding to the enhanced fusion graph, and abstracts each community into a tree node of a target coding tree to obtain a target coding tree.
[0119] Furthermore, this embodiment determines the multidimensional community corresponding to the enhanced fusion graph according to the edge density of each road network node in the enhanced fusion graph, and abstracts each community as a tree node of the target coding tree to obtain the target coding tree. The edge density between the road network nodes in the community is greater than the edge density of the rest of the graph. The edge density of the graph is p = 2m / n(n-1), where m is the number of edges of the corresponding graph and n is the number of nodes of the corresponding graph.
[0120] Since the traffic road network has a certain clustering property, the present embodiment can hierarchically divide the road network nodes in the enhanced fusion graph into multiple communities, each community also has multiple layers of sub-communities, and the information of such a multi-level community can essentially be abstracted into a coding tree or a sub-tree. Based on this, the present embodiment can obtain the multi-dimensional community corresponding to the enhanced fusion graph by dividing the road network nodes in the enhanced fusion graph into communities, and abstract each community into a tree node of the target coding tree to obtain the target coding tree.
[0121] In an optional implementation, this embodiment abstracts each community as a tree node of a target coding tree, constructs an initial coding tree, and adjusts the initial coding tree based on predetermined tree node joint operations and tree node promotion operations to obtain the target coding tree, so that the height of the target coding tree does not exceed a height threshold and the high-dimensional structural entropy of the target coding tree is minimized.
[0122] Optionally, the tree node combination operation may specifically be: based on a greedy algorithm, inserting a new tree node between multiple child nodes having the same parent node and the parent node. Further, for the tree node combination operation CB of the coding tree Γ Γ (α, β) updates the coding tree as follows:
[0123] γ←δ - ; δ←α - ; δ←β - ;
[0124] Among them, the parent node of tree node α adopts α - Indicates that the parent node of the tree node β adopts β - In other words, if the parent nodes of tree nodes α and β are both γ, tree node δ can be inserted so that the parent nodes of tree nodes α and β are updated to δ, and tree node γ is used as the parent node of tree node δ.
[0125] Therefore, this embodiment can establish an optimal node joint operation based on a greedy algorithm to obtain the corresponding coding tree, which can make the two child nodes of the root node in the coding tree be iteratively combined into a new partition until the structural entropy no longer decreases, or the reduction amount is less than a threshold, that is, the minimization of the high-dimensional structural entropy is achieved.
[0126] The tree node lifting operation (lift) can be specifically: deleting a tree node with only one subtree, and updating the parent node of the subtree to the parent node of the deleted tree node. Specifically, given a coding tree Γ of a graph G = (V, E), α, β, γ are nodes in the tree that satisfy β - =γ,α - =β, then lift operation LF Γ (α, β) updates the coding tree as follows:
[0127] γ←α - IF: T β =Φ, THEN: drop(β)
[0128] Therefore, the subtree with α as the root node can be moved up one level as a child node of γ. β =Φ), then the tree node β will be deleted.
[0129] Therefore, this embodiment can make the coding tree meet the predetermined height requirement by performing lifting compression on the coding tree.
[0130] Figure 7 FIG. 1 is a schematic diagram of a target coding tree determination process according to an embodiment of the present invention. Figure 7 As shown, it is assumed that there is a graph G, and the height K of the coding tree is defined as 4. Graph G corresponds to a large community P, and community P can be divided into communities P1, P2, and P3. Among them, the node sets V1, V2, and V3 corresponding to communities P1, P2, and P3 are included in the node set V corresponding to graph G, and the union of node sets V1, V2, and V3 is included in the node set V, or their union is equal to the node set V.
[0131] Further, community P1 can be divided into communities P11 and P12. Similarly, the node sets V11 and V12 corresponding to communities P11 and P12 are included in node set V1, and the union of node sets V11 and V12 is included in node set V1, or their union is equal to node set V1. Community P11 can be further divided into P111, wherein the node set V111 corresponding to community P111 is included in node set V11 or equal to V11. Community P12 can be divided into communities P121 and P122. Similarly, the node sets V121 and V122 corresponding to communities P121 and P122 are included in node set V12, and the union of node sets V121 and V122 is included in node set V12, or their union is equal to node set V12.
[0132] Furthermore, the further division of community P2 is similar to that of community P1, and will not be described one by one here.
[0133] like Figure 7As shown, in this embodiment, the multi-level community corresponding to the graph G is abstracted as the coding tree T0. Specifically, the community P can be abstracted as the root node λ of the coding tree T0, the communities P1, P2 and P3 can be abstracted as the child nodes a, b and c of the root node λ, the communities P11 and P12 can be abstracted as the two child nodes d and e of the node a, the community P111 can be abstracted as the child node h of the node d, the communities P121 and P122 can be abstracted as the child nodes i and j of the node e, the community P21 can be abstracted as the child node f of the node b, the communities P211 and P212 can be abstracted as the two child nodes k and l of the node f, the community P31 can be abstracted as the child node g of the node c, and the communities P311 and P312 can be abstracted as the two child nodes m and n of the node g.
[0134] Furthermore, this embodiment performs optimization operations such as tree node joining operations and tree node promotion operations on the coding tree T0 based on the greedy algorithm, so that the optimized target coding tree Tx has a minimized high-dimensional structural entropy (ie, K-dimensional structural entropy) at a given tree height K.
[0135] Specifically, Figure 7 As shown, since the parent nodes of child nodes b and c are both root node λ, and based on the greedy algorithm, it is determined that inserting a new tree node between child nodes b and c and root node λ can reduce the high-dimensional structural entropy of the coding tree. Therefore, this embodiment inserts a new tree node o between child nodes b and c and node λ to obtain coding tree T1.
[0136] Furthermore, if Figure 7 As shown, in the coding tree T1, the parent node of tree node f is tree node b, the parent node of tree node b is tree node o, and tree node b has no other child nodes except the subtree with tree node f as the root node. Therefore, based on the lift operation, the subtree with tree node f as the root node can be directly used as the subtree of tree node o. Since tree node b has no other child nodes except the subtree with tree node f as the root node, tree node b can be deleted. Similarly, the parent node of tree node g is tree node c, the parent node of tree node c is tree node o, and tree node c has no other child nodes except the subtree with tree node g as the root node. Therefore, based on the lift operation, the subtree with tree node g as the root node can be directly used as the subtree of tree node o. Since tree node c has no other child nodes except the subtree with tree node g as the root node, tree node c can be deleted. Based on the above lift operation, the coding tree Tx can be obtained.
[0137] It should be understood that Figure 7It only shows a simple process of creating an initialized coding tree T0 based on a multi-level community, and updating the initial coding tree T0 based on a greedy algorithm, using a combination operation and a lift operation to obtain a qualified coding tree Tx. This is only for the convenience of understanding the combination operation and the lift operation, and does not represent any real road network graph processing process.
[0138] In another optional implementation, the present embodiment can also directly construct a coding tree based on the greedy algorithm and the characteristic information of each road network node in the enhanced fusion graph (such as connecting edges, edge weights, degree of road network nodes, and / or edge density, etc.). For example, each road network node is first used as a leaf node of the root node in the coding tree, and based on the greedy algorithm and the characteristic information of each road network node in the enhanced fusion graph, a tree node joint operation is used to determine the child nodes in each layer of the coding tree, and then the target coding tree is obtained. No detailed description is given again.
[0139] In other optional implementations, this embodiment can also perform community level division based on bisection when performing multi-level community division of the enhanced fusion graph, thereby making the initial coding tree abstracted from the multi-level community a binary tree, and then further adjusting the initial coding tree based on the given tree height and the high-dimensional structural entropy of the coding tree, so that the final target coding tree has the minimized high-dimensional structural entropy while meeting the given height.
[0140] In this embodiment, the time complexity of the static coding tree (that is, the coding tree initialization) is O(n 2 +n+nlog 2 n), where n is the number of nodes in the road network. Specifically, the time complexity of calculating the similarity matrix is O(n 2 ), the time complexity of the k selector is O(n), and the time complexity of optimizing the entropy of high-dimensional structures is O(nlog 2 n). Therefore, by adopting the coding tree construction method of this embodiment, the complexity can be reduced while effectively identifying and reducing the attribute noise and edge noise in the road network graph.
[0141] Furthermore, the traffic network generally changes dynamically, and the traffic network data collected by each sensor also changes dynamically. Therefore, this embodiment can dynamically update the target coding tree based on the difference between the historical traffic network data collected by each of the road network sensors and the currently collected traffic network data, so as to further optimize the target road network map.
[0142] The dynamics of a traffic network is generally reflected in two aspects: edge dynamics and node dynamics. Edge dynamics refers to changes in the connectivity or weight of edges in a road network graph, such as changes in weights caused by traffic changes, and changes in connectivity caused by road congestion / accidents / construction. Node dynamics refers to the increase in nodes in the road network, such as the online / offline / accidents of IoT sensors, and vehicle sensors entering the road network. Therefore, in order to adapt to the dynamic and time-varying spatial dependencies in the traffic network, this embodiment further designs an incremental calculation method for the dynamic coding tree.
[0143] In an optional implementation, the historical coding tree is dynamically updated based on the structural entropy and the enhanced fusion graph, and the target coding tree can be obtained by: performing dynamic difference extraction according to the current enhanced fusion graph and the historical enhanced graph corresponding to the historical coding tree, obtaining incremental difference data, dynamically updating the historical coding tree according to the incremental difference data, and obtaining the target coding tree whose structural entropy satisfies the second predetermined condition. The incremental difference data includes edge difference data and / or node difference data, that is, characterizing the dynamic changes of the traffic network between the last collected traffic network data and the currently collected traffic network data. The second predetermined condition characterizes that the target coding tree has the minimum high-dimensional structural entropy at the corresponding height, so that the high-dimensional structural entropy of the target coding tree is minimized in the process of dynamically adjusting the coding tree.
[0144] Further optionally, this embodiment adopts a pre-set node strategy and edge strategy to dynamically update the historical coding tree according to the incremental difference data to maintain the global invariant of the acquired target coding tree and minimize local differences. Thus, this embodiment can ensure that the dynamic change of the edge does not change the structure of the historical coding tree through the edge strategy, and minimize the high-dimensional structural entropy of the coding tree through the node strategy.
[0145] Further optionally, the edge strategy may specifically be: in response to the incremental difference data including a new edge corresponding to an existing road network node, and the existing road network nodes belong to the same community, the new edge is added to the community, and the root node of the historical coding tree and the corresponding subtree information are updated. In other words, when a new edge connects two existing road network nodes, if the two road network nodes belong to the same community, the new edge is added to the community, and the subtree corresponding to the community and the root node of the historical coding tree are updated.
[0146] Figure 8 FIG. 1 is a schematic diagram of a coding tree update of an edge strategy in an embodiment of the present invention. Figure 8As shown, the enhanced fusion graph corresponding to the historical coding tree T1 has a corresponding multi-level community 81, and the enhanced fusion graph of the currently collected traffic network data has a corresponding multi-level community 82. Among them, due to changes in the traffic network data, a new edge s1 is added between the existing network nodes r1 and r2. Since both the network nodes r1 and r2 belong to the community Px, the new edge can be added to the community Px. Further, assuming that the community Px corresponds to the tree node d in the historical coding tree T1, the corresponding subtree information t1 and the root node λ are updated. Specifically, the information of the tree node d is updated, that is, the information of the new edge s1 is added to the information of the tree node d, and the information of the corresponding tree node a and the root node λ is updated based on this. It can be seen that the edge strategy of this embodiment can ensure that the structure of the coding tree does not change.
[0147] Furthermore, the edge strategy can also be specifically: in response to the incremental difference data including new edges corresponding to existing road network nodes, and the existing road network nodes belong to different communities, a new community is created, and the information of the new community is added to the information of the root node of the historical coding tree. The new community includes the existing road network nodes and the new edges. In this way, the computational efficiency can be improved while ensuring that the structure of the historical coding tree is not changed.
[0148] Fig. 9 FIG. 1 is a schematic diagram of coding tree updating of another edge strategy in an embodiment of the present invention. Fig. 9 As shown, assuming that a new edge is added between existing road network nodes r3 and r4 in different communities, a new community Px1 is created to represent the existing road network nodes r3 and r4 and the connection relationship between them. At the same time, the information of the new edge formed by the existing road network nodes r3 and r4 is directly added to the information of the root node λ of the historical coding tree.
[0149] In another optional implementation, the edge strategy can also be specifically: in response to the incremental difference data including new edges corresponding to existing road network nodes, and the existing road network nodes belong to different communities, the target community corresponding to the new edge is determined according to the structural entropy, and the historical coding tree is dynamically updated based on the target community. Among them, the target community is a new community or a community where the existing road network node is located. That is to say, in this embodiment, when the two existing road network nodes forming the new edge belong to different communities, the new edge can be calculated to be added to the communities to which the two existing road network nodes belong respectively, and based on the high-dimensional structural entropy of the updated historical coding tree, the new edge can be calculated to be added to a newly created community, and based on the high-dimensional structural entropy of the updated historical coding tree, the sizes of the high-dimensional structural entropies corresponding to the three methods are compared, and the historical coding tree update method corresponding to the minimum structural entropy is determined as the target update method. Thus, the high-dimensional structural entropy can be further reduced on the basis of not changing the structure of the historical coding tree, so as to minimize the high-dimensional structural entropy of the target coding tree during the dynamic update process.
[0150] In an optional implementation, in response to the incremental difference data including a new road network node, and the new node is connected to an existing road network node, a leaf node corresponding to the new road network node is used as a direct successor of a parent node of the leaf node corresponding to the existing road network node.
[0151] The node strategy is designed for new nodes in the coding tree. If the newly added road network node v has similarities with some nodes in the existing community (i.e., the middle tree node of the coding tree), such as similar connection mode and location in the road network, it can be added to the community instead of creating a new community. In this way, the structural entropy can be minimized in most cases.
[0152] Fig.10 is a schematic diagram of updating the coding tree of the node strategy of the embodiment of the present invention. Fig.10 As shown in FIG. 1 , when a new network node v is connected to an existing network node u, and the existing network node u corresponds to a leaf node η in the historical coding tree, where the parent node of the leaf node η is the tree node ε, a node with a label T is set. γ ={v} is the direct successor of the parent node ε of the leaf node η. Thus, this embodiment can keep the structure of the historical coding tree unchanged, and only needs to add a new leaf node to represent the newly added road network node. Thus, this embodiment can avoid rebuilding the entire coding tree when adding a new road network node through the node strategy, thereby improving the calculation efficiency.
[0153] Further optionally, based on the edge strategy and node strategy, this embodiment proposes a dynamic adjustment algorithm for the coding tree. In order to minimize the structural entropy during the dynamic adjustment process, this embodiment proposes global invariants and local differences. The goal of the dynamic adjustment algorithm for the coding tree is to maintain the global invariants to the greatest extent and minimize the local differences. Taking the two-dimensional structural entropy as an example, all its invariants and local differences are defined as follows:
[0154]
[0155]
[0156] Where m is the number of elements in the network graph before the change (e.g., the number of original edges), n is the increment size (e.g., the number of newly added edges), is a global invariant for the number of dynamic encodings with increment size n, is the sum of the weights of the corresponding cut edge sets, and stipulates Representation and tree node α i A subset of the associated network nodes, yes The sum of the degrees of all network nodes in , is the network node vj ΔL2 refers to the local difference, is the changed graph G ′ and the encoding tree The corresponding structural entropy.
[0157] The dynamic adjustment algorithm of this embodiment can be applied to one-dimensional coding trees and two-dimensional coding trees. For a one-dimensional coding tree, when a new network node is added, this embodiment adjusts the coding tree by incrementally setting a corresponding number of leaf nodes as direct successors of the root node. In this way, the structure of the original coding tree can be kept unchanged, and only one new leaf node needs to be added to represent the newly added network node, thereby avoiding the need to rebuild the entire coding tree, thereby improving computational efficiency.
[0158] For the two-dimensional coding tree, this embodiment applies the node strategy and the edge strategy at the same time. It can be divided into two steps, namely initialization and incremental update. In the initialization stage, this embodiment records the two-dimensional structural data of each level in the initial structure diagram (such as the above-mentioned historical incremental diagram) before the change, that is, the degree of the road network node, the size of the community, the number of cut edges, and the number of edges in the diagram, and calculates the initial coding tree generated by these structural data (the method is the same as the above-mentioned community-based abstraction as a coding tree method, that is, the method of generating a static coding tree), and this information will be used for subsequent calculation of global invariants. In the incremental update stage, this embodiment adjusts the structure of the coding tree by cutting edges and reconnecting under the guidance of the node strategy and the edge strategy. Specifically, when a new road network node is connected to an existing road network node, the community to which the new road network node belongs is first found, and it is connected to the node with the smallest degree in the community. If this will cause the structural entropy of the coding tree to increase, this embodiment can reduce the structural entropy by cutting some edges and reconnecting. As a result, this embodiment can better reflect the structural evolution under dynamic scenarios.
[0159] Fig.11 FIG. 1 is a schematic diagram of a coding tree dynamic adjustment process according to an embodiment of the present invention. Fig.11 As shown, the corresponding graph Gt is determined according to the traffic network data at time t, and the coding tree Tt corresponding to the graph Gt is determined according to the structural entropy minimization algorithm. At time t+1, the corresponding traffic network data is obtained, and the corresponding graph Gt+1 is determined based on it. Furthermore, the graph Gt and the graph Gt+1 are dynamically differentiated to obtain the incremental difference data dd.
[0160] Furthermore, the corresponding structured representation Rt is determined according to the graph Gt and the coding tree Tt, wherein the structured representation Rt includes information such as the degree of the corresponding road network node, the community size, the number of cut edges, and the number of edges in the graph.
[0161] Furthermore, this embodiment determines global invariants and local differences according to the structured representation Rt and the incremental difference data dd, and determines an updated coding tree Tt+1 corresponding to minimizing the local differences while maintaining all invariants.
[0162] In this embodiment, both the one-dimensional dynamic coding tree adjustment algorithm and the two-dimensional dynamic coding tree adjustment algorithm have low time complexity and space complexity. Specifically, the time complexity of the one-dimensional dynamic coding tree adjustment algorithm is O(nlogn), where n is the number of nodes in the original graph. The time complexity of the two-dimensional dynamic coding tree adjustment algorithm is O(rnlogn), where r is the number of communities in the original graph. In addition, the space complexity required for the node strategy and the edge strategy is also very low, and is linearly related to the size of the original graph. Therefore, this embodiment can be applied to processing large-scale dynamic graph data.
[0163] To summarize, this embodiment can construct a corresponding coding tree (i.e., a static coding tree) based on the current traffic network data when there is no historical coding tree in the memory. When there is a historical coding tree in the memory, the historical coding tree can be dynamically updated based on the changes in the current traffic network data relative to the historical traffic network data to determine the target coding tree (i.e., the dynamic coding tree). As a result, the subsequently reconstructed road network graph can be made richer and more accurate, thereby further improving the robustness of the graph neural network in downstream tasks.
[0164] Step S140, reconstructing the target coding tree to obtain a target road network graph.
[0165] In this embodiment, it is necessary to effectively restore the topological structure of the dynamic graph sequence from the hierarchical dynamic coding tree sequence, so that the reconstructed road network graph has the optimal coding tree. The core of graph reconstruction is the reconstruction of edges, and the key issue is how to strengthen and weaken those edges.
[0166] Road network nodes in different communities often have different labels. Related technologies use cluster-aware methods to strengthen the edges within a community and reduce the edges between communities to improve the graph topology. However, for hierarchical communities, simply removing cross-community edges will destroy the integrity of higher-level community divisions, and adding edges within a community may generate additional edge noise in lower-level community divisions. Therefore, this embodiment optimizes the graph structure through community protection.
[0167] In an optional implementation, this embodiment uses the deduced structural entropy of two mutually related nodes as a criterion for edge reconstruction.
[0168] Furthermore, this embodiment performs graph reconstruction according to the deductive structural entropy corresponding to the target coding tree to obtain the target road network graph. The deductive structural entropy from a non-leaf node in the target coding tree to a descendant node of the non-leaf node is determined based on the sum of the structural entropies of the tree nodes from the non-leaf node to its descendant nodes.
[0169] Deductive structural entropy: Let Γ be the coding tree of graph G, and the deductive structural entropy from a non-leaf node γ to its descendant α is defined as:
[0170]
[0171] Among them, it is stipulated that T α represents the subset of road network nodes associated with tree node α, tree node β is the tree node between non-leaf node γ and tree node α, T β Represents the subset of network nodes associated with tree node β, T γ Represents the subset of network nodes associated with the tree node γ, H Γ (G;β) is the structural entropy of the tree node β.
[0172] Obviously, deductive structural entropy makes full use of the hierarchical structure of the encoding tree and provides a general top-down derivation method to determine the communities and road network nodes in the graph.
[0173] Further optionally, since road network nodes with higher structural entropy will produce greater uncertainty and diversity, a large amount of supervision information is required to accurately classify road network nodes. Therefore, in the process of graph reconstruction, road network nodes with higher structural entropy need to expand the connection area to attract more edges in order to gather more information from a wider community. This embodiment simulates sampling of the target coding tree according to the deductive structural entropy corresponding to the target coding tree to perform graph reconstruction to obtain the target road network graph.
[0174] Fig.12 FIG. 1 is a flow chart of a graph reconstruction method according to an embodiment of the present invention. Fig.12 As shown, the graph reconstruction method of this embodiment includes the following steps:
[0175] Step S141, calculating the probability of the tree nodes in the target coding tree according to the deductive structure entropy.
[0176] In this embodiment, the core idea of the simulation sampling is to explore the network node pair level (ie, the lowest level semantics) at the leaf nodes of the coding tree, and randomly generate a probability related to deduction for the edge of a given network node pair.
[0177] Specifically, for a given coding tree Γ, assume that a tree node δ has a series of child nodes {δ <1> ,δ <2> ,…,δ <n>< / n>}, and the child node δ The probability of is defined as:
[0178] P(δ )=s δ (H Γ (G f ;(c,d) )))
[0179] Among them, γ is the root node of the tree, and σ δ (*) represents a probability distribution function, and this embodiment does not limit its type. δ (*) is an example of softmax, δ The probability is:
[0180]
[0181] Thus, the probabilities of the nodes in the coding tree of this embodiment can be obtained recursively.
[0182] Step S142, recursively sample according to the probability of each tree node to obtain leaf node pairs.
[0183] Step S143, constructing the edges between the road network nodes of each leaf node pair to obtain the target road network graph.
[0184] In order to obtain new edges, this embodiment recursively samples leaf nodes through a top-down method. Optionally, the recursive sampling method may specifically be:
[0185] (1) For the subtree with δ as the root node, according to the probability P(δ ),P(δ <j>< / j> ) to sample and select two different child nodes δ and δ <j>< / j> , and let δ1=δ ,δ2=δ <j>< / j> .
[0186] (2) If δ1 is not a leaf node, sample δ1 from the subtree with δ1 as the root node , and let δ1=δ Similarly, perform the same operation on δ2.
[0187] (3) After recursively performing step (2), two leaf nodes δ1 and δ2 are sampled, and the connected network node Road Network The edges of are added to the edge set E′. Among them, is the set of network nodes associated with the leaf node δ1. is the set of network nodes associated with leaf node δ2.
[0188] Furthermore, in order to establish connections at different semantic levels (that is, at different levels of semantics in the coding tree), this embodiment performs multiple sampling on multiple subtrees on the coding tree. For each subtree with δ as the root node, θ×n sampling is performed independently, where n is the number of child nodes of δ and θ is a hyperparameter. Optionally, the hyperparameter θ corresponding to tree nodes at different levels may be the same. Further optionally, if it is necessary to accurately control the sparsity within the community and the connectivity between communities, this embodiment can also flexibly set and adjust the hyperparameter θ at each semantic level.
[0189] Therefore, this embodiment can perform multiple samplings on each tree node corresponding to the target coding tree based on the corresponding hyperparameters to determine the two leaf nodes corresponding to each sampling, and reconstruct the edges of the road network nodes based on the two leaf nodes, so as to obtain the target road network graph.
[0190] Furthermore, suppose the original road network graph with attributes is G = (V, E, A V ,A E ,A B ), using the graph learning technology based on structural entropy proposed above, and using the hierarchical coding tree to enrich the structure of the graph, we can get the road network graph G = (V, E'). At the same time, we can also use graph neural network and other technologies to optimize the attributes of the road network graph G = (V, E') to get the road network graph G = (V, E', A) with deep semantic attributes. V’ ,A E’ ,A B’ ).
[0191] This embodiment can enhance the graph through graph learning technology based on structural entropy to obtain a road network graph with richer edges, and can optimize the road network graph based on graph neural network to obtain a target road network graph with deep semantics. Therefore, the target road network graph of this embodiment is applied to downstream tasks, such as traffic flow prediction tasks, path planning tasks, arrival time estimation tasks, etc., to improve the accuracy of task prediction.
[0192] The embodiment of the present invention determines an initial road network graph based on traffic road network data, performs graph enhancement on the initial road network graph to obtain an enhanced fusion graph, determines a corresponding target coding tree based on structural entropy and the enhanced fusion graph, and performs graph reconstruction on the target coding tree to obtain a target road network graph. Therefore, this embodiment can use graph enhancement learning, and use coding trees based on structural entropy learning to abstract and reconstruct the road network graph. While effectively identifying and reducing attribute noise and edge noise in the road network graph, it can optimize node features in the road network graph, making the node features more informative, thereby improving the robustness of the graph neural network in downstream tasks. At the same time, this embodiment can further improve the interpretability of graph structure learning in structural evolution based on deductive structural entropy, and involves a low-complexity incremental optimization algorithm for dynamic graph learning, thereby achieving rapid and real-time modeling of the road network.
[0193] Fig.13 Schematic diagram of the architecture of the traffic network graph reconstruction model of the embodiment of the present invention. Fig.13 As shown, in this embodiment, the traffic network time series data D is periodically collected. When the coding tree T corresponding to the traffic network data is not constructed, the static coding tree T generation unit 131 generates a static coding tree T (that is, a coding tree constructed for the first time based on the traffic network data) according to the collected traffic network time series data D, and uses the static coding tree T as the first coding tree T0 in the coding tree sequence 132. The coding trees in the coding tree sequence 132 are updated and determined based on the collection period of the traffic network time series data D. The coding tree sequence 132 includes T0-Tn, n≥0. Tn represents the coding tree dynamically updated based on the latest collected traffic network time series data.
[0194] Furthermore, the traffic network time series data D determines a dynamic spatial relationship graph sequence Gr. The dynamic spatial relationship graph sequence Gr represents a dynamic change sequence of the road network graph based on time.
[0195] Furthermore, the last coding tree Tn (ie the latest coding tree) in the coding tree sequence 132 and the dynamic spatial relationship graph sequence Gr are input into the incremental dynamic coding tree optimization unit 133 for coding tree adjustment to obtain a new coding tree Tn, where n=n+1.
[0196] Furthermore, in this embodiment, the dynamic spatial relationship graph sequence Gr and the coding tree sequence 132 are input into the graph reconstruction unit 134 to perform sampling-based graph reconstruction processing to obtain a dynamic road network graph sequence Gs′.
[0197] Furthermore, in this embodiment, the dynamic road network graph sequence Gs' and the real-time collected traffic network time series data D can be input into the downstream task model M1 for processing to obtain the corresponding prediction results, so as to predict future traffic data based on historical traffic data and real-time traffic data. Among them, the downstream task model M1 can be a traffic flow prediction model, a path planning model, an arrival time estimation model, etc., which is not limited in this embodiment.
[0198] Further optionally, the model architecture of this embodiment can use a graph neural network GNN (such as GCN, GAT, GraphSAGE, or APPNP) as the backbone network. It should be understood that this embodiment does not limit the backbone network used, as long as it can realize the processing of the structure graph.
[0199] Further optionally, the present embodiment may adopt a two-layer GNN to implement the model architecture of the present embodiment, the dimension d represented by the graph may be selected from {8, 16, 32, 48, 64}, the maximum height of the coding tree may be selected from {2, 3, 4}, and the sampling parameter θ may be selected from {1, 3, 4, 10}. In order to avoid overfitting, ReLU is used as the activation function, and a dropout layer with a probability of 0.5 is used. It should be understood that the value range of the above parameters is only exemplary, and the present embodiment does not limit this. The setting of the above parameters can realize the construction of the road network diagram of the present embodiment.
[0200] Furthermore, for the determination of the k-NN graph in the graph enhancement process, since on the same data set, as the optimization proceeds, the value of k will converge to a specific range, indicating the stability of the graph structure and the road network node representation. However, k in different data sets is somewhat different, so this embodiment can use a k selector to determine the value of k. In other optional implementations, k can also be set as a hyperparameter, which is not limited in this embodiment.
[0201] This embodiment can construct a static coding tree based on the graph learning method of structural entropy, and dynamically adjust the static coding tree based on real-time traffic network data to obtain a coding tree sequence corresponding to different traffic data sampling moments within a period of time, and reconstruct a dynamic road network graph sequence based on the coding tree sequence, so that the downstream task model can make accurate predictions based on historical time-series traffic data (that is, the dynamic road network graph sequence) and real-time traffic data.
[0202] Fig.14 Schematic diagram of the process of determining a traffic network diagram according to an embodiment of the present invention. Fig.14 As shown, this embodiment collects traffic network data, generates an initial road network graph G based on information such as road intersections, road connectivity, vehicle flow, and vehicle speed in the traffic network data, obtains attribute information Pr (such as location, vehicle flow, and vehicle speed) of each road network node in the initial road network graph G, calculates the similarity measure of each road network node based on the attribute information Pr of each road network node, obtains the corresponding similarity matrix S, and determines the road network neighbor graph based on the similarity matrix S and the k-selector guided by the one-dimensional structural entropy. Based on the road network neighbor graph The enhanced fusion graph Gf is generated by the initial road network graph G. Among them, the road network neighbor graph is determined by the k-selector guided by the one-dimensional structural entropy The value of k in the equation is such that the one-dimensional structural entropy of the enhanced fusion graph Gf Minimize. Further, this embodiment re-weights the enhanced fusion graph Gf based on the similarity matrix. Further, this embodiment constructs a corresponding target coding tree based on a high-dimensional structure minimization algorithm or dynamically adjusts the historical coding tree to obtain a target coding tree T. It should be understood that the above process is similar to the previous embodiment and will not be described in detail here.
[0203] Further, in this embodiment, the probability of the tree nodes in the target coding tree is calculated according to the deductive structural entropy, and recursive sampling is performed according to the probability of each tree node to obtain leaf node pairs 141, and the edges between the road network nodes of each leaf node pair are constructed to obtain the target road network graph G'. It should be understood that the above process is similar to the previous embodiment and will not be described in detail here.
[0204] Furthermore, the present embodiment can also input the acquired target road network graph G' into the graph neural network GNN for processing to optimize the node attribute information and obtain the optimized node attribute information Pr'. Thus, the target road network graph of the present embodiment is applied to downstream tasks, such as traffic flow prediction tasks, path planning tasks, arrival time estimation tasks, etc., which can further improve the accuracy of task prediction.
[0205] The embodiment of the present invention determines an initial road network graph based on traffic road network data, performs graph enhancement on the initial road network graph to obtain an enhanced fusion graph, determines a corresponding target coding tree based on structural entropy and the enhanced fusion graph, and performs graph reconstruction on the target coding tree to obtain a target road network graph. Therefore, this embodiment can use graph enhancement learning, and use coding trees based on structural entropy learning to abstract and reconstruct the road network graph. While effectively identifying and reducing attribute noise and edge noise in the road network graph, it can optimize node features in the road network graph, making the node features more informative, thereby improving the robustness of the graph neural network in downstream tasks. At the same time, this embodiment can further improve the interpretability of graph structure learning in structural evolution based on deductive structural entropy, and involves a low-complexity incremental optimization algorithm for dynamic graph learning, thereby achieving rapid and real-time modeling of the road network.
[0206] Fig.15 Schematic diagram of a traffic network diagram determination device according to an embodiment of the present invention. Fig.15 As shown, the traffic network graph determination device 15 of this embodiment includes a graph determination unit 151 , a graph enhancement unit 152 , a tree determination unit 153 and a graph reconstruction unit 154 .
[0207] The graph determination unit 151 is configured to determine an initial road network graph according to the traffic network data. The graph enhancement unit 152 is configured to perform graph enhancement on the initial road network graph to obtain an enhanced fusion graph. The tree determination unit 153 is configured to determine a corresponding target coding tree based on the structural entropy and the enhanced fusion graph. The graph reconstruction unit 154 is configured to perform graph reconstruction on the target coding tree to obtain a target road network graph.
[0208] The embodiment of the present invention determines an initial road network graph based on traffic road network data, performs graph enhancement on the initial road network graph to obtain an enhanced fusion graph, determines a corresponding target coding tree based on structural entropy and the enhanced fusion graph, and performs graph reconstruction on the target coding tree to obtain a target road network graph. Therefore, this embodiment can use graph enhancement learning, and use coding trees based on structural entropy learning to abstract and reconstruct the road network graph, while effectively identifying and reducing attribute noise and edge noise in the road network graph, and can optimize node features in the road network graph, making the node feature information richer, thereby improving the robustness of the graph neural network in downstream tasks.
[0209] Fig.16 Schematic diagram of a server according to an embodiment of the present invention. Fig.16 As shown, the server 16 is a general data processing device, which includes a general computer hardware structure, which at least includes a processor 161 and a memory 162. The processor 161 and the memory 162 are connected via a bus 163. The memory 162 is suitable for storing instructions or programs executable by the processor 161. The processor 161 can be an independent microprocessor or a collection of one or more microprocessors. Thus, the processor 161 executes the instructions stored in the memory 162, thereby executing the method flow of the embodiment of the present invention as described above to realize the processing of data and the control of other devices. The bus 163 connects the above-mentioned multiple components together, and at the same time connects the above-mentioned components to the display controller 164 and the display device and the input / output (I / O) device 165. The input / output (I / O) device 165 can be a mouse, a keyboard, a modem, a network interface, a touch input device, a somatosensory input device, a printer, and other devices known in the art. Typically, the input / output device 165 is connected to the system via an input / output (I / O) controller 166.
[0210] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices (equipment) or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may adopt a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0211] The present application is described with reference to flowcharts of methods, apparatuses (devices) and computer program products according to embodiments of the present application. It should be understood that each process in the flowchart can be implemented by computer program instructions.
[0212] These computer program instructions may be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device that implements the process Figure 1 A function specified in a process or multiple processes.
[0213] These computer program instructions may also be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce the instructions for implementing the process Figure 1 A device that specifies functions in a process or multiple processes.
[0214] Another embodiment of the present invention relates to a non-volatile storage medium for storing a computer-readable program, wherein the computer-readable program is used for a computer to execute part or all of the above method embodiments.
[0215] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by specifying relevant hardware through a program, and the program is stored in a storage medium, including several instructions for a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0216] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A signal transmission system for measuring traffic conditions using road network sensors, characterized in that: The system includes at least one type of road network sensor and a server, wherein the road network sensor is deployed at a road intersection, a roadside and / or a vehicle, and the server includes a memory and a processor, and each of the road network sensors is communicatively connected to the server; The road network sensor is used to periodically collect traffic network data and transmit the traffic network data to the server, wherein the traffic network data includes at least one or more of the following: traffic flow data, vehicle speed data, and road change conditions; The processor is used to obtain the corresponding traffic status according to the traffic network data, and specifically performs the following steps: Determine the initial road network diagram according to the traffic road network data; Performing graph enhancement on the initial road network graph to obtain an enhanced fusion graph; Determine a corresponding target coding tree based on the structural entropy and the enhanced fusion graph; Reconstructing the target coding tree to obtain a target road network graph; Perform feature processing on the target road network graph to obtain the corresponding traffic status.
2. The system according to claim 1, characterized in that At least one type of sensor includes one or more of the following combinations: image sensor, radar sensor, ultrasonic sensor, infrared sensor, magnetic sensor, temperature and humidity sensor.
3. The system according to claim 1, characterized in that Determining the initial road network diagram according to the traffic road network data comprises: Determine a road network node according to the location of each of the road network sensors; The initial road network graph is determined according to the characteristic information of each of the road network nodes.
4. The system according to claim 1, characterized in that The performing graph enhancement on the initial road network graph to obtain an enhanced fusion graph comprises: Calculate the similarity between the road network nodes in the initial road network graph to obtain a corresponding similarity matrix; Based on the similarity matrix, edges between nodes in the road network are created to obtain a road network neighbor graph; Determine the enhanced fusion graph according to the initial road network graph and the road network neighbor graph; The number of neighboring nodes of each road network node in the road network neighbor graph is determined based on the structural entropy of the enhanced fusion graph.
5. The system according to claim 4, characterized in that The creating edges between the road network nodes based on the similarity matrix and obtaining the road network neighbor graph comprises: Determining the number of adjacent nodes that enables the one-dimensional structural entropy of the enhanced fusion graph to reach a first predetermined condition; Determine the road network neighbor graph based on the similarity matrix and the number of adjacent nodes; The first predetermined condition represents that the adjustment of the number of adjacent nodes makes the change value of the one-dimensional structural entropy less than a change threshold.
6. The system according to claim 4, characterized in that Determining the enhanced fusion graph according to the initial road network graph and the road network neighbor graph comprises: Obtaining a union of the initial road network graph and the road network neighbor graph to obtain a candidate graph; Re-assigning weights of edges of the candidate graph to obtain the enhanced fusion graph; Among them, the reassigned weights are determined according to the similarity of the road network nodes corresponding to the edges and a reference factor, and the reference factor is determined according to the feature information of the road network nodes and edges in the initial road network graph, the road network neighbor graph, or the enhanced fusion graph.
7. The system according to claim 1, characterized in that If the server does not store the historical coding tree, determining the corresponding target coding tree based on the structural entropy and the enhanced fusion graph includes: The target coding tree whose structural entropy satisfies a second predetermined condition is constructed according to the enhanced fusion graph, and the second predetermined condition indicates that the target coding tree has a minimum high-dimensional structural entropy at a corresponding height.
8. The system according to claim 7, characterized in that The constructing, according to the enhanced fusion graph, the target coding tree whose structural entropy satisfies the second predetermined condition comprises: Performing community division on each road network node in the enhanced fusion graph to obtain a multi-dimensional community corresponding to the enhanced fusion graph; Each of the communities is abstracted into a tree node of the target coding tree to obtain the target coding tree.
9. The system according to claim 8, characterized in that The step of abstracting each of the communities into a tree node of the target coding tree to obtain the target coding tree comprises: Abstracting each of the communities into a tree node of the target coding tree, and constructing an initial coding tree; The initial coding tree is adjusted based on a predetermined tree node joint operation and a tree node lifting operation to obtain the target coding tree, so that the height of the target coding tree does not exceed a height threshold and the high-dimensional structural entropy of the target coding tree is minimized.
10. The system according to claim 9, characterized in that The tree node joint operation is specifically as follows: Based on a greedy algorithm, a new tree node is inserted between multiple child nodes having the same parent node and the parent node; The tree node promotion operation is specifically as follows: A tree node having only one subtree is deleted, and the parent node of the subtree is updated to be the parent node of the deleted tree node.
11. The system according to claim 1, characterized in that If the server does not store the historical coding tree, determining the corresponding target coding tree based on the structural entropy and the enhanced fusion graph includes: Performing dynamic difference extraction according to the enhanced fusion graph and the historical enhanced graph corresponding to the historical coding tree to obtain incremental difference data, wherein the incremental difference data includes edge difference data and / or road network node difference data; The historical coding tree is dynamically updated according to the incremental difference data to obtain the target coding tree whose structural entropy satisfies a second predetermined condition, wherein the second predetermined condition indicates that the target coding tree has a minimum high-dimensional structural entropy at a corresponding height.
12. The system according to claim 11, characterized in that The dynamically updating the historical coding tree according to the incremental difference data based on the structural entropy comprises: Adopting a preset node strategy and edge strategy, dynamically updating the historical coding tree according to the incremental difference data to maintain the global invariant of the obtained target coding tree and minimize the local difference; The node strategy is specifically: In response to the incremental difference data including a new road network node, and the new node is connected to the existing road network node, the leaf node corresponding to the new road network node is used as the direct successor of the parent node of the leaf node corresponding to the existing road network node; the edge strategy is specifically: In response to the incremental difference data including a new edge corresponding to an existing road network node, and the existing road network node belongs to the same community, adding the new edge to the community, and updating the root node of the historical coding tree and the corresponding subtree information; In response to the existing road network node belonging to a different community, creating a new community, and adding information of the new community to information of the root node of the historical coding tree, wherein the new community includes the existing road network node and the new edge; or In response to the existing road network nodes belonging to different communities, a target community corresponding to the new edge is determined according to structural entropy, and the historical coding tree is dynamically updated based on the target community; the target community is a new community or a community where the existing road network node is located.
13. The system according to claim 1, characterized in that Reconstructing the target coding tree to obtain a target road network graph includes: Reconstructing the graph according to the deductive structural entropy corresponding to the target coding tree to obtain the target road network graph; The deductive structural entropy from a non-leaf node in the target coding tree to a descendant node of the non-leaf node is determined based on the sum of the structural entropies of the tree nodes from the non-leaf node to the descendant node.
14. The system according to claim 13, characterized in that The performing graph reconstruction according to the deductive structural entropy corresponding to the target coding tree to obtain the target road network graph comprises: According to the deductive structural entropy corresponding to the target coding tree, simulated sampling is performed on the target coding tree to obtain the target road network diagram.
15. The system according to claim 14, characterized in that The simulating sampling of the target coding tree to obtain the target road network diagram comprises: Calculating the probability of tree nodes in the target coding tree according to the deductive structural entropy; Recursively sampling according to the probability of each of the tree nodes to obtain leaf node pairs; Construct edges between the road network nodes of each leaf node pair to obtain the target road network graph.
16. The system according to claim 15, characterized in that The simulating sampling of the target coding tree to obtain the target road network graph further comprises: Determine the number of sampling times corresponding to each of the tree nodes according to the number of child nodes of the tree node and a predetermined hyperparameter; Among them, the hyperparameters corresponding to tree nodes at different levels are the same or different.
17. A method for determining a traffic network diagram, characterized in that: The method comprises: Determine the initial road network diagram according to the traffic road network data; Performing graph enhancement on the initial road network graph to obtain an enhanced fusion graph; Determine a corresponding target coding tree based on the structural entropy and the enhanced fusion graph; The target coding tree is reconstructed to obtain a target road network graph.
Citation Information
Patent Citations
Three-dimensional urban traffic road network global state prediction method under large data environment
CN106251625A
Expressway traffic flow state identification method based on deep neural network
CN110097755A
Road traffic state prediction method and system, terminal and storage medium
CN112489420A
Traffic flow prediction method based on dynamic graph neural network
CN114120652A
Method and system for optimizing road traffic control in the presence of incidents
US20150088406A1
