A traffic parameter prediction method, device and equipment
By constructing a spatio-temporal graph model of the road network structure, integrating static and dynamic information, and extracting spatial and temporal features, the spatio-temporal fusion of multi-source data is achieved, solving the problems of traffic parameter prediction accuracy and real-time performance caused by relying on a single data source in the existing technology. It improves the accuracy and real-time performance of predictions.
Patent Information
- Application Number
- CN202410649904.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-05-24
AI Technical Summary
Existing traffic parameter prediction methods rely on a single data source and are easily affected by the error distribution characteristics of the sensing principle, resulting in insufficient prediction accuracy and real-time performance.
By obtaining static information and real-time dynamic information of the road network structure, a spatio-temporal graph model is constructed, and spatial feature extraction and temporal feature extraction modules are used to integrate multi-source data for traffic parameter prediction.
It improves the accuracy and real-time nature of traffic parameter prediction, overcomes the disadvantages of single data source prediction, and enhances the accuracy of prediction results.
Smart Images

Figure CN118230556B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent transportation technology, and in particular to a method, device and equipment for predicting traffic parameters. Background Art
[0002] Road network traffic parameters are the basis for analyzing traffic trends and improving traffic efficiency. There are two main methods for predicting traffic parameters. One is to obtain data from ubiquitous connected vehicles such as drivers' mobile phones and online ride-hailing vehicles to infer the speed of traffic on a road section, intersection delays, etc. However, it is too dependent on connected vehicle data, and the accuracy of traffic estimation is prone to bottlenecks, which will lead to errors in the predicted traffic parameters. The other is to obtain traffic detector data at intersections, monitor the density of vehicles passing through intersections and lanes in real time, and estimate the speed of traffic on a road section based on matching vehicles passing through adjacent intersections, but it is easily affected by license plate detection and the speed of the target vehicle. It can be seen that most existing technologies rely on a single data source for spatiotemporal analysis of road network data, and the predicted traffic parameters are easily affected by the error distribution characteristics of the perception principle, resulting in errors. Summary of the invention
[0003] The purpose of the present invention is to provide a traffic parameter prediction method, device and equipment to address the deficiencies in the above-mentioned prior art, so as to construct a spatiotemporal graph model of the road network structure by fusing static information and real-time dynamic information, thereby realizing the spatiotemporal fusion of multi-source data and improving the accuracy and real-time performance of traffic parameter prediction.
[0004] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0005] In a first aspect, an embodiment of the present application provides a traffic parameter prediction method, comprising:
[0006] Acquire static information of the road network structure within a preset area and real-time dynamic information of the road network structure;
[0007] Constructing a spatiotemporal graph model of the road network structure according to the static information and the real-time dynamic information;
[0008] Using the spatial feature extraction module in the traffic parameter prediction model, extracting spatial features from the spatiotemporal graph model to obtain real-time spatial features of the road network structure;
[0009] Using the time feature extraction module in the traffic parameter prediction model, extracting time features from the space-time graph model to obtain real-time time features of the road network structure;
[0010] The prediction module in the traffic parameter prediction model is used to predict the traffic parameters of the road network structure according to the real-time spatial characteristics and the real-time time characteristics, so as to obtain the traffic parameters of the road network structure at a preset future time.
[0011] In an optional implementation, the real-time dynamic information includes: road network dynamic information and vehicle dynamic information; and constructing the spatiotemporal graph model of the road network structure according to the static information and the real-time dynamic information includes:
[0012] Constructing a graph representation model of the road network structure according to the static information and the road network dynamic information, wherein nodes in the graph representation model are used to represent key points in the road network structure, and edges in the graph representation model are used to represent road segments between nodes;
[0013] According to the dynamic and static properties of each node in the road network structure, a feature set of each node in the graph representation model is obtained;
[0014] Obtaining a feature set of each edge in the graph representation model according to the vehicle dynamic information and the static properties of the edge corresponding to each road section in the graph representation model;
[0015] The spatiotemporal graph model is constructed according to the feature sets of the edges and the feature sets of the nodes.
[0016] In an optional implementation manner, obtaining a feature set of each node in the graph representation model according to the dynamic and static attributes of each node in the road network structure includes:
[0017] Standardizing the dynamic and static attributes of each node to obtain standardized characteristic parameters of each node;
[0018] Feature selection is performed on the standardized feature parameters of each node to obtain a feature set of each node in the graph representation model.
[0019] In an optional implementation manner, obtaining a feature set of each edge in the graph representation model according to the vehicle dynamic information and the static properties of the edge corresponding to each road section in the graph representation model includes:
[0020] According to the vehicle dynamic information, the traffic dynamic characteristics on each road section in the road network structure are obtained;
[0021] According to the dynamic characteristics of traffic on each road section and the static properties of the edges corresponding to each road section in the graph representation model, a feature set of each edge in the graph representation model is obtained.
[0022] In an optional implementation manner, obtaining the traffic dynamic characteristics on each road section in the road network structure according to the vehicle dynamic information includes:
[0023] Determining the road section position of the vehicle trajectory point in the road network structure according to the vehicle trajectory point in the vehicle dynamic information;
[0024] Establishing a vehicle information feature sequence according to the vehicle speed and direction in the vehicle dynamic information and the road section position;
[0025] The traffic dynamic characteristics are obtained according to the vehicle information feature sequence.
[0026] In an optional implementation manner, determining the section position of the vehicle trajectory point in the road network structure according to the vehicle trajectory point in the vehicle dynamic information includes:
[0027] According to the vehicle trajectory points in the vehicle dynamic information, the semantic understanding module in the traffic parameter prediction model is used for processing to determine the distribution probability of each vehicle trajectory point in each road section in the road network structure, and the matching probability of adjacent vehicle trajectory points in each road section in the road network structure;
[0028] According to the distribution probability and the matching probability, the road section position of the vehicle trajectory point in the road network structure is determined.
[0029] In an optional implementation manner, obtaining the traffic dynamic feature according to the vehicle information feature sequence includes:
[0030] Extracting feature vectors from the vehicle information feature sequence to obtain a road section information vector corresponding to the vehicle information feature sequence;
[0031] The road section information vector is processed using a preset attention mechanism to obtain the traffic dynamic characteristics.
[0032] In an optional implementation manner, the traffic parameter prediction model is a model trained in the following manner:
[0033] Acquire static information of the road network structure within the preset area and dynamic information of the road network structure at multiple historical moments;
[0034] According to the static information and the dynamic information of the multiple historical moments, respectively constructing the spatiotemporal graph models of the road network structure at the multiple historical moments;
[0035] Using the initial spatial feature extraction module in the initial traffic parameter prediction model, extracting spatial features from the space-time graph model at the previous historical moment, and obtaining the spatial features of the road network structure at the previous historical moment;
[0036] Using the initial time feature extraction module in the initial traffic parameter prediction model, extracting the time features of the space-time graph model at the previous historical moment, and obtaining the time features of the road network structure at the previous historical moment;
[0037] Using the initial prediction module in the initial traffic parameter prediction model, traffic parameter prediction is performed on the road network structure according to the spatial characteristics of the previous historical moment and the time characteristics of the previous historical moment, so as to obtain traffic prediction parameters of the road network structure at the next historical moment;
[0038] Calculating a model loss function value according to the traffic prediction parameters at the next historical moment and the dynamic information at the next historical moment;
[0039] According to the model loss function value, the parameters of the initial spatial feature extraction module, the initial temporal feature extraction module and the initial prediction module are adjusted to obtain the traffic parameter prediction model.
[0040] In a second aspect, the embodiment of the present application further provides a traffic parameter prediction device, comprising:
[0041] An acquisition module, used to acquire static information of a road network structure within a preset area and real-time dynamic information of the road network structure;
[0042] A construction module, used to construct a spatiotemporal graph model of the road network structure according to the static information and the real-time dynamic information;
[0043] An extraction module, used to extract spatial features from the spatiotemporal graph model using a spatial feature extraction module in a traffic parameter prediction model, to obtain real-time spatial features of the road network structure;
[0044] The extraction module is further used to extract time features from the space-time graph model using the time feature extraction module in the traffic parameter prediction model to obtain real-time time features of the road network structure;
[0045] A prediction module is used to use the prediction module in the traffic parameter prediction model to predict the traffic parameters of the road network structure according to the real-time spatial characteristics and the real-time time characteristics, so as to obtain the traffic parameters of the road network structure at a preset future time.
[0046] In the third aspect, an embodiment of the present application also provides a computer device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, and when the computer device is running, the processor communicates with the storage medium through the bus, and the processor executes the program instructions to perform the steps of the traffic parameter prediction method as described in any one of the first aspects.
[0047] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the traffic parameter prediction method as described in any one of the first aspects are executed.
[0048] The beneficial effects of this application are:
[0049] The embodiment of the present application provides a traffic parameter prediction method, device and equipment, including: obtaining static information of a road network structure within a preset area and real-time dynamic information of the road network structure, constructing a spatiotemporal graph model of the road network structure according to the static information and the real-time dynamic information, and using the spatial feature extraction module in the traffic parameter prediction model to extract spatial features from the spatiotemporal graph model to obtain the real-time spatial features of the road network structure, using the temporal feature extraction module in the traffic parameter prediction model to extract temporal features from the spatiotemporal graph model to obtain the real-time temporal features of the road network structure, and finally using the prediction module in the traffic parameter prediction model to predict traffic parameters for the road network structure according to the real-time spatial features and the real-time temporal features, and obtain the traffic parameters of the road network structure at a preset future moment. In the method provided by the embodiment of the present application, by fusing static information and real-time dynamic information, a spatiotemporal graph model of the road network structure is constructed, the spatiotemporal fusion of multi-source data is realized, the disadvantage of predicting traffic parameters through a single data source is overcome, and the accuracy and real-time performance of traffic parameter prediction can be improved by predicting traffic parameters for the road network structure through the prediction module. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0051] Figure 1 One of the flow charts of a traffic parameter prediction method provided in an embodiment of the present application;
[0052] Figure 2 A second flow chart of a traffic parameter prediction method provided in an embodiment of the present application;
[0053] Figure 3 A third flow chart of a traffic parameter prediction method provided in an embodiment of the present application;
[0054] Figure 4 A fourth flow chart of a traffic parameter prediction method provided in an embodiment of the present application;
[0055] Figure 5 A fifth flow chart of a traffic parameter prediction method provided in an embodiment of the present application;
[0056] Figure 6 A sixth flow chart of a traffic parameter prediction method provided in an embodiment of the present application;
[0057] Figure 7 A flow chart of a traffic parameter prediction method provided in an embodiment of the present application is shown in FIG7;
[0058] Figure 8 FIG8 is a flow chart of a traffic parameter prediction method provided in an embodiment of the present application;
[0059] Fig. 9 A schematic diagram of functional modules of a traffic parameter prediction device provided in an embodiment of the present application;
[0060] Fig.10 A schematic diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0061] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments.
[0062] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0063] In addition, the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0064] It should be noted that, in the absence of conflict, the features in the embodiments of the present application may be combined with each other.
[0065] In order to accurately predict the traffic parameters of the road network structure within a preset area at a preset future time, an embodiment of the present application provides a traffic parameter prediction method, by obtaining static information and real-time dynamic information of the road network structure within a preset area, and constructing a spatiotemporal graph model of the road network structure based on the static information and the real-time dynamic information, using the spatial feature extraction module in the traffic parameter prediction model to extract spatial features of the spatiotemporal graph model to obtain the real-time spatial features of the road network structure, and using the time feature extraction module in the traffic parameter prediction model to extract time features of the spatiotemporal graph model to obtain the real-time time features of the road network structure, and finally using the prediction module in the traffic parameter prediction model to predict the traffic parameters of the road network structure based on the real-time spatial features and the real-time time features to obtain the traffic parameters of the road network structure at the preset future time, and by fusing multiple data sources of the static information and real-time dynamic information of the road network structure to construct a spatiotemporal graph model, so that the traffic parameters predicted according to the spatiotemporal graph model are more accurate than the traffic parameters predicted by a single data source, thereby improving the accuracy and real-time performance of the traffic parameter prediction.
[0066] The traffic parameter prediction method provided by the embodiment of the present application is explained in detail below with reference to the accompanying drawings through specific examples. The traffic parameter prediction method provided by the embodiment of the present application can be implemented by a computer device pre-installed with: a traffic parameter prediction algorithm, by running the algorithm or software. The computer device can be, for example, a server or a terminal, and the terminal can be a user computer. Figure 1 This is one of the flow charts of a traffic parameter prediction method provided in an embodiment of the present application. Figure 1 As shown, the method includes:
[0067] S101. Obtain static information and real-time dynamic information of a road network structure within a preset area.
[0068] In this embodiment, the road network structure within the preset area is used to characterize the layout and connection mode of traffic routes within the preset area in the geographic space. The static information of the road network structure includes: the number of entrances at each intersection in the road network structure, the number of lanes, the saturated flow of each lane, the length of the road section between the intersections, the number of lanes in each road section, the maximum speed limit information, etc., wherein the static information of the road network structure can be obtained by on-site investigation by the collection personnel or by viewing the intersection design drawings within the preset area, and the collected data from different sources are converted into a unified data format or measurement unit.
[0069] Optionally, the real-time dynamic information of the road network structure includes: road network dynamic information and vehicle dynamic information. The road network dynamic information includes: traffic signal schemes at each intersection and fixed detector data at each intersection, wherein the traffic signal schemes at each intersection include: time period, phase, phase sequence, cycle and green-to-signal ratio and other parameters of the traffic signal schemes at each intersection; the fixed detector data at each intersection is detected by fixed detectors installed at each intersection, and the fixed detectors may be: induction coils, video cameras, radars, etc. The fixed detector data include: maximum density, flow, saturation and other traffic data for each flow direction in the intersection.
[0070] It should be noted that after obtaining the fixed detector data, the fixed detector data needs to be preprocessed, including denoising, patching and other processing. The denoising method can use a filtering algorithm, such as median filtering or Gaussian filtering, to remove abnormal data caused by fixed detector failures, environmental factors and other reasons; the patching method can use a time series method to fill in missing data points, such as linear interpolation or time series prediction models, to ensure the integrity of the fixed detector data.
[0071] Vehicle dynamic information, i.e. ubiquitous network data, comes from the vehicle's own sensors and navigation system. Through wireless communication technology, such as V2X communication between the vehicle-mounted unit and the roadside unit, the real-time data of the vehicle is collected, including: the vehicle's speed, position, driving direction, etc., to obtain the vehicle dynamic information of the road network structure. In addition, the data preprocessing of vehicle dynamic information mainly includes speed and direction correction and position correction. For speed and direction correction, the abnormal speed or driving direction reported by individual vehicles is corrected based on the vehicle's historical data and the information of surrounding vehicles; for position correction, the error of the vehicle's GPS position data is corrected by using an autoregressive filter, such as a Kalman filter.
[0072] S102: Construct a spatiotemporal graph model of the road network structure based on static information and real-time dynamic information.
[0073] Specifically, the static information and real-time dynamic information of the road network structure are integrated to construct a spatiotemporal graph model of the road network structure. It is expressed as:
[0074]
[0075] in, V Represented as a set of nodes, Expressed as time t The edge set of .
[0076] S103, using the spatial feature extraction module in the traffic parameter prediction model to extract spatial features from the space-time graph model, and obtaining real-time spatial features of the road network structure.
[0077] Among them, the traffic parameter prediction model is used to make short-term predictions on traffic parameters within a preset area based on the static information of the road network structure within the preset area and the real-time dynamic information of the road network structure. The traffic parameters include: traffic flow at each intersection, queue length at each intersection, average speed of each section and other parameters.
[0078] The spatial feature extraction module is used to extract spatial features from the spatiotemporal graph model. Specifically, a graph convolution network (GCN) or a graph attention network (GATs) is used to capture the spatial dependencies of the spatiotemporal graph model. Taking the graph attention network as an example, for nodes i , through the attention coefficient To measure the neighbor nodes j For Node i Importance, attention coefficient It is expressed as:
[0079]
[0080] in, Represented as a learnable weight vector, Represented as node feature conversion weight, Expressed as edge feature conversion weight, Represented as a concatenation operation.
[0081] Since the graph attention network enables nodes to aggregate information from adjacent nodes, it can achieve spatial aggregation of features and obtain real-time spatial features of the road network structure. It is expressed as:
[0082]
[0083] in, Expressed as the attention coefficient, Represented as node feature conversion weight.
[0084] S104, using the time feature extraction module in the traffic parameter prediction model to extract time features from the space-time graph model, and obtaining real-time time features of the road network structure.
[0085] Among them, the time feature extraction module is used to extract time features from the space-time graph model. Specifically, since the node set of the space-time graph model contains real-time dynamic information of the road network structure, which is time series data, a sequence model is used to process the time series data of the nodes in the space-time graph model to capture dynamic changes in time. The sequence model can be a recurrent neural network (RNN), a long short-term memory network (LSTM), a gated recurrent unit (GRU), etc. Take LSTM as an example:
[0086]
[0087]
[0088]
[0089]
[0090] in, is the activation function, is the element-wise product, is the model weight matrix. The time features of the spatiotemporal graph model are extracted through LSTM to obtain the real-time time features of the road network structure.
[0091] S105. Using the prediction module in the traffic parameter prediction model, the traffic parameters of the road network structure are predicted according to the real-time spatial characteristics and the real-time temporal characteristics, so as to obtain the traffic parameters of the road network structure at a preset future time.
[0092] Specifically, the prediction module is used to predict traffic parameters for the road network structure according to the real-time spatial features and real-time temporal features. The prediction module consists of a normalization layer and a fully connected layer. By extracting and learning information from the real-time spatial features and real-time temporal features, it outputs several step-length prediction values of a preset number k of traffic parameters, which are expressed as: ,in, Indicates the road network structure Traffic parameters at the time, that is, Parameters such as the traffic volume at each intersection at the time, the queue length at each intersection, and the average speed of each road section.
[0093] In summary, the embodiment of the present application provides a traffic parameter prediction method, including: obtaining static information of the road network structure within a preset area and real-time dynamic information of the road network structure, constructing a spatiotemporal graph model of the road network structure according to the static information and the real-time dynamic information, and using the spatial feature extraction module in the traffic parameter prediction model to extract spatial features from the spatiotemporal graph model to obtain the real-time spatial features of the road network structure, using the temporal feature extraction module in the traffic parameter prediction model to extract temporal features from the spatiotemporal graph model to obtain the real-time temporal features of the road network structure, and finally using the prediction module in the traffic parameter prediction model to predict traffic parameters for the road network structure according to the real-time spatial features and the real-time temporal features, and obtain the traffic parameters of the road network structure at the preset future moment. In the method provided by the embodiment of the present application, by fusing the static information and the real-time dynamic information, a spatiotemporal graph model of the road network structure is constructed, the spatiotemporal fusion of multi-source data is realized, the disadvantage of predicting traffic parameters through a single data source is overcome, and the accuracy and real-time performance of traffic parameter prediction can be improved by predicting traffic parameters for the road network structure through the prediction module.
[0094] Based on a traffic parameter prediction method provided in the above embodiment, the embodiment of the present application also provides another possible implementation of the traffic parameter prediction method by constructing a spatiotemporal graph model of the road network structure. Figure 2 The second flow chart of a traffic parameter prediction method provided in the embodiment of the present application. Figure 2 As shown in the figure, a spatiotemporal graph model of the road network structure is constructed based on static information and real-time dynamic information, including:
[0095] S201. Construct a graph representation model of the road network structure based on static information and dynamic information of the road network.
[0096] In this embodiment, a graph representation model is constructed based on the static information of each intersection and the dynamic information of the road network, wherein the nodes in the graph representation model are used to represent key points in the road network structure, and the edges in the graph representation model are used to represent road segments between nodes.
[0097] S202. Obtain a feature set of each node in the graph representation model according to the dynamic and static attributes of each node in the road network structure.
[0098] S203: Obtain a feature set of each edge in the graph representation model according to the vehicle dynamic information and the static properties of the edge corresponding to each road section in the graph representation model.
[0099] S204: Construct a spatiotemporal graph model based on the feature set of each edge and the feature set of each node.
[0100] Specifically, each node in the graph representation model has dynamic and static attributes, including: intersection type (such as four-way intersection, T-junction, etc.), geographic coordinates, number and type of connected roads (such as main roads, secondary roads), number of import lanes, traffic control type (such as traffic lights, stop signs), signal control scheme, maximum flow density, flow flow, flow saturation, etc. The time granularity of each node attribute is periodic or 5-minute level, which is not limited here. By processing the dynamic and static attributes of each node, the feature set of each node in the graph representation model is obtained. V .
[0101] Then, by processing the vehicle dynamic information and combining it with the static attributes of the corresponding edges of each road section, the feature set of each edge in the graph representation model is obtained. Finally, according to the feature set of each edge V and the feature set of each node , build a spatiotemporal graph model .
[0102] In the method provided in the embodiment of the present application, a graph representation model of the road network structure is constructed based on static information and dynamic information of the road network. The nodes in the graph representation model are used to represent key points in the road network structure, and the edges in the graph representation model are used to represent road segments between nodes. According to the dynamic and static properties of each node in the road network structure, the feature set of each node in the graph representation model is obtained. According to the vehicle dynamic information and the static properties of the edges corresponding to each road segment in the graph representation model, the feature set of each edge in the graph representation model is obtained. Finally, a spatiotemporal graph model is constructed based on the feature set of each edge and the feature set of each node. The fusion of static information and real-time dynamic information is realized. The spatiotemporal graph model integrates the vehicle dynamic information on the vehicle side, the static information on the road side, and the road network dynamic information, so as to avoid prediction errors caused by only considering the vehicle dynamic information on the vehicle side or only considering the static information on the road side and the road network dynamic information when predicting traffic parameters.
[0103] Based on the above-mentioned embodiment providing another traffic parameter prediction method by constructing a spatiotemporal graph model of a road network structure, the embodiment of the present application further provides another possible implementation of the traffic parameter prediction method by obtaining a feature set of each node. Figure 3 The third flow chart of a traffic parameter prediction method provided in the embodiment of the present application. Figure 3 As shown in Figure 1, according to the dynamic and static properties of each node in the road network structure, the feature set of each node in the graph representation model is obtained, including:
[0104] S301 , standardize the dynamic and static attributes of each node to obtain standardized characteristic parameters of each node.
[0105] S302: Perform feature selection on the standardized feature parameters of each node to obtain a feature set of each node in the graph representation model.
[0106] In this embodiment, if there is categorical data (such as intersection type) in the dynamic and static attributes of each node, the method of one-hot encoding or embedding vector is used to convert it into numerical data, so as to realize the standardization of the dynamic and static attributes and obtain the standardized parameters of each node. The standardized processing is expressed as:
[0107]
[0108] in, is the characteristic parameter of each node, and are the mean and variance of the characteristic parameter distribution, respectively. is the standardized feature parameter.
[0109] For the feature selection of standardized feature parameters of each node, algorithms such as autoencoder, t-distributed Stochastic Neighbor Embedding (t-SNE) or Uniform Manifold Approximation and Projection (UMAP) are used to reduce the dimension and convert high-dimensional features into low-dimensional continuous vectors. , reducing the redundant information contained in the feature vector, and finally obtaining the feature set of each node in the graph representation model V .
[0110] In the method provided in the embodiment of the present application, the dynamic and static attributes of each node are standardized to obtain standardized feature parameters of each node, and then feature selection is performed on the standardized feature parameters of each node to obtain a feature set of each node in the graph representation model. The dynamic and static attributes of each node are embedded to obtain standardized feature parameters of each node and a feature set of each node in the graph representation model.
[0111] The embodiment of the present application also provides another possible implementation of the traffic parameter prediction method by obtaining a feature set of each edge. Figure 4 The fourth flow chart of a traffic parameter prediction method provided in the embodiment of the present application. Figure 4 As shown in FIG, based on the vehicle dynamic information and the static properties of the edges corresponding to each road section in the graph representation model, the feature set of each edge in the graph representation model is obtained, including:
[0112] S401. Obtain traffic dynamic characteristics on each road section in the road network structure according to vehicle dynamic information.
[0113] S402: Obtain a feature set of each edge in the graph representation model according to the dynamic characteristics of traffic on each road segment and the static properties of the edge corresponding to each road segment in the graph representation model.
[0114] In this embodiment, the dynamic characteristics of traffic on each road section in the road network structure are obtained by processing the vehicle dynamic information. Due to the randomness and discontinuity of the distribution of connected vehicles on each road section, the vehicle dynamic information is usually a spatial sparse representation of the road section state. The road section state is identified by utilizing the real-time time series data provided by the ubiquitous connected vehicle, and the dynamic characteristics of traffic on each road section in the road network structure are obtained. The dynamic characteristics of traffic include: dynamic characteristics such as traffic speed, density, and queue length of each road section.
[0115] Specifically, according to the dynamic characteristics of traffic on each road section and combined with the corresponding static attributes of each road section, the feature set of each edge in the graph representation model is obtained, wherein the static attributes corresponding to each road section include: road section length, number of lanes, speed limit, lane width, section type (expressway, main road, branch road, etc.) and traffic direction (one-way, two-way), etc.
[0116] In the method provided in the embodiment of the present application, the dynamic characteristics of traffic on each road section in the road network structure are obtained according to the dynamic information of the vehicle, and the feature set of each edge in the graph representation model is obtained according to the dynamic characteristics of traffic on each road section and the static properties of the edges corresponding to each road section in the graph representation model. The dynamic characteristics of traffic on each road section and the feature set of each edge in the graph representation model are obtained by embedding the dynamic information of the vehicle on each edge.
[0117] Based on the above-mentioned embodiment of the present application providing another traffic parameter prediction method by obtaining the feature set of each edge, the embodiment of the present application also provides another possible implementation method of the traffic parameter prediction method by obtaining the dynamic characteristics of traffic on each road section. Figure 5 FIG5 is a flow chart of a traffic parameter prediction method provided in an embodiment of the present application. Figure 5 As shown, according to the vehicle dynamic information, the traffic dynamic characteristics on each road section in the road network structure are obtained, including:
[0118] S501. Determine a road section position of a vehicle trajectory point in a road network structure according to the vehicle trajectory point in the vehicle dynamic information.
[0119] In this embodiment, the vehicle dynamic information records the latitude and longitude positions of the vehicle's spatial position, but does not have road information. The hidden Markov model (HMM) method is used for map matching to determine the road section position of the vehicle trajectory point in the vehicle dynamic information in the road network structure. The hidden Markov model is described by five basic elements, namely, M observation states (K), N hidden states (S), the transition probability matrix A between each hidden state, the observation state transition probability matrix B that is observable at each moment and is affected by the hidden state, and the initial state probability matrix.
[0120] S502: Establish a vehicle information feature sequence according to the vehicle speed and direction and the road section position in the vehicle dynamic information.
[0121] S503: Obtain traffic dynamic characteristics according to the vehicle information feature sequence.
[0122] Specifically, the vehicle dynamic information of the vehicle is converted into the road section and road section position of the vehicle, and combined with the vehicle's speed and direction, a vehicle information feature sequence is established. It is expressed as:
[0123]
[0124]
[0125]
[0126] in, Represented as the input weight matrix of the road segment information vector, represents the total dimension of the output feature encoding, Represents the dimension index and position encoding of each feature Able to represent the relative position of features.
[0127] Then the vehicle information feature sequence is processed to obtain the traffic dynamic characteristics of each road section.
[0128] In the method provided in the embodiment of the present application, the section position of the vehicle trajectory point in the road network structure is determined based on the vehicle trajectory point in the vehicle dynamic information, and a vehicle information feature sequence is established based on the vehicle driving speed and direction in the vehicle dynamic information, as well as the section position. Finally, based on the vehicle information feature sequence, the traffic dynamic characteristics are obtained, thereby realizing the conversion of the vehicle dynamic information of the vehicle into the road section and section position of the vehicle, and obtaining the traffic dynamic characteristics of each section.
[0129] The embodiment of the present application also provides another possible implementation of the traffic parameter prediction method by determining the road section position of the vehicle trajectory point in the road network structure. Figure 6 The sixth flow chart of a traffic parameter prediction method provided in the embodiment of the present application. Figure 6 As shown, according to the vehicle trajectory point in the vehicle dynamic information, determining the section position of the vehicle trajectory point in the road network structure includes:
[0130] S601. According to the vehicle trajectory points in the vehicle dynamic information, the semantic understanding module in the traffic parameter prediction model is used to process and determine the distribution probability of each vehicle trajectory point in each road section in the road network structure and the matching probability of adjacent vehicle trajectory points in each road section in the road network structure.
[0131] In this embodiment, a hidden Markov model is used to determine the distribution probability of each vehicle trajectory point in each road section in the road network structure. It is expressed as:
[0132]
[0133] in, Represented as the latitude and longitude coordinates of the current vehicle trajectory point, Expressed as i road sections, Represented as road segment i The distance from the current vehicle track point The nearest point, Represented as vehicle trajectory points and The distance between Expressed as the standard deviation of the vehicle trajectory points.
[0134] The matching probability of adjacent vehicle trajectory points in each road section in the road network structure It is expressed as:
[0135]
[0136] in, Represented as the latitude and longitude coordinates of the next vehicle trajectory point, Expressed as j road sections, For road section j The upper distance to the next vehicle trajectory point nearest point; Represented as vehicle trajectory points Candidate matching segments, Represented as vehicle trajectory points Candidate matching segments, Represented as the nearest point and The path distance between them.
[0137] S602: Determine the road section position of the vehicle trajectory point in the road network structure according to the distribution probability and the matching probability.
[0138] Specifically, the Viterbi dynamic programming algorithm is used to process the distribution probability and the matching probability, solve the road section position of the vehicle trajectory point in the road network structure, and determine the optimal path of the vehicle.
[0139] In the method provided in the embodiment of the present application, the semantic understanding module in the traffic parameter prediction model is used to process the vehicle trajectory points in the vehicle dynamic information, determine the distribution probability of each vehicle trajectory point in each road section in the road network structure, and the matching probability of adjacent vehicle trajectory points in each road section in the road network structure, and then determine the road section position of the vehicle trajectory point in the road network structure based on the distribution probability and matching probability. In this way, the vehicle dynamic information of the vehicle is converted into the road section and road section position where the vehicle is located.
[0140] The embodiment of the present application also provides another possible implementation of the traffic parameter prediction method by acquiring traffic dynamic characteristics. Figure 7 FIG7 is a flow chart of a traffic parameter prediction method provided in an embodiment of the present application. Figure 7 As shown, according to the vehicle information feature sequence, the traffic dynamic features are obtained, including:
[0141] S701. Extract feature vectors from a vehicle information feature sequence to obtain a road section information vector corresponding to the vehicle information feature sequence.
[0142] S702: Use a preset attention mechanism to process the road section information vector to obtain traffic dynamic features.
[0143] In this embodiment, referring to the above step S502, when obtaining the vehicle information feature sequence, the road section information vector Extract.
[0144] Among them, the core of the preset attention mechanism consists of three matrices Query: 、Key: , and Value: The feature dimensions are , and .
[0145] The preset attention mechanism realizes the distribution of attention through dot product operation, which associates the information of physical sign changes over a longer distance, and is defined as:
[0146]
[0147] in, To analyze the similarity of features at different locations, is the scaling factor used for normalization. After softmax normalization, the similarity weight is obtained and compared with the node set Weighted summation is performed to extract enhanced features, and finally two linear fully connected layers are used to output dynamic features of traffic, such as speed, density, and queuing.
[0148] In the method provided in the embodiment of the present application, feature vectors are extracted from the vehicle information feature sequence to obtain the road section information vector corresponding to the vehicle information feature sequence, and then the road section information vector is processed using a preset attention mechanism to obtain the traffic dynamic features, thereby achieving the acquisition of the traffic dynamic features of each road section.
[0149] The embodiment of the present application also provides another possible implementation of the traffic parameter prediction method. Figure 8 FIG8 is a flow chart of a traffic parameter prediction method provided in an embodiment of the present application. Figure 8 As shown in FIG. 1 , the traffic parameter prediction model is a model trained in the following manner:
[0150] S801. Obtain static information of the road network structure within a preset area and dynamic information of the road network structure at multiple historical moments.
[0151] S802: Based on the static information and the dynamic information of multiple historical moments, respectively construct a spatiotemporal graph model of the road network structure at multiple historical moments.
[0152] S803: Using the initial spatial feature extraction module in the initial traffic parameter prediction model, extract the spatial features of the space-time graph model at the previous historical moment to obtain the spatial features of the road network structure at the previous historical moment.
[0153] S804: Using the initial time feature extraction module in the initial traffic parameter prediction model, extract the time features of the space-time graph model at the previous historical moment to obtain the time features of the road network structure at the previous historical moment.
[0154] S805. Using the initial prediction module in the initial traffic parameter prediction model, traffic parameter prediction is performed on the road network structure according to the spatial characteristics of the previous historical moment and the temporal characteristics of the previous historical moment, so as to obtain traffic prediction parameters of the road network structure at the next historical moment.
[0155] In this embodiment, steps S801-S805 are similar to the contents described in steps S101-S105, except that steps S801-S805 predict the traffic prediction parameters of the next historical moment based on the space-time graph model of the previous historical moment, while steps S101-S105 predict the traffic parameters of the preset future moment based on the space-time graph model currently constructed in real time.
[0156] S806. Calculate the model loss function value according to the traffic prediction parameters at the next historical moment and the dynamic information at the next historical moment.
[0157] S807. According to the model loss function value, the parameters of the initial spatial feature extraction module, the initial temporal feature extraction module and the initial prediction module are adjusted to obtain a traffic parameter prediction model.
[0158] Specifically, the loss function is expressed as:
[0159]
[0160] in, is the weight coefficient of different step length prediction values, are the weight coefficients of different parameters, Represented as the next historical moment ( ) traffic prediction parameters, Represented as the next historical moment ( )’s dynamic information and calculates the model loss function value.
[0161] According to the model loss function value, the parameters of the initial spatial feature extraction module, the initial temporal feature extraction module and the initial prediction module are adjusted, and the parameters of the initial semantic understanding module in the initial traffic parameter prediction model are adjusted, and finally the traffic parameter prediction model is obtained.
[0162] In the method provided in the embodiment of the present application, by acquiring static information of the road network structure within a preset area and dynamic information of the road network structure at multiple historical moments, spatiotemporal graph models of the road network structure at multiple historical moments are respectively constructed according to the static information and the dynamic information at multiple historical moments, the initial spatial feature extraction module in the initial traffic parameter prediction model is used to extract spatial features of the spatiotemporal graph model at the previous historical moment to obtain the spatial features of the road network structure at the previous historical moment, the initial time feature extraction module in the initial traffic parameter prediction model is used to extract time features of the spatiotemporal graph model at the previous historical moment to obtain the time features of the road network structure at the previous historical moment, the initial prediction module in the initial traffic parameter prediction model is used to predict traffic parameters of the road network structure according to the spatial features of the previous historical moment and the time features of the previous historical moment to obtain the traffic prediction parameters of the road network structure at the next historical moment, the model loss function is calculated according to the traffic prediction parameters at the next historical moment and the dynamic information at the next historical moment, and the parameters of the initial spatial feature extraction module, the initial time feature extraction module and the initial prediction module are adjusted according to the model loss function value to obtain the traffic parameter prediction model. By training the traffic parameter prediction model, the accuracy of traffic parameter prediction can be improved.
[0163] The following is a corresponding explanation of the traffic parameter prediction device and computer equipment provided by any of the above embodiments of the present application. Its specific implementation process and the technical effects produced are the same as those of the corresponding method embodiments mentioned above. For the sake of brief description, the parts not mentioned in this embodiment can refer to the corresponding contents in the method embodiments.
[0164] Fig. 9 This is a functional module diagram of a traffic parameter prediction device provided in an embodiment of the present application. Fig. 9 As shown, the traffic parameter prediction device 100 includes:
[0165] An acquisition module 110 is used to acquire static information of a road network structure within a preset area and real-time dynamic information of the road network structure;
[0166] A construction module 120, configured to construct a spatiotemporal graph model of the road network structure according to the static information and the real-time dynamic information;
[0167] An extraction module 130 is used to extract spatial features from the spatiotemporal graph model using a spatial feature extraction module in a traffic parameter prediction model to obtain real-time spatial features of the road network structure;
[0168] The extraction module 130 is further used to extract time features from the space-time graph model using the time feature extraction module in the traffic parameter prediction model to obtain the real-time time features of the road network structure;
[0169] The prediction module 140 is used to use the prediction module in the traffic parameter prediction model to predict the traffic parameters of the road network structure according to the real-time spatial characteristics and the real-time time characteristics, so as to obtain the traffic parameters of the road network structure at a preset future time.
[0170] Optionally, construction module 120 is used to construct a graph representation model of the road network structure based on the static information and the road network dynamic information, wherein the nodes in the graph representation model are used to represent key points in the road network structure, and the edges in the graph representation model are used to represent road segments between nodes; a feature set of each node in the graph representation model is obtained based on the dynamic and static properties of each node in the road network structure; a feature set of each edge in the graph representation model is obtained based on the vehicle dynamic information and the static properties of the edges corresponding to each road segment in the graph representation model; and the spatiotemporal graph model is constructed based on the feature sets of each edge and the feature sets of each node.
[0171] Optionally, the construction module 120 is used to standardize the dynamic and static attributes of each node to obtain standardized feature parameters of each node; perform feature selection on the standardized feature parameters of each node to obtain a feature set of each node in the graph representation model.
[0172] Optionally, a construction module 120 is used to obtain the dynamic characteristics of traffic on each road section in the road network structure based on the vehicle dynamic information; based on the traffic parameter prediction device 100 on each road section, it includes: the dynamic characteristics of traffic and the static properties of the edges corresponding to each road section in the graph representation model, to obtain a feature set of each edge in the graph representation model.
[0173] Optionally, construction module 120 is used to determine the section position of the vehicle trajectory point in the road network structure based on the vehicle trajectory point in the vehicle dynamic information; establish a vehicle information feature sequence based on the vehicle driving speed and direction in the vehicle dynamic information, and the section position; and obtain the traffic dynamic characteristics based on the vehicle information feature sequence.
[0174] Optionally, a construction module 120 is used to process the vehicle trajectory points in the vehicle dynamic information using the semantic understanding module in the traffic parameter prediction model to determine the distribution probability of each vehicle trajectory point in each road section in the road network structure, and the matching probability of adjacent vehicle trajectory points in each road section in the road network structure; and determine the section position of the vehicle trajectory point in the road network structure based on the distribution probability and the matching probability.
[0175] Optionally, a construction module 120 is used to extract feature vectors from the vehicle information feature sequence to obtain a road section information vector corresponding to the vehicle information feature sequence; and process the road section information vector using a preset attention mechanism to obtain the traffic dynamic feature.
[0176] Optionally, the traffic parameter prediction device 100 further includes:
[0177] A training module is used to obtain static information of the road network structure within the preset area and dynamic information of the road network structure at multiple historical moments; based on the static information and the dynamic information at multiple historical moments, respectively construct the spatiotemporal graph models of the road network structure at the multiple historical moments; use the initial spatial feature extraction module in the initial traffic parameter prediction model to extract spatial features of the spatiotemporal graph model at the previous historical moment to obtain the spatial features of the road network structure at the previous historical moment; use the initial time feature extraction module in the initial traffic parameter prediction model to extract time features of the spatiotemporal graph model at the previous historical moment to obtain the The method comprises the following steps: determining a time characteristic of the road network structure at the previous historical moment; using an initial prediction module in the initial traffic parameter prediction model to predict traffic parameters of the road network structure according to the spatial characteristics of the previous historical moment and the time characteristics of the previous historical moment, so as to obtain traffic prediction parameters of the road network structure at the next historical moment; calculating a model loss function value according to the traffic prediction parameters at the next historical moment and the dynamic information at the next historical moment; and adjusting parameters of the initial spatial feature extraction module, the initial time feature extraction module and the initial prediction module according to the model loss function value, so as to obtain the traffic parameter prediction model.
[0178] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0179] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors, or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0180] Fig.10 Schematic diagram of a computer device provided in an embodiment of the present application, which can be used for traffic parameter prediction. Fig.10 As shown, the computer device 200 includes: a processor 210 , a storage medium 220 , and a bus 230 .
[0181] The storage medium 220 stores machine-readable instructions executable by the processor 210. When the computer device is running, the processor 210 communicates with the storage medium 220 via the bus 230, and the processor 210 executes the machine-readable instructions to perform the steps of the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.
[0182] Optionally, the present application further provides a storage medium 220, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method embodiment are executed. The specific implementation method and technical effect are similar and will not be repeated here.
[0183] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0184] 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, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0185] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0186] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, referred to as: ROM), random access memory (English: Random Access Memory, referred to as: RAM), disk or optical disk and other media that can store program codes.
[0187] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of 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 parameter prediction method, It is characterized in that include: Acquire static information of the road network structure within a preset area and real-time dynamic information of the road network structure; Constructing a spatiotemporal graph model of the road network structure according to the static information and the real-time dynamic information; Using the spatial feature extraction module in the traffic parameter prediction model, extracting spatial features from the spatiotemporal graph model to obtain real-time spatial features of the road network structure; Using the time feature extraction module in the traffic parameter prediction model, extracting time features from the space-time graph model to obtain real-time time features of the road network structure; Using the prediction module in the traffic parameter prediction model, traffic parameter prediction is performed on the road network structure according to the real-time spatial characteristics and the real-time time characteristics to obtain the traffic parameters of the road network structure at a preset future time; The real-time dynamic information includes: road network dynamic information and vehicle dynamic information; the spatiotemporal graph model of the road network structure is constructed based on the static information and the real-time dynamic information, including: According to the static information and the road network dynamic information, a graph representation model of the road network structure is constructed, wherein nodes in the graph representation model are used to represent key points in the road network structure, and edges in the graph representation model are used to represent road segments between nodes; the road network dynamic information includes: traffic signal schemes at each intersection in the road network structure and fixed detector data at each intersection; and the vehicle dynamic information includes: speed, position, and driving direction of the vehicle; According to the dynamic and static properties of each node in the road network structure, a feature set of each node in the graph representation model is obtained; Obtaining a feature set of each edge in the graph representation model according to the vehicle dynamic information and the static properties of the edge corresponding to each road section in the graph representation model; Constructing the spatiotemporal graph model according to the feature set of each edge and the feature set of each node; The step of obtaining a feature set of each edge in the graph representation model according to the vehicle dynamic information and the static properties of the edge corresponding to each road section in the graph representation model includes: According to the vehicle dynamic information, the traffic dynamic characteristics on each road section in the road network structure are obtained; According to the dynamic characteristics of traffic on each road section and the static properties of the edges corresponding to each road section in the graph representation model, a feature set of each edge in the graph representation model is obtained; The step of obtaining the traffic dynamic characteristics of each road section in the road network structure according to the vehicle dynamic information includes: Determining the road section position of the vehicle trajectory point in the road network structure according to the vehicle trajectory point in the vehicle dynamic information; Establishing a vehicle information feature sequence according to the vehicle speed and direction in the vehicle dynamic information and the road section position; Acquiring the traffic dynamic characteristics according to the vehicle information feature sequence; The vehicle information feature sequence is expressed as: in, Represented as the vehicle information feature sequence, Represented as the input weight matrix of the road segment information vector, represents the total dimension of the output feature encoding, Represents the dimension index and position encoding of each feature Indicates the relative position of features.
2. The method according to claim 1, It is characterized in that The feature set of each node in the graph representation model is obtained according to the dynamic and static attributes of each node in the road network structure, including: Standardizing the dynamic and static attributes of each node to obtain standardized characteristic parameters of each node; Feature selection is performed on the standardized feature parameters of each node to obtain a feature set of each node in the graph representation model.
3. The method according to claim 1, It is characterized in that The determining, based on the vehicle trajectory point in the vehicle dynamic information, the road section position of the vehicle trajectory point in the road network structure comprises: According to the vehicle trajectory points in the vehicle dynamic information, the semantic understanding module in the traffic parameter prediction model is used for processing to determine the distribution probability of each vehicle trajectory point in each road section in the road network structure, and the matching probability of adjacent vehicle trajectory points in each road section in the road network structure; According to the distribution probability and the matching probability, the road section position of the vehicle trajectory point in the road network structure is determined.
4. The method according to claim 1, It is characterized in that The step of obtaining the traffic dynamic feature according to the vehicle information feature sequence includes: Extracting feature vectors from the vehicle information feature sequence to obtain a road section information vector corresponding to the vehicle information feature sequence; The road section information vector is processed using a preset attention mechanism to obtain the traffic dynamic characteristics.
5. The method according to claim 1, It is characterized in that The traffic parameter prediction model is a model trained in the following way: Acquire static information of the road network structure within the preset area and dynamic information of the road network structure at multiple historical moments; According to the static information and the dynamic information of the multiple historical moments, respectively constructing the spatiotemporal graph models of the road network structure at the multiple historical moments; Using the initial spatial feature extraction module in the initial traffic parameter prediction model, extracting spatial features from the space-time graph model at the previous historical moment, and obtaining the spatial features of the road network structure at the previous historical moment; Using the initial time feature extraction module in the initial traffic parameter prediction model, extracting the time features of the space-time graph model at the previous historical moment, and obtaining the time features of the road network structure at the previous historical moment; Using the initial prediction module in the initial traffic parameter prediction model, traffic parameter prediction is performed on the road network structure according to the spatial characteristics of the previous historical moment and the time characteristics of the previous historical moment, so as to obtain traffic prediction parameters of the road network structure at the next historical moment; Calculating a model loss function value according to the traffic prediction parameters at the next historical moment and the dynamic information at the next historical moment; According to the model loss function value, the parameters of the initial spatial feature extraction module, the initial temporal feature extraction module and the initial prediction module are adjusted to obtain the traffic parameter prediction model.
6. A traffic parameter prediction device, It is characterized in that include: An acquisition module, used to acquire static information of a road network structure within a preset area and real-time dynamic information of the road network structure; A construction module, used to construct a spatiotemporal graph model of the road network structure according to the static information and the real-time dynamic information; An extraction module, used to extract spatial features from the spatiotemporal graph model using a spatial feature extraction module in a traffic parameter prediction model, to obtain real-time spatial features of the road network structure; The extraction module is further used to extract time features from the space-time graph model using the time feature extraction module in the traffic parameter prediction model to obtain real-time time features of the road network structure; A prediction module, used to use the prediction module in the traffic parameter prediction model to predict the traffic parameters of the road network structure according to the real-time spatial characteristics and the real-time time characteristics, and obtain the traffic parameters of the road network structure at a preset future time; The real-time dynamic information includes: road network dynamic information, and vehicle dynamic information; the construction module is also used to construct a graph representation model of the road network structure according to the static information and the road network dynamic information, the nodes in the graph representation model are used to represent key points in the road network structure, and the edges in the graph representation model are used to represent road segments between nodes; the road network dynamic information includes: traffic signal schemes at each intersection in the road network structure and fixed detector data at each intersection, and the vehicle dynamic information includes: vehicle speed, position, and driving direction; according to the dynamic and static properties of each node in the road network structure, a feature set of each node in the graph representation model is obtained; according to the vehicle dynamic information and the static properties of the edges corresponding to each road segment in the graph representation model, a feature set of each edge in the graph representation model is obtained; according to the feature set of each edge and the feature set of each node, the spatiotemporal graph model is constructed; The construction module is further used to obtain the traffic dynamic characteristics of each road section in the road network structure according to the vehicle dynamic information; obtain the feature set of each edge in the graph representation model according to the traffic dynamic characteristics of each road section and the static properties of the edges corresponding to each road section in the graph representation model; The construction module is further used to determine the road section position of the vehicle trajectory point in the road network structure according to the vehicle trajectory point in the vehicle dynamic information; establish a vehicle information feature sequence according to the vehicle speed and direction in the vehicle dynamic information and the road section position; obtain the traffic dynamic feature according to the vehicle information feature sequence; the vehicle information feature sequence is expressed as: in, Represented as the vehicle information feature sequence, Represented as the input weight matrix of the road segment information vector, represents the total dimension of the output feature encoding, Represents the dimension index and position encoding of each feature Indicates the relative position of features.
7. A computer device, It is characterized in that include: A processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, and when the computer device is running, the processor and the storage medium communicate through the bus, and the processor executes the program instructions to perform the steps of the traffic parameter prediction method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
GraphSAGE traffic network data prediction method based on fusion features
CN112562312A
Distributed active equilibrium management and control method considering road network capacity constraint
CN113706862A
Time length prediction model training and traffic flow speed estimation method, device and equipment
CN116386323A
Expressway flow prediction method and system based on multi-source data fusion
CN116740959A
Intelligent traffic flow analysis method based on Beidou data
CN117935561A
