CN112767682A - Multi-scale traffic flow prediction method based on graph convolution neural network - Google Patents

Multi-scale traffic flow prediction method based on graph convolution neural network Download PDF

Info

Publication number
CN112767682A
CN112767682A CN202011513907.XA CN202011513907A CN112767682A CN 112767682 A CN112767682 A CN 112767682A CN 202011513907 A CN202011513907 A CN 202011513907A CN 112767682 A CN112767682 A CN 112767682A
Authority
CN
China
Prior art keywords
grained
coarse
fine
data
traffic flow
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011513907.XA
Other languages
Chinese (zh)
Inventor
张美越
王森章
缪浩
杜金龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing University of Aeronautics and Astronautics
Original Assignee
Nanjing University of Aeronautics and Astronautics
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing University of Aeronautics and Astronautics filed Critical Nanjing University of Aeronautics and Astronautics
Priority to CN202011513907.XA priority Critical patent/CN112767682A/en
Publication of CN112767682A publication Critical patent/CN112767682A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/0104Measuring and analyzing of parameters relative to traffic conditions
    • G08G1/0125Traffic data processing
    • G08G1/0129Traffic data processing for creating historical data or processing based on historical data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/25Fusion techniques
    • G06F18/253Fusion techniques of extracted features
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/084Backpropagation, e.g. using gradient descent
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/0104Measuring and analyzing of parameters relative to traffic conditions
    • G08G1/0137Measuring and analyzing of parameters relative to traffic conditions for specific applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • Molecular Biology (AREA)
  • Computational Linguistics (AREA)
  • Biophysics (AREA)
  • Biomedical Technology (AREA)
  • Mathematical Physics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Traffic Control Systems (AREA)

Abstract

本文公开了一种基于图神经网络的多任务城市交通流量预测方法,首次研究了预测多尺度(细粒度和粗粒度)交通流量的新问题,具体来说,给定道路图,我们首先基于节点(道路链接)之间的拓扑接近度和交通流相似度构建粗粒度道路图;然后提出了一种跨尺度图卷积Cross‑Scale GCN来提取细粒度和粗粒度的交通流量特征,并将它们进行融合。利用加入了Intra‑Attention与Inter‑Attention的LSTM提取时间特征,为了保证两种尺度数据预测结果的一致性,引入了结构约束。该方案在细粒度和粗粒度流量预测方面的同时体现出优异性能,提高了预测的准确率。

Figure 202011513907

This paper discloses a multi-task urban traffic flow prediction method based on graph neural network, and for the first time studies the new problem of predicting multi-scale (fine-grained and coarse-grained) traffic flow. (road links) between topological proximity and traffic flow similarity to construct a coarse-grained road map; then a cross-scale graph convolution Cross‑Scale GCN is proposed to extract fine-grained and coarse-grained traffic flow features and convert them into Fusion. Using LSTM with Intra-Attention and Inter-Attention to extract temporal features, in order to ensure the consistency of the prediction results of the two scales of data, structural constraints are introduced. The scheme shows excellent performance in both fine-grained and coarse-grained traffic forecasting, and improves the forecasting accuracy.

Figure 202011513907

Description

Multi-scale traffic flow prediction method based on graph convolution neural network
Technical Field
The invention provides a multi-scale traffic flow prediction method based on a graph convolution neural network, relates to the field of space-time big data prediction, and is mainly used for predicting traffic flows of different granularities in cities so as to help traffic departments to alleviate traffic congestion.
Background
With the acceleration of urbanization process in China, the contradiction between the growing urban population and the limited space resources is increasingly serious day by day, and the problem of traffic jam becomes a big problem which hinders urban development. Since the sixties of the last century, urban traffic planning and urban traffic control have been studied in countries around the world, but with the continuous expansion of urban scales and the increasing complexity of traffic conditions, effective traffic management by these two measures is no longer feasible, and therefore Intelligent Transportation Systems (ITS) have come into force. The intelligent traffic system combines advanced physical communication equipment and intelligent computer technology to establish an information prediction and management system aiming at the whole traffic network, and is the best way for comprehensively and effectively solving the problems in the field of traffic transportation including traffic jam at present.
Urban traffic flow prediction is an important component of an intelligent traffic system, and comprises traffic speed, traffic density and the like. The method has important research and application values in many fields, and most of the traditional prediction methods are based on statistics, including ARIMA, VAR and the like. Statistical-based methods typically learn linear mapping models based on historical traffic data to predict their future trends. While such methods may achieve the desired performance in road level traffic prediction, their performance may be significantly degraded when applied to predicting traffic across a road network, where the correlation between roads is highly non-linear and dynamic, and none of such methods is well characterized by the spatiotemporal nature of the data. With the advancement of technology, the increase of hardware, and the collection of a large amount of data, neural networks are widely used due to their excellent performance, and with the introduction of network structures of a convolutional neural network, a recurrent neural network, and a series of variants thereof, various deep learning models are used for traffic flow prediction. Many researchers have proposed a series of new approaches, such as: DCRNN, STGCN, TGCN and the like, and the neural network-based methods learn characteristics from a large amount of data, well utilize the spatiotemporal characteristics of the data and obtain excellent performance. The above studies are all the existing technical exploration and further optimization in urban traffic flow prediction, but the above methods have some limitations. First, most of the previous studies have focused on predicting traffic conditions on each road, which can be considered as a fine-grained prediction. However, in many cases, coarse-grained predictions are also needed, such as predicting traffic flow between different urban areas covering multiple road connections, to help governments better understand traffic conditions from a macroscopic perspective. This is particularly useful in applications of city planning and public traffic planning.
In summary, the existing urban traffic flow prediction model usually ignores the mutual influence among different granularity data, has a defect in the aspect of area prediction, and also has the problem of fuzzy prediction. Therefore, the existing problems often have the defects of low prediction accuracy and efficiency.
Disclosure of Invention
The purpose of the invention is as follows: the invention aims to provide a multi-scale urban traffic flow prediction method based on a graph neural network, aiming at the defects of the prior art and solving the problems of the defects in the background art. By adopting the method disclosed by the invention, the traffic flow prediction of different scales of the whole city can be realized by effectively utilizing the space-time correlation of the traffic data flow, and higher prediction precision can be ensured under different conditions.
The technical scheme is as follows: a multi-scale urban traffic flow prediction method based on a graph neural network comprises the following specific steps:
the method comprises the following steps: data pre-processing
1) Obtaining an allocation matrix A based on a graph structurefc1. The original data is processed to remove abnormal values. Processing fine-grained data by using a Louvain algorithm in community detection to obtain a mapping matrix A from fine granularity to coarse granularity based on a graph structurefc1
2) Obtaining an allocation matrix A based on node characteristicsfc2. Collecting the fine-grained data of all the moments together to form a new matrix, and performing spectral clustering on the matrix to obtain a mapping matrix A from fine granularity to coarse granularity based on node characteristicsfc2
3) And fusing the two mapping matrixes to obtain a final mapping matrix. Specifically, the dot product operation is performed on the two mapping matrixes, so that the final mapping matrix A is obtainedfc
Afc=softmax(Afc1⊙Afc2)
4) Then, fine-grained data are aggregated by adopting a summing or averaging mode, so that coarse-grained data X are obtainedc
Xc=Agg(v1,v2,...,vn)
The fine-grained and coarse-grained data are urban traffic flow historical data tensors required by us.
Step two: training neural networks
And (4) training the whole network by using the fine-grained and coarse-grained urban traffic flow data constructed in the step one. The model has two parts: the device comprises a spatial feature extraction module and a temporal feature extraction module. The space extraction module comprises a common graph convolution GCN and a Cross-Scale graph convolution Cross-Scale GCN, wherein the GCN is used for respectively extracting the respective space characteristics of different granularity data, and the Cross-Scale GCN fuses the space characteristics of the different granularity data. The time characteristic extraction module comprises an Inter-orientation and an Intro-orientation, wherein the Inter-orientation is used for enhancing the capability of capturing time correlation in the same granularity, and the Intro-orientation is used for capturing time correlation of data with different granularities.
The input of the network is a fine-grained historical traffic characteristic matrix, a coarse-grained historical traffic characteristic matrix and an adjacent matrix corresponding to the fine-grained historical traffic characteristic matrix and the coarse-grained historical traffic characteristic matrix. The value of the adjacency matrix represents whether two nodes are connected or not, and if the two nodes are connected, the adjacency matrix is 1, and the unconnected nodes are 0. The method comprises the steps of firstly, performing convolution on coarse-and-fine-granularity data through a GCN, then fusing the characteristics of the data with different granularities through a Cross-Scale GCN by using a mapping matrix, wherein information with fine granularity flows to the coarse granularity, and meanwhile, the data with the coarse granularity also flows to the fine granularity. And then fusing the hidden representations of the two kinds of granularity data through Intra-orientation by adding an Inter-orientation LSTM, and finally mapping the hidden representations into the data with different granularities through a full connection layer to obtain final prediction data.
In addition, in order to ensure the accuracy of the fine granularity and the coarse granularity, structural constraints are added between the predicted values and the real values, so that the predicted values of the coarse granularity nodes are ensured to be corresponding to the fine granularity nodes corresponding to the coarse granularity nodes. If with XTRepresenting the real data of a fine grain size,
Figure BSA0000228167260000021
fine-grained prediction data representing the output,
Figure BSA0000228167260000022
represents the coarse-grained real data of the image,
Figure BSA0000228167260000023
coarse-grained prediction data representing the output, using the mean square error penalty, the objective function can ultimately be described in the form:
Figure BSA0000228167260000024
wherein lambda is a hyper-parameter, the loss function is optimized by using the Adam algorithm and the back propagation algorithm, and finally, when the algorithm converges, an optimal solution is obtained.
Step three: generating a prediction result
Using the fine-grained and coarse-grained city traffic flow matrix { X) of the first t momentsiI ═ 1,. t } and the corresponding adjacency matrix are input into the trained network model to obtain the prediction results of the urban traffic flow with two granularities at the next moment, namely the flow { X with the fine granularityiI ═ t +1} and coarse grain flow { X |i|i=t+1}。
As a further preferable aspect of the present invention, in the second step, the spatial convolution module and the temporal feature extraction module are specifically designed as follows:
for data with two granularities of thickness and fineness, two independent graph neural networks are used, and a space convolution module firstly contains a common GCN which can be aggregatedThe characteristic information of the local node also comprises Cross-scale GCN, the result is added to the fine-grained characteristic through coarse-grained convolution, and the Cross-scale GCN and the fine-grained characteristic realize information transmission. We learn a better representation of the nodes by passing information in each graph and exchange information between the two representations using a flow of information from coarse to fine and from fine to coarse, which allows the nodes in the graph to capture the characteristics of distant nodes. Spatial convolution module we use the Attention-added LSTM, and when the input sequence is very long, it is difficult for the model to learn a reasonable vector representation. Thus, Intra-attention is added so that the data at the last moment can be differently weighted to consider all previous moment data. The input history data is { X1,X2,...,XTPredicting data { X) at next timet+1And after the Intra-attribute is added, the model can acquire the historical data at which moment is more important for predicting the next moment. To model the temporal correlation between two scale data, we also designed an Inter-Attention mechanism. Since the feature dimensions of the two scale data are different, we need to convert them to the same feature space first. We can upsample the coarse-grained features into a fine-grained feature space. Then, Inter-orientation is carried out, and finally, data with different granularities in thickness are mapped through MLP to obtain final prediction.
Has the advantages that: the invention provides an urban traffic flow prediction method based on a graph neural network aiming at the problem of urban traffic flow prediction. Compared with the prior art, the invention adopting the technical scheme has the following technical effects:
1) the invention firstly researches the multi-scale traffic prediction problem and provides a multi-task space-time network model to realize urban traffic flow prediction of different scales.
2) A cross-scale space-time feature learning mechanism is provided, and the mechanism comprises a cross-scale GCN layer which effectively fuses cross-scale space features and a layered attention mechanism which captures cross-scale time correlation, so that model prediction is more accurate.
3) In order to meet the consistency of multi-scale traffic data prediction results, structural constraints are designed for the objective function.
Drawings
FIG. 1 is a method flow diagram;
FIG. 2 is a detailed design block diagram of a model;
FIG. 3 is a schematic diagram of the Intra-orientation and Inter-orientation modules;
Detailed Description
The technical scheme of the invention is further explained in detail with reference to the attached drawings.
The overall flow of the urban traffic flow prediction method based on the graph neural network is shown in figure 1. And inputting the preprocessed data into a module containing spatial feature extraction and temporal feature extraction to generate the coarse-grained and fine-grained urban traffic flow at the future moment. Two different granularities of data can interact, specifically, the invention constructs as input two sets of data:
XT: predicting fine-grained traffic flow data, X, at n moments before a time pointt={xt|t=1,...n}
Figure BSA0000228167260000041
Predicting coarse-grained traffic flow data at n moments before the time point,
Figure BSA0000228167260000042
the invention discloses a multi-scale urban traffic flow prediction method based on a graph neural network, which comprises the following specific processes:
the method comprises the following steps: data pre-processing
5) Obtaining an allocation matrix A based on a graph structurefc1. The original data is processed to remove abnormal values. Processing fine-grained data by using a Louvain algorithm in community detection to obtain a mapping matrix A from fine granularity to coarse granularity based on a graph structurefc1
6) Obtaining an allocation matrix A based on node characteristicsfc2. The fine-grained data of all the moments are gathered together to formApplying spectral clustering to a new matrix to obtain a mapping matrix A from fine granularity to coarse granularity based on node characteristicsfc2
7) And fusing the two mapping matrixes to obtain a final mapping matrix. Specifically, the dot product operation is carried out on the two mapping matrixes to obtain a final mapping matrix Afc
Afc=softmax(Afc1⊙Afc2)
8) Then, fine-grained data are aggregated by adopting a summing or averaging mode, so that coarse-grained data X are obtainedc
Xc=Agg(v1,v2,...,vn)
The fine-grained and coarse-grained data are urban traffic flow historical data tensors required by us.
Step two: training neural networks
And (4) training the whole network by using the fine-grained and coarse-grained urban traffic flow data constructed in the step one. As shown in fig. 2, the model has two parts: the device comprises a spatial feature extraction module and a temporal feature extraction module. The space extraction module comprises GCN and Cross-Scale GCN, wherein the GCN is used for respectively extracting the respective space characteristics of the data with different granularities, and the Cross-Scale GCN fuses the characteristics of the data with different granularities. The time extraction module comprises an Inter-orientation and an intra-orientation, wherein the Inter-orientation is used for enhancing the capability of capturing time correlation in the same granularity, and the intra-orientation is used for capturing time correlation of data in different granularities.
The input of the network is a historical flow characteristic matrix { X with fine granularity1,X2,...,XTAnd coarse-grained historical traffic characterization matrices
Figure BSA0000228167260000043
In addition, in order to ensure the accuracy of the fine granularity and the coarse granularity, structural constraints are added between the predicted values of the coarse granularity nodes and the corresponding fine granularity nodes, so that the predicted values of the coarse granularity nodes and the corresponding fine granularity nodes are ensuredIs the corresponding.
If with XTRepresenting the real data of a fine grain size,
Figure BSA0000228167260000044
fine-grained prediction data representing the output,
Figure BSA0000228167260000045
represents the coarse-grained real data of the image,
Figure BSA0000228167260000046
coarse-grained prediction data representing the output, using the mean square error penalty, the objective function can be described ultimately as follows:
Figure BSA0000228167260000047
wherein lambda is a hyper-parameter, the loss function is optimized by using the Adam algorithm and the back propagation algorithm, and finally, when the algorithm converges, an optimal solution is obtained.
For data with two granularities of thickness and fineness, two independent graph neural networks are used, a space convolution module firstly comprises a common GCN, the common GCN can aggregate characteristic information of local nodes, remote traffic flow can also influence nodes at the current position, Cross-scale GCN is added for enabling the nodes to capture the remote node information, the result is added to fine-grained characteristics through coarse-grained convolution, and information transmission is achieved through the coarse-grained convolution and the fine-grained characteristics. We learn a better representation of the nodes by passing information in each graph and exchange information between the two representations using a flow of information from coarse to fine and from fine to coarse, which allows the nodes in the graph to capture the characteristics of distant nodes. Our method can overcome some known limitations of classical graph neural networks, such as capturing information of distant nodes while performing effective training. The formula for Cross-scale GCN is as follows:
Figure BSA0000228167260000051
Figure BSA0000228167260000052
the spatial convolution module we use LSTM and improve, as shown in fig. 3, when the input sequence is very long, it is difficult for the model to learn a reasonable vector representation. The Intra-attribute is added, so that the data of the last moment can consider the data of all the previous moments in different emphasis, and the most core operation is a string of weight parameters, the importance degree of each element is learned from the sequence, and then the elements are combined according to the importance degree. The weighting parameter is a coefficient of attention allocation, which element is assigned more or less attention. The Attention mechanism is implemented by retaining intermediate output results of the LSTM encoder on the input sequence, then training a model to selectively learn these inputs and associate the output sequence with them as the model is output. The input history data is { X1,X2,...,XTPredicting data { X) at next timet+1And after the Intra-attribute is added, the model can acquire the historical data at which moment is more important for predicting the next moment. The Intra-anchorage formula is as follows
ft=σ(Wf[ht-1,Ht]+bf)
it=σ(Wi[ht-1,Ht]+bf)
ct=ft⊙ct-1+tanh(Wc[ht-1,Ht]+bc)
ot=σ(Wo[ht-1,Ht]+bo),ht=ot⊙tanh(ct)
1,α2,...,αm]=align(ht,hm)
Figure BSA0000228167260000053
Wherein σ represents an activation function,. alpha.represents a Hadamard product,. ft,it,otRespectively representing a forgetting gate, an input gate and an output gate. c. Ct,htMemory cells and hidden features, respectively. align represents the Intra-attribute computation similarity function and s represents the final hidden representation.
To simulate the temporal correlation between two scale data, we also designed an Inter-orientation mechanism, as shown on the right side of FIG. 3. Since the feature dimensions of the two scale data are different, we need to convert them to the same feature space first. We first upsample coarse-grained features to the fine-grained feature space, in s'cRepresenting the final hidden feature, then mapping the fine-grained feature to the coarse-grained feature, and using s' to represent the final hidden feature, wherein the internal attention formula is as follows
Z=β1s+β2sc
Zc=βc,1s’+βc,2sc
β represents the coefficient of Inter-Attention.
Step three: generating a prediction result
The fine-grained traffic flow matrix (X) at the first t moments i1,. t } and coarse grain traffic flow matrix
Figure BSA0000228167260000061
Inputting the corresponding adjacency matrix into the trained network model to obtain the prediction results of the urban traffic flow with two granularities at the next moment, namely the fine-grained flow { XiI ═ t +1} and coarse grain flow { X |i|i=t+1}。
The embodiments of the present invention have been described in detail with reference to the drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.

Claims (2)

1.一种基于图神经网络的多尺度城市交通流量预测方法,其主要特征包括如下步骤:1. A multi-scale urban traffic flow prediction method based on graph neural network, its main features include the following steps: (1)预处理观测到的数据:(1) Preprocessing the observed data: 基于图结构与节点特征获得两个分配矩阵Afc1,Afc2。将两种映射矩阵融合,得到最终的映射矩阵,具体是将两个映射矩阵做点积运算,得到最终的映射矩阵AfcTwo allocation matrices A fc1 and A fc2 are obtained based on the graph structure and node features. The two mapping matrices are fused to obtain the final mapping matrix. Specifically, the dot product operation is performed on the two mapping matrices to obtain the final mapping matrix A fc : Afc=softmax(Afc1⊙Afc2)A fc =softmax(A fc1 ⊙A fc2 ) 然后采用求和或者求平均的方式聚合细粒度数据,从而得到粗粒度数据XcThen aggregate the fine-grained data by summing or averaging to obtain the coarse-grained data X c : Xc=Agg(v1,v2,...,vn)X c =Agg(v 1 , v 2 , . . . , v n ) (2)问题定义:给定道路传感器网络G,细粒度交通流量观测值{X1,X2,...,XT},以及粗粒度交通流量观测值
Figure FSA0000228167250000011
我们的目标是同时预测下一个时刻多尺度交通流量
Figure FSA0000228167250000012
(2) Problem definition: Given a road sensor network G, fine-grained traffic flow observations {X 1 , X 2 , ..., X T }, and coarse-grained traffic flow observations
Figure FSA0000228167250000011
Our goal is to simultaneously predict the multi-scale traffic flow in the next moment
Figure FSA0000228167250000012
(3)对于粗细两种粒度的数据,我们使用两个独立的图神经网络,空间卷积模块首先包含了普通GCN,它可以聚合局部节点的特征信息,远距离的交通流量也可能影响当前位置的节点,为了使节点捕捉到远距离节点信息,加入了跨尺度图卷积Cross-scale GCN,将粗粒度特征的卷积结果加到细粒度特征上,两者实现信息传递。我们通过在每个图中传递信息来学习更好的节点的表示,并使用由粗到细和由细到粗的信息流在两种表示之间交换信息,这允许图中节点捕获到远距离节点的特征,同时可以相互辅助预测;(3) For coarse and fine data, we use two independent graph neural networks. The spatial convolution module first includes ordinary GCN, which can aggregate the feature information of local nodes, and the long-distance traffic flow may also affect the current position. In order to enable the node to capture the information of distant nodes, cross-scale GCN is added to convolve the cross-scale graph, and the convolution result of the coarse-grained feature is added to the fine-grained feature, and the two realize information transfer. We learn better representations of nodes by passing information in each graph and exchange information between the two representations using coarse-to-fine and fine-to-coarse information flow, which allows nodes in the graph to capture long-range The characteristics of nodes can also assist each other in prediction; (4)将通过图卷积之后的数据输入加入了Attention的LSTM,当输入时间序列非常长时,模型难以学到合理的向量表示为此加入了Intra-attention,这样最后一个时刻的数据能不同侧重的考虑前面所有时刻数据,它从时间序列中学习到每一个时刻的重要程度,然后按重要程度将元素合并。权重参数就是一个注意力分配的系数,为各个元素分配大小不等的注意力权重。Attention机制的实现是通过保留LSTM编码器对输入序列的中间输出结果,然后训练一个模型来对这些输入进行选择性的学习并且在模型输出时将输出序列与之进行关联;(4) The data input after graph convolution is added to the LSTM of Attention. When the input time series is very long, it is difficult for the model to learn a reasonable vector representation. Intra-attention is added for this, so that the data at the last moment can be different Focusing on the data of all the previous moments, it learns the importance of each moment from the time series, and then combines the elements according to the importance. The weight parameter is an attention distribution coefficient, which assigns attention weights of different sizes to each element. The attention mechanism is implemented by retaining the intermediate output results of the LSTM encoder on the input sequence, and then training a model to selectively learn these inputs and associate the output sequence with it when the model outputs; (5)为了模拟两个尺度数据之间的时间关联,我们还设计了一个Inter-Attention机制,由于两个尺度数据的特征维数不同,我们需要先将它们转换到相同的特征空间。我们首先将粗粒度特征向上采样到细粒度特征空间,进行一次Inter-Attention得到细粒度的预测,然后将细粒度特征映射为粗粒度特征,进行一次Inter-Attention得到粗粒度的预测;(5) In order to simulate the temporal correlation between the two scale data, we also design an Inter-Attention mechanism. Since the feature dimensions of the two scale data are different, we need to convert them to the same feature space first. We first upsample the coarse-grained features to the fine-grained feature space, perform an Inter-Attention to obtain a fine-grained prediction, then map the fine-grained features to coarse-grained features, and perform an Inter-Attention to obtain a coarse-grained prediction; (6)使用梯度随机下降方法,并通过反向传播的方式对模型进行优化,使得数据生成更加准确。(6) The gradient stochastic descent method is used, and the model is optimized by back-propagation, so that the data generation is more accurate.
2.根据权利要求1所述的一种基于图神经网络的多尺度城市交通流量预测方法,利用普通图卷积神经网络GCN、跨尺度图卷积神经网络Cross-Scale GCN与加入了Intra-Attention、Inter-Attention的LSTM学习细粒度与粗粒度的交通流时空特征。两种粒度交通流数据之间可以实现信息传递,通过在每个图中传递信息来学习更好的节点的表示,并使用由粗到细和由细到粗的信息流在两种表示之间交换信息,这允许图中节点捕获到远距离节点的特征。Intra-Attention、Inter-Attention可以帮助模型更好捕捉时间特征,能以不同侧重的考虑所有历史时刻的数据。该方法提高了预测的准确率,为城市交通规划、路径选择和交通风险预测等方面提供了更加有力的辅助工具,提供了更便捷、更准确的方法。2. a kind of multi-scale urban traffic flow prediction method based on graph neural network according to claim 1, utilizes common graph convolutional neural network GCN, cross-scale graph convolutional neural network Cross-Scale GCN and joined Intra-Attention , Inter-Attention's LSTM learns fine-grained and coarse-grained spatiotemporal features of traffic flow. Information transfer can be achieved between two granularity traffic flow data, learning better node representations by passing information in each graph, and using coarse-to-fine and fine-to-coarse information flow between the two representations Exchange information, which allows nodes in the graph to capture features of distant nodes. Intra-Attention and Inter-Attention can help the model better capture temporal features, and can consider the data of all historical moments with different emphasis. The method improves the accuracy of prediction, provides a more powerful auxiliary tool for urban traffic planning, route selection and traffic risk prediction, and provides a more convenient and accurate method.
CN202011513907.XA 2020-12-18 2020-12-18 Multi-scale traffic flow prediction method based on graph convolution neural network Pending CN112767682A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011513907.XA CN112767682A (en) 2020-12-18 2020-12-18 Multi-scale traffic flow prediction method based on graph convolution neural network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011513907.XA CN112767682A (en) 2020-12-18 2020-12-18 Multi-scale traffic flow prediction method based on graph convolution neural network

Publications (1)

Publication Number Publication Date
CN112767682A true CN112767682A (en) 2021-05-07

Family

ID=75694467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011513907.XA Pending CN112767682A (en) 2020-12-18 2020-12-18 Multi-scale traffic flow prediction method based on graph convolution neural network

Country Status (1)

Country Link
CN (1) CN112767682A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113361810A (en) * 2021-06-30 2021-09-07 佳都科技集团股份有限公司 Passenger flow volume prediction method, device, equipment and storage medium
CN113569473A (en) * 2021-07-19 2021-10-29 浙江大学 Air separation pipe network oxygen long-term prediction method based on polynomial characteristic LSTM granularity calculation
CN113673412A (en) * 2021-08-17 2021-11-19 驭势(上海)汽车科技有限公司 Key target object identification method and device, computer equipment and storage medium
CN113947250A (en) * 2021-10-22 2022-01-18 山东大学 A method and system for urban fine-grained traffic forecasting based on limited data resources
CN113962460A (en) * 2021-10-22 2022-01-21 山东大学 A method and system for urban fine-grained traffic forecasting based on spatiotemporal contrast and self-supervision
CN114038214A (en) * 2021-10-21 2022-02-11 哈尔滨师范大学 An urban traffic signal control system
CN114052734A (en) * 2021-11-24 2022-02-18 西安电子科技大学 Electroencephalogram emotion recognition method based on progressive graph convolution neural network
CN114326391A (en) * 2021-12-13 2022-04-12 哈尔滨工程大学 Building energy consumption prediction method
CN114374619A (en) * 2022-01-10 2022-04-19 昭通亮风台信息科技有限公司 Internet of vehicles flow prediction method, system, equipment and storage medium
CN114662792A (en) * 2022-04-22 2022-06-24 广西财经学院 Traffic flow prediction method of recurrent neural network based on convolution of dynamic diffusion graph
CN114822033A (en) * 2022-04-24 2022-07-29 山东交通学院 Road network traffic flow data restoration method and system based on characteristic pyramid network
CN114925836A (en) * 2022-07-20 2022-08-19 中国海洋大学 Urban traffic flow reasoning method based on dynamic multi-view graph neural network
CN116110226A (en) * 2023-02-14 2023-05-12 清华大学 Traffic flow prediction method and device and electronic equipment
CN116311921A (en) * 2023-03-01 2023-06-23 中国矿业大学 Traffic speed prediction method based on multi-spatial scale space-time converter
CN118097948A (en) * 2024-02-27 2024-05-28 重庆邮电大学 Traffic flow prediction method based on aggregation space-time multi-graph convolution network improvement

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113361810B (en) * 2021-06-30 2024-04-26 佳都科技集团股份有限公司 Passenger flow volume prediction method, device, equipment and storage medium
CN113361810A (en) * 2021-06-30 2021-09-07 佳都科技集团股份有限公司 Passenger flow volume prediction method, device, equipment and storage medium
CN113569473A (en) * 2021-07-19 2021-10-29 浙江大学 Air separation pipe network oxygen long-term prediction method based on polynomial characteristic LSTM granularity calculation
CN113673412A (en) * 2021-08-17 2021-11-19 驭势(上海)汽车科技有限公司 Key target object identification method and device, computer equipment and storage medium
CN113673412B (en) * 2021-08-17 2023-09-26 驭势(上海)汽车科技有限公司 Method and device for identifying key target object, computer equipment and storage medium
CN114038214B (en) * 2021-10-21 2022-05-27 哈尔滨师范大学 Urban traffic signal control system
CN114038214A (en) * 2021-10-21 2022-02-11 哈尔滨师范大学 An urban traffic signal control system
CN113947250A (en) * 2021-10-22 2022-01-18 山东大学 A method and system for urban fine-grained traffic forecasting based on limited data resources
CN113962460B (en) * 2021-10-22 2024-05-28 山东大学 Urban fine granularity flow prediction method and system based on space-time comparison self-supervision
CN113962460A (en) * 2021-10-22 2022-01-21 山东大学 A method and system for urban fine-grained traffic forecasting based on spatiotemporal contrast and self-supervision
CN114052734A (en) * 2021-11-24 2022-02-18 西安电子科技大学 Electroencephalogram emotion recognition method based on progressive graph convolution neural network
CN114326391A (en) * 2021-12-13 2022-04-12 哈尔滨工程大学 Building energy consumption prediction method
CN114374619A (en) * 2022-01-10 2022-04-19 昭通亮风台信息科技有限公司 Internet of vehicles flow prediction method, system, equipment and storage medium
CN114374619B (en) * 2022-01-10 2024-08-13 昭通亮风台信息科技有限公司 Internet of vehicles flow prediction method, system, equipment and storage medium
CN114662792A (en) * 2022-04-22 2022-06-24 广西财经学院 Traffic flow prediction method of recurrent neural network based on convolution of dynamic diffusion graph
CN114662792B (en) * 2022-04-22 2023-01-20 广西财经学院 Traffic Flow Forecasting Method Based on Dynamic Diffusion Graph Convolution with Recurrent Neural Network
CN114822033A (en) * 2022-04-24 2022-07-29 山东交通学院 Road network traffic flow data restoration method and system based on characteristic pyramid network
CN114925836B (en) * 2022-07-20 2022-11-29 中国海洋大学 Urban traffic flow reasoning method based on dynamic multi-view graph neural network
CN114925836A (en) * 2022-07-20 2022-08-19 中国海洋大学 Urban traffic flow reasoning method based on dynamic multi-view graph neural network
CN116110226A (en) * 2023-02-14 2023-05-12 清华大学 Traffic flow prediction method and device and electronic equipment
CN116110226B (en) * 2023-02-14 2023-08-08 清华大学 Traffic flow prediction method, device and electronic equipment
CN116311921A (en) * 2023-03-01 2023-06-23 中国矿业大学 Traffic speed prediction method based on multi-spatial scale space-time converter
CN118097948A (en) * 2024-02-27 2024-05-28 重庆邮电大学 Traffic flow prediction method based on aggregation space-time multi-graph convolution network improvement

Similar Documents

Publication Publication Date Title
CN112767682A (en) Multi-scale traffic flow prediction method based on graph convolution neural network
CN109410575B (en) A Road Network State Prediction Method Based on Capsule Network and Nested Long Short-Term Memory Neural Network
CN111612243B (en) Traffic speed prediction method, system and storage medium
Zhang et al. Multiple dynamic graph based traffic speed prediction method
CN110766942B (en) A traffic network congestion prediction method based on convolutional long short-term memory network
CN115376317B (en) A Traffic Flow Prediction Method Based on Dynamic Graph Convolution and Temporal Convolutional Network
CN109285346A (en) A traffic state prediction method of urban road network based on key road sections
CN112863182B (en) Cross-modal data prediction method based on transfer learning
CN113538910B (en) Self-adaptive full-chain urban area network signal control optimization method
CN110263280A (en) A kind of dynamic link predetermined depth model and application based on multiple view
CN114202122A (en) An urban traffic flow prediction method based on Markov cluster graph attention network
CN117237559B (en) Digital twin city-oriented three-dimensional model data intelligent analysis method and system
CN117236492B (en) Traffic demand prediction method based on dynamic multi-scale graph learning
CN118469079B (en) A subway passenger flow prediction method and device based on DCG and dual-branch parallelism
CN116504075A (en) Spatio-temporal traffic speed prediction method and system based on fusion of attention and multivariate graph convolution
CN118629226A (en) Traffic flow prediction method based on spatiotemporal adaptive dynamic graph convolutional network
CN115936069A (en) Traffic flow prediction method based on space-time attention network
CN118447684A (en) A multi-time scale traffic flow speed prediction method based on vehicle-road-cloud collaboration
CN114973678B (en) Traffic prediction method based on graph attention neural network and space-time big data
Zhang et al. Link speed prediction for signalized urban traffic network using a hybrid deep learning approach
CN116434569A (en) Traffic Flow Prediction Method and System Based on STNR Model
CN115019504A (en) Short-term traffic flow prediction method based on new deep space-time adaptive fusion graph network
CN118761026A (en) A near-surface wind field downscaling method based on deep learning
CN118278567A (en) Traffic flow space-time prediction method based on graphic neural network
CN113159371A (en) Unknown target feature modeling and demand prediction method based on cross-modal data fusion

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination