A vehicle trajectory prediction method considering continuous interactive information

By building a network model in a smart car to extract and model vehicle motion and spatial interaction information, it solves the problem of insufficient interpretation of interaction modeling between vehicles in the existing technology, achieves accurate prediction of the future trajectory of the vehicle, and improves the efficiency of smart cars. decision-making ability.

CN114781758BInactive Publication Date: 2024-09-17JILIN UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210594372.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-27
Publication Date
2024-09-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing vehicle trajectory prediction methods do not explain enough when modeling spatial interactions between vehicles, resulting in inaccurate predicted trajectories and increasing the difficulty of smart cars predicting the future trajectories of surrounding vehicles.

Method used

By building a network model, we extract vehicle motion information and spatial interaction information between vehicles, design the vehicle motion information extraction module, spatial interaction module and trajectory prediction module, and use the encoder, graph convolution and temporal correlation extractor to construct a loss function and run it in pytorch The model is trained under the framework to achieve accurate prediction of the future trajectory of the vehicle.

Benefits of technology

This method can accurately predict the future trajectory of vehicles, and improves the accuracy and constraint of prediction by modeling the spatial interaction information between vehicles and considering its temporal correlation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114781758B
    Figure CN114781758B
Patent Text Reader

Abstract

The present invention discloses a vehicle trajectory prediction method considering continuous interaction information. The method fully extracts vehicle motion information and inter-vehicle spatial interaction information in a vehicle trajectory data set through a constructed network model, and accurately predicts the future trajectory of the vehicle. First, the vehicle trajectory data set is processed. Then, a vehicle trajectory prediction model is designed. Finally, a loss function is constructed to train the vehicle trajectory prediction model. When modeling the spatial interaction between vehicles, the method not only extracts the inter-vehicle spatial interaction information at each historical moment, but also considers the temporal correlation of the inter-vehicle spatial interaction information, and designs a temporal correlation extractor to fully capture the temporal correlation of the inter-vehicle spatial interaction information, thereby adding constraints to the predicted trajectory of the vehicle, and making the vehicle trajectory predicted by the network more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of intelligent driving technology and relates to a vehicle trajectory prediction method, and more specifically, to a vehicle trajectory prediction method that takes into account continuous interactive information. Background Art

[0002] With the development of intelligent driving technology, driving safety issues have received widespread attention from scholars at home and abroad. In order to drive safely and efficiently in an increasingly complex road traffic environment, intelligent cars not only need to accurately locate surrounding vehicles in real time, but also should accurately understand and predict the driving behavior and future trajectory of surrounding vehicles, which is very important for the decision-making and motion risk assessment of intelligent cars. However, the driving trajectory of a vehicle is not only affected by its own historical trajectory, but also by the interaction between vehicles, which greatly increases the difficulty of intelligent cars in predicting the future trajectory of surrounding vehicles.

[0003] At present, more and more vehicle trajectory prediction methods take into account the interaction between vehicles. The advantage is that the spatial interaction information between vehicles is used as a constraint on the predicted vehicle motion, which limits the scope of the vehicle prediction trajectory. However, the existing methods have poor explanations for the interaction between vehicles. How to explicitly model the spatial interaction between vehicles is a challenge in predicting vehicle trajectories. Summary of the invention

[0004] In order to solve the above problems existing in the existing methods, the present invention proposes a vehicle trajectory prediction method considering continuous interactive information.

[0005] This method is achieved through the following technical solutions:

[0006] A vehicle trajectory prediction method considering continuous interaction information fully extracts vehicle motion information and inter-vehicle spatial interaction information in the vehicle trajectory dataset through the constructed network model, and accurately predicts the future trajectory of the vehicle. The specific steps of this method are as follows:

[0007] Step 1: Process the vehicle trajectory dataset:

[0008] First, the location information of the vehicle in the vehicle trajectory dataset is extracted in chronological order, including the horizontal and vertical position coordinates (x, y) of the vehicle; then, the extracted vehicle location information is further processed, and the processing steps include the extraction of trajectory data and the construction of the adjacency matrix;

[0009] For the extraction of trajectory data, the time length of the historical observation time domain is defined as T obs , in T obs The location information of N vehicles is extracted within the range, and the historical trajectory of the vehicle His is obtained:

[0010]

[0011] In the formula, is the location information of the vehicle at time t;

[0012] Define the future time length as T pred , get T pred The real position information of the corresponding N vehicles in the range is obtained, and the future real trajectory of the vehicle is obtained:

[0013]

[0014] In the formula, T obs +The real location information of the vehicle at time k;

[0015] For the construction of the adjacency matrix, the historical trajectory of the vehicle His is used to obtain the distance between the vehicles at each historical moment and store it in the adjacency matrix Adj. The expression of Adj is:

[0016]

[0017] In the formula, A l ,l∈{1,2,…,T obs} contains the distance information between vehicles at time l, indicating the spatial interaction information between vehicles at time l. l The expression is:

[0018]

[0019] In the formula, represents the distance between vehicles i and j at time l;

[0020] Step 2: Design a vehicle trajectory prediction model:

[0021] The vehicle trajectory prediction model consists of three modules: vehicle motion information extraction module, vehicle space interaction module and vehicle trajectory prediction module;

[0022] The vehicle motion information extraction module uses an encoder to encode His obtained in step 1 to obtain the encoded information H enc :

[0023] H enc =Encoder(His; W enc ,b enc ) (5)

[0024] In the formula, To encode information, Encoder is an encoder, which consists of a gated recurrent unit GRU. The number of input features of GRU in the encoder is 2, the number of hidden features is 64, and the sequence length is T obs , the number of layers is 1, W enc is the weight parameter of the encoder, b enc is the encoder bias parameter, H enc Aggregate the encoded information through the fully connected layer:

[0025]

[0026] In the formula, is the vehicle motion information encoding with a feature number of 32, φ is the embedding function of the fully connected layer, is the weight parameter of the fully connected layer that aggregates the encoding information, The bias parameters of the fully connected layer that aggregates the encoding information;

[0027] The vehicle spatial interaction module takes His and the corresponding Adj in step 1 as input and uses graph convolution to obtain the spatial interaction information between vehicles at each historical moment. The expression of graph convolution is:

[0028]

[0029] In the formula, Indicates A l ,l∈{1,2,…,T obs}The feature matrix of the m+1th convolutional layer, Indicates A l ,l∈{1,2,…,T obs}The feature matrix of the mth convolutional layer, W l m is the weight matrix of the mth convolutional layer, m∈{1,2,3,4}, I is the identity matrix, Λ l ∈R N×N yes The degree matrix of is a diagonal matrix, Represents Λ l The element in the qth row and qth column of yes The sum of all elements in the qth row of for The element in the qth row and pth column of Yes Normalization is used to speed up the graph convolution process, and σ is an activation function used to increase the nonlinearity of the feature matrix;

[0030] The graph convolution first expands the number of His features to 32 through a 2D convolution layer with a convolution kernel of 1×1:

[0031]

[0032] In the formula, is the motion feature of the vehicle, Conv 1×1 It is a two-dimensional convolution layer with a convolution kernel of 1×1, the number of input channel features is 2, and the number of output channel features is 32. Conv 1×1 The weight parameter, Conv 1×1 The bias parameters of

[0033] Then His ext and Multiply them and add the product to His ext Add together to get a feature number of 32

[0034]

[0035] In the formula, Represents the intermediate variable obtained after a graph convolution operation of His, ensuring that the number of features remains unchanged. Two more graph convolution operations are performed. In both graph convolution operations, a 2D convolution layer with a convolution kernel of 1×1 is used, the number of input channel features is 32, and the number of output channel features is 32. Finally, a vector containing the spatial interaction information between vehicles at each historical moment is obtained.

[0036] Considering that there is temporal correlation between the spatial interaction information between vehicles, a temporal correlation extractor is used to extract the temporal correlation between the spatial interaction information between vehicles. First, As input to the temporal correlation extractor:

[0037]

[0038] In the formula, is the spatial interaction information extracted by the temporal association extractor. Extractor is the temporal association extractor, which is composed of a gated unit GRU. The number of input features of the GRU in the temporal association extractor is 32, the number of hidden features is 64, and the sequence length is T obs , the number of layers is 1, is the weight parameter of the temporal correlation extractor, is the bias parameter of the temporal correlation extractor;

[0039] Then, Through a fully connected layer, we get a feature number of 32

[0040]

[0041] In the formula, To consider the temporally correlated spatial interaction information between vehicles, φ is the embedding function of the fully connected layer, is the weight parameter of the fully connected layer that aggregates the spatial interaction information between vehicles, is the bias parameter of the fully connected layer that aggregates the spatial interaction information between vehicles;

[0042] The vehicle trajectory prediction module predicts the future time length T by obtaining vehicle motion information and spatial interaction information between vehicles. pred The specific operation is as follows: First, and Concatenate and pass the concatenated vector through the fully connected layer to obtain an aggregate feature with a feature number of 64

[0043]

[0044] In the formula, Indicates that in the third dimension, that is, in the feature dimension splicing, φ is the embedding function of the fully connected layer, is the weight parameter of the fully connected layer that aggregates vehicle motion information and spatial interaction information between vehicles, is the bias parameter of the fully connected layer that aggregates vehicle motion information and spatial interaction information between vehicles;

[0045] Then, a fully connected layer is used to Transform in the time dimension and get T pred indivual By splicing in the time dimension, we get

[0046]

[0047] In the formula, is the intermediate variable, φ is the embedding function of the fully connected layer, is the weight parameter of the fully connected layer that aggregates temporal information, is the bias parameter of the fully connected layer that aggregates temporal information, A vector representing vehicle motion information and spatial interaction information between vehicles, Indicates that T pred indivual In the first dimension, splicing is done in the time dimension;

[0048] Finally, As the input of the decoder, the output prediction trajectory Pred is:

[0049]

[0050] In the formula, T obs +n is the predicted value of the vehicle position at time, Decoder is a decoder, the decoder is composed of a gated unit GRU, the number of input features of the GRU in the decoder is 64, the number of hidden features is 2, and the sequence length is T pred , the number of layers is 1, is the weight parameter of the decoder, is the bias parameter of the decoder;

[0051] Step 3: Construct a loss function and train the vehicle trajectory prediction model:

[0052] The expression of the loss function Loss is:

[0053]

[0054] This model uses the stochastic gradient descent optimizer under the pytorch deep learning framework to train the weight parameters and bias parameters in the vehicle trajectory prediction model. The learning rate is 0.002. When the loss function reaches the minimum value, the corresponding weight parameters and bias parameters are saved, and the vehicle trajectory prediction model training is completed.

[0055] The beneficial effects of the present invention are:

[0056] The present invention discloses a vehicle trajectory prediction method considering continuous interaction information, so that an intelligent car can accurately predict the future trajectories of surrounding vehicles; when modeling the spatial interaction between vehicles, the method not only extracts the spatial interaction information between vehicles at each historical moment, but also considers the temporal correlation of the spatial interaction information between vehicles, and designs a temporal correlation extractor to fully capture the temporal correlation of the spatial interaction information between vehicles, thereby adding constraints to the predicted trajectory of the vehicle and making the vehicle trajectory predicted by the network more accurate. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 A simplified flow chart of a vehicle trajectory prediction method considering continuous interactive information according to the present invention;

[0058] Figure 2 A network model structure diagram for a vehicle trajectory prediction method considering continuous interactive information according to the present invention; Specific implementation method:

[0059] The present invention is described in detail below in conjunction with the accompanying drawings:

[0060] The present invention proposes a vehicle trajectory prediction method that considers continuous interaction information. By constructing a network model, the vehicle motion information and the spatial interaction information between vehicles in the vehicle trajectory dataset are fully extracted to accurately predict the future trajectory of the vehicle. Figure 1 As shown, the specific steps are as follows:

[0061] Step 1: Process the vehicle trajectory dataset:

[0062] First, the location information of the vehicle in the vehicle trajectory dataset is extracted in chronological order, including the horizontal and vertical position coordinates (x, y) of the vehicle; then, the extracted vehicle location information is further processed, and the processing steps include the extraction of trajectory data and the construction of the adjacency matrix;

[0063] For the extraction of trajectory data, the time length of the historical observation time domain is defined as T obs , in T obs The location information of N vehicles is extracted within the range, and the historical trajectory of the vehicle His is obtained:

[0064]

[0065] In the formula, is the location information of the vehicle at time t;

[0066] Define the future time length as T pred , get T pred The real position information of the corresponding N vehicles in the range is obtained, and the future real trajectory of the vehicle is obtained:

[0067]

[0068] In the formula, T obs +The real location information of the vehicle at time k;

[0069] For the construction of the adjacency matrix, the historical trajectory of the vehicle His is used to obtain the distance between the vehicles at each historical moment and store it in the adjacency matrix Adj. The expression of Adj is:

[0070]

[0071] In the formula, A l ,l∈{1,2,…,T obs} contains the distance information between vehicles at time l, indicating the spatial interaction information between vehicles at time l. l The expression is:

[0072]

[0073] In the formula, represents the distance between vehicles i and j at time l;

[0074] Step 2: Design a vehicle trajectory prediction model:

[0075] like Figure 2 As shown, the vehicle trajectory prediction model consists of three modules: vehicle motion information extraction module, vehicle space interaction module and vehicle trajectory prediction module;

[0076] The vehicle motion information extraction module uses an encoder to encode His obtained in step 1 to obtain the encoded information H enc :

[0077] H enc =Encoder(His; W enc ,b enc ) (5)

[0078] In the formula, To encode information, Encoder is an encoder, which consists of a gated recurrent unit GRU. The number of input features of GRU in the encoder is 2, the number of hidden features is 64, and the sequence length is T obs , the number of layers is 1, W enc is the weight parameter of the encoder, b enc is the encoder bias parameter, H enc Aggregate the encoded information through the fully connected layer:

[0079]

[0080] In the formula, is the vehicle motion information encoding with a feature number of 32, φ is the embedding function of the fully connected layer, is the weight parameter of the fully connected layer that aggregates the encoding information, The bias parameters of the fully connected layer that aggregates the encoding information;

[0081] The vehicle spatial interaction module takes His and the corresponding Adj in step 1 as input and uses graph convolution to obtain the spatial interaction information between vehicles at each historical moment. The expression of graph convolution is:

[0082]

[0083] In the formula, Indicates A l ,l∈{1,2,…,T obs}The feature matrix of the m+1th convolutional layer, Indicates A l ,l∈{1,2,…,T obs}The feature matrix of the mth convolutional layer, W lm is the weight matrix of the mth convolutional layer, m∈{1,2,3,4}, I is the identity matrix, Λ l ∈R N×N yes The degree matrix of is a diagonal matrix, Represents Λ l The element in the qth row and qth column of yes The sum of all elements in the qth row of for The element in the qth row and pth column of Yes Normalization is used to speed up the graph convolution process, and σ is an activation function used to increase the nonlinearity of the feature matrix;

[0084] The graph convolution first expands the number of His features to 32 through a 2D convolution layer with a convolution kernel of 1×1:

[0085]

[0086] In the formula, is the motion feature of the vehicle, Conv 1×1 It is a two-dimensional convolution layer with a convolution kernel of 1×1, the number of input channel features is 2, and the number of output channel features is 32. Conv 1×1 The weight parameter, Conv 1×1 The bias parameters of

[0087] Then His ext and Multiply them and add the product to His ext Add together to get a feature number of 32

[0088]

[0089] In the formula, Represents the intermediate variable obtained after a graph convolution operation of His, ensuring that the number of features remains unchanged. Two more graph convolution operations are performed. In both graph convolution operations, a 2D convolution layer with a convolution kernel of 1×1 is used, the number of input channel features is 32, and the number of output channel features is 32. Finally, a vector containing the spatial interaction information between vehicles at each historical moment is obtained.

[0090] Considering that there is temporal correlation between the spatial interaction information between vehicles, a temporal correlation extractor is used to extract the temporal correlation between the spatial interaction information between vehicles. First, As input to the temporal correlation extractor:

[0091]

[0092] In the formula, is the spatial interaction information extracted by the temporal association extractor. Extractor is the temporal association extractor, which is composed of a gated unit GRU. The number of input features of the GRU in the temporal association extractor is 32, the number of hidden features is 64, and the sequence length is T obs , the number of layers is 1, is the weight parameter of the temporal correlation extractor, is the bias parameter of the temporal correlation extractor;

[0093] Then, Through a fully connected layer, we get a feature number of 32

[0094]

[0095] In the formula, To consider the temporally correlated spatial interaction information between vehicles, φ is the embedding function of the fully connected layer, is the weight parameter of the fully connected layer that aggregates the spatial interaction information between vehicles, is the bias parameter of the fully connected layer that aggregates the spatial interaction information between vehicles;

[0096] The vehicle trajectory prediction module predicts the future time length T by obtaining vehicle motion information and spatial interaction information between vehicles. pred The specific operation is as follows: First, and Concatenate and pass the concatenated vector through the fully connected layer to obtain an aggregate feature with a feature number of 64

[0097]

[0098] In the formula, Indicates that in the third dimension, that is, in the feature dimension splicing, φ is the embedding function of the fully connected layer, is the weight parameter of the fully connected layer that aggregates vehicle motion information and spatial interaction information between vehicles, is the bias parameter of the fully connected layer that aggregates vehicle motion information and spatial interaction information between vehicles;

[0099] Then, a fully connected layer is used to Transform in the time dimension and get T pred indivual By splicing in the time dimension, we get

[0100]

[0101] In the formula, is the intermediate variable, φ is the embedding function of the fully connected layer, is the weight parameter of the fully connected layer that aggregates temporal information, is the bias parameter of the fully connected layer that aggregates temporal information, A vector representing vehicle motion information and spatial interaction information between vehicles, Indicates that T pred indivual In the first dimension, splicing is done in the time dimension;

[0102] Finally, As the input of the decoder, the output prediction trajectory Pred is:

[0103]

[0104] In the formula, T obs +n is the predicted value of the vehicle position at time, Decoder is a decoder, the decoder is composed of a gated unit GRU, the number of input features of the GRU in the decoder is 64, the number of hidden features is 2, and the sequence length is T pred , the number of layers is 1, is the weight parameter of the decoder, is the bias parameter of the decoder;

[0105] Step 3: Construct a loss function and train the vehicle trajectory prediction model:

[0106] The expression of the loss function Loss is:

[0107]

[0108] This model uses the stochastic gradient descent optimizer under the pytorch deep learning framework to train the weight parameters and bias parameters in the vehicle trajectory prediction model. The learning rate is 0.002. When the loss function reaches the minimum value, the corresponding weight parameters and bias parameters are saved, and the vehicle trajectory prediction model training is completed.

Claims

1. A vehicle trajectory prediction method considering continuous interactive information, which fully extracts vehicle motion information and inter-vehicle spatial interaction information in the vehicle trajectory dataset through a constructed network model, and accurately predicts the future trajectory of the vehicle, characterized in that: The specific steps are as follows: Step 1: Process the vehicle trajectory dataset: First, the location information of the vehicle in the vehicle trajectory dataset is extracted in chronological order, including the horizontal and vertical position coordinates (x, y) of the vehicle; then, the extracted vehicle location information is further processed, and the processing steps include the extraction of trajectory data and the construction of the adjacency matrix; For the extraction of trajectory data, the time length of the historical observation time domain is defined as T obs , in T obs The location information of N vehicles is extracted within the range, and the historical trajectory of the vehicle His is obtained: In the formula, is the location information of the vehicle at time t; Define the future time length as T pred , get T pred The real position information of the corresponding N vehicles in the range is obtained, and the future real trajectory of the vehicle is obtained: In the formula, T obs +The real location information of the vehicle at time k; For the construction of the adjacency matrix, the historical trajectory of the vehicle His is used to obtain the distance between the vehicles at each historical moment and store it in the adjacency matrix Adj. The expression of Adj is: In the formula, A l ,l∈{1,2,…,T obs } contains the distance information between vehicles at time l, indicating the spatial interaction information between vehicles at time l. l The expression is: In the formula, represents the distance between vehicles i and j at time l; Step 2: Design a vehicle trajectory prediction model: The vehicle trajectory prediction model consists of three modules: vehicle motion information extraction module, vehicle space interaction module and vehicle trajectory prediction module; The vehicle motion information extraction module uses an encoder to encode His obtained in step 1 to obtain the encoded information H enc : H enc =Encoder(His;W enc ,b enc ) (5) In the formula, To encode information, Encoder is an encoder, which consists of a gated recurrent unit GRU. The number of input features of GRU in the encoder is 2, the number of hidden features is 64, and the sequence length is T obs , the number of layers is 1, W enc is the weight parameter of the encoder, b enc is the encoder bias parameter, H enc Aggregate the encoded information through the fully connected layer: In the formula, is the vehicle motion information encoding with a feature number of 32, φ is the embedding function of the fully connected layer, is the weight parameter of the fully connected layer that aggregates the encoding information, The bias parameters of the fully connected layer that aggregates the encoding information; The vehicle spatial interaction module takes His and the corresponding Adj in step 1 as input and uses graph convolution to obtain the spatial interaction information between vehicles at each historical moment. The expression of graph convolution is: In the formula, Indicates A l ,l∈{1,2,…,T obs }The feature matrix of the m+1th convolutional layer, Indicates A l ,l∈{1,2,…,T obs }The feature matrix of the mth convolutional layer, W l m is the weight matrix of the mth convolutional layer, m∈{1,2,3,4}, I is the identity matrix, Λ l ∈R N×N yes The degree matrix of is a diagonal matrix, Represents Λ l The element in the qth row and qth column of yes The sum of all elements in the qth row of for The element in the qth row and pth column of Yes Normalization is used to speed up the graph convolution process, and σ is an activation function used to increase the nonlinearity of the feature matrix; The graph convolution first expands the number of His features to 32 through a 2D convolution layer with a convolution kernel of 1×1: In the formula, is the motion feature of the vehicle, Conv 1×1 It is a two-dimensional convolution layer with a convolution kernel of 1×1, the number of input channel features is 2, and the number of output channel features is 32. Conv 1×1 The weight parameter, Conv 1×1 The bias parameters of Then His ext and Multiply them and add the product to His ext Add together to get a feature number of 32 In the formula, Represents the intermediate variable obtained after a graph convolution operation of His, ensuring that the number of features remains unchanged. Two more graph convolution operations are performed. In both graph convolution operations, a 2D convolution layer with a convolution kernel of 1×1 is used, the number of input channel features is 32, and the number of output channel features is 32. Finally, a vector containing the spatial interaction information between vehicles at each historical moment is obtained. Considering that there is temporal correlation between the spatial interaction information between vehicles, a temporal correlation extractor is used to extract the temporal correlation between the spatial interaction information between vehicles. First, As input to the temporal correlation extractor: In the formula, is the spatial interaction information extracted by the temporal association extractor. Extractor is the temporal association extractor, which is composed of a gated unit GRU. The number of input features of the GRU in the temporal association extractor is 32, the number of hidden features is 64, and the sequence length is T obs , the number of layers is 1, is the weight parameter of the temporal correlation extractor, is the bias parameter of the temporal correlation extractor; Then, Through a fully connected layer, we get a feature number of 32 In the formula, To consider the temporally correlated spatial interaction information between vehicles, φ is the embedding function of the fully connected layer, is the weight parameter of the fully connected layer that aggregates the spatial interaction information between vehicles, is the bias parameter of the fully connected layer that aggregates the spatial interaction information between vehicles; The vehicle trajectory prediction module predicts the future time length T by obtaining vehicle motion information and spatial interaction information between vehicles. pred The specific operation is as follows: First, and Concatenate and pass the concatenated vector through the fully connected layer to obtain an aggregate feature with a feature number of 64 In the formula, Indicates that in the third dimension, that is, in the feature dimension splicing, φ is the embedding function of the fully connected layer, is the weight parameter of the fully connected layer that aggregates vehicle motion information and spatial interaction information between vehicles, is the bias parameter of the fully connected layer that aggregates vehicle motion information and spatial interaction information between vehicles; Then, a fully connected layer is used to Transform in the time dimension and get T pred indivual By splicing in the time dimension, we get In the formula, is the intermediate variable, φ is the embedding function of the fully connected layer, is the weight parameter of the fully connected layer that aggregates temporal information, is the bias parameter of the fully connected layer that aggregates temporal information, A vector representing vehicle motion information and spatial interaction information between vehicles, Indicates that T pred indivual In the first dimension, splicing is done in the time dimension; Finally, As the input of the decoder, the output prediction trajectory Pred is: In the formula, T obs +n is the predicted value of the vehicle position at time, Decoder is a decoder, the decoder is composed of a gated unit GRU, the number of input features of the GRU in the decoder is 64, the number of hidden features is 2, and the sequence length is T pred , the number of layers is 1, is the weight parameter of the decoder, is the bias parameter of the decoder; Step 3: Construct a loss function and train the vehicle trajectory prediction model: The expression of the loss function Loss is: This model uses the stochastic gradient descent optimizer under the pytorch deep learning framework to train the weight parameters and bias parameters in the vehicle trajectory prediction model. The learning rate is 0.

002. When the loss function reaches the minimum value, the corresponding weight parameters and bias parameters are saved, and the vehicle trajectory prediction model training is completed.