Urban traffic prediction method based on hypergraph neural network in the absence of structured data

Constructing topological and semantic hypergraphs of traffic areas through hypergraph neural networks, performing feature propagation and depth convolution, solving the deficiencies of data missing and high-order correlation processing in the existing technology, and achieving efficient traffic in urban traffic prediction. Condition forecast.

CN117496702BActive Publication Date: 2024-10-18NANJING UNIV OF SCI & TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311435923.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-01
Publication Date
2024-10-18
Estimated Expiration
2043-11-01

AI Technical Summary

Technical Problem

Existing graph convolutional networks assume fully observed feature matrices in traffic prediction and cannot effectively handle structural data missing and high-order multi-modal correlations, especially when facing multi-source data.

Method used

Using hypergraph neural network, by extracting the static spatial topology and dynamic state data of the traffic area, a topological hypergraph and a semantic hypergraph based on second-order spatial correlation are constructed, feature propagation is performed to fill in missing feature values, and a depth hypergraph is constructed. Convolutional network for traffic state prediction.

Benefits of technology

In the case of missing structural data, the multi-modal high-order semantic correlation of traffic speed can be used to reconstruct structural features under high missing rates and achieve more accurate traffic condition prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117496702B_ABST
    Figure CN117496702B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for urban traffic prediction based on a hypergraph neural network under structural data missing, which consists of four main parts: data input, hypergraph construction, feature propagation, hypergraph convolution and traffic prediction. Based on multi-modal static terrain data and dynamic traffic data, two semantic hypergraphs and a geospatial graph are constructed and integrated to describe the fine-grained and coarse-grained high-order semantic associations and second-order geospatial associations of traffic conditions. In order to learn the feature representation on the hypergraph, a new hypergraph convolution operator is obtained from graph convolution and hypergraph learning theory. By using the proposed hypergraph convolution as a deep network building module, the high-level feature representation of the prediction is learned, and then the traffic conditions are predicted. The present invention processes the missing features in the hypergraph learning model by performing feature propagation based on the hypergraph, and achieves the reconstruction of structural missing features under high missing rates by propagating features between nodes with known features.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to urban traffic prediction technology, specifically to an urban traffic prediction method based on a hypergraph neural network in the absence of structural data. Background Art

[0002] Graph Convolutional Network (GCN) models show promising potential for traffic forecasting, however, several challenges remain. First, they assume the existence of a fully observed feature matrix. However, in real applications, this is often not feasible due to the unavoidable and ubiquitous presence of missing data. Second, they employ a traditional graph structure. However, this structure can only encode a single modality, second-order dependency of the road network. However, roads may be semantically related, while the underlying dependencies in the data are often high-order and multimodal, especially when faced with multi-source data. Summary of the Invention

[0003] In order to solve the above technical defects in the prior art, the present invention provides an urban traffic prediction method based on a hypergraph neural network in the absence of structural data.

[0004] The technical solution for achieving the purpose of the present invention is: a method for urban traffic prediction based on a hypergraph neural network in the absence of structural data, comprising the following steps:

[0005] Step 1: Extract the static spatial topological structure data and dynamic traffic status data between each traffic area in the target area, and construct the traffic area adjacency matrix, the recent traffic status feature matrix with time intervals, and the historical traffic status feature matrix with daily intervals;

[0006] Step 2: Based on the adjacency matrix, the recent traffic status feature matrix, and the historical traffic status feature matrix, a topological hypergraph based on second-order spatial correlation, a semantic hypergraph based on the traffic status features of continuous time periods, and a semantic hypergraph based on the daily traffic status features are established. The three hypergraphs are concatenated to form a new hypergraph based on the traffic status feature matrix of the time period and the traffic status feature matrix of the daily period.

[0007] Step 3: Perform feature propagation on the new hypergraph to fill in the missing feature values;

[0008] Step 4: Use the association matrix of the completed new hypergraph as input to build a deep hypergraph convolutional network and perform hypergraph convolution layer by layer;

[0009] Step 5: Use the training set to train the deep hypergraph convolutional network to obtain the optimal model parameters. Input the traffic status characteristics of the next moment into the trained optimal model to predict the traffic conditions at the next moment.

[0010] Preferably, the specific steps of extracting the static spatial topological structure data and dynamic traffic status data of each traffic area in the target area are:

[0011] Extract the static spatial topological structure between each traffic area in the target area, which is recorded as the traffic area adjacency matrix A g , traffic area adjacency matrix A g The data in is represented as:

[0012]

[0013] Among them, a g (i,j) is the adjacency matrix A g The element in row i and column j, v i is the i-th node in the graph, corresponding to the i-th traffic area;

[0014] According to the traffic status data of each traffic area in different time periods, the recent traffic status feature matrix X is constructed at the current time t with time intervals as the interval. r , expressed as:

[0015]

[0016] in, Represents the traffic conditions of N areas at time t, where N represents the number of traffic areas and p represents the number of time periods selected by the feature matrix; the recent traffic status feature matrix X r Each row vector in Represents the recent traffic feature vector of the i-th area, column vector Indicates the traffic status information of all areas in different time periods. All are real matrices;

[0017] Obtain the historical data of the previous q days in the time period to be predicted t+1, and construct the historical traffic state feature matrix X with daily intervals d , expressed as:

[0018]

[0019] in, Indicates the traffic conditions of N areas in the next time period t+1, T d represents the number of time periods contained in each day, and q represents the number of days considered.

[0020] Preferably, a topological hypergraph based on second-order spatial correlation, a semantic hypergraph based on traffic state characteristics of continuous time periods, and a semantic hypergraph based on daily traffic state characteristics are established based on the recent traffic state feature matrix and the historical traffic state feature matrix. The specific method for obtaining a new hypergraph by splicing the three hypergraphs is as follows:

[0021] Step 21: Based on the recent traffic status feature matrix X r , hyperedges are constructed by the KNN nearest neighbor algorithm;

[0022] Constructing a semantic hypergraph of recent traffic conditions based on hyperedges in represents the set of traffic areas, represents the set of hyperedges in the recent semantic hypergraph;

[0023] Step 22: Based on the historical traffic state feature matrix X d , hyperedges are constructed by the KNN nearest neighbor algorithm, and all hyperedges are spliced ​​together to form the correlation matrix H d , expressed as

[0024]

[0025] in is the matrix H d The jth hyperedge of ;

[0026] Constructing a semantic hypergraph of historical traffic status based on hyperedges in Represents the set of hyperedges in the historical semantic hypergraph;

[0027] Step 23: According to the extracted adjacency matrix A g , constructing a topological hypergraph based on second-order spatial correlation Second-order spatial correlation used to reflect traffic conditions;

[0028] Step 24: Combine the correlation matrices corresponding to the spatial topology hypergraph, the recent traffic status semantic hypergraph, and the historical traffic status semantic hypergraph obtained in the above steps to obtain a fusion multi-modal high-order semantic correlation comprehensive hypergraph. Comprehensive Hypergraph By one dimension The correlation matrix H is described; the recent traffic state characteristic matrix established in step 1 is spliced ​​with the historical traffic state characteristic matrix to form a comprehensive traffic state characteristic matrix

[0029] Preferably, according to the recent traffic state feature matrix X r , the specific method of constructing hyperedges by the KNN nearest neighbor algorithm is:

[0030] For each node v i ,i=1,2,…,N,use KNN algorithm in matrix X r Calculate the k-1 nearest neighbor nodes from the row vector of iTogether with k-1 nearest neighbor nodes, form a hyperedge Get N hyperedges;

[0031] Splice all hyperedges into one The matrix is ​​recorded as the correlation matrix H r , expressed as:

[0032]

[0033] where h r (i,j) is the matrix H r The element at row i and column j.

[0034] Preferably, according to the extracted adjacency matrix A g , constructing a topological hypergraph based on second-order spatial correlation The specific method is:

[0035] For the adjacency matrix A g Each edge of is considered as a hyperedge containing only two nodes, thereby constructing a spatial topological hypergraph The hypergraph consists of a The incidence matrix H g describe,;

[0036]

[0037] in It is H g The jth hyperedge of represents the second-order correlation between different traffic areas, ε g Represents a set of hyperedges in a spatial topological hypergraph.

[0038] Preferably, the specific method of performing feature propagation on the new hypergraph to fill the missing feature values ​​is:

[0039] Step 31: The hypergraph obtained in step 2 Convert it into a normal graph G by the following method H ,

[0040] A H =HWH T -D v

[0041] Among them A H It is Figure G H The adjacency matrix, H is the incidence matrix of the hypergraph, D v and W are the node degree matrix and hyperedge matrix, respectively.

[0042] Weight matrix, the superscript T indicates the transpose of the matrix;

[0043] Step 32: The node's recent traffic state feature matrix is The order of the elements in is adjusted to obtain

[0044]

[0045] in, A matrix of nodes representing known features, Represents a matrix composed of nodes with unknown features; the normalized adjacency matrix is

[0046]

[0047] Among them, the subscript kk indicates that the corresponding row node is known and the corresponding column node is known; the subscript ku indicates that the corresponding row node is unknown and the corresponding column node is known; the subscript uk indicates that the corresponding row node is known and the corresponding column node is unknown; the subscript uu indicates that the corresponding row node is unknown and the corresponding column node is unknown;

[0048] Step 33: Fill the matrix X by feature propagation r The iterative formula for feature propagation is as follows:

[0049]

[0050] where X r,(k) represents the node’s recent traffic status feature matrix after the kth iteration, X r,(k+1) represents the node's recent traffic status feature matrix after the k+1th iteration;

[0051] Step 34: Reset the values ​​of the nodes with known features in the iterative matrix to the original known feature values, thus completing the matrix X r Fill in the missing values ​​in the matrix and name the completed matrix

[0052] Step 35: Using the methods of steps 32 to 34, the historical traffic state feature matrix X d Fill in and get the completed matrix

[0053] Preferably, the new hypergraph obtained by concatenating the three hypergraphs is used as the input of the deep network to perform hypergraph convolution. The specific method is:

[0054] Step 41: The dimension obtained in step 24 is The correlation matrix H and the characteristic matrix obtained in steps 34 and 35 and As input;

[0055] Step 42: Perform hypergraph convolution using a deep network. The deep network is composed of multiple stacked hypergraph convolution layers. The calculation formula of each hypergraph convolution layer is:

[0056]

[0057] in is the input signal of the lth layer in the hypergraph, is the parameter matrix of the lth layer, σ is the nonlinear activation function, D v ,D e and W are the node degree matrix, hyperedge degree matrix and hyperedge weight matrix respectively.

[0058] Preferably, the prediction model is trained using the training set to minimize the error between the predicted value and the true value. The specific method for solving the optimal parameters of the prediction model is:

[0059] Step 51: Construct a training set based on the traffic state observations of N traffic areas in T time periods in is the feature matrix, To predict the label, p represents the number of time periods selected by the feature matrix;

[0060] Step 52: Input the training set into the prediction model for training. The objective function of the model training is:

[0061]

[0062] Where the first term is the predicted mean square error empirical loss term, and the second term is a model parameter regularization term. Representing a hypergraph The prediction model with parameter Θ is is the loss function, M = Tp is the number of samples;

[0063] Step 53: After model training, the feature matrix at the current moment Input the value to the optimal model obtained after training, and the prediction of the traffic conditions at the next moment is:

[0064]

[0065] in is the feature matrix at the current moment, are the optimal model parameters after learning.

[0066] Compared with the prior art, the present invention has the following significant advantages:

[0067] (1) This paper adopts a hypergraph-based traffic speed prediction framework for city-wide traffic speed prediction, combining the second-order geographical dependencies of links and the multimodal high-order semantic relevance of traffic speed in a unified framework, and uses structured missing data to predict traffic speed;

[0068] (2) The present invention uses feature propagation based on hypergraphs to handle missing features in hypergraph learning models. By propagating features between nodes with known features, the known features are used as boundary conditions to reconstruct structural missing features under high missing rates.

[0069] (3) This paper introduces a novel convolution operator for learning feature representations on hypergraphs. Based on graph convolution and hypergraph learning theory, it achieves more general information propagation between vertices by exploiting multimodal high-order correlations, similar to graph convolution, and is used as a basic building block for constructing deep hypergraph networks.

[0070] Other features and advantages of the present invention will be described in the following description, and in part will become apparent from the description or be understood by practicing the present invention. The purposes and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] The accompanying drawings are only for the purpose of illustrating particular embodiments and are not to be considered limiting of the present invention. Like reference symbols denote like parts throughout the drawings.

[0072] Figure 1 This is the urban traffic prediction method based on hypergraph neural network in the absence of structural data proposed by this invention

[0073] Figure 2 It is an input schematic diagram of the present invention. DETAILED DESCRIPTION

[0074] It is easy to understand that, based on the technical solution of the present invention, a person of ordinary skill in the art can imagine various embodiments of the present invention without changing the essential spirit of the present invention. Therefore, the following specific embodiments and drawings are merely illustrative of the technical solution of the present invention and should not be regarded as the whole of the present invention or as a limitation or limitation of the technical solution of the present invention. On the contrary, the purpose of providing these embodiments is to enable those skilled in the art to understand the present invention more thoroughly. The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the innovative concept of the present invention.

[0075] The present invention is an end-to-end method consisting of four main parts: data input, hypergraph construction, feature propagation, hypergraph convolution and traffic prediction. Based on multimodal static terrain data and dynamic traffic data, two semantic hypergraphs and a geospatial graph are constructed and integrated to describe the fine-grained and coarse-grained high-order semantic associations and second-order geospatial associations of traffic conditions. In order to learn feature representations on the hypergraph, a new hypergraph convolution operator is derived from graph convolution and hypergraph learning theory. By using the proposed hypergraph convolution as a deep network building block, the predicted high-level feature representation is learned, and then the traffic conditions are predicted. The present invention jointly captures the second-order geospatial correlations and multimodal high-order semantic correlations of traffic conditions in a unified framework, which is quite attractive.

[0076] The present invention will be further described below with reference to the accompanying drawings and embodiments.

[0077] like Figure 1 As shown in Figure 1, the urban traffic prediction method based on hypergraph neural network under the condition of missing structured data includes the following steps:

[0078] Step 1: Extract the static spatial topological structure data and dynamic traffic status data between each traffic area in the target area, and construct the traffic area adjacency matrix, the recent traffic status feature matrix with time intervals, and the historical traffic status feature matrix with daily intervals. The specific steps are as follows:

[0079] Step 11: Extract the spatial topological structure between each traffic area in the target area, recorded as the adjacency matrix A g , the adjacency matrix A g The data is represented as:

[0080]

[0081] Among them, a g (i,j) is the matrix A g The element in row i and column j, v i is the i-th node in the graph, corresponding to the i-th traffic area;

[0082] Step 12: Based on the traffic status data of each traffic area in different time periods, construct the recent traffic status feature matrix X at the current time t with time intervals as the interval r , expressed as:

[0083]

[0084] in, represents the traffic conditions of N areas at time t, where N represents the number of traffic areas and p represents the time period; the feature matrix X r Each row vector in Represents the recent traffic feature vector of the i-th area, column vector Indicates the traffic status information of all areas in different time periods.

[0085] Step 13: Obtain the historical data of the previous q days of the forecast time period t+1 to form the historical traffic state feature matrix X with daily intervals d , expressed as:

[0086]

[0087] in Indicates the traffic conditions of N areas in the next time period t+1, T d represents the number of time periods contained in each day, and q represents the number of days considered.

[0088] Step 2: Based on the adjacency matrix, the recent traffic status feature matrix, and the historical traffic status feature matrix, a topological hypergraph based on second-order spatial correlation, a semantic hypergraph based on the traffic status features of continuous time periods, and a semantic hypergraph based on the daily traffic status features are established. The three hypergraphs are spliced ​​together to form a new hypergraph. The new hypergraph is based on the traffic status feature matrix of the time period and the traffic status feature matrix of the daily period. The specific method is as follows:

[0089] Step 21: Based on the recent traffic status feature matrix X r , hyperedges are constructed using the KNN nearest neighbor algorithm, specifically:

[0090] For each node v i ,i=1,2,…,N,use KNN algorithm in matrix X r Calculate the k-1 nearest neighbor nodes from the row vector of i Together with k-1 nearest neighbor nodes, form a hyperedge Get N hyperedges;

[0091] Splice all hyperedges into one The matrix is ​​recorded as the correlation matrix H r , expressed as:

[0092]

[0093] where h r (i,j) is the matrix H r The element in row i and column j;

[0094] Constructing a semantic hypergraph of recent traffic conditions based on hyperedges in represents the set of traffic areas, represents the set of hyperedges in the recent semantic hypergraph;

[0095] Step 22: According to the feature matrix X d , hyperedges are constructed by the KNN nearest neighbor algorithm, and all hyperedges are spliced ​​together to form the correlation matrix H d , expressed as

[0096]

[0097] in is the matrix H d The jth hyperedge of ;

[0098] Constructing a semantic hypergraph of historical traffic status based on hyperedges in Represents the set of hyperedges in the historical semantic hypergraph;

[0099] Step 23: According to the extracted adjacency matrix A g , constructing a topological hypergraph based on second-order spatial correlation Second-order spatial correlation used to reflect traffic conditions;

[0100] For the adjacency matrix A g Each edge of is considered as a hyperedge containing only two nodes, thereby constructing a spatial topological hypergraph The hypergraph consists of a The incidence matrix H g describe,;

[0101]

[0102] in It is H g The jth hyperedge of represents the second-order correlation between different traffic areas, ε g Represents a set of hyperedges in a spatial topological hypergraph.

[0103] Step 24: Combine the correlation matrices corresponding to the spatial topology hypergraph, the recent traffic status semantic hypergraph, and the historical traffic status semantic hypergraph obtained in the above steps to obtain a fusion multi-modal high-order semantic correlation comprehensive hypergraph. Comprehensive Hypergraph By one dimension The correlation matrix H is described; the recent traffic state characteristic matrix established in step 1 is spliced ​​with the historical traffic state characteristic matrix to form a comprehensive traffic state characteristic matrix

[0104] Step 3: Perform feature propagation on the new hypergraph to fill in the missing feature values. The specific steps are:

[0105] Step 31: The hypergraph obtained in step 2 Convert it into a normal graph G by the following methodH ,

[0106] A H =HWH T -D v

[0107] Among them A H It is Figure G H The adjacency matrix, H is the incidence matrix of the hypergraph, D v and W are the node degree matrix and hyperedge weight matrix respectively, and the superscript T indicates the transpose of the matrix;

[0108] Step 32: According to step 2, the node's recent traffic state feature matrix is Without loss of generality, after X r Adjusting the order of the elements in can yield,

[0109]

[0110] in A matrix of nodes representing known features, A matrix of nodes representing unknown features;

[0111] The normalized adjacency matrix is

[0112]

[0113] Among them, the subscript kk indicates that the corresponding row node is known and the corresponding column node is known; the subscript ku indicates that the corresponding row node is unknown and the corresponding column node is known; the subscript uk indicates that the corresponding row node is known and the corresponding column node is unknown; the subscript uu indicates that the corresponding row node is unknown and the corresponding column node is unknown;

[0114] Step 33: To fill the matrix X in step 32 r The missing values ​​in can be solved by feature propagation, and its iterative formula is as follows

[0115]

[0116] where X r,(k) represents the result of the kth iteration, X r,(k+1) represents the result of the k+1th iteration. The above formula is equivalent to converting the feature matrix X r Multiply by the normalized adjacency matrix As shown below

[0117]

[0118] Through feature propagation, nodes with unknown features also have feature values, and the iteration stops until all nodes with unknown features have feature values.

[0119] Step 34: After feature propagation, the missing values ​​of the node's recent traffic state feature matrix are filled, but the originally known eigenvalues ​​are also changed. Therefore, the values ​​of the nodes in the node's recent traffic state feature matrix that originally had known eigenvalues ​​are reset to the known eigenvalues. This completes the matrix X r Fill in the missing values ​​in the matrix and name the completed matrix

[0120] Step 35: According to steps 32, 33, and 34, since the matrix X d Structurally similar to the matrix X r Similar, so X r Replace with X d , we can get X d The completed matrix is

[0121] Step 4: Use the association matrix of the completed new hypergraph as input to build a deep hypergraph convolutional network and perform hypergraph convolution layer by layer. The specific method is as follows:

[0122] Step 41: The dimension obtained in step 24 is The correlation matrix H and the characteristic matrix obtained in steps 34 and 35 and As input;

[0123] Step 42: Perform hypergraph convolution. The deep network is composed of multiple stacked hypergraph convolution layers. The calculation formula of each hypergraph convolution layer is:

[0124]

[0125] in is the input signal of the lth layer in the hypergraph, is the parameter matrix of the lth layer, σ is the nonlinear activation function, D v ,D e and W are the node degree matrix, hyperedge degree matrix and hyperedge weight matrix respectively.

[0126] Step 5: Use the training set to train the model, obtain the optimal model parameters, input the traffic status characteristics of the next moment into the trained optimal model, and predict the traffic conditions at the next moment. The specific method is:

[0127] Step 51: Construct a training set based on the traffic state observations of N traffic areas in T time periods in is the feature matrix, is the predicted label, p is the number of features;

[0128] Step 52: Input the training set into the prediction model for training. The objective function of the model training is:

[0129]

[0130] Where the first term is the predicted mean square error empirical loss term, and the second term is a model parameter regularization term. Representing a hypergraph The prediction model with parameter Θ is is the loss function, M=Tp is the number of samples.

[0131] Step 53: After model training, the feature matrix at the current moment Input the value to the optimal model obtained after training, and the prediction of the traffic conditions at the next moment is:

[0132]

[0133] in is the feature matrix at the current moment, are the optimal model parameters after learning.

[0134] This paper introduces a novel data representation structure, namely hypergraph, for complex correlation modeling and develops a hypergraph-based deep learning framework for predicting urban traffic speed in urban road networks based on structurally missing data with high missing rate.

[0135] This paper develops an end-to-end deep learning framework based on hypergraph, which combines the second-order geographical dependencies of links and the multimodal high-order semantic correlation of traffic speed in a unified framework, and uses structured missing data to predict traffic speed.

[0136] We conduct extensive experiments on large-scale, multi-source, heterogeneous data from urban road networks. Empirical results demonstrate that the proposed model can generate accurate and robust traffic speed predictions based on structurally missing data at various missing rates, outperforming competing models.

[0137] The above description is only a preferred embodiment of the present invention, but the protection scope of the present invention is not limited thereto.

[0138] Any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included in the protection scope of the present invention.

[0139] It should be understood that in order to simplify the present invention and help those skilled in the art understand the various aspects of the present invention, in the above description of the exemplary embodiments of the present invention, various features of the present invention are sometimes described in a single embodiment or described with reference to a single figure. However, the present invention should not be interpreted as if all the features included in the exemplary embodiments are essential technical features of the claims of this patent.

[0140] It should be understood that the modules, units, components, etc. included in the device of one embodiment of the present invention can be adaptively changed to be installed in a device different from the embodiment. The different modules, units, or components included in the device of the embodiment can be combined into a single module, unit, or component, or they can be divided into multiple sub-modules, sub-units, or sub-components.

Claims

1. A method for urban traffic prediction based on hypergraph neural network in the absence of structural data, characterized in that: The following steps are involved: Step 1: Extract the static spatial topological structure data and dynamic traffic status data between each traffic area in the target area, construct the traffic area adjacency matrix, the recent traffic status feature matrix with time intervals, and the historical traffic status feature matrix with days as intervals. The specific steps are as follows: Extract the static spatial topological structure between each traffic area in the target area, recorded as the traffic area adjacency matrix A g , traffic area adjacency matrix A g The data in is represented as: Among them, a g (i,j) is the adjacency matrix A g The element in row i and column j, v i is the i-th node in the graph, corresponding to the i-th traffic area; According to the traffic status data of each traffic area in different time periods, construct the recent traffic status feature matrix X at the current time t with time intervals r , expressed as: in, represents the traffic conditions of N areas at time t, where N represents the number of traffic areas and p represents the number of time periods selected by the feature matrix; the recent traffic status feature matrix X r Each row vector in Represents the recent traffic feature vector of the ith area, column vector Indicates the traffic status information of all areas in different time periods. All are real matrices; Obtain the historical data of the previous q days in the forecast time period t+1 to form a historical traffic state feature matrix X with daily intervals d , expressed as: in, represents the traffic conditions of N areas in the next time period t+1, T d represents the number of time periods contained in each day, and q represents the number of days considered; Step 2: Based on the adjacency matrix, the recent traffic status feature matrix and the historical traffic status feature matrix, a topological hypergraph based on second-order spatial correlation, a semantic hypergraph based on traffic status features in continuous time periods and a semantic hypergraph based on daily traffic status features are established. The three hypergraphs are spliced ​​to obtain a new hypergraph. The specific method is as follows: Step 21: Based on the recent traffic status feature matrix X r , hyperedges are constructed by the KNN nearest neighbor algorithm; Constructing a semantic hypergraph of recent traffic conditions based on hyperedges in represents the set of traffic areas, Represents the set of hyperedges in the recent semantic hypergraph. The specific method is: For each node v i , i = 1, 2, ..., N, use the KNN algorithm in the matrix X r Calculate the k-1 nearest neighbor nodes from the row vector of i Together with k-1 nearest neighbor nodes, form a hyperedge Get N hyperedges; Connect all hyperedges into one The matrix of r , expressed as: where h r (i,j) is the matrix H r The element at row i and column j Step 22: Based on the historical traffic status feature matrix X d , hyperedges are constructed by the KNN nearest neighbor algorithm, and all hyperedges are concatenated to form the association matrix H d , expressed as in is the matrix H d The jth hyperedge, h d (i,j) is the incidence matrix H d The element at row i and column j; Constructing a semantic hypergraph of historical traffic status based on hyperedges in Represents the set of hyperedges in the historical semantic hypergraph; Step 23: According to the extracted adjacency matrix A g , constructing a topological hypergraph based on second-order spatial correlation The second-order spatial correlation used to reflect traffic conditions is as follows: For the adjacency matrix A g Each edge of is considered as a hyperedge containing only two nodes, thus constructing a spatial topological hypergraph The hypergraph consists of a The incidence matrix H g describe: in Yes H g The jth hyperedge of represents the second-order correlation between different traffic areas, ε g represents the set of hyperedges in the spatial topological hypergraph, h g (i,j) is the incidence matrix H g The element at row i and column j Step 24: Concatenate the correlation matrices corresponding to the spatial topology hypergraph, the recent traffic status semantic hypergraph, and the historical traffic status semantic hypergraph obtained in the above steps to obtain a fusion multi-modal high-order semantic correlation comprehensive hypergraph Comprehensive Hypergraph From a dimension The correlation matrix H is described; the recent traffic state characteristic matrix established in step 1 is concatenated with the historical traffic state characteristic matrix to form a comprehensive traffic state characteristic matrix Step 3: Perform feature propagation on the new hypergraph to fill in the missing feature values. The specific method is: Step 31: The hypergraph obtained in step 2 Convert it into a normal graph G by the following method H , Among them A H It is Figure G H The adjacency matrix of the hypergraph, H is the incidence matrix of the hypergraph, and D v and W are the node degree matrix and the hyperedge weight matrix, respectively. Represents the transpose of a matrix; Step 32: The node recent traffic state feature matrix is Adjust the order of the elements to get: in, A matrix of nodes representing known features, A matrix of nodes representing unknown features; The normalized adjacency matrix is Among them, the subscript kk indicates that the corresponding row node is known and the corresponding column node is known; the subscript ku indicates that the corresponding row node is unknown and the corresponding column node is known; the subscript uk indicates that the corresponding row node is known and the corresponding column node is unknown; the subscript uu indicates that the corresponding row node is unknown and the corresponding column node is unknown; Step 33: Fill the matrix X by feature propagation r The iterative formula for feature propagation is as follows: Where X r,(k) represents the node's recent traffic status feature matrix after the kth iteration, X r,(k+1) Represents the node's recent traffic status feature matrix after the k+1th iteration; Step 34: Reset the values ​​of the nodes with known features in the iterative matrix to the original known feature values, thus completing the matrix X r Fill in the missing values ​​in the matrix and name the completed matrix Step 35: Using the methods of steps 32 to 34, the historical traffic state feature matrix X d Fill in and get the completed matrix Step 4: Use the association matrix of the completed new hypergraph as input to construct a deep hypergraph convolutional network and perform hypergraph convolution layer by layer. The specific method is as follows: Step 41: The dimension obtained in step 24 is The correlation matrix H and the feature matrix obtained in steps 34 and 35 and As input; Step 42: Perform hypergraph convolution using a deep network, wherein the deep network is composed of a plurality of stacked hypergraph convolution layers, and the calculation formula of each hypergraph convolution layer is: in is the input signal of the lth layer in the hypergraph, is the parameter matrix of the lth layer, σ is the nonlinear activation function, D v ,D e and W are the node degree matrix, hyperedge degree matrix and hyperedge weight matrix respectively; Step 5: Use the training set to train the deep hypergraph convolutional network to obtain the optimal model parameters, input the traffic status characteristics of the next moment into the trained optimal model, and predict the traffic conditions at the next moment.

2. The urban traffic prediction method based on hypergraph neural network in the absence of structural data according to claim 1 is characterized in that: The deep hypergraph convolutional network is trained using the training set to obtain the optimal model parameters. The traffic status characteristics of the next moment are input into the optimal model obtained through training. The specific method for predicting the traffic conditions at the next moment is as follows: Step 51: Construct a training set based on the traffic status observations of N traffic areas in T time periods in is the feature matrix, To predict the label, p represents the number of time periods selected by the feature matrix; Step 52: Input the training set into the prediction model for training. The objective function of the model training is: Where the first term is the predicted mean square error empirical loss term, and the second term is a model parameter regularization term. Representing Hypergraph The prediction model with parameter Θ is is the loss function, M = Tp is the number of samples; Step 53: After the model is trained, the feature matrix at the current moment Input into the optimal model obtained after training, and the prediction of the traffic conditions at the next moment is obtained as follows: in is the feature matrix at the current moment, is the optimal model parameter after learning.

Citation Information

Patent Citations

  • Urban traffic hypergraph convolution prediction method fusing multi-mode high-order semantic correlation

    CN116363874A