Multi-modal vehicle trajectory prediction method for urban multi-type traffic participants based on graph traversal strategy
Through a graph traversal strategy method, considering the characteristics of multiple types of traffic participants and obstacles, using GRU and condensation hierarchical clustering algorithm, the uncertainty problem of vehicle trajectory prediction in complex urban traffic scenarios is solved, and the prediction accuracy and Security and reduce computing power requirements.
Patent Information
- Application Number
- CN202410942587.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-11-22
AI Technical Summary
In complex urban traffic scenarios, it is difficult for the prior art to effectively consider the impact of multiple types of traffic participants on vehicle trajectory prediction accuracy, especially the impact of obstacles on trajectory prediction, and there is a high degree of uncertainty and dynamicity in vehicle future trajectory prediction.
Using a graph traversal strategy method, GRU encodes the characteristics of multiple traffic participants, uses attention weighting to obtain interactive features, and applies a condensation hierarchical clustering algorithm to aggregate lane node path information to generate multimodal trajectory predictions to improve predictions accuracy and robustness.
The accuracy and safety of vehicle trajectory prediction are improved, and the computing power requirement is reduced. The average time of the model predicts samples on the verification set is improved, showing high accuracy and generalization ability.
Smart Images

Figure CN119007431A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of multimodal vehicle trajectory prediction, and in particular relates to a multimodal vehicle trajectory prediction method for urban multi-type traffic participants based on a graph traversal strategy. Background Art
[0002] The rapid development of intelligent connected vehicle technology, including autonomous driving technology, cloud computing and big data analysis, has provided a solid technical foundation for achieving highly automated and intelligent driving. With the rapid growth of the market share of intelligent connected vehicles, the traffic flow mode of mixed intelligent connected vehicles and traditional manually driven vehicles has gradually become the mainstream of urban traffic roads. In this traffic flow mode, intelligent connected vehicles need to have the ability to predict the future trajectories of surrounding vehicles, improve the accuracy of trajectory prediction and make corresponding interactive decisions. For the problem of vehicle trajectory prediction, high-precision prediction is a key factor in improving the safety of interactive decision-making of autonomous driving vehicles. Thanks to the continuous iteration of deep learning technology, data-driven vehicle trajectory prediction models have been rapidly developed, greatly improving the accuracy of vehicle trajectory prediction. However, in complex urban traffic roads, vehicle future trajectory prediction faces two major challenges: one is the diversity of traffic participant categories in urban scenes, such as cars, bicycles, pedestrians, etc., whose driving intentions and behavior patterns are significantly different; the other is the high dynamics and uncertainty of trajectory prediction, including environmental prediction and driving behavior uncertainty, as well as interaction and game between multiple vehicles. Therefore, in the new mixed traffic flow in the city, it is worth studying the multimodal prediction problem that considers uncertainty and multiple types of traffic participants at the same time.
[0003] In recent years, in the research of trajectory prediction models based on data-driven, the diversity of driving styles of multiple types of traffic participants has been considered by scholars. For example, Chen Ruixiang et al. analyzed the characteristic differences in traffic behaviors of three types of traffic participants: motor vehicles, non-motor vehicles, and pedestrians. Huang Zhiyu et al. introduced a multifunctional behavior diffusion framework to simulate interactive scenarios with multiple types of traffic participants, generating more realistic and controllable traffic behaviors in traffic simulation. Jing Rongrong considered the interaction between vehicles and other surrounding traffic participants to improve the accuracy of trajectory prediction. However, most of the existing studies consider the interaction between vehicles and pedestrians, and fail to study and analyze the impact of more types of traffic participants, including obstacles, on the accuracy of trajectory prediction. Summary of the invention
[0004] The purpose of the present invention is to propose a multimodal vehicle trajectory prediction method for multi-type urban traffic participants based on a graph traversal strategy, aiming to explore the problem of multimodal vehicle trajectory prediction considering uncertainty factors and multi-type traffic participants in the context of new urban mixed traffic flow. The model uses deep learning technology to make full use of historical trajectory data and real-time environmental information, and outputs multimodal trajectories to improve the accuracy and robustness of vehicle trajectory prediction. The main contributions of the present invention are: (1) Multimodal prediction considering multi-type traffic participants. GRU is used to encode and classify the characteristics of multiple types of traffic participants in complex traffic scenes, and different feature representations such as surrounding vehicles, pedestrians, and obstacles are obtained, and then different attention weights are used to obtain interactive features. (2) In view of the high uncertainty of the predicted trajectory, a trajectory clustering algorithm based on agglomerative hierarchical clustering is applied to study the multimodal trajectory output. Lane node path information is selectively aggregated according to the graph traversal strategy, and finally, according to the prediction probabilities corresponding to different trajectories themselves, the agglomerative hierarchical clustering method is used to determine the k predicted trajectories output by the model, thereby improving the accuracy and safety of the prediction. (3) The computing power required by the present invention is relatively low. Compared with other similar models, the model performance and the time required for model training are not much different, but the average time for the model to predict trajectory samples on the validation set has improved.
[0005] To achieve the above object, the present invention provides a method for predicting multi-modal vehicle trajectories of multi-type traffic participants in an urban area based on a graph traversal strategy, comprising:
[0006] Obtain information data of the target vehicle, surrounding traffic participants and lane nodes within a preset time period;
[0007] The information data is input into a preset trajectory prediction model to obtain the final predicted trajectory of the target vehicle:
[0008] Extracting and aggregating features of the information data to obtain lane node aggregation features;
[0009] Performing graph traversal strategy processing on the lane node aggregation features to obtain the future node trajectory distribution of the vehicle;
[0010] Multimodal prediction is performed on the future node trajectory distribution of the vehicle to obtain the final predicted trajectory of the target vehicle.
[0011] Optionally, performing feature extraction and aggregation on the information data to obtain lane node aggregation features includes:
[0012] Extract feature vectors of information data of target vehicle, surrounding traffic participants and lane nodes within a preset time period;
[0013] The feature vector is passed through the activation function ReLU and sent to the GRU to obtain the corresponding time series feature vector output; in, represents the hidden state of the target vehicle after feature encoding, represents the hidden state of the surrounding vehicles after feature encoding, Represents the hidden state of the lane node after feature encoding;
[0014] Through the fully connected layer with residual module as the query Q, The key values K and V are obtained through the fully connected layer with the residual module, and the output of the attention layer is concatenated with the information data of the lane node and sent to GAT. The attention weighted representation of each node on the adjacent node features is performed to obtain the final lane node aggregation features.
[0015] Optionally, the feature vectors of the information data of the target vehicle and lane node within the preset time period are:
[0016]
[0017] Among them, the vector S subscript -t h Indicates the past time period of the historical trajectory, -t h = 0 represents the current time point, the superscript i in the vector S represents different traffic participants, i = 0 represents the target vehicle, θ represents the category of traffic participants, and Represents the position information in the reference coordinate system, Represents acceleration information, Indicates the yaw angle information, Represents traffic participant category information.
[0018] Optionally, the graph traversal strategy includes:
[0019] By traversing all the different nodes that the vehicle can pass through in the future, MLP and softmax are used to output the discretized probability representation of the vehicle passing through different nodes at different times in the future, the driving behavior taken by the vehicle with a preset probability is obtained, and then the future node trajectory distribution of the vehicle is obtained.
[0020] Optionally, performing multimodal prediction on the future node trajectory distribution of the vehicle to obtain the final predicted trajectory of the target vehicle includes:
[0021] The future node trajectory distribution of the vehicle is processed by a multi-head attention mechanism to obtain new node features; the sampled node trajectory distribution is used as K and V, and the historical trajectory of the target vehicle is encoded by GRU as Q, and the multi-head attention mechanism is used to obtain new node features;
[0022] The new node feature is concatenated with the feature code of the concatenated target vehicle and a preset variable z, wherein the preset variable z is randomly generated by a standard normal distribution and is used to capture the longitudinal variability of the vehicle's future motion (acceleration, braking, etc.), and then the concatenated features are input into the MLP to obtain a preset number of trajectory prediction outputs in the future time;
[0023] The preset number of trajectory prediction outputs are processed by using an agglomerative hierarchical clustering method to obtain k final predicted trajectories of the target vehicle.
[0024] Optionally, using an agglomerative hierarchical clustering method, processing the preset number of trajectory prediction outputs includes:
[0025] Step 1, preset the number of clusters k;
[0026] Step 2: Initialize the clustering cluster of a single trajectory, that is, the preset number of clustering clusters;
[0027] Step 3: Initialize the cluster distance matrix according to the Ward distance, and merge the two clusters closest to the distance matrix into one;
[0028] Step 4: Determine whether the current clustering cluster has reached the preset clustering cluster number k. If it is still greater than the preset clustering cluster number k, go to step 2, otherwise stop the iteration.
[0029] Optionally, the prediction method further includes: setting a loss function to perform fitting training on the trajectory prediction model;
[0030] The loss function includes:
[0031]
[0032] Where L1 represents the cross entropy loss function, which is used to reduce the error between the lane node sequence predicted by the graph traversal strategy and the actual lane node sequence, (u, v) represents different lane nodes, and E gt represents the ground truth, ρ represents the probability of the vehicle traversing from the starting lane node u to the lane node v, L2 represents the minimum average displacement loss function, which is used to reduce the error between the predicted trajectory and the true trajectory, k represents the number of predicted trajectories, and t f represents the predicted future time period, represents the sampling path sequence obtained by the graph traversal strategy module, represents the ground truth sequence of future trajectories.
[0033] The present invention has the following beneficial effects:
[0034] The present invention proposes a trajectory prediction method based on a graph traversal strategy, which takes multiple categories of traffic participants as input and implements multi-modal trajectory prediction of vehicles through three steps: feature extraction, graph traversal strategy and trajectory prediction. The introduction of multiple categories of traffic participants and the trajectory clustering method based on agglomerative hierarchy effectively improve the accuracy of prediction. At the same time, after a series of ablation experiments on the model, the beneficial effects of the present invention are finally obtained as follows:
[0035] (1) Considering multiple types of traffic participants in complex urban traffic scenarios, a trajectory prediction model based on graph traversal strategy is proposed based on historical trajectory information. Compared with the traditional trajectory prediction model, it is closer to the actual situation and effectively improves the accuracy of the predicted trajectory.
[0036] (2) Considering the uncertainty of vehicle trajectories, the agglomerative hierarchical clustering method is used to cluster a large number of similar trajectories among the 1000 predicted trajectories into k trajectories, and multiple candidate vehicle trajectories and their probabilities are output to complete multimodal trajectory prediction.
[0037] (3) Experimental results on public datasets show that the proposed method can effectively predict the future trajectory of vehicles in urban scenarios and has higher accuracy and generalization ability than other mainstream trajectory prediction methods.
[0038] (4) The computing power required by the present invention is relatively low, and it can be applied to the vehicle-mounted trajectory prediction system. The average time required for the model to predict each sample on the test set is 0.017 seconds. When it is actually applied, the prediction speed can be further improved by relying on multi-GPU parallel computing and the computing power support provided by the cloud platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0040] Figure 1 A schematic diagram of the overall structure of a trajectory prediction model according to an embodiment of the present invention;
[0041] Figure 2 A schematic diagram of constructing a lane map according to an embodiment of the present invention;
[0042] Figure 3 A schematic diagram of agglomerative hierarchical clustering according to an embodiment of the present invention;
[0043] Figure 4 Schematic diagram of the internal structure of a GRU according to an embodiment of the present invention;
[0044] Figure 5 A schematic diagram of GAT aggregation adjacent node information according to an embodiment of the present invention;
[0045] Figure 6 A schematic diagram of a graph traversal strategy according to an embodiment of the present invention;
[0046] Figure 7 A schematic diagram of a prediction result of a crossroads scene according to an embodiment of the present invention;
[0047] Figure 8 This is a schematic diagram of the prediction result of the side vehicle merging into the lane scenario according to an embodiment of the present invention;
[0048] Fig. 9 Schematic diagram of the change of min_ADE in different prediction time domains according to an embodiment of the present invention;
[0049] Fig.10 Schematic diagram of the change of min_FDE in different prediction time domains according to an embodiment of the present invention. DETAILED DESCRIPTION
[0050] 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 application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0051] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0052] In urban traffic scenarios, the problem of predicting the future multimodal trajectory of vehicles is to estimate the different motion trajectories of vehicles in the future based on the predicted observation information of the target vehicle and the surrounding environment information. Assuming a specific traffic scenario, the input includes the observation information of the target vehicle and the surrounding multi-category traffic participants in the time series (x t ,y t ,v t ,a t ,yaw t ) and environmental information provided by the high-definition map, and outputs k different trajectory coordinate sequences of the target vehicle. Among them, x and y represent position information, v represents speed, a represents acceleration, yaw represents the yaw rate of the vehicle, t=-h:0 represents the past time period, and t=0:f represents the future time period.
[0053] The overall structure of the trajectory prediction model in this embodiment is as follows Figure 1As shown in the figure, the model is mainly divided into three parts: feature extraction, graph traversal strategy, and trajectory prediction. The input of the model includes the historical trajectory features of the target vehicle and surrounding traffic participants and the lane node features (including map information, etc.). Compared with traditional research, the classification of surrounding traffic participants is further subdivided into four categories: including vehicles, pedestrians, non-motor vehicles and obstacles.
[0054] First, regarding the feature extraction part, the GRU encoder is used to encode and capture the time series information. The lane node feature encoding performs attention weighting on the trajectory feature encoding of the surrounding traffic participants to obtain a new lane node feature encoding. Then, after passing through the graph attention network (GAT), the final lane node encoding feature that integrates map information and interaction information is obtained.
[0055] Among them, the internal structure of the GRU encoder is as follows Figure 4 As shown, the input is x at the current time step t and the hidden state h at the previous time step t-1 The outputs of the reset gate r and the update gate z are given by two fully connected layers using the sigmoid activation function. The output of the reset gate at the current time step is element-wise multiplied with the hidden state at the previous time step. Then, the result of the element-wise multiplication is multiplied with the input x at the current time step. t The candidate hidden state is calculated through a fully connected layer with an activation function tanh Finally, the hidden state h at time step t t The calculation uses the update gate of the current time step to combine the hidden state of the previous time step with the candidate hidden state of the current time step.
[0056] Secondly, regarding the graph traversal strategy, the feature encoding of the target vehicle trajectory is concatenated with the final lane node encoding feature and passed through a multi-layer perceptron (MLP). After the softmax activation function, the discrete probabilities of different vehicle behavior strategies are generated, and the traversal sampling path can be generated based on the calculated discrete strategy sampling.
[0057] Finally, regarding the trajectory prediction part, the multi-head attention mechanism can selectively aggregate to obtain aggregate feature encoding. In addition, a latent variable z randomly generated by a standard normal distribution is introduced (to capture the longitudinal variability of the vehicle's future motion, such as acceleration and braking). For the large number of predicted trajectories generated, the model uses an agglomerative hierarchical clustering algorithm, such as Figure 3 As shown in the figure, the final number of clusters of the algorithm is specified in advance, and the clusters are gradually merged into multiple trajectories according to the bottom-up hierarchical logic, thereby outputting k multimodal predicted trajectories of the target vehicle in the future.
[0058] This embodiment uses a lane map to represent map data. Figure 2As shown, the reference coordinate system is centered on the target vehicle, and the instantaneous direction of the target vehicle at the current moment is used as the direction of the reference coordinate system. The sensing range of the target vehicle is 50m to the left and right, 80m in front, and 20m behind.
[0059] The lane graph is a directed graph G(V,E), where V represents the lane nodes in the lane graph and E represents the lane edges that the lane nodes in the lane graph can connect to. The lane nodes are divided into 5m equal-length road segments, each of which is represented by a lane node. Each lane node contains a series of semantic information and geometric information. The semantic information is represented by a one-hot encoding, which indicates whether the lane segment is located on the crosswalk or the stop line; the geometric information includes the position information sequence of the lane segment.
[0060] In addition, this embodiment introduces a graph traversal strategy based on the constructed lane graph, which can predict the different probability distributions of lane nodes that the target vehicle may pass through in the future, obtain a reasonable path route by traversing different lane node behaviors, and filter relevant environmental features according to the predicted route.
[0061] This embodiment applies an agglomerative hierarchical clustering algorithm to the multimodal vehicle future trajectory output, clusters the samples in the trajectory dataset and discovers the patterns and structures therein. Figure 3 As shown in Figure 1, the agglomerative hierarchical clustering algorithm adopts a bottom-up logical strategy, starting with each sample as a separate cluster and gradually merging the closest clusters together until the number of iterations is reached or a certain stopping condition is met. In each iteration, the algorithm identifies the two closest clusters based on the link distance and merges them into a single cluster.
[0062] The link distance used by the agglomerative hierarchical clustering algorithm in this embodiment is the Ward distance, which is defined as follows:
[0063]
[0064] In the formula, C i represents the original cluster, C k represents the merged cluster, n i and n k They represent the number of samples in the clusters respectively. Represents the cluster C after merging k The sum of the distances between all sample points and the mean vector, Represents the original cluster C i The sum of the distances between all sample points and the mean vector.
[0065] like Figure 1As shown, this embodiment proposes a multi-modal vehicle trajectory prediction method for multi-type traffic participants in an urban area based on a graph traversal strategy, which specifically includes:
[0066] Obtain information data of the target vehicle, surrounding traffic participants and lane nodes within a preset time period; the environmental information provided by the high-definition map is represented by lane nodes. In the graph structure, lane nodes contain semantic information and geometric information of the map. The geometric information is (x, y, yaw), and the semantic information is whether it is located at a crosswalk or a stop line.
[0067] The information data is input into a preset trajectory prediction model to obtain the final predicted trajectory of the target vehicle:
[0068] Extracting and aggregating features of the information data to obtain lane node aggregation features;
[0069] Performing graph traversal strategy processing on the lane node aggregation features to obtain the future node trajectory distribution of the vehicle;
[0070] Multimodal prediction is performed on the future node trajectory distribution of the vehicle to obtain the final predicted trajectory of the target vehicle.
[0071] Specifically, the steps of feature extraction and aggregation in this embodiment are:
[0072] The input of the prediction trajectory network includes the feature vectors of the target vehicle, surrounding traffic participants and lane nodes in the past time period, which are sent to the GRU after the activation function ReLU to obtain the corresponding time series feature vector output. in, represents the hidden state of the target vehicle after feature encoding, represents the hidden state of the surrounding vehicles after feature encoding, Represents the hidden state of the lane node after feature encoding. The internal structure of GRU is as follows Figure 4 As shown, it is suitable for extracting features of time series.
[0073] Then, for the time series feature vector captured by GRU, this embodiment uses the attention module to aggregate the features of multiple surrounding traffic participants. Through the fully connected layer with residual module as the query Q, The key values K and V are obtained through the fully connected layer with the residual module, and finally the output of the attention layer is concatenated with the information data of the lane node and sent to GAT, as shown in Figure 5 As shown in Figure 1, each node performs a weighted representation of the adjacent node features to obtain the final lane node aggregation features. Used for graph traversal module. GAT uses attention mechanism to the adjacent node features h iDo weighted sum to get the new node feature h i ', where the attention coefficient is normalized by the softmax function.
[0074] For the historical trajectory input of the target vehicle and the surrounding multiple traffic participants i, its feature vector is defined as:
[0075]
[0076] In the formula, the vector S subscript is -t h It represents the past time period of the historical trajectory. When the superscript i of the vector is 0, it represents the target vehicle. θ represents the category of traffic participants (vehicles, pedestrians, non-motor vehicles and obstacles).
[0077] Specifically, in this embodiment, the graph traversal strategy is:
[0078] like Figure 6 As shown in the figure, the graph traversal strategy module extracts the node feature information obtained from the feature extraction module. As input, in order to predict the future decision-making behavior of the vehicle, the corresponding classification prediction task of the nodes that the vehicle will pass through in the future is introduced. This task traverses all different nodes that the vehicle may pass through in the future, and uses MLP and softmax to output the discretized probability representation of the vehicle passing through different nodes at different times in the future, thereby obtaining the most likely driving behavior of the vehicle, and then obtaining the traversal probability of the node in the time series, and finally outputting the future node trajectory distribution of the vehicle.
[0079] In addition, for the loss function of this module, this embodiment uses the cross entropy loss function, which is defined as follows:
[0080]
[0081] In the formula, E gt represents the ground truth, and u and v represent different lane nodes.
[0082] Specifically, in this embodiment, the trajectory prediction is:
[0083] The trajectory prediction module uses coordinates to predict multi-modal vehicle trajectories based on the node trajectory distribution and lane node features obtained by the above two modules.
[0084] First, in order to selectively aggregate node information on the predicted path, a multi-head attention mechanism is used based on the sampled path sequence predicted by the graph traversal strategy. Q is the historical trajectory information of the target vehicle. K and V are lane node features Output new node features
[0085] Secondly, node features Splice the target vehicle’s feature code And the variable z is used as the input of MLP to obtain the future time t h 1000 trajectory prediction outputs within .
[0086] Finally, in order to obtain multi-modal trajectory output, the agglomerative hierarchical clustering method is used to obtain the final k predicted trajectories of trajectory distribution. The specific algorithm flow is as follows:
[0087] (1) Preset the number of clusters k.
[0088] (2) Initialize the clustering of a single trajectory, i.e., 1000 clusters.
[0089] (3) Initialize the cluster distance matrix according to the Ward distance, and merge the two clusters with the closest distance matrix into one.
[0090] (4) Determine whether the current clustering cluster has reached the preset clustering cluster number k. If it is still greater than the preset clustering cluster number k, go to (2); otherwise, stop the iteration.
[0091] Specifically, this embodiment also uses the following loss function to train the entire network end-to-end:
[0092]
[0093] In the formula, is the sampling path sequence obtained by the graph traversal strategy module, is the ground truth sequence of future trajectories.
[0094] The total loss function used in this embodiment is obtained by combining the L1 defined above and the L2 defined in the graph traversal strategy module. Among them, the main purpose of the cross entropy loss function L1 is to make the probability distribution of the actual node movement trajectory as close as possible to the predicted node movement trajectory probability distribution; the main purpose of the minimum average displacement loss function L2 is to minimize the deviation between the predicted vehicle trajectory and the actual vehicle trajectory.
[0095] The following example also performs trajectory prediction and evaluation analysis:
[0096] Dataset:
[0097] This example uses the nuScenes autonomous driving public dataset for trajectory prediction and evaluation analysis. The dataset collects real road driving data from Boston and Singapore, and is the first large-scale dataset that provides data from the entire sensor suite of an autonomous vehicle (6 cameras, 1 lidar, 5 radars, GPS, IMU). The dataset contains a total of 1,000 scenes, each 20 seconds long with ground truth annotations and high-definition maps; the first 2 seconds of data is used as model input, and the last 6 seconds of real road trajectories are used to train the prediction model and verify the model prediction effect.
[0098] Trajectory prediction model training:
[0099] The hardware and software configuration parameters for trajectory prediction model training are shown in Table 1. Experiments show that the model can be trained in 8 hours using an RTX4060, and the average time required to predict each sample on the test set is 0.017 seconds.
[0100] Table 1 Training software and hardware configuration
[0101]
[0102] The training parameters are set as follows: the dataset is randomly divided into training set, test set and validation set in the ratio of 7:2:1; the training batch size is set to 32; the training epoch is set to 100; the learning rate is set to 1e-3 at the beginning of training, and the learning rate is reduced to half of the original after every 5 rounds of training; the training optimizer is Adam; the two weights of the loss function are selected as λ1=0.5 and λ2=1.0 respectively.
[0103] Evaluation indicators:
[0104] The evaluation indicators for trajectory prediction quality are set to the currently commonly used evaluation indicators: minimum average displacement error (minADE), minimum final distance error (minFDE), and miss rate (MR).
[0105] Minimum average displacement error minADE: Calculate the minimum value of the bi-norm (Euclidean distance) between k model-predicted trajectories and the true trajectories. The calculation formula is defined as follows:
[0106]
[0107] Where P t i is the predicted trajectory point coordinate of the ith trajectory, Pt gt are the trajectory point coordinates of the future trajectory ground truth.
[0108] Minimum final distance error minFDE: Calculate the minimum value of the two norms (Euclidean distances) between the endpoint values of k model-predicted trajectories and the actual trajectory endpoint values. The calculation formula is defined as follows:
[0109]
[0110] In the formula, It is the future h The actual trajectory end point coordinates at time, Yes h The coordinates of the end point of the i-th future predicted trajectory at time.
[0111] Missing rate MR: Calculate the bi-norm (Euclidean distance) between k model-predicted trajectories and the true trajectory. According to the predicted distance threshold, determine whether the trajectory points of the predicted trajectory correctly capture the true trajectory. The calculation formula is defined as follows:
[0112]
[0113] Comparative analysis of trajectory prediction results:
[0114] The trajectory prediction is performed using the test set data in the dataset, and the obtained results are compared with other mainstream methods on the nuScenes dataset to reflect the prediction accuracy of the method of this embodiment. The results are shown in Table 2.
[0115] Table 2 Comparison of prediction results of test set models
[0116]
[0117]
[0118] The methods used by the comparison models are Trajectron++, which adopts a graph-structured recurrent model; P2T, which proposes an attention-based trajectory generator; GOHOME, which uses graphical representation and sparse projection of high-definition maps to generate heat map outputs to represent the probabilities of the agent's future locations; THOMAS, which proposes a multi-agent joint trajectory prediction framework; and PGP, which proposes a learning discrete strategy.
[0119] The smaller the evaluation index, the smaller the deviation between the model's prediction result and the true trajectory, and the more accurate the prediction. When k = 5, minADE decreased by 1.54-31.91%, and MR decreased by 9.10-28.57%; when k = 10, minADE decreased by 5.00-37.09%, and MR decreased by 5.41-38.60%. Through the comparison of indicators, it can be found that the method of this embodiment is generally better than some mainstream models.
[0120] Ablation experiment
[0121] In order to verify the different influences and effects of multiple traffic participant inputs on the prediction results in the feature extraction module of the model, this embodiment conducts a quantitative analysis through an ablation experiment. The results are shown in Table 3.
[0122] Table 3 Ablation experiment results of surrounding traffic participants classification
[0123]
[0124] According to the results of the ablation experiment, when considering vehicles or pedestrians, the evaluation indicators are reduced compared to those without considering surrounding traffic participants, but the difference is not large. When considering multiple traffic participant categories, the evaluation indicators are significantly reduced. In addition, the evaluation indicators of adding non-motor vehicle categories are not much different. The experiment shows that the interaction between different categories of surrounding traffic participants and the target vehicle affects the decision-making behavior of the vehicle, and considering the classification of traffic participants around the target vehicle can improve the accuracy of the predicted trajectory to a certain extent.
[0125] Visual scene analysis
[0126] In order to visualize and analyze the prediction results of the model of this embodiment in the urban road scene, two typical urban road scenes for prediction tasks are selected from the nuScenes dataset, and the number of prediction trajectories k=5 is set, and observation and analysis are performed respectively.
[0127] like Figure 7 As shown in the figure, the scene is an intersection with a traffic light, and the surrounding traffic participants are mainly vehicles and pedestrians. It can be seen that the directions of the five predicted trajectories of the target vehicle in the scene are basically consistent with the actual trajectories, and they comply with the traffic rules of the traffic lights, reflecting the high accuracy of the model's multimodal prediction. In addition, the end coordinates and lengths of the five predicted trajectories and the actual trajectories are different, indicating that the speed and acceleration of the target vehicle in the 6s prediction period are different, and as the prediction time increases, the difference between the predicted trajectory and the actual trajectory gradually increases, reflecting the uncertainty caused by factors such as different driving styles of drivers and the high accuracy of short-term prediction.
[0128] like Figure 8As shown in the figure, the scene is a side vehicle merging into the straight lane, and the surrounding traffic participants are mainly vehicles. It can be seen that the target vehicle is taking a left turn to merge into the right lane. The five predicted trajectories all effectively identify the vehicle's driving intention to turn left and are basically consistent with the direction of the actual trajectory. This shows that the multimodal prediction excludes the right turn prediction trajectory with a lower probability while considering the different driving intentions of the target vehicle, which is consistent with the road conditions of the actual traffic scene. In addition, compared with the actual trajectory, the five predicted trajectories are closer to the left lane, while the actual trajectory is closer to the middle lane. Considering that in the traffic scene of this city, the driving vehicle is right-hand drive and drives on the left, it means that the difference in driving mode may be learned and captured by the model from a large amount of driving data, which makes the model's predicted trajectory closer to the left lane than the actual trajectory, reflecting the adaptability of the model in a specific driving environment.
[0129] Time Domain Analysis
[0130] The vehicle trajectory prediction time domain of the model in this embodiment is 6 seconds. In order to explore the change in the accuracy of the predicted trajectory in different time domains, different prediction time domains from 1 second to 6 seconds are taken to analyze the change trend of the accuracy of k predicted trajectories under the change of time domain.
[0131] like Fig. 9 and Fig.10 As shown in the figure, as the prediction time domain continues to grow, the indicators min_ADE and min_FDE both show an exponential upward trend, but the upward trend slows down from 5s to 6s, and the number of trajectory predictions k will also affect the upward trend of the indicators. The larger the k, the less the indicators are affected by the time domain. Therefore, the model of this embodiment is suitable for long-term prediction, which can ensure the long-term prediction accuracy to a certain extent, and when the prediction time domain is long, taking a larger number of trajectory predictions k can also improve the prediction accuracy.
[0132] Trajectory prediction in complex road scenes is one of the key technologies and difficulties in autonomous driving decision-making and planning. In order to improve the long-term prediction accuracy of the trajectory of intelligent connected vehicles in complex urban road scenes, this embodiment comprehensively considers different types of traffic participants (such as vehicles, pedestrians and obstacles) and the uncertainty of trajectory prediction, and proposes a multimodal trajectory prediction model based on a graph traversal strategy that considers multiple types of urban traffic participants. First, a lane map is constructed based on the urban structured road scene and high-definition map to extract road scene information; secondly, a gated recurrent unit is used to encode the historical trajectory and road scene information of the target vehicle and its surrounding vehicles, and the interaction features between the target vehicle and different types of traffic participants and lane map information are obtained through the self-attention mechanism, and then processed through the graph attention network to generate a vector reflecting context information; finally, by learning different possibilities of graph discrete traversal strategies, combined with the trajectory prediction module, a multi-objective strategy is explored on a subset of the lane map, and a multi-modal prediction result is output. The experimental results of the above model on the nuScenes public dataset show that the trajectory prediction model proposed in this embodiment shows good performance in the 6-second prediction time domain, effectively improving the trajectory prediction accuracy and quality in complex urban traffic environments. In addition, the model requires lower computing power. The average time required to predict each sample on the test set using an RTX 4060 is 0.017 seconds, further improving model performance.
[0133] This embodiment proposes a trajectory prediction method based on a graph traversal strategy, which takes multiple categories of traffic participants as input and implements multi-modal trajectory prediction of vehicles through three modules: feature extraction, graph traversal strategy, and trajectory prediction. The introduction of multiple categories of traffic participants and the trajectory clustering method based on agglomerative hierarchy effectively improve the accuracy of prediction. At the same time, after a series of ablation experiments on the model, the main conclusions of this embodiment are finally obtained as follows:
[0134] (1) Considering multiple types of traffic participants in complex urban traffic scenarios, a trajectory prediction model based on graph traversal strategy is proposed based on historical trajectory information. Compared with the traditional trajectory prediction model, it is closer to the actual situation and effectively improves the accuracy of the predicted trajectory.
[0135] (2) Considering the uncertainty of vehicle trajectories, the agglomerative hierarchical clustering method is used to cluster a large number of similar trajectories among the 1000 predicted trajectories into k trajectories, and multiple candidate vehicle trajectories and their probabilities are output to complete multimodal trajectory prediction.
[0136] (3) The experimental results of the public dataset show that the method of this embodiment can effectively predict the future trajectory of vehicles in urban scenarios, and has higher accuracy and generalization ability than other mainstream trajectory prediction methods.
[0137] (4) The computing power required by the model in this embodiment is relatively low, and it can be applied to the vehicle-mounted trajectory prediction system. The average time required for the model to predict each sample on the test set is 0.017 seconds. When it is actually applied, the prediction speed can be further improved by relying on multi-GPU parallel computing and the computing power support provided by the cloud platform.
[0138] The above are only preferred specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A multi-modal vehicle trajectory prediction method for multi-type urban traffic participants based on a graph traversal strategy, characterized in that: include: Obtain information data of the target vehicle, surrounding traffic participants and lane nodes within a preset time period; The information data is input into a preset trajectory prediction model to obtain the final predicted trajectory of the target vehicle: Extracting and aggregating features of the information data to obtain lane node aggregation features; Performing graph traversal strategy processing on the lane node aggregation features to obtain the future node trajectory distribution of the vehicle; Multimodal prediction is performed on the future node trajectory distribution of the vehicle to obtain the final predicted trajectory of the target vehicle.
2. The method for predicting multi-modal vehicle trajectories of multi-type urban traffic participants based on graph traversal strategy according to claim 1 is characterized in that: Extracting and aggregating features of the information data to obtain lane node aggregation features includes: Extract feature vectors of information data of target vehicle, surrounding traffic participants and lane nodes within a preset time period; The feature vector is passed through the activation function ReLU and sent to the GRU to obtain the corresponding time series feature vector output; in, represents the hidden state of the target vehicle after feature encoding, represents the hidden state of the surrounding vehicles after feature encoding, Represents the hidden state of the lane node after feature encoding; Through the fully connected layer with residual module as the query Q, The key values K and V are obtained through the fully connected layer with the residual module, and the output of the attention layer is concatenated with the information data of the lane node and sent to GAT. The attention weighted representation of each node on the adjacent node features is performed to obtain the final lane node aggregation features.
3. The method for predicting multi-modal vehicle trajectories of multi-type urban traffic participants based on graph traversal strategy according to claim 2 is characterized in that: The characteristic vectors of the information data of the target vehicle and lane node within the preset time period are: Among them, the vector S subscript -t h Indicates the past time period of the historical trajectory, -t h = 0 represents the current time point, the superscript i in the vector S represents different traffic participants, i = 0 represents the target vehicle, θ represents the category of traffic participants, and Represents the position information in the reference coordinate system, Indicates acceleration information, Indicates the yaw angle information, Represents traffic participant category information.
4. The method for predicting multi-modal vehicle trajectories of multi-type urban traffic participants based on graph traversal strategy according to claim 1 is characterized in that: The graph traversal strategy includes: By traversing all the different nodes that the vehicle can pass through in the future, MLP and softmax are used to output the discretized probability representation of the vehicle passing through different nodes at different times in the future, the driving behavior taken by the vehicle with a preset probability is obtained, and then the future node trajectory distribution of the vehicle is obtained.
5. The method for predicting multi-modal vehicle trajectories of multi-type urban traffic participants based on graph traversal strategy according to claim 1 is characterized in that: Performing multimodal prediction on the future node trajectory distribution of the vehicle to obtain the final predicted trajectory of the target vehicle includes: Perform multi-head attention mechanism processing on the future node trajectory distribution of the vehicle to obtain new node features; The new node feature is concatenated with the feature code of the concatenated target vehicle and a preset variable z, wherein the preset variable z is randomly generated by a standard normal distribution and is used to capture the longitudinal variability of the vehicle's future motion (acceleration, braking, etc.), and then the concatenated features are input into the MLP to obtain a preset number of trajectory prediction outputs in the future time; The preset number of trajectory prediction outputs are processed by using an agglomerative hierarchical clustering method to obtain k final predicted trajectories of the target vehicle.
6. The method for predicting multi-modal vehicle trajectories of multi-type urban traffic participants based on graph traversal strategy according to claim 5 is characterized in that: Using an agglomerative hierarchical clustering method, processing the preset number of trajectory prediction outputs includes: Step 1, preset the number of clusters k; Step 2: Initialize the clustering cluster of a single trajectory, that is, the preset number of clustering clusters; Step 3: Initialize the cluster distance matrix according to the Ward distance, and merge the two clusters closest to the distance matrix into one; Step 4: Determine whether the current clustering cluster has reached the preset clustering cluster number k. If it is still greater than the preset clustering cluster number k, go to step 2, otherwise stop the iteration.
7. The method for predicting multi-modal vehicle trajectories of multi-type urban traffic participants based on graph traversal strategy according to claim 1 is characterized in that: The prediction method further includes: setting a loss function to perform fitting training on the trajectory prediction model; The loss function includes: Where L1 represents the cross entropy loss function, which is used to reduce the error between the lane node sequence predicted by the graph traversal strategy and the actual lane node sequence, (u, v) represents different lane nodes, E gt represents the ground truth, ρ represents the probability of the vehicle traversing the starting lane node u to the lane node v, L2 represents the minimum average displacement loss function, which is used to reduce the error between the predicted trajectory and the actual trajectory, k represents the number of predicted trajectories, and t f represents the predicted future time period, represents the sampling path sequence obtained by the graph traversal strategy module, represents the ground truth sequence of future trajectories.
Citation Information
Cited By
Decision-making method and device for multi-vehicle reinforcement learning, storage medium and equipment
CN119807896A
Lane line guided graph search heterogeneous interaction vehicle trajectory prediction method
CN120086302A
Method and device for searching fastest driving path of wharf vehicle
CN120489165A
Method and device for searching the fastest travel path for terminal vehicles
CN120489165B
Pedestrian trajectory prediction method, system and device based on continuous learning and medium
CN120633467A
