Traffic flow prediction method based on double graph convolution

In traffic flow prediction through the dual graph convolution method, the spatiotemporal graph and hypergraph convolution module are used to extract features and dependencies, and combined with the dynamic interaction module to generate edges, the problem of inaccurate traffic flow prediction in the traditional method is solved and a more accurate prediction is achieved. Accurate and efficient forecasting results.

CN118587913APending Publication Date: 2024-09-03CHENGDU KAIYUAN ZHONGZHI INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410836648.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Traditional traffic flow prediction methods are difficult to capture the complex spatiotemporal relationships and dynamic changes in traffic data, especially in urban transportation networks, resulting in inaccurate predictions.

Method used

Using a method based on dual graph convolution, feature information and inter-node dependencies are extracted through the spatio-temporal graph and spatio-temporal hypergraph convolution modules, combined with the dynamic interaction module to generate dynamic edges, and a multiple spatio-temporal graph convolution structure is constructed for traffic flow prediction.

Benefits of technology

It improves the accuracy and efficiency of traffic flow prediction, can more sensitively capture the temporal and spatial changes of the traffic network, and enhances the ability to analyze complex traffic data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587913A
    Figure CN118587913A
Patent Text Reader

Abstract

The invention discloses a traffic flow prediction method based on double graph convolution, and belongs to the technical field of traffic flow prediction, and the method comprises the steps: obtaining historical traffic flow data, converting the historical traffic flow data into a space-time diagram and a space-time hypergraph, and carrying out the processing through a DGCM dynamic graph convolution module and a DHGCM dynamic hypergraph convolution module, and then dynamic edge generation is carried out by using the dynamic interaction module, and finally processing is carried out by using the prediction module to obtain a traffic flow prediction result. According to the invention, through the fusion graph convolution module, the hypergraph convolution module and the dynamic interaction module, a multiple space-time graph convolution structure is constructed, the traffic flow model fusing the space-time characteristics is established, and through the hypergraph convolution module, the capability of processing and understanding high-dimensional space-time information of the traffic flow model fusing the space-time characteristics is expanded. And through the dynamic interaction module, the capture of the traffic flow model fusing the spatial and temporal characteristics on the traffic network time and space change sensitivity is enhanced, so that the prediction result of the traffic flow is more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of traffic flow prediction technology, and specifically relates to a traffic flow prediction method based on dual graph convolution. Background Art

[0002] In the field of transportation technology, traditional traffic flow forecasting is mainly based on statistical and time series analysis methods, relying on patterns and trends in historical traffic data to predict future traffic flow. Although these traditional techniques are effective in simple scenarios, their limitations are gradually revealed when faced with the growing complexity of urban transportation networks. On the one hand, these methods often have difficulty capturing the complex spatiotemporal relationships in traffic data, especially in nonlinear and dynamically changing transportation networks. On the other hand, these methods usually assume that historical trends will continue into the future, ignoring the dynamic nature of traffic flow that is affected by multiple factors. This static modeling approach performs poorly when faced with the dynamics and complexity of urban transportation systems.

[0003] As urban traffic challenges intensify, more flexible and adaptable traffic flow prediction methods are needed. Graph neural networks and hypergraph neural networks based on deep learning have attracted the attention of researchers. Graph neural networks can capture complex features in historical traffic data and effectively process large-scale graph data structures such as urban traffic networks. They can more accurately predict traffic flow by learning the spatiotemporal characteristics of nodes (such as road sections and intersections) and their edges (relationships between nodes) in traffic networks. Summary of the invention

[0004] In view of the above-mentioned deficiencies in the prior art, the present invention provides a traffic flow prediction method based on dual graph convolution, which solves the problem of inaccurate traffic flow prediction caused by the dynamics and complexity of the traffic network.

[0005] In order to achieve the above-mentioned invention object, the technical solution adopted by the present invention is: a traffic flow prediction method based on dual graph convolution, comprising:

[0006] S1: Obtain historical traffic flow data and convert it into a spatiotemporal graph and spatiotemporal hypergraph using the weighted directed graph of the traffic network;

[0007] S2: Based on the spatiotemporal graph, the DGCM dynamic graph convolution module is used to process and obtain the characteristic information of the traffic network;

[0008] S3: Based on the spatiotemporal hypergraph, the DHGCM dynamic hypergraph convolution module is used to process and obtain the dependencies between nodes in the transportation network;

[0009] S4: Based on the characteristic information of the traffic network and the dependencies between nodes in the traffic network, the dynamic interaction module is used to generate dynamic edges to obtain dynamic traffic network characteristic information;

[0010] S5: Based on the dynamic traffic network characteristic information, the prediction module is used to process and obtain the traffic flow prediction result.

[0011] The beneficial effects of the present invention are as follows: the present invention provides a traffic flow prediction method based on dual graph convolution, and constructs a multiple spatiotemporal graph convolution structure by fusing a graph convolution module, a hypergraph convolution module and a dynamic interaction module, thereby realizing in-depth correlation analysis of dynamic spatiotemporal traffic data. Through the hypergraph convolution module, the ability of the multiple spatiotemporal graph convolution structure to process and understand high-dimensional spatiotemporal information is expanded, and through the dynamic interaction module, the sensitivity of the multiple spatiotemporal graph convolution structure to the temporal and spatial changes of the traffic network is enhanced, thereby making the prediction results of traffic flow more accurate and the prediction process more efficient.

[0012] Further: the space-time graph and space-time hypergraph in S1 both include a weighted directed graph of traffic roads and historical traffic flow data, and the expression of the weighted directed graph is as follows:

[0013] G=(V,E,W)

[0014] Among them, G is a weighted directed graph, V is the set of nodes, E is the set of edges, and W is the weight corresponding to the edge;

[0015] The expression of the historical traffic flow data is as follows:

[0016]

[0017] X 1: =(X1,X2…,X t ) T ∈R N×F×t

[0018] Among them, X is the historical traffic flow, X t is the historical traffic flow at time step t, X 1: is the historical traffic flow sequence from time step 1 to t, is the traffic flow of the first node at time step t, is the traffic flow of the second node at time step t, is the traffic flow of the Nth node at time step t, R N×F is a three-dimensional real number space with the number of features of the Nth node being F′, X1 is the historical traffic flow when the time step is 1, X2 is the historical traffic flow when the time step is 2, T is the number of time lengths, t is the time step, N is the total number of historical traffic nodes, and F is the number of features of historical traffic flow.

[0019] The beneficial effect of the above further scheme is that by combining the weighted directed graph with the historical traffic flow, the changes in traffic flow in different time periods can be effectively displayed, which facilitates the subsequent prediction of traffic flow.

[0020] Further: the specific steps of S2 are as follows:

[0021] S201: According to the space-time graph, a TCN temporal convolutional network is used to perform a convolution operation to obtain the characteristics of the time series data in the space-time graph;

[0022] S202: According to the characteristics of the time series data of the spatiotemporal graph, the DGCN dynamic graph convolutional network is used to process the data to obtain characteristic information of the traffic network.

[0023] The beneficial effects of the above further scheme are: by extracting and processing the features of the spatiotemporal graph through the DGCM dynamic graph convolution module, the characteristic information of the traffic network is obtained, the trend and continuity of historical traffic flow can be considered, and the accuracy and reliability of traffic prediction results can be improved.

[0024] Further: the expression of the characteristics of the time series data in the space-time graph is as follows:

[0025] X d = GateT(X) = tanh(TCN φ (X))⊙sigmoid(TCN φ (X)

[0026]

[0027] Among them, X d is the characteristic of time series data in the space-time graph, GateT() is the gate function, tanh() is the hyperbolic tangent function, TCN φ () is the TCN temporal convolutional network, X is the historical traffic flow, ⊙ is the element-level multiplication operation, sigmoid() is the sigmoid function, Conv g is a one-dimensional convolution, N is the total number of historical traffic nodes, F is the number of features of historical traffic flow, T is the number of time steps, m is the convolution step, T0 is the time window length of the convolution, and R is the three-dimensional space;

[0028] The expression of the characteristic information of the traffic network is as follows:

[0029]

[0030] Among them, DGCN d (X d ) is the characteristic information of the traffic network, DGCN d() is a dynamic graph convolution, i is the specific number of layers in the graph convolution, A is the adjacency matrix, is the adjacency matrix of the i-th layer in the forward propagation direction, f is the specific feature index of the convolution kernel in the forward propagation, Θ n,f is the convolution weight matrix corresponding to the i-th layer feature f in the forward propagation direction, is the adjacency matrix of the i-th layer in the back propagation direction, and b is the index of the convolution kernel in the back propagation.

[0031] The beneficial effect of the above further scheme is that through the expression of TCN temporal convolutional network and DGCN dynamic graph convolutional network, the spatiotemporal graph can be processed to improve the accuracy of traffic network flow prediction results.

[0032] Further: the specific steps of S3 are as follows:

[0033] S301: According to the spatiotemporal hypergraph, a TCN temporal convolutional network is used to perform a convolution operation to obtain the features of the time series data in the spatiotemporal hypergraph;

[0034] S302: According to the characteristics of the time series data in the spatiotemporal hypergraph, the DHGCN dynamic hypergraph convolutional network is used to process the data to obtain the dependencies between the nodes in the transportation network.

[0035] The beneficial effects of the above further scheme are: by extracting and processing the features of the spatiotemporal hypergraph through the DHGCM dynamic hypergraph convolution module, the dependencies between the nodes in the traffic network can be obtained, reflecting the complex many-to-many dependencies between the nodes in the traffic network, improving the accuracy and generalization ability of traffic flow prediction, and accurately predicting future traffic conditions.

[0036] Furthermore: the expression of the dependency between nodes in the traffic network is as follows:

[0037]

[0038] D w =diag(GCN d (X d ))

[0039] Among them, DHGCN(X h ) is the dependency between nodes in the traffic network, DHGCN() is the DHGCN dynamic hypergraph convolutional network, N is the total number of historical traffic nodes, is the hyperedge weight matrix of the nth layer, X h is the input traffic network feature matrix, Θ′ n is the convolution weight of the nth layer, W hd is the weight matrix of the hyperedge, D hvis the in-degree diagonal matrix of the hyperedge, H is the association matrix between nodes and hyperedges, D w is the diagonal matrix of node degrees, D he is the out-degree diagonal matrix of the hyperedge, D hv is the in-degree diagonal matrix of the hyperedge, R E×E is a real matrix space with E rows and E columns, diag() is used to extract the diagonal matrix, GCN d (X d ) is to apply the graph convolutional network to the hypergraph node feature X d Up, X d is the characteristic of time series data in the space-time graph.

[0040] The beneficial effect of the above further scheme is: based on the expression of TCN temporal convolutional network and DHGCN dynamic hypergraph convolutional network, the spatiotemporal hypergraph is processed to improve the accuracy of traffic network flow prediction results.

[0041] Further: the dynamic edge generation in S4 includes dynamic edge generation of graph and dynamic edge generation of hypergraph;

[0042] The expression for dynamic edge generation of the graph is as follows:

[0043]

[0044] X h =[(W′1X)[ind src ,:];(W′2X)[ind dst ,:]]

[0045] W′1,W′2∈R T×F×F

[0046] W′1X,W′2X∈R T×F′

[0047] in, is the feature matrix obtained after the convolution operation, X h is the correlation information between edges and nodes, Conv 1×1 is a 1×1 convolution kernel operation, R T×F×F is a three-dimensional real space with a time step of T and a number of features of F. W′1 and W′2 are both learnable parameters of the linear transformation of X, X is the historical traffic flow, ind src ,: is the source node of the directed edge, ind dst ,: is the destination node of the directed edge, [;] is the connection operation, R T×F′ It is a two-dimensional real number space with a time step of T and a feature number of F′, where T is the number of time steps, F is the original number of features, and F′ is the number of features after transformation;

[0048] The expression for dynamic edge generation of the hypergraph is as follows:

[0049] X d =AvgPool(X)∈R N×F

[0050] Among them, X d is the feature of time series data of spatiotemporal graph, AvgPool() is average pooling, and N is the total number of historical traffic flows.

[0051] The beneficial effect of the above further scheme is: through the dynamic edge generation of the graph and the dynamic edge generation of the hypergraph, the instantaneous state and dynamic changes of the transportation network can be accurately captured, providing strong support for the real-time analysis and prediction of the transportation network.

[0052] Further: the specific steps of S5 are as follows:

[0053] S501: integrating the dynamic traffic network characteristic information through a skip connection operation according to the characteristic information of the traffic network to obtain integrated characteristic information;

[0054] S502: Perform nonlinear transformation using a ReLU activation function based on the integrated feature information to obtain optimized feature information;

[0055] S503: According to the optimized feature information, a linear transformation is performed using a linear transformation layer to obtain a traffic flow prediction result.

[0056] The beneficial effects of the above further scheme are: through the jump connection operation, the characteristic information of each level in the traffic network can be retained, the learning ability and generalization can be enhanced, and the comprehensiveness and accuracy of the characteristic information can be ensured, and accurate traffic flow prediction results can be obtained by performing nonlinear and linear transformations. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 This is a flow chart of a traffic flow prediction method based on dual graph convolution;

[0058] Figure 2 is the traffic road network diagram;

[0059] Figure 3 This is the structural diagram of the DGCNM dynamic graph convolution module;

[0060] Figure 4 This is the structural diagram of the DHGCM dynamic hypergraph convolution module. DETAILED DESCRIPTION

[0061] The specific implementation modes of the present invention are described below to facilitate those skilled in the art to understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.

[0062] like Figure 1 As shown, a flow chart of a traffic flow prediction method based on dual graph convolution provided by the present invention includes the following steps:

[0063] S1: Obtain historical traffic flow data and convert it into a spatiotemporal graph and spatiotemporal hypergraph using the weighted directed graph of the traffic network;

[0064] S2: Based on the spatiotemporal graph, the DGCM dynamic graph convolution module is used to process and obtain the characteristic information of the traffic network;

[0065] S3: Based on the spatiotemporal hypergraph, the DHGCM dynamic hypergraph convolution module is used to process and obtain the dependencies between nodes in the transportation network;

[0066] S4: Based on the characteristic information of the traffic network and the dependencies between nodes in the traffic network, the dynamic interaction module is used to generate dynamic edges to obtain dynamic traffic network characteristic information;

[0067] S5: Based on the dynamic traffic network characteristic information, the prediction module is used to process and obtain the traffic flow prediction result.

[0068] In one embodiment of the present invention, the traffic road network is defined as a weighted directed graph in S1, such as Figure 2 As shown in the figure, it is a traffic road network graph, where v1, v2, v3, v4, v5, v6 and v7 are nodes of the traffic road network graph, a, b, c, d, e, f and g are the weights corresponding to the edges, Node is a node, Edge is an edge, and the expression of the weighted directed graph is as follows:

[0069] G=(V,E,W)

[0070] Among them, G is a weighted directed graph, V is the set of nodes, E is the set of edges, and W is the weight corresponding to the edge;

[0071] The expression of historical traffic flow data is as follows:

[0072]

[0073] X 1: =(X1,X2…,X t ) T ∈R N×F×t

[0074] Among them, X is the historical traffic flow, X t is the historical traffic flow at time step t, X 1: is the historical traffic flow sequence from time step 1 to t, is the traffic flow of the first node at time step t, is the traffic flow of the second node at time step t, is the traffic flow of the Nth node at time step t, R N×F is a three-dimensional real number space with the number of features of the Nth node being F′, X1 is the historical traffic flow when the time step is 1, X1 is the historical traffic flow when the time step is 2, T is the number of time lengths, t is the time step, N is the total number of historical traffic nodes, and F is the number of features of the historical traffic flow.

[0075] In one embodiment of the present invention, the structure of the DGCNM dynamic graph convolution module in S2 is as follows: Figure 3 As shown, it includes: TCN temporal convolutional network and DGCN dynamic graph convolutional network. The specific steps of S2 are as follows:

[0076] S201: According to the space-time graph, a TCN temporal convolutional network is used to perform a convolution operation to obtain the characteristics of the time series data in the space-time graph;

[0077] In the TCN temporal convolutional network, a one-dimensional convolution operation is first performed to extract the features of historical traffic data. Then, a gating mechanism is used to determine which features are passed and which information is suppressed. The expression of the features of the time series data in the spatiotemporal graph is as follows:

[0078] X d = GateT(X) = tanh(TCN φ (X))⊙sigmoid(TCN φ (X)

[0079]

[0080] Among them, X d is the characteristic of time series data in the space-time graph, GateT() is the gate function, tanh() is the hyperbolic tangent function, TCN φ () is the TCN temporal convolutional network, X is the historical traffic flow, ⊙ is the element-level multiplication operation, sigmoid() is the sigmoid function, Conv g is a one-dimensional convolution, N is the total number of historical traffic nodes, F is the number of features of historical traffic flow, T is the number of time steps, m is the convolution step, T0 is the time window length of the convolution, and R is the three-dimensional space;

[0081] S202: According to the characteristics of the time series data of the spatiotemporal graph, the DGCN dynamic graph convolutional network is used to process the data to obtain characteristic information of the traffic network;

[0082] In the DGCN dynamic graph convolutional network, the adjacency matrix A of the nodes in the weighted directed graph is updated so that it can reflect the interaction between nodes at different time steps. By accumulating different powers of the adjacency matrix A, it can be updated from the positive θ n,f and reverse Θ n,b The spatial relationship between nodes is captured in two directions, the feature extraction capability of historical traffic data is enhanced, and more accurate traffic network flow prediction results are obtained; this method not only expands the capability of GCN, enabling it to capture a wider range of spatial relationships between nodes, but also provides the dynamic graph convolution module with the ability to process the spatial characteristics of traffic networks that change over time. The expression of the characteristic information of the traffic network is as follows:

[0083]

[0084] Among them, DGCN d (X d ) is the characteristic information of the traffic network, DGCN d () is a dynamic graph convolution, i is the specific number of layers in the graph convolution, A is the adjacency matrix, is the adjacency matrix of the i-th layer in the forward propagation direction, f is the specific feature index of the convolution kernel in the forward propagation, Θ n,f is the convolution weight matrix corresponding to the i-th layer feature f in the forward propagation direction, is the adjacency matrix of the i-th layer in the back propagation direction, and b is the index of the convolution kernel in the back propagation.

[0085] In one embodiment of the present invention, the structure of the DHGCM dynamic hypergraph convolution module in S3 is as follows: Figure 4 As shown, it includes: TCN temporal convolutional network and DHGCN dynamic hypergraph convolutional network. The specific steps of S3 are as follows:

[0086] S301: According to the spatiotemporal hypergraph, a TCN temporal convolutional network is used to perform a convolution operation to obtain the features of the time series data in the spatiotemporal hypergraph;

[0087] In the TCN temporal convolutional network, the hyperedges of the dynamic hypergraph dynamically connect different nodes (for example, intersections and paths), which can represent the complex dependencies in the traffic network. The TCN temporal convolutional network is used to perform convolution operations to extract the features of time series data in the spatiotemporal hypergraph, which can reflect the changes in real-time traffic flow.

[0088] S302: According to the characteristics of the time series data in the spatiotemporal hypergraph, the DHGCN dynamic hypergraph convolutional network is used to process and obtain the dependencies between the nodes in the transportation network;

[0089] In the DHGCN dynamic hypergraph convolutional network, the spatial dependencies in the traffic network are captured through the DHGCN dynamic hypergraph convolutional network, especially the complex many-to-many dependencies, so that more complex structural data such as multi-intersections or multi-path dependencies in the traffic system can be processed; through the dynamic update mechanism of the hypergraph structure and hyperedge weights, the model can adjust the hypergraph structure in real time according to the latest traffic data, so as to reflect the changes in the dependencies in the traffic flow in real time. The expression of the dependencies between the nodes in the traffic network is as follows:

[0090]

[0091] D w =diag(GCN d (X d ))

[0092] Among them, DHGCN(X h ) is the dependency between nodes in the traffic network, DHGCN() is the DHGCN dynamic hypergraph convolutional network, M is the total number of historical traffic nodes, is the hyperedge weight matrix of the nth layer, X h is the input traffic network feature matrix, Θ′ n is the convolution weight of the nth layer, W hd is the weight matrix of the hyperedge, D hv is the in-degree diagonal matrix of the hyperedge, H is the association matrix between nodes and hyperedges, D w is the diagonal matrix of node degrees, D he is the out-degree diagonal matrix of the hyperedge, D hv is the in-degree diagonal matrix of the hyperedge, R E×E is a real matrix space with E rows and E columns, diag() is used to extract the diagonal matrix, GCN d (X d ) is to apply the graph convolutional network to the hypergraph node feature X d Up, X d is the characteristic of time series data in the space-time graph.

[0093] In one embodiment of the present invention, the dynamic interaction module in S4 performs dynamic edge generation on the characteristic information of the traffic network and the dependencies between nodes in the traffic network, which can accurately capture the instantaneous state and dynamic changes of the traffic network, wherein the dynamic edge generation includes the dynamic edge generation of the graph and the dynamic edge generation of the hypergraph;

[0094] The expression for dynamic edge generation of the graph is as follows:

[0095]

[0096] X h =[(W′1X)[ind src ,:];(W′2X)[ind dst ,:]]

[0097] W′1,W′2∈R T×F×F

[0098] W′1X,W′2X∈R T×F′

[0099] in, is the feature matrix obtained after the convolution operation, X h is the correlation information between edges and nodes, Conv 1×1 is a 1×1 convolution kernel operation, R T×F×F is a three-dimensional real space with a time step of T and a number of features of F. W′1 and W′2 are both learnable parameters of the linear transformation of X, X is the historical traffic flow, ind src ,: is the source node of the directed edge, ind dst ,: is the destination node of the directed edge, [;] is the connection operation, R T×F′ It is a two-dimensional real number space with a time step of T and a feature number of F′, where T is the number of time steps, F is the original number of features, and F′ is the number of features after transformation.

[0100] The expression for dynamic edge generation of the hypergraph is as follows:

[0101] X d =AvgPool(X)∈R N×F

[0102] Among them, X d is the feature of time series data of spatiotemporal graph, AvgPool() is average pooling, and N is the total number of historical traffic flows.

[0103] In one embodiment of the present invention, the specific steps of S5 are as follows:

[0104] S501: According to the characteristic information of the traffic network, the dynamic characteristic information of the traffic network is integrated through a skip connection operation to obtain integrated characteristic information. Through the skip connection operation, not only the characteristic information of each level is retained, but also the learning ability and generalization of the traffic flow model integrating the spatiotemporal characteristics are enhanced;

[0105] S502: Perform nonlinear transformation using a ReLU activation function based on the integrated feature information to obtain optimized feature information;

[0106] S503: According to the optimized feature information, a linear transformation is performed using a linear transformation layer to obtain a traffic flow prediction result.

[0107] The beneficial effects of the present invention are as follows: the present invention provides a traffic flow prediction method based on dual graph convolution, constructs a multiple spatiotemporal graph convolution structure by fusing a graph convolution module, a hypergraph convolution module and a dynamic interaction module, creates a traffic flow model integrating spatiotemporal features, and realizes in-depth correlation analysis of dynamic spatiotemporal traffic data. Through the hypergraph convolution module, the ability of the traffic flow model integrating spatiotemporal features to process and understand high-dimensional spatiotemporal information is expanded. Through the dynamic interaction module, the traffic flow model integrating spatiotemporal features is enhanced to capture the sensitivity of the traffic network to time and space changes, making the prediction results of traffic flow more accurate and the prediction process more efficient.

Claims

1. A traffic flow prediction method based on dual graph convolution, characterized in that: The following steps are involved: S1: Obtain historical traffic flow data and convert it into a spatiotemporal graph and spatiotemporal hypergraph using the weighted directed graph of the traffic network; S2: Based on the spatiotemporal graph, the DGCM dynamic graph convolution module is used to process and obtain the characteristic information of the traffic network; S3: Based on the spatiotemporal hypergraph, the DHGCM dynamic hypergraph convolution module is used to process and obtain the dependencies between nodes in the transportation network; S4: Based on the characteristic information of the traffic network and the dependencies between nodes in the traffic network, the dynamic interaction module is used to generate dynamic edges to obtain dynamic traffic network characteristic information; S5: Based on the dynamic traffic network characteristic information, the prediction module is used to process and obtain the traffic flow prediction result.

2. The traffic flow prediction method based on dual graph convolution according to claim 1 is characterized in that: The space-time graph and space-time hypergraph in S1 both include a weighted directed graph of traffic roads and historical traffic flow data. The expression of the weighted directed graph is as follows: G=(V,E,W) Among them, G is a weighted directed graph, V is the set of nodes, E is the set of edges, and W is the weight corresponding to the edge; The expression of the historical traffic flow data is as follows: x 1:t =(X1,X2...,X t ) T ∈R N×F×t Among them, X is the historical traffic flow, X t is the historical traffic flow at time step t, X 1:t is the historical traffic flow sequence from time step 1 to t, is the traffic flow of the first node at time step t, is the traffic flow of the second node at time step t, is the traffic flow of the Nth node at time step t, R N×F is a three-dimensional real number space with the number of features of the Nth node being F′, X1 is the historical traffic flow when the time step is 1, X2 is the historical traffic flow when the time step is 2, T is the number of time lengths, t is the time step, N is the total number of historical traffic nodes, and F is the number of features of historical traffic flow.

3. The traffic flow prediction method based on dual graph convolution according to claim 1 is characterized in that: The specific steps of S2 are as follows: S201: According to the space-time graph, a TCN temporal convolutional network is used to perform a convolution operation to obtain the characteristics of the time series data in the space-time graph; S202: According to the characteristics of the time series data of the spatiotemporal graph, the DGCN dynamic graph convolutional network is used to process the data to obtain characteristic information of the traffic network.

4. The traffic flow prediction method based on dual graph convolution according to claim 3 is characterized in that: The expression of the characteristics of the time series data in the space-time graph is as follows: X d =GateT(X)=tanh(BCN φ (X))☉sigmoid(BC φ (X)) Among them, X d is the characteristic of time series data in the space-time graph, GateT( ) is the gate function, tanh( ) is the hyperbolic tangent function, TCN φ ( ) is a TCN temporal convolutional network, X is the historical traffic flow, ⊙ is an element-wise multiplication operation, sigmoid ( ) is a sigmoid function, Conv g is a one-dimensional convolution, N is the total number of historical traffic nodes, F is the number of features of historical traffic flow, T is the number of time steps, m is the convolution step, T0 is the time window length of the convolution, and R is the three-dimensional space; The expression of the characteristic information of the traffic network is as follows: Among them, DGCN d (X d ) is the characteristic information of the traffic network, DGCN d ( ) is a dynamic graph convolution, i is the specific number of layers in the graph convolution, A is the adjacency matrix, is the adjacency matrix of the i-th layer in the forward propagation direction, f is the specific feature index of the convolution kernel in the forward propagation, Θ n , f is the convolution weight matrix corresponding to the i-th layer feature f in the forward propagation direction, is the adjacency matrix of the i-th layer in the back propagation direction, and b is the index of the convolution kernel in the back propagation.

5. The traffic flow prediction method based on dual graph convolution according to claim 1 is characterized in that: The specific steps of S3 are as follows: S301: According to the spatiotemporal hypergraph, a TCN temporal convolutional network is used to perform a convolution operation to obtain the features of the time series data in the spatiotemporal hypergraph; S302: According to the characteristics of the time series data in the spatiotemporal hypergraph, the DHGCN dynamic hypergraph convolutional network is used to process the data to obtain the dependencies between the nodes in the transportation network.

6. The traffic flow prediction method based on dual graph convolution according to claim 5 is characterized in that: The expression of the dependency between nodes in the traffic network is as follows: D w =diag(GCN d (X d )) Among them, DHGCN(X h ) is the dependency between nodes in the traffic network, DHGCN() is the DHGCN dynamic hypergraph convolutional network, N is the total number of historical traffic nodes, is the hyperedge weight matrix of the nth layer, X h is the input traffic network feature matrix, Θ′ n is the convolution weight of the nth layer, W hd is the weight matrix of the hyperedge, D hv is the in-degree diagonal matrix of the hyperedge, H is the association matrix between nodes and hyperedges, D w is the diagonal matrix of node degrees, D he is the out-degree diagonal matrix of the hyperedge, D hv is the in-degree diagonal matrix of the hyperedge, R E×E is a real matrix space with E rows and E columns, diag() is used to extract the diagonal matrix, GCN d (X d ) is to apply the graph convolutional network to the hypergraph node feature X d Up, X d is the characteristic of time series data in the space-time graph.

7. The traffic flow prediction method based on dual graph convolution according to claim 1 is characterized in that: The dynamic edge generation in S4 includes dynamic edge generation of graph and dynamic edge generation of hypergraph; The expression for dynamic edge generation of the graph is as follows: X h =[(W′1X)[ind src ,:];(W′2X)[ind dst ,:]] W′1,W′2∈R T×F×F W′1X,W′2X∈R T×F′ in, is the feature matrix obtained after the convolution operation, X h is the correlation information between edges and nodes, Conv 1×1 is a 1×1 convolution kernel operation, R T×F×F is a three-dimensional real space with a time step of T and a number of features of F. W′1 and W′2 are both learnable parameters of the linear transformation of X, X is the historical traffic flow, ind src ,: is the source node of the directed edge, ind dst ,: is the destination node of the directed edge, [;] is the connection operation, R T×F′ It is a two-dimensional real number space with a time step of T and a feature number of F′, where T is the number of time steps, F is the original number of features, and F′ is the number of features after transformation; The expression for dynamic edge generation of the hypergraph is as follows: X d =AvgPool(X)∈R N×F Among them, X d is the feature of time series data of spatiotemporal graph, AvgPool() is average pooling, and N is the total number of historical traffic flows.

8. The traffic flow prediction method based on dual graph convolution according to claim 1 is characterized in that: The specific steps of S5 are as follows: S501: integrating the dynamic traffic network characteristic information through a skip connection operation according to the characteristic information of the traffic network to obtain integrated characteristic information; S502: Perform nonlinear transformation using a ReLU activation function based on the integrated feature information to obtain optimized feature information; S503: According to the optimized feature information, a linear transformation is performed using a linear transformation layer to obtain a traffic flow prediction result.