A traffic flow prediction method and system in an intelligent transportation system

The traffic flow node characteristics in the intelligent transportation system are encoded through deep embedding and graph embedding methods, and the graph neural network is used for prediction, which solves the problem of instability of traffic flow prediction in the existing technology and achieves more accurate and stable flow. predict.

CN117437776BInactive Publication Date: 2024-09-06NANCHANG UNIV +1
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202311351736.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-18
Publication Date
2024-09-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing traffic flow prediction methods are unstable in intelligent transportation systems, fail to fully utilize system functions, and are difficult to achieve accurate flow predictions.

Method used

Deep embedding and graph embedding methods are used to encode the inherent characteristics and relationship characteristics of traffic flow nodes, graph-level encoding results are generated through graph neural networks, and a sequential model based on neural computing is established to predict time series traffic flow data.

Benefits of technology

It improves the stability and accuracy of traffic flow prediction, enhances feature representation capabilities, and shows good performance and robustness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117437776B
    Figure CN117437776B
Patent Text Reader

Abstract

The present application discloses a traffic flow prediction method and system in an intelligent transportation system, wherein the traffic flow prediction method in the intelligent transportation system includes the following steps: obtaining the inherent characteristics and relationship characteristics of the traffic flow nodes; encoding the inherent characteristics and relationship characteristics of the traffic flow nodes; decoding the encoded inherent characteristics and relationship characteristics to obtain the predicted flow value. The present application uses deep embedding and graph embedding together to enhance the feature representation in ITS. At the same time, the deep embedding and graph embedding methods can present good performance in the process of traffic flow prediction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and in particular, to a traffic flow prediction method and system in an intelligent transportation system. Background Art

[0002] With the continuous development of the Internet of Things (IoT) and Cyber-Physical Systems (CPS), Intelligent Transportation Systems (ITS) have gradually become the driving force of smart city operations. ITS strengthens the relationship between roads, vehicles and users by using computers, communication and control technologies. As a result, a set of convenient and efficient road traffic service systems can be formed. The reasonable operation and scheduling of ITS is the way to ensure its normal operation. To achieve this goal, accurate prediction of traffic flow in ITS has become an important technology that needs to be broken through. Traffic prediction is a key module of ITS. The core of traffic prediction is to predict future traffic conditions (flow, speed, travel time, etc.) based on given historical observations measured by sensors deployed in the road network. Accurate traffic prediction can help people avoid crowded roads and arrange their trips reasonably, and can also help authorities allocate road resources in advance to alleviate traffic congestion and improve public safety. In recent years, the use of machine learning in traffic flow prediction has become the mainstream idea to solve this problem. Computers achieve self-learning and improvement like humans, acting as an important means to achieve intelligence. It is widely used in data mining tasks of network flows, such as social networks. It is expected that machine learning algorithms can also be well applied to traffic prediction in ITS. Traffic prediction in ITS is generally more challenging than general data mining tasks in social networks. By building models to predict future numerical trends, we can learn from historical data. The most intuitive method is to mine statistical features from historical traffic flow data and predict future data from a statistical perspective, such as the Gaussian regression model. However, this method fails to fully utilize the various functions in ITS and has great instability.

[0003] Therefore, how to provide a more appropriate model for traffic prediction, so as to ensure that various functions in ITS can be fully utilized while having high stability, has become an urgent problem to be solved in this field. Summary of the invention

[0004] The present application provides a method for predicting traffic flow in an intelligent transportation system, comprising the following steps: obtaining inherent characteristics and relationship characteristics of traffic flow nodes; encoding the inherent characteristics and relationship characteristics of traffic flow nodes; decoding the encoded inherent characteristics and relationship characteristics to obtain predicted flow values.

[0005] As above, the inherent features are divided into discrete and continuous types, using vector Discrete features representing intrinsic features, vector A' is a continuous feature representing an intrinsic feature.i Represents relationship characteristics.

[0006] As above, the discrete features are encoded and directly embedded through matrix calculation. For the sth node, its xth discrete feature is represented as D x,s , for D x,s , firstly convert it into a vector Δ(D x,s ); for Δ(D x,s ), whose dimension is equal to the number of its options; and Δ(D x,s ) is composed of element 1 and part of element 0. The following formula is used to convert Δ(D x,s ) is encoded into another vector with a specific dimension Yes D x,s The embedding result is:

[0007]

[0008] Where W D,x and b D,x is a parameter, for the parameter matrix W D,x , it has two dimension parameters that indicate its row and line dimensions. The first parameter is equal to D x,s The second parameter is equal to size.

[0009] As above, where for continuous features We expect their corresponding positions in the discrete interval. For a single feature, first normalize all its values ​​to the range of [0,1]. For the i-th node, its l-th continuous feature is represented by E l,i . E l,i The normalization process is expressed as:

[0010]

[0011] E′ l,j YesE l,i The corresponding normalized value of and are the maximum and minimum values ​​of all values ​​of the lth continuous feature.

[0012] As above, where the initial eigenvalue E is given l,i and its normalized value E′ l,i ,in:

[0013]

[0014] Δ(E′ l,i ) is E′ l,i The one-hot encoding result of A representative vector representing a discrete feature.

[0015] A traffic flow prediction system in an intelligent transportation system includes a node feature acquisition unit, an encoding unit and a predicted flow value acquisition unit; the node feature acquisition unit is used to acquire the inherent features and relationship features of traffic flow nodes; the encoding unit is used to encode the inherent features and relationship features of traffic flow nodes; the predicted flow value acquisition unit is used to decode the encoded inherent features and relationship features to obtain predicted flow values.

[0016] As above, in the node feature acquisition unit, the inherent features are divided into discrete and continuous types, using vector Discrete features representing intrinsic features, vector A' is a continuous feature representing an intrinsic feature. i Represents relationship characteristics.

[0017] As above, in the encoding unit, the discrete features are encoded and directly embedded through matrix calculation. For the sth node, its xth discrete feature is represented as D x,s , for D x,s , firstly convert it into a vector Δ(D x,s ); for Δ(D x,s ), whose dimension is equal to the number of its options; and Δ(D x,s ) is composed of element 1 and part of element 0. The following formula is used to convert Δ(D x,s ) is encoded into another vector with a specific dimension Yes D x,s The embedding result is:

[0018]

[0019] Where W D,x and b D,x is a parameter, for the parameter matrix W D,x , it has two dimension parameters that indicate its row and line dimensions. The first parameter is equal to D x,s The second parameter is equal to size.

[0020] As above, in the encoding unit, for continuous features We expect their corresponding positions in the discrete interval. For a single feature, first normalize all its values ​​to the range of [0,1]. For the i-th node, its l-th continuous feature is represented by E l,i . E l,i The normalization process is expressed as:

[0021]

[0022] E′ l,j YesE l,i The corresponding normalized value of and are the maximum and minimum values ​​of all values ​​of the lth continuous feature.

[0023] As above, in the coding unit, the initial eigenvalue E is given l,i and its normalized value E′ l,i ,in:

[0024]

[0025] Δ(E′ l,i ) is E′ l,i The one-hot encoding result of A representative vector representing a discrete feature.

[0026] This application has the following beneficial effects:

[0027] (1) This application uses deep embedding and graph embedding together to enhance the feature representation in ITS. At the same time, the deep embedding and graph embedding methods can show good performance compared with the existing technology.

[0028] (2) This application specifically studies and predicts the principles of deep embedding and graphic embedding, and enhances features through the principles of deep embedding and graphic embedding. It has appropriate robustness and enhances stability in different situations. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0030] Figure 1 is a flow chart of a method for predicting traffic flow in an intelligent transportation system provided in an embodiment of the present application;

[0031] Figure 2 It is a traffic flow node diagram provided according to an embodiment of the present application;

[0032] Figure 3 It is a schematic diagram of the internal structure of a traffic flow prediction system in an intelligent transportation system provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0033] The following is a clear and complete description of the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0034] This application proposes a deep graph embedding enhanced traffic flow prediction model for ITS, which is derived as DE-TF. First, the features of nodes and edges are encoded into vectors through multiple embedding operations. The traffic flow nodes are shown in the attached figure. Figure 2 As shown in the figure, a graph neural network is then introduced to generate the graph-level encoding result of the entire ITS. Finally, a sequential model based on neural computing is established to predict time series traffic flow data.

[0035] Embodiment 1

[0036] like Figure 1 As shown, a method for predicting traffic flow in an intelligent transportation system provided by this embodiment specifically includes the following steps:

[0037] Step S110: Acquire the inherent features and relationship features of the traffic flow nodes.

[0038] like Figure 2 As shown in Figure 1, the carriers of traffic flow are nodes in the road network. Nowadays, the road networks of many countries are equipped with sensors to monitor traffic flow data at any time. i (i=1,2,···,M) represents the enumeration number of M nodes in the road network, N i represents the i-th node, Represents the traffic flow at the tth timestamp, where the value of t ranges from 1 to t.

[0039] Given t timestamps of historical monitored traffic flow data, the main goal of this embodiment is to build a model to predict the traffic flow data after the (t+1)th timestamp.

[0040] For node N i Generally speaking, it has two main characteristics: inherent characteristics and relational characteristics.

[0041] Intrinsic features refer to features that reflect the inherent properties of a node, such as node ID, node type, etc. Relational features refer to features that reflect the relationship between a node and other nodes.

[0042] Step S120: Encode the inherent features and relational features of the traffic flow nodes.

[0043] The encoding part mainly integrates the basic features of multiple sources and encodes them into a more abstract form. This embodiment mainly performs encoding through deep embedding and graph embedding.

[0044] The inherent features can be divided into discrete and continuous types. Discrete features can be directly encoded, while continuous features need to be converted first. The two representative vectors of the two features are recorded as and Node N i The relationship characteristic is A' i , encoded into another representative vector A through deep embedding i .

[0045] Specifically, for discrete features, they can be directly embedded through matrix calculation. For the sth node, its xth discrete feature is represented as D x,s Taking the node ID in the road network as an example, when the number of nodes is 200, this variable has 200 options. x,s , firstly convert it into a vector Δ(D x,s ). For Δ(D x,s ), whose dimension is equal to the number of its options. x,s ) corresponds to a value option. When the corresponding value option is involved, the element is set to 1, while the other elements are set to 0. Therefore, Δ(D x,s ) consists of element 1 and some element 0. A typical example of it is expressed as formula 1:

[0046] The following process is used to convert Δ(D x,s ) is encoded into another vector with a specific dimension, see formula 2 for details:

[0047] Where W D,x represents the weight parameter, b D,x Represents the offset parameter. For the parameter matrix W D,x , it has two dimension parameters that indicate its row and line dimensions. The first parameter is equal to D x,s The second parameter is equal to Therefore, Yes D x,s The embedding result of .

[0048] For continuous features, their corresponding positions in discrete intervals are expected. In the road network, the most typical continuous features are longitude or latitude. In a geographical area, the values ​​of longitude or latitude usually do not have a large span. For a single feature, all its values ​​can be normalized to the range of [0,1]. For the i-th node, its l-th continuous feature is represented as E l,i . E l,i The normalization process is expressed as formula 3:

[0049] in and is the maximum and minimum value of all values ​​of the lth continuous feature. Therefore, the obtained E′ l,j YesE l,i The corresponding normalized value of . For the continuous range [0,1], all values ​​can be divided into ten slots according to the value. The division of the slots is explained as follows4:

[0050] In the above formula, it has ten elements, each of which has an upper part and a lower part. The upper part is the interval range of the slot, and the lower part is the number of slots corresponding to the slot. Given the initial eigenvalue E l,i and its normalized value E′ l,i Embed E l,i It can be expressed as the following formula 5, where Δ(E′ l,i ) is E′ l,i The one-hot encoding result, W D,x and b D,x is a parameter.

[0051]

[0052] Represents the representative vector of continuous features, A representative vector representing a discrete feature.

[0053] So far, the and Together they constitute the embedding result of the road network features. In addition, let A i Represents node N i The relationship status with other nodes. i is an (m-1)-dimensional vector, where each element indicates the node N i The relationship status between A and other (m-1) nodes. i Each element of is recorded as:

[0054]

[0055] where a ij Represents node N i and node N j The relationship status between j Indicates that N i Another different node. From the above formula, we can see that A′ i The elements of A′ are either 1 or 0. Therefore, i can be viewed as a structured vector that can be directly encoded through an embedding process similar to Formula (2). And after embedding, A′ i Transformed into another representative vector A i .

[0056] Furthermore, the most common model for graph embedding is the graph neural network, which also has different scenario versions. As we all know, convolutional neural network (CNN) is a classic deep learning algorithm with strong representation ability. The combination of convolution operation and CNN produces the famous GCN model. GCN integrates convolution operation into the graph learning process and is able to obtain a powerful representation of the graph network. This part tries to generate graph-level embedding for road networks.

[0057] Since the GCN model is a spectral method, the Fourier transform and graph convolution operations should be defined first. Assume that F(·) and F -1 (·) is the Fourier transform operator and the inverse Fourier transform operator, which can be approximated as the following matrix calculations as shown in formulas (7) and (8):

[0058] Where U is the eigenvector of the Fourier transform approximated as a matrix calculation. Then, the graph convolution operation is defined as shown in 9.

[0059] in, is the graph convolution operator, x is the input, is the convolution kernel, and ⊙ is the harmonic product operator. Using the Laplace eigenvector as the basis function, the input signal x in the figure is expanded as shown in formula (10).

[0060] When implementing Fourier transform operations, it is best to perform frequency domain operations rather than time domain operations. Let k = dia (U T g). Formula (9) can be rewritten as formula (11).

[0061] GCN considers the first-order Chebyshev polynomial, and each convolution kernel has only one parameter. The convolution operator can be rewritten as formula (12):

[0062] Where Ch(λη) is the first-order Chebyshev polynomial of λ1 and is expressed as formula (13).

[0063] Therefore, formula (12) can be rewritten as formula (14).

[0064] Where A is the adjacency matrix and d is the degree matrix. To further simplify it and reduce the number of learnable parameters to 1, we set β0=β1=θ. (14) can be rewritten as formula (15).

[0065] Due to d -1 / 2 Ad -1 / 2 +I η is an eigenvalue in the range [0,2], so numerical divergence and gradient explosion are more likely to occur in the case of neural networks. To overcome this problem, the renormalization trick formula (16)(17)(18) is introduced.

[0066] in is the degree matrix of the ith entity, is the number of edges between the i-th entity and other entities. Finally, the expression of GCN can be obtained as (19), completing the encoding.

[0067]

[0068] Step S130: Decode the encoded inherent features and relationship features to obtain predicted flow values.

[0069] For the i-th node, the representative vectors of its discrete features and continuous features are expressed as and Note that two types of features usually contain more than one feature. The representative vectors of different features have different dimensions, because the number of dimensions usually indicates the amount of information. Features with higher abstract dimensions should contain more abundant information. Therefore, the two types of features can be aggregated into two final vectors through a concatenation operation. and

[0070]

[0071]

[0072] Very likely and have different dimensions. We want to match their dimensions and concatenate them into a new representative vector, which can be represented as:

[0073]

[0074] Among them, M FD and M FE is the weight parameter for achieving dimension transfer. Since some functions are time-varying, such as speed and flow, F i may not be stable at all timestamps. Represents the feature representation at the t-th timestamp. Usually, there are some direct or indirect relationships between nodes or road networks, which is also assumed to exist in this research scenario. Here, binary encoding is used to represent the relationship status between all pairs of nodes. If two nodes have a relationship, the relationship index is represented as 1, otherwise it is represented as 0. Traffic flow prediction is a time series prediction problem, in which the traffic flow at each timestamp is highly correlated with the previous timestamps. At the t-th timestamp, for the i-th node, the flow and the features of the node at the (t-1)-th timestamp are input for calculation. In this case, the information propagation of GCN can be expressed as the following formula:

[0075]

[0076] Among them, M P1 represents the weight parameter of the input information in the information propagation of GCN, b P1 represents the bias parameter, pi(t) represents the input information of time series prediction obtained by relu activation of Pi(t-1) calculated by the actual flow value of yi(t-1) and the node features Ai and Fi(t) at timestamp (t-1), Φ1(·) is the Relu activation function, expressed as:

[0077]

[0078] in, Calculated as:

[0079]

[0080] Among them, M P2 、M P3 and M P4 Parameters representing the input information in the information propagation of GCN, is the real traffic value at the (t-1)th timestamp. On this basis, a model similar to RNN is established to realize time series prediction. Similar to the LSTM model, three gates are set to control the calculation process: forget gate, input gate and output gate. For the forget gate, its control factor It can be calculated as:

[0081]

[0082] Among them, M Bi and b Bi represents the parameters in the RNN model, Φ2(·) is the simoid function, expressed as:

[0083]

[0084] For the input gate, Indicates the information that determines the input in the input gate, Represents the final input information, and the calculation formula of its unit state factor is:

[0085]

[0086]

[0087]

[0088] Among them, M Si 、M Hi , b Si and b HiBoth represent the parameters in the input gate. For the output gate, the calculation formula of the control factor is Formula 27, and the control factor of the output gate represents the information output from the output gate:

[0089]

[0090] Where W Oi represents the weight parameter in the prediction process, b Oi represents the bias parameter in the prediction process, is the predicted traffic value at the tth timestamp. Given the historical traffic flow data, the future traffic flow can be calculated. On this basis, the objective function can be formulated as solving the following optimization objective function:

[0091]

[0092] in is the actual flow value at the tth timestamp, is the predicted traffic value at the tth time stamp, τ is the regularization parameter, and θ is the parameter set. The left part of the equation is the loss term, and the right part of the equation is the penalty term.

[0093] The predicted flow value is obtained according to the above method, and the evaluation index adopted in this embodiment is a regression evaluation index.

[0094] Mean absolute error (MAE): The calculation formula for mean absolute error is as follows. The smaller the value, the smaller the error and the better the regression effect of the model.

[0095]

[0096] Mean Square Error (MSE) Root Mean Square Error (RMSE): MASE represents the expected value of the square of the error. In fact, it is MSE with a square root added, which is more intuitive in terms of magnitude. For example, if RMSE = 10, it can be considered that the regression effect is 10 different from the true value on average. The calculation formula is as follows:

[0097]

[0098]

[0099] In regression, the dependent variable yy is generally predicted. Assuming that there are n samples in total, the true value of each sample is y i ,i=1,2,...,n, the prediction value of each sample is 1,2,...,n, each evaluation index is to evaluate whether the predicted value of the traffic flow prediction model is close to the actual true value. The closer it is, the better the regression result is.

[0100] Embodiment 2

[0101] like Figure 3 As shown, the present application provides a traffic flow prediction system in an intelligent transportation system, wherein the system specifically includes: a node feature acquisition unit 310, an encoding unit 320, and a predicted traffic value acquisition unit 330.

[0102] The node feature acquisition unit 310 is used to acquire the inherent features and relationship features of the traffic flow nodes.

[0103] like Figure 2 As shown in Figure 1, the carriers of traffic flow are nodes in the road network. Nowadays, the road networks of many countries are equipped with sensors to monitor traffic flow data at any time. i (i=1,2,···,M) represents the enumeration number of M nodes in the road network, N i represents the i-th node, Represents the traffic flow at the tth timestamp, where the value of t ranges from 1 to t.

[0104] Given t timestamps of historical monitored traffic flow data, the main goal of this embodiment is to build a model to predict the traffic flow data after the (t+1)th timestamp.

[0105] The encoding unit 320 is used to encode the inherent features and relationship features of the traffic flow nodes.

[0106] For node N i Generally speaking, it has two main characteristics: inherent characteristics and relational characteristics.

[0107] Intrinsic features refer to features that reflect the inherent properties of a node, such as node ID, node type, etc. Relational features refer to features that reflect the relationship between a node and other nodes. The encoding part mainly integrates the basic features of multiple sources and encodes them into a more abstract form. This embodiment mainly encodes through deep embedding and graph embedding.

[0108] The inherent features can be divided into discrete and continuous types. Discrete features can be directly encoded, while continuous features need to be converted first. The two representative vectors of the two features are recorded as and Node N i The relationship characteristic is A' i , encoded into another representative vector A through deep embedding i .

[0109] Specifically, for discrete features, they can be directly embedded through matrix calculation. For the sth node, its xth discrete feature is represented as D x,sTaking the node ID in the road network as an example, when the number of nodes is 200, this variable has 200 options. x,s , firstly convert it into a vector Δ(D x,s ). For Δ(D x,s ), whose dimension is equal to the number of its options. x,s ) corresponds to a value option. When the corresponding value option is involved, the element is set to 1, while the other elements are set to 0. Therefore, Δ(D x,s ) consists of element 1 and some element 0. A typical example of it is expressed as formula 1:

[0110] The following process is used to convert Δ(D x,s ) is encoded into another vector with a specific dimension, see formula 2 for details:

[0111] Where W D,x and b D,x is a parameter. For the parameter matrix W D,x , it has two dimension parameters that indicate its row and line dimensions. The first parameter is equal to D x,s The second parameter is equal to Therefore, Yes D x,s The embedding result of .

[0112] For continuous features, their corresponding positions in discrete intervals are expected. In the road network, the most typical continuous features are longitude or latitude. In a geographical area, the values ​​of longitude or latitude usually do not have a large span. For a single feature, all its values ​​can be normalized to the range of [0,1]. For the i-th node, its l-th continuous feature is represented as E l,i . E l,i The normalization process is expressed as formula 3:

[0113] in and is the maximum and minimum value of all values ​​of the lth continuous feature. Therefore, the obtained E′ l,j YesE l,i The corresponding normalized value of . For the continuous range [0,1], all values ​​can be divided into ten slots according to the value. The division of the slots is explained as follows4:

[0114] In the above formula, it has ten elements, each of which has an upper part and a lower part. The upper part is the interval range of the slot, and the lower part is the number of slots corresponding to the slot. Given the initial eigenvalue E l,i and its normalized value E′ l,i , then its corresponding time slot in [0,1] can be obtained as Embed E l,i It can be expressed as the following formula 5, where Δ(E′ l,i ) is E′ l,i The one-hot encoding result, W D,x and b D,x is a parameter.

[0115]

[0116] So far, the and Together they constitute the embedding result of the road network features. In addition, let A i Represents node N i The relationship status with other nodes. i is an (m-1)-dimensional vector, where each element indicates the node N i The relationship status between A and other (m-1) nodes. i Each element of is recorded as:

[0117]

[0118] where a ij Represents node N i and node N j The relationship status between j Indicates that N i Another different node. From the above formula, we can see that A′ i The elements of A′ are either 1 or 0. Therefore, i can be viewed as a structured vector that can be directly encoded through an embedding process similar to Formula (2). And after embedding, A′ i Transformed into another representative vector A i .

[0119] Furthermore, the most common model for graph embedding is the graph neural network, which also has different scenario versions. As we all know, convolutional neural network (CNN) is a classic deep learning algorithm with strong representation ability. The combination of convolution operation and CNN produces the famous GCN model. GCN integrates convolution operation into the graph learning process and is able to obtain a powerful representation of the graph network. This part tries to generate graph-level embedding for road networks.

[0120] Since the GCN model is a spectral method, the Fourier transform and graph convolution operations should be defined first. Assume that F(·) and F -1 (·) is the Fourier transform operator and the inverse Fourier transform operator, which can be approximated as the following matrix calculations as shown in formulas (7) and (8):

[0121] Where U is the eigenvector of the Fourier transform approximated as a matrix calculation. Then, the graph convolution operation is defined as shown in 9.

[0122] in, is the graph convolution operator, x is the input, is the convolution kernel, and ⊙ is the harmonic product operator. Using the Laplace eigenvector as the basis function, the input signal x in the figure is expanded as shown in formula (10).

[0123] When implementing Fourier transform operations, it is best to perform frequency domain operations rather than time domain operations. Let k = dia (U T g). Formula (9) can be rewritten as formula (11).

[0124] GCN considers the first-order Chebyshev polynomial, and each convolution kernel has only one parameter. The convolution operator can be rewritten as formula (12):

[0125] Where Ch(λη) is the first-order Chebyshev polynomial of λ1 and is expressed as formula (13).

[0126] Therefore, formula (12) can be rewritten as formula (14).

[0127] Where A is the adjacency matrix and d is the degree matrix. To further simplify it and reduce the number of learnable parameters to 1, we set β0=β1=θ. (14) can be rewritten as formula (15).

[0128] Due to d -1 / 2 Ad -1 / 2 +I η is an eigenvalue in the range [0,2], so numerical divergence and gradient explosion are more likely to occur in the case of neural networks. To overcome this problem, the renormalization trick formula (16)(17)(18) is introduced.

[0129] in is the degree matrix of the ith entity, is the number of edges between the ith entity and other entities.

[0130] Finally, the expression of GCN can be obtained as (19), completing the encoding.

[0131]

[0132] The predicted flow value acquisition unit 330 is used to decode the encoded inherent features and relationship features to obtain the predicted flow value.

[0133] For the i-th node, the representative vectors of its discrete features and continuous features are expressed as and Note that two types of features usually contain more than one feature. The representative vectors of different features have different dimensions, because the number of dimensions usually indicates the amount of information. Features with higher abstract dimensions should contain more abundant information. Therefore, the two types of features can be aggregated into two final vectors through a concatenation operation. and

[0134]

[0135]

[0136] Very likely and have different dimensions. We want to match their dimensions and concatenate them into a new representative vector, which can be represented as:

[0137]

[0138] Among them, M FD and M FE is the weight parameter for achieving dimension transfer. Since some functions are time-varying, such as speed and flow, F i may not be stable at all timestamps. Represents the feature representation at the t-th timestamp. Usually, there are some direct or indirect relationships between nodes or road networks, which is also assumed to exist in this research scenario. Here, binary encoding is used to represent the relationship status between all pairs of nodes. If two nodes have a relationship, the relationship index is represented as 1, otherwise it is represented as 0. Traffic flow prediction is a time series prediction problem, in which the traffic flow at each timestamp is highly correlated with the previous timestamps. At the t-th timestamp, for the i-th node, the flow and the features of the node at the (t-1)-th timestamp are input for calculation. In this case, the information propagation of GCN can be expressed as the following formula:

[0139]

[0140] Where W P1 and W P2 is a parameter, Φ1(·) is the Relu activation function, expressed as:

[0141]

[0142] in, Calculated as:

[0143]

[0144] Among them, M P2 、MP3 and M P4 is a parameter, is the real traffic value at the (t-1)th timestamp. On this basis, a model similar to RNN is established to realize time series prediction. Similar to the LSTM model, three gates are set to control the calculation process: forget gate, input gate and output gate. For the forget gate, its control factor It can be calculated as:

[0145]

[0146] Among them, M Bi and b Bi is a parameter, Φ2(·) is the simoid function, expressed as:

[0147]

[0148] For the input gate, the calculation formula of its unit state factor is:

[0149]

[0150]

[0151]

[0152] Among them, M Si 、M Hi 、b Si and b Hi For the output gate, its control factor The calculation formula is:

[0153]

[0154] Where W Oi and b Oi is a parameter. Given the historical traffic flow data, the future traffic flow can be calculated. On this basis, the objective function can be formulated as solving the following optimization objective function:

[0155]

[0156] in is the actual flow value at the tth timestamp, is the predicted traffic value at the tth time stamp, τ is the regularization parameter, and θ is the parameter set. The left part of the equation is the loss term, and the right part of the equation is the penalty term.

[0157] The predicted flow value is obtained according to the above method, and the evaluation index adopted in this embodiment is a regression evaluation index.

[0158] Mean absolute error (MAE): The calculation formula for mean absolute error is as follows. The smaller the value, the smaller the error and the better the regression effect of the model.

[0159]

[0160] Mean Square Error (MSE) Root Mean Square Error (RMSE): MASE represents the expected value of the square of the error. In fact, it is MSE with a square root added, which is more intuitive in terms of magnitude. For example, if RMSE = 10, it can be considered that the regression effect is 10 different from the true value on average. The calculation formula is as follows:

[0161]

[0162]

[0163] In regression, the dependent variable yy is generally predicted. Assuming that there are n samples in total, the true value of each sample is y i ,i=1,2,...,n, the prediction value of each sample is 1,2,...,n, each evaluation index is to evaluate whether the predicted value of the traffic flow prediction model is close to the actual true value. The closer it is, the better the regression result is.

[0164] This application has the following beneficial effects:

[0165] (1) This application uses deep embedding and graph embedding together to enhance the feature representation in ITS. At the same time, the deep embedding and graph embedding methods can show good performance in the process of traffic flow prediction.

[0166] (2) This application specifically studies and predicts the principles of deep embedding and graphic embedding, and enhances features through the principles of deep embedding and graphic embedding. It has appropriate robustness and enhances stability in different situations.

[0167] Although the present application is described with reference to examples, this is for illustrative purposes only and is not intended to limit the present application, and changes, additions and / or deletions to the embodiments may be made without departing from the scope of the present application.

[0168] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A traffic flow prediction method in an intelligent transportation system, It is characterized in that The following steps are involved: Obtain the inherent characteristics and relationship characteristics of traffic flow nodes; Encode the inherent characteristics and relational features of traffic flow nodes; Decode the encoded inherent features and relational features to obtain predicted traffic values; Among them, the inherent characteristics are divided into discrete and continuous types, using vector Discrete features representing intrinsic features, vector A represents the continuous feature of the inherent feature. i , Represents relationship characteristics; The discrete features are encoded and directly embedded through matrix calculation. For the sth node, its xth discrete feature is represented as D x,s , for D x,s , firstly convert it into a vector Δ(D x,s ); for Δ(D x,s ), whose dimension is equal to the number of its options; and Δ(D x,s ) is composed of element 1 and part of element 0. The following formula is used to convert Δ(D x,s ) is encoded into another vector with a specific dimension Yes D x,s The embedding result is: Where W D,x represents the weight parameter, b D,x Represents the bias parameter, for W D,x , it has two dimension parameters that indicate its row and line dimensions, where the first parameter is equal to D x,s The second parameter is equal to size.

2. The method for predicting traffic flow in an intelligent transportation system according to claim 1, It is characterized in that For continuous features We expect their corresponding positions in the discrete interval. For a single feature, first normalize all its values ​​to the range of [0,1]. For the i-th node, its l-th continuous feature is represented by E l,i, E l,i The normalization process is expressed as: E' l,j YesE l,i The corresponding normalized value of and is the maximum and minimum value of all values ​​of the lth continuous feature.

3. The method for predicting traffic flow in an intelligent transportation system according to claim 2, It is characterized in that Given the initial eigenvalue E l,i and its normalized value E' l,i ,in: Δ(E' l,i ) is E' l,i The one-hot encoding result of A representative vector representing a discrete feature.

4. A traffic flow prediction system in an intelligent transportation system, It is characterized in that It includes a node feature acquisition unit, an encoding unit and a predicted flow value acquisition unit; The node feature acquisition unit is used to acquire the inherent features and relational features of traffic flow nodes; The encoding unit is used to encode the inherent characteristics and relational characteristics of traffic flow nodes; The predicted flow value acquisition unit is used to decode the encoded inherent features and relationship features to obtain the predicted flow value; Among them, in the node feature acquisition unit, the inherent features are divided into discrete and continuous types, using vector Discrete features representing intrinsic features, vector A represents the continuous feature of the inherent feature. i , Represents relationship characteristics; In the encoding unit, the discrete features are encoded and directly embedded through matrix calculation. For the sth node, its xth discrete feature is represented as D x,s , for D x,s , firstly convert it into a vector Δ(D x,s ); for Δ(D x,s ), whose dimension is equal to the number of its options; and Δ(D x,s ) is composed of element 1 and part of element 0. The following formula is used to convert Δ(D x,s ) is encoded into another vector with a specific dimension Yes D x,s The embedding result is: Where W D,x represents the weight parameter, b D,x Represents the bias parameter, for W D,x , it has two dimension parameters that indicate its row and line dimensions, where the first parameter is equal to D x,s The second parameter is equal to size.

5. The traffic flow prediction system in the intelligent transportation system according to claim 4, It is characterized in that In the encoding unit, for continuous features We expect their corresponding positions in the discrete interval. For a single feature, first normalize all its values ​​to the range of [0,1]. For the i-th node, its l-th continuous feature is represented by E l,i, E l,i The normalization process is expressed as: E' l,j YesE l,i The corresponding normalized value of and is the maximum and minimum value of all values ​​of the lth continuous feature.

6. The traffic flow prediction system in the intelligent transportation system according to claim 5, It is characterized in that In the coding unit, the initial eigenvalue E is given l,i and its normalized value E' l,i ,in: Δ(E' l,i ) is E' l,i The one-hot encoding result of A representative vector representing a discrete feature.

Citation Information

Patent Citations

  • Intelligent traffic system flow short-term prediction method and system based on divergence convolution and GAT

    CN111899510A

  • Traffic flow prediction method based on Transform space-time diagram convolutional network

    CN114330671A

  • Long-term and short-term public traffic flow prediction method

    CN115440032A

  • Continuous encoder-decoder method for traffic flow prediction task

    CN115700599A

  • Traffic flow prediction method considering dynamic space relationship

    CN115841753A