Method and device for multi-agent trajectory prediction based on enhanced attention, and storage medium

By constructing a causal graph encoder and a multimodal graph encoder using the AET method, the problems of noise and insufficient multimodal prediction in traditional multi-agent trajectory prediction are solved, and faster and more accurate trajectory prediction is achieved.

CN118690239BActive Publication Date: 2026-11-24TONGJI UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410700688.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2026-11-24
Estimated Expiration
2044-05-31

AI Technical Summary

Technical Problem

Traditional multi-agent trajectory prediction methods introduce noise due to interaction relationship modeling and lack of multimodal prediction capabilities, making it difficult to accurately predict the trajectories of multiple agents in complex urban traffic environments.

Method used

We employ an enhanced attention-based multi-agent trajectory prediction (AET) method. By constructing a causal graph encoder and a multimodal graph encoder, we learn spatiotemporal information using agent and lane segment information, extract embeddings using an attention mechanism, separate noise in the interaction graph, and improve multimodal prediction capabilities.

Benefits of technology

It improves the computational speed and accuracy of trajectory prediction, enhances the differences between different modes, prevents multimodal collapse, and obtains more accurate prediction results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690239B_ABST
    Figure CN118690239B_ABST
Patent Text Reader

Abstract

This invention relates to a method, apparatus, and storage medium for multi-agent trajectory prediction based on enhanced attention. The method acquires trajectory data and lane segment data from multiple agents, and then uses a trained multi-agent trajectory prediction model based on enhanced attention to predict the trajectory of a target agent, obtaining the final trajectory prediction result. The enhanced attention-based multi-agent trajectory prediction model is constructed from at least a graph encoder, a variant of the graph encoder, a temporal encoder, and a trajectory decoder. Variants of the graph encoder include causal graph encoders and multimodal graph encoders. Compared with existing technologies, this invention has advantages such as separating noise in the interaction graph and effectively improving the computational speed and accuracy of trajectory prediction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of autonomous driving technology, and in particular to a method, apparatus and storage medium for multi-agent trajectory prediction based on enhanced attention. Background Technology

[0002] Autonomous driving is a crucial component of smart city and smart transportation development, and it holds the promise of solving traffic-related problems such as safety and congestion. Large-scale deployment of autonomous vehicles can only become a reality once their safety has been verified. One key technology is multi-agent trajectory prediction. However, the complex and diverse spatiotemporal relationships in urban traffic environments pose significant challenges to multi-agent trajectory prediction.

[0003] Traditional multi-agent trajectory prediction methods model interaction graphs based on Euclidean distance, meaning that agents and lane segments interact within a certain distance range, thus introducing noise. Furthermore, existing trajectory prediction methods tend to overlook the differences between different modalities when predicting trajectories of multiple modalities, indicating insufficient predictive power for multimodal trajectories. Therefore, an effective solution is needed to address the problems of noise introduced by interaction modeling and insufficient multimodal prediction capabilities in traditional multi-agent trajectory prediction tasks. Summary of the Invention

[0004] The purpose of this invention is to overcome the shortcomings of existing technologies in traditional multi-agent trajectory prediction tasks, such as the introduction of noise through interaction relationship modeling and insufficient multimodal prediction capabilities. This invention provides a method, device, and storage medium for multi-agent trajectory prediction based on enhanced attention (AET). The AET method constructs a deep learning model that learns spatiotemporal information from agent trajectories and lane segment information and optimizes model parameters to predict agent trajector ...

[0005] The objective of this invention can be achieved through 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 multiple agents; based on the trajectory data and the lane segment data, using a trained multi-agent trajectory prediction model based on enhanced attention to predict the trajectory of a target agent, thereby obtaining 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 the graph encoder, a temporal 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 a target agent. The specific process includes: Step S201, acquiring agent-agent graphs from multiple past time points and inputting them into an agent-agent causal graph encoder to obtain a causal embedding sequence; Step S202, inputting the causal embedding sequence into a time encoder to obtain the agent's causal embedding; Step S203, acquiring a road-road graph and inputting it into a graph encoder to obtain road embeddings; Step S204, acquiring an agent-road graph and inputting the agent-road graph, the road embeddings, and the causal embeddings into an agent-road causal graph encoder to update the agent's causal embeddings; Step S205, inputting the updated causal embeddings into a multimodal graph encoder to generate causal embeddings for multiple modalities of the agent; Step S206, inputting the causal embeddings of the multiple modalities of the agent into a trajectory decoder to obtain causal prediction results; Step S207, inputting the causal prediction results into a fine encoder to obtain fine prediction results, which are used 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, acquiring agent-agent graphs from multiple past time points and inputting them into an 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 time encoder to obtain the agent's causal embedding and trivial embedding; Step S213, acquiring a road-road graph and inputting it into a graph encoder to obtain the road embedding; Step S214, acquiring an agent-road graph and inputting the agent-road graph, the road embedding, the causal embedding, and the trivial embedding into the agent-road graph. Step S215: The updated causal and trivial embeddings of the agents are updated by a path causal graph encoder. Step S216: The updated causal and trivial embeddings are input into a multimodal graph encoder to generate causal and trivial embeddings of agents in multiple modalities. Step S217: The trajectory sequences of agents at multiple past time points are input into a time encoder to obtain non-interactive agent embeddings. Step S218: The non-interactive agent embeddings, the causal and trivial embeddings of the agents in multiple modalities are input into a trajectory decoder to obtain causal prediction results, non-interactive prediction results, and trivial prediction results. Step S219: The causal prediction results are input into a fine encoder to obtain fine prediction results, which are used 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 the corresponding neighbors and edges belong to the 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 sets a′ ij Based on the positive and negative signs, it can be divided into cause-and-effect graphs or fragmented graphs. ij This is the result of splicing together the features of nodes and edges.

[0015] As a preferred technical solution, the optimization function used by the trajectory decoder is expressed as follows:

[0016]

[0017] In the formula, L reg For negative log-likelihood loss, L cls For classifying losses, To calculate the L2-norm loss between the predicted trajectory and the true trajectory, o′ causal and o′trivial The reciprocal of the L2-norm loss, o′ causal and o′ trivial These are causal prediction results and trivial prediction results, respectively.

[0018] According to a second aspect of the present invention, a multi-agent trajectory prediction device based on enhanced attention is provided, comprising a memory, a processor, and a program stored in the memory, wherein the processor executes the program to implement the method described therein.

[0019] According to a third aspect of the present invention, a storage medium is provided having a program stored thereon, which, when executed, implements the method described thereon.

[0020] Compared with the prior art, the present invention has the following beneficial effects:

[0021] 1. The multi-agent trajectory prediction method proposed in this invention proposes a causal attention mechanism based on causal learning and a multimodal attention mechanism. Specifically, when constructing a multi-agent trajectory prediction model based on enhanced attention, a causal graph encoder and a multimodal graph encoder are used. The causal graph encoder is used to implement the causal attention mechanism, which can separate noise in the interaction graph. The multimodal graph encoder is used to implement the multimodal attention mechanism, constructing multiple attention graphs to achieve embedding under different modalities. The combined effect of the two mechanisms can effectively improve the computation 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 this 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, thereby capturing information that is beneficial to trajectory prediction. A multimodal graph encoder is used to generate embeddings of different modalities, improving the difference between different modalities. Furthermore, a decoder is used to obtain non-interaction prediction results, causal prediction results, and trivial prediction results. These results are input into a loss function suitable for causal graph-based multimodal trajectory prediction tasks to optimize the segmentation of the causal graph and the trivial graph. Finally, the causal prediction results are input into a fine decoder to obtain more accurate prediction results. Experiments on two sets of real datasets demonstrate that the method provided in this invention is effective compared to existing multi-agent trajectory prediction methods. Attached Figure Description

[0023] Figure 1 This is a 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 This is a schematic diagram of the structure of the causal graph encoder model in an embodiment of the present invention;

[0025] Figure 3 This is a schematic diagram illustrating the 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 Implementation

[0026] The present invention will now be described in detail with reference to the accompanying drawings and specific embodiments. These embodiments are based on the technical solution of the present invention and provide detailed implementation methods and specific operating procedures. However, the scope of protection 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 (AET method). The AET method takes the trajectory information of multiple agents and the lane segment information in a high-precision map as input, and uses a deep learning-optimized multi-agent trajectory prediction model based on enhanced attention to calculate and obtain the final agent trajectory prediction data.

[0029] like Figure 1 As shown, the AET model is mainly constructed from three modules: a graph encoder, a temporal encoder, and a trajectory decoder. The graph encoder has two variants: a causal graph encoder and a multimodal graph encoder. The trajectory information of the multi-agents and the interaction graph serve as the model's data. The encoder encodes the input and transforms it into a multimodal embedding, which is then fed into the decoder to obtain the trajectory prediction results. The specific contents of each module are as follows:

[0030] 1. Image encoder

[0031] The attention score of an edge is calculated using a self-attention mechanism and then normalized using Soffmax to obtain the attention score a. ij We perform a weighted summation to obtain information about neighboring nodes. Then, we use a 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 embeddings of each node and its neighbors. The embeddings of its neighbors consist of edges and features of the neighboring 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 The z represents the embedding of a node. ij This represents the result of concatenating the embeddings of neighboring nodes and their corresponding edges. This is achieved by obtaining three embeddings q... i k ij v ij We can calculate the attention score between node i and its neighboring nodes, and then perform a weighted sum based on this attention score to obtain the embedding of the neighbor information:

[0035]

[0036] Where, d q It is q i The dimension, N i It is a neighbor of node i, m i Let v be the weighted sum of the embeddings of neighboring nodes, where j is a neighbor of node i, and v is the weighted sum of the embeddings of neighboring nodes. ij This represents the joint embedding of nodes i and j. Since the impact of neighbor information on trajectory prediction may differ across different scenarios, a gating mechanism is used to fuse the 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 Z′ is the scaling factor calculated through a gating mechanism, sigmoid is the activation function, and z′ is the scaling factor. i For the updated node embedding, W gate and W self It is a learnable matrix, ⊙ represents the dot product operation, and [·||·] represents the concatenation operation. Then, a feedforward module is used to update the output z of the graph encoder. j ":

[0040] z i "=FFN(z′) i )=δ(W1z′ i +b1)W2+b2 (6)

[0041] Among them, W 1 and W 2b1 and b2 are learnable matrices, b1 and b2 are learnable biases, δ is the ReLU activation function, and FFN represents a feedforward neural network.

[0042] 2. Cause-effect graph encoder

[0043] This embodiment provides a variant of the graph encoder, called a causal graph encoder, for selecting edges in the graph that are truly useful for predicting trajectories, such as... Figure 2 As shown. The causal graph encoder is applied to both agent-agent causal graph encoders and agent-lane causal graph encoders, both with identical network structures. Traditional graph neural network models typically learn the statistical correlations between all inputs and labels indiscriminately in the training data, thus introducing 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 be used to activate a′. ij Based solely on whether the graph is positive or negative, it can be categorized as either a cause-and-effect graph or a fragmented graph. ij This is the result of concatenating the features of nodes and edges. The neighbors of node i are respectively... and Neighbor embedding can be represented as:

[0046]

[0047] In the formula, v j Let be the embedding of neighbor node j, where 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 gating and FFN to update node features.

[0049] 3. Multimodal graph encoder

[0050] To prevent modality collapse, this method proposes a multimodal attention mechanism to mitigate the problem, thereby obtaining more accurate and reasonable prediction results. For example, when predicting a right turn, the attention of the right-side agent should be emphasized more, rather than calculating the attention scores of all agents and lane nodes equally. Unlike causal attention mechanisms, this method focuses on how to automatically allocate regions of interest for different modalities. Therefore, the calculation of multimodal attention is based only on edges, rather than on the features of both edges and neighboring nodes. By inputting the features of the edges into the multimodal attention layer, k attention scores can be obtained (k being the number of modalities in the desired output), and these scores are acquired using a method similar to that of a causal graph encoder. Then, gating mechanisms and FFN are used to update node features to obtain multimodal features.

[0051] 4. Time encoder

[0052] A temporal encoder is employed to capture temporal dependencies derived from observed historical trajectories. A time-series node feature embedding can be obtained from an agent-agent causal graph encoder and fed into the temporal encoder. Since the input agent's trajectory may be incomplete, missing trajectory information needs to be replaced with trainable embeddings. Furthermore, because the temporal encoder is based on a Transformer architecture, temporal vectors need to be added to represent temporal chronology. Subsequently, the time-series features are input into the following temporal attention module:

[0053]

[0054] in, It is a learnable matrix, where u and v represent time steps, and d q It is q i The dimension, M uv This represents a time mask used to ensure that the embedding in the sequence only focuses on the time steps preceding it, and the attention score for subsequent time steps is 0.

[0055] 5. Track Decoder

[0056] To handle the multimodal nature of the trajectory, a GRU-based Laplacian hybrid density network was employed. For each agent i, multimodal embedding was used. The unimodal embedding is used as the hidden state and input of the GRU, where the unimodal embedding is the output of the agent-road causal encoder, denoted as z. i,AL :

[0057]

[0058] In the formula, o i This represents the output of the trajectory decoder GRU.

[0059] Then, two MLPs were used to predict the agent's trajectory μ. i And the corresponding uncertainty. Additionally, an MLP is used to predict the probability π for each trajectory. i Because the embeddings used in GRU predictions have been processed by a time encoder and cannot reflect temporally continuous relationships, the results of GRU predictions and the agent's historical trajectory μ are compared. i,Past By splicing the data and performing secondary predictions, more refined results can be obtained.

[0060] o′=GRU refined (FFN([μi,Past ||μ i (14) Corresponding to the cause-effect graph and the fragmentation graph, we can obtain o′ causal and o′ trivial The final optimized function is:

[0061]

[0062] Among them, L reg For negative log-likelihood loss, L cls The classification loss is 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 reciprocal of the L2-norm loss.

[0063] The training process of the aforementioned AET model specifically includes:

[0064] Step S211, obtain past T h The agent-agent graph at each time step is input into the agent-agent causal graph encoder to obtain the causal embedding sequence and the trivial embedding sequence.

[0065] Step S212: Input the causal embedding sequence and the trivial embedding sequence into the time encoder to obtain the agent's causal embedding and trivial embedding.

[0066] Step S213: Obtain the road-road map and input it into the graph encoder to obtain the road embedding;

[0067] Step S214: Obtain the agent-road graph, and input the agent-road graph, road embedding, causal embedding and trivial embedding into the agent-road causal graph encoder to update the agent's causal embedding and trivial embedding.

[0068] Step S215: Input the updated causal embedding and trivial embedding into the multimodal graph encoder to generate causal embedding and trivial embedding of agents with multiple modalities.

[0069] Step S216: Input the trajectory sequence of the agent from multiple past moments into the time encoder to obtain the non-interactive agent embedding;

[0070] Step S217: Input the non-interactive intelligent agent embedding, the causal embedding of multiple modal intelligent agents and the trivial embedding into the trajectory decoder to obtain the causal prediction result, the non-interactive prediction result and the trivial prediction result;

[0071] Step S218: Input the causal prediction result into the fine encoder to obtain the fine prediction result, which is used as the final trajectory prediction result.

[0072] like Figure 3 As shown, the specific process of trajectory prediction for the target agent based on the trained AET model includes:

[0073] First, obtain the past T h The algorithm first obtains agent-agent graphs at each time step and inputs them into an agent-agent causal graph encoder to obtain a causal embedding sequence. This causal embedding sequence is then input into a time encoder to obtain the agent's causal embedding. Next, it obtains a road-road graph and inputs it into a graph encoder to obtain road embeddings. Then, it obtains an agent-road graph and inputs the agent-road graph, road embeddings, and causal embeddings into the agent-road causal graph encoder to update the agent's causal embedding. The updated causal embeddings are then input into a multimodal graph encoder to generate causal embeddings for multiple modalities of the agent. Finally, the causal embeddings for multiple modalities of the agent are input into a trajectory decoder to obtain causal prediction results. To improve prediction accuracy, the causal prediction results are then input into a fine encoder to obtain fine prediction results, which serve as the final trajectory prediction results.

[0074] Next, to verify the prediction performance, the AET method provided in this embodiment was tested on two sets of real trajectory prediction data: the Argoverse dataset and the INTERACTION dataset, both of which provide trajectory information of the agent and high-precision maps. 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 embodiment achieves values ​​of 0.7577, 1.1217, and 0.1169 for minADE, minFDE, and MR, respectively. It outperforms existing state-of-the-art methods in minFDE and MR, and is comparable to TSGN in minADE. These results demonstrate 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 ​​for minADE and minFDE, which are 0.09 and 0.24 respectively. Both of these values ​​are superior to existing state-of-the-art methods. Compared with the second-ranked CASPNet++, the AET method improves minADE and minFDE by 0.03 and 0.04 respectively.

[0081] In summary, the AET method addresses the issues of noise introduced by interaction 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, respectively, thus presenting a multi-agent trajectory prediction method based on enhanced attention. Experiments on two real-world datasets demonstrate the effectiveness and advancements of the AET method.

[0082] Furthermore, this 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. When the processor executes the program, it implements the aforementioned method. The processor of this device includes a central processing unit (CPU), which can perform various appropriate actions and processes according to computer program instructions stored in read-only memory (ROM) or computer program instructions loaded from the memory unit into random access memory (RAM). Various programs and data required for device operation can also be stored in the RAM. The CPU, ROM, and RAM are interconnected via a bus. Input / output (I / O) interfaces are also connected to the bus. Multiple components in the device are connected to the I / O interface, including: input units, such as a keyboard, mouse, 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 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 telecommunications networks. The processing unit executes the various methods and processes described above, such as the methods described above. For example, in some embodiments, the foregoing methods can be implemented as computer software programs tangibly contained in a machine-readable medium, such as a storage unit. In some embodiments, part or all of the computer program can be loaded and / or installed on the device via ROM and / or a communication unit. When the computer program is loaded into RAM and executed by the CPU, one or more steps of the foregoing methods can be performed. Alternatively, in other embodiments, the CPU can be configured to perform the foregoing methods by any other suitable means (e.g., by means of firmware). The functions described above can be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that can be used include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SOCs), Complex Programmable Logic Devices (CPLDs), and so on.

[0083] Furthermore, this embodiment also provides a storage medium on which a program is stored, which, when executed, implements the aforementioned method. The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. This program code can be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing device, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code can be executed entirely on a machine, partially on a machine, partially on a machine and partially on a remote machine as a standalone software package, or entirely on a remote machine or server. In the context of this invention, a computer-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0084] The preferred embodiments of the present invention have been described in detail above. It should be understood that those skilled in the art can make numerous modifications and variations based on the concept of the present invention without creative effort. Therefore, all technical solutions that can be obtained by those skilled in the art based on the concept of the present invention through logical analysis, reasoning, or limited experimentation on the basis of existing technology should be within the scope of protection defined by the claims.

Claims

1. A multi-agent trajectory prediction method based on enhanced attention, characterized in that, Includes the following steps: Acquire trajectory data and lane segment data from multiple agents; Based on the trajectory data and the lane segment data, a trained multi-agent trajectory prediction model based on enhanced attention is used to predict the trajectory of the target agent, and the final trajectory prediction result is obtained. 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 temporal encoder, and a trajectory decoder. The variant of the graph encoder includes a causal graph encoder and a multimodal graph encoder. The training process of the multi-agent trajectory prediction model based on enhanced attention specifically includes: Step S211: Obtain agent-agent graphs from multiple past time points and input them into the agent-agent causal graph encoder to obtain causal embedding sequences and trivial embedding sequences; Step S212: Input the causal embedding sequence and the trivial embedding sequence into the time encoder to obtain the agent's causal embedding and trivial embedding; Step S213: Obtain the road-road map and input it into the graph encoder to obtain the road embedding; Step S214: Obtain the agent-road map, and input the agent-road map, the road embedding, the causal embedding, and the trivial embedding into the agent-road causal graph encoder to update the agent's causal embedding and trivial embedding; Step S215: Input the updated causal embedding and trivial embedding into the multimodal graph encoder to generate causal embedding and trivial embedding of agents with multiple modalities. Step S216: Input the trajectory sequence of the agent from multiple past moments into the time encoder to obtain the non-interactive agent embedding; Step S217: Input the non-interactive intelligent agent embedding, the causal embedding and trivial embedding of the multiple modal intelligent agents into the trajectory decoder to obtain the causal prediction result, the non-interactive prediction result and the trivial prediction result; Step S218: Input the causal prediction result into the fine encoder to obtain the fine prediction result, which is used as the final trajectory prediction result.

2. The multi-agent trajectory prediction method based on enhanced attention according to claim 1, 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, 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, characterized in that, The trajectory prediction of the target agent is performed using a trained multi-agent trajectory prediction model based on enhanced attention. The specific process includes: Step S201: Obtain agent-agent graphs from multiple past time points and input them into the agent-agent causal graph encoder to obtain a causal embedding sequence; Step S202: Input the causal embedding sequence into the time encoder to obtain the causal embedding of the agent; Step S203: Obtain a road-road map and input it into the map encoder to obtain road embeddings; Step S204: Obtain the agent-road map, and input the agent-road map, the road embedding, and the causal embedding into the agent-road causal graph encoder to update the agent's causal embedding; Step S205: Input the updated causal embedding into the multimodal graph encoder to generate causal embeddings for agents of multiple modalities; Step S206: Embed the causal relationships of the multiple modal agents into the trajectory decoder to obtain causal prediction results; Step S207: Input the causal prediction result into the fine encoder to obtain the fine prediction result, which is used as the final trajectory prediction result.

5. The multi-agent trajectory prediction method based on enhanced attention according to claim 1, characterized in that, The causal graph encoder includes at least one edge classifier, which is used to calculate whether the corresponding neighbors and edges belong to the trivial graph.

6. The multi-agent trajectory prediction method based on enhanced attention according to claim 5, characterized in that, The calculation process of the edge classifier is specifically represented as follows: In the formula, For the Tanh activation function, Based on the positive and negative signs, they can be divided into cause-and-effect graphs or trifle graphs. This is the result of splicing together the features of nodes and edges.

7. The multi-agent trajectory prediction method based on enhanced attention according to claim 1, characterized in that, The optimization function used by the trajectory decoder is expressed as follows: In the formula, For negative log-likelihood loss, For classifying losses, To calculate the L2-norm loss between the predicted trajectory and the true trajectory, for and The reciprocal of the L2-norm loss, and These are causal prediction results and trivial prediction results, respectively.

8. 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, it implements the method as described in any one of claims 1-7.

9. A storage medium having a program stored thereon, characterized in that, When the program is executed, it implements the method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Cognitive classification and prediction method and system based on eye movement track and deep learning

    CN113989912A

  • Method for predicting track of surrounding vehicle based on data driving and electronic equipment thereof

    CN117593332A