This invention discloses a method for dynamic modeling of
bidirectional traffic flow based on a deep spatiotemporal graph neural network, belonging to the field of intelligent transportation and
data mining. The method includes the following steps: S1, constructing a dynamic
traffic flow graph to capture the local spatiotemporal dependencies of the
traffic flow; S2, after obtaining the local spatiotemporal dependencies, using a temporal convolutional layer to extract temporal features; S3, after obtaining the temporal features, using a selection gate to filter the effective information obtained in S2 to obtain the final output; S4, after obtaining the result in S3, using a
composite graph convolutional module to extract spatial features; S5, fusing the
bidirectional traffic flow and obtaining the final prediction result through a prediction layer; S6, calculating the model loss to determine whether the model meets the requirements. This invention addresses the problems of insufficient
bidirectional traffic flow modeling, inadequate capture of dynamic dependencies, and poor adaptability to complex traffic scenarios faced by existing technologies in
traffic flow prediction, thereby improving the accuracy and applicability of traffic flow prediction.