Multi-mode lane changing trajectory prediction and safety evaluation method in strong interaction scene
By using the multi-modal trajectory prediction method of graph neural network and long short-term memory neural network in the high-speed ramp scene, the vehicle history and interaction features are extracted, the future trajectory is generated, and the prediction reliability is evaluated, solving the problem of trajectory prediction accuracy and traditional methods. The problem of insufficient reliability is achieved, and driving decision support with higher accuracy and safety is achieved.
Patent Information
- Application Number
- CN202410497085.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-24
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In strong interaction scenarios on highway ramps, traditional vehicle trajectory prediction methods are difficult to accurately capture vehicle interaction relationships and cannot effectively evaluate the reliability of trajectory prediction, resulting in limited prediction performance and inability to provide accurate and safe driving decisions in complex traffic environments. support.
Using a multi-modal trajectory prediction method based on graph neural network and long short-term memory neural network, by constructing graph data fragments, training the graph neural network and long short-term memory neural network model, extracting vehicle historical trajectory features and interaction features, and generating future trajectories. And build an uncertainty assessment model to evaluate the reliability of the prediction results.
It improves the accuracy of trajectory prediction in high-speed ramp scenarios, and ensures the safety of prediction results through uncertainty evaluation, which can better capture vehicle interactions and handle complex traffic environments.
Smart Images

Figure CN118538022A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle trajectory prediction, and in particular to a multi-modal lane-changing trajectory prediction and safety assessment method in a strong interaction scenario. Background Art
[0002] The highway ramp is a highly intensive and interactive traffic scene. The driving environment is highly dynamic. Vehicles change lanes to seek better traffic efficiency, but the future trajectory of the vehicle will be affected by the social interaction behavior of adjacent vehicles, and the number of adjacent vehicles varies in different time periods. In this dynamic scene, better capturing the interactive information of surrounding vehicles and more accurately predicting the future trajectory of lane-changing vehicles is of great significance for alleviating traffic congestion and optimizing intelligent car driving decisions and planning.
[0003] Traditional vehicle trajectory prediction methods mainly use physical models based on dynamic and kinematic characteristics or traditional machine learning methods represented by support vector machines or Bayesian networks. The rapid development of deep learning provides a new idea for vehicle trajectory prediction. Representing the interaction relationship of vehicles as a graph, using nodes to represent different vehicles, and edges to represent the interaction between vehicles, and applying graph neural network algorithms to model the interaction relationship of vehicles has aroused great research interest in the past two years. And with the widespread application of driving data sets in real scenarios, data-driven interactive perception methods dominate the field of trajectory prediction.
[0004] The machine learning-based CS-LSTM (Long short-term memory with convolutional social pooling) is applied to the past trajectory of a single vehicle and extracts its dynamics, and then aligns these dynamics to an occupancy grid centered on the target vehicle to represent the interaction relationship of the vehicles. However, its prediction performance is affected by the size of the grid, and it cannot dynamically consider vehicles outside the grid. GRIP (Graph-based interaction-aware trajectory prediction) uses a graph to represent the interaction of close objects, applies multiple graph convolution blocks to extract features, and then uses an encoder-decoder long short-term memory network (LSTM) to predict vehicle trajectories. However, it treats all nodes equally, does not emphasize the characteristics of the target vehicle itself, and is not compatible with graph neural networks for interactive modeling. In addition, most current studies focus on the prediction process, and there is no effective method to evaluate the reliability of trajectory prediction. Summary of the invention
[0005] Purpose of the invention: The purpose of the present invention is to provide a multimodal lane-changing trajectory prediction and safety assessment method in a strong interaction scenario, so as to capture the interaction relationship between vehicles in a strong interaction scenario, thereby improving the trajectory prediction accuracy of lane-changing vehicles, and performing uncertainty assessment on the predicted results to ensure the safety of the predicted results.
[0006] Technical solution: A multi-modal lane change trajectory prediction and safety assessment method in a strong interaction scenario, including the following steps:
[0007] S1, select a high-speed ramp traffic data set, filter the trajectory data of the lane-changing vehicle and its surrounding vehicles, and convert the trajectory data into graph-format data segments;
[0008] S2, based on the data fragments in graph format, completes the training of the multimodal trajectory prediction model based on graph neural network and long short-term memory neural network;
[0009] S3, based on the trained multimodal trajectory prediction model, complete the training of the uncertainty estimation model, and perform safety assessment based on the multimodal trajectory prediction model.
[0010] Furthermore, a high-definition camera drone is used to take aerial photos of the road traffic flow, and high-resolution vehicle driving trajectory data is extracted from the video as a data set; the position reference system in the data set is the vertical coordinate system when the vehicle just enters the picture, and the center line of each lane is the horizontal coordinate system; and the interval between frames of the data set is 0.04s;
[0011] The lane-changing vehicle is defined as the ego vehicle, which meets the following conditions: the vehicle enters the main road by changing lanes from the ramp; the lateral deviation of the vehicle before and after the lane change is greater than or equal to 1m; the longitudinal position where the lane change occurs is within the range of 40m to 130m.
[0012] Further, the data set includes: vehicle number, timestamp, lane number, lateral position of the vehicle in the data set area, longitudinal position of the vehicle in the data set area, vehicle speed, acceleration, vehicle body length and vehicle body width;
[0013] Obtain the trajectory data of the lane-changing vehicle for the past 3 seconds and the next 5 seconds, and obtain the trajectory data of the 11 vehicles around it at the same time, unify the vehicle and the surrounding vehicles into a coordinate system, and then convert the obtained trajectory data into a graph data segment, including the following steps:
[0014] S11, extract all vehicles that have changed lanes in the data set, record the sudden change point of the lateral position of the lane-changing vehicle as the point where the lane-changing behavior occurs, and record the timestamp at this moment; search forward from this timestamp through the maximum increasing subsequence algorithm to obtain the starting point of the sequence that increases by 125 frames continuously to reach the point where the lane-changing behavior occurs, and mark this point as the starting point of the lane-changing intention; search backward from this timestamp through the maximum decreasing subsequence algorithm to obtain the end point of the sequence that decreases by 75 frames continuously to reach the point where the lane-changing behavior occurs, and mark this point as the end point of the lane-changing intention, thereby obtaining the complete trajectory of the lane-changing vehicle before and after the lane-changing;
[0015] S12, the selection rules for the 11 surrounding vehicles are as follows: before the self-vehicle numbered #0 changes lanes, the two vehicles closest to the self-vehicle in front and behind the lane are recorded as #1 and #2 respectively, and the five vehicles closest to the self-vehicle in front and behind the target lane and the four vehicles closest to the self-vehicle in the target lane are recorded as #3, #4, #5, #6, #7, #8, #9, #10, and #11 respectively;
[0016] S13, unifying the ego vehicle and surrounding vehicles into one coordinate system;
[0017] S14, converting the trajectory data of the vehicle and surrounding vehicles into graph data segments.
[0018] Further, in step S2, the training of the multimodal trajectory prediction model based on the graph neural network and the long short-term memory neural network is completed, including the following steps:
[0019] S21, build a multimodal trajectory prediction model of graph neural network and long short-term memory neural network. The goal of the prediction task is to predict the future trajectory of the vehicle by considering the historical trajectories of surrounding vehicles and autonomous vehicles; the input of the model is the historical trajectories of surrounding vehicles and autonomous vehicles, denoted as X h :
[0020] X h =[h (0) ,h (1) ,…,h (m) ]
[0021]
[0022] Among them, h (i) represents the historical trajectory sequence of the vehicle and surrounding vehicles at time t, i represents the sequence number of the vehicle in the scene, i = 0, 1, ..., m, i ∈ [0, 11], T h Represents the observation time domain of the historical trajectory sequence; represents the lateral position coordinates of the vehicle numbered i in the data set area at time t, represents the longitudinal position coordinate of the vehicle numbered i in the data set area at time t;
[0023] The output of the model is the predicted future trajectory of the autonomous vehicle, denoted by X f :
[0024]
[0025] Among them, f (t) represents the future trajectory sequence of the vehicle at time t, T f Represents the prediction time domain of future trajectory sequence;
[0026] The probability distribution of predicting the future trajectory of the vehicle is defined as P(X f |X h ), the future trajectory is modeled as a Gaussian mixture distribution composed of K Gaussian distributions linearly superposed, denoted as P(X gt |c,μ,σ):
[0027]
[0028] Among them, X gt represents the actual trajectory data of the vehicle in the next 5 seconds at time t, c represents the probability of each trajectory in the multimodal prediction result, and c k is the probability corresponding to trajectory k in multimodal trajectory prediction, and satisfies μ represents the predicted position result under each mode, represents the mean of the horizontal and vertical position distribution of the kth trajectory at time t; σ is the standard deviation of the Gaussian mixture distribution; Indicates that the parameter is and Gaussian distribution of σ;
[0029] S22, for the multimodal trajectory prediction model, LSTM Encoder is used to encode the historical trajectory data of the autonomous vehicle and its surrounding vehicles, and then Graph Attention Network is used to extract the interaction relationship between the autonomous vehicle and other surrounding vehicles. Finally, LSTM Decoder is used to decode the future trajectory of the autonomous vehicle.
[0030] In the LSTM Encoder, a weight-shared LSTM is used to extract the historical trajectory features of the autonomous driving vehicle and surrounding vehicles, denoted as L t :
[0031] L t = {l (0) ,…,l (i) ,…,l (m)}=Emb(LSTM his (Emb(X h )))
[0032] Among them, l(i) represents the feature vector of vehicle number i after passing through the LSTM encoder; Emb() is a linear transformation that embeds low-dimensional xy-coordinates into a high-dimensional vector space; LSTM his Represents the long short-term memory network that processes the vehicle's historical trajectory;
[0033] Using LSTM his Encode the features output by Emb(), and finally use an Emb() to encode the LSTM his The output features are further linearly transformed;
[0034] S23, define a directed graph G = {V, E} to represent the relationship between vehicles in the traffic scene, where V represents a set of nodes, V = {v0, v0, …, v m},v i is the historical trajectory feature vector obtained from the LSTM Encoder; in actual traffic scenarios, the autonomous driving vehicle interacts with the surrounding vehicles, so a directed graph is used to represent the interaction between nodes, and this interaction at time t is defined as an edge set, denoted by E t :
[0035] E t ={e ij │(v i ,v j )∈A nbr}
[0036] Among them, e ij Represents the edge between node i and node j. Node i and node j will affect each other.
[0037] S24, after the historical trajectory features of the vehicle are obtained through LSTM Encoder, the interaction features between vehicles are extracted and recorded as G t :
[0038] G t = {g (0) ,g (1) ,…,g (m) =GAN conv (L t ,E t )
[0039] Among them, GAN conv is a two-layer graph neural network encoder with 4 attention heads, g (i) represents the interaction characteristics between vehicle i and other vehicles, i = 0,…,m;
[0040] S25, using the trajectory features of the autonomous driving vehicle obtained by LSTM Encoder and the interaction features between vehicles obtained by GAN Encoder as input, obtain the future trajectory X of the autonomous driving vehicle f :
[0041] X f =LSTM fut (Emb(l (0) ||g (0) ))
[0042] Among them, LSTM fut It represents the long short-term memory network that processes the future real trajectory of the vehicle. The symbol || represents the connection between two features.
[0043] S26, dividing the graph data fragments into a training set and a validation set in a ratio of 7:3, as training and validation data for the multimodal trajectory prediction model;
[0044] Define the negative log-likelihood of Gaussian mixture distribution to train the multimodal trajectory prediction model, denoted by L p :
[0045]
[0046] The main parameters include: batch_size, learning_rates, num_epoch, scheduler_step_size.
[0047] Furthermore, in step S3, the uncertainty estimation model is used to measure whether the result predicted by the model is reliable, which is denoted as E:
[0048] E=Emb(l (0) ||g (0) )
[0049] Use supervised learning to train the uncertainty assessment model and define the following loss function for training:
[0050]
[0051] Among them, RMSE is the root mean square error, Uncertainty scores for multimodal trajectory predictions.
[0052] Compared with the prior art, the present invention has the following significant effects:
[0053] 1. The present invention proposes a multimodal lane change trajectory prediction method based on graph neural network, which uses LSTM encoder and GNN to extract the historical trajectory features of the vehicle and the interaction features between vehicles, and then uses LSTM decoder to generate multiple future trajectories of the autonomous vehicle. LSTM can more effectively capture and process long-term dependencies, so as to better capture the historical trajectory features of the vehicle, and use the attention mechanism in Graph Attention Network to better learn the relationship between nodes, so that the model can better predict the future trajectory of the autonomous vehicle in a complex interactive environment, thereby improving the accuracy of trajectory prediction in high-speed ramp scenarios;
[0054] 2. By constructing a trajectory prediction uncertainty assessment model to measure the reliability of the multimodal trajectory prediction model, the security of the prediction results can be ensured. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 It is the overall flow chart of the present invention;
[0056] Figure 2 It is a schematic diagram of a strong interaction scenario;
[0057] Figure 3 This is a diagram of the multimodal trajectory prediction and safety assessment architecture. DETAILED DESCRIPTION
[0058] The present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0059] like Figure 1 As shown, the multimodal trajectory prediction and safety assessment method for a strong interaction scenario of the present invention includes the following steps:
[0060] Step 1: Filter the trajectory data of the lane-changing vehicle and its surrounding vehicles within a specified range in a strong interaction scenario based on the data set, and convert the trajectory data into graph-format data fragments;
[0061] Specifically, taking the strong interactive scene of ramp as an example, we select the highway ramp traffic dataset:
[0062] First, we select the highway ramp traffic dataset, which contains the following data information: VehicleID (vehicle number in the dataset area), Time (timestamp, unit: s), LaneID (lane number), LatitudePosition (vehicle lateral position in the dataset area, unit: m), LongtitudePosition (vehicle longitudinal position in the dataset area, unit: m), Speed (vehicle speed, unit: m / s), Acceleration (acceleration, unit: m / s 2), VehicleLength (body length, unit: m), VehicleWidth (body width, unit: m), etc. This dataset uses a 4K high-definition camera drone to take aerial photos of road traffic flow and extract high-resolution vehicle driving trajectory data from the video. Therefore, the position reference system in the resulting dataset is the vertical coordinate system when the vehicle just enters the picture, and the center line of each lane is the horizontal coordinate system. The interval between frames in the dataset is 0.04s. In order to build the prediction model, the scenes collected by the above dataset are as follows Figure 2 shown.
[0063] Specifically, the lane-changing vehicle is defined as the ego vehicle, and the ego vehicle screening rules are as follows:
[0064] 1) Vehicles that enter the main road by changing lanes from the ramp; 2) Vehicles whose lateral deviation before and after changing lanes is greater than or equal to 1m; 3) The longitudinal position of the lane change should be within the range of 40m to 130m, that is, definition A nbr express.
[0065] Specifically, the process of converting the obtained data into graph data fragments is as follows:
[0066] Obtain the trajectory data of the lane-changing vehicle for the past 3 seconds and the next 5 seconds, and obtain the trajectory data of the 11 vehicles around it at the same time, unify the vehicle and the surrounding vehicles into a coordinate system, and then convert the obtained trajectory data into a graph data segment, including the following steps:
[0067] Based on the above steps, all the vehicles that have changed lanes have been extracted from the data set. The trajectory data of the lane-changing vehicles are analyzed. The mutation point of their lateral position is the point where the lane-changing behavior occurs. The timestamp at this moment is recorded. The maximum increasing subsequence algorithm is used to search forward from this timestamp to obtain the starting point of the sequence that increases by 125 frames continuously to reach the point where the lane-changing behavior occurs. This point is marked as the starting point of the lane-changing intention. Similarly, the maximum decreasing subsequence algorithm is used to search backward from this timestamp to obtain the end point of the sequence that decreases by 75 frames continuously to reach the point where the lane-changing behavior occurs. This point is marked as the end point of the lane-changing intention, thereby obtaining the complete trajectory of the lane-changing vehicle before and after the lane-changing.
[0068] The selection rules for the 11 surrounding vehicles are as follows: 1) Before the ego vehicle (numbered #0) changes lanes, the two vehicles closest to the ego vehicle in front and behind the lane are recorded as #1 and #2 respectively. The five vehicles closest to the ego vehicle in front and the four vehicles closest to the ego vehicle in the target lane are recorded as #3, #4, #5, #6, #7, #8, #9, #10, and #11 respectively.
[0069] The self-vehicle and surrounding vehicles are unified into one coordinate system because the longitudinal coordinate system of the vehicle is unified, but the lateral coordinate system is based on the center line of the lane, because the lateral coordinate system of the vehicle needs to be converted to the center line before the self-vehicle changes lanes;
[0070] Converting the obtained data into graph data segments is to convert the trajectory data of the vehicle and surrounding vehicles obtained above into graph data, that is, data in pyg format.
[0071] Step 2: Based on the data fragments in graph format, complete the training of the multimodal trajectory prediction model based on graph neural network and long short-term memory neural network;
[0072] First, before building the model, the problem under study is modeled. The goal of the prediction task is to predict the future trajectory of the vehicle by considering the historical trajectories of surrounding vehicles and autonomous vehicles. In the embodiment, the input of the model is the historical trajectories of surrounding vehicles and autonomous vehicles, denoted as X h :
[0073] X h =[h (0) ,h (1) ,…,h (m) ] (1)
[0074] in,
[0075]
[0076] Among them, h (i) represents the historical trajectory sequence of the vehicle and surrounding vehicles at time t, i represents the sequence number of the vehicle in the scene, i = 0, 1, ..., m, i ∈ [0, 11], T h Represents the observation time domain of the historical trajectory sequence. represents the lateral position coordinates of the vehicle numbered i in the data set area at time t, Represents the longitudinal position coordinate of vehicle numbered i within the dataset area at time t.
[0077] In addition, the output of the model is the predicted future trajectory of the autonomous vehicle, denoted as X f :
[0078]
[0079] Among them, f (t) represents the future trajectory sequence of the vehicle at time t, T f Represents the prediction time domain of future trajectory sequences.
[0080] Secondly, the probability distribution of the predicted future trajectory of the ego vehicle is defined as P(X f |X h), since the future trajectory considered in the present invention is a multimodal distribution, the future trajectory is modeled as a Gaussian mixture distribution composed of K Gaussian distributions linearly superposed, so it is recorded as P(X gt |c,μ,σ):
[0081]
[0082] Among them, X gt represents the actual trajectory data of the vehicle in the next 5 seconds at time t, c is the mixing coefficient in the Gaussian mixture distribution, that is, the probability corresponding to each trajectory in the multimodal trajectory prediction, c k represents the probability of the kth trajectory and satisfies μ is the mean of the Gaussian mixture distribution, which is the predicted result for each mode, and represents the mean of the horizontal and vertical position distribution of the kth trajectory at time t; σ is the standard deviation of the Gaussian mixture distribution; Indicates that the parameter is and σ are Gaussian distributions; therefore, multimodal trajectory prediction is modeled as a Gaussian mixture distribution model. It is only necessary to estimate the parameters c, μ, σ through the data set to obtain the multimodal prediction results;
[0083] like Figure 3 As shown in the figure, the lane change trajectory prediction model in the highway ramp scenario uses LSTM Encoder to encode the historical trajectory data of the autonomous driving vehicle and its surrounding vehicles, then uses Graph Attention Network to extract the interaction relationship between the autonomous driving vehicle and other surrounding vehicles, and finally uses LSTM Decoder to decode the future trajectory of the autonomous driving vehicle.
[0084] In the LSTM Encoder, a weight-shared LSTM is used to extract the historical trajectory features of the autonomous driving vehicle and surrounding vehicles, denoted as L t :
[0085] L t = {l (0) ,…,l (i) ,…,l (m)}=Emb(LSTM his (Emb(X h ))) (5)
[0086] Among them, l (i) Represents the feature vector of vehicle number i after passing through the LSTM encoder. Emb() is a linear transformation that embeds low-dimensional xy-coordinates into a high-dimensional vector space. LSTM his Represents a long short-term memory network that processes the vehicle's historical trajectory, using LSTMhis Encode the features output by Emb(), and finally use an Emb() to encode the LSTM his The output features are further transformed linearly.
[0087] First, define a directed graph G = {V, E} to represent the relationship between vehicles in the traffic scene. Where V represents the set of nodes, V = {v0, v0, …, v m},v i is the historical trajectory feature vector obtained from the LSTM Encoder. In the studied scenario, there are 11 vehicles around the autonomous driving vehicle before and after the lane change, so m = 11. After obtaining the set of nodes, it is necessary to model the interaction relationship between nodes. In actual traffic scenarios, the autonomous driving vehicle and the surrounding vehicles affect each other, so the present invention uses a directed graph to characterize the interaction relationship between nodes, and defines this interaction relationship at time t as an edge set, denoted by E t :
[0088] E t ={e ij │(v i , v j )∈A nbr}, i=0,…, m (6)
[0089] Here, e ij represents the edge between node i and node j. Node i and node j will affect each other, so through e ij To capture the interaction between two nodes.
[0090] The Graph Attention Network (Graph Neural Network) obtains the historical trajectory features of the vehicle after passing through the LSTM Encoder. Next, we need to extract the interaction features between vehicles, which are recorded as G t :
[0091] G t = {g (0) ,g (1) ,…,g (m) =GAN conv (L t ,E t ) (7)
[0092] Among them, GAN conv is a two-layer graph neural network encoder with 4 attention heads, g (i) Represents the interaction characteristics between vehicle i and other vehicles, i = 0,…,m.
[0093] The future trajectory X of the autonomous vehicle is obtained by using the trajectory features of the autonomous vehicle obtained by the LSTM Encoder and the interaction features between vehicles obtained by the GAN Encoder as input. f :
[0094] X f =LSTM fut (Emb(l (0) ||g (0) )) (8)
[0095] Among them, LSTM fut It represents the long short-term memory network that processes the future real trajectory of the vehicle, and the symbol || represents the connection between two features.
[0096] Based on the data fragments in graph format obtained by screening in step 1, they are divided into training set and validation set in a ratio of 7:3 as training and validation data for the multimodal trajectory prediction model;
[0097] Define the negative log-likelihood of Gaussian mixture distribution to train the multimodal trajectory prediction model, denoted by L p :
[0098]
[0099] The model is trained with the following parameters: batch_size = 128, learning_rates = 0.001, num_epoch = 50, scheduler_step_size = 300000.
[0100] Step 3: Based on the trained multimodal trajectory prediction model, complete the training of the uncertainty estimation model, and perform safety assessment based on the multimodal trajectory prediction model;
[0101] The uncertainty estimation model is a method to evaluate the reliability of the multimodal trajectory prediction model based on the trained model after the model is trained, so as to measure whether the prediction result of the model is reliable, which is denoted as E:
[0102] E=Emb(l (0) ||g (0) ) (10)
[0103] After the converged multimodal trajectory prediction model is obtained through neural network training, the weights of the LSTM encoder and LSTM decoder in the multimodal trajectory prediction model are fixed, and the uncertainty assessment model is trained using supervised learning. The following loss function is defined to train it:
[0104]
[0105] Among them, RMSE is the abbreviation of Root Mean Square Error. Uncertainty scores for multimodal trajectory predictions.
Claims
1. A multi-modal lane-changing trajectory prediction and safety assessment method in a strong interaction scenario, characterized in that: The steps include: S1, select a high-speed ramp traffic data set, filter the trajectory data of the lane-changing vehicle and its surrounding vehicles, and convert the trajectory data into graph-format data segments; S2, based on the data fragments in graph format, completes the training of the multimodal trajectory prediction model based on graph neural network and long short-term memory neural network; S3, based on the trained multimodal trajectory prediction model, complete the training of the uncertainty estimation model, and perform safety assessment based on the multimodal trajectory prediction model.
2. The multi-modal lane-changing trajectory prediction and safety assessment method in a strong interaction scenario according to claim 1 is characterized in that: A high-definition camera drone is used to take aerial photos of road traffic flow, and high-resolution vehicle trajectory data is extracted from the video as a data set; the position reference system in the data set is the vertical coordinate system when the vehicle just enters the picture, and the center line of each lane is the horizontal coordinate system; and the interval between frames of the data set is 0.04s; The lane-changing vehicle is defined as the ego vehicle, which meets the following conditions: the vehicle enters the main road by changing lanes from the ramp; the lateral deviation of the vehicle before and after the lane change is greater than or equal to 1m; the longitudinal position where the lane change occurs is within the range of 40m to 130m.
3. The multi-modal lane-changing trajectory prediction and safety assessment method in a strong interaction scenario according to claim 2 is characterized in that: The data set includes: vehicle number, timestamp, lane number, lateral position of the vehicle in the data set area, longitudinal position of the vehicle in the data set area, vehicle speed, acceleration, vehicle length and vehicle width; Obtain the trajectory data of the lane-changing vehicle for the past 3 seconds and the next 5 seconds, and obtain the trajectory data of the 11 vehicles around it at the same time, unify the vehicle and the surrounding vehicles into a coordinate system, and then convert the obtained trajectory data into a graph data segment, including the following steps: S11, extract all vehicles that have changed lanes in the data set, record the sudden change point of the lateral position of the lane-changing vehicle as the point where the lane-changing behavior occurs, and record the timestamp at this moment; search forward from this timestamp through the maximum increasing subsequence algorithm to obtain the starting point of the sequence that increases by 125 frames continuously to reach the point where the lane-changing behavior occurs, and mark this point as the starting point of the lane-changing intention; search backward from this timestamp through the maximum decreasing subsequence algorithm to obtain the end point of the sequence that decreases by 75 frames continuously to reach the point where the lane-changing behavior occurs, and mark this point as the end point of the lane-changing intention, thereby obtaining the complete trajectory of the lane-changing vehicle before and after the lane-changing; S12, the selection rules for the 11 surrounding vehicles are as follows: before the self-vehicle numbered #0 changes lanes, the two vehicles closest to the self-vehicle in front and behind the lane are recorded as #1 and #2 respectively, and the five vehicles closest to the self-vehicle in front and behind the target lane and the four vehicles closest to the self-vehicle in the target lane are recorded as #3, #4, #5, #6, #7, #8, #9, #10, and #11 respectively; S13, unifying the ego vehicle and surrounding vehicles into one coordinate system; S14, converting the trajectory data of the vehicle and surrounding vehicles into graph data segments.
4. The multi-modal lane-changing trajectory prediction and safety assessment method in a strong interaction scenario according to claim 3 is characterized in that: In step S2, the training of the multimodal trajectory prediction model based on the graph neural network and the long short-term memory neural network is completed, including the following steps: S21, build a multimodal trajectory prediction model of graph neural network and long short-term memory neural network. The goal of the prediction task is to predict the future trajectory of the vehicle by considering the historical trajectories of surrounding vehicles and autonomous vehicles; the input of the model is the historical trajectories of surrounding vehicles and autonomous vehicles, denoted as X h : X h =[h (0) ,h (1) ,…,h (m) ] Among them, h (i) represents the historical trajectory sequence of the vehicle and surrounding vehicles at time t, i represents the sequence number of the vehicle in the scene, i = 0, 1, ..., m, i ∈ [0, 11], T h Represents the observation time domain of the historical trajectory sequence; represents the lateral position coordinates of the vehicle numbered i in the data set area at time t, represents the longitudinal position coordinate of the vehicle numbered i in the data set area at time t; The output of the model is the predicted future trajectory of the autonomous vehicle, denoted by X f : Among them, f (t) represents the future trajectory sequence of the vehicle at time t, T f Represents the prediction time domain of future trajectory sequence; The probability distribution of predicting the future trajectory of the vehicle is defined as P(X f |X h ), the future trajectory is modeled as a Gaussian mixture distribution composed of K Gaussian distributions linearly superposed, denoted as P(X gt |c,μ,σ): Among them, X gt represents the actual trajectory data of the vehicle in the next 5 seconds at time t, c represents the probability of each trajectory in the multimodal prediction result, and c k is the probability corresponding to trajectory k in multimodal trajectory prediction, and satisfies μ represents the predicted position result under each mode, represents the mean of the horizontal and vertical position distribution of the kth trajectory at time t; σ is the standard deviation of the Gaussian mixture distribution; Indicates that the parameter is and Gaussian distribution of σ; S22, for the multimodal trajectory prediction model, LSTM Encoder is used to encode the historical trajectory data of the autonomous vehicle and its surrounding vehicles, and then Graph Attention Network is used to extract the interaction relationship between the autonomous vehicle and other surrounding vehicles. Finally, LSTM Decoder is used to decode the future trajectory of the autonomous vehicle. In the LSTM Encoder, a weight-shared LSTM is used to extract the historical trajectory features of the autonomous driving vehicle and surrounding vehicles, denoted as L t : L t ={l (0) ,…,l (i) ,…,l (m) }=Emb(LSTM his (Emb(X h ))) Among them, l (i) represents the feature vector of vehicle number i after passing through the LSTM encoder; Emb() is a linear transformation that embeds low-dimensional xy-coordinates into a high-dimensional vector space; LSTM his Represents the long short-term memory network that processes the vehicle's historical trajectory; Using LSTM his Encode the features output by Emb(), and finally use an Emb() to encode the LSTM his The output features are further linearly transformed; S23, define a directed graph G = {V, E} to represent the relationship between vehicles in the traffic scene, where V represents a set of nodes, V = {v0, v0, …, v m },v i is the historical trajectory feature vector obtained from the LSTM Encoder; in actual traffic scenarios, the autonomous driving vehicle interacts with the surrounding vehicles, so a directed graph is used to represent the interaction between nodes, and this interaction at time t is defined as an edge set, denoted by E t : E t ={e ij │(v i ,v j )∈A nbr } Among them, e ij Represents the edge between node i and node j. Node i and node j will affect each other. S24, after the historical trajectory features of the vehicle are obtained through LSTM Encoder, the interaction features between vehicles are extracted and recorded as G t : G t ={g (0) ,g (1) ,…,g (m) }=GAN conv (L t ,E t ) Among them, GAN conv is a two-layer graph neural network encoder with 4 attention heads, g (i) represents the interaction characteristics between vehicle i and other vehicles, i = 0,…,m; S25, using the trajectory features of the autonomous driving vehicle obtained by LSTM Encoder and the interaction features between vehicles obtained by GAN Encoder as input, obtain the future trajectory X of the autonomous driving vehicle f : X f =LSTM fut (Emb(l (0) ||g (0) )) Among them, LSTM fut It represents the long short-term memory network that processes the future real trajectory of the vehicle. The symbol || represents the connection between two features. S26, dividing the graph data fragments into a training set and a validation set in a ratio of 7:3, as training and validation data for the multimodal trajectory prediction model; Define the negative log-likelihood of Gaussian mixture distribution to train the multimodal trajectory prediction model, denoted by L p : The main parameters include: batch_size, learning_rates, num_epoch, scheduler_step_size.
5. The multi-modal lane-changing trajectory prediction and safety assessment method in a strong interaction scenario according to claim 4 is characterized in that: In step S3, the uncertainty estimation model is used to measure whether the result predicted by the model is reliable, which is denoted as E: E=Emb(l (0) ||g (0) ) Use supervised learning to train the uncertainty assessment model and define the following loss function for training: Among them, RMSE is the root mean square error, Uncertainty scores for multimodal trajectory predictions.
Citation Information
Patent Citations
Multi-modal vehicle trajectory prediction method based on long and short term memory network
CN113076599A
Vehicle track multi-modal prediction method considering road information based on LSTM-GNN
CN116304969A
Interactive vehicle multi-modal trajectory prediction method based on GRU-GCN
CN116595478A
Cited By
Deep learning-based multi-mode security and protection equipment early warning method and system
CN119091384A
Scene construction method and device, computer equipment and readable storage medium
CN119623237A
Lane changing trajectory classification method based on aerial video of unmanned aerial vehicle
CN120047711A
