Discrete data processing method and system for highway traffic flow prediction

By constructing a traffic flow prediction model with a spatiotemporal convolution layer and a discrete prediction layer, extracting spatiotemporal features and decomposing traffic flow data, it solves the problem of being unable to capture the spatial and temporal characteristics of traffic flow data in the existing technology, and realizes the prediction of highway traffic flow. high-accuracy predictions.

CN118280113BActive Publication Date: 2024-09-17QINGDAO UNIV +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410428805.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-10
Publication Date
2024-09-17
Estimated Expiration
2044-04-10

AI Technical Summary

Technical Problem

Existing technologies cannot fully capture the spatial and temporal characteristics of traffic flow data in highway traffic flow prediction, especially when traffic flow is highly discrete. The existing model lacks hierarchical and directional analysis between nodes and cannot be effective. Predicting discrete traffic flows.

Method used

A discrete data processing method for highway traffic flow prediction is adopted. By constructing a traffic flow prediction model including an input layer, a spatiotemporal convolution layer and a discrete prediction layer, a temporal residual module and a tree convolution network are used to extract spatiotemporal features, and Through the discrete segmentation and prediction module, the traffic flow data is decomposed into discrete quantities, changing trends and baselines, converted into high-dimensional discrete features, and finally the high-dimensional discrete features are integrated with spatio-temporal features for prediction.

Benefits of technology

This method can more accurately capture the spatiotemporal characteristics of traffic flow data and significantly improve the accuracy of highway traffic flow prediction. Especially in the case of highly discrete traffic flow, it is better than the prediction effect of traditional models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118280113B
    Figure CN118280113B
Patent Text Reader

Abstract

The embodiment of the present invention discloses a discrete data processing method and system for highway traffic flow prediction, which obtains a certain amount of historical traffic flow data; constructs a traffic flow prediction model, wherein the traffic flow prediction model includes an input layer, a spatiotemporal convolution layer, a discrete prediction layer, and an output layer connected in sequence; uses the historical traffic flow data as input and the traffic flow prediction result as output, trains the traffic flow prediction model, and obtains a trained traffic flow prediction model. The discrete data processing method for highway traffic flow prediction solves the problem in the prior art that the spatial and temporal characteristics of traffic flow data cannot be fully captured when discrete data processing for highway traffic flow prediction is performed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a discrete data processing method, system, electronic equipment and storage medium for highway traffic flow prediction. Background Art

[0002] Existing traffic flow prediction methods mainly use deep learning models to complete traffic flow prediction tasks. Traffic flow data, as a typical time series data, has strong temporal correlation. Existing technologies use long short-term memory (LSTM) and gated recurrent unit (GRU) to capture the temporal characteristics of traffic flow data. However, LSTM and GRU are both improved models of RNN, which retain the single-step recursive calculation process of time series data and cannot calculate spatial correlation.

[0003] In traffic prediction problems, graph convolutional neural networks (GCNs) are often used to extract spatial correlation features of traffic network topology. Although graphs can represent the spatial relationship between nodes in a traffic network, they cannot fully capture the hierarchical and directional features of the topology. Although the graph topology of a traffic network can represent the spatial relationship between traffic nodes, nodes at different distances have different degrees of influence on the central node. In addition, most studies use undirected graphs to represent the spatial topology of nodes in a traffic network, which leads to a lack of analysis of directional features between nodes during the modeling process.

[0004] GCN only extracts the spatial characteristics of traffic flow data and lacks the analysis of the temporal characteristics of traffic flow data. Yu et al. proposed a spatiotemporal graph convolutional network (STGCN), and Guo et al. added a spatiotemporal attention mechanism to STGCN and proposed a spatiotemporal attention-based graph convolutional neural network (ASTGCN). ASTGCN uses the spatiotemporal attention mechanism to highlight the spatiotemporal characteristics of traffic data and uses the spatiotemporal graph convolutional neural network to fully analyze the temporal and spatial correlations of traffic flow data. Existing traffic data prediction models have achieved good prediction results, but this is limited to normal traffic flow. With the outbreak of the epidemic, traffic flow data shows high discreteness. Li et al. proposed a deep spatiotemporal model based on discrete wavelet transform to solve the problem of highly discrete traffic flow. DSTM-DWT uses discrete wavelet transform to segment traffic flow and proposes a graph memory network to capture the discrete characteristics of traffic flow. This method improves the accuracy of the model in predicting highly discrete traffic flow. However, DSTM-DWT extracts the traffic network as an undirected graph and uses GCN to capture the spatial characteristics of traffic flow. This method lacks hierarchical and directional analysis between nodes and cannot fully capture the spatial characteristics of traffic flow.

[0005] Therefore, there is an urgent need for a method that can fully capture the spatial and temporal characteristics of traffic flow data when processing discrete data for highway traffic flow prediction. Summary of the invention

[0006] The purpose of the embodiments of the present invention is to provide a discrete data processing method, system, electronic device and storage medium for highway traffic flow prediction, so as to solve the problem that the existing technology cannot fully capture the spatial characteristics and temporal characteristics of traffic flow data when processing discrete data for highway traffic flow prediction.

[0007] To achieve the above object, an embodiment of the present invention provides a discrete data processing method for highway traffic flow prediction, the method specifically comprising:

[0008] Obtain a certain amount of historical traffic flow data;

[0009] Constructing a traffic flow prediction model, wherein the traffic flow prediction model includes an input layer, a spatiotemporal convolution layer, a discrete prediction layer, and an output layer connected in sequence;

[0010] Dividing the traffic flow data into time slices based on a preset time period through the input layer, generating nodes of the traffic flow data, abstracting the spatial distribution information of the nodes into a tree structure, and regularizing the tree structure into a spatial tree matrix;

[0011] The spatiotemporal convolution layer includes a temporal residual module and a tree convolution network, the temporal features are extracted by the temporal residual module, the spatial features are extracted by the tree convolution network, and the spatiotemporal features and the spatial features are fused to obtain spatiotemporal features;

[0012] The discrete prediction layer includes a discrete segmentation module and a discrete prediction module. The discrete segmentation module decomposes the traffic flow data into discrete quantities, change trends and discrete baselines.

[0013] Converting the discrete quantity into a high-dimensional discrete feature;

[0014] The high-dimensional discrete features are integrated with the spatiotemporal features through the output layer to obtain a traffic flow prediction result;

[0015] The historical traffic flow data is used as input and the traffic flow prediction result is used as output to train the traffic flow prediction model to obtain a trained traffic flow prediction model.

[0016] On the basis of the above technical solution, the present invention can also be improved as follows:

[0017] Furthermore, the preset time period includes a recent time period, a daily cycle time period and a weekly cycle time period;

[0018] The input data of the most recent period is expressed by formula (1);

[0019]

[0020] In the formula, X r is the input data of the most recent period, t p is the time period to be predicted, t p The input data of the time period, F is the time step, For the data domain, N is the number of nodes;

[0021] The input data of the daily cycle period is expressed by formula (2);

[0022]

[0023] In the formula, X d Input data for the daily cycle period;

[0024] The input data of the weekly period is expressed by formula (3);

[0025]

[0026] In the formula, X w Input data for the weekly period.

[0027] Furthermore, the traffic flow data is decomposed into discrete quantities, change trends and discrete baselines by using a discrete segmentation module, including:

[0028] The change trend value of the t-th time step of the spatiotemporal feature extraction result is calculated by formula (4);

[0029]

[0030] Where DQ t is the change trend value of the t-th time step of the spatiotemporal feature extraction result, x Qt is the input data, h k is a high-pass filter used to capture high-frequency information of traffic data, and Q is the downsampling rate of the downsampling filter.

[0031] Furthermore, the step of converting the discrete quantity into a high-dimensional discrete feature by a discrete prediction module includes:

[0032] The high-dimensional discrete features of the t-th time step in the output of the discrete prediction module are calculated by formula (5);

[0033]

[0034] In the formula, CT tis the high-dimensional discrete feature of the t-th time step in the output of the discrete prediction module, g k is a low-pass filter used to capture low-frequency information of traffic data.

[0035] Furthermore, the step of converting the discrete quantity into a high-dimensional discrete feature by a discrete prediction module further includes:

[0036] The Laplacian matrix is ​​calculated by formula (6);

[0037] L A =DA formula (6);

[0038] Where, L A is the Laplace matrix of spatial correlation analysis, D is the degree matrix of the node, and A is the adjacency matrix;

[0039] The result of graph feature fusion is calculated by formula (7);

[0040]

[0041] In the formula, G t is the result of graph feature fusion, α i is a trainable parameter, σ is the sigmoid function, X t Enter the data for time t.

[0042] Furthermore, the step of converting the discrete quantity into a high-dimensional discrete feature by a discrete prediction module further includes:

[0043] The final output of the discrete prediction module is calculated by formula (8);

[0044]

[0045] In the formula, h t is the final output of the discrete prediction module, z t Update the gate information for the graph of layer t, h t-1 is the output of layer t-1, is the candidate value vector of layer t.

[0046] Furthermore, the high-dimensional discrete features are fused with the spatiotemporal features through the output layer to obtain traffic flow prediction results, including:

[0047] The traffic flow prediction result of the future t-th time step is calculated by formula (9);

[0048]

[0049] In the formula, y t is the traffic flow prediction result for the tth time step in the future, c kis the up-sampling filter for the low-frequency information of traffic data, d k It is an up-sampling filter for high frequency information of traffic information.

[0050] A discrete data processing system for highway traffic flow prediction, comprising:

[0051] An acquisition module is used to obtain a certain amount of historical traffic flow data;

[0052] A construction module, used to construct a traffic flow prediction model, wherein the traffic flow prediction model includes an input layer, a spatiotemporal convolution layer, a discrete prediction layer and an output layer connected in sequence;

[0053] Dividing the traffic flow data into time slices based on a preset time period through the input layer, generating nodes of the traffic flow data, abstracting the spatial distribution information of the nodes into a tree structure, and regularizing the tree structure into a spatial tree matrix;

[0054] The spatiotemporal convolution layer includes a temporal residual module and a tree convolution network, the temporal features are extracted by the temporal residual module, the spatial features are extracted by the tree convolution network, and the spatiotemporal features and the spatial features are fused to obtain spatiotemporal features;

[0055] The discrete prediction layer includes a discrete segmentation module and a discrete prediction module. The discrete segmentation module decomposes the traffic flow data into discrete quantities, change trends and discrete baselines.

[0056] Converting the discrete quantity into a high-dimensional discrete feature;

[0057] The high-dimensional discrete features are integrated with the spatiotemporal features through the output layer to obtain a traffic flow prediction result;

[0058] The training module is used to take the historical traffic flow data as input and the traffic flow prediction result as output, train the traffic flow prediction model, and obtain a trained traffic flow prediction model.

[0059] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the steps of the method are implemented when the processor executes the computer program.

[0060] A non-transitory computer-readable storage medium stores a computer program, which implements the steps of the method when executed by a processor.

[0061] The embodiments of the present invention have the following advantages:

[0062] The discrete data processing method for highway traffic flow prediction in the present invention obtains a certain amount of historical traffic flow data; constructs a traffic flow prediction model, wherein the traffic flow prediction model includes an input layer, a spatiotemporal convolution layer, a discrete prediction layer and an output layer connected in sequence; the traffic flow data is divided into time slices based on a preset time period through the input layer, nodes of the traffic flow data are generated, the spatial distribution information of the nodes is abstracted into a tree structure, and the tree structure is regularized into a spatial tree matrix; the spatiotemporal convolution layer includes a time residual module and a tree convolution network, the time features are extracted through the time residual module, the spatial features are extracted through the tree convolution network, and the spatiotemporal features and the spatial features are fused , and obtain spatiotemporal characteristics; the discrete prediction layer includes a discrete segmentation module and a discrete prediction module, and the traffic flow data is decomposed into discrete quantities, change trends and discrete baselines through the discrete segmentation module, and the discrete quantities are converted into high-dimensional discrete features through the discrete prediction module; the high-dimensional discrete features are integrated with the spatiotemporal features through the output layer to obtain traffic flow prediction results; the historical traffic flow data is used as input and the traffic flow prediction results are used as output to train the traffic flow prediction model to obtain a trained traffic flow prediction model; the problem that the spatial characteristics and temporal characteristics of traffic flow data cannot be fully captured when processing discrete data for highway traffic flow prediction in the prior art is solved. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.

[0064] The structures, proportions, sizes, etc. illustrated in this specification are only used to match the contents disclosed in the specification so as to facilitate understanding and reading by persons familiar with the technology. They are not used to limit the conditions under which the present invention can be implemented, and therefore have no substantial technical significance. Any structural modification, change in proportion or adjustment of size shall still fall within the scope of the technical contents disclosed in the present invention without affecting the effects and purposes that can be achieved by the present invention.

[0065] Figure 1 It is a flow chart of the discrete data processing method for highway traffic flow prediction of the present invention;

[0066] Figure 2 The present invention is a schematic diagram of a discrete data processing system for predicting highway traffic flow;

[0067] Figure 3A schematic diagram of the physical structure of an electronic device provided by the present invention;

[0068] Figure 4 is a schematic diagram of a plane tree matrix of the present invention;

[0069] Figure 5 is a schematic diagram of a space tree matrix of the present invention;

[0070] Figure 6 This is a process diagram of the dilated convolution of the present invention;

[0071] Figure 7 is a schematic diagram of the TRM residual structure of the present invention;

[0072] Figure 8 This is a process diagram of tree convolution of the present invention;

[0073] Fig. 9 Schematic diagram of the plane tree convolution principle of the present invention;

[0074] Fig.10 Schematic diagram of the plane tree convolution principle of the present invention;

[0075] Fig.11 Schematic diagram of a discrete prediction module of the present invention.

[0076] The accompanying drawings are denoted as follows:

[0077] Acquisition module 10, construction module 20, training module 30, electronic device 40, processor 401, memory 402, bus 403. DETAILED DESCRIPTION

[0078] The following is a description of the implementation of the present invention by specific embodiments. People familiar with the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0079] Figure 1 FIG. 1 is a flow chart of an embodiment of a discrete data processing method for predicting highway traffic flow according to the present invention. Figure 1 As shown, a discrete data processing method for highway traffic flow prediction provided by an embodiment of the present invention includes the following steps:

[0080] S101, obtaining a certain amount of historical traffic flow data;

[0081] Specifically, the historical traffic flow data comes from the Performance Measurement System (PeMS) on highways in California, USA. PeMS is able to collect traffic data from more than 39,000 sensors on highway systems in all major cities in California in real time. 97 sensors were randomly selected from the 39,000+ sensors in PeMS, and the traffic flow data of these 97 nodes from April 1 to May 1, 2020 (a total of 30 days) were selected as the training set data, denoted as PeMS97. 140 sensors were randomly selected from the 39,000+ sensors in PeMS, as well as the traffic flow data of these 140 nodes from May 1 to May 25, 2020. By comparing the prediction results of the model on these two data sets, DeepTSTM outperforms the existing baseline models.

[0082] S102, constructing a traffic flow prediction model, wherein the traffic flow prediction model includes an input layer, a spatiotemporal convolution layer, a discrete prediction layer, and an output layer connected in sequence;

[0083] S103, dividing the traffic flow data into time slices based on a preset time period through an input layer, generating nodes of the traffic flow data, abstracting the spatial distribution information of the nodes into a tree structure, and regularizing the tree structure into a spatial tree matrix.

[0084] Specifically, in order to fully analyze the hierarchy and directionality of the spatial structure of the transportation network, the spatial structure of the transportation network is abstracted and regularized according to the tree structure. First, the road connectivity relationship of the nodes in the transportation network is abstracted into a graph structure to obtain the preliminary spatial distribution relationship of the transportation network. Secondly, the present invention takes a node in the transportation network as the root node and uses breadth-first traversal to generate a breadth-first spanning tree for the node. Figure 4 As shown, a breadth-first traversal is performed with node a as the root node to obtain the breadth-first spanning tree of node a. The breadth-first spanning tree can fully demonstrate the hierarchical relationship between the root node and other nodes; the breadth-first spanning tree of the node is abstracted as a plane tree matrix. Since different root nodes generate breadth-first spanning trees with different structures through breadth-first traversal, the size of the plane matrix should be able to accommodate the breadth-first spanning trees with the maximum depth and the breadth-first spanning trees with the maximum width. The size of the plane tree matrix is ​​defined as In this case, α represents the maximum number of layers for all breadth-first spanning trees, and β represents the maximum number of child nodes for all breadth-first spanning trees. To ensure that the flat tree matrices for all nodes are the same size, zero values ​​are used to fill the flat tree matrices.

[0085] The plane tree matrix fully demonstrates the hierarchical relationship between nodes by storing nodes at the same level of the tree structure in the same row of the matrix. In the breadth-first spanning tree, the direction from the parent node to the child node is regarded as the logical direction between the nodes (Mandal, Acharya, and Basak 2022). Each column in the plane tree matrix is ​​a complete sequence from the root node to the leaf node, which fully preserves the hierarchical and directional relationships between the nodes. After obtaining the plane tree matrices of all nodes, the plane tree matrices are connected into a spatial tree matrix, such as Figure 5 As shown above, it can be seen that the spatial tree matrix retains the spatial distribution characteristics of the nodes and fully displays the hierarchical relationship and directed relationship between the nodes.

[0086] The present invention uses 5 minutes as a time slice to count traffic flow data. In order to fully analyze the impact of the time periodicity of the data on traffic flow prediction, the present invention divides the input data into time slices according to the most recent period, daily period and weekly period. Assume that the period to be predicted is t p .

[0087] The preset time periods include the most recent time period, the daily cycle time period and the weekly cycle time period;

[0088] The most recent period refers to the traffic flow data of the previous hour of the period to be predicted. The most recent input data is shown in formula (1). Since traffic flow has obvious correlation in a short period of time, the traffic flow in the previous period has the greatest impact on the traffic flow in the future period.

[0089] The input data of the most recent period is expressed by formula (1);

[0090]

[0091] t p is the time period to be predicted, t p The input data of the time period, F is the time step, is the data domain, N is the number of nodes;

[0092] The daily cycle is the traffic flow of the same period of time on the day before the period to be predicted. The input data of the daily cycle is shown in formula (2). The traffic flow data has a cycle every day. For example, there is a morning peak from 8 to 9 am every day. Therefore, using the daily cycle as input data can improve the accuracy of traffic flow prediction.

[0093] The input data of the daily cycle period is expressed by formula (2);

[0094]

[0095] In the formula, Xd Input data for the daily cycle period;

[0096] Weekly input data is the traffic flow of the same period of time corresponding to the week before the time to be predicted. The format of weekly input data is shown in formula (3). Traffic flow data has weekly characteristics. For example, the traffic flow data from 8:00 to 9:00 am on Monday morning is similar to the traffic flow of the previous week. Therefore, including weekly input data can effectively improve the accuracy of model prediction.

[0097] The input data of the weekly period is expressed by formula (3);

[0098]

[0099] In the formula, X w Input data for the weekly period.

[0100] S104, the spatiotemporal convolution layer includes a temporal residual module and a tree convolution network, extracts temporal features through the temporal residual module, extracts spatial features through the tree convolution network, and fuses the spatiotemporal features with the spatial features to obtain spatiotemporal features;

[0101] Specifically, in order to capture the long-term temporal characteristics of traffic data, the present invention designs a temporal residual module TRM. In the long-term temporal correlation analysis, the resolution of the weight matrix gradually decreases with the increase of the number of convolution layers. In order to reduce the information loss in the convolution process, the dilated convolution is used to complete the temporal correlation analysis, and the dilated convolution is optimized. A dilation factor d is designed to dynamically adjust the feature analysis step of the dilated convolution. Since the dilated convolution uses not only the historical traffic data information but also the future traffic data information in the convolution process. Therefore, the dilated convolution cannot be directly used in the temporal correlation analysis process of traffic data. In order to solve the problem of using future traffic data information in the convolution process of the dilated convolution, the present invention utilizes the idea of ​​causal convolution when designing the dilated convolution, that is, the data time characteristics of the current time step only depend on the historical data information. Although the exponential change of the dilation factor d can effectively expand the perception field of the model, in the process of the dilated convolution, as the number of convolution layers increases, the knowledge of adjacent time steps is gradually lost. The information loss of adjacent time steps may lead to problems such as gradient vanishing and insufficient model fitting. In order to increase the weight of the information of adjacent time steps, the present invention uses a convex function change that first increases and then decreases to dynamically adjust the dilation factor. The optimized dilated convolution process in the present invention is as follows Figure 6 shown.

[0102] In order to reduce the complexity of the model and improve the accuracy of model prediction, a TRM residual structure is designed to replace the gate unit in the traditional recurrent neural network, such as Figure 7As shown in the figure. The TRM residual module consists of a convolutional network and a nonlinear mapping. BatchNorm is used to regularize the output data of the convolution layer after the convolution operation in the TRM residual model. The BatchNorm regularization operation can improve the stability of the input data and increase the convergence speed of the model. In addition, a convolution operation with a convolution kernel size of 1×1 is added to the TFM residual module to solve the data width difference problem between the input and output data.

[0103] The tree convolution network is based on the spatial tree matrix to complete the tree convolution process, capturing the spatial features between nodes in the traffic network. Each plane tree matrix that constitutes the spatial tree matrix is ​​independently executed in the tree convolution process. The tree convolution process converts the original features of the tree structure into preliminary features and finally into high-level features. The structure of the tree convolution process is shown in Figure 8 As shown. There are multiple basic units in the tree convolution to implement the layer-by-layer convolution process. First, the bottommost node and the penultimate node in the plane tree matrix are connected and input into the CNN. Secondly, the original features of the nodes in the current layer are weighted with the output of the CNN to obtain the convolution result of the current layer. The model repeats the above process until the nodes of all layers are fused. Finally, the tree convolution connects the convolution results of all layers to obtain the high-level features of the plane tree matrix. The final output of the tree convolution is the cascade of the high-level features of all the plane tree matrices that make up the spatial tree matrix.

[0104] Fig. 9The process of capturing hierarchical and directional features between nodes during tree convolution is shown. Each column in the plane tree matrix retains the connection path from the root node to the leaf node, that is, the directional features between the root node and other nodes are retained. In the present invention, a 2×1 convolution kernel is used to implement the tree convolution process, ensuring that the connection path of each node has an independent convolution process and is not affected by the connection relationship of other nodes. The tree convolution process abstracts the connectivity features of each column of the plane tree matrix into high-dimensional features. Finally, the tree convolution connects all the high-level features of the plane tree matrix into the directional features of the root node. In addition to the directional features, the tree convolution process also retains the hierarchical features of the plane tree matrix. Since the plane tree matrix is ​​generated by breadth-first traversal, the plane tree matrix retains the hierarchical relationship of the breadth-first spanning tree. The hierarchical relationship is interpreted as a direct or indirect relationship connected to the current node. The root node is always stored in the first row of the plane tree matrix. Nodes directly connected to the root node are stored in the second row of the plane tree matrix. Based on the number of indirect connections, other nodes indirectly connected to the root node are stored in different rows of the plane tree matrix. According to the row-first principle, tree convolution obtains the hierarchical relationship of each row of the plane tree matrix by translating the convolution kernel. The node layer with a higher number of indirect connections performs the convolution process first, which means that indirectly connected nodes perform more convolution processes. Each convolution process must have a certain degree of information loss. Therefore, the root node and the directly connected nodes can retain more directly related information because they perform fewer convolution processes. The above process allows the high-level features generated by tree convolution to contain different degrees of hierarchical features between nodes.

[0105] S105, the discrete prediction layer includes a discrete segmentation module and a discrete prediction module, the discrete segmentation module decomposes the traffic flow data into discrete quantities, change trends and discrete baselines, and the discrete prediction module converts the discrete quantities into high-dimensional discrete features;

[0106] Specifically, since the discrete wavelet transform is computationally intensive when performing data segmentation, it may cause problems such as speed drop and gradient vanishing in model training when the number of nodes in the traffic network and the time step of traffic data increase. Therefore, the present invention optimizes the discrete wavelet transform and designs a discrete segmentation module, such as Fig.10 As shown in the figure. First, a low-pass filter is used to obtain the trend of traffic data, and a high-pass filter is used to obtain discrete traffic data. Secondly, a downsampling filter is designed to reduce the dimension of the data and improve the training speed of the model. Finally, the downsampling result of the high-pass filter is input into the discrete prediction module, and the low-dimensional discrete quantity is converted into a high-dimensional discrete feature through the discrete prediction module.

[0107] Assume that the input data of the discrete segmentation module is X T ={x 0 , x1 , ..., x T-1}, X T represents the traffic data at that time, g(·)={g 0 , g 1 , ..., g K-1} represents a low-pass filter sequence used to capture low-frequency information of traffic data, h(·)={h 0 ,h 1 , ..., h K-1} represents a high-pass filter sequence for capturing high-frequency information of traffic data, and represents the sequence size of the low-pass filter sequence and the high-pass filter sequence. Q represents the downsampling rate of the downsampling filter. After obtaining the output result of the low-pass filter, the downsampling filter is used to calculate the downsampling characteristics of the low-pass filter calculation result, and the above process can be abstracted as formula (5), where CT represents the low-frequency filtering information of the traffic data, that is, the changing trend of the traffic data. After obtaining the output result of the high-pass filter, the downsampling filter is used to calculate the downsampling characteristics of the high-pass filter, and the above process can be abstracted as formula (4), where DQ represents the high-frequency information of the traffic data, that is, the discrete amount of the traffic data.

[0108] The change trend value of the t-th time step of the spatiotemporal feature extraction result is calculated by formula (4);

[0109]

[0110] Where DQ t is the change trend value of the t-th time step of the spatiotemporal feature extraction result, x Qt is the input data, h k is a high-pass filter used to capture high-frequency information of traffic data, and Q is the downsampling rate of the downsampling filter.

[0111] The high-dimensional discrete features of the t-th time step in the output of the discrete prediction module are calculated by formula (5);

[0112]

[0113] In the formula, CT t is the high-dimensional discrete feature of the t-th time step in the output of the discrete prediction module, g k is a low-pass filter used to capture low-frequency information of traffic data.

[0114] The traffic flow data is decomposed by discrete wavelet transform to obtain discrete quantities. The discrete quantities are regarded as a set of time series data containing spatial features. In order to more comprehensively analyze the temporal and spatial correlation of discrete quantities and make the prediction of the model more accurate, a discrete prediction module is proposed, such as Fig.11 shown.

[0115] DPM mainly consists of three parts, namely, graph feature fusion, graph update gate, and graph reset gate. In order to improve the accuracy of the prediction results, the eigenvalues ​​and eigenvectors of the Laplacian matrix are used to analyze the spatial correlation of traffic flow data. The calculation process of the Laplacian matrix of spatial correlation is shown in formula (6).

[0116] The Laplacian matrix is ​​calculated by formula (6);

[0117] K A =DA formula (6);

[0118] Where, L A is the Laplace matrix of spatial correlation analysis, D is the degree matrix of the node, and A is the adjacency matrix;

[0119] In graph feature fusion, the Laplace matrix needs to be decomposed. However, when the scale of the graph is large, the cost of directly decomposing the Laplace matrix is ​​high, resulting in a significant reduction in the model operation speed. In order to improve the training speed of the model, the present invention uses K-order Chebyshev polynomial approximation to solve this problem. The calculation process of graph feature fusion is shown in formula (7).

[0120] The result of graph feature fusion is calculated by formula (7);

[0121]

[0122] In the formula, G t is the result of graph feature fusion, α is a trainable parameter, σ is the sigmoid function, X t Enter the data for time t.

[0123] First, the hidden state information of the previous layer and the input information fused with the graph features are passed to the function to obtain the graph reset gate information, as shown in formula (9). Secondly, the graph reset gate information, the hidden state information of the previous layer, and the current data information are fused and passed to the function to obtain a new candidate value vector, as shown in formula (10). Then, the hidden state information of the previous layer and the input information fused with the graph features are passed to the sigmoid function to obtain the graph update gate information, as shown in formula (11). The final DPM output is defined as formula (8).

[0124]

[0125]

[0126] z t =σ(W z (G t h t-1 )bz ) formula (11);

[0127] The final output of the discrete prediction module is calculated by formula (8);

[0128]

[0129] In the formula, h t is the final output of the discrete prediction module, z t Update the gate information for the graph of layer t, h t-1 is the output of layer t-1, is the candidate value vector of layer t.

[0130] S106, fusing the high-dimensional discrete features with the spatiotemporal features through the output layer to obtain a traffic flow prediction result;

[0131] Specifically, the traffic flow prediction result at the future t-th time step is calculated by formula (9);

[0132]

[0133] In the formula, y t is the traffic flow prediction result for the tth time step in the future, c k is the up-sampling filter for the low-frequency information of traffic data, d k It is an up-sampling filter for high frequency information of traffic information.

[0134] After obtaining the high-dimensional discrete features of traffic data, the discrete fusion module is used to complete the fusion of high-dimensional discrete characteristics and spatiotemporal features. After obtaining the spatiotemporal feature extraction results of traffic data, the discrete segmentation module is used to segment the data from the spatial-temporal feature extraction results of traffic data and keep the change trend. Since the discrete segmentation module uses a downsampling filter to segment the data, the data dimension is reduced. In the discrete fusion module, an upsampling filter is used to complete the data feature fusion. The calculation process of discrete feature fusion is shown in formula (9). Where, c k ∈{c 0 , c 1 , ..., c K-1} represents an up-sampling filter for low-frequency information of traffic data, and d k ∈{d 0 , d 1 , ..., dx -1} represents an up-sampling filter for high frequency information of traffic information. t represents the high-dimensional discrete features of the t-th time step in the output of the discrete prediction module, and DQ tRepresents the change trend value of the t-th time step of the spatiotemporal feature extraction result. The high-dimensional discrete features are fused with the change trend of the spatiotemporal feature data through the upsampling filter to obtain the output result of DeepTSTM, y t Represents the traffic prediction result for the tth time step in the future.

[0135] S107, using historical traffic flow data as input and traffic flow prediction results as output, training a traffic flow prediction model to obtain a trained traffic flow prediction model;

[0136] The following 7 baselines are selected to compare the experimental results with those of DeepTSTM.

[0137] The 7 baselines are: LSTM: Long Short-Term Memory Network, a special RNN model. GRU: Gated Recurrent Unit Network, a special RNN model. GCN: Graph Convolutional Network, a special CNN model. STDN: Revisiting Spatiotemporal Similarity, a Deep Learning Framework for Traffic Prediction. T-GCN: Temporal Graph Convolutional Network for Traffic Prediction. T-GCN is used to capture temporal and spatial correlations, not only for short-term predictions, but also for long-term predictions. STGCN: Spatiotemporal Graph Convolutional Network, a deep learning framework for traffic prediction. ASTGCN: Attention-based Spatiotemporal Graph Convolutional Network; a deep learning model for traffic flow prediction.

[0138] Under the same experimental conditions, DeepTSTM and the other seven baselines are predicted on the same dataset and the model errors during the experiment are recorded. Under the same training environment, DeepTSTM outperforms other baseline prediction models on the dataset PeMS97.

[0139] The prediction effect of DeepTSTM is better than that of LSTM. As a typical recurrent neural network model, LSTM is usually used to analyze the temporal correlation of time series data. Although traffic flow data is a typical time series data, traffic flow data has obvious spatial correlation. It is inaccurate to use only LSTM to predict the traffic flow data of all nodes in the traffic network. GRU has fewer model parameters and faster training speed. GRU merges the input gate and forget gate in LSTM into an update gate. Under the same training conditions, GRU converges faster. Under the same training conditions, the prediction results of GRU are better than LSTM. Compared with LSTM, the MAE of GRU is reduced by 0.47 on average and the RMSE is reduced by 0.62 on average. Although the prediction effect of the GRU model has been partially improved, the overall prediction effect is not ideal. LSTM and GRU are usually used to train time series data. Although traffic flow data is usually time series data with strong temporal correlation arranged in chronological order, traffic flow data has strong spatial correlation. It is difficult for recurrent neural networks to analyze the spatial correlation of traffic flow data. Based on recurrent neural networks, STDN refers to CNN to extract spatial features of traffic flow data. STDN uses LSTM to analyze the temporal correlation of traffic flow data, and uses CNN to calculate the spatial features of traffic flow data. After adding the spatial feature calculation module, the model prediction effect of STDN is significantly improved. Compared with LSTM, STDN's average MAE is reduced by 11.30, and the average RMSE is reduced by 16.65. Compared with GRU, STDN's MAE is reduced by an average of 10.38, and the average RMSE is reduced by 16.02. STDN uses CNN to extract the spatial features of the data, and CNN is usually used to extract the features of data with Euclidean spatial structure, such as images, videos, etc. When the traffic network structure is feature extracted, the spatial correlation of the traffic flow data cannot be fully analyzed.

[0140] Among the four baselines containing GCN, the single GCN model performs the worst. GCN can only fit the changing process of traffic flow data, and there is a large gap between the prediction results of GCN and the actual traffic flow data. Compared with CNN and RNN, GCN can analyze the spatial dependency of the traffic network more comprehensively. However, the single GCN model lacks the analysis of the temporal correlation of traffic flow data. Therefore, there is still a lot of room for improvement in the prediction effect of the single GCN model. The average MAE of GCN is as high as 61.23, and the average RMSE is as high as 93.30. T-GCN uses GCN-based CNN to obtain temporal features. Adding GCN-based temporal correlation analysis effectively improves the accuracy of the model traffic flow data. The average MAE of T-GCN is reduced by 16.98, and the average RMSE of T-GCN is reduced by 27.44. The prediction results of T-GCN are closer to the true value than those of GCN. However, T-GCN still has shortcomings in predicting peak traffic flow. STGCN replaces the CNN model used to extract temporal features in T-GCN with the GRU model. Compared with CNN, the GRU model has more advantages in extracting features of time series data. Through the prediction results of T-GCN and STGCN, it can be seen that the STGCN model has better effect. Although the STGCN model already includes the extraction of spatiotemporal features, it cannot adapt well to the discrete changes of traffic flow data. The ASTGCN model adds an attention mechanism to the STGCN model for highlighting the spatial and temporal features of the data, so that data features can be extracted more accurately. The MAE of ASTGCN short-term traffic flow prediction dropped to 40.54 on average, and the RMSE of ASTGCN dropped to 56.72 on average. ASTGCN only predicts the overall trend of traffic flow changes during the epidemic, and the fitting of some details is inaccurate. Since GCN lacks hierarchical and directional analysis between nodes, the present invention proposes a tree convolution to calculate the spatial characteristics of the traffic network. In addition, in order to fully fit the temporal changes of highly discrete traffic flow data, the present invention adds data discrete analysis, which can more accurately predict highly discrete traffic flow data. The average MAE of DeepTSTM dropped to 35.85, and the average RMSE of DeepTSSTM dropped to 52.77. The prediction effect of DeepTSTM is better than all baseline models.

[0141] In this study, tree convolution is proposed to capture the spatial characteristics of traffic networks. To verify the effectiveness of tree convolution, GCN is used to replace the tree convolution module in the model to extract the spatial characteristics of traffic flow data, which is expressed as DeepTSTM_without_TC. In addition, to verify the influence of the discrete prediction layer on the prediction effect of the model, DeepTSTM is trained after removing the discrete prediction layer, namely DeepTSTM_without_DWT, and the prediction results of the model are evaluated. The model using GCN instead of tree convolution has the worst results. Compared with our model, DeepTSTM_without_TC has an average increase of 9.38 in MAE and 8.59 in RMSE. The evaluation results show that tree convolution can analyze the spatial correlation of traffic networks more comprehensively. Tree convolution can greatly improve the prediction effect of the model. Compared with our model, the prediction effect of DeepTSTM_without_DWT also decreases significantly, with an average increase of 6.99 in MAE and 7.07 in RMSE. The evaluation results show that the discrete prediction layer can effectively improve the prediction accuracy of the model for highly discrete traffic flow data. From the evaluation results of the ablation experiment, it can be seen that the prediction effect of DeepTSTM is better than the two models in the ablation experiment, which proves the effectiveness of the tree convolution and discrete prediction layer proposed in the present invention.

[0142] In order to make the model converge faster and improve the accuracy of model prediction in fewer training rounds, the present invention uses discrete wavelet transform to separate discrete quantities from traffic flow, and then uses the DPM model designed by us in the present invention to predict the discrete quantities. In order to verify the influence of the discrete prediction layer on the model effect, we removed the discrete prediction layer from the model and retrained the model. After removing the discrete prediction layer, the accuracy of the model prediction decreased and the actual data could not be accurately fitted. The discrete prediction layer divides the traffic flow into changing trends, discrete quantities and discrete baselines, and uses DPM to predict the discrete quantities of traffic flow data. The experimental results of the ablation experiment show that this method improves the accuracy of model prediction.

[0143] In order to fully analyze the spatial correlation of the traffic network, the present invention proposes tree convolution to capture the spatial characteristics of traffic flow data. Tree convolution not only considers the spatial connectivity of the traffic network, but also fully analyzes the hierarchy and directionality between nodes. Each convolution layer of GCN can process the node information of the first-order neighborhood, and realize the information transfer of multi-order neighborhood by stacking the node information of multiple convolution layers. However, the prediction results of GCN show the problem of insufficient fitting of local peaks. The nodes in a single aggregation area have very similar temporal changes in the same small range, but vary greatly between different areas. GCN cannot capture the hierarchical characteristics of the spatial distribution of nodes and can only use connectivity for adjacent information transfer. Tree convolution not only adds the calculation of directional features to the adjacent information transfer, but also abstracts the differences between aggregation areas into hierarchical features. More importantly, tree convolution and GCN use different structures to represent the spatial distribution of nodes; the calculation process of GCN targets a unique global graph containing the spatial distribution of all nodes. Each node in the tree convolution has a spatial distribution tree structure with it as the root node, which enables tree convolution to capture deeper and more complex spatial correlation characteristics between nodes. Tree convolution can mine the deep spatial information of traffic networks and significantly improve the accuracy of model predictions.

[0144] In order to make the model converge faster and improve the accuracy of model prediction in fewer training rounds, the present invention uses discrete wavelet transform to separate discrete quantities from traffic flow, and then uses the DPM model designed in the present invention to predict the discrete quantities. In order to verify the influence of the discrete prediction layer on the model effect, the discrete prediction layer was removed from the model and the model was retrained. After removing the discrete prediction layer, the accuracy of the model prediction decreased and the actual data could not be accurately fitted. The discrete prediction layer divides the traffic flow into changing trends, discrete quantities and discrete baselines, and uses DPM to predict the discrete quantities of traffic flow data. The experimental results of the ablation experiment show that this method improves the accuracy of model prediction.

[0145] The present invention proposes tree convolution to capture the spatial characteristics of traffic flow data. Tree convolution not only considers the spatial connectivity of the traffic network, but also fully analyzes the hierarchy and directionality between nodes. Each convolution layer of GCN can process the node information of the first-order neighborhood, and realize the information transfer of multi-order neighborhood by stacking the node information of multiple convolution layers. However, the prediction results of GCN show the problem of insufficient fitting of local peaks. The nodes in a single aggregation area have very similar temporal changes in the same small range, but vary greatly between different areas. GCN cannot capture the hierarchical characteristics of the spatial distribution of nodes and can only use connectivity for adjacent information transfer. Tree convolution not only adds the calculation of directional features to the adjacent information transfer, but also abstracts the differences between aggregation areas into hierarchical features. More importantly, tree convolution and GCN use different structures to represent the spatial distribution of nodes; the calculation process of GCN targets a unique global graph containing the spatial distribution of all nodes. Each node in the tree convolution has a spatial distribution tree structure with it as the root node, which enables tree convolution to capture deeper and more complex spatial correlation features between nodes. Tree convolution can mine the deep spatial information of traffic networks and significantly improve the accuracy of model predictions.

[0146] In the present invention, a spatiotemporal tree convolution model based on discrete wavelet transform is proposed to capture the spatiotemporal characteristics of discrete traffic flow prediction. In the present invention, discrete wavelet transform is used to decompose traffic flow data to attach discrete quantities of data. In order to enable the model to realize the prediction of discrete quantities, the present invention proposes a discrete prediction module, which completes the calculation of discrete quantities by converting low-dimensional discrete features into high-dimensional discrete features. The present invention proposes a tree-based model to capture the spatiotemporal characteristics of the traffic network. Each node in the traffic network is used as the root node of the tree to construct a plane tree matrix. The spatial tree matrix formed by all plane tree matrices can establish the directional relationship and hierarchical relationship between all nodes. The convolution process of the spatial tree matrix and the temporal convolution process of the traffic flow by the time residual module constitute the spatiotemporal calculation process of the traffic network. In the present invention, DeepTSTM is evaluated on two real-world datasets and compared with multiple baselines. The experimental results show that DeepTSTM is better than the existing baselines in predicting highly discrete traffic flows.

[0147] Figure 2 FIG. 1 is an architecture diagram of a discrete data processing system embodiment of the present invention for highway traffic flow prediction; Figure 2 As shown, a discrete data processing system for highway traffic flow prediction provided by an embodiment of the present invention includes the following steps:

[0148] An acquisition module 10 is used to acquire a certain amount of historical traffic flow data;

[0149] A construction module 20 is used to construct a traffic flow prediction model, wherein the traffic flow prediction model includes an input layer, a spatiotemporal convolution layer, a discrete prediction layer and an output layer connected in sequence;

[0150] Dividing the traffic flow data into time slices based on a preset time period through the input layer, generating nodes of the traffic flow data, abstracting the spatial distribution information of the nodes into a tree structure, and regularizing the tree structure into a spatial tree matrix;

[0151] The spatiotemporal convolution layer includes a temporal residual module and a tree convolution network, the temporal features are extracted by the temporal residual module, the spatial features are extracted by the tree convolution network, and the spatiotemporal features and the spatial features are fused to obtain spatiotemporal features;

[0152] The discrete prediction layer includes a discrete segmentation module and a discrete prediction module. The discrete segmentation module decomposes the traffic flow data into discrete quantities, change trends and discrete baselines. The discrete prediction module converts the discrete quantities into high-dimensional discrete features.

[0153] The high-dimensional discrete features are integrated with the spatiotemporal features through the output layer to obtain a traffic flow prediction result;

[0154] The training module 30 is used to take the historical traffic flow data as input and the traffic flow prediction result as output, train the traffic flow prediction model, and obtain a trained traffic flow prediction model.

[0155] Figure 3 A schematic diagram of the physical structure of an electronic device provided in an embodiment of the present invention, such as Figure 3 As shown, the electronic device 40 includes: a processor 401 (processor), a memory 402 (memory) and a bus 403;

[0156] The processor 401 and the memory 402 communicate with each other via the bus 403;

[0157] The processor 401 is used to call the program instructions in the memory 402 to execute the methods provided by the above-mentioned method embodiments, for example, including: obtaining a certain amount of historical traffic flow data; constructing a traffic flow prediction model, wherein the traffic flow prediction model includes an input layer, a spatiotemporal convolution layer, a discrete prediction layer and an output layer connected in sequence; dividing the traffic flow data into time slices based on a preset time period through the input layer, generating nodes of the traffic flow data, abstracting the spatial distribution information of the nodes into a tree structure, and regularizing the tree structure into a spatial tree matrix; the spatiotemporal convolution layer includes a time residual module and a tree convolution network, and extracting The temporal feature is extracted by a tree convolutional network, and the spatiotemporal feature and the spatial feature are fused to obtain the spatiotemporal feature; the discrete prediction layer includes a discrete segmentation module and a discrete prediction module, and the traffic flow data is decomposed into discrete quantities, change trends and discrete baselines by the discrete segmentation module, and the discrete quantities are converted into high-dimensional discrete features by the discrete prediction module; the high-dimensional discrete features are fused with the spatiotemporal feature through the output layer to obtain the traffic flow prediction result; the historical traffic flow data is used as input and the traffic flow prediction result is used as output, and the traffic flow prediction model is trained to obtain a trained traffic flow prediction model.

[0158] The present embodiment provides a non-transitory computer-readable storage medium, which stores computer instructions. The computer instructions enable a computer to execute the methods provided by the above-mentioned method embodiments, for example, including: obtaining a certain amount of historical traffic flow data; constructing a traffic flow prediction model, wherein the traffic flow prediction model includes an input layer, a spatiotemporal convolution layer, a discrete prediction layer and an output layer connected in sequence; dividing the traffic flow data into time slices based on a preset time period through the input layer, generating nodes of the traffic flow data, abstracting the spatial distribution information of the nodes into a tree structure, and regularizing the tree structure into a spatial tree matrix; the spatiotemporal convolution layer includes a time residual module and a tree convolution layer. The network extracts time features through a time residual module, extracts space features through a tree convolutional network, and fuses the space-time features with the space features to obtain space-time features; the discrete prediction layer includes a discrete segmentation module and a discrete prediction module, and the traffic flow data is decomposed into discrete quantities, change trends and discrete baselines through the discrete segmentation module, and the discrete quantities are converted into high-dimensional discrete features through the discrete prediction module; the high-dimensional discrete features are fused with the space-time features through the output layer to obtain a traffic flow prediction result; the historical traffic flow data is used as input and the traffic flow prediction result is used as output, and the traffic flow prediction model is trained to obtain a trained traffic flow prediction model.

[0159] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, etc., various storage media that can store program codes.

[0160] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.

[0161] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.

[0162] Although the present invention has been described in detail above by general description and specific embodiments, it is obvious to those skilled in the art that some modifications or improvements can be made to the present invention. Therefore, these modifications or improvements made without departing from the spirit of the present invention all belong to the scope of protection claimed by the present invention.

Claims

1. A discrete data processing method for highway traffic flow prediction, It is characterized in that The method specifically comprises: Obtain a certain amount of historical traffic flow data; Constructing a traffic flow prediction model, wherein the traffic flow prediction model includes an input layer, a spatiotemporal convolution layer, a discrete prediction layer, and an output layer connected in sequence; Dividing the traffic flow data into time slices based on a preset time period through the input layer, generating nodes of the traffic flow data, abstracting the spatial distribution information of the nodes into a tree structure, and regularizing the tree structure into a spatial tree matrix; The spatiotemporal convolution layer includes a time residual module and a tree convolution network, the time features are extracted by the time residual module, the space features are extracted by the tree convolution network, and the time features and the space features are fused to obtain the spatiotemporal features; The discrete prediction layer includes a discrete segmentation module and a discrete prediction module. The discrete segmentation module decomposes the traffic flow data into discrete quantities, change trends and discrete baselines. The discrete prediction module converts the discrete quantities into high-dimensional discrete features. The change trend value of the t-th time step of the spatiotemporal feature extraction result is calculated by formula (4); Formula (4): In the formula, is the changing trend value of the tth time step of the spatiotemporal feature extraction result, For input data, is a high-pass filter used to capture high-frequency information of traffic data, Q is the downsampling rate of the downsampling filter; The high-dimensional discrete features of the t-th time step in the output of the discrete prediction module are calculated by formula (5); Formula (5): In the formula, is the high-dimensional discrete feature of the t-th time step in the output of the discrete prediction module, is a low-pass filter for capturing low-frequency information of traffic data; The Laplacian matrix is ​​calculated by formula (6); Formula (6): In the formula, is the Laplace matrix for spatial correlation analysis, is the degree matrix of the node, is the adjacency matrix; The result of graph feature fusion is calculated by formula (7); Formula (7): In the formula, is the result of graph feature fusion, is a trainable parameter, is the sigmoid function, Enter data for time t; The final output of the discrete prediction module is calculated by formula (8); Formula (8): In the formula, is the final output of the discrete prediction module, Update the gate information for the graph at layer t, is the output of layer t-1, is the candidate value vector of layer t; The high-dimensional discrete features are integrated with the spatiotemporal features through the output layer to obtain a traffic flow prediction result; The historical traffic flow data is used as input and the traffic flow prediction result is used as output to train the traffic flow prediction model to obtain a trained traffic flow prediction model.

2. According to the discrete data processing method for highway traffic flow prediction according to claim 1, It is characterized in that The preset time periods include the most recent time period, the daily cycle time period and the weekly cycle time period; The input data of the most recent period is expressed by formula (1); Formula (1): In the formula, is the input data for the most recent period, is the time period to be predicted, for The input data of the time period, F is the time step, is the data domain, N is the number of nodes; The input data of the daily cycle period is expressed by formula (2); Formula (2): In the formula, Input data for the daily cycle period; The input data of the weekly period is expressed by formula (3); Formula (3): In the formula, Input data for the weekly period.

3. A discrete data processing system for highway traffic flow prediction, It is characterized in that include: An acquisition module is used to obtain a certain amount of historical traffic flow data; A construction module, used to construct a traffic flow prediction model, wherein the traffic flow prediction model includes an input layer, a spatiotemporal convolution layer, a discrete prediction layer and an output layer connected in sequence; Dividing the traffic flow data into time slices based on a preset time period through the input layer, generating nodes of the traffic flow data, abstracting the spatial distribution information of the nodes into a tree structure, and regularizing the tree structure into a spatial tree matrix; The spatiotemporal convolution layer includes a time residual module and a tree convolution network, the time features are extracted by the time residual module, the space features are extracted by the tree convolution network, and the time features and the space features are fused to obtain the spatiotemporal features; The discrete prediction layer includes a discrete segmentation module and a discrete prediction module. The discrete segmentation module decomposes the traffic flow data into discrete quantities, change trends and discrete baselines. Converting the discrete quantity into a high-dimensional discrete feature; The change trend value of the t-th time step of the spatiotemporal feature extraction result is calculated by formula (4); Formula (4): In the formula, is the changing trend value of the tth time step of the spatiotemporal feature extraction result, For input data, is a high-pass filter used to capture high-frequency information of traffic data, Q is the downsampling rate of the downsampling filter; The high-dimensional discrete features of the t-th time step in the output of the discrete prediction module are calculated by formula (5); Formula (5): In the formula, is the high-dimensional discrete feature of the t-th time step in the output of the discrete prediction module, is a low-pass filter for capturing low-frequency information of traffic data; The Laplacian matrix is ​​calculated by formula (6); Formula (6): In the formula, is the Laplace matrix for spatial correlation analysis, is the degree matrix of the node, is the adjacency matrix; The result of graph feature fusion is calculated by formula (7); Formula (7): In the formula, is the result of graph feature fusion, is a trainable parameter, is the sigmoid function, Enter data for time t; The final output of the discrete prediction module is calculated by formula (8); Formula (8): In the formula, is the final output of the discrete prediction module, Update the gate information for the graph at layer t, is the output of layer t-1, is the candidate value vector of layer t; The high-dimensional discrete features are integrated with the spatiotemporal features through the output layer to obtain a traffic flow prediction result; The training module is used to take the historical traffic flow data as input and the traffic flow prediction result as output, train the traffic flow prediction model, and obtain a trained traffic flow prediction model.

4. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 2 are implemented.

5. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 2 are implemented.

Citation Information

Patent Citations

  • A travel time prediction method based on multi-modal data fusion and multi-model integration

    CN109670277A

  • Traffic flow prediction method based on graph discrete attention network, medium and equipment

    CN114582128A

  • STNR model-based traffic flow prediction method and system

    CN116434569A

  • Traffic flow forecasting method based on deep graph gaussian processes

    US20230058520A1