Traffic flow prediction method and system based on non-embedded spatial-temporal feature fusion

Through the non-embedded spatiotemporal feature fusion method, the adaptive graph convolutional neural network and Bi-LSTM/TCN sub-module are used to directly splice spatiotemporal features, which solves the problems of model complexity and limited prediction accuracy in the existing intelligent transportation system, and achieves Efficient traffic flow prediction and stronger capture of spatiotemporal dependencies.

CN118658300AInactive Publication Date: 2024-09-17SUZHOU CITY UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410884207.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-09-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In existing intelligent transportation systems, the embedded spatio-temporal feature fusion method results in complex model structures, high consumption of computing resources, limited prediction accuracy, difficulty in capturing the complex time-varying relationships of traffic flow, and low training efficiency.

Method used

It uses a non-embedded spatiotemporal feature fusion method to aggregate spatial information through an adaptive graph convolutional neural network, and combines Bi-LSTM and TCN sub-modules to directly splice temporal features and spatial features, reducing dependence on graphs and improving training efficiency and prediction. accuracy.

Benefits of technology

It achieves more efficient traffic flow prediction, significantly improves prediction accuracy and training efficiency, reduces model complexity, and enhances the ability to capture the complex spatiotemporal dependencies of traffic flow.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118658300A
    Figure CN118658300A
Patent Text Reader

Abstract

The invention discloses a traffic flow prediction method and system based on non-embedded spatio-temporal feature fusion, and aims to obtain a high-precision traffic flow prediction result based on a non-embedded spatio-temporal feature integration mode, reduce the dependence of a model on a graph and improve the model training efficiency. The method specifically comprises the steps that different from an existing prediction model based on a space-time diagram convolutional neural network, time features and space features are integrated through a non-embedded method, time sequence information in historical features is fully mined through different time sequence relation capturing methods, dependence of the prediction model on construction of a space node relation diagram is reduced, and the prediction accuracy is improved. Even if the spatial relationship capture module is cancelled, the prediction effect of the prediction model is not obviously reduced, so that the generalization performance and the practical application value of the model in different traffic networks are improved. Meanwhile, by adopting a non-embedded spatial-temporal feature fusion mode, the complexity of the model can be obviously reduced, and the training efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of artificial intelligence and intelligent transportation, and in particular to a traffic flow prediction method and system using non-embedded spatiotemporal feature fusion. Background Art

[0002] With the development of economy and society and the increase of urban population, traffic congestion is becoming more and more serious. The development of intelligent transportation system has become an important way to alleviate urban congestion and improve people's travel efficiency. In the intelligent transportation system, accurate prediction of traffic flow is the key link of the basic part.

[0003] Unfortunately, existing solutions use an embedded spatiotemporal feature fusion approach to capture the inherent dependencies of traffic flow by adopting a mutually embedded technical route. Specifically, existing solutions use multiple stacked layers to capture spatiotemporal features. In each layer, the spatial module and the temporal module capture spatial and temporal features respectively, and then fuse different features in the fusion module to obtain the final state of each layer. However, the current solution structure is becoming more and more complex, requiring more and more computing resources, while the improvement in prediction accuracy is very limited, which greatly limits the deployment and application of existing models in actual traffic scenarios.

[0004] In addition, embedding graphs into stacked layers or blocks and fusing spatial and temporal information in each layer or block heavily relies on the construction of graphs and makes training inefficient due to the need to perform more calculations. In addition, existing schemes are limited to capturing the sequential dependencies of input data using a single method, making it difficult to further capture the complex time-varying relationships of traffic flow. Under the constraints of the routes adopted, existing models inevitably need to design more complex structures and parameters, but have little effect in improving prediction performance. Summary of the invention

[0005] Based on the above background problems, the present invention proposes a traffic flow prediction method and system based on non-embedded spatiotemporal feature fusion. First, the adaptive method of GCN is used to aggregate the spatial information of traffic nodes, and then a non-embedded method is designed to retain the sequence information of historical features. A spatiotemporal combined network that can effectively utilize the advantages of Bi-LSTM and TCN is also proposed to mine the complex spatiotemporal dependencies within the traffic flow.

[0006] The technical solution provided by the present invention specifically comprises the following steps:

[0007] S1: First, an adaptive graph convolutional neural network is used to obtain the spatial dependencies of traffic flows at different nodes. Before modeling the spatiotemporal relationships in historical features, the temporal features and spatial features are directly concatenated.

[0008] S2: The spatiotemporal features after splicing are converted to high-dimensional space through a fully connected layer and then input into the pattern capture module to model the spatiotemporal relationship;

[0009] S3: The pattern capture module is mainly composed of a TCN submodule and a Bi-LSTM submodule. The output of the TCN submodule is the input of the Bi-LSTM submodule, and the output of the pattern capture module is the concatenation of the output results of the TCN submodule and the Bi-LSTM submodule.

[0010] S4: After the output of the pattern capture module is transformed through a fully connected layer, the prediction result of the prediction model is obtained.

[0011] Furthermore, in S1, the adaptive graph continuously learns during the training process, and finally obtains the spatial relationship between different nodes. Before modeling the spatiotemporal relationship in the historical features, the temporal features and the spatial features are directly spliced.

[0012] A=softmax(I N +ReLU(tanh(MM T )))

[0013] Among them, A represents the adaptive graph convolutional neural network, I N is the identity matrix and M is a randomly initialized matrix.

[0014]

[0015] in, Represents spatial features, Represents time characteristics, Represents the spatiotemporal characteristics after splicing.

[0016] Furthermore, in S2, the spliced ​​spatiotemporal features are transformed in dimension and then input into the pattern capture module:

[0017]

[0018] is the transformed spatiotemporal feature, W in and b in are trainable parameters.

[0019] Furthermore, in S3, the pattern capture module includes a TCN submodule and a Bi-LSTM submodule:

[0020] (1) The TCN submodule has 5 layers, each containing two TCN cells. For the Lth layer (L≤5), the expansion factor is 2. L , the calculation process of TCN cell in each layer is expressed by the following formula:

[0021]

[0022] in, and represents the dilated convolution operation, represents the input of the Lth layer, express The ath element of L represents the convolution kernel of size k, d L =2 L represents the expansion factor.

[0023]

[0024] Among them, ψ tcn (·) represents the operation of TCN submodule, H tcn,t Represents the output of the TCN submodule.

[0025] (2) The output of the TCN submodule is the input of the Bi-LSTM submodule, which can be expressed by the following formula:

[0026]

[0027] Among them, “→” and “←” represent forward and backward state propagation respectively, and h t represents the hidden state of LSTM, H b,t Represents the output of the Bi-LSTM submodule.

[0028] (3) Concatenate the output of the Bi-LSTM submodule and the output of the TCN submodule to obtain the output of the pattern capture module.

[0029]

[0030] Among them, H t Represents the output of the pattern capture module.

[0031] Furthermore, in S4, the output of the pattern capture module undergoes dimension change through the fully connected layer to obtain the predicted value of the model:

[0032]

[0033] in, represents the predicted value of the model, W out and b out are trainable parameters.

[0034] Furthermore, the time granularity of traffic flow data is 5 minutes, and 12 time steps are predicted each time, that is, the traffic flow in the next hour is predicted.

[0035] Furthermore, during the model training process, Adam optimizer is used to optimize the model parameters.

[0036] Compared with the prior art, the technical solution of the present invention has the following advantages:

[0037] 1. The present invention proposes a non-embedded method that integrates spatial and temporal states, so that the model can better capture the sequential dependencies in historical features, reduce the dependence of the prediction model on the graph, and have better training efficiency.

[0038] 2. This paper proposes a new spatiotemporal combined network based on adaptive GCN, Bi-LSTM and TCN, which can effectively utilize the advantages of each component to capture the intrinsic pattern of traffic flow and achieve better prediction results than existing models.

[0039] 3. Through extensive experiments on four real-world datasets, experimental results show that the proposed network achieves excellent performance in both prediction accuracy and training efficiency compared with the state-of-the-art baselines. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in the present invention and should not be regarded as limiting the scope of the present invention.

[0041] Figure 1 It is the overall framework diagram of the present invention.

[0042] Figure 2 Graph of module integration for input features.

[0043] Figure 3 This is a prediction model framework diagram of the present invention.

[0044] Figure 4 It is a schematic diagram of the traffic flow prediction system based on non-embedded spatiotemporal feature fusion of the present invention.

[0045] Figure 5 A schematic structural diagram of an electronic device provided by an embodiment of the present invention is shown.

[0046] Figure 6 A schematic diagram of a storage medium provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0047] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0048] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0049] The present invention discloses a traffic flow prediction method and system based on non-embedded spatiotemporal feature fusion, which uses a non-embedded spatiotemporal feature fusion method to achieve high-precision prediction of traffic flow. The present invention reduces the model's dependence on graphs and improves model training efficiency. Specifically: Different from the existing prediction model based on spatiotemporal graph convolutional neural network, a non-embedded method is used to integrate time features and spatial features, and different temporal relationship capture methods are used to fully mine the temporal information in historical features, reducing the prediction model's dependence on the construction of the spatial node relationship graph. Even if the spatial relationship capture module is cancelled, the prediction effect of the prediction model will not show a significant decrease, thereby improving the generalization performance and practical application value of the model in different traffic networks. At the same time, the use of a non-embedded spatiotemporal feature fusion method can also significantly reduce the complexity of the model and improve training efficiency.

[0050] Specifically, we first use the GCN adaptive method to aggregate the spatial information of traffic nodes, and then design a non-embedded method to retain the sequence information of historical features. We also propose a spatiotemporal combined network that can effectively utilize the advantages of Bi-LSTM and TCN to mine the complex spatiotemporal dependencies within traffic flows.

[0051] refer to Figure 1-3 As shown, the present invention provides a traffic flow prediction method and system based on non-embedded spatiotemporal feature fusion, and the specific implementation steps include:

[0052] 1. Data preparation: The traffic flow data is preprocessed, with S minutes as the basic time granularity. The time granularity S can be set differently according to actual needs. In this embodiment, S is set to 5 minutes.

[0053] 2. Model construction.

[0054] S1: First, an adaptive graph convolutional neural network is used to obtain the spatial dependencies of traffic flows at different nodes. Before modeling the spatiotemporal relationships in historical features, the temporal features and spatial features are directly concatenated.

[0055] The adaptive graph continuously learns during the training process and finally obtains the spatial relationship between different nodes. Before modeling the spatiotemporal relationship in the historical features, the temporal features and spatial features are directly spliced.

[0056] A=softmax(I N +ReLU(tanh(MM T )))

[0057] Among them, A represents the adaptive graph convolutional neural network, I N is the identity matrix and M is a randomly initialized matrix.

[0058]

[0059] in, Represents spatial features, Represents time characteristics, Represents the spatiotemporal characteristics after splicing.

[0060] S2: The spatiotemporal features after splicing are converted to high-dimensional space through a fully connected layer and then input into the pattern capture module to model the spatiotemporal relationship;

[0061]

[0062] is the transformed spatiotemporal feature, W in and b in are trainable parameters.

[0063] S3: The pattern capture module is mainly composed of a TCN submodule and a Bi-LSTM submodule. The output of the TCN submodule is the input of the Bi-LSTM submodule, and the output of the pattern capture module is the concatenation of the output results of the TCN submodule and the Bi-LSTM submodule.

[0064] (1) The TCN submodule has 5 layers, each containing two TCN cells. For the Lth layer (L≤5), the expansion factor is 2. L , the calculation process of TCN cell in each layer is expressed by the following formula:

[0065]

[0066] in, and represents the dilated convolution operation, represents the input of the Lth layer, express The ath element of L represents the convolution kernel of size k, d L =2 Lrepresents the dilation factor, θ b Represents the bth parameter in the convolution kernel.

[0067]

[0068] Among them, ψ tcn (·) represents the operation of TCN submodule, H tcn,t Represents the output of the TCN submodule.

[0069] (2) The output of the TCN submodule is the input of the Bi-LSTM submodule, which can be expressed by the following formula:

[0070]

[0071] Among them, “→” and “←” represent forward and backward state propagation respectively, and h t represents the hidden state of LSTM, H b,t Represents the output of the Bi-LSTM submodule.

[0072] (3) Concatenate the output of the Bi-LSTM submodule and the output of the TCN submodule to obtain the output of the pattern capture module.

[0073]

[0074] Among them, H t Represents the output of the pattern capture module.

[0075] S4: After the output of the pattern capture module is transformed through a fully connected layer, the prediction result of the prediction model is obtained.

[0076]

[0077] in, represents the predicted value of the model, W out and b out are trainable parameters.

[0078] 3. Model training.

[0079] In the process of model training, the data is divided into training set, validation set and test set, and the parameters are set. Each iteration traverses all the data, and then the next iteration process will be carried out. In the iteration process, the model parameters are continuously optimized, and the iteration is stopped after the prediction effect of the model reaches a certain stable state. After the model training is completed, the model can be used to predict the traffic flow of the city.

[0080] In this example, we use PEMS03, PEMS04, PEMS07 and PEMS08 in the PEMS dataset as data sources. First, build the prediction model according to the model building steps in 2. Secondly, according to the input requirements of the model, divide the model into historical data for 1 hour (12 time steps) and prediction for 1 hour (12 time steps). After that, set the training parameters. In this example, the learning rate lr is set to 0.001 and the batch size is set to 64.

[0081] During the model training process, Adam optimizer is used to optimize the model parameters.

[0082] 4. Comparison of model test results.

[0083] After the model training is completed, the test data is input into the trained model to obtain the corresponding prediction results. In order to illustrate the effectiveness of the present invention, the present invention has carried out a series of experimental verifications, and selected the baseline model widely used in the field of traffic flow prediction at this stage for control experiments with the most advanced model. Including: LSTM, GCRN, DCRNN, STGCN, Graph WaveNet, ASTGCN, STSGCN, STFGNN, STGODE, AutoSTG. Three commonly used evaluation indicators, namely RMSE, MAE and MAPE, are selected to evaluate the prediction results.

[0084] Use 1 hour (12 time steps) of historical data to predict traffic flow for the next 1 hour (12 time steps).

[0085] The hardware platform used in this embodiment is: Intel Core i7-12700F processor, NVIDIA GeForce 3060 Ti; the software platform is: Windows 10, Pytorch, Python.

[0086] Table 1: Experimental results on the PEMS dataset

[0087]

[0088]

[0089] The present invention also compares the training efficiency of different prediction models on the PEMS08 data set.

[0090] Table 2: Prediction performance of the model proposed in this invention on different data sets after removing the GCN module

[0091]

[0092] Table 3: Training efficiency of different models on the PEMS08 dataset

[0093]

[0094] It can be seen from Table 1, Table 2, and Table 3 that the prediction model proposed in the present invention has very obvious advantages on different data sets, and the prediction accuracy is significantly improved. At the same time, the training efficiency of the prediction model proposed in the present invention is significantly better than other prediction models, and even if the GCN module is removed, the prediction accuracy will not decrease significantly.

[0095] The application embodiment provides a traffic flow prediction system based on non-embedded spatiotemporal feature fusion, which is used to execute the traffic flow prediction method based on non-embedded spatiotemporal feature fusion described in the above embodiment, such as Figure 4 As shown, the system includes:

[0096] The GCN construction unit 401 first randomly initializes the matrix M through an adaptive learning method, learns the connection relationship between spatial nodes during the training process, and further constructs the GCN module through graph convolution operation;

[0097] The input acquisition unit 402 concatenates the output of the GCN module and the original input features, and transforms the concatenated spatiotemporal features through a linear layer to obtain the data that is finally input into the spatiotemporal feature capture unit;

[0098] The spatiotemporal feature capturing unit 403 captures the spatiotemporal features based on a TCN submodule and a Bi-LSTM submodule, wherein the output of the TCN module is the input of the Bi-LSTM submodule, and the output of the Bi-LSTM submodule and the output of the TCN submodule are concatenated again to obtain the output of the spatiotemporal feature capturing unit;

[0099] The prediction output unit 404 outputs the operation result of the spatiotemporal feature capture unit to the fully connected layer, and obtains the final prediction result after dimensionality transformation.

[0100] The traffic flow prediction system provided by the above-mentioned embodiment of the present invention and the traffic flow prediction method provided by the embodiment of the present invention are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by the application program stored therein.

[0101] The embodiment of the present invention further provides an electronic device corresponding to the traffic flow prediction method provided in the above embodiment, so as to execute the above traffic flow prediction method. The embodiment of the present invention is not limited.

[0102] Please refer to Figure 5 , which shows a schematic diagram of an electronic device provided by some embodiments of the present invention. Figure 5As shown, the electronic device 20 includes: a processor 200, a memory 201, a bus 202 and a communication interface 203, and the processor 200, the communication interface 203 and the memory 201 are connected via the bus 202; the memory 201 stores a computer program that can be run on the processor 200, and when the processor 200 runs the computer program, it executes the traffic flow prediction method based on non-embedded spatiotemporal feature fusion provided by any of the aforementioned embodiments of the present invention.

[0103] The memory 201 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 203 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0104] The bus 202 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 201 is used to store programs, and the processor 200 executes the programs after receiving the execution instructions. The traffic flow prediction based on non-embedded spatiotemporal feature fusion disclosed in any implementation of the above embodiments of the present invention may be applied to the processor 200, or implemented by the processor 200.

[0105] The processor 200 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 200 or the instruction in the form of software. The above processor 200 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 201, and the processor 200 reads the information in the memory 201 and completes the steps of the above method in combination with its hardware.

[0106] The electronic device provided by the embodiment of the present invention and the traffic flow prediction method based on non-embedded spatiotemporal feature fusion provided by the embodiment of the present invention are based on the same inventive concept and have the same beneficial effects as the methods adopted, operated or implemented therein.

[0107] The embodiment of the present invention also provides a computer-readable storage medium corresponding to the traffic flow prediction method based on non-embedded spatiotemporal feature fusion provided in the above embodiment, please refer to Figure 6 The computer-readable storage medium shown is a CD 30 on which a computer program (i.e., a program product) is stored. When the computer program is executed by a processor, the traffic flow prediction method based on non-embedded spatiotemporal feature fusion provided in any of the aforementioned embodiments will be executed.

[0108] It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.

[0109] The computer-readable storage medium provided by the above-mentioned embodiment of the present invention and the traffic flow prediction method based on non-embedded spatiotemporal feature fusion provided by the embodiment of the present invention are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by the application program stored therein.

[0110] It should be noted that:

[0111] The algorithms and displays provided herein are not inherently related to any particular computer, virtual system or other device. Various general purpose systems may also be used together with the teachings based thereon. According to the above description, it is apparent that the structure required for constructing such systems is not intended for any particular programming language. In addition, the present invention is not intended for any particular programming language either. It should be understood that various programming languages ​​may be utilized to implement the content of the present invention described herein, and the description of the particular language above is intended to disclose the best mode of the present invention.

[0112] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0113] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.

[0114] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0115] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.

[0116] The various component embodiments of the present invention can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components in the creation system of a virtual machine according to an embodiment of the present invention. The present invention can also be implemented as a device or system program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0117] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets should not be constructed as a limitation to the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim listing a number of systems, several of these systems may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.

[0118] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of various changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A traffic flow prediction method based on non-embedded spatiotemporal feature fusion, characterized in that: include: The historical data is input into the trained adaptive graph convolutional neural network to obtain the future traffic flow prediction data; the training process of the adaptive graph convolutional neural network is as follows: S1: Adaptive graph convolutional neural network is used to obtain the spatial dependency of traffic flows at different nodes. Before modeling the spatiotemporal relationship in historical features, the temporal features and spatial features are directly spliced ​​to obtain the spliced ​​spatiotemporal features. S2: The spatiotemporal features after splicing are converted to high-dimensional space through a fully connected layer and then input into the pattern capture module to model the spatiotemporal relationship; S3: The pattern capture module includes a TCN submodule and a Bi-LSTM submodule. The output of the TCN submodule is the input of the Bi-LSTM submodule. The output of the pattern capture module is the concatenation of the output results of the TCN submodule and the Bi-LSTM submodule. S4: After the output of the pattern capture module is transformed in dimension through a fully connected layer, the prediction result of the prediction model is obtained.

2. The traffic flow prediction method based on non-embedded spatiotemporal feature fusion according to claim 1 is characterized by: In step S1, the formula is as follows: A=softmax(I N +ReLU(tanh(MM T ))) Among them, A represents the adaptive graph convolutional neural network, I N is the identity matrix, M is a randomly initialized matrix; in, Represents spatial features, Represents time characteristics, Represents the spatiotemporal characteristics after splicing.

3. The traffic flow prediction method based on non-embedded spatiotemporal feature fusion according to claim 1 is characterized by: In step S2, the formula is as follows: is the transformed spatiotemporal feature, W in and b in are trainable parameters.

4. The traffic flow prediction method based on non-embedded spatiotemporal feature fusion according to claim 1 is characterized by: In step S3, (1) The TCN submodule has 5 layers, each containing two TCN cells. For the Lth layer (L ≤ 5), the expansion factor is 2. L , the calculation process of TCN cell in each layer is expressed by the following formula: in, and represents the dilated convolution operation, represents the input of the Lth layer, express The ath element of L represents the convolution kernel of size k, d L =2 L represents the expansion factor; θ b Represents the bth parameter in the convolution kernel; Among them, ψ tcn (·) represents the operation of TCN submodule, H tcn,t Represents the output of the TCN submodule; (2) The output of the Bi-LSTM submodule is expressed by the following formula: Among them, "→" and "←" represent forward and backward state propagation respectively, h t represents the hidden state of LSTM, H b,t Represents the output of the Bi-LSTM submodule; (3) The output of the pattern capture module is expressed as: Among them, H t Represents the output of the pattern capture module.

5. The traffic flow prediction method based on non-embedded spatiotemporal feature fusion according to claim 1 is characterized by: In step S4, the predicted value of the model is expressed as follows: in, represents the predicted value of the model, W out and b out are trainable parameters.

6. The traffic flow prediction method based on non-embedded spatiotemporal feature fusion according to claim 1 is characterized by: The time granularity of the historical data and future traffic flow prediction data is 5 minutes, and each prediction is 12 time steps.

7. The traffic flow prediction method and system based on non-embedded spatiotemporal feature fusion according to claim 1, characterized in that: During the training process of the model, the Adam optimizer is used to optimize the model parameters.

8. A traffic flow prediction system based on non-embedded spatiotemporal feature fusion, characterized in that: include: The GCN construction unit, through an adaptive learning method, first randomly initializes the matrix, learns the connection relationship between spatial nodes during the training process, and further constructs the GCN module through graph convolution operations; An input acquisition unit concatenates the output of the GCN module and the original input features, and transforms the concatenated spatiotemporal features through a linear layer to obtain data that is finally input into the spatiotemporal feature capture unit; The spatiotemporal feature capture unit captures spatiotemporal features based on a TCN submodule and a Bi-LSTM submodule, where the output of the TCN module is the input of the Bi-LSTM submodule. The output of the Bi-LSTM submodule and the output of the TCN submodule are concatenated again to obtain the output of the spatiotemporal feature capture unit. The prediction output unit outputs the operation results of the spatiotemporal feature capture unit to the fully connected layer, and obtains the final prediction result after dimensionality transformation.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: The processor runs the computer program to implement the method according to any one of claims 1 to 8.