A multi-vehicle trajectory prediction method, device, medium and product

By combining linear inference networks and spatial perception inference modules to process multi-vehicle trajectory data, the problems of temporal continuity and spatial noise in multi-vehicle trajectory prediction are solved, achieving more efficient and accurate future trajectory prediction.

CN118865277BActive Publication Date: 2026-11-27SHANGHAI UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410883396.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2026-11-27
Estimated Expiration
2044-07-02

AI Technical Summary

Technical Problem

Existing technologies cannot effectively handle the temporal continuity and spatial noise of target vehicles in multi-vehicle trajectory prediction, resulting in low prediction accuracy and efficiency.

Method used

A target spatiotemporal inference module combining a linear inference network and a spatial awareness inference module is used to acquire current and historical trajectory data, process the temporal and spatial feature matrices respectively, and generate a spatiotemporal fusion trajectory feature matrix for future trajectory prediction.

Benefits of technology

It improves the accuracy and efficiency of multi-vehicle future trajectory prediction. By combining time and spatial dimension processing, it reduces redundant information and improves the overall performance of the prediction model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118865277B_ABST
    Figure CN118865277B_ABST
Patent Text Reader

Abstract

The application discloses a multi-vehicle trajectory prediction method, device, medium and product, the method comprising: acquiring current trajectory data and preset time length history trajectory data; constructing a target space-time reasoning module; determining a time feature matrix of a plurality of vehicles according to the preset time length history trajectory data and the linear reasoning network; determining a space feature matrix of a plurality of vehicles according to the current trajectory data and the space perception reasoning module; splicing the time feature matrix and the space feature matrix to obtain a target space-time fusion trajectory feature matrix; inputting the target space-time fusion trajectory feature matrix into a future trajectory prediction model to generate a target node feature matrix corresponding to a plurality of vehicles and a target edge feature matrix corresponding to a plurality of vehicles within a prediction time length; and based on the target node feature matrix, acquiring a future trajectory of the plurality of vehicles within the prediction time length, so as to improve the prediction accuracy and efficiency of the future trajectory of the plurality of vehicles.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of trajectory prediction, and in particular to a method, device, medium and product for predicting the trajectory of multiple vehicles. Background Technology

[0002] In existing technologies, simple long short-term memory networks are used to encode and decode features, while simple convolutional neural networks are used to extract spatial features around the target vehicle. However, these methods cannot remove noise in the spatial dimension, resulting in high prediction errors.

[0003] Currently, graph attention modules can solve the spatial noise problem, but they ignore the temporal continuity of the target vehicle itself. Also, because they focus on solving the spatial interaction problem, they also input a lot of spatial interaction information, which leads to a decrease in network training efficiency and poor prediction accuracy. Summary of the Invention

[0004] The purpose of this application is to provide a method, device, medium, and product for predicting the trajectory of multiple vehicles, which can help improve the accuracy and efficiency of predicting the future trajectories of multiple vehicles when the driving of multiple vehicles has temporal continuity.

[0005] To achieve the above objectives, this application provides the following solution:

[0006] Firstly, this application provides a multi-vehicle trajectory prediction method, including:

[0007] Acquire current trajectory data and historical trajectory data for a preset duration; the current trajectory data includes the current position and speed information of multiple vehicles in the current traffic scenario, as well as the current spatial interaction information between any vehicle and the target vehicle; the multiple vehicles include the target vehicle and any vehicle within the target vehicle's distance range; the historical trajectory data for the preset duration includes the historical position and speed information of historical vehicles in the same scenario as the current traffic scenario within a continuous preset duration, as well as the historical spatial interaction information between any historical vehicle and the historical target vehicle;

[0008] A target spatiotemporal reasoning module is constructed; the target spatiotemporal reasoning module includes the linear reasoning network and the spatial awareness reasoning module.

[0009] Based on the preset duration historical trajectory data and the linear inference network, determine the time feature matrices of multiple vehicles;

[0010] Based on the current trajectory data and the spatial perception reasoning module, spatial feature matrices of multiple vehicles are determined;

[0011] By concatenating the temporal feature matrix and the spatial feature matrix, a target spatiotemporal fusion trajectory feature matrix is ​​obtained;

[0012] The target spatiotemporal fusion trajectory feature matrix is ​​input into the future trajectory prediction model to generate target node feature matrices and target edge feature matrices corresponding to multiple vehicles within the prediction time. The target edge feature matrix includes target space interaction information between any vehicle and the target vehicle. The target node feature matrix includes predicted position information and predicted speed information for each vehicle.

[0013] Based on the target node feature matrix, the future trajectories of multiple vehicles within the prediction time are obtained.

[0014] Secondly, this application provides a computer device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the multi-vehicle trajectory prediction method described above.

[0015] Thirdly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the multi-vehicle trajectory prediction method described above.

[0016] Fourthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the multi-vehicle trajectory prediction method described above.

[0017] According to the specific embodiments provided in this application, the following technical effects are disclosed:

[0018] This application provides a method, device, medium, and product for multi-vehicle trajectory prediction. On one hand, it acquires historical trajectory data of a preset duration within the same traffic scenario, processes this data to consider the temporal continuity of multiple vehicles within the traffic scenario, and leverages the strong capture and reasoning capabilities of a linear inference network to ultimately determine a more accurate temporal feature matrix for multiple vehicles. This lays the foundation for accurate predictions in the future trajectory prediction model in the time dimension. On the other hand, it processes the current trajectory data to obtain the current position and speed information of each vehicle, as well as the spatial interaction information between any vehicle and the target vehicle. This avoids considering long-term spatial interaction information, preventing spatial information redundancy and the resulting time-consuming and labor-intensive training and prediction processes, leading to reduced prediction efficiency. Furthermore, a spatiotemporal perception inference module determines the spatial feature matrix of multiple vehicles. This module enhances the adaptive feature matrix aggregation capability of multiple vehicles, obtaining more accurate spatial interaction information between the target vehicle and any other vehicle in the spatial dimension. In other words, this application combines time and space dimensions to predict the predicted position and speed of each vehicle within a predicted timeframe using a future trajectory prediction model, thereby improving the accuracy of multi-vehicle future trajectory prediction. Simultaneously, the independent processing using a linear inference network in the time dimension and a spatial perception inference module in the spatial dimension also enhances the overall prediction efficiency. Attached Figure Description

[0019] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 This is a flowchart illustrating a multi-vehicle trajectory prediction method in one embodiment of this application;

[0021] Figure 2 This is a network structure diagram of a multi-vehicle trajectory prediction method provided in an embodiment of this application;

[0022] Figure 3 This is a schematic diagram of the spatial information interaction structure between vehicles in a multi-vehicle trajectory prediction method provided in an embodiment of this application;

[0023] Figure 4 This is a data processing diagram illustrating a multi-vehicle trajectory prediction method provided in an embodiment of this application;

[0024] Figure 5This is a schematic diagram of the time-aware module in a multi-vehicle trajectory prediction method provided in an embodiment of this application. Detailed Implementation

[0025] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0026] To make the above-mentioned objectives, feature matrix and advantages of this application more apparent and understandable, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0027] Reference Figure 1 This application provides a multi-vehicle trajectory prediction method, including:

[0028] Step 101: Obtain current trajectory data and historical trajectory data for a preset duration; the current trajectory data includes the current location information and current speed information of multiple vehicles in the current traffic scenario, as well as the current spatial interaction information between any vehicle and the target vehicle; the multiple vehicles include the target vehicle and any vehicle within the distance range of the target vehicle; the historical trajectory data for the preset duration includes the historical location information and historical speed information of historical vehicles that are in the same scenario as the current traffic scenario within a continuous preset duration, as well as the historical spatial interaction information between any historical vehicle and the historical target vehicle.

[0029] In practical applications, pre-defined long-term historical trajectory data of multiple vehicles are used as input to subsequently capture the temporal correlations among these vehicles using a linear inference network. Simultaneously, real-time traffic scene data—that is, current trajectory data within the current traffic scene—is used as input to subsequently utilize a spatial awareness inference module to capture and infer the current spatial interaction information between any vehicle and a target vehicle. Combining the temporal and spatial relationships of multiple vehicles improves the accuracy of predicting their future trajectories.

[0030] Step 102: Construct the target spatiotemporal reasoning module; the target spatiotemporal reasoning module includes the linear reasoning network and the spatial awareness reasoning module.

[0031] Specifically, using a linear inference network in the time dimension and a spatial awareness inference module for independent processing in the spatial dimension can improve the overall prediction efficiency and accuracy.

[0032] Step 103: Determine the time feature matrix of multiple vehicles based on the preset duration historical trajectory data and the linear inference network.

[0033] In particular, for the acquisition of time feature matrices of multiple vehicles in the same traffic scenario, this application proposes a novel inference network for extraction, which is beneficial to improve acquisition efficiency and also improves the accuracy of the inferred time feature matrices.

[0034] In some embodiments, determining the time feature matrix of multiple vehicles based on the preset duration historical trajectory data and the linear inference network specifically includes: preprocessing the preset duration historical trajectory data to generate a historical node feature matrix; the historical node feature matrix includes historical location information and historical speed information corresponding to each historical target vehicle; and determining the time feature matrix of multiple vehicles based on the linear inference network and the historical node feature matrix.

[0035] Based on the publicly available NGSIM dataset of Hollywood Highway in the United States and the HighD dataset of German highways, historical trajectory data of target vehicles in the same traffic scenario within a preset time period are extracted, as well as the time feature matrix formed by the target vehicle and any vehicle within the distance range.

[0036] In some embodiments, determining the time feature matrix of multiple vehicles based on the linear inference network and the historical node feature matrix specifically includes: the linear inference network comprising a first linear layer and a second linear layer; expanding the historical node feature matrix based on the first linear layer to generate a related feature matrix of the historical trajectories of multiple vehicles; and integrating the related feature matrices of the historical trajectories of multiple vehicles based on the second linear layer to generate the time feature matrix of the multiple vehicles.

[0037] Reference Figure 2 First, based on the historical node feature matrix, after passing through the first linear layer, the relevant feature matrices of the historical trajectories of multiple participating vehicles are expanded. These matrices are then activated through the first linear layer before entering and exiting the linear inference network. A residual term is then introduced to better preserve spatial interaction information. Finally, the matrices are integrated through the second linear layer to obtain the temporal feature matrix of the multiple vehicles with extended historical trajectories.

[0038] The linear inference network aims to fully linearize the inference system by diagonalizing, parameterizing, and initializing model parameters within the deep state space, thereby enabling stable capture of the temporal feature matrix based on historical trajectory data of a preset duration. Furthermore, the linear inference network is an improvement upon traditional inference networks. The deep state space of a traditional inference network is shown in the following equation, where A and B are parameter matrices:

[0039] xt =f(Ax t-1 +Bv t )

[0040] In deep state-space models, diagonalizing the linear system to improve computational efficiency is a key characteristic of all deep state-space models, and the above equation can be simplified to:

[0041]

[0042] To make the linear loop efficient and concise, the influence of the parameter matrix B is omitted. Therefore, as... Figure 4 As shown, the specific processing procedure of the linear inference network is as follows:

[0043] (1) Complexification and diagonalization

[0044] As can be seen from the above formula, the main calculations are concentrated on the exponentiation operations of the parameter matrix A. Diagonalizing the parameter matrix A can improve efficiency, but real matrices are not necessarily diagonalizable in the real domain. However, any matrix can be diagonalized in the complex domain, which means that matrix A can be transformed into:

[0045]

[0046] Where P is the characteristic matrix in the mathematical sense, Λ=diag(λ1,λ2,λ3,…,λ d ) is a diagonal matrix composed of eigenvalues ​​λ.

[0047] (2) Parameterization

[0048] The advantage of diagonal matrices is that all operations are element-wise, so operations in each dimension can be fully parallelized. This means that analyzing only one dimension is equivalent to analyzing all dimensions, and the model analysis only needs to be performed in one-dimensional space. We can set λ = re iθ , where r≥0,θ∈[0,2π).

[0049]

[0050] Where r is the polar coordinate parameter.

[0051] (3) Initialization

[0052] For a d×d real matrix, the standard Groovy initialization is a normal or uniform distribution with a mean of 0 and a variance of 1 / d. However, theory and experiments have shown that the eigenvalues ​​of such an initialized matrix are approximately uniformly distributed within the unit circle of the complex plane. The standard method for initializing Λ can be viewed as uniformly selecting points on the unit circle of the complex plane. On the other hand, the transformation from Cartesian coordinates to polar coordinates utilizes dxdy=rdrdθ=12d(r 2To prevent gradient vanishing as much as possible, we must, during the initialization phase, use r∈[r...] min ,r max Uniform sampling within the circle, ensuring r is as close to 1 as possible, results in a sampling pattern of θ ~ U[0, 2π]. We set r min =0.9, r max =0.999. To ensure training stability, we introduce another parameter γ that varies with the element, initialized to... Where r is the initial sampling point, we get:

[0053]

[0054] It is worth noting that the historical node feature matrix is ​​expanded through the first linear layer. Furthermore, to better extract the historical time feature matrix of long-term historical trajectory data with a preset duration, the state space model parameters are diagonalized, parameterized, and initialized within the deep state space. Specifically, after entering the linear inference network, the tensor is activated equally through the second linear layer. Similarly, after inference, another linear layer is needed to activate the subsequent spatiotemporal fusion trajectory feature matrix.

[0055] Traditional recurrent neural networks (RNNs) suffer from the inability to capture long-term sequences, and are prone to gradient explosion or vanishing during training. However, the deep state-space model of RNNs has been proven to capture long-term historical information and enable stable training. Starting from the deep state space, the state-space model of a RNN can be simplified as follows:

[0056] x t =f(Ax t-1 +Bv t )

[0057] Where, x t ,v t Let A, B ∈ R, where R represents a real number. t The input tensor (i.e., the features of the history node matrix), x t It is the output tensor (i.e., the time feature matrix at the current moment), x t-1 is the hidden feature at time t-1 (i.e., the time feature matrix at time t-1), A and B are both parameterized matrices, and f is the activation function.

[0058] In state-space models, diagonalizing linear inference modules to improve computational efficiency is a key characteristic of all state-space models. t =f(Ax t-1 +Bv t This can be simplified to:

[0059]

[0060] Where, x t It is the output tensor at time t. k It is the input tensor at time k. To make the linear loop efficient and concise, the influence of the parameter matrix B is omitted.

[0061] Step 104: Determine the spatial feature matrix of multiple vehicles based on the current trajectory data and the spatial perception reasoning module.

[0062] In some embodiments, determining the spatial feature matrix of multiple vehicles specifically includes: preprocessing the current trajectory data to determine the current time node feature matrix; the current time node feature matrix includes the current time position information and current time speed information corresponding to each target vehicle; preprocessing the current trajectory data to determine the current time edge feature matrix; the current time edge feature matrix includes the current time spatial interaction information between any vehicle and the target vehicle; and determining the spatial feature matrix of multiple vehicles based on the spatial perception inference module, the current time edge feature matrix, and the current time node feature matrix.

[0063] In some embodiments, the current trajectory data is preprocessed to determine the edge feature matrix at the current time, specifically including: obtaining the current time position information between any vehicle and the target vehicle in the current trajectory data; determining the Euclidean distance between the two vehicles based on the current time position information between the two vehicles; determining whether the Euclidean distance is less than a preset threshold and generating a first result; if the first result is yes, generating an adjacency matrix based on the current time spatial interaction information; determining the edge feature matrix at the current time based on the adjacency matrix; if the first result is no, not generating an adjacency matrix.

[0064] In practical applications, each frame of a traffic scene is constructed as a traffic graph G. Multiple vehicles participating in the traffic scene are considered nodes, represented by tensors V. The spatial interaction information between these vehicles is represented by tensor E, which represents the interaction edges in the graph. Tensor E is an indicator used to measure the interactive influence between vehicles, such as... Figure 3 As shown.

[0065] Reference Figure 1 In the traffic scenario, the nth th Each participant at time t can be represented as node v. t(n) (n = 1, 2, 3, ..., N), where N is the maximum number of agents observed in all traffic scenarios. If the number of vehicles in a traffic scenario is less than N, blank values ​​will appear. These blank values ​​are assigned the value 0 to mask them and ultimately ensure that the node dimension of the model input is N.

[0066] The position information in the current node's feature matrix can be represented as: v t =(x t ,y t ,z t ). x t y t Let z be the coordinates of the target vehicle. t This includes other kinematic information about the target vehicle, such as speed, acceleration, and lane information. In the training of the spatial perception inference module, for the model input, let B be the batch size during training and F be the node features; therefore, the tensor of the current node feature matrix is ​​(B, T, F, N).

[0067] Edges are used to represent whether there is interaction or the magnitude of interaction entropy between vehicles; two nodes that interact are connected by an edge. Taking the i-th... th and the jth th Taking a node as an example, if d(v) t (i),v t If (j)) < δ, it indicates that there is interaction between nodes. Where i,j∈N,d(v t (i),v t (j) represents the Euclidean distance between vehicles, and δ is a preset threshold. During the input spatial perception inference module, the presence of spatial interaction information between vehicles is adjusted by the preset threshold. An adjacency matrix D is constructed using the preset threshold to represent the connectivity relationships within the traffic scene. At time t, the adjacency matrix D can be explicitly defined as follows:

[0068]

[0069] Each traffic agent connects to itself in different scenarios. This self-connection generates an adjacency matrix D of dimension (N,N), where N represents the number of traffic participants. Therefore, the dimension of the edge feature matrix E is determined to be (B,T,N,N).

[0070] In some embodiments, based on the spatial perception inference module, the current-time edge feature matrix, and the current-time node feature matrix, determining the spatial feature matrix of multiple vehicles specifically includes: the spatial perception inference module includes a time perception module and a spatial inference module, the time perception module including the short-time spatial graph attention network; inputting the current-time edge feature matrix and the current-time node feature matrix into the time perception module, generating a graph feature matrix based on the short-time spatial graph attention network; inputting the graph feature matrix into the spatial inference module to generate the spatial feature matrix of the multiple vehicles; wherein, the spatial inference module is constructed based on a convolutional linear inference network.

[0071] Reference Figure 2 and Figure 5 For the edge feature matrix and the node feature matrix at the current time, the spatial relationship between vehicles observed by the spatial perception inference module within a given short time period is used, i.e., the spatial interaction information at the current time. The perception task is implemented through the spatial perception module, and the inference task is implemented through the spatial inference module.

[0072] The spatial perception module incorporates residual terms to better preserve spatial information. First, the root spatial perception module captures spatial information by processing the current node feature matrix and the current edge feature matrix to obtain the graph feature matrix. Then, the spatial reasoning module more completely captures and infers the spatial state of the graph feature matrix to obtain the spatial feature matrix.

[0073] In complex real-world traffic environments, considering the nearby tensor states is more meaningful when analyzing the spatial interaction information of agents. The spatial perception module is input to the current-time node feature matrix and the current-time edge feature matrix. First, if the current-time node feature matrix and the current-time edge feature matrix are input into a short-time spatial graph attention network composed of graph attention heads, the analysis results are processed by dropout to prevent model overfitting. Then, a graph attention mechanism is used to capture the available spatial information from the dropout, and finally, residual terms are used to capture spatial information. The output is the hidden state features (i.e., the spatial feature matrix). To balance the differences in spatial interaction information perceived by each graph attention head, the graph attention heads are repeatedly used and then averaged. Under the self-attention strategy, the graph attention heads focus on neighboring nodes in the graph structure to capture the hidden representation of each node.

[0074] The formula for the attention mechanism is:

[0075]

[0076] Where, N iW is the set of neighboring nodes of node i. Nodes W share linear layer parameters, and α is the attention score. T It is the transpose of α, and || denotes the cascade operation. Represents the Hadama product; j represents vehicles within the distance range; N i Represents all vehicles within the specified distance range; k represents the cyclic parameter; V t (j) represents the speed of car j; V t (i) represents the speed of car i.

[0077] To output the features of each node at time t, normalized attention coefficients are used to obtain a linear combination of the corresponding features. This is represented as:

[0078]

[0079] Where σ is the activation function ELU.

[0080] The calculation formula for a convolutional linear inference network is as follows:

[0081]

[0082] Among them, W c These are the parameters learned by the convolutional layer; * indicates the convolution operation. This refers to the spatial characteristics output by this module.

[0083] Step 105: Concatenate the time feature matrix and the spatial feature matrix to obtain the target spatiotemporal fusion trajectory feature matrix.

[0084] In vehicle trajectory prediction research, reasoning solely from spatial information is insufficient because spatial information is coarse. To better capture spatial information, this study utilizes historical trajectory data of a preset duration within the convolutional complex domain during parallel computation of a linear inference network to extract spatial information generated by interactions between vehicles.

[0085] Step 106: Input the target spatiotemporal fusion trajectory feature matrix into the future trajectory prediction model to generate target node feature matrices and target edge feature matrices corresponding to multiple vehicles within the prediction time; wherein, the target edge feature matrix includes target space interaction information between any vehicle and the target vehicle; the target node feature matrix includes predicted position information and predicted speed information corresponding to each vehicle.

[0086] The future trajectory prediction model is a linear model. For example... Figure 1 The multi-vehicle trajectory prediction method shown in the figure integrates the outputs of the linear inference network and the spatial perception inference module through a linear layer to form a spatiotemporal fusion trajectory feature matrix, which is then used as the input to the future trajectory prediction model.

[0087] Before the spatiotemporal fusion trajectory feature matrix is ​​output to the unopened trajectory prediction model, time pooling is performed to obtain the prediction duration.

[0088] Step 107: Based on the target node feature matrix, obtain the future trajectories of multiple vehicles within the prediction time.

[0089] Among them, the future trajectories of multiple vehicles within the predicted time period include the future trajectories of multiple vehicles at the next moment or the next consecutive time.

[0090] In some embodiments, constructing a target spatiotemporal reasoning module specifically includes: acquiring a spatiotemporal reasoning module; taking the historical node feature matrix, the current moment edge feature matrix, and the current moment node feature matrix as inputs, and the target spatiotemporal fusion trajectory feature matrix as outputs, training the spatiotemporal reasoning module, and determining the trained spatiotemporal reasoning module; the trained spatiotemporal reasoning module is the target spatiotemporal reasoning module.

[0091] To balance prediction accuracy and computational efficiency, this application employs a linear inference network, which not only improves the overall efficiency of the training and inference phases but also significantly enhances the model's predictive ability when faced with pre-set long-term historical trajectory data through a series of improvements. Furthermore, when analyzing the spatial interaction information of multiple vehicles, consideration of the continuous motion characteristics of the vehicles themselves is incorporated, resulting in more accurate predictions. On the other hand, to more effectively capture the spatiotemporal dynamics between vehicles, a novel dual-channel decoupling framework (i.e., a linear inference network and a spatial perception inference module) is introduced. This framework can extract the continuous motion patterns of the vehicles themselves in the time dimension and extract the spatial interaction information between the target vehicle and vehicles within a pre-set range in the spatial dimension. The spatial perception module processes the trajectory data at the current moment, i.e., the short-term spatial dimension data. This dual-input strategy ensures the prediction efficiency of future trajectories without compromising prediction accuracy.

[0092] This application also provides an application scenario in which the above-described multi-vehicle trajectory prediction method is applied. Specifically, the multi-vehicle trajectory prediction method provided in this embodiment can be applied in traffic scenarios. Traffic scenarios involve multiple vehicles traveling continuously over a period of time. Specifically, during the continuous travel of multiple vehicles, the future trajectories of multiple vehicles for a preset duration can be obtained based on the target spatiotemporal inference module and the future trajectory prediction model.

[0093] In one exemplary embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.

[0094] In one exemplary embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.

[0095] In one exemplary embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.

[0096] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0097] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).

[0098] The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0099] The technical feature matrices in the above embodiments can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical feature matrices in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical feature matrices, they should be considered to be within the scope of this specification.

[0100] This document uses specific examples to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A multi-vehicle trajectory prediction method, characterized in that, The multi-vehicle trajectory prediction method includes: Acquire current trajectory data and historical trajectory data for a preset duration; the current trajectory data includes the current position and speed information of multiple vehicles in the current traffic scenario, as well as the current spatial interaction information between any vehicle and the target vehicle; the multiple vehicles include the target vehicle and any vehicle within the target vehicle's distance range; the historical trajectory data for the preset duration includes the historical position and speed information of historical vehicles in the same scenario as the current traffic scenario within a continuous preset duration, as well as the historical spatial interaction information between any historical vehicle and the historical target vehicle; A target spatiotemporal reasoning module is constructed; the target spatiotemporal reasoning module includes a linear reasoning network and a spatial awareness reasoning module. Based on the preset duration historical trajectory data and the linear inference network, determine the time feature matrices of multiple vehicles; Based on the current trajectory data and the spatial perception reasoning module, spatial feature matrices of multiple vehicles are determined; By concatenating the temporal feature matrix and the spatial feature matrix, a target spatiotemporal fusion trajectory feature matrix is ​​obtained; The target spatiotemporal fusion trajectory feature matrix is ​​input into the future trajectory prediction model to generate target node feature matrices and target edge feature matrices corresponding to multiple vehicles within the prediction time. The target edge feature matrix includes target space interaction information between any vehicle and the target vehicle. The target node feature matrix includes predicted position information and predicted speed information for each vehicle. Based on the target node feature matrix, the future trajectories of multiple vehicles within the prediction time period are obtained.

2. The multi-vehicle trajectory prediction method according to claim 1, characterized in that, Based on the preset duration historical trajectory data and the linear inference network, a time feature matrix for multiple vehicles is determined, specifically including: The historical trajectory data of the preset duration is preprocessed to generate a historical node feature matrix; the historical node feature matrix includes the historical location information and historical speed information corresponding to each historical target vehicle. Based on the linear inference network and the historical node feature matrix, the time feature matrix of multiple vehicles is determined.

3. The multi-vehicle trajectory prediction method according to claim 2, characterized in that, Based on the linear inference network and the historical node feature matrix, the time feature matrix of multiple vehicles is determined, specifically including: The linear inference network includes a first linear layer and a second linear layer; Based on the first linear layer, the historical node feature matrix is ​​expanded to generate a related feature matrix of multiple vehicle historical trajectories; Based on the second linear layer, the relevant feature matrices of the historical trajectories of the multiple vehicles are integrated to generate the time feature matrix of the multiple vehicles.

4. The multi-vehicle trajectory prediction method according to claim 1, characterized in that, Based on the current trajectory data and the spatial perception inference module, spatial feature matrices for multiple vehicles are determined, specifically including: The current trajectory data is preprocessed to determine the current time node feature matrix; the current time node feature matrix includes the current time position information and current time speed information of each target vehicle; The current trajectory data is preprocessed to determine the edge feature matrix at the current time; the edge feature matrix at the current time includes the spatial interaction information between any vehicle and the target vehicle at the current time. Based on the spatial perception reasoning module, the edge feature matrix at the current time, and the node feature matrix at the current time, the spatial feature matrices of multiple vehicles are determined.

5. The multi-vehicle trajectory prediction method according to claim 4, characterized in that, The current trajectory data is preprocessed to determine the edge feature matrix at the current time step, specifically including: Obtain the current position information between any vehicle and the target vehicle in the current trajectory data; The Euclidean distance between the two vehicles is determined based on the current position information between any vehicle and the target vehicle. Determine whether the Euclidean distance is less than a preset threshold, and generate a first result; If the first result is yes, generate an adjacency matrix based on the spatial interaction information at the current time. Based on the adjacency matrix, the edge feature matrix at the current time is determined; If the first result is negative, no adjacency matrix is ​​generated.

6. The multi-vehicle trajectory prediction method according to claim 4, characterized in that, Based on the spatial perception reasoning module, the current-time edge feature matrix, and the current-time node feature matrix, the spatial feature matrices of multiple vehicles are determined, specifically including: The spatial perception and reasoning module includes a time perception module and a spatial reasoning module, and the time perception module includes a short-time spatial graph attention network. The edge feature matrix and the node feature matrix at the current time are input into the time-aware module, and a graph feature matrix is ​​generated based on the short-time spatial graph attention network. The graph feature matrix is ​​input into the spatial inference module to generate the spatial feature matrix of the multiple vehicles; wherein, the spatial inference module is constructed based on a convolutional linear inference network.

7. The multi-vehicle trajectory prediction method according to claim 4, characterized in that, The target spatiotemporal reasoning module is constructed, specifically including: Obtain the spatiotemporal reasoning module; Using the historical node feature matrix, the current moment edge feature matrix, and the current moment node feature matrix as inputs, and the target spatiotemporal fusion trajectory feature matrix as output, the spatiotemporal inference module is trained, and the trained spatiotemporal inference module is determined; the trained spatiotemporal inference module is the target spatiotemporal inference module.

8. A computer device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor executes the computer program to implement the steps of the multi-vehicle trajectory prediction method according to any one of claims 1-7.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the multi-vehicle trajectory prediction method according to any one of claims 1-7.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the multi-vehicle trajectory prediction method according to any one of claims 1-7.