Motion trajectory prediction method, device, computer equipment and storage medium

By constructing the characteristics of traffic participants and lane maps and performing high-dimensional embedding processing, the problem of insufficient correlation between trajectory points and lane points in trajectory prediction in Transformer technology is solved, and the trajectory prediction accuracy and model performance in autonomous driving are improved.

CN113609947BActive Publication Date: 2024-09-24SHENZHEN DEEPROUTE AI CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110858918.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-28
Publication Date
2024-09-24
Estimated Expiration
2041-07-28

AI Technical Summary

Technical Problem

When the existing Transformer technology is used for trajectory prediction in autonomous driving, it cannot fully consider the correlation between trajectory points and lane points, resulting in insufficient accuracy of trajectory prediction.

Method used

By obtaining the current movement trajectory and lane map of traffic participants, constructing traffic participant features and lane map features, and performing high-dimensional embedding feature processing, generating target feature data that considers the correlation between trajectory points and lane points for trajectory prediction. .

Benefits of technology

The accuracy of motion trajectory prediction and the prediction performance of the model are improved, and the accuracy of prediction is enhanced by considering the temporal and spatial correlation between trajectory points and lane points.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113609947B
    Figure CN113609947B
Patent Text Reader

Abstract

The present application relates to a motion trajectory prediction method, device, computer equipment and storage medium. The method includes: obtaining the current motion trajectory of a traffic participant and the current lane map related to the current trajectory; constructing the current traffic participant characteristics according to the number of trajectory points on the current motion trajectory, the first position information of each trajectory point, the speed information and the identification of the corresponding traffic participant; constructing the current lane map characteristics according to the number of lane points in each lane map in the current lane map, the second position information of each lane point, the direction information and the identification of the corresponding lane; performing high-dimensional embedded feature learning based on the current traffic participant characteristics and the current lane map characteristics to obtain target feature data that takes into account the correlation between trajectory points and trajectory points, trajectory points and lane points, and lane points and lane points, and performing trajectory prediction based on the target feature data to obtain a predicted trajectory within a specified time length. The use of this method can improve the accuracy of trajectory prediction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of autonomous driving technology, and in particular to a motion trajectory prediction method, apparatus, computer equipment and storage medium. Background Art

[0002] With the development of computer technology, autonomous driving technology has emerged and has been gradually applied in various fields, such as ore mining, construction site inspection, substation inspection, etc. In the process of autonomous driving, it is necessary to plan the current driving trajectory by predicting the driving trajectory of other traffic participants to ensure that the autonomous driving can reach the destination safely and accurately. Currently, Transformer technology can be applied to trajectory prediction tasks; Transformer is a deep network model that does not use recurrent neural networks (RNN) or convolutional networks (CNN), and completely represents input and output data through a self-attention mechanism.

[0003] However, the current Transformer predicts the task by considering the correlation between the trajectories of traffic participants, the trajectories of traffic participants and the centerline of the map, and the centerline of the map. This line-level correlation cannot fully consider the correlation between trajectory points or lane line points, which results in the inability to further improve the accuracy of trajectory prediction. Summary of the invention

[0004] Based on this, it is necessary to provide a motion trajectory prediction method, device, computer equipment and storage medium that can improve the accuracy of trajectory prediction in response to the above technical problems.

[0005] A motion trajectory prediction method, the method comprising:

[0006] Obtaining a current motion trajectory of a traffic participant and a current lane map associated with the current trajectory;

[0007] constructing a current traffic participant feature according to the number of trajectory points on the current motion trajectory, the first position information of each of the trajectory points, the speed information and the identifier of the corresponding traffic participant;

[0008] Constructing a current lane map feature according to the number of lane points in each lane map in the current lane map, the second position information of each lane point, the direction information and the identification of the corresponding lane;

[0009] Performing high-dimensional embedding feature processing on the current traffic participant features and the current lane map features to obtain target feature data; the target feature data refers to feature data that takes into account the correlation between the trajectory points and the trajectory points, the trajectory points and the lane points, and the lane points and the lane points;

[0010] Trajectory prediction is performed based on the target feature data to obtain the predicted trajectory of the traffic participant within a specified time period.

[0011] In one embodiment, the high-dimensional embedding feature processing is performed according to the current traffic participant features and the current lane map features to obtain the target feature data, including:

[0012] Performing data feature extraction on the current traffic participant features and the current lane map features to obtain a first batch of data;

[0013] The first batch of data is subjected to high-dimensional embedding feature processing to obtain target feature data.

[0014] In one embodiment, performing high-dimensional embedding feature processing on the first batch of data to obtain target feature data includes:

[0015] Performing batch data conversion on the first batch of data to obtain a second batch of data with the same feature dimension;

[0016] The second batch of data is input into a multi-layer neural network for feature transformation to obtain the transformed high-dimensional embedded features;

[0017] Performing matrix transformation on the transformed high-dimensional embedding features to obtain matrix-transformed high-dimensional embedding features;

[0018] Performing position embedding processing on the high-dimensional embedding features after the matrix transformation to obtain high-dimensional embedding features after position embedding;

[0019] Feature processing is performed on the high-dimensional embedded features after the position is embedded to obtain target feature data.

[0020] In one embodiment, constructing the current traffic participant feature according to the number of trajectory points on the current motion trajectory, the first position information of each trajectory point, the speed information and the identifier of the corresponding traffic participant includes:

[0021] Acquire the number of trajectory points on the current motion trajectory and first position information of each of the trajectory points;

[0022] Determine the speed information of each of the track points according to the first position information of adjacent track points and the time intervals of adjacent track points;

[0023] Obtaining first dimension features that characterize traffic participant data;

[0024] A traffic participant feature is constructed according to the number of trajectory points of each of the motion trajectories, the first position information, speed information, first dimensional features of each of the trajectory points and the first identifier of the corresponding traffic participant.

[0025] In one embodiment, constructing the current lane map feature according to the number of lane points in each lane map in the current lane map, the second position information of each lane point, the direction information and the identification of the corresponding lane includes:

[0026] Obtaining the number of lane points in each lane map in the current lane map, and second position information of each lane point;

[0027] Determine direction information of each lane point according to a vector difference of fourth position information of adjacent lane points among the lane points;

[0028] Obtaining a second dimension feature representing the map data;

[0029] A lane map feature is constructed according to the number of lane points on the center lines of each lane, the fourth position information, the direction information, the second dimensional feature of each lane point and the second identifier of the corresponding lane.

[0030] In one embodiment, constructing a lane map feature according to the number of lane points of each lane centerline, the fourth position information, the direction information, the second dimensional feature of each lane point and the second identifier of the corresponding lane includes:

[0031] Constructing lane line features of each lane centerline according to the number of lane points of each lane centerline, the second position information, the direction information, the second dimensional feature of each lane point and the second identifier of the corresponding lane;

[0032] The lane line features are spliced ​​to obtain lane map features.

[0033] In one embodiment, the step of combining the lane line features to obtain a lane map feature includes:

[0034] The lane line features are spliced ​​in the lane centerline dimension to obtain lane map features.

[0035] A motion trajectory prediction device, the device comprising:

[0036] An acquisition module, used to acquire a current motion trajectory of a traffic participant and a current lane map related to the current trajectory;

[0037] A first construction module, configured to construct a current traffic participant feature according to the number of trajectory points on the current motion trajectory, first position information of each of the trajectory points, speed information, and an identifier of a corresponding traffic participant;

[0038] A second construction module, configured to construct a current lane map feature according to the number of lane points of each lane map in the current lane map, the second position information of each lane point, the direction information and the identification of the corresponding lane;

[0039] The embedded feature learning module is used to perform high-dimensional embedded feature processing on the motion trajectory prediction model trained by inputting the current traffic participant features and the current lane map features to obtain target feature data; the target feature data refers to feature data that takes into account the correlation between the trajectory points and the trajectory points, the trajectory points and the lane points, and the lane points and the lane points;

[0040] The prediction module is used to perform trajectory prediction based on the target feature data to obtain the predicted trajectory of the traffic participant within a specified time period.

[0041] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0042] Obtaining a current motion trajectory of a traffic participant and a current lane map associated with the current trajectory;

[0043] constructing a current traffic participant feature according to the number of trajectory points on the current motion trajectory, the first position information of each of the trajectory points, the speed information and the identifier of the corresponding traffic participant;

[0044] Constructing a current lane map feature according to the number of lane points in each lane map in the current lane map, the second position information of each lane point, the direction information and the identification of the corresponding lane;

[0045] Performing high-dimensional embedding feature processing on the current traffic participant features and the current lane map features to obtain target feature data; the target feature data refers to feature data that takes into account the correlation between the trajectory points and the trajectory points, the trajectory points and the lane points, and the lane points and the lane points;

[0046] Trajectory prediction is performed based on the target feature data to obtain the predicted trajectory of the traffic participant within a specified time period.

[0047] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0048] Obtaining a current motion trajectory of a traffic participant and a current lane map associated with the current trajectory;

[0049] constructing a current traffic participant feature according to the number of trajectory points on the current motion trajectory, the first position information of each of the trajectory points, the speed information and the identifier of the corresponding traffic participant;

[0050] Constructing a current lane map feature according to the number of lane points in each lane map in the current lane map, the second position information of each lane point, the direction information and the identification of the corresponding lane;

[0051] Performing high-dimensional embedding feature processing on the current traffic participant features and the current lane map features to obtain target feature data; the target feature data refers to feature data that takes into account the correlation between the trajectory points and the trajectory points, the trajectory points and the lane points, and the lane points and the lane points;

[0052] Trajectory prediction is performed based on the target feature data to obtain the predicted trajectory of the traffic participant within a specified time period.

[0053] The above-mentioned motion trajectory prediction method, device, computer equipment and storage medium obtain the current motion trajectory of the traffic participant and the current lane map related to the current trajectory; construct the traffic participant characteristics according to the number of trajectory points on the current motion trajectory, the first position information of each trajectory point, the speed information and the identification of the corresponding traffic participant; construct the lane map characteristics according to the number of lane points in each lane map in the current lane map, the second position information of each lane point, the direction information and the identification of the corresponding lane; perform high-dimensional embedded feature processing according to the traffic participant characteristics and the lane map characteristics to obtain target feature data that takes into account the correlation between the trajectory points and trajectory points, trajectory points and lane points, and lane points and lane points; perform prediction according to a motion trajectory prediction model that takes into account the relative relationship between different trajectory points in the same traffic participant trajectory and the correlation between the traffic participant trajectory points and the lane centerline points, thereby improving the prediction performance of the motion trajectory prediction model. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 A schematic diagram of a flow chart of a motion trajectory prediction method in one embodiment;

[0055] Figure 2 is a schematic diagram of a motion trajectory prediction model in one embodiment;

[0056] Figure 3 is a schematic flow chart of a motion trajectory prediction method in another embodiment;

[0057] Figure 4 A schematic diagram of a flow chart of a method for training a motion trajectory prediction model in one embodiment;

[0058] Figure 5 A schematic diagram of a flow chart of a method for constructing traffic participant characteristics in one embodiment;

[0059] Figure 6 A schematic diagram of a process of constructing a lane map feature in one embodiment;

[0060] Figure 7 1 is a flow chart of a high-dimensional embedding feature learning method in one embodiment;

[0061] Figure 8 is a structural block diagram of a motion trajectory prediction device in one embodiment;

[0062] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0063] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0064] In one embodiment, Figure 1 As shown, a motion trajectory prediction method is provided. This embodiment uses the method applied to a terminal (the terminal may be, but is not limited to, a vehicle device equipped with a trajectory data acquisition device) as an example. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0065] Step 102, obtaining the current motion trajectory of the traffic participant and the current lane map related to the current trajectory.

[0066] Among them, each traffic participant has a corresponding identification, and traffic participants can be but are not limited to vehicles, bicycles and pedestrians. The motion trajectory is composed of a number of trajectory points, and the number of trajectory points of each motion trajectory can be but is not limited to 50; each trajectory point has corresponding position information (i.e., coordinate value, each trajectory point is composed of x and y coordinate values). The lane map includes multiple lane centerlines, each lane centerline is composed of a number of lane points, and each lane has a corresponding lane identification to distinguish different lanes, for example, lane 1, lane 2, lane 3. The current lane map related to the current trajectory includes multiple lane centerlines, and the number of lane centerlines in the lane map corresponding to different traffic participant trajectories may be different.

[0067] Specifically, the terminal obtains the current motion trajectory of the traffic participant and the current lane map related to the current trajectory from the server.

[0068] Step 104 , constructing the current traffic participant characteristics according to the number of trajectory points on the current motion trajectory, the first position information of each trajectory point, the speed information and the identifier of the corresponding traffic participant.

[0069] Among them, the first position information includes x- and y-axis coordinate values, and each trajectory point has different dimensional features, including position dimensional features, speed dimensional features, traffic participant dimensional features, and data attribute dimensional features. The position dimensional features include the x- and x-axis coordinate values ​​in the first position information, and the speed dimensional features include the speed information of each trajectory point, and the speed information includes the speed in the x-axis direction and the speed in the x-axis direction; the speed information of each trajectory point is obtained by subtracting the position coordinates of the two adjacent trajectory points in the x and y directions, and the position subtraction is divided by the time between the two trajectory points to obtain the speed, and the obtained speed is used as the speed of the next trajectory point. In this application, it is assumed that the speed of the first trajectory point is equal to the speed of the second trajectory point.

[0070] The traffic participant dimension feature refers to the identification of each traffic participant, which is used to distinguish different traffic participants; the data attribute dimension feature refers to the data type. For example, based on the data attribute dimension feature, it can be determined whether the data is map data or traffic participant data. 1 can be used to represent map data and 0 can be used to represent traffic participant data.

[0071] The traffic participant characteristics can be represented by a matrix, and the traffic participant characteristics can be but is not limited to a two-dimensional matrix.

[0072] Specifically, the number of trajectory points on the current motion trajectory and the first position information of each trajectory point are obtained; the speed information of each trajectory point is determined according to the first position information of adjacent trajectory points in the trajectory point and the time interval of adjacent trajectory points; the first dimensional feature characterizing the traffic participant data is obtained; the current traffic participant feature is constructed according to the number of trajectory points in each motion trajectory, the first position information of each trajectory point, the speed information, the first dimensional feature and the first identification of the corresponding traffic participant; that is, the traffic participant data is obtained, the number of trajectory points in the current motion trajectory is determined according to the obtained traffic participant data, and the position coordinate information (x and y axis coordinate values) of each trajectory point is determined, and the Z axis coordinate value is added to the position coordinate information, that is, the data attribute dimensional feature; according to the position information and time interval of adjacent trajectory points, the speed information of each trajectory point is determined, and the identification of the traffic participant is determined, the dimensional feature of each trajectory point is determined according to the position coordinate information, the speed information and the identification of the traffic participant, and the traffic participant feature is constructed according to the dimensional feature of each trajectory point and the number of trajectory points on the current motion trajectory. Among them, the construction method can be implemented by an existing construction algorithm, which will not be repeated here.

[0073] Step 106, constructing the current lane map feature according to the number of lane points in each lane map in the current lane map, the second position information of each lane point, the direction information and the identification of the corresponding lane.

[0074] Among them, the second position information includes x and y axis coordinate values, and each lane point has different dimensional features, including position dimensional features, direction dimensional features, lane dimensional features, and data attribute dimensional features. The position dimensional features include the x and y axis coordinate values ​​in the second position information, and the direction dimensional features include the direction information of each lane point; the direction information of each lane point is determined by vector subtraction of the position coordinates of the two adjacent lane points in the x and y directions, and the obtained direction is used as the direction of the next lane point. In this application, the direction of the first lane point is assumed to be equal to the direction of the second lane point. The direction information includes the direction information of the x-axis direction and the direction information of the y-axis direction.

[0075] The lane dimension feature refers to the identification of each lane, which is used to distinguish different lanes; the data attribute dimension feature refers to the data type. For example, the data attribute dimension feature can be used to determine whether the data is map data or lane data. 1 can be used to represent map data, such as lane map data. The lane map feature can be represented by a matrix, which can be, but is not limited to, a two-dimensional matrix.

[0076] Specifically, the number of lane points in each lane map in the current lane map and the second position information of each lane point are obtained; the direction information of each lane point is determined according to the vector difference of the fourth position information of the adjacent lane points in the lane point; the second dimensional feature representing the map data is obtained; the current lane map feature is constructed according to the number of lane points of each lane centerline, the second position information of each lane point, the direction information, the second dimensional feature and the second identification of the corresponding lane; that is, the current lane map related to the current motion trajectory of the traffic participant is determined, and the lane centerline in the current lane map is determined, the lane centerline is composed of a number of lane points, the number of lane points on the lane centerline and each lane point is the second position information (x and y axis coordinate values), and the Z axis coordinate value is added; the direction information of each lane point is determined according to the second position information of each lane point, the lane identification of the lane is determined, the dimensional feature of each lane point is determined according to the position coordinate information, the direction information and the identification of the lane, and the lane map feature is constructed according to the dimensional feature of each lane point and the number of lane points on the current lane map. Among them, the construction method can be implemented by an existing construction algorithm, which will not be repeated here.

[0077] Step 108, performing high-dimensional embedding feature extraction processing on the current traffic participant features and the current lane map features to obtain target feature data.

[0078] Among them, processing high-dimensional embedded features refers to inputting the current traffic participant features and the current lane map features into the trained motion trajectory prediction model, performing feature processing, and obtaining target feature data.

[0079] The structure of the motion trajectory prediction model is as follows: Figure 2As shown in Figure 1, it includes a regression network (prediction head), a transformer block (the transformer consists of several attention modules and feedforward modules) and an MLP network (multi-layer neural network). The training method of the motion trajectory prediction model is as follows: Figure 4 shown.

[0080] The target feature data refers to the feature data that considers the relationship between different trajectory points in the same traffic participant trajectory (temporal correlation), the correlation between different lane centerline points, and the correlation between traffic participant trajectory points and lane centerline points (spatial correlation); that is, the feature data that considers the correlation between trajectory points and trajectory points, trajectory points and lane points, and lane points and lane points; high-dimensional embedded feature learning refers to inputting traffic participant features and lane map features into the MLP network to perform feature transformer_feature learning of temporal and spatial relationships.

[0081] Specifically, data feature extraction is performed on the current traffic participant features and the current lane map features to obtain the first batch of data; high-dimensional embedding feature processing is performed on the first batch of data to obtain target feature data; that is, data feature extraction is performed on the current traffic participant features and the current lane map features to obtain the first batch of data, batch data conversion is performed on the first batch of data to obtain the second batch of data with the same feature dimension; the second batch of data is input into a multi-layer neural network for feature transformation to obtain the transformed high-dimensional embedding features; matrix transformation is performed on the transformed high-dimensional embedding features to obtain the matrix-transformed high-dimensional embedding features; position embedding processing is performed on the matrix-transformed high-dimensional embedding features to obtain the position-embedded high-dimensional embedding features; feature processing is performed on the position-embedded high-dimensional embedding features to obtain the target feature data. For example:

[0082] Data features are extracted based on the characteristics of traffic participants and lane map features to obtain the first batch of three-dimensional data. The first batch of data is batch-converted to obtain the second batch of data with the same feature dimension. The second batch of data is input into the MLP network for position embedding processing. The high-dimensional embedded features of the second dimension are matrix-converted to obtain the high-dimensional embedded features of the first dimension. Feature learning is performed on the high-dimensional embedded features of the first dimension to obtain target feature data.

[0083] Step 110 , performing trajectory prediction based on the target feature data to obtain a predicted trajectory of the traffic participant within a specified time period.

[0084] Specifically, the target feature data is input into the input regression network (predictionhead) of the motion trajectory prediction model to obtain the predicted trajectory of the traffic participant within a specified time period.

[0085] In the above-mentioned motion trajectory prediction method, the current motion trajectory of the traffic participant and the current lane map related to the current trajectory are obtained; the traffic participant characteristics are constructed according to the number of trajectory points on the current motion trajectory, the first position information of each trajectory point, the speed information and the identification of the corresponding traffic participant; the lane map characteristics are constructed according to the number of lane points in each lane map in the current lane map, the second position information of each lane point, the direction information and the identification of the corresponding lane; high-dimensional embedded feature learning is performed based on the traffic participant characteristics and the lane map characteristics to obtain target feature data that takes into account the correlation between trajectory points and trajectory points, trajectory points and lane points, and lane points and lane points; trajectory prediction is performed based on the target feature data; that is, the motion trajectory of the traffic participant is predicted based on three point-level features of trajectory points and trajectory points, trajectory points and map lane line center points, and map lane line center points on the motion trajectory, thereby improving the prediction performance of the motion trajectory prediction model.

[0086] In another embodiment, Figure 3 As shown, a motion trajectory prediction method is provided. This embodiment uses the method applied to a terminal as an example. In this embodiment, the method includes the following steps:

[0087] Step 302, obtaining the current motion trajectory of the traffic participant and the current lane map related to the current trajectory.

[0088] Step 304 , constructing the current traffic participant characteristics according to the number of trajectory points on the current motion trajectory, the first position information of each trajectory point, the speed information and the identifier of the corresponding traffic participant.

[0089] Step 306, constructing lane line features of the center lines of each lane according to the number of lane points in each lane map in the current lane map, the second position information of each lane point, the direction information and the identification of the corresponding lane.

[0090] Specifically, the number of lane points in each lane map in the current lane map, and the second position information of each lane point; the direction information of each lane point is determined according to the vector difference of the fourth position information of adjacent lane points in the lane point; the second dimensional features representing the map data are obtained; the lane line features of the center line of each lane are constructed according to the number of lane points of the center line of each lane, the second position information of each lane point, the direction information, the second dimensional features and the second identification of the corresponding lane.

[0091] Step 308: splice the features of each lane line to obtain the features of the current lane map.

[0092] Specifically, the features of each lane line are spliced ​​in the lane centerline dimension to obtain the current lane map features. For example, by determining the current lane map related to the current motion trajectory of the traffic participant, and determining the lane centerline in the current lane map, the lane centerline is composed of a number of lane points, the number of lane points on each lane centerline and the second position information (x and y axis coordinate values) of each lane point are determined, and the Z axis coordinate value is added; the direction information of each lane point is determined according to the second position information of each lane point, the lane identification of the lane is determined, the dimensional features of each lane point are determined according to the position coordinate information, the direction information and the lane identification, and the lane line features of one of the lane lines are constructed according to the dimensional features of each lane point and the number of lane points on the current lane map, that is, a two-dimensional matrix is ​​obtained, and the lane line features of each lane line are spliced ​​by traversing each lane line in the lane map to obtain the lane map features.

[0093] Step 310 , performing high-dimensional embedding feature processing on the current traffic participant features and the current lane map features to obtain target feature data.

[0094] Specifically, data feature extraction is performed on the features of the current traffic participants and the features of the current lane map to obtain the first batch of data, and batch data conversion is performed on the first batch of data to obtain the second batch of data with the same feature dimension; the second batch of data is input into a multi-layer neural network for feature transformation to obtain transformed high-dimensional embedded features; matrix transformation is performed on the transformed high-dimensional embedded features to obtain matrix-transformed high-dimensional embedded features; position embedding processing is performed on the matrix-transformed high-dimensional embedded features to obtain position-embedded high-dimensional embedded features; feature processing is performed on the position-embedded high-dimensional embedded features to obtain target feature data.

[0095] Step 312, performing trajectory prediction based on the target feature data to obtain the predicted trajectory of the traffic participant within a specified time period.

[0096] The above-mentioned motion trajectory prediction method, device, computer equipment and storage medium obtain the current motion trajectory of the traffic participant and the current lane map related to the current trajectory; construct the traffic participant characteristics according to the number of trajectory points on the current motion trajectory, the first position information of each trajectory point, the speed information and the identification of the corresponding traffic participant; construct the lane line characteristics of the center line of each lane according to the number of lane points in each lane map in the current lane map, the second position information of each lane point, the direction information and the identification of the corresponding lane, and obtain the lane map characteristics by splicing the lane line characteristics; perform high-dimensional embedded feature processing according to the traffic participant characteristics and the lane map characteristics to obtain target feature data that takes into account the correlation between trajectory points and trajectory points, trajectory points and lane points, and lane points and lane points; perform prediction according to a motion trajectory prediction model that takes into account the relative relationship between different trajectory points in the same traffic participant trajectory and the correlation between the traffic participant trajectory points and the lane centerline points, thereby improving the prediction performance of the motion trajectory prediction model.

[0097] In one embodiment, Figure 4 As shown in FIG. 1 , a training method for a motion trajectory prediction model is provided, and the method is applied to Figure 1 The terminal in is used as an example to illustrate, including the following steps:

[0098] Step 402: Obtain a motion trajectory sample set of a traffic participant in a specified area and a lane atlas associated with the motion trajectory sample set.

[0099] The designated area includes the Junction area, i.e., the crossroads; the motion trajectory samples in the motion trajectory sample set refer to trajectories where the curvature of the trajectory points changes, including left turns, right turns, U-turns, roundabouts, lane changes, or other vehicles changing lanes from other lanes to the lane where the autonomous driving vehicle is located. Each motion trajectory in the motion trajectory sample set is composed of a number of trajectory points, and each trajectory point has corresponding position information; each lane map in the lane map set includes multiple lane centerlines, and each lane centerline is composed of a number of lane points.

[0100] Specifically, the trajectory data of the traffic participants is obtained; the trajectory data can be obtained by processing sufficient sensor data through the autonomous driving perception algorithm (including the detection algorithm and the tracking algorithm); the motion trajectory of the traffic participants in the specified area is determined from the trajectory data to obtain a motion trajectory sample set; the motion trajectory refers to a trajectory where the curvature and / or acceleration of the trajectory point changes; the lane map associated with each motion trajectory is identified to obtain a lane map set. For example, a traffic participant trajectory sample set A = {a_1, a_2, ..., a_n} is formed based on the acquired trajectory data, where n is the total number of trajectories (usually n>300,000), a_i is the i-th trajectory in the trajectory sample set, each trajectory is composed of a number of trajectory points (usually 50), and each trajectory point is composed of x and y coordinate values. The lane map Mi associated with the trajectory a_i is found, where Mi = {m_i_1, m_i_2, ..., m_i_k} indicates that the current lane map is composed of k lane center lines, and the number of lane center lines k in the lane map corresponding to different traffic participant trajectories may be different. The above method of finding the lane graph related to the trajectory a_i can be the same as the traditional lane graph finding method (such as the lane graph construction method in Baidu Apollo). Traverse the trajectory set A and find the lane graphs corresponding to the trajectories of all traffic participants. The lane graph set is M = {M_1, M_2, ... M_n}.

[0101] Step 404 , constructing traffic participant characteristics according to the number of trajectory points of each motion trajectory in the motion trajectory sample set, the third position information of each trajectory point, the speed information and the first identifier of the corresponding traffic participant.

[0102] like Figure 5 As shown in the figure, a method for constructing traffic participant characteristics is provided, and the method is applied to Figure 1 The terminal in is used as an example to illustrate, including the following steps:

[0103] Step 502: Obtain the number of trajectory points of each motion trajectory in the motion trajectory sample set and third position information of each trajectory point.

[0104] Among them, the third position information includes the x- and y-axis coordinate values. Each trajectory point has different dimensional characteristics, including position dimensional characteristics, speed dimensional characteristics, traffic participant dimensional characteristics, data attribute dimensional characteristics, etc. The position information is the position dimensional characteristics.

[0105] Step 504: determine the speed information of each track point according to the third position information of adjacent track points and the time interval between adjacent track points.

[0106] Among them, the speed information is a speed dimension feature. The speed information of each trajectory point is obtained by subtracting the position coordinates of the two adjacent trajectory points in the x and y directions respectively. The position is subtracted and then divided by the time between the two trajectory points to get the speed. The obtained speed is used as the speed of the next trajectory point. In this application, it is assumed that the speed of the first trajectory point is equal to the speed of the second trajectory point.

[0107] Step 506, obtaining the first dimension feature characterizing the traffic participant data.

[0108] Among them, the first dimension feature refers to the data attribute dimension feature, that is, it is used to distinguish whether the data is map data or traffic participant data. The lane map belongs to map data, and the motion trajectory belongs to traffic participant data. 0 can be used to indicate that the data is traffic participant data, and 1 can be used to indicate map data.

[0109] Step 508, constructing traffic participant characteristics according to the number of trajectory points of each motion trajectory, the third position information of each trajectory point, the speed information, the first dimensional characteristics and the first identifier of the corresponding traffic participant.

[0110] For example, the ith traffic participant trajectory a_i contains several trajectory points. We use P to represent the number of trajectory points of a traffic participant trajectory. Then the a_i original data can be represented by a matrix of size P×2, where P is the number of trajectory points and 2 represents the x and y axis coordinate values ​​(position information), that is, the location dimension feature is obtained; in order to distinguish traffic participant data from map data, we introduce the z axis value for each trajectory point, and take z=0 to represent the traffic participant data, that is, the data attribute dimension feature is obtained, then the a_i data can be represented by a P×3 matrix; the location information of two adjacent trajectory points is distributed in the x and y directions and subtracted respectively, and the subtracted value is used as the speed of the next trajectory point. We assume that the speed of the first trajectory point is equal to the speed of the second trajectory point, and obtain the speed dimension feature. The speed information of the trajectory point is also added to the matrix to obtain a P×5 matrix; we add the id of the traffic participant (obtained by the tracking algorithm) to each trajectory point, that is, the traffic participant dimension feature, and obtain a P×6 matrix, which is the traffic participant trajectory feature.

[0111] The method for constructing traffic participant characteristics obtains the number of trajectory points of each motion trajectory in a motion trajectory sample set and the third position information of each trajectory point, obtains the speed information of each trajectory point according to the third position information of adjacent trajectory points in the trajectory point and the time interval of adjacent trajectory points, obtains the first dimensional characteristics characterizing the traffic participant data, constructs the traffic participant characteristics according to the number of trajectory points of each motion trajectory, the third position information of each trajectory point, the speed information, the first dimensional characteristics and the first identification of the corresponding traffic participant, and accurately obtains the relationship between the trajectory points.

[0112] Step 406, constructing a lane map feature according to the number of lane points of each lane map in the lane map set, the fourth position information of each lane point, the direction information and the second identifier of the corresponding lane.

[0113] like Figure 6 As shown in FIG, a method for constructing lane map features is provided, and the method is applied to Figure 1 The terminal in is used as an example to illustrate, including the following steps:

[0114] Step 602, obtaining the number of lane points of each lane centerline in each lane map in the lane map set and fourth position information of each lane point.

[0115] Among them, the lane map contains multiple center lines, and each center line is composed of several lane points; the fourth position information refers to the x- and y-axis coordinate values ​​of the lane point. Each lane point has different dimensional characteristics, including position dimensional characteristics, direction dimensional characteristics, lane dimensional characteristics, data attribute dimensional characteristics, etc. The position information is the position dimensional characteristics.

[0116] Step 604: determine direction information of each lane point according to the vector difference of fourth position information of adjacent lane points among the lane points.

[0117] Among them, the direction information is a directional dimension feature. The direction information of each lane point is calculated based on the position coordinates of the two adjacent lane points in the x and y directions, and the direction is obtained based on the vector difference. The obtained direction is used as the direction of the next lane point. In this application, it is assumed that the direction of the first lane point is equal to the direction of the second lane point.

[0118] Step 606: Acquire a second dimensional feature representing the map data.

[0119] Among them, the second dimension feature refers to the data attribute dimension feature, and the data attribute dimension feature is used to distinguish whether the data is map data or traffic participant data. The lane map belongs to map data, and the second dimension feature refers to map data.

[0120] Step 608, constructing the lane line features of the lane centerline according to the number of lane points of each lane centerline, the fourth position information, the direction information, the second dimensional features of each lane point and the second identifier of the corresponding lane.

[0121] Specifically, a two-dimensional matrix is ​​constructed according to the number of lane points of each lane centerline, the fourth position information, the direction information, the second dimensional feature of each lane point and the second identifier of the corresponding lane to obtain the lane line feature of the lane centerline.

[0122] Step 610: Concatenate the features of each lane line to obtain a lane map feature.

[0123] For example, the lane map corresponding to the ith traffic participant trajectory a_i is Mi={m_i_1,m_i_2,...,m_i_k}, where each lane centerline m_i_j in the lane map is composed of a number of lane points. Without loss of generality, we use P_i_j to represent the number of points on the lane centerline of m_i_j. Then the original data of P_i_j can be represented by a matrix of size P_i_j×2, where P_i_j is the number of points and 2 represents the x and y axis coordinate values ​​(position information); in order to distinguish traffic participant data from map data According to the data, we introduce the z-axis value for each lane point, and take z=1 to represent the map data, then the m_i_j data can be represented by a P_i_j×3 matrix; further, we calculate the direction of each lane point on the lane line, subtract the two adjacent lane points in the x and y directions respectively, and use the subtracted value as the direction of the next lane point. In this implementation, the direction of the first lane point is considered to be the same as the direction of the second lane point; according to the direction information of each lane point, it is also added to the matrix to obtain a P_i_j×5 matrix; each lane point adds the lane id of the lane, that is, the lane dimension feature, to obtain a P_i_j×6 matrix, which is the lane line feature; traverse each lane line in Mi to obtain k matrices, and splice the k matrices on the first dimension (the center line of the lane map) to obtain a large P_i×6 matrix, which is called the lane map feature, where P_i is the number of all lane points in the Mi lane map.

[0124] In the above-mentioned method for constructing lane map features, the number of lane points of the center line of each lane in each lane map in the lane map set and the fourth position information of each lane point are obtained; the speed information of each trajectory point is determined according to the vector difference of the fourth position information of adjacent lane points in the lane points; the second dimensional features representing the map data are obtained; the lane line features of the center line of the lane are constructed according to the number of lane points of the center line of each lane, the fourth position information of each lane point, the direction information, the second dimensional features and the second identification of the corresponding lane; the features of each lane line are spliced ​​to obtain the lane map features, and the features of different dimensions of each lane point on the lane map are constructed in a matrix manner to construct training sample data for training the motion trajectory prediction model.

[0125] Step 408 , training the motion trajectory prediction model according to the traffic participant characteristics and the lane map characteristics until a trained motion trajectory prediction model is obtained when preset training conditions are met.

[0126] Among them, the motion trajectory prediction model structure is as follows Figure 2As shown, it includes a regression network (prediction head), a transformer block (transformer consists of several attention modules and feedforward modules) and an MLP network (multi-layer neural network).

[0127] Specifically, data feature extraction is performed on traffic participant features and lane map features to obtain the first batch of data of the first dimension (i.e., three dimensions); high-dimensional embedding feature learning is performed on the first batch of data to obtain target feature data; the target feature data refers to feature data that takes into account the correlation between trajectory points and trajectory points, trajectory points and lane points, and lane points and lane points; based on the target feature data, the motion trajectory prediction model is trained using a back propagation algorithm until the preset training conditions are met (i.e., the loss converges to a preset loss value, or a preset number of training times is reached), the training is stopped and the trained network and its parameters are saved to obtain a trained motion trajectory prediction model.

[0128] In the above-mentioned motion trajectory prediction model training method, a motion trajectory sample set of traffic participants in a specified area and a lane atlas related to the motion trajectory sample set are obtained; traffic participant characteristics are constructed according to the number of trajectory points of each motion trajectory in the motion trajectory sample set, the first position information of each trajectory point, the speed information and the first identification of the corresponding traffic participant; lane map characteristics are constructed according to the number of lane points of each lane map in the lane atlas, the second position information of each lane point, the direction information and the second identification of the corresponding lane; the motion trajectory prediction model is trained according to the traffic participant characteristics and the lane map characteristics until a trained motion trajectory prediction model is obtained when the preset training conditions are met; that is, training data is constructed by considering the characteristics of the correlation between three point levels on the motion trajectory: trajectory point and trajectory point, trajectory point and map lane line center point, and map lane line center point and map lane line center point, and the motion trajectory prediction model is trained to improve the prediction performance of the motion trajectory prediction model.

[0129] In one embodiment, Figure 7 As shown in the figure, a high-dimensional embedding feature processing method is provided, which is applied to Figure 1 The terminal in is used as an example to illustrate, including the following steps:

[0130] Step 702 , extracting data features from traffic participant features and lane map features to obtain a first batch of data of the first dimension.

[0131] Here, the first dimension refers to three dimensions.

[0132] Specifically, data feature extraction is performed on traffic participant features and lane map features to obtain the first batch of three-dimensional data; for example, the features of the ith traffic participant (P×6 matrix) and its corresponding lane map features (P_i×6 matrix) are concatenated to obtain a T_i×6 matrix; if T_i is less than a predetermined threshold T, the T_i×6 matrix is ​​padded with zeros to obtain a T×6 matrix; if T_i>T, the matrix rows exceeding T are deleted to obtain a T×6 matrix, which is called the input data feature; the B input data features are combined to form a first batch of data (batch), which is represented by a B×T×6 matrix.

[0133] Step 704, performing batch data conversion on the first batch of data to obtain a second batch of data with the same feature dimension.

[0134] For example, the first batch of data represented by a three-dimensional matrix of B×T×6 is converted into the second batch of data represented by a two-dimensional matrix of (B×T)×6.

[0135] Step 706: Input the second batch of data into a multi-layer neural network for feature transformation to obtain transformed high-dimensional embedded features.

[0136] Step 708, performing matrix transformation on the transformed high-dimensional embedding features to obtain high-dimensional embedding features after matrix transformation.

[0137] Step 710, position embedding processing is performed on the high-dimensional embedding features after matrix transformation to obtain high-dimensional embedding features after position embedding. Specifically, the second batch of data is input into the MLP network for position embedding processing, and the feature transformer_feature learning of the time and space relationship is performed, that is, the correlation between trajectory points and trajectory points, lane points and lane points, and trajectory points and lane points is considered to obtain high-dimensional embedding features of the second dimension, and the high-dimensional embedding features of the second dimension are matrix transformed to obtain high-dimensional embedding features of the first dimension. For example, the two-dimensional matrix is ​​input into the MLP network to obtain a high-dimensional embedding feature of (B×T)×dim (where dim>6, dim=64); the (B×T)×dim matrix is ​​converted into a three-dimensional matrix of B×T×dim. The MLP network can be a feedforward network with any number of layers, and the feedforward network is normalized with batch normalization. In order to prevent overfitting, we usually take less than 4 layers.

[0138] Step 710, performing feature processing on the high-dimensional embedded features after position embedding to obtain target feature data.

[0139] Among them, the target feature data is used to train the motion trajectory prediction model; feature learning is to learn the feature transformer_feature with time and space relationship, that is, the correlation between trajectory points and trajectory points, lane points and lane points, and trajectory points and lane points. For example, the high-dimensional embedded features of the first dimension after position embedding are input into N transformerblocks to obtain the feature transformer_feature that takes into account the time and space relationship, and the dimension of the feature is still B×T×dim. Among them, the transformer block can be a common transformer module, which is composed of several attention modules and feedforward modules.

[0140] In the above-mentioned high-dimensional embedded feature processing method, data features are extracted from traffic participant features and lane map features to obtain the first batch of data of the first dimension; the first batch of data is subjected to dimensionality reduction processing to obtain the second batch of data with the same feature dimension; the second batch of data is input into the MLP network for position embedding processing, and the high-dimensional embedded features of the second dimension are subjected to matrix transformation to obtain the high-dimensional embedded features of the first dimension; feature learning is performed on the high-dimensional embedded features of the first dimension to obtain target feature data; that is, the relative relationship (temporal correlation) between different trajectory points in the same traffic participant trajectory is considered at the point level, as well as the correlation (spatial correlation) between the traffic participant trajectory points and the lane centerline points is considered, and the training sample data of the motion trajectory prediction model is constructed, thereby improving the prediction performance of the model.

[0141] It should be understood that although Figure 1 , Figure 3-7 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 , Figure 3-7 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0142] In one embodiment, Figure 8 As shown, a motion trajectory prediction device is provided, including: an acquisition module 802, a first construction module 804, a second construction module 806, an embedded feature processing module 808 and a prediction module 810, wherein:

[0143] The acquisition module 802 is used to acquire the current motion trajectory of the traffic participant and the current lane map related to the current trajectory.

[0144] The first construction module 804 is used to construct the current traffic participant characteristics according to the number of trajectory points on the current motion trajectory, the first position information of each trajectory point, the speed information and the identifier of the corresponding traffic participant.

[0145] The second construction module 806 is used to construct the current lane map feature according to the number of lane points in each lane map in the current lane map, the second position information of each lane point, the direction information and the identification of the corresponding lane.

[0146] The embedded feature processing module 808 is used to perform high-dimensional embedded feature processing on the current traffic participant features and the current lane map features to obtain target feature data; the target feature data refers to feature data that takes into account the correlation between trajectory points and trajectory points, trajectory points and lane points, and lane points and lane points.

[0147] The prediction module 810 is used to perform trajectory prediction based on the target feature data to obtain the predicted trajectory of the traffic participant within a specified time period.

[0148] In the above-mentioned motion trajectory prediction method, the current motion trajectory of the traffic participant and the current lane map related to the current trajectory are obtained; the traffic participant characteristics are constructed according to the number of trajectory points on the current motion trajectory, the first position information of each trajectory point, the speed information and the identification of the corresponding traffic participant; the lane map characteristics are constructed according to the number of lane points in each lane map in the current lane map, the second position information of each lane point, the direction information and the identification of the corresponding lane; high-dimensional embedded feature learning is performed based on the traffic participant characteristics and the lane map characteristics to obtain target feature data that takes into account the correlation between the trajectory points and trajectory points, trajectory points and lane points, and lane points and lane points; trajectory prediction is performed based on the target feature data; that is, training data is constructed based on the three point-level features of trajectory points and trajectory points, trajectory points and map lane line center points, and map lane line center points on the motion trajectory, and the motion trajectory prediction model is trained to improve the prediction performance of the motion trajectory prediction model.

[0149] In one embodiment, a motion trajectory prediction device is provided, which includes: an acquisition module 802, a first construction module 804, a second construction module 806, an embedding feature processing module 808 and a prediction module 810, and also includes: a feature extraction module, a feature processing module, a batch data conversion module, a feature transformation module, a matrix conversion module, a position embedding processing module, a determination module and a splicing module, wherein:

[0150] The feature extraction module is used to extract data features from the current traffic participant features and the current lane map features to obtain the first batch of data.

[0151] The feature processing module is used to perform high-dimensional embedding feature processing on the first batch of data to obtain target feature data.

[0152] The batch data conversion module is used to perform batch data conversion on the first batch of data to obtain the second batch of data with the same feature dimension.

[0153] The feature transformation module is used to input the second batch of data into the multi-layer neural network for feature transformation to obtain the transformed high-dimensional embedded features.

[0154] The matrix conversion module is used to perform matrix conversion on the transformed high-dimensional embedded features to obtain the high-dimensional embedded features after matrix conversion.

[0155] The position embedding processing module is used to perform position embedding processing on the high-dimensional embedding features after matrix conversion to obtain the high-dimensional embedding features after position embedding; and perform feature processing on the high-dimensional embedding features after position embedding to obtain target feature data.

[0156] The acquisition module 802 is further used to acquire the number of trajectory points on the current motion trajectory and the first position information of each trajectory point.

[0157] The determination module is used to determine the speed information of each track point according to the first position information of adjacent track points and the time interval of adjacent track points.

[0158] The acquisition module 802 is also used to acquire the first dimension feature representing the traffic participant data;

[0159] The first construction module 804 is further used to construct the current traffic participant characteristics according to the number of trajectory points of each motion trajectory, the first position information, speed information, the first dimensional characteristics of each trajectory point and the first identifier of the corresponding traffic participant.

[0160] The acquisition module 802 is further used to acquire the number of lane points in each lane map in the current lane map, and the second position information of each lane point.

[0161] The determination module is also used to determine the direction information of each lane point according to the vector difference of the fourth position information of adjacent lane points among the lane points.

[0162] The acquisition module 802 is further used to acquire the second dimensional features representing the map data.

[0163] The second construction module 806 is further used to construct the current lane map feature according to the number of lane points of each lane centerline, the second position information, direction information, second dimensional features of each lane point and the second identifier of the corresponding lane.

[0164] The second construction module 806 is further used to construct the lane line feature of each lane centerline according to the number of lane points of each lane centerline, the fourth position information, the direction information, the second dimensional feature of each lane point and the second identifier of the corresponding lane;

[0165] The splicing module is used to splice the features of each lane line to obtain the current lane map features; it is also used to splice the features of each lane line in the lane centerline dimension to obtain the current lane map features.

[0166] Optionally, in one embodiment, the acquisition module 802 is also used to obtain a motion trajectory sample set of traffic participants in a specified area and a lane atlas related to the motion trajectory sample set; each motion trajectory in the motion trajectory sample set is composed of a number of trajectory points, and each trajectory point has corresponding position information; each lane map in the lane atlas includes multiple lane center lines, and each lane center line is composed of a number of lane points.

[0167] Optionally, in one embodiment, the first construction module 804 is further used to construct traffic participant characteristics according to the number of trajectory points of each motion trajectory in the motion trajectory sample set, the third position information of each trajectory point, the speed information and the first identifier of the corresponding traffic participant.

[0168] Optionally, in one embodiment, the second construction module 806 is further used to construct lane map features according to the number of lane points of each lane map in the lane map set, the fourth position information of each lane point, the direction information and the second identification of the corresponding lane.

[0169] Optionally, in one embodiment, the training module is used to train the motion trajectory prediction model according to the characteristics of the traffic participants and the lane map characteristics until a trained motion trajectory prediction model is obtained when preset training conditions are met.

[0170] Optionally, in one embodiment, the feature extraction module is used to perform data feature extraction on traffic participant features and lane map features to obtain a first batch of data of a first dimension.

[0171] Optionally, in one embodiment, the feature processing module is used to perform high-dimensional embedding feature processing on the first batch of data to obtain target feature data.

[0172] Optionally, in one embodiment, the training module is further used to train the motion trajectory prediction model according to the target feature data until a trained motion trajectory prediction model is obtained when a preset training condition is met.

[0173] Optionally, in one embodiment, the acquisition module 802 is further configured to acquire the number of trajectory points of each motion trajectory in the motion trajectory sample set and third position information of each trajectory point.

[0174] Optionally, in one embodiment, the determination module is used to determine the speed information of each trajectory point according to the third position information of adjacent trajectory points and the time interval between adjacent trajectory points.

[0175] Optionally, in one embodiment, the acquisition module 802 is further used to acquire first dimensional features characterizing traffic participant data.

[0176] Optionally, in one embodiment, the first construction module 804 is also used to construct traffic participant characteristics based on the number of trajectory points of each motion trajectory, the third position information of each trajectory point, the speed information, the first dimensional characteristics and the first identification of the corresponding traffic participant.

[0177] Optionally, in one embodiment, the acquisition module 802 is further used to acquire the number of lane points of each lane centerline in each lane image in the lane atlas and fourth position information of each lane point.

[0178] Optionally, in one embodiment, the determination module is further configured to determine the speed information of each trajectory point according to a vector difference of fourth position information of adjacent lane points in the lane point.

[0179] Optionally, in one embodiment, the acquisition module 802 is further configured to acquire a second dimensional feature representing the map data.

[0180] Optionally, in one embodiment, the second construction module 806 is also used to construct lane line features of the lane centerline based on the number of lane points of each lane centerline, the fourth position information, direction information, second dimensional features of each lane point and the second identifier of the corresponding lane.

[0181] Optionally, in one embodiment, a splicing module is used to splice the features of each lane line to obtain a lane map feature.

[0182] Optionally, in one embodiment, the acquisition module 802 is also used to acquire trajectory data of traffic participants.

[0183] Optionally, in one embodiment, the identification module is used to determine the movement trajectory of traffic participants in a specified area from trajectory data to obtain a motion trajectory sample set; a motion trajectory refers to a trajectory in which the curvature of a trajectory point changes; and identify a lane map associated with each motion trajectory to obtain a lane map set.

[0184] In one embodiment, a motion trajectory sample set of traffic participants in a specified area and a lane atlas related to the motion trajectory sample set are obtained; each motion trajectory in the motion trajectory sample set is composed of a number of trajectory points, and each trajectory point has corresponding position information; each lane map in the lane atlas includes a plurality of lane center lines, and each lane center line is composed of a number of lane points; according to the number of trajectory points of each motion trajectory in the motion trajectory sample set, the third position information of each trajectory point, the speed information and the first identification of the corresponding traffic participant, the traffic participant characteristics are constructed; according to the number of lane points of each lane map in the lane atlas, the fourth position information of each lane point, the direction information and the second identification of the corresponding lane, the lane map characteristics are constructed; the motion trajectory prediction model is trained according to the traffic participant characteristics and the lane map characteristics until the trained motion trajectory prediction model is obtained when the preset training conditions are met.

[0185] When the current motion trajectory of the traffic participant and the current lane map related to the current trajectory are obtained, the traffic participant characteristics are constructed according to the number of trajectory points on the current motion trajectory, the first position information of each trajectory point, the speed information and the identification of the corresponding traffic participant; the lane map characteristics are constructed according to the number of lane points of each lane map in the current lane map, the second position information of each lane point, the direction information and the identification of the corresponding lane; the traffic participant characteristics and the lane map characteristics are input into the trained motion trajectory prediction model for high-dimensional embedded feature learning to obtain target feature data; the target feature data includes the features of trajectory points and trajectory points, trajectory points and lane points, and lane points and lane points; trajectory prediction is performed according to the target feature data to obtain the predicted trajectory of the traffic participant within a specified time length; that is, the relationship between the trajectory points of the traffic participants and the trajectory points is learned by using transformer, and the relationship between the trajectory points of the traffic participants and the center line points of the map is learned, so that the trajectory points of the traffic participants take into account the time and space relationship at the same time, and the motion trajectory prediction model is trained, thereby further improving the performance of trajectory prediction and the accuracy of prediction.

[0186] For the specific definition of the motion trajectory prediction device, please refer to the definition of the motion trajectory prediction method above, which will not be repeated here. Each module in the above-mentioned motion trajectory prediction device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0187] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig. 9As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a motion trajectory prediction method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0188] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0189] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0190] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0191] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database 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 or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0192] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0193] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A motion trajectory prediction method, It is characterized in that The method comprises: Obtaining a current motion trajectory of a traffic participant and a current lane map associated with the current trajectory; constructing a current traffic participant feature according to the number of trajectory points on the current motion trajectory, the first position information of each of the trajectory points, the speed information and the identifier of the corresponding traffic participant; Constructing a current lane map feature according to the number of lane points in each lane map in the current lane map, the second position information of each lane point, the direction information and the identification of the corresponding lane; Performing data feature extraction on the current traffic participant features and the current lane map features to obtain a first batch of data; performing batch data conversion on the first batch of data to obtain a second batch of data with the same feature dimension; inputting the second batch of data into a multi-layer neural network for feature transformation to obtain transformed high-dimensional embedded features; performing matrix transformation on the transformed high-dimensional embedded features to obtain matrix-transformed high-dimensional embedded features; performing position embedding processing on the matrix-transformed high-dimensional embedded features to obtain position-embedded high-dimensional embedded features; performing feature processing on the position-embedded high-dimensional embedded features to obtain target feature data; The target feature data refers to feature data that takes into account the correlation between the trajectory points and the trajectory points, the trajectory points and the lane points, and the lane points and the lane points; Trajectory prediction is performed based on the target feature data to obtain the predicted trajectory of the traffic participant within a specified time period.

2. The method according to claim 1, It is characterized in that The constructing the current traffic participant feature according to the number of trajectory points on the current motion trajectory, the first position information of each trajectory point, the speed information and the identifier of the corresponding traffic participant includes: Acquire the number of trajectory points on the current motion trajectory and first position information of each of the trajectory points; Determine the speed information of each of the track points according to the first position information of adjacent track points and the time intervals of adjacent track points; Obtaining first dimension features that characterize traffic participant data; The current traffic participant characteristics are constructed according to the number of trajectory points of each of the motion trajectories, the first position information, speed information, first dimensional characteristics of each of the trajectory points and the first identification of the corresponding traffic participant.

3. The method according to claim 1, It is characterized in that The constructing the current lane map feature according to the number of lane points of each lane map in the current lane map, the second position information of each lane point, the direction information and the identification of the corresponding lane includes: Obtaining the number of lane points in each lane map in the current lane map, and second position information of each lane point; Determine direction information of each lane point according to a vector difference of fourth position information of adjacent lane points among the lane points; Obtaining a second dimension feature representing the map data; The current lane map feature is constructed according to the number of lane points of each lane centerline, the second position information, direction information, second dimensional features of each lane point and the second identifier of the corresponding lane.

4. The method according to claim 3, It is characterized in that The constructing the current lane map feature according to the number of lane points of each lane centerline, the fourth position information, the direction information, the second dimensional feature of each lane point and the second identifier of the corresponding lane includes: Constructing lane line features of each lane centerline according to the number of lane points of each lane centerline, the second position information, the direction information, the second dimensional feature of each lane point and the second identifier of the corresponding lane; The lane line features are spliced ​​to obtain the current lane map features.

5. The method according to claim 4, It is characterized in that The step of combining the lane line features to obtain the current lane map features includes: The lane line features are spliced ​​in the lane centerline dimension to obtain the current lane map features.

6. A motion trajectory prediction device, It is characterized in that The device comprises: An acquisition module, used to acquire a current motion trajectory of a traffic participant and a current lane map related to the current trajectory; A first construction module, configured to construct a current traffic participant feature according to the number of trajectory points on the current motion trajectory, first position information of each of the trajectory points, speed information, and an identifier of a corresponding traffic participant; A second construction module, configured to construct a current lane map feature according to the number of lane points of each lane map in the current lane map, the second position information of each lane point, the direction information and the identification of the corresponding lane; A feature extraction module performs data feature extraction on the current traffic participant features and the current lane map features to obtain a first batch of data; A batch data conversion module performs batch data conversion on the first batch of data to obtain a second batch of data with the same feature dimension; The feature transformation module inputs the second batch of data into a multi-layer neural network for feature transformation to obtain the transformed high-dimensional embedded features; A matrix conversion module performs matrix conversion on the transformed high-dimensional embedded features to obtain high-dimensional embedded features after matrix conversion; A position embedding processing module performs position embedding processing on the high-dimensional embedding features after the matrix conversion to obtain the high-dimensional embedding features after position embedding; performs feature processing on the high-dimensional embedding features after position embedding to obtain target feature data; the target feature data refers to feature data that takes into account the correlation between the trajectory points and trajectory points, the trajectory points and lane points, and the lane points and lane points; The prediction module is used to perform trajectory prediction based on the target feature data to obtain the predicted trajectory of the traffic participant within a specified time period.

7. The device according to claim 6, It is characterized in that The acquisition module is further used to acquire the number of trajectory points on the current motion trajectory and the first position information of each of the trajectory points; A determination module, configured to determine speed information of each of the track points according to first position information of adjacent track points and time intervals of adjacent track points; The acquisition module is further used to acquire the first dimension feature representing the traffic participant data; The first construction module is also used to construct the current traffic participant characteristics according to the number of trajectory points of each motion trajectory, the first position information, speed information, first dimensional characteristics of each trajectory point and the first identifier of the corresponding traffic participant.

8. The device according to claim 6, It is characterized in that The acquisition module is further used to acquire the number of lane points of each lane map in the current lane map, and the second position information of each lane point; The determination module is further used to determine the direction information of each lane point according to the vector difference of the fourth position information of adjacent lane points among the lane points; The acquisition module is further used to acquire a second dimensional feature representing the map data; The second construction module is further used to construct the current lane map features according to the number of lane points on the center line of each lane, the second position information, direction information, second dimensional features of each lane point and the second identifier of the corresponding lane.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.