Group agent trajectory prediction method and system with low computational complexity and domain adaptability

Through the hybrid feature attention network and residual aggregation module, the problem of differences in the importance of agent interaction and insufficient domain adaptability in autonomous driving trajectory prediction is solved, and efficient and accurate trajectory prediction is achieved, which is suitable for the safety and security of autonomous driving systems. Improved efficiency.

CN118691850APending Publication Date: 2024-09-24SHANGHAI JIAOTONG UNIV

Patent Information

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

AI Technical Summary

Technical Problem

Existing autonomous driving trajectory prediction methods fail to effectively consider the importance differences and domain adaptability of interactions between agents, resulting in prediction results that deviate from reality, high computational complexity, and difficulty in adapting between different scenarios.

Method used

The hybrid feature attention network is used to capture the space global interaction and time global interaction features by constructing a space edge feature directed graph and a time edge feature directed graph, and combines the residual aggregation module to fuse the spatiotemporal trajectory to generate trajectory prediction results and reduce computational complexity. degree and improve domain adaptability.

Benefits of technology

It significantly improves the accuracy and domain adaptability of trajectory prediction, reduces the computational complexity, enhances the interactive modeling capabilities of agents, and is suitable for improving the safety and efficiency of autonomous driving systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118691850A
    Figure CN118691850A
Patent Text Reader

Abstract

The invention provides a swarm agent trajectory prediction method and system with low computational complexity and domain adaptability, and the method comprises the steps: S1, obtaining an agent trajectory and an initial correlation, respectively representing the agent trajectory and the initial correlation by nodes and edges, and constructing a spatial edge feature directed graph and a time edge feature directed graph; s2, performing node-edge feature fusion processing on the spatial edge feature directed graph and the time edge feature directed graph to obtain enhanced spatial interaction features and enhanced time interaction features; s3, adaptively capturing a space global interaction feature and a time global interaction feature for the enhanced space interaction feature and the enhanced time interaction feature respectively by using a mixed feature attention network; s4, constructing a spatial adjacency matrix and a time adjacency matrix of a residual aggregation module based on the spatial global interaction feature and the time global interaction feature, and fusing the spatial trajectory and the time motion by using the spatial adjacency matrix and the time adjacency matrix of the residual aggregation module to obtain an enhanced spatial-temporal trajectory; and S5, generating trajectory prediction results of all agents in the current scene by using a time convolutional network for the enhanced space-time trajectory.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of autonomous driving trajectory prediction, and in particular to a swarm agent trajectory prediction method and system with low computational complexity and domain adaptability. Background Art

[0002] Trajectory prediction for autonomous driving is an important part of autonomous driving technology. Specifically, trajectory prediction predicts the future position sequence of an agent through observed trajectories. In autonomous driving scenarios, accurately predicting the trajectories of surrounding agents is crucial for the ego vehicle to make decisions in advance and avoid collisions. More importantly, the prediction results should be robust, thereby mitigating performance degradation due to domain transfer. These can significantly improve the safety and efficiency of autonomous driving.

[0003] In recent years, many researchers have done a lot of work on trajectory prediction to study the complex interactions between agents around the ego vehicle. Currently, there are mainly recurrent neural network (RNN)-based methods and graph-based methods. The former constructs the interaction between agents through pooling layers or attention layers, and models the trajectory of each agent as an independent recursive unit; the latter regards each agent as a graph node and its association as a graph edge, and models dense or sparse graphs to directly represent the interaction between agents. Among them, the RNN-based method can effectively learn the temporal clues of each agent, and the graph-based method allows the interaction modeling of agents in an intuitive and natural way. These two methods provide excellent solutions for interaction modeling between agents and can achieve good performance in consistent domains.

[0004] However, these two methods do not take into account the different importance of interactions between agents, and cannot determine the importance of each interaction feature along the channel dimension in agent interaction modeling, which limits the ability to model interactions between agents, resulting in some predictions that deviate from reality, which is called the feature importance (FI) problem. At the same time, existing models may produce predictions that are seriously deviated from reality when transferred to the target domain. This is because the spatial interactions between agents are seriously affected by the scene. Therefore, a well-trained model on the source domain may not be able to model interactions with different scenes on the target domain. This is called the domain adaptation (DA) problem.

[0005] Patent document CN110020748B (application number: CN201910201344.1) discloses a trajectory prediction method, device, equipment and storage medium, which relates to the field of autonomous driving. The method obtains the vehicle position information and vehicle motion information of the vehicle at the sampling time, and determines the surrounding area and obstacle motion information corresponding to the vehicle position information, and finally determines the predicted trajectory information of the vehicle based on the vehicle position information, vehicle motion information and obstacle motion information. This method takes into account the global spatial interaction of the vehicle and improves the accuracy of trajectory prediction. However, it does not consider the problem of domain adaptation, and the migration performance is limited.

[0006] Patent document CN113487653B (application number: CN202110704517.9) discloses an adaptive graph tracking method based on trajectory prediction. After estimating the displacement of the trajectory, this method re-extracts the features of the trajectory in the current frame, inputs them into the adaptive graph neural network AGNN, fuses the appearance, position, and historical information, uses balanced MSE Loss to balance the sample distribution, performs back propagation, and finally expands the output similarity matrix into an augmented matrix. This method takes into account the continuity of temporal motion and has a high tracking accuracy. However, it does not take into account the different importance of interactions between agents, and its interaction modeling capabilities are limited. Summary of the invention

[0007] In view of the defects in the prior art, the object of the present invention is to provide a swarm agent trajectory prediction method and system with low computational complexity and domain adaptability.

[0008] According to the present invention, a group intelligent agent trajectory prediction method with low computational complexity and domain adaptability is provided, comprising:

[0009] Step S1: Obtain the agent trajectory and initial association, represented by nodes and edges respectively, and construct a spatial edge feature directed graph and a temporal edge feature directed graph;

[0010] Step S2: performing node-edge feature fusion processing on the spatial edge feature directed graph and the temporal edge feature directed graph respectively to obtain enhanced spatial interaction features and enhanced temporal interaction features;

[0011] Step S3: The enhanced spatial interaction features and the enhanced temporal interaction features respectively use a hybrid feature attention network to adaptively capture spatial global interaction features and temporal global interaction features;

[0012] Step S4: constructing a spatial adjacency matrix and a temporal adjacency matrix of a residual aggregation module based on the spatial global interaction features and the temporal global interaction features, and using the spatial adjacency matrix and the temporal adjacency matrix of the residual aggregation module to fuse the spatial trajectory and the temporal motion to obtain an enhanced spatiotemporal trajectory;

[0013] Step S5: Use a temporal convolutional network to generate trajectory prediction results for all agents in the current scene for the enhanced spatiotemporal trajectory.

[0014] Preferably, the step S1 adopts:

[0015] Step S11: Modeling the agents as nodes of a graph, and modeling the relationships between the agents as edges of the graph;

[0016] Step S12: Nodes of different agents Construct feature edges between different agents at a certain moment And stack this feature directed graph along the time dimension, defining G spa =(V t , E t ) to represent the directed graph of spatial edge features at time step t;

[0017] Step S13: For different time nodes of the same agent Construct characteristic edges between the same agents in a domain And stack this feature directed graph along the spatial dimension, defining G tem =(V n , E n ) to represent the time edge feature directed graph;

[0018] Among them, the spatial edge feature It represents the spatial relative state between two agents i and j, including the relative position, speed and direction angle in the x and y directions. The spatial edge feature directed graph formed by it is space-dependent. The edge between two nodes beyond the preset distance range does not exist. Within this distance range, the existence of the edge can be judged by the relative speed and relative direction. Describes the position of the agent at the current time step and its spatial relationship;

[0019] Time edge features Represents the agent from time T k to T l The time relative state between the two frames includes the time step between the two frames, and the changes in their individual relative speed and direction angle. The time edge feature directed graph they form is time-dependent, and future nodes have no effect on past nodes. Describes the correlation between all spatial positions of a specific agent on the time axis and its own time motion.

[0020] Preferably, the step S2 adopts:

[0021] Step S21: embed the node features and edge features of the spatial edge feature directed graph or the temporal edge feature directed graph into different high-dimensional tensors through linear projection, and convert them into graph representations; wherein the node features are embedded into a source node embedding graph and a target node embedding graph through two different linear mappings; the source node is the starting point of the edge in the directed graph; the target node is the end point of the edge in the directed graph;

[0022] Step S22: performing element-wise multiplication of the source node embedding graph and the target node embedding graph, and using a mask operation to generate a masked node embedding graph;

[0023] Step S23: Connect the edge embedding graph with the mask node embedding graph, and fuse the two embedding graphs using a 1×1 convolution operation along the channel axis to generate enhanced spatial interaction features or enhanced temporal interaction features.

[0024] Preferably, the step S3 adopts:

[0025] Step S31: Aggregate the enhanced spatial interaction features along the channel axis through maximum pooling and average pooling to obtain interaction features and The interactive features and Splice along the channel direction to generate spliced ​​spatial features

[0026] Step S32: Splice the spatial features Aggregate through a masked asymmetric convolutional network and reduce its number of channels to 1;

[0027] Step S33: aggregate the spatial features After limiting the range through the sigmoid function, it is multiplied element by element with the original spatial enhanced interaction feature to generate the spatial global interaction feature

[0028] Step S34: the spatial enhanced interaction features are passed through the global maximum pooling layer and the global average pooling layer respectively, and then the two results are convolved through the 1×1 convolutional network respectively, and the outputs of the two 1×1 convolutional networks are added;

[0029] Step S35: Generate a channel importance score by applying the added result to the sigmoid function The channel importance score Multiply the spatial enhancement interaction features element by element to generate channel importance features

[0030] Step S36: Generate the generated spatial global interaction features Through linear projection, weights are adaptively assigned along different channels to aggregate all its features; the generated channel importance features Aggregate all its features through weighted averaging;

[0031]

[0032] in, is the weight of the linear projection, σ represents the sum along the channel axis, SAF T is the spatial attention feature map, is the channel attention feature map;

[0033] Step S37: SAF T and Cascade to generate spatial channel mixed feature map A 1×1 convolution operation is used to increase the channel dimension, and a softmax operator is used to generate spatial global interactions.

[0034] Preferably, the step S3 adopts:

[0035] Step S38: Aggregate the enhanced temporal interaction features along the channel axis through maximum pooling and average pooling to obtain interaction features and The interactive features and Splice along the channel direction to generate spliced ​​time features

[0036] Step S39: Splice the time features Aggregate through a masked asymmetric convolutional network and reduce its number of channels to 1;

[0037] Step S310: aggregate the time features After limiting the range through the sigmoid function, it is multiplied element by element with the original time-enhanced interaction feature to generate the time global correlation feature

[0038] Step S311: passing the temporal enhanced interaction features through a global maximum pooling layer and a global average pooling layer respectively, and then convolving the two results through a 1×1 convolutional network respectively, and adding the outputs of the two 1×1 convolutional networks;

[0039] Step S312: Generate a channel importance score by applying the added result to the sigmoid function The channel importance score Multiply the original time-enhanced interaction features element by element to generate channel importance features

[0040] Step S313: Generate the generated time global correlation feature Through linear projection, weights are adaptively assigned along different channels to aggregate all its features; the generated channel importance features Aggregate all its features through weighted averaging;

[0041]

[0042] in, is the weight of the linear projection, σ represents the sum along the channel axis, is the spatial attention feature map, is the channel attention feature map;

[0043] Step S314: TAF S and Cascaded generation of time channel mixed feature maps A 1×1 convolution operation is used to increase the channel dimension, and a softmax operator is used to generate temporal motion associations.

[0044] Preferably, the step S4 adopts:

[0045] Step S41: Global interaction of all spaces Related to time movement The spatial adjacency matrix A as a residual aggregation module spa and the time adjacency matrix A tem ;

[0046] Step S41: Based on the spatial adjacency matrix A spa The spatial trajectory H is learned using the spatial residual module in the residual aggregation module. SIF ;

[0047] Step S42: Based on the time adjacency matrix A tem The temporal motion model H is learned using the temporal residual module in the residual aggregation module. TMF ;

[0048] Step S43: Use an unbiased 1×1 convolution operation to aggregate time information along its time channel and transform the spatial trajectory H SIF Transformed into space-time trajectory Set the time sports mode to H TMF and space-time trajectory Add together to get the enhanced space-time trajectory H S-T .

[0049] Preferably, the step S5 adopts:

[0050] The trajectory prediction result of the nth agent is its position coordinates at the future time Indicates that, assuming the position coordinates Following the binary Gaussian distribution, the negative log-likelihood function is used as the loss function to supervise the training process of the model;

[0051]

[0052] Where μ is the mean, σ is the standard deviation, ρ is the correlation coefficient, and W is all trainable parameters in the model.

[0053] A swarm agent trajectory prediction system with low computational complexity and domain adaptability provided by the present invention comprises:

[0054] Module M1: Obtain the agent trajectory and initial association, represented by nodes and edges respectively, and construct a spatial edge feature directed graph and a temporal edge feature directed graph;

[0055] Module M2: The spatial edge feature directed graph and the temporal edge feature directed graph are processed by node-edge feature fusion to obtain enhanced spatial interaction features and enhanced temporal interaction features;

[0056] Module M3: Enhanced spatial interaction features and enhanced temporal interaction features use hybrid feature attention networks to adaptively capture spatial global interaction features and temporal global interaction features respectively;

[0057] Module M4: constructing a spatial adjacency matrix and a temporal adjacency matrix of a residual aggregation module based on spatial global interaction features and temporal global interaction features, and using the spatial adjacency matrix and the temporal adjacency matrix of the residual aggregation module to fuse the spatial trajectory and the temporal motion to obtain an enhanced spatiotemporal trajectory;

[0058] Module M5: Use a temporal convolutional network to generate trajectory prediction results for all agents in the current scene for the enhanced spatiotemporal trajectory.

[0059] Preferably, the module M1 adopts:

[0060] Module M11: Modeling agents as nodes of a graph and relationships between agents as edges of the graph;

[0061] Module M12: Nodes for different agents Construct feature edges between different agents at a certain moment And stack this feature directed graph along the time dimension, defining G spa =(V t , E t ) to represent the directed graph of spatial edge features at time step t;

[0062] Module M13: Different time nodes of the same agent Construct characteristic edges between the same agents in a domain And stack this feature directed graph along the spatial dimension, defining G tem =(V n , E n ) to represent the time edge feature directed graph;

[0063] Among them, the spatial edge feature It represents the spatial relative state between two agents i and j, including the relative position, speed and direction angle in the x and y directions. The spatial edge feature directed graph formed by it is space-dependent. The edge between two nodes beyond the preset distance range does not exist. Within this distance range, the existence of the edge can be judged by the relative speed and relative direction. Describes the position of the agent at the current time step and its spatial relationship;

[0064] Time edge features Represents the agent from time T k to T l The time relative state between the two frames includes the time step between the two frames, and the changes in their individual relative speed and direction angle. The time edge feature directed graph they form is time-dependent, and future nodes have no effect on past nodes. Describes the correlation between all spatial positions of a specific agent on the time axis and its own temporal motion;

[0065] The module M2 adopts:

[0066] Module M21: embed the node features and edge features of the spatial edge feature directed graph or the temporal edge feature directed graph into different high-dimensional tensors through linear projection, and convert them into graph representations; wherein the node features are respectively embedded into a source node embedding graph and a target node embedding graph through two different linear mappings; the source node is the starting point of the edge in the directed graph; the target node is the end point of the edge in the directed graph;

[0067] Module M22: multiply the source node embedding graph and the target node embedding graph element by element, and use mask operation to generate masked node embedding graph;

[0068] Module M23: Connect the edge embedding map with the mask node embedding map, and fuse the two embedding maps using a 1×1 convolution operation along the channel axis to generate enhanced spatial interaction features or enhanced temporal interaction features.

[0069] Preferably, the module M3 adopts:

[0070] Module M31: Aggregate the enhanced spatial interaction features along the channel axis through maximum pooling and average pooling to obtain interaction features and The interactive features and Splice along the channel direction to generate spliced ​​spatial features

[0071] Module M32: Splicing spatial features Aggregate through a masked asymmetric convolutional network and reduce its number of channels to 1;

[0072] Module M33: Aggregate spatial features After limiting the range through the sigmoid function, it is multiplied element by element with the original spatial enhanced interaction feature to generate the spatial global interaction feature

[0073] Module M34: The spatial enhanced interaction features are passed through the global maximum pooling layer and the global average pooling layer respectively, and then the two results are convolved through a 1×1 convolutional network respectively, and the outputs of the two 1×1 convolutional networks are added;

[0074] Module M35: Generate channel importance scores by passing the summed results through the sigmoid function The channel importance score Multiply the spatial enhancement interaction features element by element to generate channel importance features

[0075] Module M36: Generate spatial global interaction features Through linear projection, weights are adaptively assigned along different channels to aggregate all its features; the generated channel importance features Aggregate all its features through weighted averaging;

[0076]

[0077] in, is the weight of the linear projection, σ represents the sum along the channel axis, SAF T is the spatial attention feature map, is the channel attention feature map;

[0078] Module M37: SAF T and Cascade to generate spatial channel mixed feature map A 1×1 convolution operation is used to increase the channel dimension, and a softmax operator is used to generate spatial global interactions.

[0079] Module M38: Aggregate the enhanced temporal interaction features along the channel axis through maximum pooling and average pooling to obtain interaction features and The interactive features and Splice along the channel direction to generate spliced ​​time features

[0080] Module M39: Splicing time features Aggregate through a masked asymmetric convolutional network and reduce its number of channels to 1;

[0081] Module M310: Aggregate the time features After limiting the range through the sigmoid function, it is multiplied element by element with the original time-enhanced interaction feature to generate the time global correlation feature

[0082] Module M311: The temporal enhanced interaction features are passed through the global maximum pooling layer and the global average pooling layer respectively, and then the two results are convolved through a 1×1 convolutional network respectively, and the outputs of the two 1×1 convolutional networks are added;

[0083] Module M312: Generate channel importance scores by using the sigmoid function to generate the added results The channel importance score Multiply the original time-enhanced interaction features element by element to generate channel importance features

[0084] Module M313: Generate time global correlation features Through linear projection, weights are adaptively assigned along different channels to aggregate all its features; the generated channel importance features Aggregate all its features through weighted averaging;

[0085]

[0086] in, is the weight of the linear projection, σ represents the sum along the channel axis, is the spatial attention feature map, is the channel attention feature map;

[0087] Module M314: TAF S and Cascaded generation of time channel mixed feature maps A 1×1 convolution operation is used to increase the channel dimension, and a softmax operator is used to generate temporal motion associations.

[0088] The module M4 adopts:

[0089] Module M41: Global Interactions in Space Related to time movement The spatial adjacency matrix A as a residual aggregation module spa and the time adjacency matrix A tem ;

[0090] Module M41: Based on the spatial adjacency matrix A spa The spatial trajectory H is learned using the spatial residual module in the residual aggregation module. SIF ;

[0091] Module M42: Based on the time adjacency matrix A tem The temporal motion model H is learned using the temporal residual module in the residual aggregation module. TMF ;

[0092] Module M43: Use unbiased 1×1 convolution operation to aggregate temporal information along its temporal channel and transform the spatial trajectory H SIF Transformed into space-time trajectory Set the time sports mode to H TMF and space-time trajectory Add together to get the enhanced space-time trajectory H S-T .

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

[0094] 1. This paper proposes a lightweight hybrid feature attention network, which can reduce the model calculation complexity by including spatial directed graphs and temporal directed graphs of edge features, while effectively integrating the individual information and mutual relationship information of intelligent agents; in addition, by supporting the joint learning of spatial global interaction and temporal motion patterns, the accuracy of trajectory prediction can be significantly improved;

[0095] 2. A hybrid feature attention mechanism proposed in this invention can effectively improve interaction modeling by capturing the importance of global correlation features and different interaction features to achieve adaptive interaction between group agents;

[0096] 3. The present invention proposes a method for temporal motion pattern learning, which guides trajectory prediction by adaptively capturing the motion pattern of the intelligent agent. This method can significantly enhance the domain adaptability of the model.

[0097] 4. The present invention is suitable for improving the safety and efficiency of autonomous driving systems, and can also be used for environmental perception of collaborative optimization of multi-vehicle systems of new energy vehicles. It adaptively determines the importance of different interaction features, captures global interaction features, enhances interaction modeling, and introduces temporal motion pattern learning to improve domain adaptability. It has good trajectory prediction performance while maintaining low computational complexity. BRIEF DESCRIPTION OF THE DRAWINGS

[0098] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0099] Figure 1 The present invention is an implementation flow chart of the method described in the embodiment of the present invention.

[0100] Figure 2 A schematic diagram of the framework of the hybrid feature attention mechanism and its main components according to an embodiment of the present invention.

[0101] Figure 3 This is a flow chart of mixed feature attention learning in an embodiment of the present invention.

[0102] Figure 4 This is a spatial visualization result diagram of an embodiment of the present invention.

[0103] Figure 5 4 is a performance-computational complexity evaluation index diagram of the embodiment of the present invention and other five methods.

[0104] Figure 6 Graph showing domain adaptability evaluation indicators of the embodiment of the present invention and other six algorithms.

[0105] Figure 7 4 is a diagram of a domain adaptation visualization result according to an embodiment of the present invention. DETAILED DESCRIPTION

[0106] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

[0107] Example 1

[0108] In response to the above problems, the present invention provides a swarm agent trajectory prediction method and system with low computational complexity and domain adaptability, aiming to adaptively determine the importance of different interaction features, capture global interaction features, enhance interaction modeling, introduce temporal motion pattern learning, improve domain adaptability, and maintain good trajectory prediction performance while maintaining low computational complexity.

[0109] The low computational complexity and domain adaptability swarm agent trajectory prediction method, such as Figures 1 to 3 As shown, including:

[0110] Step S1: Obtain the agent trajectory and initial association, represented by nodes and edges respectively, thereby constructing a spatial directed graph with edge features and a temporal directed graph with edge features;

[0111] As a preferred embodiment of the present invention, in order to verify the effectiveness of the present invention, three most widely used trajectory benchmarks are used to evaluate the proposed framework, ETH, UCY and Stanford Drone Dataset (SDD);

[0112] Furthermore, the specific implementation process of the space directed graph and the time directed graph in step S1 is:

[0113] Step S11: Modeling the agents as nodes of a graph, and modeling the relationships between the agents as edges of the graph;

[0114] Step S12: Nodes of different agents Construct feature edges between different agents at a certain moment And stack this feature directed graph along the time dimension, defining G spa =(V t , E t ) to represent the directed graph of spatial edge features at time step t;

[0115] Step S13: For different time nodes of the same agent Construct characteristic edges between the same agents in a domain And stack this feature directed graph along the spatial dimension, defining G tem =(V n , E n ) is used to represent the time edge feature directed graph.

[0116] Furthermore, the spatial edge feature in step S12 It represents the spatial relative state between two agents i and j, including the relative position, speed and direction angle in the x and y directions. The spatial edge feature directed graph it constitutes is spatially dependent. The edge between two nodes beyond a specific distance range does not exist. Within this distance range, the existence of the edge can be judged by the relative speed and relative direction. It describes the position of the agent at the current time step and its spatial relationship.

[0117] Furthermore, the time edge feature in step S13 Represents the agent from time T k to T l The temporal relative state between two frames includes the time step between two frames, and the changes in individual relative speed and direction angle. The time edge feature directed graph it constitutes is time-dependent, and future nodes have no effect on past nodes. It describes the correlation between all spatial positions of a specific agent on the timeline and its own temporal motion.

[0118] Step S2: inputting the two directed graphs into the node-edge fusion module to perform node-edge feature fusion, and generating enhanced spatial interaction features and enhanced temporal interaction features respectively;

[0119] Furthermore, the node-edge fusion module described in step S2 includes spatial node-edge fusion and temporal node-edge fusion, wherein the spatial node-edge fusion is used to process the spatial edge feature directed graph, and the temporal node-edge fusion is used to process the temporal edge feature directed graph.

[0120] Furthermore, the specific implementation process of step S2 is:

[0121] Step S21: embed the node features and edge features of the spatial edge feature directed graph or the temporal edge feature directed graph into different high-dimensional tensors through linear projection, and convert them into graph representations. In particular, the nodes are converted into a source node embedding graph and a target node embedding graph through two linear networks respectively; the source node refers to the starting point of the edge in the directed graph, that is, the arrow starts from this node; the target node is the end point of the edge in the directed graph, that is, the node pointed to by the arrow;

[0122] In this embodiment, the embedding dimensions of the nodes and edges mentioned in step S21 are set to 32, and each node has its own non-empty feature, so the node embedding graph is dense; while the constructed edge features are sparse and directional, so the edge embedding graph is non-dense.

[0123] Step S22: performing element-by-element multiplication on the source node embedding graph and the target node embedding graph, and using a mask operation to generate a masked node embedding graph;

[0124] Step S23: connect the edge embedding graph with the mask node embedding graph, and fuse the two embedding graphs using a 1×1 convolution operation along the channel axis to generate the final enhanced interaction feature;

[0125] Among them, the 1×1 convolutional network contains 5 convolutional layers, and the dimension of the enhanced interaction features is 64.

[0126] Step S3: Input the spatiotemporal interaction features into the hybrid feature attention network respectively to adaptively capture the importance of global interaction features and different interaction features;

[0127] Furthermore, the hybrid feature attention network described in step S3 is divided into spatial hybrid feature attention and temporal hybrid feature attention.

[0128] Furthermore, the specific implementation process of step S3 is:

[0129] S31: Spatial Enhancement Interaction Features The interaction features are obtained by aggregating along the channel axis through maximum pooling (MP) and average pooling (AP). and Then the two interactive features are spliced ​​along the channel direction to generate the spliced ​​spatial feature

[0130] S32: Splicing spatial features Aggregation is performed through a masked asymmetric convolutional network, and the number of its channels is reduced to 1. In this embodiment, the masked asymmetric convolutional network includes 5 convolutional layers, and the kernel size S=3.

[0131] S33: Process the spatial features After limiting the range through the sigmoid function, it is multiplied element by element with the original spatial enhanced interaction feature to generate the spatial global interaction feature

[0132] S34: In parallel with steps S31-S33, the spatial enhanced interaction features are passed through a global maximum pooling (GMP) layer and a global average pooling (GAP) layer, and then the two results are convolved through a 1×1 convolutional network, and the outputs of the two 1×1 convolutional networks are added;

[0133] S35: Generate channel importance score by sigmoid function The channel importance score Multiply the original spatial enhancement interaction features element by element to generate channel importance features

[0134] S36: Generate the spatial global interaction features Through linear projection, weights are adaptively assigned along different channels to aggregate all its features; the generated channel importance features All its features are aggregated through weighted averaging. The specific formula is as follows:

[0135]

[0136] in is the weight of the linear projection, σ represents the sum along the channel axis, SAF T is the spatial attention feature map, is the channel attention feature map.

[0137] S37: SAF T and Cascade to generate spatial channel mixed feature map A 1×1 convolution operation is used to increase the channel dimension, and a softmax operator is used to generate spatial global interaction features.

[0138] S38: Through steps S31-S37, the time-enhanced interaction features are input into the hybrid feature attention network. The difference is that the time-enhanced interaction features are always upper triangular matrices. When performing masked asymmetric convolution in step S32, it is performed on the time dimension of a fixed scale, and finally the time-motion association is generated.

[0139] Specifically, it includes:

[0140] S381: Enhance the interactive features with time The interaction features are obtained by aggregating along the channel axis through maximum pooling (MP) and average pooling (AP). and Then the two interaction features are concatenated along the channel direction to generate the concatenated temporal features.

[0141] S382: Splicing time features Aggregation is performed through a masked asymmetric convolutional network, and the number of its channels is reduced to 1. In this embodiment, the masked asymmetric convolutional network includes 5 convolutional layers, and the kernel size S=3.

[0142] S383: Process the spatial features After limiting the range through the sigmoid function, it is multiplied element by element with the original spatial enhanced interaction feature to generate the temporal global correlation feature

[0143] S384: In parallel with steps S31-S33, the temporal enhanced interaction features are passed through a global maximum pooling (GMP) layer and a global average pooling (GAP) layer, and then the two results are convolved through a 1×1 convolutional network, and the outputs of the two 1×1 convolutional networks are added;

[0144] S385: Generate channel importance score by using sigmoid function to add the result The channel importance score Enhanced interactive features with the original time Multiply element by element to generate channel importance features

[0145] S386: Generate the time global correlation feature Through linear projection, weights are adaptively assigned along different channels to aggregate all its features; the generated channel importance features All its features are aggregated through weighted averaging. The specific formula is as follows:

[0146]

[0147] in is the weight of the linear projection, σ represents the sum along the channel axis, is the spatial attention feature map, is the channel attention feature map.

[0148] S387: TAF S and Cascaded generation of time channel mixed feature maps A 1×1 convolution operation is used to increase the channel dimension, and a softmax operator is used to generate temporal motion associations.

[0149] Step S4: Obtained spatial global interaction Related to time movement is the spatial adjacency matrix A of the residual aggregation module spa and the time adjacency matrix A tem The residual aggregation module is used to fuse spatial trajectory and temporal motion;

[0150] Furthermore, the residual aggregation module described in step S4 is divided into a spatial residual module GCN and a temporal residual module GCN. The former is used to learn the spatial trajectory representation H SIF , which is used to learn the temporal motion pattern (TMP) H TMF In particular, in order to complete the spatial trajectory representation H output by the spatial residual GCN SIF The temporal dependence of the spatial trajectory is represented by H using an unbiased 1×1 convolution operation to aggregate temporal information along its temporal channel. SIF Transformed into space-time trajectory representation Finally, set the time motion mode H TMF Representation of space-time trajectories Add together to get the enhanced spatiotemporal trajectory representation H S-T Among them, both spatial and temporal residual GCNs are cascaded to 3 layers.

[0151] The specific formula is as follows:

[0152]

[0153] In the formula, and is the weight of the l-1th layer of GCN, l is the number of layers, when l is 0, H SIF and H TMF is the initial node, Conv1D ub is an unbiased 1×1 convolution operation.

[0154] Step S5: Represent the enhanced spatiotemporal trajectory H S-T Use a temporal convolutional network to generate trajectory prediction results for all agents in the current scene.

[0155] Furthermore, the trajectory prediction result of the nth agent is expressed as its position coordinates at the future time Indicates that, assuming the position coordinates Following the binary Gaussian distribution, the negative log-likelihood function is used as the loss function to supervise the training process of the model. The formula is as follows:

[0156]

[0157] Where μ is the mean, σ is the standard deviation, ρ is the correlation coefficient, and W is all trainable parameters in the model.

[0158] The present invention also provides a swarm agent trajectory prediction system with low computational complexity and domain adaptability. The swarm agent trajectory prediction system with low computational complexity and domain adaptability can be implemented by executing the process steps of the swarm agent trajectory prediction method with low computational complexity and domain adaptability, that is, those skilled in the art can understand the swarm agent trajectory prediction method with low computational complexity and domain adaptability as a preferred implementation of the swarm agent trajectory prediction system with low computational complexity and domain adaptability.

[0159] This invention realizes efficient group agent trajectory prediction with domain adaptability. The method has shown excellent trajectory prediction effect in the test, and the predicted trajectory is highly consistent with the actual trajectory, such as Figure 4 This method not only maintains low average distance error (ADE) and final distance error (FDE), but also has extremely low computational complexity. The test results and performance parameters are compared in Figure 5 Further tests show that the proposed method maintains strong adaptability when transferring between different domains, and its ADE and FDE indicators are better than the current state-of-the-art T-GNN method. The detailed performance comparison and visualization results are shown in Figure 6 and Figure 7 The swarm agent trajectory prediction method with low computational complexity and domain adaptability of this example enhances the adaptive interaction between swarm agents, reduces the computational complexity of the prediction process, and improves the domain adaptability of the prediction results. It has the characteristics of accurate interaction modeling, high trajectory prediction accuracy, low computational complexity, and strong domain adaptability. In view of the key role of trajectory prediction in autonomous driving safety, the present invention has important practical value, and is particularly suitable for improving the safety and efficiency of autonomous driving systems. It can also be used for environmental perception of collaborative optimization of multi-vehicle systems of new energy vehicles.

[0160] Those skilled in the art know that, in addition to realizing the system and its various devices, modules, and units provided by the present invention in a purely computer-readable program code, it is entirely possible to realize the same functions in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, the system and its various devices, modules, and units provided by the present invention can be considered as a hardware component, and the devices, modules, and units included therein for realizing various functions can also be regarded as structures within the hardware component; the devices, modules, and units for realizing various functions can also be regarded as both software modules for realizing the method and structures within the hardware component.

[0161] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.

Claims

1. A swarm agent trajectory prediction method with low computational complexity and domain adaptability, It is characterized in that include: Step S1: Obtain the agent trajectory and initial association, represented by nodes and edges respectively, and construct a spatial edge feature directed graph and a temporal edge feature directed graph; Step S2: performing node-edge feature fusion processing on the spatial edge feature directed graph and the temporal edge feature directed graph respectively to obtain enhanced spatial interaction features and enhanced temporal interaction features; Step S3: The enhanced spatial interaction features and the enhanced temporal interaction features respectively use a hybrid feature attention network to adaptively capture spatial global interaction features and temporal global interaction features; Step S4: constructing a spatial adjacency matrix and a temporal adjacency matrix of a residual aggregation module based on the spatial global interaction features and the temporal global interaction features, and using the spatial adjacency matrix and the temporal adjacency matrix of the residual aggregation module to fuse the spatial trajectory and the temporal motion to obtain an enhanced spatiotemporal trajectory; Step S5: Use a temporal convolutional network to generate trajectory prediction results for all agents in the current scene for the enhanced spatiotemporal trajectory.

2. The swarm agent trajectory prediction method with low computational complexity and domain adaptability according to claim 1, It is characterized in that The step S1 adopts: Step S11: Modeling the agents as nodes of a graph, and modeling the relationships between the agents as edges of the graph; Step S12: Nodes of different agents Construct feature edges between different agents at a certain moment And stack this feature directed graph along the time dimension, defining G spa =(V t , E t ) to represent the directed graph of spatial edge features at time step t; Step S13: For different time nodes of the same agent Construct characteristic edges between the same agents in a domain And stack this feature directed graph along the spatial dimension, defining G tem =(V n , E n ) to represent the time edge feature directed graph; Among them, the spatial edge feature It represents the spatial relative state between two agents i and j, including the relative position, speed and direction angle in the x and y directions. The spatial edge feature directed graph formed by it is space-dependent. The edge between two nodes beyond the preset distance range does not exist. Within this distance range, the existence of the edge can be judged by the relative speed and relative direction. Describes the position of the agent at the current time step and its spatial relationship; Time edge features Represents the agent from time T k to T l The time relative state between the two frames includes the time step between the two frames, and the changes in their individual relative speed and direction angle. The time edge feature directed graph they form is time-dependent, and future nodes have no effect on past nodes. Describes the correlation between all spatial positions of a specific agent on the time axis and its own time motion.

3. The swarm agent trajectory prediction method with low computational complexity and domain adaptability according to claim 1, It is characterized in that The step S2 adopts: Step S21: embed the node features and edge features of the spatial edge feature directed graph or the temporal edge feature directed graph into different high-dimensional tensors through linear projection, and convert them into graph representations; wherein the node features are embedded into a source node embedding graph and a target node embedding graph through two different linear mappings; the source node is the starting point of the edge in the directed graph; the target node is the end point of the edge in the directed graph; Step S22: performing element-wise multiplication of the source node embedding graph and the target node embedding graph, and using a mask operation to generate a masked node embedding graph; Step S23: Connect the edge embedding graph with the mask node embedding graph, and fuse the two embedding graphs using a 1×1 convolution operation along the channel axis to generate enhanced spatial interaction features or enhanced temporal interaction features.

4. The swarm agent trajectory prediction method with low computational complexity and domain adaptability according to claim 1, It is characterized in that The step S3 adopts: Step S31: Aggregate the enhanced spatial interaction features along the channel axis through maximum pooling and average pooling to obtain interaction features and The interactive features and Splice along the channel direction to generate spliced ​​spatial features Step S32: Splice the spatial features Aggregate through a masked asymmetric convolutional network and reduce its number of channels to 1; Step S33: aggregate the spatial features After limiting the range through the sigmoid function, it is multiplied element by element with the original spatial enhanced interaction feature to generate the spatial global interaction feature Step S34: the spatial enhanced interaction features are passed through the global maximum pooling layer and the global average pooling layer respectively, and then the two results are convolved through the 1×1 convolutional network respectively, and the outputs of the two 1×1 convolutional networks are added; Step S35: Generate a channel importance score by applying the added result to the sigmoid function The channel importance score Multiply the spatial enhancement interaction features element by element to generate channel importance features Step S36: Generate the generated spatial global interaction features Through linear projection, weights are adaptively assigned along different channels to aggregate all its features; the generated channel importance features Aggregate all its features through weighted averaging; in, is the weight of the linear projection, σ represents the sum along the channel axis, SAF T is the spatial attention feature map, is the channel attention feature map; Step S37: SAF T and Cascade to generate spatial channel mixed feature map A 1×1 convolution operation is used to increase the channel dimension, and a softmax operator is used to generate spatial global interactions.

5. The swarm agent trajectory prediction method with low computational complexity and domain adaptability according to claim 1, It is characterized in that The step S3 adopts: Step S38: Aggregate the enhanced temporal interaction features along the channel axis through maximum pooling and average pooling to obtain interaction features and The interactive features and Splice along the channel direction to generate spliced ​​time features Step S39: Splice the time features Aggregate through a masked asymmetric convolutional network and reduce its number of channels to 1; Step S310: aggregate the time features After limiting the range through the sigmoid function, it is multiplied element by element with the original time-enhanced interaction feature to generate the time global correlation feature Step S311: passing the temporal enhanced interaction features through a global maximum pooling layer and a global average pooling layer respectively, and then convolving the two results through a 1×1 convolutional network respectively, and adding the outputs of the two 1×1 convolutional networks; Step S312: Generate a channel importance score by applying the added result to the sigmoid function The channel importance score Multiply the original time-enhanced interaction features element by element to generate channel importance features Step S313: Generate the generated time global correlation feature Through linear projection, weights are adaptively assigned along different channels to aggregate all its features; The generated channel importance features Aggregate all its features through weighted averaging; in, is the weight of the linear projection, σ represents the sum along the channel axis, is the spatial attention feature map, is the channel attention feature map; Step S314: TAF S and Cascaded generation of time channel mixed feature maps A 1×1 convolution operation is used to increase the channel dimension, and a softmax operator is used to generate temporal motion associations.

6. The swarm agent trajectory prediction method with low computational complexity and domain adaptability according to claim 1, It is characterized in that The step S4 adopts: Step S41: Global interaction of all spaces Related to time movement The spatial adjacency matrix A as a residual aggregation module spa and the time adjacency matrix A tem ; Step S41: Based on the spatial adjacency matrix A spa The spatial trajectory H is learned using the spatial residual module in the residual aggregation module. SIF ; Step S42: Based on the time adjacency matrix A tem The temporal motion model H is learned using the temporal residual module in the residual aggregation module. TMF ; Step S43: Use an unbiased 1×1 convolution operation to aggregate time information along its time channel and transform the spatial trajectory H SIF Transformed into space-time trajectory Set the time sports mode to H TMF and space-time trajectory Add together to get the enhanced space-time trajectory H S-T .

7. The swarm agent trajectory prediction method with low computational complexity and domain adaptability according to claim 1, It is characterized in that The step S5 adopts: The trajectory prediction result of the nth agent is its position coordinates at the future time Indicates that, assuming the position coordinates Following the binary Gaussian distribution, the negative log-likelihood function is used as the loss function to supervise the training process of the model; Where μ is the mean, σ is the standard deviation, ρ is the correlation coefficient, and W is all trainable parameters in the model.

8. A swarm agent trajectory prediction system with low computational complexity and domain adaptability, It is characterized in that include: Module M1: Obtain the agent trajectory and initial association, represented by nodes and edges respectively, and construct a spatial edge feature directed graph and a temporal edge feature directed graph; Module M2: The spatial edge feature directed graph and the temporal edge feature directed graph are processed by node-edge feature fusion to obtain enhanced spatial interaction features and enhanced temporal interaction features; Module M3: Enhanced spatial interaction features and enhanced temporal interaction features use hybrid feature attention networks to adaptively capture spatial global interaction features and temporal global interaction features respectively; Module M4: constructing a spatial adjacency matrix and a temporal adjacency matrix of a residual aggregation module based on spatial global interaction features and temporal global interaction features, and using the spatial adjacency matrix and the temporal adjacency matrix of the residual aggregation module to fuse the spatial trajectory and the temporal motion to obtain an enhanced spatiotemporal trajectory; Module M5: Use a temporal convolutional network to generate trajectory prediction results for all agents in the current scene for the enhanced spatiotemporal trajectory.

9. The swarm agent trajectory prediction system with low computational complexity and domain adaptability according to claim 8, It is characterized in that The module M1 adopts: Module M11: Modeling agents as nodes of a graph and relationships between agents as edges of the graph; Module M12: Nodes for different agents Construct feature edges between different agents at a certain moment And stack this feature directed graph along the time dimension, defining G spa =(V t , E t ) to represent the directed graph of spatial edge features at time step t; Module M13: Different time nodes of the same agent Construct characteristic edges between the same agents in a domain And stack this feature directed graph along the spatial dimension, defining G tem =(V n , E n ) to represent the time edge feature directed graph; Among them, the spatial edge feature It represents the spatial relative state between two agents i and j, including the relative position, speed and direction angle in the x and y directions. The spatial edge feature directed graph formed by it is space-dependent. The edge between two nodes beyond the preset distance range does not exist. Within this distance range, the existence of the edge can be judged by the relative speed and relative direction. Describes the position of the agent at the current time step and its spatial relationship; Time edge features Represents the agent from time T k to T l The time relative state between the two frames includes the time step between the two frames, and the changes in their individual relative speed and direction angle. The time edge feature directed graph they form is time-dependent, and future nodes have no effect on past nodes. Describes the correlation between all spatial positions of a specific agent on the time axis and its own temporal motion; The module M2 adopts: Module M21: embed the node features and edge features of the spatial edge feature directed graph or the temporal edge feature directed graph into different high-dimensional tensors through linear projection, and convert them into graph representations; wherein the node features are respectively embedded into a source node embedding graph and a target node embedding graph through two different linear mappings; the source node is the starting point of the edge in the directed graph; the target node is the end point of the edge in the directed graph; Module M22: multiply the source node embedding graph and the target node embedding graph element by element, and use mask operation to generate a masked node embedding graph; Module M23: Connect the edge embedding map with the mask node embedding map, and fuse the two embedding maps using a 1×1 convolution operation along the channel axis to generate enhanced spatial interaction features or enhanced temporal interaction features.

10. The swarm agent trajectory prediction system with low computational complexity and domain adaptability according to claim 8, It is characterized in that The module M3 adopts: Module M31: Aggregate the enhanced spatial interaction features along the channel axis through maximum pooling and average pooling to obtain interaction features and The interactive features and Splice along the channel direction to generate spliced ​​spatial features Module M32: Splicing spatial features Aggregate through a masked asymmetric convolutional network and reduce its number of channels to 1; Module M33: Aggregate spatial features After limiting the range through the sigmoid function, it is multiplied element by element with the original spatial enhanced interaction feature to generate the spatial global interaction feature Module M34: The spatial enhanced interaction features are passed through the global maximum pooling layer and the global average pooling layer respectively, and then the two results are convolved through a 1×1 convolutional network respectively, and the outputs of the two 1×1 convolutional networks are added; Module M35: Generate channel importance scores by passing the summed results through the sigmoid function The channel importance score Multiply the spatial enhancement interaction features element by element to generate channel importance features Module M36: Generate spatial global interaction features Through linear projection, weights are adaptively assigned along different channels to aggregate all its features; the generated channel importance features Aggregate all its features through weighted averaging; in, is the weight of the linear projection, σ represents the sum along the channel axis, SAF T is the spatial attention feature map, is the channel attention feature map; Module M37: SAF T and Cascade to generate spatial channel mixed feature map A 1×1 convolution operation is used to increase the channel dimension, and a softmax operator is used to generate spatial global interactions. Module M38: Aggregate the enhanced temporal interaction features along the channel axis through maximum pooling and average pooling to obtain interaction features and The interactive features and Splice along the channel direction to generate spliced ​​time features Module M39: Splicing time features Aggregate through a masked asymmetric convolutional network and reduce its number of channels to 1; Module M310: Aggregate the time features After limiting the range through the sigmoid function, it is multiplied element by element with the original time-enhanced interaction feature to generate the time global correlation feature Module M311: The temporal enhanced interaction features are passed through the global maximum pooling layer and the global average pooling layer respectively, and then the two results are convolved through a 1×1 convolutional network respectively, and the outputs of the two 1×1 convolutional networks are added; Module M312: Generate channel importance scores by using the sigmoid function to generate the added results The channel importance score Multiply the original time-enhanced interaction features element by element to generate channel importance features Module M313: Generate time global correlation features Through linear projection, weights are adaptively assigned along different channels to aggregate all its features; the generated channel importance features Aggregate all its features through weighted averaging; in, is the weight of the linear projection, σ represents the sum along the channel axis, is the spatial attention feature map, is the channel attention feature map; Module M314: TAF S and Cascaded generation of time channel mixed feature maps A 1×1 convolution operation is used to increase the channel dimension, and a softmax operator is used to generate temporal motion associations. The module M4 adopts: Module M41: Global Interactions in Space Related to time movement The spatial adjacency matrix A as a residual aggregation module spa and the time adjacency matrix A tem ; Module M41: Based on the spatial adjacency matrix A spa The spatial trajectory H is learned using the spatial residual module in the residual aggregation module. SIF ; Module M42: Based on the time adjacency matrix A tem The temporal motion model H is learned using the temporal residual module in the residual aggregation module. TMF ; Module M43: Use unbiased 1×1 convolution operation to aggregate temporal information along its temporal channel and transform the spatial trajectory H SIF Transformed into space-time trajectory Set the time sports mode to H TMF and space-time trajectory Add together to get the enhanced space-time trajectory H S-T .

Citation Information

Patent Citations

  • Trajectory prediction method and device based on double attention mechanism

    CN114117259A

  • Multi-agent unified interaction track prediction method, system, equipment and medium

    CN116629462A

Cited By

  • Visual language-based intelligent agent trajectory navigation system and method thereof

    CN121230733A

  • Ship trajectory prediction method based on irregular multivariable real trajectory time sequence

    CN121301834A