Short-term traffic flow prediction method based on graph convolution recurrent neural network

By using a graph convolutional recurrent neural network-based approach, spatial features of traffic flow are extracted using Chebyshev graph convolution and multi-head attention mechanisms. By combining BiGRU and temporal convolutional networks to capture temporal dependencies, the problem of low accuracy in traffic flow prediction in existing technologies is solved, and more efficient short-term traffic flow prediction is achieved.

CN117874501BActive Publication Date: 2026-11-20HEBEI UNIV OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410050318.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-15
Publication Date
2026-11-20
Estimated Expiration
2044-01-15

AI Technical Summary

Technical Problem

Existing short-term traffic flow prediction methods are inaccurate and computationally complex when dealing with emergencies. Traditional recurrent neural networks are difficult to effectively extract spatial features from spatiotemporal map data, resulting in inaccurate prediction results.

Method used

A graph convolutional recurrent neural network-based approach is adopted. By constructing a road network map and combining Chebyshev graph convolution and multi-head attention mechanism, spatial features of traffic flow are extracted. Temporal dependencies are captured by BiGRU recurrent neural network and temporal convolutional network. Spatiotemporal hybrid normalization layer is used to separate different components of traffic flow data to improve prediction accuracy.

Benefits of technology

It significantly improves the accuracy of traffic flow prediction, better captures the spatiotemporal correlation and causal relationship of traffic flow, reduces prediction errors, and is suitable for real-time traffic management and planning decisions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117874501B_ABST
    Figure CN117874501B_ABST
Patent Text Reader

Abstract

The application discloses a short-time traffic flow prediction method based on a graph convolution recurrent neural network, which comprises the following steps: acquiring road network information and converting the road network information into a road network graph, wherein the road network graph is composed of multiple road nodes and edges connecting the road nodes; constructing a short-time traffic flow prediction model, wherein the short-time traffic flow prediction model learns a mapping function and predicts traffic flow of multiple future time slices according to the road network graph and traffic flow characteristics of multiple historical time slices; the short-time traffic flow prediction model comprises serial spatial feature extraction modules, time feature extraction modules and full convolution networks; wherein the spatial feature extraction modules and the time feature extraction modules normalize input features through a space-time hybrid normalization layer respectively, and the space-time hybrid normalization layer comprises three operations of time normalization, space normalization and hybrid normalization; finally, the short-time traffic flow prediction model is trained by using historical traffic flow data, and the trained short-time traffic flow prediction model is used for predicting traffic flow. The method can more fully mine the space-time correlation and dependence of traffic flow data, and improves the prediction accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of traffic flow prediction technology, specifically a short-term traffic flow prediction method based on graph convolutional recurrent neural networks. Background Technology

[0002] Short-term traffic flow prediction is a typical spatiotemporal data mining problem that involves extracting hidden spatiotemporal patterns from a large amount of historical road traffic data. It is highly susceptible to interference from external environmental factors such as weather conditions, emergencies, and environmental changes. With the rise of Intelligent Transportation Systems (ITS), short-term traffic flow prediction has received widespread attention.

[0003] Existing short-term traffic flow prediction methods fall into two main categories: algorithms based on statistical analysis and modern intelligent algorithms based on machine learning (including deep learning). Statistical analysis-based algorithms are further divided into parametric and non-parametric models. Parametric models include historical average models, Kalman filter models, and time series models. These models suffer significant accuracy reductions in predictions during sudden events and are computationally complex, making them difficult to use for real-time updates. Non-parametric models mainly include wavelet theory models, chaotic models, and K-nearest neighbor (KNN) models. Based on nonlinear system theory, non-parametric models are well-suited to the nonlinear characteristics of traffic flow and can meet the needs of handling sudden events. However, non-parametric models are overly complex and computationally intensive, making them unsuitable for real-time analysis.

[0004] With the explosive growth of traffic data and the increasing computational power to process it, machine learning, especially deep learning algorithms with strong nonlinear learning capabilities, has begun to shine in the field of short-term traffic flow prediction. In traffic flow prediction tasks, most studies typically use Long Short-Term Memory (LSTM), Gated Recurrent Units (GRU), or Temporal Convolutional Networks (TCN) to extract temporal dependencies in traffic flow data. However, due to the chain-like structure of LSTM and GRU, they rely on the last state when processing long-term series, lacking the ability to capture global temporal dependencies. Traffic flow data is spatiotemporal graph data, and traditional Recurrent Neural Networks (RNN), LSTM, and their variants cannot effectively extract spatial features from spatiotemporal graph data. The chain-like sequential structure of RNNs means that the output of the current state is only related to information prior to the current state, causing much useful information to be ignored during training, resulting in inaccurate predictions. Summary of the Invention

[0005] To address the shortcomings of existing technologies, the technical problem this invention aims to solve is to provide a short-term traffic flow prediction method based on graph convolutional recurrent neural networks.

[0006] The present invention solves the aforementioned technical problem by adopting the following technical solution:

[0007] A short-term traffic flow prediction method based on graph convolutional recurrent neural networks, characterized by the following steps:

[0008] Step S1: Obtain road network information and convert it into a road network graph G. The road network graph G consists of multiple road nodes and edges connecting the road nodes.

[0009] Step S2: Construct a short-term traffic flow prediction model. The mapping function f for the model's traffic flow prediction is expressed as:

[0010] [X i+1 ,X i+2 ,…,X i+n ] = f(G; (X) i-T ,…,X i-1 ,X i )) (1)

[0011] In the formula, X i+1 ,X i+2 ,…,X i+n Let X represent the traffic flow characteristics of the (i+1), (i+2), ..., (i+n)th time slice. i-T ,…,X i-1 ,X i This represents the traffic flow characteristics of the i-th time slice (iT, ..., i-1, i).

[0012] The short-term traffic flow prediction model includes a sequential spatial feature extraction module, a temporal feature extraction module, and a fully convolutional network. The spatial and temporal feature extraction modules each normalize the input features using a spatiotemporal hybrid normalization layer. This spatiotemporal hybrid normalization layer includes three operations: temporal normalization, spatial normalization, and hybrid normalization. In the spatial feature extraction module, the temporal normalization operation is represented as follows:

[0013]

[0014] In the formula, TemporalNorm(·) represents the time normalization operation, X i For the traffic flow characteristics of the i-th time slice, The high-frequency component representing the traffic flow characteristics in the t-th time slot under the i-th time slice. The local high-frequency component representing the traffic flow characteristics in the t-th time slot under the i-th time slice. The global high-frequency component representing the traffic flow characteristics of the t-th time slot;

[0015] Will Expanded to:

[0016]

[0017] In the formula, X i,t X i,t-t'+1 Let represent the traffic flow characteristics of the t-th and t-t'+1-th time slots under the i-th time slice, and δ represent the number of time slots spanned by a single time slot. and Let represent the learnable vectors of traffic flow features in the i-th time slice, where ∈ is a constant;

[0018] The space normalization operation is represented as:

[0019]

[0020] In the formula, SpatialNorm(·) represents the spatial normalization operation. This represents the local component of traffic flow characteristics in the t-th time slot within the i-th time slice. The local low-frequency component representing the traffic flow characteristics of the t-th time slot;

[0021] Will Expanded to:

[0022]

[0023] In the formula, T represents the number of time slices;

[0024] The mixed normalization operation is represented as:

[0025]

[0026] In the formula, This represents the mixed component of traffic flow characteristics in the t-th time slot of the i-th time slice;

[0027] Finally, the components extracted by the three operations are multiplied together according to equation (7) to obtain the normalized traffic flow characteristics of each time slot in each time slice, and then the normalized traffic flow characteristics X' of each time slice are obtained. i-T ,…,X' i-1 ,X' i All normalized traffic flow features constitute feature X' = X' i-T ,…,X' i-1 ,X' i ] T , as the output feature of the spatiotemporal hybrid normalization layer;

[0028]

[0029] In the formula, X' i,t This represents the normalized traffic flow characteristics in the t-th time slot under the i-th time slice;

[0030] Step S3: Train the short-term traffic flow prediction model using historical traffic flow data, and use the trained short-term traffic flow prediction model to predict traffic flow.

[0031] Furthermore, the spatial feature extraction module includes a spatiotemporal hybrid normalization layer, Chebyshev diagram convolution operation, and a multi-head attention mechanism; the temporal feature extraction module includes a spatiotemporal hybrid normalization layer, a BiGRU recurrent neural network, a fully connected layer, and a temporal convolutional network.

[0032] Furthermore, the Chebyshev diagram convolution operation is represented as:

[0033]

[0034] In the formula, Z represents the output feature of the Chebyshev graph convolution operation, K is the order of the Chebyshev polynomial, and θ k W is the coefficient of the k-th order Chebyshev polynomial. k is the weight matrix of the k-th order Chebyshev polynomial, * represents the product of the Chebyshev polynomial and the normalized traffic flow feature matrix, and σ· is the activation function; This represents the normalized k-th order Chebyshev polynomial. λ max It is matrix L k The largest eigenvalue, I N D is the identity matrix, and D is the degree matrix of the adjacency matrix A of the road network graph G.

[0035] Compared with the prior art, the beneficial effects of the present invention are:

[0036] 1. Analysis of the temporal and spatial correlations of traffic flow data clearly shows that traffic flow exhibits strong temporal periodicity and spatially, adjacent roads influence each other. Therefore, to fully consider spatial correlations, road network information is converted into road network map data. Chebyshev graph convolution is used to extract spatial features more comprehensively, fully considering the mutual influence between adjacent roads and the inherent connections between traffic flows, thereby improving traffic flow prediction accuracy and reducing prediction errors. In real traffic environments, there may be potential causal relationships between traffic events. For example, a traffic accident on a current road segment may cause traffic congestion on adjacent road segments and roads. Furthermore, traffic data is not always sequentially correlated, such as unplanned road maintenance or road blockages caused by accidents. Therefore, the temporal feature extraction module of this invention mainly uses BiGRU recurrent neural networks and temporal convolutional networks to capture the potential causal relationships and temporal dependencies of time series, enabling the model to process more comprehensive time series information in a shorter time. The spatial feature extraction module uses Chebyshev graph convolution, which is more suitable for processing graph data, and combines it with a multi-head attention mechanism to capture the spatial features of traffic flow data.

[0037] 2. Traffic flow data is divided into high-frequency and low-frequency components at the temporal level, and global and local components at the spatial level. Different components have different impacts on traffic flow. Therefore, this invention embeds a spatiotemporal hybrid normalization layer into the spatial feature extraction module and the temporal feature extraction module, respectively. This includes three operations: temporal normalization, spatial normalization, and hybrid normalization, achieving temporal regularization, spatial regularization, and hybrid regularization. This refines the global high-frequency component, global low-frequency component, local high-frequency component, and local low-frequency component of the input features of each module, thereby achieving normalization of the input features. Simultaneously, it separates temporal and spatial features, resulting in more significant prediction performance and solving the problem of spatial and temporal discriminability in the model. Applying the spatiotemporal hybrid normalization layer to the short-term traffic flow prediction model can more fully explore the spatiotemporal correlation and dependency of traffic flow data, further improving prediction accuracy.

[0038] 3. This invention utilizes historical traffic flow data to predict future traffic flow, playing an important role in residents' travel, traffic planning, safety management, and resource allocation. It provides decision-making basis for road management departments and helps improve the quality of road services. Attached Figure Description

[0039] Figure 1 This is a structural diagram of the short-term traffic flow prediction model of the present invention;

[0040] Figure 2 This is a structural diagram of the spatial feature extraction module of the present invention;

[0041] Figure 3 This is a comparison chart of the predicted and actual traffic flow values ​​for a single day. Detailed Implementation

[0042] Specific embodiments are given below with reference to the accompanying drawings. These specific embodiments are only used to describe the technical solution of the present invention in detail, and are not intended to limit the scope of protection of this application.

[0043] This invention provides a short-term traffic flow prediction method based on graph convolutional recurrent neural networks (hereinafter referred to as the method, see [link]). Figures 1-3 This includes the following steps:

[0044] Step S1: Obtain road network information, treat roads as nodes, and then convert the road network information into a road network graph G = (V, E); where V = {v1, v2, ..., v...} p ,…,v N} represents the set of road nodes, v p Let N represent the p-th road node, N represent the number of road nodes, and E represent the edge set; the connection information of the road network is represented by the adjacency matrix A∈R. N×NLet R represent the matrix space. The elements of the adjacency matrix have only two values: 0 and 1. 1 indicates that there are edges connecting road nodes, and also indicates that roads are connected; 0 indicates that there are no edges connecting road nodes, and also indicates that roads are not connected.

[0045] Historical traffic flow data of the road network is obtained and used as features of road nodes. Each road node includes multiple features such as traffic speed and traffic congestion level. The historical traffic flow is then converted into traffic flow feature X. N×T×F T is the sequence length of historical traffic flow, i.e., the historical time slice, and F is 2, including inbound and outbound traffic flow;

[0046] Step S2: Construct a short-term traffic flow prediction model; the short-term traffic flow prediction model predicts the traffic flow for the next n time slots by learning a mapping function based on the traffic flow characteristics of the road network map G and T time slots. The mapping function f is expressed as:

[0047] [X i+1 ,X i+2 ,…,X i+n ] = f(G; X i-T ,…,X i-1 ,X i )) (1)

[0048] In the formula, X i+1 ,X i+2 ,…,X i+n Let X represent the traffic flow characteristics of the (i+1), (i+2), ..., (i+n)th time slice. i-T ,…,X i-1 ,X i Let i represent the traffic flow characteristics of the i-th time slice, i, ..., i-1, i.

[0049] like Figure 1 As shown, the short-term traffic flow prediction model includes a serial spatial feature extraction module (SFEM), a temporal feature extraction module (TFEM), and a fully convolutional network. The spatial feature extraction module is used to capture spatial dependency information and extract the spatial features of traffic flow. The temporal feature extraction module is used to capture temporal dependency information and extract the temporal features of traffic flow. The fully convolutional network is used to reduce the dimensionality of the features output by the temporal feature extraction module to obtain the predicted traffic flow feature matrix.

[0050] The spatial feature extraction module includes a spatiotemporal hybrid normalization layer (TSHNorm), Chebyshev graph convolution operation, and a multi-head attention mechanism; the temporal feature extraction module includes a spatiotemporal hybrid normalization layer, a BiGRU recurrent neural network, a fully connected layer, and a temporal convolutional network.

[0051] Traffic flow data is divided into high-frequency and low-frequency components at the temporal level, and global and local components at the spatial level. The influence of these different components determines the future direction of traffic flow. Therefore, the primary challenge in traffic flow prediction is capturing or quantifying the impact of these different components. Traditional traffic flow prediction methods, such as ARIMA (Asynchronous Interpretation and Analysis of Time Series), cannot separate high-frequency, low-frequency, local, and global components from the original input features. Furthermore, they require strict time series stability, severely limiting their application in real-world scenarios. In contrast, the spatiotemporal hybrid normalization layer of this invention normalizes the input features by separating global high-frequency components, global low-frequency components, local high-frequency components, and local low-frequency components. The spatiotemporal hybrid normalization layer structures of the spatial feature extraction module and the temporal feature extraction module are identical, both including temporal normalization, spatial normalization, and hybrid normalization operations.

[0052] The spatiotemporal hybrid normalization layer of the spatial feature extraction module is used as an example for explanation. The goal of the time normalization operation is to extract the high-frequency components of traffic flow features at each time step. The high-frequency components are divided into global high-frequency components and local high-frequency components. Assuming that the time features are mainly affected by the high-frequency components, the low-frequency components of traffic flow features within a time slice are approximately equal to a constant. Therefore, the time normalization operation is expressed as:

[0053]

[0054] In the formula, TemporalNorm(·) represents the time normalization operation. The high-frequency component representing the traffic flow characteristics in the t-th time slot under the i-th time slice. The local high-frequency component representing the traffic flow characteristics in the t-th time slot under the i-th time slice. The global high-frequency component representing the traffic flow characteristics of the t-th time slot;

[0055] Will Expanding on this, we get:

[0056]

[0057] In the formula, X i,t X i,t-t'+1 Let represent the traffic flow characteristics of the t-th and t-t'+1-th time slots under the i-th time slice, and δ represent the number of time slots spanned by a single time slot. and Let represent the learnable vectors of traffic flow features in the i-th time slice, and ∈ be a small constant used to maintain numerical stability;

[0058] The goal of spatial normalization is to refine the local components of traffic flow characteristics, including local high-frequency components and local low-frequency components. To achieve spatial normalization, the primary task is to eliminate the influence of external global factors such as time, holidays, and weather conditions. Therefore, the spatial normalization operation is expressed as:

[0059]

[0060] In the formula, SpatialNorm(·) represents the spatial normalization operation. This represents the local component of traffic flow characteristics in the t-th time slot within the i-th time slice. The local low-frequency component representing the traffic flow characteristics of the t-th time slot;

[0061] Will Expanding on this, we get:

[0062]

[0063] Spatial normalization can be understood as the spatial domain equivalent of temporal normalization. High-frequency components of traffic flow features correspond to local components, while low-frequency components correspond to global components. Therefore, by extracting local or high-frequency components from traffic flow features, fine-grained changes can be captured, thereby improving the accuracy of traffic flow time series prediction.

[0064] The goal of hybrid normalization is to comprehensively consider the effects of time and space, the state and characteristics of the original traffic flow, and other influencing factors. The hybrid normalization operation is then expressed as:

[0065]

[0066] In the formula, This represents the mixed component of traffic flow characteristics in the t-th time slot of the i-th time slice;

[0067] The components extracted by the three operations are multiplied together to obtain the normalized traffic flow features for each time slot in each time slice, and then the normalized traffic flow features X' for each time slice are obtained. i-T ,…,X' i-1 ,X' i ; All normalized traffic flow features constitute feature X' = [X' i-T ,…,X' i-1 ,X' i ] T , as the output feature of the spatiotemporal hybrid normalization layer;

[0068]

[0069] In the formula, X' i,tThis represents the normalized traffic flow characteristics in the t-th time slot under the i-th time slice;

[0070] In summary, the spatial feature extraction module with embedded spatiotemporal hybrid normalization layer can be understood as first normalizing traffic flow features through spatiotemporal hybrid normalization layer, so that traffic flow features have a more consistent scale and distribution in time and space, which is more conducive to feature extraction, so as to better adapt to model training and improve the model's ability to understand spatiotemporal data.

[0071] Chebyshev graph convolution is a method of performing convolution operations on graph data to process graph data; if feature X' is extracted through Chebyshev graph convolution, then the Chebyshev graph convolution operation is represented as:

[0072]

[0073] In the formula, Z represents the output feature of the Chebyshev graph convolution operation, K is the order of the Chebyshev polynomial, and θ k W is the coefficient of the k-th order Chebyshev polynomial. k is the weight matrix of the k-th order Chebyshev polynomial, * represents the product of the Chebyshev polynomial and the normalized traffic flow feature matrix, and σ(·) is the activation function. This represents the normalized k-th order Chebyshev polynomial. λ max It is matrix L k The largest eigenvalue, I N A is the identity matrix, and D is the degree matrix of the adjacency matrix A.

[0074] The output feature Z of the Chebyshev graph convolution operation is used as the input of the multi-head attention mechanism. Multi-head attention is a method that utilizes self-attention, typically used to capture relationships between elements in sequence or graph data. Therefore, this invention uses multi-head attention to aggregate the features of road nodes, making the model more flexible and accurate in aggregating neighbor node information. Feature Z is first transformed linearly to obtain query, key, and value matrices. These matrices are then input into each attention head for self-attention calculation. Finally, the outputs of each attention head are concatenated to obtain the output features of the multi-head attention mechanism, i.e., the spatial features output by the spatial feature extraction module. The multi-head attention mechanism can be represented as:

[0075] MultiHead(Q,K,V)=Concat(head1,…,head g ,···,head G W O (9)

[0076] In the formula, Q, K, and V represent the query, key, and value matrices, respectively. This represents the g-th attention head, where Attention(·) is the self-attention mechanism. W is the weight matrix of the g-th attention head. O It is the weight matrix of the output features of the multi-head attention mechanism.

[0077] Spatial features are input into the temporal feature extraction module. First, they are normalized by a spatiotemporal hybrid normalization layer. Then, a BiGRU recurrent neural network is used to analyze the contextual information of traffic flow and uncover the potential causal relationships between traffic flow sequences over time. Next, a fully connected layer (FC) is used for feature transformation and abstraction to reduce the dimensionality of the implicit representation output by the BiGRU recurrent neural network, combine it, or extract higher-level feature representations. Finally, a temporal convolutional network (TCN) is used to process the temporal data output by the fully connected layer in parallel, capturing global temporal correlations and long-term dependencies, ultimately yielding the temporal features.

[0078] Temporal features are processed through a fully convolutional layer to obtain the final prediction result. That is, the traffic flow characteristics of the i-th time slice, i, ..., i-1, i.

[0079] Step S3: Train the short-term traffic flow prediction model using historical traffic flow data, and calculate the model loss according to the loss function in equation (10). The more accurate the prediction result and the smaller the model overfit, the smaller the loss function value, which is also the goal of model optimization.

[0080]

[0081] In the formula, Y i , Let λ be the actual traffic flow and β be the predicted traffic flow for the i-th time slice, respectively, where λ is the penalty coefficient and β is the actual traffic flow and β is the predicted traffic flow. u Here, U represents the model parameters, and U represents the total number of model parameters.

[0082] The method of this invention was verified based on traffic flow data obtained from publicly available road sensors in Hangzhou. The raw traffic flow data obtained from the road sensors in Hangzhou consisted of nearly 60 million records from 81 sensors, containing three data items: the "time" column is the time the sensor recorded the data, the "stationID" column is the sensor number, and the "status" column indicates that 0 indicates entering the road and 1 indicates leaving the road.

[0083] First, the raw traffic flow data is transformed into structured data arranged by time and sensor ID. At 10-minute intervals, time is converted into time slices, and the number of vehicles recorded by each sensor within each time slice is counted. In the final transformed data, rows represent sensor IDs (∈[0,80]), and columns represent time slices (∈[0,3600]). 60% of the data is used for training, 20% for validation, and 20% for testing. This invention uses three evaluation metrics: Mean Absolute Error (MAE), Root Mean Square Error (RMSE), and R-squared (R²) to assess model performance.

[0084]

[0085]

[0086]

[0087] In the formula, This represents the average value of actual traffic flow.

[0088] Based on the above three evaluation metrics, the method of this invention is compared with existing methods. The comparison models include historical average (HA), integrated moving average autoregressive model (ARIMA), support vector machine (SVR), long short-term memory neural network (LSTM), gated recurrent unit neural network (GRU), GRU neural network T-GCN based on graph convolution GCN, and LSTM neural network based on Chebyshev graph convolution (ChebLSTM).

[0089] Table 1. Prediction results of different models on the Hangzhou sensor traffic dataset.

[0090]

[0091] In Table 1, "*" indicates that the model's value under that evaluation index is too small to be used as an indicator for evaluating model performance. Table 1 clearly shows that the prediction performance of the method of this invention is optimal under all evaluation indices. After introducing the TSHNorm layer, the high-frequency and local components of the original traffic flow data are refined, alleviating the problem of spatial and temporal discriminability in the model. It also has a better ability to capture the temporal and spatial correlations in historical traffic flow data, thus resulting in better prediction performance.

[0092] To better verify the superiority of the method of the present invention, the predicted traffic flow data of four road sensors were randomly selected and compared with the actual data. Figure 3 (a) to (d) show the comparison between the predicted and actual traffic flow values ​​for a single day. Figure 3The comparison shows that the predicted values ​​fit the actual values ​​well in terms of trend, with no significant deviation. This is supported by the evaluation metric R. 2 The high score also leads to this conclusion: the model can capture the changing patterns of traffic flow very well.

[0093] Any aspects not covered in this invention are applicable to existing technologies.

Claims

1. A short-term traffic flow prediction method based on graph convolutional recurrent neural networks, characterized in that, The method includes the following steps: Step S1: Obtain road network information and convert it into a road network graph G. The road network graph G consists of multiple road nodes and edges connecting the road nodes. Step S2: Construct a short-term traffic flow prediction model. The mapping function f for the model's traffic flow prediction is expressed as: [X i+1 ,X i+2 ,…,X i+n ]=f(G;(X i-T ,…,X i-1 ,X i )) (1) In the formula, X i+1 ,X i+2 ,…,X i+n Let X represent the traffic flow characteristics of the (i+1), (i+2), ..., (i+n)th time slice. i-T ,…,X i-1 ,X i Let i represent the traffic flow characteristics of the i-th time slice (iT, ..., i-1, i). The short-term traffic flow prediction model includes a sequential spatial feature extraction module, a temporal feature extraction module, and a fully convolutional network. The spatial and temporal feature extraction modules each normalize the input features using a spatiotemporal hybrid normalization layer. This spatiotemporal hybrid normalization layer includes three operations: temporal normalization, spatial normalization, and hybrid normalization. In the spatial feature extraction module, the temporal normalization operation is represented as follows: In the formula, TemporalNorm(·) represents the time normalization operation, X i For the traffic flow characteristics of the i-th time slice, The high-frequency component representing the traffic flow characteristics in the t-th time slot under the i-th time slice. The local high-frequency component representing the traffic flow characteristics in the t-th time slot under the i-th time slice. The global high-frequency component representing the traffic flow characteristics of the t-th time slot; Will Expanded to: In the formula, X i,t X i,t-t'+1 Let represent the traffic flow characteristics of the t-th and t-t'+1-th time slots under the i-th time slice, and δ represent the number of time slots spanned by a single time slot. and Let represent the learnable vectors of traffic flow features in the i-th time slice, where ∈ is a constant; The space normalization operation is represented as: In the formula, SpatialNorm(·) represents the spatial normalization operation. This represents the local component of traffic flow characteristics in the t-th time slot within the i-th time slice. The local low-frequency component representing the traffic flow characteristics of the t-th time slot; Will Expanded to: In the formula, T represents the number of time slices; The mixed normalization operation is represented as: In the formula, This represents the mixed component of traffic flow characteristics in the t-th time slot of the i-th time slice; Finally, the components extracted by the three operations are multiplied together according to equation (7) to obtain the normalized traffic flow characteristics of each time slot in each time slice, and then the normalized traffic flow characteristics X' of each time slice are obtained. i-T ,…,X' i-1 ,X' i ; All normalized traffic flow features constitute feature X' = [X' i-T ,…,X' i-1 ,X' i ] T , as the output feature of the spatiotemporal hybrid normalization layer; In the formula, X' i,t This represents the normalized traffic flow characteristics in the t-th time slot under the i-th time slice; Step S3: Train the short-term traffic flow prediction model using historical traffic flow data, and use the trained short-term traffic flow prediction model to predict traffic flow.

2. The short-term traffic flow prediction method based on graph convolutional recurrent neural networks according to claim 1, characterized in that, The spatial feature extraction module includes a spatiotemporal hybrid normalization layer, Chebyshev graph convolution operation, and a multi-head attention mechanism; the temporal feature extraction module includes a spatiotemporal hybrid normalization layer, a BiGRU recurrent neural network, a fully connected layer, and a temporal convolutional network.

3. The short-term traffic flow prediction method based on graph convolutional recurrent neural networks according to claim 2, characterized in that, The Chebyshev plot convolution operation is represented as: In the formula, Z represents the output feature of the Chebyshev graph convolution operation, K is the order of the Chebyshev polynomial, and θ k W is the coefficient of the k-th order Chebyshev polynomial. k is the weight matrix of the k-th order Chebyshev polynomial, * represents the product of the Chebyshev polynomial and the normalized traffic flow feature matrix, and σ(·) is the activation function. This represents the normalized k-th order Chebyshev polynomial. λ max It is matrix L k The largest eigenvalue, I N D is the identity matrix, and D is the degree matrix of the adjacency matrix A of the road network graph G.

4. The short-term traffic flow prediction method based on graph convolutional recurrent neural networks according to any one of claims 1 to 3, characterized in that, The model loss is calculated according to equation (10) during model training; In the formula, Y i , Let be the actual traffic flow and the predicted traffic flow for the i-th time slice, respectively; n be the number of time slices for the predicted traffic flow; λ be the penalty coefficient; and β be the actual traffic flow. u Here, U represents the model parameters, and U represents the total number of model parameters.

Citation Information

Patent Citations

  • Traffic prediction method based on attention temporal graph convolutional network

    CN109754605A

  • Traffic prediction method based on adaptive spatial self-attention map convolution

    CN112801404A