Multi-agent trajectory prediction method and device based on attention enhancement and storage medium
By introducing causal and multi-modal attention mechanisms into multi-agent trajectory prediction, we build an attention-enhanced multi-agent trajectory prediction model, which solves the problems of interactive relationship modeling noise and insufficient multi-modal prediction capabilities in traditional methods. More efficient and accurate trajectory prediction is achieved.
Patent Information
- Application Number
- CN202410700688.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-05-31
AI Technical Summary
Traditional multi-agent trajectory prediction methods are easy to introduce noise when modeling interactive relationships, and have insufficient prediction capabilities for multi-modal trajectories, making it difficult to effectively capture the differences between different modalities.
The multi-agent trajectory prediction method (AET) based on enhanced attention is adopted. By constructing a causal graph encoder and a multi-modal graph encoder, the attention mechanism is used to extract the interactive information between the agent and the lane segment, and generate multiple models. state embedding, and then perform trajectory prediction.
It improves the accuracy and calculation speed of trajectory prediction, enhances the capture of differences between different modes, and avoids multi-modal collapse. Experimental results show that it outperforms existing methods on real data sets.
Smart Images

Figure CN118690239A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of autonomous driving technology, and in particular to a multi-agent trajectory prediction method, device and storage medium based on enhanced attention. Background Art
[0002] Autonomous driving is an important part of smart city and smart transportation construction, and it is expected to solve traffic-related problems such as safety and congestion. Only when the safety of autonomous driving is verified can the large-scale application of autonomous vehicles become a reality. One of the key technologies is the multi-agent trajectory prediction task. However, the urban traffic environment has complex and diverse spatiotemporal relationships, which brings great challenges to the trajectory prediction of multi-agents.
[0003] In traditional multi-agent trajectory prediction methods, the modeling of the interaction graph is based on Euclidean distance, that is, the agents and lane segments within a certain distance range have an interaction relationship, which will introduce noise. In addition, when predicting trajectories of multiple modes, the existing trajectory prediction methods tend to ignore the differences between different modes, that is, the prediction ability of multi-modal trajectories is insufficient. Therefore, in view of the problem that the interaction relationship modeling will introduce noise and the multi-modal prediction ability is insufficient in the traditional multi-agent trajectory prediction task, an effective solution needs to be proposed. Summary of the invention
[0004] The purpose of the present invention is to overcome the defects of the above-mentioned prior art in the traditional multi-agent trajectory prediction task, that the interactive relationship modeling will introduce noise and the multi-modal prediction ability is insufficient, and to provide a multi-agent trajectory prediction method, device and storage medium based on enhanced attention, wherein the multi-agent trajectory prediction method based on enhanced attention (Attention Enhanced Transformer for Multi-Agent Trajectory Prediction, AET), the AET method constructs a deep learning model, by learning spatiotemporal information from the trajectory of the agent and the lane segment information and optimizing the model parameters, so as to predict the trajectory of the agent. The method constructs an interaction graph between agents and an interaction graph between agents and lane segments provided by high-precision maps, uses the information such as the displacement, speed and deflection angle of the agent to construct the node features of the agent, uses the direction information of the lane segment as the lane segment node feature, and uses the relative distance, relative speed and other information as the edge features in the interaction graph; at the same time, the attention mechanism is used for the correlation between agents, and embedding is extracted from the interaction graph.
[0005] The purpose of the present invention can be achieved by the following technical solutions:
[0006] According to a first aspect of the present invention, a multi-agent trajectory prediction method based on enhanced attention is provided, comprising the following steps: acquiring trajectory data and lane segment data of a multi-agent; based on the trajectory data and the lane segment data, performing trajectory prediction on a target agent using a trained multi-agent trajectory prediction model based on enhanced attention to obtain a final trajectory prediction result; wherein the multi-agent trajectory prediction model based on enhanced attention is constructed at least based on a graph encoder, a variant of a graph encoder, a time encoder and a trajectory decoder, and the variant of the graph encoder includes a causal graph encoder and a multimodal graph encoder.
[0007] As a preferred technical solution, the causal graph encoder includes an agent-road causal graph encoder and an agent-agent causal graph encoder.
[0008] As a preferred technical solution, the multi-agent trajectory prediction model based on enhanced attention also includes a fine encoder.
[0009] As a preferred technical solution, a trained multi-agent trajectory prediction model based on enhanced attention is used to predict the trajectory of the target agent. The specific process includes: step S201, obtaining the agent-agent graph of multiple past moments, and inputting it into the agent-agent causal graph encoder to obtain a causal embedding sequence; step S202, inputting the causal embedding sequence into the time encoder to obtain the causal embedding of the agent; step S203, obtaining the road-road graph, and inputting it into the graph encoder to obtain the road embedding; step S204, obtaining the agent-road graph, and inputting the agent-road graph, the road embedding, and the causal embedding into the agent-road causal graph encoder to update the causal embedding of the agent; step S205, inputting the updated causal embedding into the multimodal graph encoder to generate causal embeddings of agents of multiple modalities; step S206, inputting the causal embeddings of the agents of multiple modalities into the trajectory decoder to obtain causal prediction results; step S207, inputting the causal prediction results into the fine encoder to obtain the fine prediction results as the final trajectory prediction results.
[0010] As a preferred technical solution, the training process of the multi-agent trajectory prediction model based on enhanced attention specifically includes: step S211, obtaining the agent-agent graph of multiple past moments, and inputting it into the agent-agent causal graph encoder to obtain a causal embedding sequence and a trivial embedding sequence; step S212, inputting the causal embedding sequence and the trivial embedding sequence into the time encoder to obtain the causal embedding and trivial embedding of the agent; step S213, obtaining a road-road graph, and inputting it into the graph encoder to obtain the road embedding; step S214, obtaining the agent-road graph, and inputting the agent-road graph, the road embedding, the causal embedding and the trivial embedding into the agent-road encoder. Step S215: input the updated causal embedding and trivial embedding into the multimodal graph encoder to generate causal embedding and trivial embedding of agents of multiple modalities; Step S216: input the trajectory sequence of the agent at multiple moments in the past into the time encoder to obtain the non-interactive agent embedding; Step S217: input the non-interactive agent embedding, the causal embedding and trivial embedding of the agents of multiple modalities into the trajectory decoder to obtain causal prediction results, non-interaction prediction results and trivial prediction results; Step S218: input the causal prediction results into the fine encoder to obtain the fine prediction results as the final trajectory prediction results.
[0011] As a preferred technical solution, the causal graph encoder includes at least one edge classifier, which is used to calculate whether corresponding neighbors and edges belong to a trivial graph.
[0012] As a preferred technical solution, the calculation process of the edge classifier is specifically expressed as follows:
[0013] a′ ij =θ(FFN(z ij ))
[0014] In the formula, θ is the Tanh activation function, which converts a′ ij According to the positive and negative, it can be divided into causal graph or trivial graph, z ij It is the concatenation result of node and edge features.
[0015] As a preferred technical solution, the optimization function used by the trajectory decoder is expressed as:
[0016]
[0017] Where, L reg is the negative log-likelihood loss, L cls is the classification loss, is the L2-norm loss between the predicted trajectory and the true trajectory, o′ causal and o′trivial The inverse of the L2-norm loss, o′ causal and o′ trivial They are causal prediction results and trivial prediction results, respectively.
[0018] According to a second aspect of the present invention, there is provided a multi-agent trajectory prediction device based on enhanced attention, comprising a memory, a processor, and a program stored in the memory, wherein the method described is implemented when the processor executes the program.
[0019] According to a third aspect of the present invention, there is provided a storage medium having a program stored thereon, wherein the program implements the method described above when executed.
[0020] Compared with the prior art, the present invention has the following beneficial effects:
[0021] 1. The multi-agent trajectory prediction method proposed in the present invention proposes a causal attention mechanism based on causal learning and a multimodal attention mechanism. Specifically, a causal graph encoder and a multimodal graph encoder are used when constructing a multi-agent trajectory prediction model based on enhanced attention. The causal graph encoder is used to implement the causal attention mechanism, which can separate the noise in the interaction graph. The multimodal graph encoder is used to implement the multimodal attention mechanism, construct multiple attention graphs, and realize embedding under different modalities. The combined effect of the two mechanisms can effectively improve the calculation speed and accuracy of trajectory prediction, while improving the differences between different modalities and preventing multiple modalities from collapsing into one modality.
[0022] 2. In the multi-agent trajectory prediction method proposed in the present invention, the agent-agent graph is first divided into a causal graph and a trivial graph, and then the agent-road graph is divided into a causal graph and a trivial graph, so as to capture information that is beneficial to trajectory prediction; a multimodal graph encoder is used to generate embeddings of different modalities to enhance the differences between different modalities; and a decoder is used to obtain non-interaction prediction results, causal prediction results, and trivial prediction results, and these results are input into a loss function suitable for a multimodal trajectory prediction task based on a causal graph, and the segmentation of the causal graph and the trivial graph is optimized; finally, the causal prediction results are input into a fine decoder to obtain a prediction result with higher accuracy, and, by conducting experiments on two sets of real data sets, the experimental results prove that compared with the existing multi-agent trajectory prediction method, the method provided by the present invention is effective. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 Schematic diagram of the structure of a multi-agent trajectory prediction model based on enhanced attention in an embodiment of the present invention;
[0024] Figure 2 It is a schematic diagram of the structure of a causal graph encoder model in an embodiment of the present invention;
[0025] Figure 3 Schematic diagram of a process of using a trained multi-agent trajectory prediction model based on enhanced attention to predict the trajectory of a target agent in an embodiment of the present invention. DETAILED DESCRIPTION
[0026] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.
[0027] Example
[0028] This embodiment provides a multi-agent trajectory prediction method based on enhanced attention (i.e., AET method). The AET method inputs the trajectory information of the multi-agents and the lane segment information in the high-precision map, and uses the multi-agent trajectory prediction model based on enhanced attention optimized by deep learning to perform calculations to obtain the final agent trajectory prediction data.
[0029] like Figure 1 As shown in the figure, the AET model is mainly constructed by three modules: graph encoder, time encoder, and trajectory decoder. The graph encoder has two variants: causal graph encoder and multimodal graph encoder. The trajectory information of multiple agents and the interaction graph are used as the data of the model. The encoder encodes the input and transforms it into a multimodal embedding, which is then input into the decoder to obtain the trajectory prediction result. The specific contents of each module are as follows:
[0030] 1. Graph Encoder
[0031] Use the self-attention mechanism to calculate the attention score of the edge and normalize it using soffmax to get the attention score a ij , perform weighted summation to obtain information about neighboring nodes. Then use the gating mechanism to update the node features.
[0032] In the process of calculating attention, there are three learnable matrices W q , W k and W v , these three matrices are used to obtain the embedding of each node and its neighbors, where the embedding of its neighbors consists of the features of the edges and the neighbor nodes themselves:
[0033] q i =W q z i , k ij =W k z ij , v ij =W v z ij (1)
[0034] Among them, z i represents the embedding of the node, z ij Represents the concatenation of the embeddings of neighbor nodes and corresponding edges. i , k ij , v ij , we can calculate the attention score between node i and its neighbor nodes, and perform weighted summation based on this attention score to obtain the embedding of the neighbor information:
[0035]
[0036] Among them, d q Yes i The dimension, N i is the neighbor of node i, m i is the weighted sum of the embeddings of neighboring nodes, j is a neighbor of node i, and v ij is the joint embedding of nodes i and j. Since the impact of neighbor information on trajectory prediction may be different in different scenarios, a gating mechanism is used to fuse neighbor information:
[0037] g i =sigmoid(W gate [z i ||m i ]) (4)
[0038] z′ i =g i ⊙W self z i +(1-g i )⊙m i (5)
[0039] Among them, g i is the scaling factor calculated by the gating mechanism, sigmoid is the activation function, z′ i is the updated node embedding, W gate and W self is a learnable matrix, ⊙ is a dot product operation, and [·||·] represents a concatenation operation. A feedforward module is then used to update the output z of the graph encoder. j ″:
[0040] z i = FFN(z′ i )=δ(W 1 z′ i +b 1 )W 2 +b 2 (6)
[0041] Among them, W 1 and W 2 is a learnable matrix, b 1 and b 2 is a learnable bias, δ is the Relu activation function, and FFN represents a feed-forward neural network.
[0042] 2. Causal Graph Encoder
[0043] This embodiment provides a method for designing a variant of a graph encoder, called a causal graph encoder, which is used to select edges in the graph that are truly useful for predicting trajectories, such as Figure 2 As shown in Figure 2. The causal graph encoder is applied to the agent-agent causal graph encoder and the agent-lane causal graph encoder, which have the same network structure. Traditional graph neural network models usually learn the statistical correlations between all inputs and labels indiscriminately in the training data, which will introduce some trivial edges. This method uses an edge classifier to calculate whether the corresponding neighbors and edges belong to the trivial graph:
[0044] a′ ij =θ(FFN(z ij )) (7)
[0045] In the formula, θ is the Tanh activation function, which can convert a′ ij Only based on the positive and negative, it can be divided into causal graphs or trivial graphs. ij is the concatenation result of the node and edge features. The neighbors of node i are and Neighbor embedding can be expressed as:
[0046]
[0047] In the formula, v j is the embedding of neighbor node j. The superscripts causal and trivial represent the causal graph and trivial graph, respectively.
[0048] The subsequent operations are the same as in the graph encoder, using the gating mechanism and FFN to update the node features.
[0049] 3. Multimodal Graph Encoder
[0050] In order to prevent modal collapse, this method proposes to use a multimodal attention mechanism to alleviate the problem of modal collapse, so as to obtain more accurate and reasonable prediction results. For example, when predicting a right turn, more emphasis should be placed on the attention of the agent on the right, rather than calculating the attention scores of all agents and lane nodes equally. Unlike the causal attention mechanism, this method focuses more on how to automatically allocate regions of interest for different modalities. Therefore, the calculation of multimodal attention is based only on the edges rather than on the features of both the edges and the neighboring nodes. By inputting the features of the edges into the multimodal attention layer, k attention scores can be obtained (k is the number of modalities desired to be output), and obtained in a similar way to the causal graph encoder. Then use the gating mechanism and FFN to update the node features to obtain multimodal features
[0051] 4. Time Encoder
[0052] A temporal encoder is used to capture temporal dependencies obtained from observed historical trajectories. A time series of node feature embeddings can be obtained from the agent-agent causal graph encoder and the sequence is fed into the temporal encoder. Since the input agent trajectory may be incomplete, the missing trajectory information needs to be replaced with a trainable embedding. In addition, since the temporal encoder is based on the Transformer architecture, a time vector needs to be added to express the temporal order. Subsequently, the time series features are input into the following temporal attention module:
[0053]
[0054] in, is a learnable matrix, u, v represent time steps, d q Yes i The dimension, M uv Represents a temporal mask, which is used to ensure that the embedding in the sequence only pays attention to the time step before it, and the attention score for the subsequent time step is 0.
[0055] 5. Trajectory decoder
[0056] In order to handle the multimodality of trajectories, a GRU-based Laplacian mixture density network is used. For each agent i, a multimodal embedding and unimodal embedding as the hidden state and input of the GRU, where the unimodal embedding is the output of the agent-path causal encoder, denoted by z i,AL :
[0057]
[0058] In the formula, o i Represents the output of the trajectory decoder GRU.
[0059] Then use two MLPs to predict the trajectory μ of the agent i And the corresponding uncertainty. In addition, an MLP is used to predict the probability π of each trajectory i Since the embedding used in GRU’s prediction has been processed by the time encoder and cannot reflect the continuous relationship in time, the GRU prediction result and the agent’s historical trajectory μ i,Past Splicing and performing secondary predictions can produce more refined results.
[0060] o′=GRU refined (FFN([μ i,Past ||μ i ])) (14) Corresponding to the causal graph and the trivial graph, we can get o′ causal and o′ trivial The final optimization function is:
[0061]
[0062] Among them, L reg is the negative log-likelihood loss, L cls is the classification loss, calculated using cross entropy, The calculation is the L2-norm loss between the predicted trajectory and the true trajectory, Calculate o′ causal and o′ trivial The inverse of the L2-norm loss.
[0063] The training process of the aforementioned AET model specifically includes:
[0064] Step S211, obtain the past T h The agent-agent graph at each moment is input into the agent-agent causal graph encoder to obtain the causal embedding sequence and the trivial embedding sequence;
[0065] Step S212, inputting the causal embedding sequence and the trivial embedding sequence into the temporal encoder to obtain the causal embedding and trivial embedding of the agent;
[0066] Step S213, obtaining a road-road graph, and inputting it into a graph encoder to obtain road embedding;
[0067] Step S214, obtaining an agent-road graph, and inputting the agent-road graph, road embedding, causal embedding, and trivial embedding into an agent-road causal graph encoder to update the agent's causal embedding and trivial embedding;
[0068] Step S215, inputting the updated causal embedding and trivial embedding into the multimodal graph encoder to generate causal embedding and trivial embedding of agents of multiple modalities;
[0069] Step S216, inputting the trajectory sequence of the agent at multiple past moments into the time encoder to obtain the non-interactive agent embedding;
[0070] Step S217, inputting the non-interactive agent embedding, the causal embedding and the trivial embedding of the agents of multiple modalities into the trajectory decoder to obtain the causal prediction results, the non-interactive prediction results and the trivial prediction results;
[0071] Step S218, inputting the causal prediction result into a fine encoder to obtain a fine prediction result as the final trajectory prediction result.
[0072] like Figure 3 As shown in the figure, based on the trained AET model, the specific process of trajectory prediction for the target agent includes:
[0073] First, obtain the past T h The agent-agent graph at each moment is obtained and input into the agent-agent causal graph encoder to obtain a causal embedding sequence, which is then input into the time encoder to obtain the causal embedding of the agent; secondly, the road-road graph is obtained and input into the graph encoder to obtain the road embedding; then, the agent-road graph is obtained, and the agent-road graph, road embedding, and causal embedding are input into the agent-road causal graph encoder to update the causal embedding of the agent; then the updated causal embedding is input into the multimodal graph encoder to generate causal embeddings of agents in multiple modalities; finally, the causal embeddings of agents in multiple modalities are input into the trajectory decoder to obtain the causal prediction result; in order to improve the accuracy of the prediction, the causal prediction result is then input into the fine encoder to obtain the fine prediction result as the final trajectory prediction result.
[0074] Next, in order to verify the prediction performance, the AET method provided in this embodiment was experimented on two sets of real trajectory prediction data, namely the Argoverse dataset and the INTERACTION dataset for trajectory prediction. Both datasets provide the trajectory information of the agent and a high-precision map. The experimental results are shown in Tables 1 and 2.
[0075] Table 1 Trajectory prediction results on the Argoverse dataset
[0076]
[0077] Table 2 Trajectory prediction results on the INTERACTION dataset
[0078]
[0079] As shown in Table 1, the AET method proposed in this example achieved values of 0.7577, 1.1217, and 0.1169 in minADE, minFDE, and MR, respectively; it outperformed the existing advanced methods in minFDE and MR, and was not much different from TSGN in minADE. These results show the significant progress made by the AET method in trajectory prediction.
[0080] As shown in Table 2, the AET method proposed in this embodiment achieves the minimum values of 0.09 and 0.24 in minADE and minFDE, respectively, which are better than the existing advanced methods. Compared with the second-place CASPNet++, the AET method improves minADE and minFDE by 0.03 and 0.04 respectively.
[0081] In summary, the AET method addresses the problems of noise introduced by interactive relationship modeling and insufficient multimodal prediction capabilities in traditional trajectory prediction tasks. It proposes a causal attention mechanism based on causal learning and a multimodal attention mechanism, and thus proposes a multi-agent trajectory prediction method based on enhanced attention. Experiments were conducted on two sets of real data sets, and the experimental results proved the effectiveness and progress of the AET method.
[0082] Further, the present embodiment also provides a multi-agent trajectory prediction device based on enhanced attention, including a memory, a processor, and a program stored in the memory, and the processor implements the aforementioned method when executing the program. The device processor includes a central processing unit (CPU), which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) or computer program instructions loaded from a storage unit to a random access memory (RAM). In RAM, various programs and data required for device operation can also be stored. The CPU, ROM, and RAM are connected to each other via a bus. The input / output (I / O) interface is also connected to the bus. Multiple components in the device are connected to the I / O interface, including: input units, such as keyboards, mice, etc.; output units, such as various types of displays, speakers, etc.; storage units, such as disks, optical disks, etc.; and communication units, such as network cards, modems, wireless communication transceivers, etc. The communication unit allows the device to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunication networks. The processing unit performs the various methods and processes described above, such as the aforementioned method. For example, in some embodiments, the aforementioned method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit. In some embodiments, part or all of the computer program may be loaded and / or installed on the device via a ROM and / or a communication unit. When the computer program is loaded into the RAM and executed by the CPU, one or more steps in the aforementioned method may be performed. Alternatively, in other embodiments, the CPU may be configured to perform the aforementioned method in any other appropriate manner (e.g., by means of firmware). The functions described above may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0083] Further, the present embodiment also provides a storage medium on which a program is stored, and the aforementioned method is implemented when the program is executed. The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as an independent software package and partially on a remote machine or completely on a remote machine or server. In the context of the present invention, a computer-readable medium can be a tangible medium that can contain or store a program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the above. More specific examples of machine-readable storage media would include electrical connections based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fibers, a portable compact disk-read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0084] The preferred specific embodiments of the present invention are described in detail above. It should be understood that a person skilled in the art can make many modifications and changes based on the concept of the present invention without creative work. Therefore, any technical solution that can be obtained by a person skilled in the art through logical analysis, reasoning or limited experiments based on the concept of the present invention on the basis of the prior art should be within the scope of protection determined by the claims.
Claims
1. A multi-agent trajectory prediction method based on enhanced attention, characterized in that: The following steps are involved: Obtain trajectory data and lane segment data of multiple agents; Based on the trajectory data and the lane segment data, using the trained multi-agent trajectory prediction model based on enhanced attention to predict the trajectory of the target agent, to obtain a final trajectory prediction result; Among them, the multi-agent trajectory prediction model based on enhanced attention is constructed at least based on a graph encoder, a variant of the graph encoder, a time encoder and a trajectory decoder, and the variant of the graph encoder includes a causal graph encoder and a multimodal graph encoder.
2. The multi-agent trajectory prediction method based on enhanced attention according to claim 1 is characterized in that: The causal graph encoder includes an agent-road causal graph encoder and an agent-agent causal graph encoder.
3. The multi-agent trajectory prediction method based on enhanced attention according to claim 1 is characterized in that: The multi-agent trajectory prediction model based on enhanced attention also includes a fine encoder.
4. The multi-agent trajectory prediction method based on enhanced attention according to claim 3 is characterized in that: The trajectory prediction of the target agent is performed using the trained multi-agent trajectory prediction model based on enhanced attention. The specific process includes: Step S201, obtaining an agent-agent graph at multiple past moments and inputting it into an agent-agent causal graph encoder to obtain a causal embedding sequence; Step S202, inputting the causal embedding sequence into a temporal encoder to obtain the causal embedding of the agent; Step S203, obtaining a road-road graph, and inputting it into a graph encoder to obtain road embedding; Step S204, obtaining an agent-road graph, and inputting the agent-road graph, the road embedding, and the causal embedding into an agent-road causal graph encoder to update the agent's causal embedding; Step S205, inputting the updated causal embedding into the multimodal graph encoder to generate causal embeddings of agents of multiple modalities; Step S206, embedding the causal relationships of the multiple modal agents into an input trajectory decoder to obtain causal prediction results; Step S207: input the causal prediction result into a fine encoder to obtain a fine prediction result as a final trajectory prediction result.
5. The multi-agent trajectory prediction method based on enhanced attention according to claim 1 is characterized in that: The training process of the multi-agent trajectory prediction model based on enhanced attention specifically includes: Step S211, obtaining the agent-agent graph of multiple past moments and inputting it into the agent-agent causal graph encoder to obtain a causal embedding sequence and a trivial embedding sequence; Step S212, inputting the causal embedding sequence and the trivial embedding sequence into a temporal encoder to obtain the causal embedding and trivial embedding of the agent; Step S213, obtaining a road-road graph, and inputting it into a graph encoder to obtain road embedding; Step S214, obtaining an agent-road graph, and inputting the agent-road graph, the road embedding, the causal embedding, and the trivial embedding into an agent-road causal graph encoder to update the agent's causal embedding and trivial embedding; Step S215, inputting the updated causal embedding and trivial embedding into the multimodal graph encoder to generate causal embedding and trivial embedding of agents of multiple modalities; Step S216, inputting the trajectory sequence of the agent at multiple past moments into the time encoder to obtain the non-interactive agent embedding; Step S217, inputting the non-interactive agent embedding, the causal embedding and the trivial embedding of the agents of the multiple modalities into a trajectory decoder to obtain a causal prediction result, a non-interactive prediction result and a trivial prediction result; Step S218: input the causal prediction result into a fine encoder to obtain a fine prediction result as the final trajectory prediction result.
6. The multi-agent trajectory prediction method based on enhanced attention according to claim 1 is characterized in that: The causal graph encoder includes at least one edge classifier, which is used to calculate whether corresponding neighbors and edges belong to a trivial graph.
7. The multi-agent trajectory prediction method based on enhanced attention according to claim 6 is characterized in that: The calculation process of the edge classifier is specifically expressed as follows: and i ij =θ(FFN(z ij )) In the formula, θ is the Tanh activation function, which converts a ′ ′j According to the positive and negative, it can be divided into causal graph or trivial graph, z ij It is the concatenation result of node and edge features.
8. The multi-agent trajectory prediction method based on enhanced attention according to claim 1 is characterized in that: The optimization function used by the trajectory decoder is expressed as: Where, L reg is the negative log-likelihood loss, L cls is the classification loss, is the L2-norm loss between the predicted trajectory and the true trajectory, for o ′causal and ′trivial The inverse of the L2-norm loss, o ′causal and ′trivial They are causal prediction results and trivial prediction results, respectively.
9. A multi-agent trajectory prediction device based on enhanced attention, comprising a memory, a processor, and a program stored in the memory, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 8 is implemented.
10. A storage medium having a program stored thereon, characterized in that: When the program is executed, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Pedestrian trajectory prediction method and system based on multi-interaction space-time diagram network
CN113781527A
Cognitive classification and prediction method and system based on eye movement track and deep learning
CN113989912A
Multi-agent unified interaction track prediction method, system, equipment and medium
CN116629462A
Method for predicting track of surrounding vehicle based on data driving and electronic equipment thereof
CN117593332A
Trajectory prediction using efficient attention neural networks
US20230406360A1
Cited By
Trajectory prediction method, system and device based on hybrid Fourier encoder and storage medium
CN119623779A
