Sudden disturbance traffic prediction method based on adaptive multi-order graph neural network

Through the adaptive multi-order graph neural network, hypergraphs and multi-scale timing modules are generated to capture multi-scale time and spatial characteristics of traffic data, solving the multi-scale time dependence and multi-order spatial dependence problems of traffic prediction under burst disturbance, and realizing the More efficient traffic data prediction.

CN119049279APending Publication Date: 2024-11-29TONGJI UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411131512.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-18
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

The existing traffic prediction methods lack multi-scale time-dependent modeling in burst disturbance scenarios, and cannot model multi-order spatial dependence, and prediction hysteresis, resulting in low prediction accuracy of traffic data during emergencies.

Method used

Using a traffic prediction method based on adaptive multi-order graph neural network, including an adaptive hypergraph generator, a multi-scale timing module, a multi-order graph cross-learning module and a decoder, the hypergraph that characterizes the relationship between regions is adaptively generated and decomposed. The input data is a trend sequence and a seasonal sequence, which captures long-term trend characteristics and irregular characteristics, and captures low-order and high-order spatial features through dynamic memory graph convolution and three-way diffusion hypergraph convolution modules to promote complementary learning of features. The traffic forecast results are finally generated.

Benefits of technology

It effectively improves the timeliness and accuracy of traffic prediction, and is especially suitable for traffic management in sudden disturbance scenarios, solves the problems of multi-scale time dependence, multi-order spatial dependence and prediction hysteresis, and significantly improves prediction accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119049279A_ABST
    Figure CN119049279A_ABST
Patent Text Reader

Abstract

The invention relates to the field of intelligent traffic under the influence of sudden disturbance, and provides a sudden disturbance traffic prediction method based on a self-adaptive multi-order graph neural network, which comprises the following four steps of: 1, generating a multi-order traffic map based on original input traffic data; 2, designing a multi-scale time sequence module for extracting multi-scale time features of the multi-order traffic map; 3, designing a multi-order graph cross learning module for capturing multi-order spatial dependence of the multi-scale time features; and 4, decoding the multi-order spatial dependence to generate a traffic prediction result. According to the method, three main problems of lack of multi-scale time-dependent modeling, incapability of modeling multi-order spatial dependence and prediction delay of a current traffic prediction method in a sudden disturbance application scene are solved, the timeliness and accuracy of traffic prediction are effectively improved through a self-adaptive and multi-scale method, and the traffic prediction efficiency is improved. The method is especially suitable for traffic management in a sudden disturbance scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent transportation under the influence of sudden disturbances, and in particular to a traffic prediction method based on an adaptive multi-order graph neural network. Background Art

[0002] The urban traffic network is the link and artery of urban social and economic activities, and is the basis for ensuring the operation of the economy and society. In recent years, with the acceleration of urbanization and the rapid growth of population, traffic congestion has become more and more serious. Traffic forecasting aims to predict future traffic trends by observing historical traffic data. It is not only the basis for traffic services such as route planning, but also can alleviate traffic congestion. However, in actual traffic systems, emergencies such as natural disasters and traffic accidents occur frequently. Therefore, when faced with sudden disturbances, robust traffic forecasting is crucial to promoting the development of intelligent transportation systems.

[0003] Early traffic prediction research relied on statistical theories such as historical average, autoregressive integrated moving average, and vector autoregression. These methods presuppose that traffic data is linearly structured, thus limiting their ability to capture nonlinear dependencies. Subsequently, traditional machine learning methods such as support vector regression, random forest regression, and K nearest neighbors emerged, improving prediction accuracy by capturing nonlinear dependencies. However, these methods require manual feature design, resulting in limited generalization capabilities.

[0004] With the development of deep learning methods, they are increasingly applied to traffic prediction. These methods can automatically extract nonlinear features from large amounts of spatiotemporal traffic data, thereby providing better prediction performance and generalization ability. Early studies on traffic prediction based on deep learning focused on recurrent neural networks. Although these models have a natural advantage in capturing nonlinear temporal dependencies, they suffer from gradient explosion problems and the inability to capture spatial dependencies. Convolutional neural network-based methods solve the gradient explosion problem and are able to capture spatial dependencies. However, they treat traffic networks as grid structures and can only extract Euclidean features. In fact, traffic networks have a unique topological structure that makes their data present non-Euclidean properties. Therefore, relying solely on convolutional neural networks is not enough to model non-Euclidean data. Therefore, some studies have adopted graph neural networks, which are more suitable for capturing spatial dependencies in such data. Currently, spatiotemporal graph neural networks are the most popular traffic prediction models due to their effectiveness in modeling spatiotemporal correlations. Typically, spatiotemporal graph neural networks use recurrent neural networks or convolutional neural networks to capture temporal dependencies and graph neural networks to capture spatial dependencies. However, these methods have poor robustness under sudden disturbances and ignore the irregular dynamic spatiotemporal changes of traffic data during disturbances, resulting in low prediction accuracy.

[0005] Based on the attention mechanism, some studies calculate the correlation between spatial nodes and time steps in the temporal and spatial dimensions, which captures the irregular dynamic characteristics during the disturbance to a certain extent. It is worth noting that in the traffic system, the occurrence of disturbances is temporal and spatial indeterminate, and has the characteristics of spreading to the regional dimension. Therefore, focusing only on the low-order spatiotemporal dependencies between nodes is relatively limited, and it is necessary to capture the high-order spatiotemporal dependencies between regions. However, these methods are based on the conventional traffic node graph structure, which can only characterize the low-order spatial relationship between nodes. Under the influence of emergencies, the relationship between nodes is often not limited to pairwise connections, but involves complex relationships between multiple regions. In this case, hypergraphs provide a more flexible and extensive representation method. As a generalization of graphs, hypergraphs can connect any number of nodes with hyperedges. Therefore, hyperedges can be regarded as spatial regions composed of linked nodes, which are used to characterize high-order relationships between nodes. Based on this, the model can capture higher-order spatiotemporal characteristics and has significant advantages in modeling the correlation of actual data under sudden disturbances. Summary of the invention

[0006] In order to solve the problems that the current traffic prediction methods lack multi-scale time dependency modeling, cannot model multi-order spatial dependency, and have prediction hysteresis in the application scenario of sudden disturbance, the present invention proposes a traffic prediction method based on an adaptive multi-order graph neural network. Specifically, the adaptive multi-order graph neural network consists of an adaptive hypergraph generator, a multi-scale time series module, a multi-order graph cross-learning module, and a decoder. First, the adaptive hypergraph generator can adaptively generate a hypergraph representing the relationship between regions according to the historical traffic pattern and the current disturbance characteristics, which effectively avoids the defects of unsupervised clustering methods such as K-means in manually adjusting the K value when generating the hypergraph and being sensitive to the centroid. Secondly, the multi-scale time series module decomposes the input data into trend sequences and seasonal sequences based on fast Fourier transform, and uses the designed global time attention convolution and gated time convolution to capture the long-term trend characteristics and the irregular characteristics during the disturbance period respectively. Then, the multi-order graph cross-learning module captures the low-order and high-order spatial features respectively based on the independently constructed dynamic memory graph convolution module and the three-way diffusion hypergraph convolution module. Furthermore, the cross-learner is used to promote the complementary learning of low-order and high-order spatial features. Finally, the decoder outputs the prediction for traffic prediction under sudden disturbances.

[0007] The present invention is achieved through the following technical solutions:

[0008] A method for predicting sudden disturbance traffic based on adaptive multi-order graph neural network includes four steps:

[0009] Step 1: Generate a multi-order traffic graph based on the original input traffic data;

[0010] Step 2: Design a multi-scale time series module to extract multi-scale time features of multi-order traffic graphs;

[0011] Step 3: Design a multi-order graph cross-learning module to capture the multi-order spatial dependencies of multi-scale temporal features;

[0012] Step 4: Decode multi-order spatial dependencies and generate traffic prediction results.

[0013] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0014] The present invention solves the three main problems of current traffic prediction methods in sudden disturbance application scenarios: lack of multi-scale time dependency modeling, inability to model multi-order spatial dependencies, and prediction hysteresis. It effectively improves the timeliness and accuracy of traffic prediction through adaptive and multi-scale methods, and is particularly suitable for traffic management in sudden disturbance scenarios.

[0015] (1) The duration of disturbance is uncertain. Most current methods mainly rely on temporal convolutional networks or convolutional neural networks to capture single-scale temporal dependencies. The lack of multi-scale temporal dependency modeling makes them unable to adapt well to disturbances of different durations. The present invention designs a multi-scale time series module, which first decomposes the input sequence into trend sequence and seasonal sequence through fast Fourier transform. Then, the long-term traffic pattern characteristics of the trend sequence are captured by global time attention convolution, and the irregular characteristics and mutation characteristics during the disturbance are captured by gated temporal convolution, thereby realizing multi-scale time dependency modeling.

[0016] (2) Emergency events are of various types and have spatial uncertainty, and the scope of their impact on the traffic system is uncertain. The road network not only has interactions between nodes, but also interactions between regions. Current methods mainly focus on the spatial dependencies between nodes, ignore the high-order spatial dependencies between regions, and cannot fully capture a wide range of traffic patterns. The present invention designs an adaptive hypergraph generator and a multi-order graph cross-learning module. Among them, the adaptive hypergraph generator can adaptively generate a hypergraph based on historical long-term traffic patterns and traffic changes during disturbances, which can characterize high-order spatial relationships between regions. The multi-order graph cross-learning module captures multi-order spatial dependencies, and actively promotes learning and complementary advantages between multi-order spatial dependencies through the cross-learning module.

[0017] (3) When a disturbance occurs or ends, traffic data will mutate and lose its original periodicity and regularity during this period. Most existing methods are difficult to effectively capture the mutation and trend characteristics under the influence of disturbances, resulting in a time delay between the prediction results and the actual situation. The present invention constructs a dynamic memory graph convolution module, which can automatically learn the relationship between the historical traffic pattern and the current input based on the historical traffic pattern. That is, if the current input feature does not match the historical pattern, it can quickly capture this feature, effectively solving the problem of prediction delay. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 The present invention is a flow chart of a method for predicting sudden disturbance traffic based on an adaptive multi-order graph neural network.

[0019] Figure 2 Schematic diagram of the structure of the adaptive multi-order graph neural network model.

[0020] Figure 3 It is a visualized traffic node diagram of the urban traffic network.

[0021] Figure 4 This is a fitting curve diagram of the predicted value and the actual value of PEMS-Rainy at road network nodes No. 174 and No. 279 under sudden rainstorm weather. DETAILED DESCRIPTION

[0022] Sudden disturbance traffic prediction method based on adaptive multi-order graph neural network, such as Figure 1 As shown, taking sudden disturbance as the application scenario, it includes four steps:

[0023] 1) Generate multi-order traffic graphs (traffic node graphs and hypergraphs) based on the original input traffic data;

[0024] 2) Design a multi-scale time series module to extract multi-scale time features of multi-order traffic graphs;

[0025] 3) Design a multi-order graph cross-learning module to capture the multi-order spatial dependencies of multi-scale temporal features;

[0026] 4) Decode multi-order spatial dependencies and generate traffic prediction results.

[0027] The technical solution provided by the present application will be further described below in conjunction with specific embodiments and accompanying drawings. The advantages and features of the present application will become more apparent with the following description.

[0028] Example

[0029] Taking sudden disturbance as the application scenario:

[0030] Step 1: Construct a multi-order traffic graph based on the original traffic data. The multi-order traffic graph includes a low-order traffic node graph that represents the relationship between nodes, and a high-order traffic graph (defined as a traffic hypergraph) that represents the relationship between regions. The traffic node graph is constructed based on the topological structure theory. The traffic hypergraph is constructed based on the designed adaptive hypergraph generator, such as Figure 2 The input is the speed data of the Los Angeles road network, which is provided by the California Department of Transportation. It contains speed data of 308 different spatial locations in Los Angeles, which are recorded by 308 traffic sensors.

[0031] Step 1.1: Build a traffic node graph

[0032] Based on the theory of topological network structure, the present invention regards road sensors as nodes of the traffic network, and the connection relationship between sensors as the edge of the traffic network, so as to construct the spatial physical topological structure of the traffic network, namely the traffic node graph. The original traffic data is constructed into a traffic node graph that represents the relationship between nodes, which can be visualized as follows: Figure 3 As shown. The traffic node graph can be defined as:

[0033] G(V,ε,A'),(1)

[0034] Where V represents the set of nodes N, and |V| = N; ε is the edge set connecting the nodes; A' is the adjacency matrix. m With Node n If connected, then A mn '=1; otherwise, A mn '=0.

[0035] Step 1.2: Build a traffic hypergraph

[0036] The traditional method for constructing a hypergraph is K-means unsupervised clustering, which first selects K initial centroids, assigns each node to the nearest centroid, and finally obtains a stable node category assignment result. However, K-means requires manual adjustment of the K value. Considering the different number and types of interference events and their complex interference with real-world transportation, it is challenging to determine an appropriate K value. Therefore, the present invention designs an adaptive hypergraph generator that can automatically generate a more reasonable hypergraph based on historical traffic patterns and current traffic conditions affected by disturbances.

[0037] The following introduces the design of an adaptive hypergraph generator for generating traffic hypergraphs:

[0038] Step 1.2.1 The adaptive hypergraph generator uses a regular linear layer to adjust the channels of the original traffic data to facilitate subsequent feature exploration, expressed as:

[0039] H=Linear(X), (2)

[0040] Where X represents the original input traffic data; Linear(·) is the linear layer; H represents the hidden features after being processed by the linear layer.

[0041] Step 1.2.2 constructs a dynamic memory graph convolution module, which is used to dynamically explore hidden features H to provide a guarantee for subsequent node clustering. The reason is that the initial traffic node graph G(V,ε,A') is static, that is, the adjacency matrix A' is time-invariant and cannot change with the occurrence of emergencies. Therefore, the conventional adjacency matrix A' cannot characterize the dynamic changes of the traffic system with disturbances. The construction process of the dynamic memory graph convolution module can be expressed as:

[0042]

[0043] A=FC(A D ||A B ), (5)

[0044] H L =DMGCN(A,XW 1 ), (6)

[0045] In formula (3), exp(·) is an exponential function; H T is the transposed matrix of the hidden feature H; N represents the number of nodes in the traffic node graph; i and j represent any node; A D It is a dynamic traffic node graph, which can dynamically measure the spatial relationship of the traffic system with disturbances.

[0046] In formula (4), B is the pattern library, which stores the historical traffic changes of each node; A B Represents a traffic node graph with memory patterns. A B Based on the current traffic status and historical patterns, it can sensitively capture abnormal conditions affected by emergencies, effectively solving the problem of prediction delay.

[0047] Formula (5) represents the fusion of the dynamic graph and the traffic node graph with memory mode, || represents the feature concatenation operation; FC(·) is the fully connected layer; A represents the fused traffic node graph.

[0048] Formula (6) represents the process of extracting features by dynamic memory graph convolution DMGCN (·), which can provide a reference for subsequent node clustering. X represents the input raw traffic data; W 1 is a trainable parameter; H L is the hidden feature captured by DMGCN(·).

[0049] Step 1.2.3 Based on the hidden feature HL , the present invention clusters nodes into hyperedges to obtain a hypergraph event matrix representing the relationship between regions, which is expressed as:

[0050]

[0051] Where Soft(·) represents the Softmax activation function; W 2 is a trainable parameter; Max(·) takes the maximum value of each row of the matrix, indicating that the point with the highest attention score is assigned to a certain area; is the event matrix of the traffic hypergraph. Based on the event matrix, the traffic hypergraph can be expressed as:

[0052]

[0053] Where V represents the set of nodes N, and |V| = N; is a set of hyperedges, different from the edges of the traffic node graph G ε , super edge Can connect any number of nodes; is an event matrix, whose elements can characterize the strength of the association between nodes and hyperedges.

[0054] Step 2: Design a multi-scale timing module to capture the multi-scale temporal dependencies of traffic node graphs and hypergraphs, such as Figure 2 shown.

[0055] The design of the multi-scale time series module includes fast Fourier transform and inverse fast Fourier transform processes, gated time convolution, global time attention convolution, and embedding operations.

[0056] Thus, the working process of the multi-scale time series module is as follows: First, the traffic node graph and hypergraph are decomposed into trend sequences representing the historical long-term traffic status and seasonal sequences that change irregularly with the interference of emergencies. Secondly, a gated time convolution is constructed to capture the time dependency of the irregular changes in the seasonal sequence. At the same time, a global time attention convolution is constructed to capture the long-term dependency of the trend sequence. Finally, the two parts of the time dependency are multi-scale fused with the auxiliary time period embedding to obtain the multi-scale time dependency.

[0057] Step 2.1: Timing Decomposition

[0058] The present invention transforms the time series into frequency domain signals based on fast Fourier transform, then selects high-frequency signals as the main components for constructing the seasonal series, and then uses inverse fast Fourier transform to transform the frequency domain signals back to the time domain, i.e., the seasonal series. The process is expressed as:

[0059] X FFT=FFT(X'), (9)

[0060] f 1 ,...,f k =argTopK(Amp(X FFT )), (10)

[0061]

[0062] In formula (9), X' represents the traffic node graph G or traffic hypergraph FFT(·) is the fast Fourier transform, which is used to convert the time series into a frequency domain signal X FFT ; In formula (10), Amp(·) is the amplitude function; argTopK(·) represents the selection of the first K amplitude value functions as the basis for constructing the seasonal series. Formula (11) represents the set composed of the first K amplitude value functions, denoted as It is the main component of the seasonal series in the frequency domain. In formula (12), IFFT(·) is the inverse fast Fourier transform, which transforms the frequency domain signal back to the time domain; X Season represents the seasonal series obtained after decomposition, which is used to characterize the short-term traffic state changes during the disturbance.

[0063] Furthermore, by subtracting the input time series from the seasonal series, we can obtain the trend series:

[0064] X Trend =X'-X Seas on, (13)

[0065] Where, X Trend It is a trend sequence, which is used to characterize the long-term change trend of traffic status.

[0066] Step 2.2: Gated temporal convolution captures the temporal dependency of the seasonal series

[0067] Seasonal sequences contain traffic change characteristics disturbed by sudden events, such as traffic mutation characteristics reflecting the occurrence and end of disturbances, and irregular changes in traffic status during disturbances. Since the seasonal sequence has a high frequency of change per unit time, in order to effectively capture the short-term dependence of such complexity in the seasonal sequence that changes with disturbances, the present invention constructs a gated time convolution, which is expressed as:

[0068]

[0069] H Ts =GTCN(X Season )=Tanh(TCN(X Season ))⊙Sigmoid(TCN(X Season )), (15)

[0070] Formula (14) represents the conventional temporal convolution operation TCN(·); The dilated convolution, specifically, has a size of k and a dilation coefficient of dil. Formula (15) represents the gated temporal convolution operation GTCN(·); Tanh(·) and Sigmoid(·) are both activation functions, representing tanh and sigmoid respectively; ⊙ is the Hadamard product, i.e., the element-by-element multiplication operation; H Ts Seasonal temporal dependency captured by gated temporal convolution.

[0071] Step 2.3: Global temporal attention convolution captures the temporal dependency of trend sequences

[0072] The trend sequence contains the trend changes of historical traffic status. Its frequency of change per unit time is low, and its time dependency needs to be captured from a global perspective. Therefore, based on the self-attention mechanism, the present invention designs a global time attention convolution, which can have a receptive field of global perspective and has advantages in capturing global time dependency. It can be expressed as:

[0073]

[0074] Formula (16) represents the calculation of the time series X Trend The self-attention score, W Q , W K is a trainable parameter; at,i represents the correlation score between time slice t and time slice i. Formula (17) represents the global temporal attention convolution operation TAtt(·); similarly, W V is a trainable parameter; H Tt The global temporal dependency captured by the global temporal attention convolution.

[0075] Step 2.4: Multi-scale temporal dependency fusion

[0076] Traffic data exhibits periodicity and trends, such as different traffic patterns during peak hours, weekends, and weekdays. Therefore, the present invention applies absolute position encoding to the positions of "day" and "week" for each traffic data. These encodings contain prior time knowledge with periodicity and trends. In order to adapt to the learning of periodicity and trends in traffic data, two trainable time embeddings are defined, namely W day and W week Subsequently, the time encoding is extracted from each traffic data instance, and the time embedding tensors of “day” and “week” are retrieved, denoted as E day and E week , which is derived from the matrix W day and W week Then, E day and E weekFusion obtains the temporal embedding tensor as auxiliary prior knowledge:

[0077] E t =E day +E week , (18)

[0078] In formula (18), E day and E week They represent the periodic embedding of "day" and "week", respectively. Then, they are integrated with the seasonal and trend time dependencies:

[0079] H T =H Ts ||H Tt ||E t , (19)

[0080] Formula (19) combines the seasonal, trend and auxiliary time dependencies to obtain comprehensive multi-scale time dependencies, which serve as the input for subsequent multi-order spatial dependencies.

[0081] Step 3: Design a multi-order graph cross-learning module to capture the multi-order spatial dependencies of multi-scale temporal dependencies, such as Figure 2 shown.

[0082] The multi-order graph cross-learning module is composed of a dynamic memory graph convolution module, a three-way diffusion hypergraph convolution module, and a cross-learner. The dynamic memory graph convolution module is used to capture low-order spatial dependencies between nodes. The three-way diffusion hypergraph convolution module is used to capture high-order spatial dependencies between regions. The cross-learner promotes the complementary learning of low-order and high-order spatial dependencies, so that the model captures more comprehensive and comprehensive spatiotemporal dependencies.

[0083] Therefore, the working process of the multi-order graph cross-learning module is:

[0084] Step 3.1: Dynamic Memory Graph Convolution captures low-order spatial dependencies of multi-scale temporal dependencies

[0085] Most current traffic prediction methods are based on graph convolution to capture the spatial dependency of traffic data, which results in two defects. On the one hand, graph convolution performs feature extraction based on a static adjacency matrix. However, when an emergency occurs, the correlation between nodes has a time-varying characteristic, and it is impossible to dynamically adjust the relationship between nodes according to the emergency. On the other hand, when a sudden disturbance occurs or ends, it is unable to capture this mutation feature in time, resulting in an inherent prediction hysteresis defect. Therefore, the present invention constructs a dynamic memory graph convolution, as shown in equations (3) to (6). The constructed dynamic memory graph convolution not only has the advantage of real-time adjustment of the correlation between nodes, but also can use the historical long-term traffic pattern as a reference to timely capture the node mutation characteristics when the disturbance occurs and ends, thereby avoiding the problem of prediction delay.

[0086] Step 3.2: Three-way diffusion hypergraph convolution captures high-order spatial dependencies of multi-scale temporal dependencies

[0087] Since emergencies have inherent diffusion characteristics at the spatial level, the traffic system not only has interactions between nodes, but also interactions between regions. In order to capture higher-order spatial dependencies, the present invention designs a three-way diffusion hypergraph convolution. Specifically, it is represented as a three-way diffusion of "hyperedge-node", "node-hyperedge", and "hyperedge-node".

[0088] First, the node and hyperedge features are transformed in dimension to facilitate the subsequent three-way diffusion process, which can be expressed as:

[0089] X i =W 3 X i '+b 3 , (20)

[0090] E j =W 4 E j '+b 4 , (twenty one)

[0091] In the formula, X i and X i 'represent the characteristics of node i before and after dimensional transformation; E j and E j 'represent the features of hyperedge j before and after dimensional transformation; W 3 , W 4 , b 3 and b 4 These are all trainable parameters.

[0092] Then, a dynamic hypergraph is constructed to characterize the dynamic relationship between regions:

[0093]

[0094] In the formula, e j' and v i Represents hyperedge j' and node i respectively; E j T is the hyperedge feature E j The transpose of i,j It represents the correlation between hyperedge j and node i, which changes dynamically over time and can characterize a dynamic hypergraph.

[0095] Based on the constructed dynamic hypergraph, the first diffusion process, namely the feature diffusion process of "hyperedge-node", is performed to aggregate the hyperedge features to the nodes, which can be expressed as:

[0096]

[0097] Then, the second diffusion process, namely the feature diffusion of “node-hyperedge”, is performed by updating the hyperedge features:

[0098]

[0099] Here, for feature s j Aggregation, aggregate its features to the node, that is, the third feature diffusion process of "hyperedge-node":

[0100]

[0101] Finally, perform feature aggregation operations to obtain high-order features of three-way diffusion:

[0102]

[0103] Where N and M represent the number of nodes and hyperedges respectively; σ(·) is the Sigmoid activation function; H H is a high-order spatial dependency.

[0104] Step 3.3: Fully learn the features of low-order and high-order spatial dependencies based on the cross-learner

[0105] Low-order and high-order spatial dependencies inevitably have overlapping features and complementary features. In order to eliminate the redundant features of the two overlaps and promote complementary advantages, the present invention designs a cross-learner. First, the correlation scores of "low-order-high-order" and "high-order-low-order" are calculated respectively, which can be expressed as:

[0106]

[0107] In the formula, A LH and A HL Represent the correlation scores between “low-order-high-order” and “high-order-low-order” respectively; H L ' and H L Represent the low-order spatial features of the l-th layer and the l-1-th layer respectively.

[0108] Then, cross-learning is performed based on the correlation score between the two:

[0109]

[0110] H H '=ε⊙H H +γ⊙(A HL H L ), (30)

[0111] In the formula, ω, ε and γ are both learnable parameters; ⊙ is the Hadamard product. Finally, the low-order and high-order features after cross-learning are fused:

[0112] H ST =Linear(H L +H H ), (31)

[0113] Where Linear(·) is the linear layer; H ST Represents the multi-order spatiotemporal dependencies captured by the multi-order graph cross-learning module.

[0114] Step 4: Decode the multi-order spatiotemporal dependencies and generate traffic prediction results, such as Figure 2 The spatiotemporal representation of the output of the multi-order graph cross module is shown in ST Due to the dimensionality, the prediction result cannot be directly expressed. The present invention uses a multi-layer perceptron to process the spatiotemporal representation H ST , expressed as:

[0115] Y=MLP(H ST ), (32)

[0116] Where Y is the output prediction result; MLP(·) represents a multi-layer perceptron. The MLP consists of two fully connected layers. As a non-autoregressive method to generate predictions, it can effectively avoid the problem of error accumulation.

[0117] Verification Example

[0118] In order to intuitively demonstrate the prediction advantage of this example in the heavy rainfall disturbance scenario, the prediction results of the present invention are visualized on the PEMS-Rainy dataset. Based on the initial adjacency matrix, important nodes 174 and 279 with high connectivity are selected as prediction objects. Among them, the prediction time range of node 174 is from 0:00 on January 5, 2019 to 0:00 on January 6, 2019 (holidays). The prediction time range of node 279 is from 0:00 on January 15, 2019 to 0:00 on January 16, 2019 (working days). The prediction results are as follows. Figure 4 As shown in the figure, the present invention can not only predict the traffic status during non-rainfall periods, but also accurately predict the traffic status during heavy rainfall periods. This is attributed to the multi-scale time module and the multi-order graph cross-learning module, which effectively capture the irregular traffic changes during disturbances, making it well adapted to sudden disturbances and having strong robustness.

[0119] In addition, to prove the superiority of the present invention over other prediction methods, the latest and excellent prediction models are selected for comparison, including AGCRN, MTGNN, STemGNN, STNorm, STID, and MegaCRN models. The prediction range includes short-term (15 minutes), medium-term (30 minutes), and long-term (60 minutes) predictions. Specifically, the present invention conducts comparative experiments on the PEMS-Rainy dataset, and their results are shown in Table 1.

[0120] Table 1 Experimental results with the latest excellent models

[0121]

[0122] As can be seen from Table 1, whether it is medium-term or long-term prediction, the present invention is superior to similar models in terms of mean absolute error (MAE), root mean square error (RMSE), and mean absolute percentage error (MAPE). MTGNN, as a multivariate time series prediction model, has excellent results in capturing spatiotemporal dependencies. STemGNN is a spectral space-time graph neural network that combines graph Fourier transform to model the correlation between sequences and discrete Fourier transform to model time dependencies. STNorm introduces two normalization modules, namely time normalization and space normalization, which optimize the high-frequency components and local components in the original data respectively. STID proposes a simple and effective spatiotemporal prediction method based on multilayer perceptron and spatiotemporal identity information. MegaCRN is a meta-graph convolutional recurrent network that introduces a new meta-graph learner and integrates it into a recurrent neural network to capture spatiotemporal dependencies. Although these methods have achieved extraordinary prediction performance in the field of traffic prediction, they are still inferior to the present invention. According to analysis, this is due to the fact that the present invention takes both conventional graphs and hypergraphs as research objects, and uses the independently designed multi-scale time series module and multi-order graph cross-learning module to effectively capture the spatiotemporal characteristics during non-disturbance and disturbance periods, enabling it to achieve the best prediction performance.

[0123] The above description is only a description of the preferred embodiments of the present application, and is not intended to limit the scope of the present application. Any changes or modifications made by any person skilled in the art based on the above disclosed technical contents shall be deemed as equivalent effective embodiments and shall fall within the scope of protection of the technical solution of the present application.

[0124] References are as follows:

[0125] [1]Z.Wu,S.Pan,G.Long,J.Jiang,X.Chang,and C.Zhang,“Connecting thedots:Multivariate time series forecasting with graph neural networks,”Proceedings of the 26th ACM SIGKDD conference on knowledge discovery&datamining,Aug.2020,pp.753–763.

[0126] [2]D.Cao,Y.Wang,J.Duan,C.Zhang,X.Zhu,C.Huang,Y.Tong,B.Xu,J.Bai,J.Tong,Q.Zhang,Spectral temporal graph neural network for multivariate time-series forecasting,in:Proceedings of the 34th International Conference onNeural Information Processing Systems,NIPS’20,Curran Associates Inc.,RedHook,NY,USA,2020.

[0127] [3]J.Deng,X.Chen,R.Jiang,X.Song,I.W.Tsang,ST-Norm:Spatial andTemporal Normalization for Multi-variate Time Series Forecasting,in:Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery&DataMining,Association for Computing Machinery,New York,NY,USA,2021,pp.269–278.

[0128] [4]Z.Shao,Z.Zhang,F.Wang,W.Wei,Y.Xu,Spatial-Temporal Identity:ASimpleyet Effective Baseline for Multivariate Time Series Forecasting,in:Proceedings of the 31st ACM International Conference on Information&KnowledgeManagement,Association for Computing Machinery,New York,NY,USA,2022,pp.4454–4458.

[0129] [5]R.Jiang et al.,“Spatio-temporal meta-graph learning for trafficforecasting,”in Proc.AAAI Conf.Artif.Intell.,2023,vol.37,no.7,pp.8078–8086.

Claims

1. A method for predicting sudden disturbance traffic based on adaptive multi-order graph neural network, characterized in that: There are four steps involved: Step 1: Generate a multi-order traffic graph based on the original input traffic data; Step 2: Design a multi-scale time series module to extract multi-scale time features of multi-order traffic graphs; Step 3: Design a multi-order graph cross-learning module to capture the multi-order spatial dependencies of multi-scale temporal features; Step 4: Decode multi-order spatial dependencies and generate traffic prediction results.

2. The method according to claim 1, characterized in that Step 1: Constructing a multi-order traffic graph based on the original traffic data, wherein the multi-order traffic graph includes a low-order traffic node graph representing the relationship between nodes, and a high-order traffic graph, i.e., a traffic hypergraph, representing the relationship between regions; include: Step 1.1: Construct a traffic node graph; Based on the theory of topological network structure, road sensors are regarded as nodes of the traffic network, and the connection relationship between sensors is regarded as the edge of the traffic network. In this way, the spatial physical topological structure of the traffic network is constructed, that is, the traffic node graph. The traffic node graph is defined as: G(V,ε,A'),(1) Where V represents the set of nodes N (|V|=N); ε is the set of edges connecting nodes; A' is the adjacency matrix; Step 1.2: Construct a traffic hypergraph; Design an adaptive hypergraph generator to generate traffic hypergraphs, which can effectively represent the relationship between regions in the traffic network during disturbances; The adaptive hypergraph generator comprises a linear layer, a dynamic memory graph convolution layer, and a node clustering layer; Step 1.2.1 The adaptive hypergraph generator uses a regular linear layer to adjust the channels of the original traffic data to facilitate subsequent feature exploration, expressed as: H=Linear(X), (2) Where X represents the original input traffic data; Linear(·) is the linear layer; H represents the hidden features after being processed by the linear layer; Step 1.2.2 uses the dynamic memory graph convolution layer to capture the spatial features of the hidden feature H for subsequent node clustering. The construction method of the dynamic memory graph convolution is expressed as: A=FC(A D ||A B ), (5) H L =DMGCN(A,XW1), (6) In formula (3), exp(·) is an exponential function; H T is the transposed matrix of the hidden feature H; N represents the number of nodes in the traffic node graph; i and j both represent nodes; A D Represents a dynamic traffic node graph; In formula (4), B is the pattern library, which stores the historical traffic changes of each node; A B Representation mode traffic node diagram; In formula (5), || represents the feature concatenation operation; FC(·) is the fully connected layer; A represents the dynamic memory traffic node graph that integrates dynamic and pattern characteristics; In formula (6), X represents the input raw traffic data; W1 is a trainable parameter; DMGCN(·) represents the dynamic memory graph convolution operation; H L is the hidden feature captured by the dynamic memory graph convolution, which is used for subsequent node clustering; Step 1.2.3 Based on H L Perform node clustering to obtain a hypergraph event matrix that represents the relationship between regions It is expressed as: Where Soft(·) represents the Softmax activation function; W2 is a trainable parameter; Max(·) takes the maximum value of each row of the matrix, indicating that the point with the highest attention score is assigned to a certain area; based on the event matrix Traffic supermap is denoted as V represents a node set; is a set of hyperedges.

3. The method according to claim 1, characterized in that Step 2: The design of the multi-scale temporal module includes fast Fourier transform and inverse fast Fourier transform processes, gated temporal convolution, global temporal attention convolution, and embedding operations; Step 2.1: Perform multi-scale decomposition on the time series; The multi-scale decomposition of time series includes transforming the input time series into high-frequency signals based on fast Fourier transform, then obtaining the seasonal series through inverse fast Fourier transform, and then capturing the trend series through series subtraction. The process is expressed as: X FFT =FFT(X'), (9) f1,...,f k =argTopK(Amp(X FFT )), (10) X Trend =X'-X Season , (13) In formula (9), X' represents the traffic node graph G or traffic hypergraph time series; FFT(·) is fast Fourier transform, which is used to convert the time series into a multi-frequency signal; X FFT It is the frequency domain signal after fast Fourier transform; In formula (10), Amp(·) is the amplitude function; argTopK(·) represents the function of selecting the first K amplitude values; Formula (11) represents the set of the first K amplitude value functions, denoted as In formula (12), IFFT(·) is the inverse fast Fourier transform; X Seas on represents the seasonal series, which is used to characterize the short-term traffic state changes during disturbances; X in formula (13) Trend is a trend sequence, which is used to characterize the long-term change trend of traffic status; Step 2.2: Capture the temporal dependency of the seasonal series based on gated temporal convolution; The gated temporal convolution can capture the irregular changes of the seasonal series during disturbances, expressed as: H Ts =GTCN(X Season )=Tanh(BC(X Season ))⊙Sigmoid(BCN(X Seas on)), (15) Formula (14) represents the temporal convolution operation TCN(·); is a convolution operation with size k and dilation factor dil; Formula (15) represents the gated temporal convolution operation GTCN(·); Tanh(·) and Sigmoid(·) represent the tanh and sigmoid activation functions respectively; ⊙ is the Hadamard product; H Ts seasonal temporal dependency captured by gated temporal convolution; Step 2.3: Capture the global dependency features of the trend sequence based on global temporal attention convolution, expressed as: In formula (16) and formula (17), W Q , W K and W V All are trainable parameters; at ,i represents the correlation between time slice t and time slice i; TAtt(·) represents the global temporal attention convolution operation; H Tt The trending temporal dependency captured by the global temporal attention convolution; Step 2.4: Aggregate seasonal and trend time dependencies with auxiliary time period characteristics, expressed as: AND t =And day +E week , (18) H T =H Ts ||H Tt ||E t , (19) In formula (18), E day and E week Represents the period embedding of "day" and "week" respectively; Formula (19) combines the seasonal, trend and auxiliary time dependencies to obtain comprehensive multi-scale time dependencies, which serve as the input for subsequent multi-order spatial dependencies.

4. The method according to claim 1, characterized in that Step 3: The multi-order graph cross-learning module includes: a dynamic memory graph convolution module, a three-way diffusion hypergraph convolution module, and a cross-learner; Step 3.1: Capture the low-order spatial dependencies of the traffic node graph, i.e., the spatial relationship between nodes, based on the dynamic memory graph convolution module; Step 3.2: Based on the three-way diffusion hypergraph convolution module, the high-order spatial dependencies of the traffic hypergraph, that is, the spatial relationship between regions, are captured, which can be expressed as: First, the node and hyperedge features are transformed in dimension to facilitate the subsequent capture of high-order spatial dependencies, expressed as: X i =W3X i '+b3, (20) E j =W4E j '+b4, (21) In the formula, X i and X i 'represent the characteristics of node i before and after dimensional transformation; E j and E j 'represent the features of hyperedge j before and after dimensional transformation respectively; W3, W4, b3 and b4 are all trainable parameters; Then, a dynamic hypergraph is constructed to characterize the dynamic relationship between regions: In the formula, e j' and v i Represents hyperedge j' and node i respectively; E j T is the hyperedge feature E j The transpose of i,j Represents the correlation between hyperedge j and node i, which changes dynamically over time and can represent a dynamic hypergraph; Then, a feature aggregation operation is performed, which has a three-way diffusion mechanism to comprehensively and effectively capture high-order spatial dependencies: Formula (23) represents the feature diffusion process of "hyperedge-node"; Formula (24) represents the feature diffusion process of "node-hyperedge"; Formula (25) represents the feature diffusion process of feature s j Aggregation, further aggregating its features to nodes, that is, the feature diffusion process of "hyperedge-node"; Finally, perform feature aggregation operations to obtain high-order features of three-way diffusion: Where N and M represent the number of nodes and hyperedges respectively; σ(·) is the Sigmoid activation function; H H is a high-order spatial feature; Step 3.3: Promote complementary learning of low-order and high-order spatial features based on cross-learners, expressed as: H H '=ε⊙H H +γ⊙(A HL H L ), (30) In the formula, A LH and A HL Represent the correlation scores between "low-order-high-order" and "high-order-low-order" respectively; H L ' and H L Represent the low-order spatial features of the l-th layer and the l-1-th layer respectively; ω, ε and γ are both learnable parameters; ⊙ is Hadamard; Furthermore, the low-order and high-order features after cross-learning are fused to represent multi-order spatiotemporal dependencies: H ST =Linear(H L +H H ). (31) Where Linear(·) is the linear layer; H ST Represents the multi-order spatiotemporal dependencies captured by the multi-order graph cross-learning module.

5. The method according to claim 1, characterized in that Step 4: The decoder decodes the high-order spatiotemporal features and outputs the prediction results: Y=MLP(H ST ), (32) Where MLP(·) represents a multi-layer perceptron; Y is the output prediction result.

Citation Information

Cited By

  • Non-stationary time sequence flow prediction method and device based on delay space-time dependence, and medium

    CN120257237A