Multi-agent trajectory prediction method based on heterogeneous dynamic graph attention network

Through the multi-agent trajectory prediction method based on heterogeneous dynamic graph attention network, the heterogeneity and spatial interaction dynamics of traffic participants are captured, which solves the problem of ignoring heterogeneity and dynamics in the existing technology and achieves more accurate and safe trajectory prediction to adapt to complex traffic scenarios.

CN118569308APending Publication Date: 2024-08-30HENAN UNIVERSITY
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410733084.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing trajectory prediction methods mainly focus on predicting the scene representation of a single agent's trajectory, ignoring the heterogeneity of traffic participants and the dynamics of interactions over time, and cannot effectively handle different types of traffic participants in actual driving scenarios. and their interactive relationships.

Method used

A multi-agent trajectory prediction method based on the Heterogeneous Dynamic Graph Attention Network (HDEAT) is adopted to capture the heterogeneity of traffic participants through specific encoders and decoders, and the heterogeneous dynamic graph attention network is used to capture the spatial interaction dynamics, introducing Three-element relationship representation: interaction strength, interaction category, and interaction function for explicit relationship identification and prediction.

Benefits of technology

It improves the accuracy and safety of trajectory prediction, adapts to wider traffic demand changes, and shows excellent performance in the average displacement error, final displacement error and root mean square error evaluation indicators.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569308A
    Figure CN118569308A
Patent Text Reader

Abstract

The invention provides a multi-agent trajectory prediction method based on a heterogeneous dynamic graph attention network. The method comprises the following steps: preprocessing trajectory sequence data in a motion data set; according to the type of the intelligent agent, utilizing an encoder corresponding to a specific type to extract dynamic characteristics of the intelligent agent track sequence data; utilizing a heterogeneous dynamic graph attention network to extract interaction characteristics of the intelligent agent; map features of map information related to the intelligent agents in the motion data set are extracted and updated through a convolutional neural network and a gate mechanism selector, the map information is selectively shared among all the intelligent agents through the gate mechanism selector, and self-adaptability of map selection is achieved; and after the dynamic features, the interaction features and the map features are fused into three-channel features, a future trajectory of the intelligent agent is predicted through a future decoder corresponding to a specific intelligent agent type. The method has excellent performance and better performance in the aspects of trajectory prediction accuracy and safety, traffic efficiency can be improved, and the method is suitable for wider traffic demand changes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automatic driving trajectory prediction of intelligent transportation, and in particular to a multi-agent trajectory prediction method based on heterogeneous dynamic graph attention network (HDEAT). Background Art

[0002] With the development of artificial intelligence, the interaction between autonomous vehicles (AV) and intelligent transportation systems (ITS) has increased significantly. Faced with highly complex urban driving environments, predicting the future movements of road users is key to developing safe and reliable autonomous driving systems. By using predicted trajectories to perform safe navigation, autonomous vehicles can make smart decisions in advance to avoid possible accidents, thereby improving the overall safety, efficiency and comfort of the system.

[0003] Existing prediction methods can be divided into three categories: physics-based methods, maneuver-based methods, and interaction-aware methods. Physics-based methods consider the dynamics of the agent to predict its motion behavior, but ignore the possible maneuvers that are constrained by the road structure and the motion and interaction behaviors of surrounding agents. Maneuver-based methods consider maneuver options and make predictions conditional on maneuvers, but ignore the influence of surrounding agents. Recently, interaction-aware methods can solve the interaction problem between agents with higher efficiency and better performance. Most existing interaction-aware methods mainly use three mechanisms to establish a more general interaction model: space-centric mechanism, attention mechanism, and graph-based mechanism. Space-centric mechanism represents the trajectory of the agent in a unified spatial domain and uses spatial relations to establish the interaction model. Attention mechanism aggregates the information of surrounding agents in the scene through set operation, attention operation or Transformer structure. Graph-based mechanism explicitly models the interaction between agents through graph structure. However, most existing trajectory prediction methods mainly focus on the scene representation of predicting the trajectory of a single agent, ignoring the heterogeneity of traffic participants and the dynamic nature of interactions over time.

[0004] The invention patent with application number 202211605052.2 discloses a method and system for reactive trajectory prediction of an autonomous driving vehicle, which includes determining the predicted trajectory of a target vehicle based on the planned trajectory and historical trajectory of the main vehicle using a reactive trajectory prediction model of the autonomous driving vehicle; the prediction model includes: an LSTM encoder for determining a trajectory encoding vector based on the planned trajectory and historical trajectory of the vehicle, a reactive social convolution module for determining a hidden vector based on the trajectory encoding vector, a spatiotemporal attention module for determining a spatiotemporal attention vector based on the trajectory encoding vector and the spatiotemporal attention mechanism, a gate fusion layer for fusing the hidden vector and the spatiotemporal attention vector using different weight coefficients to determine the hidden layer tensor information, an LSTM network decoder for decoding the hidden layer tensor information, and a Softmax classifier; the planned trajectory of the main vehicle is updated according to the predicted trajectory. The trajectory prediction method of the above invention can achieve the acquisition of high-precision vehicle prediction trajectories within a longer prediction time domain, but the above invention still focuses on the scene representation of predicting the trajectory of a single intelligent agent, and does not solve the problem of different types of traffic participants such as vehicles, pedestrians or bicycles in actual driving scenes. Summary of the invention

[0005] In view of the fact that existing trajectory prediction methods mainly focus on the scene representation of predicting the trajectory of a single intelligent agent, ignoring the heterogeneity of traffic participants and the dynamic nature of interactions over time, this paper proposes a multi-agent trajectory prediction method based on a heterogeneous dynamic graph attention network, which uses specific types of encoders and decoders to capture the heterogeneity of traffic participants and effectively model real driving scenarios. At the same time, a heterogeneous dynamic graph attention network is used to capture the dynamics of spatial interactions, thereby obtaining dynamic relationship reasoning.

[0006] In order to achieve the above object, the technical solution of the present invention is achieved as follows:

[0007] A multi-agent trajectory prediction method based on heterogeneous dynamic graph attention network (HDEAT) provides rich scene representation information for trajectory prediction by utilizing the dynamics, interactions and multi-channel fusion features of agents and maps. It selectively shares maps for agents of different types and speeds using a gate mechanism to achieve the adaptability of map selection. A heterogeneous dynamic graph attention network with edge features is introduced to capture the heterogeneity of traffic participants. On this basis, spatial dynamic interactions are captured by reconstructing appropriate subgraphs for agents with changing neighborhoods. In addition, a three-element relationship representation method is introduced: interaction intensity, interaction category and interaction function to perform clear relationship identification and prediction for multiple heterogeneous interactive agents, thereby obtaining dynamic relationship reasoning. Compared with general trajectory prediction methods based on graph neural networks, the present invention has excellent performance in terms of trajectory prediction accuracy and security, can improve traffic efficiency, and adapt to a wider range of traffic demand changes.

[0008] A multi-agent trajectory prediction method based on a heterogeneous dynamic graph attention network comprises the following steps:

[0009] S1: Preprocess the trajectory sequence data in the motion data set, randomly divide the preprocessed motion data set into a training set and a test set, and obtain trajectory sequence features;

[0010] S2: According to the type of the agent, the trajectory sequence features in step S1 are converted into dynamic features through the corresponding specific type of encoder;

[0011] S3: Convert the trajectory sequence data obtained in step S1 into graph structure data, fill the dynamic features obtained in step S2 into the graph structure, and form a directed edge feature heterogeneous graph that can represent the interaction between intelligent agents, using heterogeneous nodes to cover the heterogeneity of traffic participants;

[0012] S4: Input the directed edge feature heterogeneous graph into the heterogeneous dynamic graph attention network, and extract the interaction features of all intelligent agents through the heterogeneous dynamic graph attention network;

[0013] S5: Extract and update the map features of the agent-related map information in the motion dataset through convolutional neural networks and gate mechanism selectors;

[0014] S6: After fusing the dynamic features obtained in step S2, the interaction features obtained in step S4, and the map features obtained in step S5 into three-channel features, the future trajectory of the target agent is predicted according to the type of the agent through a future decoder corresponding to the specific agent type.

[0015] Preferably, the method for constructing the directed edge feature heterogeneous graph in step S3 is:

[0016] S3.1: Input the position and steering angle information of various types of agents recorded in each frame of the motion data set into the rotation matrix R = [[cos(θ t )-sin(θ t )],[sin(θ t )cos(θ t )]], the spatial relationship between the agents is obtained, the graph structure data is constructed according to the spatial relationship between the agents, the dynamic features obtained in step S2 are filled into the graph structure, and the node features of the heterogeneous graph with directed edge features are constructed;

[0017] S3.2: A heterogeneous graph with directed edge features is represented as G = (V, E), where each node in the node set V represents a specific type of traffic participant, and each directed edge in the edge set E contains edge attributes of a specific edge type. The edge attribute is the relative measurement value of node j and node i, and the edge type is the concatenation of the types of node j and node i. The edge features are constructed using edge attributes and edge types.

[0018] S3.3: Different types of nodes are transformed using the node type transformation matrix M typei The formula for converting from different vector spaces to the same vector space is In the formula, is the node vector feature of the i-th node;

[0019] S3.4: If agent j is within the predefined region of agent i, then construct an edge e from agent j to agent i. ij , the edge set is: Edge attribute transformation and edge type transformation are introduced to consider edge features and edge types respectively. The formula is: attr′ =M φ ·e attr , e type′ =M χ ·e type , where i and j are the indices of the agent, N i is the neighborhood of node i, M φ is the edge attribute change matrix, M χ is the edge type transformation matrix, e attr is the edge attribute, e type is the edge type, e attr′ is the edge feature of the directed edge feature heterogeneous graph, e type′ is the edge type of a heterogeneous graph with directed edge features.

[0020] Preferably, the step S4 extracting the interaction features of all agents through a heterogeneous dynamic graph attention network comprises the following steps:

[0021] S4.1: Re-screen the interacting agents formed at each time point and generate a new subgraph structure;

[0022] In the directed edge feature heterogeneous graph constructed in step S3, the self-attention mechanism is used to capture spatial interactions. The interactive object agent j of the target agent i is determined according to the set distance threshold, and the corresponding matrix D is determined. The formula is: D[i,j]=1, In the formula, is the location information of agent j, is the location information of agent i, d is the set distance threshold radius, and in the interaction area, the interactive agents formed at each time point are re-screened. The number of interactive agents formed at each time point is sent to the heterogeneous dynamic graph attention network to generate a new subgraph structure;

[0023] S4.2: Calculate the edge features of the new subgraph structure including interaction strength and interaction category;

[0024] According to the interactive agents formed at each time point re-screened in step S4.1, the three-element relationship interaction embedding method is combined in the graph representation message passing process: interaction strength, interaction category and category function. After the edge features obtained in step 3.4 are input into a fully connected layer and a softmax category function, the interaction strength and interaction category are obtained, and the interaction strength and interaction category are embedded into the edge features. The formula is: In the formula, r ij is the interaction strength, c ij ∈[0,1] L is the category vector, F l is the learnable class function implemented by MLP, h j is the node vector feature of the jth node, is the edge feature that includes interaction strength and interaction category;

[0025] S4.3: Calculate the attention coefficient α using edge features containing interaction strength and interaction category ij , using the attention coefficient α ij Perform linear combination on the neighborhood of node i, update the features of node i, and obtain the interaction features after considering the different influences of surrounding agents on the agent.

[0026] Preferably, the attention coefficient Where N i is the neighborhood of node i in the graph, is the attention weight vector, is the node vector feature, is the node i and its nearby neighborhood N i The edge features generated by node k in Where σ is the Sigmoid activation function, W h is the weight linear transformation matrix that needs to be learned, is the vector feature of the jth node.

[0027] Preferably, the step S5 extracts and updates the map features of the map information related to the agent in the motion data set through a convolutional neural network and a gate mechanism selector, comprising the following steps:

[0028] S5.1: Extracting rasterized initial map features through convolutional neural network (CNN) Where m is the map information, W m is the weight of the map information;

[0029] S5.2: Using the designed gate mechanism selector, select updated map features for agent i according to its current state in the map.

[0030] Preferably, the door mechanism selector The selected updated map features In the formula, is the current state of agent i, W c is the weight matrix, b c is the bias, is a vector.

[0031] Preferably, step S1 preprocesses the trajectory sequence data in the motion data set to eliminate abnormal data in the motion data set; the method for obtaining trajectory sequence features is: selecting the lateral and longitudinal coordinates, speed, acceleration and steering angle information of the intelligent body in the motion data set as the trajectory sequence features of the intelligent body, and selecting the lateral and longitudinal relative displacements of the intelligent bodies around the intelligent body as the trajectory sequence features of the surrounding intelligent bodies.

[0032] Preferably, the step S2 converts the trajectory sequence features in step S1 into dynamic features by using an encoder of a corresponding specific type. The method is as follows: the trajectory sequence features of the agent are input into a recurrent neural network encoder of a corresponding specific type to extract its dynamic features. The formula is: In the formula, is the dynamic characteristic of agent i at time t, is the trajectory sequence feature of agent i at time t.

[0033] Preferably, the method of predicting the future trajectory of the agent by the future decoder corresponding to the specific agent type in step S6 is: In the formula, is the future decoder for a particular type of agent, It is a series of dynamic features, interactive features and map features. is the future trajectory of agent i.

[0034] Preferably, the specific steps of step S7 are:

[0035] S7.1: Use the training set to train the model, use the average displacement error ADE, the final displacement error FDE and the root mean square error RMSE as the loss function, solve the loss function by gradient descent, and update the model parameters according to the gradient;

[0036] S7.2: Use the Adam optimizer to optimize the heterogeneous dynamic graph attention network and obtain the prediction model. Terminate the training when the loss function no longer decreases and save the trained prediction model. Otherwise, return to step S7.1 to continue updating and training. Use the trajectory sequence data in the test set to test the prediction model and obtain the future trajectory coordinates of the agent.

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

[0038] 1. The present invention utilizes the dynamic and interactive features of intelligent agents and the multi-channel fusion features of maps, fully considers the actual driving scenarios, introduces a heterogeneous graph attention network based on edge features to capture the heterogeneity of traffic participants, and uses a gate mechanism to selectively share maps for intelligent agents of different types and speeds, thereby achieving the adaptability of map selection.

[0039] 2. The present invention introduces a Heterogeneous Dynamic Graph Attention Network (HDEAT) model based on the improved Graph Attention Network (GAT), which captures spatial dynamic interactions by reconstructing appropriate subgraphs for agents with changing neighbors, thereby improving the accuracy, security, and interpretability of trajectory prediction. A three-element relationship representation method is also introduced: interaction intensity, interaction category, and interaction function, which can reflect the intensity and category of the interaction, and perform clear relationship identification and prediction for multiple heterogeneous interactive agents, thereby obtaining dynamic relationship reasoning.

[0040] 3. Compared with the general trajectory prediction method based on graph neural network, the present invention has better performance in terms of evaluation indicators of average displacement error, final displacement error and root mean square error, and has excellent performance in terms of trajectory prediction accuracy and safety. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0042] Figure 1 This is a system flow chart of the multi-agent trajectory prediction method based on heterogeneous dynamic graph attention network of the present invention.

[0043] Figure 2 This is the overall structural diagram of the multi-agent trajectory prediction model based on the heterogeneous dynamic graph attention network of the present invention.

[0044] Figure 3 Schematic diagram of the structure of the heterogeneous dynamic graph attention network (HDEAT) of the present invention. DETAILED DESCRIPTION

[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0046] The embodiment of the present invention provides a multi-agent trajectory prediction method based on a heterogeneous dynamic graph attention network. The system process is as follows: Figure 1 As shown, the model structure is as Figure 2 As shown, a motion dataset containing vehicles and pedestrians is selected as an example, including the following steps:

[0047] S1. Preprocess the trajectory sequence data in the motion data set, randomly divide the preprocessed motion data set into a training set and a test set, and obtain the trajectory sequence features.

[0048] S1.1: Eliminate abnormal data in the motion dataset.

[0049] Abnormal data are missing values ​​in the data file (for example, lane ID recognition errors caused by low camera resolution). Missing values ​​can lead to calculation errors and failure to update the model gradient. By setting up a python program to scan all the data, filter out the missing values, and then replace the missing values ​​with the average, maximum, minimum, or probability estimate of the original data source. Eliminating abnormal data will make the model training more stable, thereby avoiding unreasonable prediction results.

[0050] Specifically, this embodiment divides the data set into a training set and a test set in a ratio of 7:3. The training set is used to train the model, and the test set is used to test the accuracy and error of the model to verify the effectiveness of the model.

[0051] S1.2: The lateral and longitudinal coordinates, velocity, acceleration, and steering angle information of the agent in the training set and the test set are selected as the trajectory sequence features of the agent, and the lateral and longitudinal relative displacements of the agents around the agent are selected as the trajectory sequence features of the surrounding agents.

[0052] S2. According to the type of the agent, the trajectory sequence features in step S1 are converted into dynamic features through an encoder corresponding to a specific type.

[0053] The trajectory sequence features contain a binary mask. The model can identify the type of agent. If the agent is a vehicle, the vehicle history trajectory encoder is called. The historical trajectory processing methods for other types of agents are similar. Input into the corresponding specific type of recurrent neural network encoder (RNN) to extract its dynamic features The formula is as follows:

[0054]

[0055] In the formula, is the dynamic characteristic of agent i at time t, is the trajectory sequence feature of agent i at time t.

[0056] S3. Convert the trajectory sequence data obtained in step S1 into graph structure data, fill the dynamic features obtained in step S2 into the graph structure, form a directed edge feature heterogeneous graph that can represent the interaction between intelligent agents, and use heterogeneous nodes to cover the heterogeneity of traffic participants.

[0057] S3.1: Based on the position and steering angle information of various types of agents (vehicles, pedestrians, and cyclists) recorded in each frame of the motion dataset, input it into the rotation matrix R = [[cos(θ t )-sin(θ t )],[sin(θ t )cos(θ t )]], the spatial relationship between the agents is obtained, and the graph structure data is constructed according to the spatial relationship between the agents. The dynamic features obtained in step S2 are filled into the graph structure to construct the node features of the heterogeneous graph with directed edge features.

[0058] S3.2: The heterogeneous graph with directed edge features is represented as G = (V, E). Each node in the node set V represents a specific type of traffic participant. Each directed edge in the edge set E contains edge attributes of a specific edge type. The edge attributes are the relative measurements of node j and node i, such as position, speed, and yaw angle. The edge type is the concatenation of the types of node j and node i. The edge features are constructed using edge attributes and edge types.

[0059] S3.3: Different types of nodes are transformed using the node type transformation matrix M typei The formula for converting from different vector spaces to the same vector space is:

[0060]

[0061] In the formula, is the node vector feature of the ith node, is the node vector feature of the i-th node in the same vector space.

[0062] S3.4: Convert different types of edges, vehicles and vehicles Vehicles and pedestrians Pedestrians and pedestrians Vehicles and cyclists

[0063] If agent j is within the predefined region of agent i, then an edge e is constructed from agent j to agent i. ij , the edge set is:

[0064]

[0065] Where i and j are the indices of the agent, N i is the neighborhood of node i.

[0066] By introducing edge attribute transformation and edge type transformation, the edge characteristics and edge types of the directed edge feature heterogeneous graph are considered respectively. The formula is as follows:

[0067] e attr' =M φ ·e attr (4)

[0068] e type' =M χ ·e type (5)

[0069] Where M φ is the edge attribute change matrix, M χ is the edge type transformation matrix, e attr is the edge attribute, e type is the edge type, e attr′ is the edge feature of the directed edge feature heterogeneous graph, e type′ is the edge type of a heterogeneous graph with directed edge features.

[0070] S4: The directed edge feature heterogeneous graph is input into the heterogeneous dynamic graph attention network HDEAT, and the interaction features of all intelligent agents are extracted through the heterogeneous dynamic graph attention network HDEAT.

[0071] Furthermore, the structure diagram of the heterogeneous dynamic graph attention network is shown in Figure 3 As shown in the figure, the heterogeneous dynamic graph attention network realizes dynamic interaction by evolving the graph into a dynamic graph in topology and representation; at traffic light intersections or intersections, due to the frequent interactions between traffic participants and the restrictions of traffic rules, their movement behaviors may stop, go straight, turn right or turn left, and their movement behaviors usually have first-order discontinuity. Using dynamic interaction to capture the frequent changes of movement behaviors in real time is in line with actual traffic scenarios.

[0072] S4.1: Re-screen the interacting agents formed at each time point and generate a new subgraph structure.

[0073] In the directed edge feature heterogeneous graph constructed in step S3, the self-attention mechanism is used to capture spatial interactions. The interactive object agent j of agent i is determined according to the set distance threshold, and the corresponding matrix D is determined. The appropriate subgraph is reconstructed for the target agent with changing neighbors to simulate spatial dynamic interactions and realize the dynamicity of the topological structure:

[0074] D[i,j]=1 (6)

[0075]

[0076] In the formula, is the location information of agent j, is the location information of agent i, and d is the set distance threshold radius.

[0077] In the interaction area, the interactive agents formed at each time point are re-screened and sent to the heterogeneous dynamic graph attention network to generate a new subgraph structure.

[0078] S4.2: Calculate the edge features of the new subgraph structure including interaction strength and interaction category.

[0079] According to the interactive agents formed at each time point re-screened in step S4.1, the three-element relationship interaction embedding method is combined in the process of graph representation message passing: interaction strength, interaction category and category function. After the edge features obtained in step 3.4 are input into a fully connected layer and softmax category function, the interaction strength and interaction category are obtained and embedded into the edge features to achieve dynamic representation, thereby obtaining dynamic relationship reasoning. The formula for interaction embedding is as follows:

[0080]

[0081] In the formula, r ij is the interaction strength, c ij ∈[0,1] L is a category vector indicating the probability of the lth interaction category among L possible categories, F l is the learnable class function implemented by MLP, h j is the node vector feature of the jth node, is the edge feature that includes interaction strength and interaction category.

[0082] S4.3: Calculate the attention coefficient α using edge features containing interaction strength and interaction category ij , using the attention coefficient α ij Perform linear combination on the neighborhood of node i, update the features of node i, and obtain the interactive features after considering the different influences of surrounding agents on the agent

[0083] Attention coefficient α ij Indicates the importance of node j to node i. The formula is as follows:

[0084]

[0085] Where N i is the neighborhood of node i in the graph, is the attention weight vector, which learns the importance weights between nodes, is the node vector feature, is the node i and its nearby neighborhood N i The edge features generated by node k in .

[0086]

[0087] Where σ is the Sigmoid activation function, W h is the weight linear transformation matrix that needs to be learned, is the vector feature of the jth node.

[0088] S5: The map features of the map information related to the agents in the motion dataset are extracted and updated through convolutional neural networks (CNN) and gate mechanism selectors. Different types of agents are affected by factors such as speed, and they will be affected by different spatial areas on the map. Therefore, the gate mechanism selector is used to selectively share map information among all agents.

[0089] S5.1: Extracting rasterized initial map features through convolutional neural network (CNN) The formula is:

[0090]

[0091] Where m is the map information, W m is the weight of the map information.

[0092] S5.2: Utilize the designed gate mechanism selector Select updated map features for agent i based on its current state in the map The formula is as follows:

[0093]

[0094] In the formula, is the current state of agent i, W c is the weight matrix, b c is the bias, is a vector where each element contains a number between 0 and 1. Use the gate selector to select the map features of agent i at time t.

[0095] S6: The dynamic features obtained in step S2 The interactive features obtained in step S4 And the map features obtained in step S5 After being fused into three-channel features, the future trajectory of the agent is predicted according to the type of agent through the future decoder corresponding to the specific agent type:

[0096]

[0097] In the formula, is the future decoder for a particular type of agent, It is a series of dynamic features, interactive features and map features. is the future trajectory of agent i.

[0098] S7: Use the training set to train and save the trained prediction model, use the test set to predict the prediction model, and obtain the future trajectory coordinates of the intelligent agent.

[0099] S7.1: Use the training set to train the model, use the average displacement error ADE, the final displacement error FDE and the root mean square error RMSE as the loss function, solve the loss function by gradient descent, and update the model parameters according to the gradient.

[0100] S7.2: Use the Adam optimizer to optimize the heterogeneous dynamic graph attention network and obtain the prediction model. Terminate the training when the loss function no longer decreases and save the trained prediction model. Otherwise, return to step S7.1 to continue updating and training. Use the test set to test the prediction model and obtain the future trajectory coordinates of the agent.

[0101] Compared with the general trajectory prediction method based on graph neural network, the present invention has better performance in terms of evaluation indicators of average displacement error, final displacement error and root mean square error, and has excellent performance in terms of accuracy and safety of trajectory prediction.

[0102] The present invention utilizes the dynamics, interactions and multi-channel fusion features of the agent and maps, fully considers the actual driving scene, and also introduces a heterogeneous graph attention network based on edge features to capture the heterogeneity of traffic participants, and uses a gate mechanism to selectively share maps for agents of different types and speeds to achieve the adaptability of map selection. By introducing the improved heterogeneous dynamic graph attention network (HDEAT) model based on the graph attention network (GAT), the model captures spatial dynamic interactions by reconstructing appropriate subgraphs for agents with constantly changing neighbors. At the same time, a three-element relationship representation method is introduced: interaction intensity, interaction category and interaction function, which can reflect the intensity and category of the interaction, and perform clear relationship identification and prediction for multiple heterogeneous interactive agents, thereby obtaining dynamic relationship reasoning. The present invention can improve traffic efficiency and adapt to a wider range of changes in traffic demand.

[0103] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A multi-agent trajectory prediction method based on heterogeneous dynamic graph attention network, characterized in that: The following steps are involved: S1: Preprocess the trajectory sequence data in the motion data set, randomly divide the preprocessed motion data set into a training set and a test set, and obtain the trajectory sequence features; S2: According to the type of the agent, the trajectory sequence features in step S1 are converted into dynamic features through the corresponding specific type of encoder; S3: Convert the trajectory sequence data obtained in step S1 into graph structure data, fill the dynamic features obtained in step S2 into the graph structure, and form a directed edge feature heterogeneous graph that can represent the interaction between intelligent agents, using heterogeneous nodes to cover the heterogeneity of traffic participants; S4: Input the directed edge feature heterogeneous graph into the heterogeneous dynamic graph attention network, and extract the interaction features of all intelligent agents through the heterogeneous dynamic graph attention network; S5: Extract and update the map features of the agent-related map information in the motion dataset through convolutional neural networks and gate mechanism selectors; S6: after fusing the dynamic features obtained in step S2, the interaction features obtained in step S4, and the map features obtained in step S5 into three-channel features, predict the future trajectory of the target agent through a future decoder corresponding to the specific agent type according to the agent type; S7: Use the training set to train and save the trained prediction model, use the test set to predict the prediction model, and obtain the future trajectory coordinates of the intelligent agent.

2. The multi-agent trajectory prediction method based on heterogeneous dynamic graph attention network according to claim 1 is characterized in that: The method for constructing the directed edge feature heterogeneous graph in step S3 is: S3.1: Input the position and steering angle information of various types of agents recorded in each frame of the motion data set into the rotation matrix R = [[cos(θ t )-sin(θ t )],[sin(θ t )cos(θ t )]], the spatial relationship between the agents is obtained, the graph structure data is constructed according to the spatial relationship between the agents, the dynamic features obtained in step S2 are filled into the graph structure, and the node features of the heterogeneous graph with directed edge features are constructed; S3.2: A heterogeneous graph with directed edge features is represented as G = (V, E), where each node in the node set V represents a specific type of traffic participant, and each directed edge in the edge set E contains edge attributes of a specific edge type. The edge attribute is the relative measurement value of node j and node i, and the edge type is the concatenation of the types of node j and node i. The edge features are constructed using edge attributes and edge types. S3.3: Different types of nodes are transformed using the node type transformation matrix M typei The formula for converting from different vector spaces to the same vector space is In the formula, is the node vector feature of the i-th node; S3.4: If agent j is within the predefined region of agent i, then construct an edge e from agent j to agent i. ij , the edge set is: Edge attribute transformation and edge type transformation are introduced to consider edge features and edge types respectively. The formula is: attr′ =M φ ·e attr , e type′ =M χ ·e type , where i and j are the indices of the agent, N i is the neighborhood of node i, M φ is the edge attribute change matrix, M χ is the edge type transformation matrix, e attr is the edge attribute, e type is the edge type, e attr′ is the edge feature of the directed edge feature heterogeneous graph, e type′ is the edge type of a heterogeneous graph with directed edge features.

3. The multi-agent trajectory prediction method based on heterogeneous dynamic graph attention network according to claim 2 is characterized in that: The step S4 extracts the interaction features of all agents through the heterogeneous dynamic graph attention network, including the following steps: S4.1: Re-screen the interacting agents formed at each time point and generate a new subgraph structure; In the directed edge feature heterogeneous graph constructed in step S3, the self-attention mechanism is used to capture spatial interactions, and the interactive object agent j of agent i is determined according to the set distance threshold, and the corresponding matrix D is determined, and the formula is: D[i,j]=1, In the formula, is the location information of agent j, is the location information of agent i, d is the set distance threshold radius, and in the interaction area, the interactive agents formed at each time point are re-screened. The number of interactive agents formed at each time point is sent to the heterogeneous dynamic graph attention network to generate a new subgraph structure; S4.2: Calculate the edge features of the new subgraph structure including interaction strength and interaction category; According to the interactive agents formed at each time point re-screened in step S4.1, the three-element relationship interaction embedding method is combined in the graph representation message passing process: interaction strength, interaction category and category function. After the edge features obtained in step 3.4 are input into a fully connected layer and a softmax category function, the interaction strength and interaction category are obtained, and the interaction strength and interaction category are embedded into the edge features. The formula is: In the formula, r ij is the interaction strength, c ij ∈[0,1] L is the category vector, F l is the learnable class function implemented by MLP, h j is the node vector feature of the jth node, is the edge feature that includes interaction strength and interaction category; S4.3: Calculate the attention coefficient α using edge features containing interaction strength and interaction category ij , using the attention coefficient α ij Perform linear combination on the neighborhood of node i, update the features of node i, and obtain the interaction features after considering the different influences of surrounding agents on the agent.

4. The multi-agent trajectory prediction method based on heterogeneous dynamic graph attention network according to claim 3 is characterized in that: The attention coefficient Where N i is the neighborhood of node i in the graph, is the attention weight vector, is the node vector feature, is the node i and its nearby neighborhood N i The edge features generated by node k in ; Interaction Features Where σ is the Sigmoid activation function, W h is the weight linear transformation matrix that needs to be learned, is the vector feature of the jth node.

5. The multi-agent trajectory prediction method based on heterogeneous dynamic graph attention network according to claim 4 is characterized in that: The step S5 extracts and updates the map features of the map information related to the agent in the motion data set through the convolutional neural network and the gate mechanism selector, and includes the following steps: S5.1: Extracting rasterized initial map features through convolutional neural network (CNN) Where m is the map information, W m is the weight of the map information; S5.2: Using the designed gate mechanism selector, select updated map features for agent i according to the current state of the target agent i in the map.

6. The multi-agent trajectory prediction method based on heterogeneous dynamic graph attention network according to claim 5 is characterized in that: The door mechanism selector The selected updated map features In the formula, is the current state of agent i, W c is the weight matrix, b c is the bias, is a vector.

7. The multi-agent trajectory prediction method based on heterogeneous dynamic graph attention network according to claim 1 or 6, characterized in that: The step S1 preprocesses the trajectory sequence data in the motion data set to eliminate abnormal data in the motion data set; the method for obtaining the trajectory sequence features is: selecting the lateral and longitudinal coordinates, speed, acceleration and steering angle information of the intelligent body in the motion data set as the trajectory sequence features of the intelligent body, and selecting the lateral and longitudinal relative displacements of the intelligent bodies around the intelligent body as the trajectory sequence features of the surrounding intelligent bodies.

8. The multi-agent trajectory prediction method based on heterogeneous dynamic graph attention network according to claim 7 is characterized in that: The step S2 converts the trajectory sequence features in step S1 into dynamic features through an encoder of a corresponding specific type. The method is as follows: the trajectory sequence features of the agent are input into a recurrent neural network encoder of a corresponding specific type to extract its dynamic features.The formula is In the formula, is the dynamic characteristic of agent i at time t, is the trajectory sequence feature of agent i at time t.

9. The multi-agent trajectory prediction method based on heterogeneous dynamic graph attention network according to claim 8 is characterized in that: The method of step S6 predicting the future trajectory of the agent by using the future decoder corresponding to the specific agent type is: In the formula, is the future decoder for a particular type of agent, It is a series of dynamic features, interactive features and map features. is the future trajectory of agent i.

10. The multi-agent trajectory prediction method based on heterogeneous dynamic graph attention network according to claim 9 is characterized in that: The specific steps of step S7 are: S7.1: Use the training set to train the model, use the average displacement error ADE, the final displacement error FDE and the root mean square error RMSE as the loss function, solve the loss function by gradient descent, and update the model parameters according to the gradient; S7.2: Use the Adam optimizer to optimize the heterogeneous dynamic graph attention network and obtain the prediction model. Terminate the training when the loss function no longer decreases and save the trained prediction model. Otherwise, return to step S7.1 to continue updating and training. Use the trajectory sequence data in the test set to test the prediction model and obtain the future trajectory coordinates of the agent.

Citation Information

Cited By

  • Multi-aircraft 4D trajectory prediction method based on graph attention hybrid neural network

    CN119443151A

  • A multi-aircraft 4D trajectory prediction method based on graph attention hybrid neural network

    CN119443151B

  • Multi-agent motion prediction method based on dynamic graph and progressive multi-scale decoding

    CN120632668A