Trajectory prediction model training method and device, trajectory prediction method and device and trajectory planning method and device

Online training and updating of the trajectory prediction model through the incremental learning framework solves the accuracy problem of the trajectory prediction model in different scenarios in the existing technology, improves the ability to capture the personality of obstacles and micro-time point characteristics, and improves trajectory prediction. accuracy and model performance.

CN118552931APending Publication Date: 2024-08-27HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310206877.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-24
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

When the actual usage scenario and the training scenario are inconsistent with the existing trajectory prediction model, the prediction results are inaccurate, and it is difficult to capture the personality of the obstacles and the trajectory characteristics of microscopic time points, which affects the prediction accuracy.

Method used

Using an incremental learning framework, the general trajectory prediction model is trained and updated online through trajectory data and predicted trajectory data corresponding to key obstacles, and key obstacles are screened and incremental learning is performed to improve model generalization issues and capture obstacle characteristics.

Benefits of technology

It improves the accuracy and online reasoning performance of the trajectory prediction model, promptly solves problems discovered during the model's online prediction process, and enhances the ability to capture the personality of obstacles and microscopic time-point characteristics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118552931A
    Figure CN118552931A
Patent Text Reader

Abstract

The invention discloses a trajectory prediction model training method and device, a trajectory prediction method and device, and a trajectory planning method and device, and the method comprises the steps: inputting first trajectory data corresponding to a target obstacle into a first trajectory prediction model which comprises a first trajectory prediction sub-model and a first obstacle classification sub-model; the first trajectory prediction sub-model obtains first prediction trajectory data corresponding to the target obstacle according to the first trajectory data; the first obstacle classification sub-model determines that the target obstacle is a key obstacle according to the first trajectory data and the first predicted trajectory data; and inputting the first trajectory data and the first predicted trajectory data into a first trajectory prediction sub-model, and training the first trajectory prediction sub-model to obtain a second trajectory prediction sub-model. Thus, the trajectory prediction accuracy of the trajectory prediction sub-model is improved, the trained trajectory prediction sub-model can more accurately predict the motion trajectory of the object, and the trajectory prediction accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a trajectory prediction model training, trajectory prediction, trajectory planning method and device. Background Art

[0002] Trajectory prediction refers to the technology of analyzing the motion characteristics of an object and deriving the possible motion trajectory of the object in the future. For example, in the field of autonomous driving, by analyzing the motion characteristics of a vehicle, the possible motion trajectory of the vehicle in the future can be derived.

[0003] With the advancement of computer vision technology, trajectory prediction has attracted much attention due to its important applications in autonomous driving, surveillance, crowd simulation, and mobile robot navigation. However, trajectory prediction is a very challenging task, and the trajectory of an object may be affected by many factors, which increases the difficulty of accurately predicting the trajectory.

[0004] Currently, trajectory prediction algorithms based on neural network learning can achieve online prediction of object motion trajectories by offline learning of a large amount of object trajectory data, but there are several problems. For example, since the trajectory data of objects learned by the trajectory prediction algorithm usually comes from a trajectory dataset based on multiple objects, the obtained trajectory prediction model is an average model based on the trajectory data of multiple objects, and the model has a generalization problem. If the actual use scenario of the trajectory prediction model is inconsistent with the scenario corresponding to the trajectory dataset used to train the trajectory prediction model, there will be a problem of inaccurate trajectory prediction results. Of course, there are some other problems with the current trajectory prediction technology. Summary of the invention

[0005] The implementation of the present application provides a trajectory prediction model training, trajectory prediction, trajectory planning method and device, which can solve the above-mentioned problems existing in the current trajectory prediction technology, that is, it can more accurately predict the motion trajectory of an object and improve the accuracy of trajectory prediction.

[0006] To solve the above technical problems, in a first aspect, an embodiment of the present application provides a trajectory prediction model training method, the method comprising: inputting first trajectory data corresponding to a target obstacle into a first trajectory prediction model, the first trajectory prediction model comprising a first trajectory prediction sub-model and a first obstacle classification sub-model; the first trajectory prediction sub-model obtains the first predicted trajectory data corresponding to the target obstacle according to the first trajectory data; the first obstacle classification sub-model determines that the target obstacle is a key obstacle according to the first trajectory data and the first predicted trajectory data; the first trajectory data and the first predicted trajectory data are input into the first trajectory prediction sub-model, the first trajectory prediction sub-model is trained, and a second trajectory prediction sub-model is obtained.

[0007] The trajectory prediction model training method provided in this embodiment can be applied to the field of autonomous driving, and the target obstacles can be objects such as vehicles and pedestrians around the vehicle. The first trajectory prediction sub-model can be a general trajectory prediction model that can predict the movement trajectory of an object, and the first obstacle classification sub-model can be a key obstacle classification model or a key obstacle classifier that can identify whether an obstacle is a key obstacle. For example, a key obstacle can be an object such as a motorcycle with a fast moving speed or a bus with a large volume, which can be set as needed or identified according to a key obstacle identification method.

[0008] In this embodiment, by training the trajectory prediction sub-model with the trajectory data corresponding to the key obstacles and the predicted trajectory data, the problems of the trajectory prediction model being generalized and not being able to capture the individual characteristics of obstacles well can be solved, and the accuracy of the trajectory prediction of the trajectory prediction sub-model (i.e., the universal trajectory prediction model) can be effectively improved, so that the motion trajectory of the object can be predicted more accurately, thereby improving the accuracy of the trajectory prediction.

[0009] As described above, in this embodiment, if the first obstacle classification sub-model determines that the target obstacle is a critical obstacle based on the first trajectory data and the first predicted trajectory data, the first trajectory data and the first predicted trajectory data need to be input into the first trajectory prediction sub-model to train and update the first trajectory prediction sub-model. If the first obstacle classification sub-model determines that the target obstacle is a non-critical obstacle based on the first trajectory data and the first predicted trajectory data, the first trajectory data and the first predicted trajectory data do not need to be input into the first trajectory prediction sub-model, that is, the first trajectory prediction sub-model does not need to be trained and updated through the data. That is, in this embodiment, the critical obstacle trajectory data can be screened out from the trajectory data, and the critical obstacle predicted trajectory data can be screened out from the predicted trajectory data for training and updating the trajectory prediction sub-model. In this way, the trajectory prediction sub-model can be effectively trained through the trajectory data and the predicted trajectory data corresponding to the critical obstacle, thereby improving the accuracy of the trajectory prediction of the trajectory prediction sub-model.

[0010] In a possible implementation of the first aspect, the trajectory prediction model training method provided by the embodiment of the present application may be performed during the process of performing the trajectory prediction task. In this way, during the process of performing the trajectory prediction task, the trajectory prediction sub-model may be trained and updated in a timely manner according to the trajectory data stream, so that the motion trajectory of the object may be predicted more accurately, thereby improving the accuracy of the trajectory prediction.

[0011] That is, the trajectory prediction model training method provided in the implementation mode of the present application introduces an incremental learning framework into the trajectory prediction process. During the trajectory prediction task (i.e., the model reasoning stage), the general trajectory prediction model is trained and updated online, which can effectively improve the accuracy of trajectory prediction, thereby more accurately predicting the motion trajectory of the object, thereby improving the accuracy of trajectory prediction.

[0012] In a possible implementation of the first aspect above, the trajectory prediction model training method provided by the embodiment of the present application includes: inputting the trajectory data stream to be predicted into the first trajectory prediction sub-model (e.g., a general trajectory prediction model), and the trajectory data stream includes obstacle trajectory data corresponding to at least one obstacle (i.e., target trajectory data). The first trajectory prediction sub-model performs inference to obtain obstacle prediction trajectory data corresponding to the obstacle trajectory data. The obstacle trajectory data and the obstacle prediction trajectory data are input into the key obstacle classification model, and the key obstacle classification model infers and determines whether the obstacle corresponding to the obstacle trajectory data and the obstacle prediction trajectory data is a key obstacle, as the output key obstacle classification. Key obstacles include but are not limited to obstacles with large prediction errors, high motion uncertainty, and significant impact on the self-vehicle planning decision. Then, based on the key obstacle classification, the obstacle trajectory data corresponding to the key obstacle is screened out from the obstacle trajectory data as the key obstacle trajectory data, and the obstacle prediction trajectory data corresponding to the key obstacle is screened out from the obstacle prediction trajectory data as the key obstacle prediction trajectory data. The key obstacle trajectory data corresponding to the key obstacle and the key obstacle predicted trajectory data are used as incremental data, and the first trajectory prediction sub-model is trained and updated online according to the incremental data to obtain a second trajectory prediction sub-model after incremental learning for subsequent trajectory prediction.

[0013] In this way, the generalization problem of the trajectory prediction sub-model can be effectively improved, and the characteristics of obstacles can be better obtained, thereby improving the accuracy of the trajectory prediction sub-model. In addition, by training and updating the model during the model reasoning stage, problems found during the model online prediction process can be solved in a timely manner. That is, the trajectory prediction model training method provided by the implementation of the present application can effectively improve the performance of the online reasoning of the trajectory prediction model.

[0014] In a possible implementation of the first aspect, the first trajectory prediction sub-model is obtained by: inputting the second trajectory data into the initial trajectory prediction sub-model, training the initial trajectory prediction sub-model, and obtaining the first trajectory prediction sub-model. In this way, the first trajectory prediction sub-model can be obtained conveniently and accurately.

[0015] In a possible implementation of the first aspect, the second trajectory data is obtained in the following manner: according to the first time interval, historical trajectory data of an obstacle of a first time length and corresponding predicted trajectory data of a second time length are selected from initial trajectory data included in the initial trajectory data set as the second trajectory data, the initial trajectory data includes historical trajectory data of an obstacle of a third time length and corresponding predicted trajectory data of a fourth time length, the first time length is less than the third time length, and the second time length is less than or equal to the fourth time length.

[0016] In this way, the second trajectory data with a smaller time window can be obtained. By training the trajectory prediction sub-model with the second trajectory data, the trajectory prediction sub-model can better learn and supplement the trajectory characteristics of microscopic time points. Therefore, the trajectory prediction sub-model trained based on the trajectory data is a global model based on trajectory data with a smaller time window, which can well capture the trajectory characteristics of microscopic time points and effectively improve the accuracy of trajectory prediction.

[0017] In a possible implementation of the first aspect, the first time interval may be, for example, 0.5s, the first time length may be, for example, 1s, the second time length may be, for example, 2s, the third time length may be, for example, 3s, and the fourth time length may be, for example, 2s. Of course, the first time interval, the first time length, the second time length, the third time length, and the fourth time length may also be other values.

[0018] In a possible implementation of the first aspect, the initial trajectory prediction sub-model includes an encoding unit and a decoding unit, and the second trajectory data is input into the initial trajectory prediction sub-model, and the initial trajectory prediction sub-model is trained to obtain the first trajectory prediction sub-model, including: inputting the second trajectory data into the encoding unit; the encoding unit obtains corresponding first trajectory feature information according to the second trajectory data, and inputs the first trajectory feature information into the decoding unit; the decoding unit obtains second predicted trajectory data according to the first trajectory feature information; and the initial trajectory prediction sub-model is trained according to the second predicted trajectory data to obtain the first trajectory prediction sub-model.

[0019] In this way, a trajectory prediction sub-model for realizing trajectory prediction can be obtained conveniently and accurately.

[0020] In a possible implementation of the first aspect, the first obstacle classification sub-model is obtained by: inputting the third trajectory data and the third predicted trajectory data into an initial obstacle classification sub-model, and performing supervised training on the initial obstacle classification sub-model based on a key obstacle label to obtain the first obstacle classification sub-model, the third predicted trajectory data is predicted trajectory data corresponding to the third trajectory data, and the third trajectory data and the third predicted trajectory data have a key obstacle label.

[0021] In this way, the first obstacle classification sub-model based on supervised learning can be conveniently and accurately obtained to achieve the classification of the aforementioned key obstacles. Of course, the first obstacle classification sub-model can also be a rule-based or unsupervised key obstacle classification model.

[0022] In a possible implementation of the first aspect, the third trajectory data and the third predicted trajectory data are obtained in the following manner: the fourth trajectory data is input into the first trajectory prediction sub-model, the fourth trajectory data includes historical trajectory data of the obstacle and corresponding predicted trajectory data; the first trajectory prediction sub-model obtains the fourth predicted trajectory data according to the fourth trajectory data; the fourth predicted trajectory data is compared with the corresponding predicted trajectory data in the fourth trajectory data, and an obstacle whose predicted trajectory error is greater than a preset error threshold and belongs to a preset optimizable obstacle is taken as a key obstacle; the fourth trajectory data is labeled with a key obstacle label according to the key obstacle to obtain the third trajectory data, and the fourth predicted trajectory data is labeled with a key obstacle label according to the key obstacle to obtain the third predicted trajectory data.

[0023] In this way, the third trajectory data and the third predicted trajectory data can be obtained conveniently and accurately for use in training the obstacle classification sub-model, and the classification accuracy of the obstacle classification sub-model can be effectively improved.

[0024] In a possible implementation of the first aspect, the initial obstacle classification submodel includes an encoding unit and a classification unit, the third trajectory data and the third predicted trajectory data are input into the initial obstacle classification submodel, and the initial obstacle classification submodel is supervisedly trained based on the key obstacle label to obtain the first obstacle classification submodel, including: inputting the third trajectory data and the third predicted trajectory data into the encoding unit; the encoding unit obtains corresponding second trajectory feature information according to the third trajectory data and the third predicted trajectory data, and inputs the second trajectory feature information into the classification unit; the classification unit obtains a trajectory classification result according to the second trajectory feature information; and the initial obstacle classification submodel is trained according to the trajectory classification result and the key obstacle label to obtain the first obstacle classification submodel.

[0025] In this way, an obstacle classification sub-model for realizing obstacle classification can be obtained conveniently and accurately.

[0026] In a possible implementation of the first aspect above, the key obstacle is an obstacle determined according to the trajectory prediction task.

[0027] For example, in the field of autonomous driving, key obstacles can be fast-moving motorcycles, large buses, etc., which can be set as needed or identified according to key obstacle identification methods. The trajectory prediction sub-model is trained and updated based on the trajectory data and predicted trajectory data of key obstacles determined by the trajectory prediction task, which effectively improves the accuracy of trajectory prediction of the trajectory prediction sub-model.

[0028] In a possible implementation of the first aspect above, the key obstacle includes at least one of the following: an obstacle whose scene corresponding to the trajectory prediction task corresponding to the first trajectory data and the scene corresponding to the trajectory data used to train the first trajectory prediction sub-model do not belong to the same or similar field (for example, an obstacle with a large predicted trajectory error); an obstacle whose motion uncertainty is greater than a preset threshold (that is, an obstacle with high motion uncertainty); an obstacle whose influence on the trajectory planning decision is greater than a preset threshold (for example, a key obstacle that has a significant impact on the self-vehicle planning decision); an obstacle with a preset motion style (for example, an obstacle with a specific motion style).

[0029] Of course, the key obstacle may also be other types of obstacles, which can be selected as needed.

[0030] In a possible implementation of the first aspect, the first trajectory data and the first predicted trajectory data are input into a first trajectory prediction sub-model, and the first trajectory prediction sub-model is trained to obtain a second trajectory prediction sub-model, including: inputting key obstacle trajectory data and key obstacle predicted trajectory data corresponding to key obstacles obtained within a preset time period into the first trajectory prediction sub-model, training the first trajectory prediction sub-model, and obtaining the second trajectory prediction sub-model, wherein the key obstacle trajectory data includes the first obstacle trajectory data, and the key obstacle predicted trajectory data includes the first predicted trajectory data; or inputting key obstacle trajectory data and key obstacle predicted trajectory data corresponding to a preset number of key obstacles into the first trajectory prediction sub-model, training the first trajectory prediction sub-model, and obtaining the second trajectory prediction sub-model, wherein the key obstacle trajectory data includes the first obstacle trajectory data, and the key obstacle predicted trajectory data includes the first predicted trajectory data.

[0031] That is, the model training can be performed based on the key obstacle trajectory data and key obstacle predicted trajectory data corresponding to the key obstacles obtained within a preset time period, or based on the key obstacle trajectory data and key obstacle predicted trajectory data corresponding to a preset number of key obstacles. In this way, the trajectory prediction sub-model can be updated every once in a while, and the accuracy of trajectory prediction of the trajectory prediction sub-model can be continuously improved.

[0032] Moreover, in this embodiment, by introducing the incremental learning framework into the trajectory prediction process and training and updating the trajectory prediction sub-model through the trajectory data corresponding to the key obstacles, the accuracy of trajectory prediction can be effectively improved, so that the motion trajectory of the object can be predicted more accurately, thereby improving the accuracy of trajectory prediction.

[0033] In a possible implementation of the first aspect above, the first trajectory data includes trajectory data of the target obstacle and the non-target obstacle at a first moment and trajectory data within a first preset time before the first moment, and the non-target obstacle is an obstacle other than the target obstacle within a preset range around the target object.

[0034] The target obstacle may be, for example, a target vehicle, and the non-target obstacle may be, for example, other vehicles, people, and other objects around the target vehicle. The first preset time may be, for example, 3 seconds, and of course, may also be other times.

[0035] By training the trajectory prediction sub-model with the first trajectory data, a trajectory prediction sub-model that correctly predicts the obstacle trajectory can be obtained.

[0036] In a possible implementation of the first aspect above, the trajectory data includes state information of the obstacle and corresponding environment information.

[0037] In a possible implementation of the first aspect above, the status information includes at least one of the following information: location information of the obstacle; direction information of the obstacle (such as orientation); movement speed information of the obstacle; movement acceleration information of the obstacle; and size information of the obstacle.

[0038] Of course, the status information may also include other information, or may be other information, which may be set as required.

[0039] In a possible implementation of the first aspect above, the environmental information includes road topology information.

[0040] Of course, the environmental information may also include other information, or may be other information, which may be set as required.

[0041] In a possible implementation of the first aspect above, the first predicted trajectory data is predicted trajectory data of the target obstacle within a second preset time after the first moment.

[0042] The first moment is, for example, the current moment when trajectory prediction is required, and the second preset time may be, for example, 2 seconds, or may be other times.

[0043] In a possible implementation of the first aspect above, the first predicted trajectory data includes a first predicted motion trajectory.

[0044] Of course, the first trajectory data may also include other information such as target points.

[0045] In a possible implementation of the first aspect above, the first trajectory data is target trajectory data to be predicted corresponding to the trajectory prediction task.

[0046] In a second aspect, an embodiment of the present application provides a trajectory prediction method, the method comprising: inputting fifth trajectory data into a second trajectory prediction sub-model, the second trajectory prediction sub-model being obtained by the aforementioned trajectory prediction model training method; the second trajectory prediction sub-model obtaining fifth predicted trajectory data corresponding to the target obstacle according to the fifth trajectory data as target predicted trajectory data of the target obstacle.

[0047] By performing trajectory prediction based on the second trajectory prediction sub-model trained and updated according to the trajectory data corresponding to the key obstacle and the predicted trajectory data, a more accurate predicted motion trajectory of the object can be obtained, thereby improving the accuracy of trajectory prediction.

[0048] In a possible implementation of the second aspect, the fifth trajectory data may be the same as the first trajectory data. That is, the trajectory prediction model training method provided by the implementation of the present application can perform online training and updating of the trajectory prediction sub-model during the trajectory prediction task, which can effectively improve the accuracy of trajectory prediction, thereby more accurately predicting the motion trajectory of the object and improving the accuracy of trajectory prediction.

[0049] In a third aspect, an embodiment of the present application provides a trajectory prediction method, the method comprising: inputting first trajectory data corresponding to a target obstacle into a first trajectory prediction model, the first trajectory prediction model comprising a first trajectory prediction sub-model and a first obstacle classification sub-model; the first trajectory prediction sub-model obtains first predicted trajectory data corresponding to the target obstacle according to the first trajectory data; the first obstacle classification sub-model determines that the target obstacle is a key obstacle according to the first trajectory data and the first predicted trajectory data; inputting the first trajectory data and the first predicted trajectory data into the first trajectory prediction sub-model, training the first trajectory prediction sub-model to obtain a second trajectory prediction sub-model; inputting the first trajectory data into the second trajectory prediction sub-model; the second trajectory prediction sub-model obtains sixth predicted trajectory data as target predicted trajectory data of the target obstacle according to the first trajectory data.

[0050] That is, the trajectory prediction model training method provided by the implementation of the present application can perform online training and updating of the trajectory prediction sub-model during the trajectory prediction task, which can effectively improve the accuracy of trajectory prediction, thereby more accurately predicting the motion trajectory of the object and improving the accuracy of trajectory prediction.

[0051] In a fourth aspect, an embodiment of the present application provides a trajectory planning method, which includes: determining the motion trajectory of the target object based on the target predicted trajectory data of the target obstacle and the environmental information of the target object, the motion trajectory is used for the motion control of the target object, and the target predicted trajectory data of the target obstacle is obtained by the aforementioned trajectory prediction method.

[0052] By planning the motion trajectory of the target object based on the target prediction trajectory data of the target obstacle obtained based on the aforementioned trajectory prediction model, a more accurate motion trajectory of the target object can be obtained, thereby improving the accuracy of the target object's motion, meeting the user's usage needs, and improving the user experience.

[0053] In a fifth aspect, an embodiment of the present application provides a trajectory prediction model training device, comprising: a first input module, used to input first trajectory data corresponding to a target obstacle into a first trajectory prediction model, the first trajectory prediction model comprising a first trajectory prediction sub-model module and a first obstacle classification sub-model module, the first trajectory prediction sub-model module comprising a first trajectory prediction sub-model, and the first obstacle classification sub-model module comprising a first obstacle classification sub-model; the first trajectory prediction sub-model module, used to obtain first predicted trajectory data corresponding to the target obstacle according to the first trajectory data; the first obstacle classification sub-model module, used to determine that the target obstacle is a key obstacle according to the first trajectory data and the first predicted trajectory data; a first model training module, used to input the first trajectory data and the first predicted trajectory data into the first trajectory prediction sub-model, train the first trajectory prediction sub-model, and obtain a second trajectory prediction sub-model.

[0054] In a sixth aspect, an embodiment of the present application provides a trajectory prediction device, comprising: a second input module, used to input fifth trajectory data into a second trajectory prediction sub-model module, the second trajectory prediction sub-model module including a second trajectory prediction sub-model, and the second trajectory prediction sub-model is obtained by the aforementioned trajectory prediction model training method; the second trajectory prediction sub-model module, used to obtain fifth predicted trajectory data corresponding to the target obstacle according to the fifth trajectory data as target predicted trajectory data of the target obstacle.

[0055] In a seventh aspect, an embodiment of the present application provides a trajectory prediction device, comprising: a first input module, used to input first trajectory data corresponding to a target obstacle into a first trajectory prediction model, the first trajectory prediction model comprising a first trajectory prediction sub-model module and a first obstacle classification sub-model module, the first trajectory prediction sub-model module comprising a first trajectory prediction sub-model, and the first obstacle classification sub-model module comprising a first obstacle classification sub-model; the first trajectory prediction sub-model module, used to obtain first predicted trajectory data corresponding to the target obstacle according to the first trajectory data; the first obstacle classification sub-model module, used to determine that the target obstacle is a key obstacle according to the first trajectory data and the first predicted trajectory data; a first model training module, used to input the first trajectory data and the first predicted trajectory data into the first trajectory prediction sub-model, train the first trajectory prediction sub-model, and obtain a second trajectory prediction sub-model; a second input module, used to input the first trajectory data into the second trajectory prediction sub-model module, the second trajectory prediction sub-model module comprising a second trajectory prediction sub-model; and the second trajectory prediction sub-model module, used to obtain sixth predicted trajectory data as target predicted trajectory data of the target obstacle according to the first trajectory data.

[0056] In an eighth aspect, an embodiment of the present application provides a trajectory planning device, comprising: a planning module, for determining the motion trajectory of a target object based on target predicted trajectory data of the target obstacle and environmental information of the target object, the motion trajectory being used for motion control of the target object, and the target predicted trajectory of the target obstacle being obtained by the aforementioned trajectory prediction method.

[0057] In the ninth aspect, an embodiment of the present application provides a computing device cluster, including at least one computing device, each computing device including a processor and a memory; the processor of at least one computing device is used to execute instructions stored in the memory of at least one computing device, so that the computing device cluster executes the aforementioned trajectory prediction model training method, or so that the computing device cluster executes the aforementioned trajectory prediction method, or so that the computing device cluster executes the aforementioned trajectory planning method.

[0058] In the tenth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed by a computing device cluster, enables the computing device cluster to execute the aforementioned trajectory prediction model training method, or enables the computing device cluster to execute the aforementioned trajectory prediction method, or enables the computing device cluster to execute the aforementioned trajectory planning method.

[0059] In the eleventh aspect, an embodiment of the present application provides a computer-readable storage medium, including computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster executes the aforementioned trajectory prediction model training method, or the computing device cluster executes the aforementioned trajectory prediction method, or enables the computing device cluster to execute the aforementioned trajectory planning method.

[0060] The relevant beneficial effects of the fifth to eleventh aspects mentioned above can be found in the relevant descriptions of the first to fourth aspects mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] In order to more clearly illustrate the technical solution of the present application, the drawings used in the description of the implementation methods are briefly introduced below.

[0062] Figure 1 is a schematic diagram showing a principle of a trajectory prediction model training method according to some embodiments of the present application;

[0063] Figure 2A is a schematic diagram showing an architecture of an autonomous driving system according to some embodiments of the present application;

[0064] Figure 2B According to some embodiments of the present application, it is shown Figure 2A Schematic diagram of the processing process of the trajectory prediction part;

[0065] Figure 2C is a schematic diagram showing the principle of another trajectory prediction model training method according to some embodiments of the present application;

[0066] Figure 3A is a flow chart showing a trajectory prediction model training method according to some embodiments of the present application;

[0067] Figure 3B is a schematic diagram showing a process of a trajectory prediction model training method according to some embodiments of the present application;

[0068] Figure 4A is a schematic diagram showing a flow chart of a general trajectory prediction model training method according to some embodiments of the present application;

[0069] Figure 4B is a schematic diagram showing a process flow of a general trajectory prediction model training method according to some embodiments of the present application;

[0070] Figure 4C is a schematic diagram showing an obstacle trajectory data set according to some embodiments of the present application;

[0071] Figure 4D According to some embodiments of the present application, a structure of a general trajectory prediction model and a corresponding processing principle schematic diagram are shown;

[0072] Figure 5A is a flowchart showing a key obstacle classification model training method according to some embodiments of the present application;

[0073] Figure 5B is a schematic diagram showing a process of a key obstacle classification model training method according to some embodiments of the present application;

[0074] Figure 5C is a schematic diagram showing obstacle trajectory data according to some embodiments of the present application;

[0075] Figure 5D According to some embodiments of the present application, a structure of a key obstacle classification model and a corresponding processing principle schematic diagram are shown;

[0076] Fig. 6A is a schematic diagram showing a flow chart of a trajectory prediction method according to some embodiments of the present application;

[0077] Figure 6B is a schematic diagram showing the principle of a trajectory prediction method according to some embodiments of the present application;

[0078] Fig. 7A is a schematic diagram showing a predicted trajectory obtained by a general trajectory prediction model and a trajectory prediction model provided by an implementation of the present application according to some embodiments of the present application;

[0079] Figure 7B is another schematic diagram showing predicted trajectories obtained by using a general trajectory prediction model and a trajectory prediction model provided by an implementation of the present application according to some embodiments of the present application;

[0080] Figure 8 is a schematic diagram showing a flow chart of a trajectory planning method according to some embodiments of the present application;

[0081] Fig. 9 is a schematic diagram showing a flow chart of a trajectory prediction method in the prior art according to some embodiments of the present application;

[0082] Fig.10 is a flowchart showing another trajectory planning method in the prior art according to some embodiments of the present application;

[0083] Fig.11is a schematic diagram showing the structure of a trajectory prediction model training device according to some embodiments of the present application;

[0084] Fig.12 is a schematic diagram showing a structure of a trajectory prediction device according to some embodiments of the present application;

[0085] Fig.13 is a schematic structural diagram showing another trajectory prediction device according to some embodiments of the present application;

[0086] Fig.14 is a schematic diagram showing a structure of a trajectory planning device according to some embodiments of the present application;

[0087] Figures 15A-15D According to some embodiments of the present application, some structural schematic diagrams of computing devices are shown;

[0088] Figures 16A-16D According to some embodiments of the present application, some structural schematic diagrams of computing device clusters are shown. DETAILED DESCRIPTION

[0089] The technical solution provided by the implementation method of this application will be further described below in conjunction with the accompanying drawings.

[0090] The implementation method of this application will take the field of autonomous driving as an example to illustrate the trajectory prediction model training, trajectory prediction, trajectory planning methods and devices provided by the implementation method of this application.

[0091] In the field of autonomous driving, trajectory prediction is almost an indispensable module for autonomous driving tasks. In autonomous driving tasks, a trajectory prediction model is generally obtained by modeling the trajectory data such as the historical state information, current state information and corresponding environmental information of obstacles around the vehicle (such as vehicles, pedestrians, etc.), and the future behavior or state information of obstacles around the vehicle is predicted through the trajectory prediction model. The state information of obstacles includes, for example, the location information, direction information (such as orientation), movement speed information, movement acceleration information of the obstacles, and may also include size information (such as length and width, etc.), and environmental information includes, for example, road topology information.

[0092] In autonomous driving tasks, understanding the future behavior of other dynamic obstacles can better prepare for effective and efficient autonomous driving decisions and planning. For example, knowing whether a bus parked at a bus stop is about to start can help decide whether the self-driving car needs to switch from its adjacent lane to other lanes to avoid colliding with the bus.

[0093] However, trajectory prediction is a very challenging task. In autonomous driving tasks, the movement trajectory of obstacles may be affected by many factors, including driver personal preferences, destination or intention, environment structure and topology, and the movement of other obstacles, which increases the difficulty of accurately predicting the trajectory.

[0094] Existing learning-based trajectory prediction algorithms can achieve online prediction of obstacle trajectories by offline learning a large amount of obstacle trajectory data, but they have several problems.

[0095] For example, as mentioned above, since the trajectory prediction model corresponding to the trajectory prediction algorithm is an average model based on the trajectory data of multiple objects, there is a generalization problem. In the subsequent situation where the scene corresponding to the actual trajectory prediction task (or the test environment data distribution) is inconsistent with the scene corresponding to the trajectory data used to train the trajectory prediction model (i.e., the training environment), the performance of the trajectory prediction model may deteriorate, resulting in inaccurate trajectory prediction results and affecting the accuracy of trajectory prediction.

[0096] In addition, since the learned trajectory prediction model is an average model based on the trajectory data of multiple objects, there is also a problem that the trajectory prediction model cannot capture the "personality" of each obstacle well, which also affects the accuracy of the predicted trajectory. The "personality" of the obstacle can be, for example, the driver's driving preference, aggressiveness, etc.

[0097] Furthermore, the training and updating of trajectory prediction models are all done offline, which takes a long time. In addition, problems found during online trajectory prediction need to be solved through a series of offline data closed-loop processes, which results in a long online model problem-solving cycle and also affects the accuracy of trajectory prediction.

[0098] Furthermore, since the learned trajectory prediction model is usually a global model obtained based on trajectory data in a larger time window, there is still the problem that it cannot capture the trajectory characteristics of microscopic moments well, which will also affect the accuracy of the predicted trajectory.

[0099] Based on this, this application implementation provides a trajectory prediction model training method, see Figure 1 The trajectory prediction model includes a general trajectory prediction model and a key obstacle classification model (also called a key obstacle classifier). By inputting obstacle trajectory data into the general trajectory prediction model, corresponding obstacle prediction trajectory data can be obtained. By inputting obstacle trajectory data and corresponding obstacle prediction trajectory data into the key obstacle classification model, it can be obtained whether the corresponding obstacle is a key obstacle.

[0100] The trajectory prediction model training method provided by the implementation of the present application introduces an incremental learning framework into the trajectory prediction process. During the trajectory prediction task (i.e., the model reasoning stage), the general trajectory prediction model is trained and updated online, which can effectively improve the accuracy of trajectory prediction.

[0101] In one implementation of the present application, Figure 1 As shown, the trajectory prediction model training method includes: inputting a trajectory data stream to be predicted corresponding to the autonomous driving task (i.e., the trajectory prediction task) into the general trajectory prediction model m, wherein the trajectory data stream includes obstacle trajectory data x corresponding to at least one obstacle his (i.e. target trajectory data). The general trajectory prediction model m is inferred to obtain the obstacle trajectory data x his The corresponding obstacle prediction trajectory data x pred . The obstacle trajectory data x his and obstacle prediction trajectory data x pred Input to the key obstacle classification model, the key obstacle classification model infers and determines the obstacle trajectory data x his and obstacle prediction trajectory data x pred Whether the corresponding obstacle is a key obstacle is output as the key obstacle classification c. Key obstacles include but are not limited to obstacles with large prediction errors, high motion uncertainty, and significant impact on the vehicle planning decision. Then, based on the key obstacle classification c, the obstacle trajectory data x his Filter out the obstacle trajectory data x corresponding to the key obstacles his As the key obstacle trajectory data, the trajectory data x is predicted from the obstacle pred Filter out the obstacle prediction trajectory data x corresponding to the key obstacles pred As key obstacle prediction trajectory data. The key obstacle trajectory data corresponding to the key obstacle and the key obstacle prediction trajectory data are used as incremental data, and the general trajectory prediction model (such as Figure 1 The general trajectory prediction model m' after incremental learning is obtained for subsequent trajectory prediction.

[0102] In this way, the generalization problem of the general trajectory prediction model can be effectively improved, and the characteristics of obstacles can be better obtained, thereby improving the accuracy of the general trajectory prediction model. In addition, by training and updating the model during the model reasoning stage, problems found during the model online prediction process can be solved in a timely manner. That is, the trajectory prediction model training method provided by the implementation method of the present application can effectively improve the performance of the online reasoning of the trajectory prediction model.

[0103] Furthermore, the implementation of the present application also provides a trajectory prediction method, such as Figure 1 As shown, the trajectory prediction method includes: transforming the obstacle trajectory data x in the trajectory data stream to be predicted corresponding to the aforementioned trajectory prediction task into his Input into the general trajectory prediction model m' obtained after the incremental learning above (such as Figure 1 The general trajectory prediction model m' is inferred to obtain the corresponding obstacle prediction trajectory data x pred ', as the target trajectory prediction data of the final target obstacle. In this way, the accuracy of the predicted trajectory can be effectively improved.

[0104] Furthermore, the implementation of the present application also provides a trajectory planning method, which includes: planning the motion trajectory of the vehicle based on the environmental information of the vehicle and the target prediction trajectory data of the target obstacle obtained above, so as to be used for the motion control of the vehicle. In this way, a more accurate motion trajectory of the vehicle can be obtained, thereby improving the safety of the vehicle's automatic driving.

[0105] The following will further explain the autonomous driving system in the field of autonomous driving and the trajectory prediction model training method provided by the implementation of this application.

[0106] like Figure 2A As shown in the figure, in the field of autonomous driving, the architecture of the vehicle's autonomous driving system mainly includes four parts: perception module, prediction module, planning module and control module. Among them:

[0107] Perception module: used to output information such as the state information of the vehicle, the state information of obstacles (such as other vehicles), and the road topology information of the road based on the information received from the sensors. Among them, sensors can be, for example, cameras, global positioning systems (GPS), speed sensors, radars, and other sensors used to detect the vehicle's own motion information or the motion information of surrounding objects and surrounding environment information. The information sent by the sensor can be, for example, image information captured by the camera, positioning information sent by GPS, and vehicle speed information and driving acceleration information sent by the speed sensor. The state information of the vehicle can be, for example, positioning information such as the position information and orientation information of the vehicle, and the state information of obstacles can be, for example, the position information, orientation information, speed information, length and width information of other vehicles, and the road topology information of the road refers to the structure and topology of the road.

[0108] Prediction module: used to output the predicted trajectory of the other vehicle in the future based on the information obtained by the perception module, such as the status information of the other vehicle and the road topology information of the road it is on.

[0109] Planning module: It is used to decide the lane selection of the self-vehicle based on the state information of the self-vehicle (as an example of an obstacle) obtained by the perception module, the road topology information of the road it is on, and the constraint information such as the predicted trajectory of other vehicles in the future obtained by the prediction module, and plan the future driving path and speed of the self-vehicle, and output the planned trajectory of the self-vehicle.

[0110] Control module: It is used to plan the trajectory of the self-vehicle based on the planning module, and output control information to control the self-vehicle to complete autonomous driving.

[0111] Furthermore, if Figure 2B As shown, the prediction module mainly includes three parts: pre-processing module, trajectory prediction model module and post-processing module. Among them, the pre-processing module is used to convert the information sent by the upstream perception module into the format required for input by the model reasoning in the trajectory prediction model module. The trajectory prediction model module is used to output the predicted trajectory of the other vehicle in the future according to the input information. The post-processing module is usually used to perform trajectory validity check, trajectory smoothing and stabilization and other processing on the predicted trajectory. Among them, the format required for input by the model reasoning can be, for example, stacked information such as position and speed in the trajectory data corresponding to multiple time points. The form of the stacked information can be, for example, in the form of a feature vector or a matrix. The trajectory validity check includes, for example, whether the vehicle will collide according to the current trajectory, whether the trajectory is off the road, etc. The trajectory smoothing and stabilization includes, for example, removing some burrs by means of sliding average.

[0112] The trajectory prediction model training method provided in the implementation of this application mainly acts on the above trajectory prediction model and can be loaded in the form of software. Figure 2C As shown, the trajectory prediction model training method provided by the implementation of this application introduces an incremental learning framework into the trajectory prediction model. After obtaining the predicted trajectory of other vehicles for a period of time in the future, for some specific key obstacles related to autonomous driving tasks (such as buses, cars, motorcycles, etc.), the trajectory data and predicted trajectory corresponding to the key obstacles are used for online training and updating of the trajectory prediction model. In this way, the accuracy of the trajectory prediction model can be improved in a timely and effective manner, so that it has better online reasoning performance.

[0113] like Figure 3A and Figure 3B As shown, in one implementation of the present application, the trajectory prediction model training method includes the following steps:

[0114] S110, the trajectory data (as an example of first trajectory data) of the target vehicle (as an example of the target obstacle) included in the trajectory data stream is input into the general trajectory prediction model (as an example of the first trajectory prediction sub-model) and the key obstacle classification model (as an example of the first obstacle classification sub-model) included in the trajectory prediction model (as an example of the first trajectory prediction model).

[0115] S120, the general trajectory prediction model obtains predicted trajectory data corresponding to the target vehicle according to the trajectory data (as an example of first predicted trajectory data), and then inputs the predicted trajectory data into the key obstacle classification model.

[0116] S130, the key obstacle classification model determines that the target vehicle is a key obstacle according to the trajectory data and the predicted trajectory data.

[0117] S140, using the target vehicle's trajectory data as key obstacle trajectory data and the predicted trajectory data as key obstacle predicted trajectory data, and inputting them into a general trajectory prediction model, training the general trajectory prediction model, and obtaining an updated general trajectory prediction model (as an example of a second trajectory prediction sub-model).

[0118] In this implementation, the trajectory prediction model training method is performed in the model reasoning stage, and the trajectory data stream in step S110 can be a trajectory data stream to be predicted in the model reasoning stage. The trajectory data stream includes at least one trajectory data, and each trajectory data includes at least the current trajectory data and historical trajectory data of the obstacle.

[0119] Among them, obstacles include, for example, target vehicles and other vehicles (as an example of non-target obstacles). The target vehicle is a vehicle within a preset range around the vehicle, and the other vehicle is a vehicle other than the target vehicle within a preset range around the vehicle. Both the target vehicle and the prediction range can be selected and determined according to the needs of the autonomous driving task. The prediction range can be, for example, a range within a 2m radius, or an adjacent lane, etc.

[0120] In addition, if the current moment is T (as an example of the first moment), the current trajectory data is the trajectory data at the current moment T, and the historical trajectory data is the trajectory data within a preset time (as an example of the first preset time) before the current moment T. The value range of the preset time can be, for example, 2s to 5s, such as 2s, 3s, 4.5s, 5s, etc. Of course, the preset time can also be any other value, which can be set as needed.

[0121] For example, in the model inference stage, online inference can be performed every 0.5 seconds, and five sets of current trajectory data and historical trajectory data with lengths of 0 seconds, 0.5 seconds, 1 second, 1.5 seconds, and 2 seconds can be obtained in the 3rd second. Alternatively, online inference can be performed every 0.5 seconds, and 3 seconds of current trajectory data and historical trajectory data can be obtained each time.

[0122] In addition, the obstacle trajectory data includes the state information of the obstacle and the corresponding environment information. The state information includes at least one of the following information: the location information of the obstacle, the direction information of the obstacle, the movement speed information of the obstacle, the movement acceleration information of the obstacle, the size information of the obstacle, etc. The environment information includes the road topology information corresponding to the environment where the vehicle is located, etc.

[0123] In this implementation, the general trajectory prediction model is used to obtain corresponding predicted trajectory data according to the trajectory data, and the key obstacle classification model is used to determine whether an obstacle is a key obstacle.

[0124] In one implementation of the present application, Figure 4A and Figure 4B As shown in Figure 2, the general trajectory prediction model is obtained by:

[0125] S210, inputting obstacle trajectory data (as an example of second trajectory data) included in the obstacle trajectory data set into an initial general trajectory prediction sub-model (as an example of initial trajectory prediction sub-model) to obtain a corresponding trajectory prediction result, wherein the obstacle trajectory data set includes a plurality of obstacle trajectory data.

[0126] S220 , training an initial universal trajectory prediction model according to the trajectory prediction result to obtain a universal trajectory prediction model.

[0127] The obstacle trajectory data includes historical trajectory data of the obstacle and corresponding predicted trajectory data. The obstacle trajectory dataset involved in the present implementation can be obtained, for example, from a general open source trajectory dataset or a non-open source trajectory dataset.

[0128] For example, the open source Argoverse vehicle trajectory dataset (as an example of an initial trajectory dataset) is used, and the trajectory data in the Argoverse vehicle trajectory dataset (as an example of initial trajectory data) is recombined and divided to construct new training datasets, validation datasets, and test datasets.

[0129] For example, Figure 4CAs shown, each single trajectory data (i.e., original trajectory data) included in the Argoverse vehicle trajectory dataset contains 3s (as an example of the third time length) of historical trajectory data and 2s (as an example of the fourth time length) of future trajectory data. In this implementation, the historical trajectory length can be set to 1s (as an example of the first time length), the future trajectory length can be set to 2s (as an example of the second time length), and the sliding window can be set at intervals of 0.5s (as an example of the first time interval). Five time-continuous trajectory data can be constructed based on a single trajectory data. The five time-continuous trajectory data are the new trajectory data constructed, and each of the new trajectory data includes 1s of historical trajectory data and 2s of historical trajectory data.

[0130] During the training process of the obstacle trajectory prediction model, usually the trajectory data of the entire life cycle (i.e., the entire life cycle) of the obstacle will participate in the model training. For example, at an unprotected intersection, an obstacle wants to turn left, and the obstacle first goes straight and slows down, then accelerates to turn left. Taking the entire process of the obstacle turning left as a life cycle, the model may learn a relatively average speed for the entire life cycle of the obstacle, and cannot learn the aforementioned deceleration and acceleration speeds well. That is, each single trajectory data included in the aforementioned Argoverse vehicle trajectory dataset can be understood as a life cycle trajectory data, and the model learned based on the trajectory data cannot capture the trajectory characteristics of the micro-moments well.

[0131] In this implementation, the new 5 trajectory data constructed have a smaller time window than the original trajectory data. By collecting and training the trajectory data of a small time window, the model can better learn and supplement the trajectory characteristics of micro-time points, for example, it can well learn the aforementioned deceleration and acceleration speed. Therefore, the universal trajectory model trained based on the trajectory data is a global model based on trajectory data of a smaller time window, which can well capture the trajectory characteristics of micro-time points and effectively improve the accuracy of trajectory prediction.

[0132] The initial general trajectory prediction model involved in this implementation can be a general trajectory prediction model. For example, the currently open-source trajectory prediction model DenseTNT with leading indicators is used as the general trajectory prediction model. The network structure of the general trajectory prediction model is shown in Figure 4DAs shown, it mainly includes an encoding unit (Encoder, which can also be called an encoder) and a decoding unit (Decder, which can also be called a decoder), wherein the encoding unit includes a sub-network (Sub Network) and a global network (Global Network), the sub-network is used to extract individual trajectory features, and the global network is used to extract global trajectory features. The input of the general trajectory prediction model includes the current and historical state information of the target vehicle and other vehicles (i.e., AgentsInfo), and road topology information (i.e., MapInfo). The encoding unit is used to obtain the corresponding trajectory feature information (as an example of the first trajectory feature information) according to the input trajectory data, and input the trajectory feature information to the decoding unit, and the decoding unit obtains the corresponding predicted trajectory data (as an example of the second predicted trajectory data) according to the trajectory feature information. That is, the input of the general trajectory prediction model, after passing through the network structure including the encoding unit and the decoding unit, can output the corresponding future predicted trajectory data of the target vehicle (i.e., Predicitor). The predicted trajectory data includes a predicted trajectory (as an example of the first predicted motion trajectory), or can also include a target point (as an example of the first predicted target point). Of course, the corresponding target point can also be obtained according to the end point of the predicted trajectory. Then, as mentioned above, the planning module can plan the vehicle's motion trajectory (i.e., Trajectories) based on the predicted trajectory data obtained by the prediction module.

[0133] Furthermore, the general trajectory prediction model obtains predicted trajectory data corresponding to the target vehicle based on the trajectory data, and the predicted trajectory data is the predicted trajectory data of the target vehicle within 2 seconds after the aforementioned current moment T (as an example of the second preset time).

[0134] In this implementation, the obstacle trajectory data included in the obstacle trajectory data set is input into the initial trajectory prediction sub-model, and the initial general trajectory prediction model is trained until the training termination condition is reached to obtain the general trajectory prediction model. The training termination condition may be, for example, the corresponding target loss function converges or reaches a preset number of iterations, the convergence condition of the target loss function and the target loss function, or the number of iterations may be specifically set as needed, and this application does not make specific restrictions on this.

[0135] In this way, a general trajectory prediction model can be trained through the massive obstacle trajectory data included in the obstacle data set. In this implementation, since the trajectory data after segmentation and reorganization used to train the general trajectory prediction model has a smaller time window than the original trajectory data, by collecting and training the model with trajectory data in a small time window, the model can better learn and supplement the trajectory characteristics of microscopic time points. Therefore, the trained general trajectory prediction model can better capture the trajectory characteristics of the obstacle at the microscopic time points, effectively improving the accuracy of the trajectory prediction of the general trajectory prediction model.

[0136] In this implementation, the initial general trajectory prediction model is obtained by training the general trajectory prediction model according to the obstacle trajectory data, which can be considered to be trained offline, that is, it is performed when the trajectory prediction task is not performed.

[0137] Furthermore, in this implementation, the key obstacle in the aforementioned step S130 is an obstacle determined according to the autonomous driving task (i.e., trajectory prediction task). For example, the key obstacle may be an obstacle with a large difference between the trajectory prediction scene and the scene corresponding to the trajectory data used to train the general trajectory prediction model, a large trajectory prediction error, a high motion uncertainty, a significant impact on the vehicle trajectory planning, and a preset motion style, which can be set according to the trajectory prediction task.

[0138] Among them, obstacles with large differences between the trajectory prediction scene and the scene corresponding to the trajectory data used to train the general trajectory prediction model, or obstacles with large trajectory prediction errors, for example, may be obstacles where the scene corresponding to the trajectory prediction task and the scene corresponding to the trajectory data used to train the general trajectory prediction model do not belong to the same or similar fields.

[0139] Obstacles with higher motion uncertainty may be obstacles with motion uncertainty greater than a preset threshold, such as vehicles with faster speeds such as motorcycles, or vehicles such as private cars that do not have predictable routes compared to buses, etc. The threshold may be specifically set as needed.

[0140] Obstacles that have a significant impact on the trajectory planning of the vehicle may be obstacles whose impact on the trajectory planning decision is greater than a preset threshold, such as vehicles within a preset distance range (e.g., within 1 m) nearby. The preset threshold may be set as needed.

[0141] An obstacle with a preset movement style is an obstacle with a specific movement style, for example, a bus that usually has a low speed and a relatively stable route, etc., which can be specifically set as needed.

[0142] Furthermore, if Figure 5A and 5BAs shown, in one implementation of the present application, the key obstacle classification model may be a key obstacle classification model based on supervised learning, and the key obstacle classification model is obtained by:

[0143] S310: Input obstacle trajectory data (as an example of fourth trajectory data) into the aforementioned general trajectory prediction model, where the obstacle trajectory data includes historical trajectory data of the obstacle and corresponding predicted trajectory data.

[0144] S320, the general trajectory prediction model obtains obstacle trajectory prediction data (as an example of fourth predicted trajectory data) according to the obstacle trajectory data.

[0145] S330, comparing the obstacle trajectory prediction data with the corresponding predicted trajectory data in the obstacle trajectory data, and taking obstacles whose predicted trajectory errors are greater than a preset error threshold and are preset optimizable obstacles (such as private cars, buses, etc.) as key obstacles.

[0146] S340: Obstacle trajectory data with key obstacle labels are labeled according to the key obstacles to obtain obstacle trajectory data with key obstacle labels (as an example of the third trajectory data), and obstacle trajectory prediction data with key obstacle labels are labeled according to the key obstacles to obtain obstacle trajectory prediction data with key obstacle labels (as an example of the third prediction trajectory data). The obstacle trajectory data with key obstacle labels and the obstacle trajectory prediction data with key obstacle labels are used as key obstacle data sets.

[0147] S350: Input the obstacle trajectory data with the key obstacle labels and the obstacle trajectory prediction data with the key obstacle labels into an initial key obstacle classification model (as an example of an initial obstacle classification sub-model), and perform supervised training on the initial key obstacle classification model based on the key obstacle labels to obtain a key obstacle classification model.

[0148] In this implementation, the construction of the key obstacle dataset can be achieved through automatic annotation. Figure 5C As shown, a single piece of obstacle trajectory data contains 3s of historical trajectory data and 2s of future trajectory data.

[0149] In this implementation, the obstacle trajectory data is input into the general trajectory prediction model to obtain the corresponding obstacle prediction trajectory data. Then, the future prediction trajectory data in the obstacle trajectory data is compared with the obstacle prediction trajectory data, and the obstacles with large trajectory prediction errors and whose trajectory prediction can be optimized through incremental learning are marked as key obstacles to obtain key obstacle trajectory labels. For example, a large trajectory prediction error may refer to FDE>2m, and FDE (Final Displacement Error) refers to the distance error between the final trajectory prediction point and the true value.

[0150] Optimizable obstacles refer to obstacles whose trajectory prediction can be optimized through incremental learning, such as vehicles and pedestrians. Obstacles that cannot be optimized for trajectory prediction through incremental learning may be trees, fences, etc.

[0151] Then, the key obstacle data and the obtained obstacle prediction trajectory are labeled with key obstacle trajectory labels as the key obstacle data set.

[0152] The initial key obstacle classification model involved in this implementation can adopt a structure similar to the network structure of the aforementioned initial general trajectory prediction model.

[0153] For example, Figure 5D As shown in FIG. 1 , the network structure of the initial key obstacle classification model mainly includes an encoding unit and a classification unit (Classifier, also called a classifier). Among them, the decoding unit in the aforementioned initial general trajectory prediction model becomes a classification unit, and the classification unit can output whether an obstacle is a key obstacle.

[0154] In addition, the input of the initial key obstacle classification model includes the current and historical status information of the target vehicle and other vehicles (i.e., AgentsInfo), and road topology information (i.e., MapInfo). After the input of the initial key obstacle classification model passes through a network structure including an encoding unit and a classification unit, it can output trajectory classification results of the corresponding obstacles selected (i.e., Seleted) as key obstacles and not selected (i.e., Not Seleted) as key obstacles (i.e., Not selected). Among them, the encoding unit is used to obtain corresponding trajectory feature information (as an example of second trajectory feature information) based on the input trajectory data, and input the trajectory feature information to the classification unit. The classification unit obtains the corresponding trajectory classification result based on the trajectory feature information. Subsequently, the initial key obstacle classification model is trained according to the trajectory classification results and the key obstacle labels to obtain a key obstacle classification model.

[0155] In this implementation, supervised training is performed on the initial key obstacle classification model until the training termination condition is reached to obtain the key obstacle classification model. The training termination condition may be, for example, the corresponding target loss function converges or reaches a preset number of iterations, the convergence condition of the target loss function and the target loss function, or the number of iterations may be specifically set as needed, and this application does not make specific restrictions on this.

[0156] In this implementation, a key obstacle classification model can be trained using a large amount of key obstacle data included in the key obstacle data set, thereby effectively improving the accuracy of the key obstacle classification model.

[0157] In this implementation, the key obstacle classification model is a key obstacle classification model based on supervised learning. Therefore, it is necessary to label the obstacles that need to be incrementally learned based on the model reasoning results and the interactive characteristics of the obstacles, and learn the model weights of the key obstacle classification model through supervised learning.

[0158] In addition, in some other implementations of the present application, the key obstacle classification model can also be selected and set as needed. For example, the key obstacle classification model can also be a rule-based or unsupervised key obstacle classification model, and the aforementioned key obstacle classification model training-related steps are not required.

[0159] Further, for the aforementioned step S140, the key obstacle trajectory data and the key obstacle predicted trajectory data are input into the general trajectory prediction model, and the general trajectory prediction model is trained to obtain an updated general trajectory prediction model. The key obstacle trajectory data and the corresponding key obstacle predicted trajectory data obtained within a preset time period are input into the general trajectory prediction model, and the general trajectory prediction model is trained to obtain an updated general trajectory prediction model. Alternatively, a preset number of key obstacle trajectory data and the corresponding key obstacle predicted trajectory data are input into the general trajectory prediction model, and the general trajectory prediction model is trained to obtain an updated general trajectory prediction model. The preset time period and the preset number can be set as needed. For example, the value range of the preset time period can be 3s to 60s, and the value range of the preset number can be, for example, 2 to 20 (for example, 5, 15, etc.). In this way, in the process of performing the trajectory prediction task, the general trajectory prediction model can be periodically trained and updated online according to the trajectory data and trajectory prediction data corresponding to the key obstacles, which can effectively improve the model accuracy and the accuracy of trajectory prediction.

[0160] In addition, in the present implementation, the general trajectory prediction model is trained until the training termination condition is reached to obtain an updated general trajectory prediction model. The training termination condition may be, for example, the corresponding target loss function converges or reaches a preset number of iterations. The convergence condition of the target loss function and the target loss function, or the number of iterations can be specifically set as needed, and the present application does not make specific restrictions on this. For example, the loss is calculated for the key obstacle prediction trajectory data and the key obstacle trajectory data (i.e., the actual trajectory data) corresponding to the key obstacle, and then the model parameter weights are fine-tuned to obtain an updated trajectory prediction model. And, thereafter, the parameter weights of the trajectory prediction model are reset to the parameter weights of the general trajectory prediction model.

[0161] The trajectory prediction model training method provided by the present implementation is a trajectory prediction model training method based on incremental learning. Whether an obstacle is a critical obstacle is determined by a critical obstacle classification model, and the critical obstacle trajectory data corresponding to the critical obstacle is screened out from the trajectory data stream, and the critical obstacle prediction trajectory data corresponding to the critical obstacle is screened out from the prediction trajectory data obtained by the general trajectory prediction model according to the trajectory data stream, and the general trajectory prediction model is trained according to the critical obstacle trajectory data and the critical obstacle prediction trajectory data, and an updated general trajectory prediction model can be obtained. In this way, the general trajectory prediction model can be trained and updated by the trajectory data corresponding to the critical obstacle, which improves the generalization problem of the general trajectory model, so that the general trajectory prediction model can perform trajectory prediction more accurately, thereby improving the accuracy of trajectory prediction.

[0162] Moreover, the above trajectory data stream may be a trajectory data stream in the inference phase. Therefore, the trajectory prediction model training method provided by the present implementation can train and update the trajectory prediction model online, which can shorten the training and update time of the trajectory prediction model compared to the offline training and update of the trajectory model, and can promptly solve the problem of inaccurate trajectory prediction in the trajectory prediction model, so that the general trajectory prediction model can perform trajectory prediction more accurately, thereby improving the accuracy of trajectory prediction.

[0163] In this implementation, the training and updating of the general trajectory prediction model can be understood as being performed online, that is, during the process of performing the trajectory prediction task.

[0164] Furthermore, the implementation of this application also provides a trajectory prediction method, see Fig. 6A and Figure 6B (shown by the dotted line with an arrow in the figure), in one implementation of the present application, the trajectory prediction method, after the above step S140, further includes the following steps:

[0165] S150 , inputting the trajectory data included in the trajectory data stream into the updated general trajectory prediction model.

[0166] The trajectory data may be the trajectory data in the trajectory data stream that has been input into the general trajectory prediction model.

[0167] S160, the updated general trajectory prediction model obtains new predicted trajectory data (as an example of sixth predicted trajectory data corresponding to the first trajectory data) according to the trajectory data as target predicted trajectory data of the target vehicle.

[0168] The trajectory prediction method provided by this implementation is a trajectory prediction method based on incremental learning. In the process of trajectory prediction, the general trajectory prediction model is updated online, and new predicted trajectory data is obtained again based on the updated general trajectory prediction model as the final target predicted trajectory data. In this way, the accuracy of the predicted trajectory can be improved, and more accurate target predicted trajectory data can be obtained.

[0169] In some other implementations of the present application, if the key obstacle classification model determines that the obstacle is a key obstacle based on the predicted trajectory data and the obstacle trajectory data, step S150 is executed; if the obstacle is determined to be a non-key obstacle, the predicted trajectory data obtained in step S120 is used as the final target predicted trajectory data.

[0170] In some other implementations of the present application, in the trajectory prediction method, the predicted trajectory data obtained in step S120 can also be used as the target predicted trajectory data of the target vehicle, and after the above step S140, the new trajectory data in the trajectory data stream to be tracked (i.e., the trajectory data in the trajectory data stream that has not yet been input into the aforementioned general trajectory prediction model, as an example of the fifth trajectory data) is input into the general trajectory prediction model to obtain the corresponding predicted trajectory data (as an example of the fifth predicted trajectory data), and the predicted trajectory result is used as another target predicted trajectory data corresponding to the target vehicle. In this way, the predicted trajectory data obtained based on the updated general trajectory prediction model is more accurate, the accuracy of the predicted trajectory can be improved, and more accurate target predicted trajectory data can be obtained.

[0171] In summary, the trajectory prediction model training method and trajectory prediction method provided by the implementation of the present application mainly solve the technical problem that trajectory prediction models based on deep learning generally have generalization problems, that is, the performance of the model may deteriorate when encountering scenes that have not been seen during training. This usually requires a longer period to adjust the data set distribution and retrain the model parameters to solve the problem.

[0172] The trajectory prediction model training method and trajectory prediction method provided by the implementation of this application, by introducing an incremental learning framework into trajectory prediction, update the model online for specific objects, that is, update the parameter weights of the vehicle trajectory prediction model online to improve the generalization performance of the model, thereby improving the performance of the model's online reasoning. The selection of specific objects takes into account objects with large prediction errors, and the screening is achieved by learning the key obstacle classification model through supervised learning. On the one hand, it reduces the additional cost brought by incremental learning, and on the other hand, it improves the generalization of the model.

[0173] In addition, the trajectory prediction model training method and trajectory prediction method provided by the implementation of the present application improve the generalization of the model trajectory prediction through incremental learning, can capture the individuality of obstacles and the trajectory characteristics at microscopic moments, and can greatly improve the trajectory prediction of obstacles with uncertain intentions, sudden motion changes, and specific driving styles, thereby significantly improving the prediction indicators.

[0174] In addition, the trajectory prediction model training method and trajectory prediction method provided by the implementation method of the present application realize online closed-loop by online identifying objects with large errors through the key obstacle classification model and triggering online updating of the trajectory prediction model, thereby saving offline closed-loop time (currently usually 1-2 weeks). At the same time, by online identifying objects that need to enable incremental learning, the cost of using incremental learning is reduced, and the generalization performance of the model is accurately improved.

[0175] That is, the trajectory prediction model training method and trajectory prediction method provided by the implementation of the present application, by introducing incremental learning, or online learning, into vehicle trajectory prediction, can accumulate data and update model parameters online for specific selected objects, such as objects with poor model performance, to improve the performance of model online reasoning, and can quickly solve the model generalization problem. The updated model can effectively capture the individuality of obstacles and the trajectory characteristics at microscopic moments, and effectively improve the accuracy of trajectory prediction.

[0176] In addition, the trajectory prediction model training method and trajectory prediction method provided by the implementation of the present application include a general trajectory prediction model, a key obstacle classification model, and an incremental learning trigger and trajectory prediction model parameter update mechanism based on the key obstacle classification model results. The general trajectory prediction model can be any learning-based trajectory prediction model, which is implemented by pre-learning massive trajectory data. The key obstacle classification model can be implemented by learning labels based on the interactive features of the model reasoning results and obstacles, or it can be implemented in an unsupervised manner. Key obstacles may include, but are not limited to, obstacles with large prediction errors, high motion uncertainty, and significant impact on self-vehicle planning decisions. The model parameter update mechanism is an incremental learning mechanism.

[0177] As shown in Table 1 below, the implementation method provided by the implementation method of the present application (i.e., general trajectory prediction model + learning-based key obstacle screening and incremental learning method) has better results in general indicators of multiple trajectory predictions such as minFDE, 2m MR and 4mMR compared to the general trajectory prediction model. Among them, minFDE (Minimum Final Displacement Error) means that for N predicted trajectories, the final trajectory prediction point with the smallest error with the true value prediction is selected as the evaluation result, and MR (Miss Rate) refers to the proportion of the distance error between the final trajectory prediction point and the true value exceeding the specified threshold in all data.

[0178] In addition, compared with the "general trajectory prediction model + incremental learning without key obstacle screening" method, the implementation method provided by the implementation method of this application can be seen that the incremental learning activation rate is less than 14%, which reduces the cost of using incremental learning, and also has better effects on various indicators. In addition, compared with the "general trajectory prediction model + obstacle screening and incremental learning from an omniscient perspective" method, the implementation method provided by the implementation method of this application also has better effects on various indicators.

[0179] In addition, when the key obstacle filter fully learns when to start incremental learning, the trajectory prediction model training method and trajectory prediction method provided by the implementation of the present application can achieve the best effect. At this time, compared with the general trajectory prediction model, minFDE can be reduced by 7.7%, and MR indicators can be reduced by 49% and 39% respectively.

[0180] Table 1

[0181]

[0182] In addition, the model after incremental learning can better capture the "personality" of obstacles, such as driving preferences, aggressiveness, etc., and can also better capture the trajectory characteristics at micro-time points for better intention prediction.

[0183] like Fig. 7A and Figure 7B As shown in the figure, compared with the general trajectory prediction model, the future predicted trajectory (including position, speed, etc.) obtained by the vehicle trajectory prediction model based on incremental learning is closer to the future real trajectory.

[0184] Therefore, the vehicle trajectory prediction algorithm based on incremental learning successfully solves the vehicle speed prediction error problem and the multi-intersection intention error problem of the general trajectory prediction algorithm.

[0185] Furthermore, the implementation of this application also provides a trajectory planning method, see Figure 8In one implementation of the present application, the trajectory planning method, after the above step S160, further includes the following steps:

[0186] S170, determining a motion trajectory of the ego vehicle according to the target predicted trajectory of the target vehicle and the environmental information of the ego vehicle (as an example of the target object), and the motion trajectory is used for motion control of the ego vehicle.

[0187] In this implementation, step S170 is executed by the planning module in the aforementioned vehicle.

[0188] The trajectory planning method provided by this implementation method has more accurate target prediction trajectory data of obstacles used in the trajectory planning of the vehicle. In this way, the accuracy of prediction planning can be improved, a more accurate trajectory of the vehicle can be obtained, the accuracy of the vehicle's automatic driving control can be improved, and thus the safety of automatic driving can be improved.

[0189] Two trajectory prediction model training methods and corresponding trajectory prediction methods in the prior art are described below.

[0190] In one implementation, Fig. 9 As shown in the figure, this method is a trajectory prediction model and trajectory prediction method based on a learning-based generative adversarial framework. In this trajectory prediction method, the historical trajectory is first input into the trajectory prediction model (generator M), and the future trajectory of the pedestrian is predicted forward by the trajectory prediction model to obtain the predicted trajectory output, and then the historical frame is reconstructed by reverse processing, that is, the trajectory is first reversed, and then the reversed predicted trajectory is input into the trajectory prediction model (generator F) to obtain a new predicted trajectory output, and the historical trajectory is reconstructed. This method supervises the learning of the model through the reconstruction error of the pedestrian trajectory, so that the parameters are updated online based on the individual's trajectory preference, thereby improving the prediction accuracy.

[0191] The advantage of this method is that online learning of pedestrian trajectories does not require the accumulation of historical data and the model can be updated in real time.

[0192] The disadvantage of this method is that it has requirements on the network structure of the model (i.e., it can only be a trajectory prediction model with a generative adversarial framework), and cannot adapt to general learning-based prediction models. In addition, since this method determines whether the model needs to be updated through cycle consistency loss (i.e., if the loss is consistent, the model is not updated, and if the loss is inconsistent, the model is not updated), it does not take into account the problem of inaccurate prediction results in the future, and therefore does not directly solve the optimization problem of trajectories with poor prediction results. Updating the model through single-frame data has problems such as poor stability, and the efficiency of updating the model for all objects is not considered, which affects the actual application effect.

[0193] In another implementation, Fig.10As shown, the method is an algorithm that maintains a cache to obtain streaming data as a data set to achieve continuous learning, gives future human motion predictions and its cognitive uncertainty and random uncertainty through a recurrent neural network, and models the model uncertainty through a Bayesian neural network to assign sampling sample weights of the data set.

[0194] The advantage of this method is that model performance can be optimized by assigning data set sample weights through model uncertainty.

[0195] The disadvantage of this method is that it does not directly solve the problem of poor human motion prediction, but only affects sampling and training by estimating uncertainty.

[0196] Therefore, compared with the above two trajectory prediction model training methods and corresponding trajectory prediction methods, the trajectory prediction model training method and the corresponding trajectory prediction method provided by the implementation of the present application can not only train the model online, but also improve the timeliness and accuracy of model training. Moreover, by training and updating the model with trajectory data corresponding to key obstacles, the generalization problem existing in the trajectory prediction model can be effectively improved, and the characteristics of the obstacles can be better obtained, thereby improving the accuracy of the trajectory prediction model. Moreover, by performing model training and updating in the model reasoning stage, problems found in the model online prediction process can be solved in a timely manner. That is, the trajectory prediction model training method provided by the implementation of the present application can effectively improve the performance of online reasoning of the trajectory prediction model.

[0197] The trajectory prediction model training device, trajectory prediction device and trajectory planning device provided by the implementation method of the present application are described below.

[0198] The trajectory prediction model training device provided by the implementation method of this application is as follows: Fig.11 As shown, it includes: a first input module, a first trajectory prediction sub-model module, a first obstacle classification sub-model module and a first model training module.

[0199] The first input module is used to input the first trajectory data corresponding to the target obstacle into the first trajectory prediction model, the first trajectory prediction model includes a first trajectory prediction sub-model module and a first obstacle classification sub-model module, the first trajectory prediction sub-model module includes a first trajectory prediction sub-model, and the first obstacle classification sub-model module includes a first obstacle classification sub-model. That is, it is used to input the first trajectory data into the first trajectory prediction sub-model and the first obstacle classification sub-model included in the first trajectory prediction model.

[0200] The first trajectory prediction sub-model module is used to obtain first predicted trajectory data corresponding to the target obstacle according to the first trajectory data.

[0201] The first obstacle classification sub-model module is used to determine that the first obstacle is a key obstacle according to the first trajectory data and the first predicted trajectory data.

[0202] The first model training module is used to input the first trajectory data and the first predicted trajectory data into the first trajectory prediction sub-model, train the first trajectory prediction sub-model, and obtain the second trajectory prediction sub-model.

[0203] Among them, the first input module, the first trajectory prediction sub-model module, the first obstacle classification sub-model module and the first model training module can all be implemented by software, or can be implemented by hardware. Exemplarily, the implementation of the first input module is introduced below by taking the first input module as an example. Similarly, the implementation of the first trajectory prediction sub-model module, the first obstacle classification sub-model module and the first model training module can refer to the implementation of the first input module.

[0204] As an example of a software functional unit, the first input module may include code running on a computing instance. The computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Furthermore, the computing instance may be one or more. For example, the first input module may include code running on multiple hosts / virtual machines / containers. The multiple hosts / virtual machines / containers used to run the code may be distributed in the same region or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including one data center or multiple data centers with similar geographical locations. Typically, a region may include multiple AZs.

[0205] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.

[0206] As an example of a hardware functional unit, the first input module may include at least one computing device, such as a server, etc. Alternatively, the first input module may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

[0207] The multiple computing devices included in the first input module can be distributed in the same region or in different regions. The multiple computing devices included in the first input module can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the first input module can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.

[0208] In other embodiments, the first input module can be used to execute any step in the trajectory prediction model training method, and the first trajectory prediction sub-model module, the first obstacle classification sub-model module and the first model training module can also be used to execute any step in the trajectory prediction model training method. The steps that the first input module, the first trajectory prediction sub-model module, the first obstacle classification sub-model module and the first model training module are responsible for implementing can be specified as needed. The first input module, the first trajectory prediction sub-model module, the first obstacle classification sub-model module and the first model training module respectively implement different steps in the trajectory prediction model training method to realize all the functions of the trajectory prediction model training device.

[0209] In this implementation, the process of each module realizing the corresponding function can be referred to the aforementioned content related to the trajectory prediction model training method, which will not be repeated here.

[0210] In this implementation, the trajectory prediction model training device can also be applied to computing devices such as computers and servers, or to a computing device cluster including at least one computing device, to implement the trajectory prediction model training function.

[0211] The implementation of the present application also provides a trajectory prediction device, such as Fig.12As shown, it includes: a second input module and a second trajectory prediction sub-model module, wherein:

[0212] The second input module is used to input the fifth trajectory data into the second trajectory prediction sub-model module, the second trajectory prediction sub-model module includes a second trajectory prediction sub-model, and the second trajectory prediction sub-model is obtained by the aforementioned trajectory prediction model training method.

[0213] The second trajectory prediction sub-model module is used to obtain fifth predicted trajectory data corresponding to the target obstacle according to the fifth trajectory data as target predicted trajectory data of the target obstacle.

[0214] The second input module and the second trajectory prediction sub-model module may be implemented by software or hardware.

[0215] In this implementation, the second input module can be used to execute any step in the trajectory prediction method. The second input module and the second trajectory prediction sub-model module can also be used to execute any step in the trajectory prediction method. The steps that the second input module and the second trajectory prediction sub-model module are responsible for implementing can be specified as needed. The second input module and the second trajectory prediction sub-model module respectively implement different steps in the trajectory prediction method to realize the full functions of the trajectory prediction device.

[0216] In this implementation, the process of each module realizing the corresponding function can refer to the aforementioned content related to the trajectory prediction method, which will not be repeated here.

[0217] In this implementation, the trajectory prediction device can also be applied to computing devices such as computers and servers, or to a computing device cluster including at least one computing device, to implement the trajectory prediction function.

[0218] The implementation of the present application also provides a trajectory prediction device, such as Fig.13 As shown, it includes: a first input module, a first trajectory prediction sub-model module, a first obstacle classification sub-model module, a first model training module, a second input module and a second trajectory prediction sub-model module, wherein:

[0219] The functions of the first input module, the first trajectory prediction sub-model module, the first obstacle classification sub-model module, and the first model training module are as described above and will not be repeated here.

[0220] The second input module is used to input the first trajectory data into the second trajectory prediction sub-model module, and the second trajectory prediction sub-model module includes a second trajectory prediction sub-model.

[0221] The second trajectory prediction sub-model module is used to obtain sixth predicted trajectory data as target predicted trajectory data of the target obstacle according to the first trajectory data.

[0222] Among them, the first input module, the first trajectory prediction sub-model module, the first obstacle classification sub-model module, the first model training module, the second input module and the second trajectory prediction sub-model module can all be implemented by software, or can be implemented by hardware.

[0223] In this implementation, the first input module, the first trajectory prediction sub-model module, the first obstacle classification sub-model module, the first model training module, the second input module and the second trajectory prediction sub-model module can all be used to execute any step in the trajectory prediction method. The steps that the first input module, the first trajectory prediction sub-model module, the first obstacle classification sub-model module, the first model training module, the second input module and the second trajectory prediction sub-model module are responsible for implementing can be specified as needed. The first input module, the first trajectory prediction sub-model module, the first obstacle classification sub-model module, the first model training module, the second input module, the second input module and the second trajectory prediction sub-model module respectively implement different steps in the trajectory prediction method to achieve all the functions of the trajectory prediction device.

[0224] In this implementation, the process of each module realizing the corresponding function can refer to the aforementioned content related to the trajectory prediction method, which will not be repeated here.

[0225] In this implementation, the trajectory prediction device can also be applied to computing devices such as computers and servers, or to a computing device cluster including at least one computing device, to implement the trajectory prediction function.

[0226] The implementation method of the present application also provides a trajectory planning device, such as Fig.14 As shown, it includes: a planning module, wherein:

[0227] The planning module is used to determine the motion trajectory of the target object according to the target predicted trajectory of the target obstacle and the environmental information of the target object. The motion trajectory is used for motion control of the target object. The target predicted trajectory of the target obstacle is obtained by the aforementioned trajectory prediction method.

[0228] The planning module may be implemented through software or hardware.

[0229] In this implementation, the planning module can be used to execute any step in the trajectory prediction method. The steps that the planning module is responsible for implementing can be specified as needed. The planning module implements different steps in the trajectory planning method to realize all the functions of the trajectory planning device.

[0230] In this implementation, the process of each module realizing the corresponding function can be referred to the aforementioned content related to the trajectory planning method, which will not be repeated here.

[0231] In this implementation, the trajectory planning device can also be applied to computing devices such as computers and servers, or to a computing device cluster including at least one computing device, to implement the trajectory planning function.

[0232] The implementation of the trajectory prediction model training, trajectory prediction, trajectory planning method and device provided by the implementation method of this application requires the support of the software and hardware system of the autonomous driving system vehicle, where the hardware requires a central processing unit (CPU), a graphics processing unit (GPU) and a storage system, and the software requires processing programs for each module, etc. In the case of limited on-board hardware, the implementation of the trajectory prediction model training, trajectory prediction, trajectory planning method and device provided by the implementation method of this application requires additional information transmission devices and cloud servers, which transmit information to the cloud server through the transmission device, use the cloud server's CPU, GPU and storage system for processing, and transmit the information back to the vehicle.

[0233] The present application also provides a computing device 10. Figures 15A-15D As shown, the computing device 10 includes: a bus 102, a processor 104, a memory 106, and a communication interface 108. The processor 104, the memory 106, and the communication interface 108 communicate with each other through the bus 102. The computing device 10 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in the computing device 10.

[0234] The bus 102 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figures 15A-15D The bus 102 is represented by only one line, but it does not mean that there is only one bus or one type of bus. The bus 102 may include a path for transmitting information between various components of the computing device 10 (eg, the memory 106, the processor 104, and the communication interface 108).

[0235] The processor 104 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0236] The memory 106 may include a volatile memory, such as a random access memory (RAM). The processor 104 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).

[0237] like Fig.15A As shown, the memory 106 stores executable program codes, and the processor 104 executes the executable program codes to respectively implement the functions of the aforementioned first input module, the first trajectory prediction sub-model module, the first obstacle classification sub-model module, and the first model training module, that is, to implement the functions of the aforementioned trajectory prediction model training device, thereby implementing the trajectory prediction model training method. That is, the memory 106 stores instructions for executing the trajectory prediction model training method.

[0238] Or, if Fig. 15B As shown, the memory 106 stores executable codes, and the processor 104 executes the executable codes to respectively implement the functions of the aforementioned second input module and the second trajectory prediction sub-model module, that is, to implement the functions of the aforementioned trajectory prediction device, thereby implementing the trajectory prediction method. That is, the memory 106 stores instructions for executing the trajectory prediction method.

[0239] Or, if Fig. 15C As shown, the memory 106 stores executable codes, and the processor 104 executes the executable codes to respectively implement the functions of the aforementioned first input module, the first trajectory prediction sub-model module, the first obstacle classification sub-model module, the first model training module, the second input module, and the second trajectory prediction sub-model module, that is, to implement the functions of the aforementioned trajectory prediction device, thereby implementing the trajectory prediction method. That is, the memory 106 stores instructions for executing the trajectory prediction method.

[0240] Or, if Fig.15DAs shown, the memory 106 stores executable codes, and the processor 104 executes the executable codes to respectively implement the functions of the aforementioned planning modules, that is, to implement the functions of the aforementioned trajectory planning device, thereby implementing the trajectory planning method. That is, the memory 106 stores instructions for executing the trajectory planning method.

[0241] The communication interface 108 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 10 and other devices or a communication network.

[0242] The embodiment of the present application also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.

[0243] like Fig.16A As shown, the computing device cluster includes at least one computing device 10. The memory 106 in one or more computing devices 10 in the computing device cluster may store the same instructions for executing the trajectory prediction model training method.

[0244] In some possible implementations, the memory 106 of one or more computing devices 10 in the computing device cluster may also respectively store some instructions for executing the trajectory prediction model training method. In other words, the combination of one or more computing devices 10 can jointly execute the instructions for executing the trajectory prediction model training method.

[0245] The memory 106 in different computing devices 10 in the computing device cluster may store different instructions, which are respectively used to execute part of the functions of the trajectory prediction model training device. That is, the instructions stored in the memory 106 in different computing devices 10 may implement the functions of one or more modules of the first input module, the first trajectory prediction sub-model module, the first obstacle classification sub-model module, and the first model training module.

[0246] like Fig. 16B As shown, the computing device cluster includes at least one computing device 10. The memory 106 in one or more computing devices 10 in the computing device cluster may store the same instructions for executing the trajectory prediction method.

[0247] In some possible implementations, the memory 106 of one or more computing devices 10 in the computing device cluster may also store some instructions for the trajectory prediction method. In other words, the combination of one or more computing devices 10 may jointly execute instructions for executing the trajectory prediction method.

[0248] The memory 106 in different computing devices 10 in the computing device cluster may store different instructions, which are respectively used to execute part of the functions of the trajectory prediction device. That is, the instructions stored in the memory 106 in different computing devices 10 may implement the functions of one or more modules in the second input module and the second trajectory prediction sub-model module.

[0249] like Fig. 16C As shown, the computing device cluster includes at least one computing device 10. The memory 106 in one or more computing devices 10 in the computing device cluster may store the same instructions for executing the trajectory prediction method.

[0250] In some possible implementations, the memory 106 of one or more computing devices 10 in the computing device cluster may also store some instructions for the trajectory prediction method. In other words, the combination of one or more computing devices 10 may jointly execute instructions for executing the trajectory prediction method.

[0251] The memory 106 in different computing devices 10 in the computing device cluster may store different instructions, which are respectively used to execute part of the functions of the trajectory prediction device. That is, the instructions stored in the memory 106 in different computing devices 10 may implement the functions of one or more modules of the first input module, the first trajectory prediction sub-model module, the first obstacle classification sub-model module, the first model training module, the second input module, and the second trajectory prediction sub-model module.

[0252] like Fig.16D As shown, the computing device cluster includes at least one computing device 10. The memory 106 in one or more computing devices 10 in the computing device cluster may store the same instructions for executing the trajectory planning method.

[0253] In some possible implementations, the memory 106 of one or more computing devices 10 in the computing device cluster may also store some instructions for the trajectory planning method. In other words, the combination of one or more computing devices 10 may jointly execute instructions for executing the trajectory planning method.

[0254] The memory 106 in different computing devices 10 in the computing device cluster may store different instructions, which are respectively used to execute part of the functions of the trajectory planning device. That is, the instructions stored in the memory 106 in different computing devices 10 may implement the functions of one or more modules in the planning module.

[0255] In some possible implementations, one or more computing devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network.

[0256] The implementation of the present application also provides a computer program product containing instructions. The computer program product may be a software or program product containing instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes a trajectory prediction model training method, a trajectory prediction method, or a trajectory planning method.

[0257] The implementation of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center containing one or more available media. Available media can be magnetic media (e.g., floppy disks, hard disks, tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state hard drives), etc. The computer-readable storage medium includes instructions that instruct the computing device to execute a trajectory prediction model training method, or instruct the computing device to execute a trajectory prediction method, or instruct the computing device to execute a trajectory planning method.

[0258] In the implementation of the present application, the above-mentioned trajectory prediction model training method, trajectory prediction method, and trajectory planning method can be applied to electronic devices, which can be determined according to the scene, for example, it can be a vehicle or intelligent driving server in the aforementioned intelligent driving scene (i.e., autonomous driving scene), an autonomous driving perception system, etc., or it can be a terminal device or electronic device such as a mobile phone, a tablet computer, a wearable device in a terminal visual scene. The trajectory prediction model training method, trajectory prediction method, and trajectory planning method can also be applied to other target tracking, intention prediction, and other application scenarios that can obtain the true value required for model training online in real time, and other scenarios that require trajectory prediction, and key obstacles can also be determined based on trajectory prediction tasks and target objects. The trajectory prediction model training method, trajectory prediction method, and trajectory planning method are deployed on the computing nodes of related equipment. Through software modification, more trajectory prediction tasks can be processed with only a small increase in parameter volume and delay.

[0259] In addition, the above-mentioned trajectory prediction model training method, trajectory prediction method, and trajectory planning method can be applied to a computing device, or to a computing device cluster including at least one computing device. The computing device or computing device cluster is used to deploy algorithms related to the trajectory prediction model training method involved in the implementation of this application, and / or algorithms related to the trajectory prediction method, and / or algorithms related to the trajectory planning method to achieve corresponding functions. The computing device can be an electronic device such as the above-mentioned vehicle, intelligent driving server, mobile phone, tablet computer, wearable device, or other types of devices, which can be selected and set as needed.

[0260] In other implementations of the present application, according to different application scenarios, the aforementioned trajectory data set, trajectory data, trajectory prediction sub-model, obstacle classification sub-model, target obstacle, non-target obstacle, target object, each preset time, time length, threshold and other information can be specifically set as needed. In addition, the aforementioned first time length is less than the third time length, and the second time length is less than or equal to the fourth time length, which can be specifically set as needed.

[0261] In the implementation of the present application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0262] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.

[0263] Although the present application has been illustrated and described by referring to certain preferred embodiments of the present application, it should be understood by those skilled in the art that the above contents are further detailed descriptions of the present application in combination with specific embodiments, and it cannot be determined that the specific implementation of the present application is limited to these descriptions. Those skilled in the art may make various changes in form and details, including making several simple deductions or substitutions, without departing from the spirit and scope of the present application.

Claims

1. A trajectory prediction model training method, characterized in that: The method comprises: Inputting first trajectory data corresponding to the target obstacle into a first trajectory prediction model, wherein the first trajectory prediction model includes a first trajectory prediction sub-model and a first obstacle classification sub-model; The first trajectory prediction sub-model obtains first predicted trajectory data corresponding to the target obstacle according to the first trajectory data; The first obstacle classification sub-model determines that the target obstacle is a key obstacle according to the first trajectory data and the first predicted trajectory data; The first trajectory data and the first predicted trajectory data are input into the first trajectory prediction sub-model, and the first trajectory prediction sub-model is trained to obtain a second trajectory prediction sub-model.

2. The trajectory prediction model training method according to claim 1, characterized in that: The first trajectory prediction sub-model is obtained by: The second trajectory data is input into the initial trajectory prediction sub-model, and the initial trajectory prediction sub-model is trained to obtain the first trajectory prediction sub-model.

3. The trajectory prediction model training method according to claim 2, characterized in that: The second trajectory data is obtained by: According to the first time interval, historical trajectory data of an obstacle of a first time length and corresponding predicted trajectory data of a second time length are selected from initial trajectory data included in the initial trajectory data set as the second trajectory data, the initial trajectory data includes historical trajectory data of an obstacle of a third time length and corresponding predicted trajectory data of a fourth time length, the first time length is less than the third time length, and the second time length is less than or equal to the fourth time length.

4. The trajectory prediction model training method according to claim 2 or 3, characterized in that: The initial trajectory prediction sub-model includes an encoding unit and a decoding unit. The second trajectory data is input into the initial trajectory prediction sub-model, and the initial trajectory prediction sub-model is trained to obtain the first trajectory prediction sub-model, including: inputting the second trajectory data into the encoding unit; The encoding unit obtains corresponding first trajectory feature information according to the second trajectory data, and inputs the first trajectory feature information to the decoding unit; The decoding unit obtains second predicted trajectory data according to the first trajectory feature information; The initial trajectory prediction sub-model is trained according to the second predicted trajectory data to obtain the first trajectory prediction sub-model.

5. The trajectory prediction model training method according to any one of claims 1 to 4, characterized in that: The first obstacle classification sub-model is obtained by: The third trajectory data and the third predicted trajectory data are input into an initial obstacle classification sub-model, and supervised training is performed on the initial obstacle classification sub-model based on the key obstacle label to obtain the first obstacle classification sub-model, the third predicted trajectory data is predicted trajectory data corresponding to the third trajectory data, and the third trajectory data and the third predicted trajectory data have the key obstacle label.

6. The trajectory prediction model training method according to claim 5, characterized in that: The third trajectory data and the third predicted trajectory data are obtained in the following manner: Inputting fourth trajectory data into the first trajectory prediction sub-model, the fourth trajectory data including historical trajectory data of the obstacle and corresponding predicted trajectory data; The first trajectory prediction sub-model obtains fourth predicted trajectory data according to the fourth trajectory data; Comparing the fourth predicted trajectory data with the corresponding predicted trajectory data in the fourth trajectory data, and taking an obstacle whose predicted trajectory error is greater than a preset error threshold and is a preset optimizable obstacle as the key obstacle; The third trajectory data is obtained by labeling the fourth trajectory data with a key obstacle label according to the key obstacle, and the third predicted trajectory data is obtained by labeling the fourth predicted trajectory data with a key obstacle label according to the key obstacle.

7. The trajectory prediction model training method according to claim 5 or 6, characterized in that: The initial obstacle classification sub-model includes an encoding unit and a classification unit. The third trajectory data and the third predicted trajectory data are input into the initial obstacle classification sub-model. Based on the key obstacle label, the initial obstacle classification sub-model is supervisedly trained to obtain the first obstacle classification sub-model, including: inputting the third trajectory data and the third predicted trajectory data into the encoding unit; The encoding unit obtains corresponding second trajectory feature information according to the third trajectory data and the third predicted trajectory data, and inputs the second trajectory feature information to the classification unit; The classification unit obtains a trajectory classification result according to the second trajectory feature information; The initial obstacle classification sub-model is trained according to the trajectory classification result and the key obstacle label to obtain the first obstacle classification sub-model.

8. The trajectory prediction model training method according to any one of claims 1 to 5, characterized in that: The key obstacles are obstacles determined according to the trajectory prediction task.

9. The trajectory prediction model training method according to claim 8, characterized in that: The key obstacles include at least one of the following: The scene corresponding to the trajectory prediction task corresponding to the first trajectory data and the scene corresponding to the trajectory data used to train the first trajectory prediction sub-model do not belong to the same or similar field of obstacles; Obstacles with motion uncertainty greater than a preset threshold; Obstacles whose impact on trajectory planning decisions is greater than a preset threshold; Obstacles with preset movement styles.

10. The trajectory prediction model training method according to any one of claims 1 to 9, characterized in that: Inputting the first trajectory data and the first predicted trajectory data into the first trajectory prediction sub-model, training the first trajectory prediction sub-model, and obtaining a second trajectory prediction sub-model, including: inputting the key obstacle trajectory data and the key obstacle predicted trajectory data corresponding to the key obstacle obtained within a preset time period into the first trajectory prediction sub-model, training the first trajectory prediction sub-model to obtain a second trajectory prediction sub-model, wherein the key obstacle trajectory data includes the first obstacle trajectory data, and the key obstacle predicted trajectory data includes the first predicted trajectory data; or Inputting a preset number of key obstacle trajectory data and key obstacle predicted trajectory data corresponding to the key obstacles into the first trajectory prediction sub-model, training the first trajectory prediction sub-model to obtain a second trajectory prediction sub-model, the key obstacle trajectory data including the first obstacle trajectory data, and the key obstacle predicted trajectory data including the first predicted trajectory data.

11. The trajectory prediction model training method according to any one of claims 1 to 10, characterized in that: The first trajectory data includes trajectory data of the target obstacle and non-target obstacle at a first moment and trajectory data within a first preset time before the first moment. The non-target obstacle is an obstacle other than the target obstacle within a preset range around the target object.

12. The trajectory prediction model training method according to claim 11, characterized in that: The trajectory data includes state information of the obstacle and corresponding environment information.

13. The trajectory prediction model training method according to claim 12, characterized in that: The status information includes at least one of the following information: The location information of obstacles; Obstacle direction information; The movement speed information of obstacles; The motion acceleration information of the obstacle; The size information of the obstacle.

14. The trajectory prediction model training method according to claim 12 or 13, characterized in that: The environmental information includes road topology information.

15. The trajectory prediction model training method according to any one of claims 11 to 14, characterized in that: The first predicted trajectory data is predicted trajectory data of the target obstacle within a second preset time after the first moment.

16. The trajectory prediction model training method according to any one of claims 1 to 15, characterized in that: The first predicted trajectory data includes a first predicted motion trajectory.

17. The trajectory prediction model training method according to any one of claims 1 to 16, characterized in that: The first trajectory data is target trajectory data to be predicted corresponding to the trajectory prediction task.

18. A trajectory prediction method, characterized in that: The method comprises: Inputting the fifth trajectory data into a second trajectory prediction sub-model, wherein the second trajectory prediction sub-model is obtained by the trajectory prediction model training method according to any one of claims 1 to 17; The second trajectory prediction sub-model obtains fifth predicted trajectory data corresponding to the target obstacle according to the fifth trajectory data as target predicted trajectory data of the target obstacle.

19. A trajectory prediction method, characterized in that: The method comprises: Inputting first trajectory data corresponding to the target obstacle into a first trajectory prediction model, wherein the first trajectory prediction model includes a first trajectory prediction sub-model and a first obstacle classification sub-model; The first trajectory prediction sub-model obtains first predicted trajectory data corresponding to the target obstacle according to the first trajectory data; The first obstacle classification sub-model determines that the target obstacle is a key obstacle according to the first trajectory data and the first predicted trajectory data; Inputting the first trajectory data and the first predicted trajectory data into the first trajectory prediction sub-model, training the first trajectory prediction sub-model, and obtaining a second trajectory prediction sub-model; inputting the first trajectory data into the second trajectory prediction sub-model; The second trajectory prediction sub-model obtains sixth predicted trajectory data as target predicted trajectory data of the target obstacle according to the first trajectory data.

20. A trajectory planning method, characterized in that: The method comprises: According to the target predicted trajectory data of the target obstacle and the environmental information of the target object, the motion trajectory of the target object is determined, and the motion trajectory is used for motion control of the target object. The target predicted trajectory data of the target obstacle is obtained by the trajectory prediction method described in claim 18 or 19.

21. A trajectory prediction model training device, characterized in that: include: a first input module, configured to input first trajectory data corresponding to the target obstacle into a first trajectory prediction model, wherein the first trajectory prediction model includes a first trajectory prediction sub-model module and a first obstacle classification sub-model module, wherein the first trajectory prediction sub-model module includes a first trajectory prediction sub-model, and the first obstacle classification sub-model module includes a first obstacle classification sub-model; A first trajectory prediction sub-model module, used to obtain first predicted trajectory data corresponding to the target obstacle according to the first trajectory data; a first obstacle classification sub-model module, configured to determine that the target obstacle is a key obstacle according to the first trajectory data and the first predicted trajectory data; The first model training module is used to input the first trajectory data and the first predicted trajectory data into the first trajectory prediction sub-model, train the first trajectory prediction sub-model, and obtain a second trajectory prediction sub-model.

22. A trajectory prediction device, characterized in that: include: A second input module, used for inputting the fifth trajectory data into a second trajectory prediction sub-model module, wherein the second trajectory prediction sub-model module includes a second trajectory prediction sub-model, and the second trajectory prediction sub-model is obtained by the trajectory prediction model training method according to any one of claims 1 to 17; The second trajectory prediction sub-model module is used to obtain fifth predicted trajectory data corresponding to the target obstacle according to the fifth trajectory data as target predicted trajectory data of the target obstacle.

23. A trajectory prediction device, characterized in that: include: a first input module, configured to input first trajectory data corresponding to the target obstacle into a first trajectory prediction model, wherein the first trajectory prediction model includes a first trajectory prediction sub-model module and a first obstacle classification sub-model module, wherein the first trajectory prediction sub-model module includes a first trajectory prediction sub-model, and the first obstacle classification sub-model module includes a first obstacle classification sub-model; A first trajectory prediction sub-model module, used to obtain first predicted trajectory data corresponding to the target obstacle according to the first trajectory data; a first obstacle classification sub-model module, configured to determine that the target obstacle is a key obstacle according to the first trajectory data and the first predicted trajectory data; a first model training module, configured to input the first trajectory data and the first predicted trajectory data into the first trajectory prediction sub-model, train the first trajectory prediction sub-model, and obtain a second trajectory prediction sub-model; a second input module, configured to input the first trajectory data into the second trajectory prediction sub-model module, wherein the second trajectory prediction sub-model module includes the second trajectory prediction sub-model; The second trajectory prediction sub-model module is used to obtain sixth predicted trajectory data as target predicted trajectory data of the target obstacle according to the first trajectory data.

24. A trajectory planning device, characterized in that: include: A planning module is used to determine the motion trajectory of the target object based on the target prediction trajectory data of the target obstacle and the environmental information of the target object, wherein the motion trajectory is used for motion control of the target object, and the target prediction trajectory of the target obstacle is obtained by the trajectory prediction method described in claim 18 or 19.

25. A computing device cluster, characterized in that: It includes at least one computing device, each computing device includes a processor and a memory; the processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the trajectory prediction model training method according to any one of claims 1 to 17, or so that the computing device cluster executes the trajectory prediction method according to claim 18 or 19, or so that the computing device cluster executes the trajectory planning method according to claim 20.

26. A computer program product comprising instructions, characterized in that When the instruction is executed by a computing device cluster, the computing device cluster executes the trajectory prediction model training method according to any one of claims 1-17, or the computing device cluster executes the trajectory prediction method according to claim 18 or 19, or the computing device cluster executes the trajectory planning method according to claim 20.

27. A computer-readable storage medium, characterized in that: Comprising computer program instructions, when the computer program instructions are executed by a computing device cluster, the computing device cluster executes the trajectory prediction model training method according to any one of claims 1 to 17, or the computing device cluster executes the trajectory prediction method according to claim 18 or 19, or so that the computing device cluster executes the trajectory planning method according to claim 20.