Multi-object trajectory prediction method and device based on LSTM interaction modeling algorithm
Through the multi-object trajectory prediction method based on the LSTM interactive modeling algorithm, the difficult problem of object trajectory prediction in the autonomous driving system is solved, the prediction accuracy and efficiency are improved, and the integrity of the collection of scene information is enhanced.
Patent Information
- Application Number
- CN202310193340.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-23
- Publication Date
- 2024-08-23
AI Technical Summary
In existing autonomous driving systems, it is difficult and uncertain to predict the trajectories of all objects on the road, and the LSTM model fails to fully consider the relevant information of objects in the scene, resulting in low prediction quality.
The multi-object trajectory prediction method based on the LSTM interactive modeling algorithm is adopted. By obtaining the trajectory prediction data set, the multi-object trajectory prediction model based on the LSTM interactive modeling is trained, the historical trajectory and environmental information of the object are extracted, and the interactive relationship between objects is encoded. , generate global fusion coding, predict future trajectories and classification information, and adjust model weights to improve prediction accuracy.
It improves the prediction accuracy and efficiency of object trajectories in the scene, reduces the impact of incomplete information collection on prediction, and enhances the completeness and accuracy of trajectory prediction.
Smart Images

Figure CN118537670A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of autonomous driving technology, and in particular to a multi-object trajectory prediction method and device based on an LSTM interactive modeling algorithm. Background Art
[0002] In autonomous driving systems, it is very important to predict the trajectories of all objects on the road, as this task can provide important information for downstream decision-making processes, allowing the driver system to plan earlier. However, it is difficult to predict all objects on the road (pedestrians, vehicles, cyclists, etc.) because their future trajectories are uncertain, and the complex social interactions between objects may affect their future decisions. Neural networks have powerful learning capabilities and can learn human driver habits. At the same time, lane change intention prediction is a time series problem. Existing neural network methods for time series include RNN and LSTM, but the RNN method has gradient diffusion and gradient explosion problems, and is not suitable for application in longer time series. The currently constructed LSTM model does not fully consider the relevant information of the objects in the scene, and cannot guarantee high-quality completion of the task of predicting future trajectories. Summary of the invention
[0003] In view of the above technical problems existing in the prior art, the present invention provides a multi-object trajectory prediction method and device based on the LSTM interactive modeling algorithm, which establishes a multi-object trajectory prediction model based on the LSTM interactive modeling algorithm, thereby improving the accuracy and efficiency of trajectory prediction for each object in the scene.
[0004] The embodiment of the present invention provides a multi-object trajectory prediction method based on the LSTM interactive modeling algorithm, which is applied to the field of autonomous driving, including:
[0005] Acquire a trajectory prediction data set, the trajectory prediction data set comprising at least a plurality of scene information, each of the scene information comprising at least a plurality of objects and first classification information and trajectory information corresponding thereto, the trajectory information comprising a historical trajectory and a first future trajectory of a corresponding object in a continuous time period;
[0006] Dividing the trajectory prediction dataset into a training set and a validation set;
[0007] Inputting the training set into the multi-object trajectory prediction model in an iterative manner for training to obtain a trained multi-object trajectory prediction model; wherein the multi-object trajectory prediction model is a model established based on the LSTM interactive modeling algorithm;
[0008] The historical trajectories in the verification set are processed in sequence based on the trained multi-object trajectory prediction model to obtain predicted future trajectories corresponding to the historical trajectories in the verification set and predicted classification information corresponding to the objects in the verification set.
[0009] In some embodiments, the iteratively inputting the training set into the multi-object trajectory prediction model for training to obtain a trained multi-object trajectory prediction model specifically includes:
[0010] The historical trajectory of each object in the training set and the environmental information of the environment in which the object is located under the historical trajectory are extracted through the LSTM encoding module of the multi-object trajectory prediction model, and the historical trajectory and the environmental information are encoded to obtain a first encoding result; the historical trajectory at least includes the historical spatial position information of the object in the scene.
[0011] In some embodiments, the iteratively inputting the training set into the multi-object trajectory prediction model for training to obtain a trained multi-object trajectory prediction model further specifically includes:
[0012] Encoding the interaction relationship between the objects in the scene via the scene graph encoding module of the multi-object trajectory prediction model to obtain a second encoding result corresponding to the interaction relationship between the objects;
[0013] The predicted classification information of each object in the scene is determined via the scene graph encoding module of the multi-object trajectory prediction model.
[0014] In some embodiments, encoding the interaction relationship between the objects in the scene via the scene graph encoding module of the multi-object trajectory prediction model to obtain a second encoding result corresponding to the interaction relationship between the objects specifically includes:
[0015] The scene graph encoding module encodes the interaction relationship between objects belonging to the same category and / or encodes the interaction relationship between two objects whose spatial distance is less than a preset distance to obtain a second encoding result corresponding to the interaction relationship between each object.
[0016] In some embodiments, the iteratively inputting the training set into the multi-object trajectory prediction model for training to obtain a trained multi-object trajectory prediction model further includes:
[0017] The global interaction coding module of the multi-object trajectory prediction model generates a fusion code corresponding to the global scene based on the first coding result and the second coding result; the fusion code includes the interaction relationship between all objects in the scene and the historical trajectories corresponding to all objects.
[0018] In some embodiments, the iteratively inputting the training set into the multi-object trajectory prediction model for training to obtain a trained multi-object trajectory prediction model further includes:
[0019] The future trajectory decoding module of the multi-object trajectory prediction model generates predicted future trajectories corresponding to each object in the scene based on the fusion code.
[0020] In some embodiments, the iteratively inputting the training set into the multi-object trajectory prediction model for training to obtain a trained multi-object trajectory prediction model further includes:
[0021] comparing the first future trajectory and the predicted future trajectory to obtain a first comparison result;
[0022] Comparing the predicted classification information with the first classification information, and obtaining a second comparison result;
[0023] The weight coefficient of the multi-object trajectory prediction model is adjusted based on the first comparison result and the second comparison result to obtain a trained multi-object trajectory prediction model.
[0024] In some embodiments, the multi-object trajectory prediction method further includes:
[0025] The loss function of the multi-object trajectory prediction model is:
[0026] minα1L mse +α2L cls ;
[0027] Among them, L mse is the loss function used to predict future trajectories, L cls is the loss function used to classify objects in the scene, and α1 is the control loss function L mse The weight coefficient of the weight; α2 is the control loss function L cls The weight coefficient of the weight; where L is determined using the following formula mse and L cls :
[0028]
[0029] Where H(·) represents the cross entropy loss, p j represents the predicted classification of object j, c j Represents the category label of object j;
[0030]
[0031] Among them, y i represents the true value of the future trajectory, represents the predicted future trajectory value, and |·|2 represents the 2-norm of the difference between the predicted future trajectory value and the true value of the future trajectory.
[0032] The embodiment of the present invention further provides a multi-object trajectory prediction device based on the LSTM interactive modeling algorithm, which is applied to the field of autonomous driving, including:
[0033] An acquisition module is configured to acquire a trajectory prediction data set, wherein the trajectory prediction data set includes at least a plurality of scene information, each of the scene information includes at least a plurality of objects and first classification information and trajectory information corresponding thereto, and the trajectory information includes a historical trajectory and a first future trajectory of a corresponding object in a continuous time period;
[0034] A partitioning module configured to partition the trajectory prediction dataset into a training set and a validation set;
[0035] A training module, configured to iteratively input the training set into a multi-object trajectory prediction model for training to obtain a trained multi-object trajectory prediction model; wherein the multi-object trajectory prediction model is a model established based on an LSTM interactive modeling algorithm;
[0036] A verification module is configured to process the historical trajectories in the verification set in sequence based on the trained multi-object trajectory prediction model to obtain predicted future trajectories corresponding to the historical trajectories in the verification set and predicted classification information corresponding to the objects in the verification set.
[0037] An embodiment of the present invention further provides a storage medium storing a computer program, which, when executed by a processor, implements the steps of the above-mentioned multi-object trajectory prediction method based on the LSTM interactive modeling algorithm.
[0038] Compared with the prior art, the beneficial effect of the embodiments of the present invention lies in that: the present invention obtains a trajectory prediction data set, which provides sufficient scene information for predicting the trajectory, and iteratively inputs the training set into a multi-object trajectory prediction model for training. The multi-object trajectory prediction model is a model established based on the LSTM interactive modeling algorithm, which improves the completeness of information collection on the historical trajectories and interactive relationships of objects in the scene, reduces the impact of incomplete information collection on the prediction of future trajectories of multiple objects, and improves the accuracy and efficiency of trajectory prediction for each object in the scene. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In the drawings, which are not necessarily drawn to scale, the same reference numerals may describe similar parts in different views. The same reference numerals with letter suffixes or different letter suffixes may represent different instances of similar parts. The accompanying drawings generally illustrate various embodiments by way of example and not limitation, and together with the specification and claims, are used to illustrate the disclosed embodiments. When appropriate, the same reference numerals are used throughout the drawings to refer to the same or similar parts. Such embodiments are illustrative and are not intended to be exhaustive or exclusive embodiments of the present apparatus or method.
[0040] Figure 1 This is a first flow chart of a multi-object trajectory prediction method based on an LSTM interactive modeling algorithm according to an embodiment of the present invention;
[0041] Figure 2 This is a second flow chart of the multi-object trajectory prediction method based on the LSTM interactive modeling algorithm according to an embodiment of the present invention;
[0042] Figure 3 This is a structural block diagram of a multi-object trajectory prediction device based on an LSTM interactive modeling algorithm according to an embodiment of the present invention.
[0043] The components indicated by the reference numerals in the figures are:
[0044] 100 - a multi-object trajectory prediction device based on LSTM interactive modeling algorithm; 101 - an acquisition module; 102 - a division module; 103 - a training module; 104 - a verification module. DETAILED DESCRIPTION
[0045] Various aspects and features of the present invention are described herein with reference to the accompanying drawings.
[0046] It should be understood that various modifications may be made to the embodiments of the invention herein. Therefore, the above description should not be considered as limiting, but only as an example of an embodiment. Other modifications within the scope and spirit of the invention will occur to those skilled in the art.
[0047] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the general description of the invention given above and the detailed description of the embodiments given below, serve to explain the principles of the invention.
[0048] These and other characteristics of the invention will become apparent from the following description of a preferred form of embodiment given as a non-limiting example, with reference to the accompanying drawings.
[0049] It should also be understood that although the invention has been described with reference to certain specific examples, those skilled in the art will be able to readily implement many other equivalent forms of the invention.
[0050] The above and other aspects, features and advantages of the present invention will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings.
[0051] Specific embodiments of the present invention are described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments invented are merely examples of the present invention, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that obscure the present invention. Therefore, the specific structural and functional details invented herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present invention in a variety of ways with substantially any suitable detailed structure.
[0052] This specification may use the phrases "in one embodiment," "in another embodiment," "in a further embodiment," or "in other embodiments," which may all refer to one or more of the same or different embodiments according to the present invention.
[0053] The embodiment of the present invention provides a multi-object trajectory prediction method based on LSTM interactive modeling algorithm, which is applied to the field of autonomous driving, such as Figure 1 As shown, the multi-object trajectory prediction method based on the LSTM interactive modeling algorithm includes steps S101 to S104.
[0054] Step S101: Acquire a trajectory prediction data set, wherein the trajectory prediction data set includes at least a plurality of scene information, each of the scene information includes at least a plurality of objects and first classification information and trajectory information corresponding thereto, and the trajectory information includes a historical trajectory and a first future trajectory of a corresponding object in a continuous time period.
[0055] In some optional embodiments, the trajectory prediction dataset may include one or a combination of the following datasets: an APOL dataset, an H3D dataset, and an H2D dataset. The APOL dataset includes 53 scenes, and the scene information corresponding to each scene includes a historical trajectory with a time length of 2 seconds and a first future trajectory with a time length of 3 seconds, as well as first classification information corresponding to all objects in the scene. The H2D dataset includes 56 scenes, and the scene information corresponding to each scene includes a historical trajectory with a time length of 3 seconds and a first future trajectory with a time length of 4 seconds, as well as first classification information corresponding to all objects in the scene.
[0056] Specifically, the above objects can be understood as pedestrians, vehicles, etc. in the scene. The first classification information can be understood as a classification based on the attributes of the object. For example, pedestrians in the scene are classified into one category, and vehicles in the scene are classified into another category. The first future trajectory included in the above trajectory information can be understood as a real future trajectory. For example, the trajectory information is the trajectory of the corresponding object in 5 seconds. The trajectory of the first 2 seconds is understood as the historical trajectory, and the trajectory of the last 3 seconds is understood as the real first future trajectory.
[0057] Step S102: Divide the trajectory prediction data set into a training set and a validation set.
[0058] In some optional embodiments, the trajectory prediction data set is divided into a training set and a validation set in a first preset ratio, wherein the first preset ratio is preferably 4:1, that is, the ratio of the training set to the validation set is 4:1.
[0059] Step S103: inputting the training set into the multi-object trajectory prediction model in an iterative manner for training to obtain a trained multi-object trajectory prediction model; wherein the multi-object trajectory prediction model is a model established based on the LSTM interactive modeling algorithm.
[0060] Specifically, when the training set is input into the multi-object trajectory prediction model in an iterative manner for training, as the iteration proceeds, when the multi-object trajectory prediction model converges, it indicates that the training of the multi-object trajectory prediction model is completed, and after the training is completed, the weight coefficient of the multi-object trajectory prediction model is obtained. Among them, when the loss function area of the multi-object trajectory prediction model is stable and the decline is small, it is determined that the multi-object trajectory prediction model converges.
[0061] Step S104: based on the trained multi-object trajectory prediction model, the historical trajectories in the verification set are processed in sequence to obtain predicted future trajectories corresponding to the historical trajectories in the verification set and predicted classification information corresponding to the objects in the verification set.
[0062] The historical trajectories in the validation set are used as the input of the multi-object trajectory prediction model. The multi-object trajectory prediction model can output predicted future trajectories corresponding to each object in the validation set. By comparing the predicted future trajectories with the actual first future trajectories, the accuracy of the multi-object trajectory prediction model can be verified. By continuously training the multi-object trajectory prediction model, a multi-object trajectory prediction model with small prediction difference and accurate prediction results can be obtained.
[0063] Furthermore, the multi-object trajectory prediction model can also verify the classification information of the objects in the verification set, that is, compare the predicted classification information with the actual first classification information, so as to determine the accuracy of the classification of the objects predicted by the multi-object trajectory prediction model.
[0064] The present invention obtains a trajectory prediction data set, which provides sufficient scene information for predicting trajectories, and iteratively inputs the training set into a multi-object trajectory prediction model for training. The multi-object trajectory prediction model is a model established based on the LSTM interactive modeling algorithm, which improves the completeness of information collection on the historical trajectories and interactive relationships of objects in the scene, reduces the impact of incomplete information collection on the prediction of future trajectories of multiple objects, and improves the accuracy and efficiency of trajectory prediction for each object in the scene.
[0065] In some embodiments, Figure 2 As shown, step S103 of iteratively inputting the training set into the multi-object trajectory prediction model for training to obtain the trained multi-object trajectory prediction model specifically includes step S201, step S201: extracting the historical trajectory of each object in the training set and the environmental information of the environment in which the object is located under the historical trajectory through the LSTM encoding module of the multi-object trajectory prediction model, and encoding the historical trajectory and environmental information to obtain a first encoding result; the historical trajectory at least includes the historical spatial position information of the object in the scene.
[0066] Specifically, the above environmental information can be understood as information about zebra crossings, street lights, etc. in the scene. By integrating the environmental information around the object and the historical trajectory of the object into the multi-object trajectory prediction model, the accuracy of the trajectory predicted by the multi-object trajectory prediction model is increased.
[0067] Specifically, the above historical spatial position information can be understood as the spatial position of the object in the scene in history.
[0068] In some embodiments, Figure 2 As shown, the step S103 of iteratively inputting the training set into the multi-object trajectory prediction model for training to obtain the trained multi-object trajectory prediction model also specifically includes step S202, step S202: encoding the interaction relationship between the objects in the scene via the scene graph encoding module of the multi-object trajectory prediction model to obtain a second encoding result corresponding to the interaction relationship between the objects; determining the predicted classification information of each object in the scene via the scene graph encoding module of the multi-object trajectory prediction model.
[0069] Specifically, the interaction relationship between the above-mentioned objects can be understood as the influence of the relationship between objects on the trajectory. For example, if a pedestrian in the scene wants to cross the road, the corresponding vehicle needs to brake, then the pedestrian and the vehicle have an interaction relationship that affects each other's trajectory. For another example, if a pedestrian and a pedestrian in the scene change their trajectory to avoid the person they are about to collide with in order to avoid a collision, then the two pedestrians in the scene have an interaction relationship that affects each other's trajectory.
[0070] In some embodiments, step S202 of encoding the interaction relationship between the objects in the scene via the scene graph encoding module of the multi-object trajectory prediction model to obtain a second encoding result corresponding to the interaction relationship between the objects specifically includes:
[0071] The scene graph encoding module encodes the interaction relationship between objects belonging to the same category and / or encodes the interaction relationship between two objects whose spatial distance is less than a preset distance to obtain a second encoding result corresponding to the interaction relationship between each object.
[0072] Specifically, objects belonging to the same category can be understood as objects belonging to the same classification information, and the interaction relationship between objects belonging to the same classification information is encoded via the scene graph encoding module of the multi-object trajectory prediction model.
[0073] Specifically, the preset distance may range from 0.5 meters to 0.6 meters. When the spatial distance between two objects in the scene is less than the preset distance, it is determined that the distance between the two objects is too close and may affect each other's trajectory, and the interaction relationship between the two objects is encoded.
[0074] In some embodiments, Figure 2 As shown, step S103 of iteratively inputting the training set into the multi-object trajectory prediction model for training to obtain the trained multi-object trajectory prediction model also includes step S203, step S203: generating a fusion code corresponding to the global scene based on the first coding result and the second coding result via the global interaction coding module of the multi-object trajectory prediction model; the fusion code includes the interaction relationship between all objects in the scene and the historical trajectories corresponding to all objects.
[0075] Specifically, the second encoding result can be used to reflect the interaction relationship between two objects in the local scene. The fusion encoding can be used to reflect the interaction relationship between various objects in the global scene, as well as the historical trajectory of various objects.
[0076] In some embodiments, Figure 2 As shown, step S103 of iteratively inputting the training set into the multi-object trajectory prediction model for training to obtain a trained multi-object trajectory prediction model also includes step S204, step S204: generating predicted future trajectories corresponding to each object in the scene based on the fusion code via the future trajectory decoding module of the multi-object trajectory prediction model.
[0077] Specifically, the predicted future trajectory is generated by the multi-object trajectory prediction model according to fusion coding, which can be understood as a predicted non-real future trajectory.
[0078] In some embodiments, Figure 2 As shown, the step S103 of iteratively inputting the training set into the multi-object trajectory prediction model for training to obtain a trained multi-object trajectory prediction model also includes steps S205 to S207.
[0079] Step S205: comparing the first future trajectory and the predicted future trajectory, and obtaining a first comparison result.
[0080] Step S206: Compare the predicted classification information with the first classification information and obtain a second comparison result.
[0081] Step S207: adjusting the weight coefficient of the multi-object trajectory prediction model based on the first comparison result and the second comparison result to obtain a trained multi-object trajectory prediction model.
[0082] In this way, after obtaining the first comparison result and the second comparison result, the accuracy of the trained multi-object trajectory prediction model can be determined, and the accuracy of the multi-object trajectory prediction model can be further improved by adjusting the weight coefficient of the multi-object trajectory prediction model, thereby better training the multi-object trajectory prediction model.
[0083] In some embodiments, the multi-object trajectory prediction method further includes:
[0084] The loss function of the multi-object trajectory prediction model is:
[0085] minα1L mse +α2L cls ;
[0086] Among them, L mse is the loss function used to predict future trajectories, L cls is the loss function used to classify objects in the scene, and α1 is the control loss function L mse The weight coefficient of the weight; α2 is the control loss function L cls The weight coefficient of the weight; where L is determined using the following formula mse and L cls :
[0087]
[0088] Where H(·) represents the cross entropy loss, p j represents the predicted classification of object j, c j Represents the category label of object j;
[0089]
[0090] Among them, yi represents the true value of the future trajectory, represents the predicted future trajectory value, and |·|2 represents the 2-norm of the difference between the predicted future trajectory value and the true value of the future trajectory.
[0091] The embodiment of the present invention also provides a multi-object trajectory prediction device 100 based on the LSTM interactive modeling algorithm, which is applied in the field of autonomous driving. Figure 3 As shown, a multi-object trajectory prediction device 100 based on the LSTM interactive modeling algorithm includes an acquisition module 101, a division module 102, a training module 103 and a verification module 104. The acquisition module 101 is configured to acquire a trajectory prediction data set, wherein the trajectory prediction data set includes at least a plurality of scene information, each of the scene information includes at least a plurality of objects and first classification information and trajectory information corresponding thereto, and the trajectory information includes the historical trajectory and the first future trajectory of the corresponding object in a continuous time period. The division module 102 is configured to divide the trajectory prediction data set into a training set and a verification set. The training module 103 is configured to iteratively input the training set into a multi-object trajectory prediction model for training to obtain a trained multi-object trajectory prediction model; wherein the multi-object trajectory prediction model is a model established based on the LSTM interactive modeling algorithm. The verification module 104 is configured to sequentially process the historical trajectories in the verification set based on the trained multi-object trajectory prediction model to obtain predicted future trajectories corresponding to the historical trajectories in the verification set and predicted classification information corresponding to the objects in the verification set.
[0092] In some embodiments, the training module 103 is further configured to: extract the historical trajectory of each object in the training set and the environmental information of the environment in which the object is located under the historical trajectory through the LSTM encoding module of the multi-object trajectory prediction model, and encode the historical trajectory and environmental information to obtain a first encoding result; the historical trajectory includes at least the historical spatial position information of the object in the scene.
[0093] In some embodiments, the training module 103 is further configured to: encode the interaction relationship between the objects in the scene via the scene graph encoding module of the multi-object trajectory prediction model to obtain a second encoding result corresponding to the interaction relationship between the objects;
[0094] The predicted classification information of each object in the scene is determined via the scene graph encoding module of the multi-object trajectory prediction model.
[0095] In some embodiments, the training module 103 is also configured to: encode the interaction relationship between objects belonging to the same category via a scene graph encoding module, and / or encode the interaction relationship between two objects whose spatial distance is less than a preset distance, so as to obtain a second encoding result corresponding to the interaction relationship between each object.
[0096] In some embodiments, the training module 103 is further configured to: generate a fusion code corresponding to the global scene based on the first coding result and the second coding result via the global interaction coding module of the multi-object trajectory prediction model; the fusion code includes the interaction relationship between all objects in the scene and the historical trajectories corresponding to all objects.
[0097] In some embodiments, the training module 103 is further configured to: generate predicted future trajectories corresponding to each object in the scene based on the fusion coding via a future trajectory decoding module of the multi-object trajectory prediction model.
[0098] In some embodiments, the training module 103 is further configured to: compare the first future trajectory with the predicted future trajectory and obtain a first comparison result;
[0099] Comparing the predicted classification information with the first classification information, and obtaining a second comparison result;
[0100] The weight coefficient of the multi-object trajectory prediction model is adjusted based on the first comparison result and the second comparison result to obtain a trained multi-object trajectory prediction model.
[0101] In some embodiments, the training module 103 is further configured to determine the loss function of the multi-object trajectory prediction model based on the following formula:
[0102] minα1L mse +α2L cls ;
[0103] Among them, L mse is the loss function used to predict future trajectories, L cls is the loss function used to classify objects in the scene, and α1 is the control loss function L mse The weight coefficient of the weight; α2 is the control loss function L cls The weight coefficient of the weight; where L is determined using the following formula mse and L cls :
[0104]
[0105] Where H(·) represents the cross entropy loss, p j represents the predicted classification of object j, cj Represents the category label of object j;
[0106]
[0107] Among them, y i represents the true value of the future trajectory, represents the predicted future trajectory value, and |·|2 represents the 2-norm of the difference between the predicted future trajectory value and the true value of the future trajectory.
[0108] An embodiment of the present invention further provides a storage medium storing a computer program, which, when executed by a processor, implements the steps of the above-mentioned multi-object trajectory prediction method based on the LSTM interactive modeling algorithm.
[0109] Note that, according to each unit in each embodiment of the present application, it can be implemented as a computer executable instruction stored on a memory, and the corresponding steps can be implemented when executed by a processor; it can also be implemented as hardware with corresponding logical computing capabilities; it can also be implemented as a combination of software and hardware (firmware). In some embodiments, the processor can be implemented as any one of FPGA, ASIC, DSP chip, SOC (system on chip), MPU (for example, but not limited to Cortex), etc. The processor can be communicatively coupled to the memory and configured to execute the computer executable instructions stored therein. The memory can include a read-only memory (ROM), a flash memory, a random access memory (RAM), a dynamic random access memory (DRAM) such as a synchronous DRAM (SDRAM) or a Rambus DRAM, a static memory (for example, a flash memory, a static random access memory), etc., on which computer executable instructions are stored in any format. The computer executable instructions can be accessed by the processor, read from the ROM or any other suitable storage location, and loaded into the RAM for execution by the processor to implement the wireless communication method according to each embodiment of the present application.
[0110] It should be noted that, among the various components of the system of the present application, the components are logically divided according to the functions to be implemented, but the present application is not limited to this, and the various components can be re-divided or combined as needed. For example, some components can be combined into a single component, or some components can be further decomposed into more sub-components.
[0111] The various component embodiments of the present application can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components in the system according to the embodiment of the present application. The present application can also be implemented as a device or apparatus program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present application can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form. In addition, the present application can be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim that lists several devices, several of these devices can be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
[0112] In addition, although exemplary embodiments have been described herein, the scope includes any and all embodiments based on the present application with equivalent elements, modifications, omissions, combinations (e.g., various embodiments intersecting schemes), adaptations or changes. The elements in the claims will be interpreted broadly based on the language adopted in the claims, and are not limited to the examples described in this specification or during the implementation of the application, and the examples will be interpreted as non-exclusive. Therefore, this specification and examples are intended to be considered as examples only, and the true scope and spirit are indicated by the following claims and the full scope of their equivalents.
[0113] The above description is intended to be illustrative rather than restrictive. For example, the above examples (or one or more of them) can be used in combination with each other. For example, those of ordinary skill in the art can use other embodiments when reading the above description. In addition, in the above-mentioned specific embodiments, various features can be grouped together to simplify the application. This should not be interpreted as an intention that a disclosed feature that does not require protection is necessary for any claim. On the contrary, the subject matter of the present application may be less than all the features of a specific disclosed embodiment. Thus, the following claims are incorporated into the specific embodiments as examples or embodiments, wherein each claim is independently used as a separate embodiment, and it is considered that these embodiments can be combined with each other in various combinations or arrangements. The scope of the present application should be determined with reference to the attached claims and the full scope of equivalent forms granted by these claims.
[0114] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.
Claims
1. A multi-object trajectory prediction method based on LSTM interactive modeling algorithm, applied in the field of autonomous driving, characterized in that: include: Acquire a trajectory prediction data set, the trajectory prediction data set comprising at least a plurality of scene information, each of the scene information comprising at least a plurality of objects and first classification information and trajectory information corresponding thereto, the trajectory information comprising a historical trajectory and a first future trajectory of a corresponding object in a continuous time period; Dividing the trajectory prediction dataset into a training set and a validation set; Inputting the training set into the multi-object trajectory prediction model in an iterative manner for training to obtain a trained multi-object trajectory prediction model; wherein the multi-object trajectory prediction model is a model established based on the LSTM interactive modeling algorithm; The historical trajectories in the verification set are processed in sequence based on the trained multi-object trajectory prediction model to obtain predicted future trajectories corresponding to the historical trajectories in the verification set and predicted classification information corresponding to the objects in the verification set.
2. The multi-object trajectory prediction method based on the LSTM interactive modeling algorithm according to claim 1 is characterized in that: The step of iteratively inputting the training set into the multi-object trajectory prediction model for training to obtain a trained multi-object trajectory prediction model specifically includes: The historical trajectory of each object in the training set and the environmental information of the environment in which the object is located under the historical trajectory are extracted through the LSTM encoding module of the multi-object trajectory prediction model, and the historical trajectory and the environmental information are encoded to obtain a first encoding result; the historical trajectory at least includes the historical spatial position information of the object in the scene.
3. The multi-object trajectory prediction method based on the LSTM interactive modeling algorithm according to claim 2 is characterized in that: The step of iteratively inputting the training set into the multi-object trajectory prediction model for training to obtain a trained multi-object trajectory prediction model further specifically includes: Encoding the interaction relationship between the objects in the scene via the scene graph encoding module of the multi-object trajectory prediction model to obtain a second encoding result corresponding to the interaction relationship between the objects; The predicted classification information of each object in the scene is determined via the scene graph encoding module of the multi-object trajectory prediction model.
4. The multi-object trajectory prediction method based on the LSTM interactive modeling algorithm according to claim 3 is characterized in that: The interaction relationship between the objects in the scene is encoded by the scene graph encoding module of the multi-object trajectory prediction model to obtain a second encoding result corresponding to the interaction relationship between the objects, specifically including: The scene graph encoding module encodes the interaction relationship between objects belonging to the same category and / or encodes the interaction relationship between two objects whose spatial distance is less than a preset distance to obtain a second encoding result corresponding to the interaction relationship between each object.
5. The multi-object trajectory prediction method based on the LSTM interactive modeling algorithm according to claim 3 is characterized in that: The step of iteratively inputting the training set into the multi-object trajectory prediction model for training to obtain a trained multi-object trajectory prediction model further includes: The global interaction coding module of the multi-object trajectory prediction model generates a fusion code corresponding to the global scene based on the first coding result and the second coding result; the fusion code includes the interaction relationship between all objects in the scene and the historical trajectories corresponding to all objects.
6. The multi-object trajectory prediction method based on the LSTM interactive modeling algorithm according to claim 5 is characterized in that: The step of iteratively inputting the training set into the multi-object trajectory prediction model for training to obtain a trained multi-object trajectory prediction model further includes: The future trajectory decoding module of the multi-object trajectory prediction model generates predicted future trajectories corresponding to each object in the scene based on the fusion code.
7. The multi-object trajectory prediction method based on the LSTM interactive modeling algorithm according to claim 6 is characterized in that: The step of iteratively inputting the training set into the multi-object trajectory prediction model for training to obtain a trained multi-object trajectory prediction model further includes: comparing the first future trajectory and the predicted future trajectory to obtain a first comparison result; Comparing the predicted classification information with the first classification information, and obtaining a second comparison result; The weight coefficient of the multi-object trajectory prediction model is adjusted based on the first comparison result and the second comparison result to obtain a trained multi-object trajectory prediction model.
8. The multi-object trajectory prediction method based on the LSTM interactive modeling algorithm according to claim 1 or 7, characterized in that: The multi-object trajectory prediction method further includes: The loss function of the multi-object trajectory prediction model is: minα1L mse +α2L cls ; Among them, L mse is the loss function used to predict future trajectories, L cls is the loss function used to classify objects in the scene, and α1 is the control loss function L mse The weight coefficient of the weight; α2 is the control loss function L cls The weight coefficient of the weight; where L is determined using the following formula mse and L cls : Among them, H(·) represents the cross entropy loss, p j represents the predicted classification of object j, c j Represents the category label of object j; Among them, y i represents the true value of the future trajectory, represents the predicted future trajectory value, and |·|2 represents the 2-norm of the difference between the predicted future trajectory value and the true value of the future trajectory.
9. A multi-object trajectory prediction device based on LSTM interactive modeling algorithm, applied in the field of autonomous driving, characterized in that: include: An acquisition module is configured to acquire a trajectory prediction data set, wherein the trajectory prediction data set includes at least a plurality of scene information, each of the scene information includes at least a plurality of objects and first classification information and trajectory information corresponding thereto, and the trajectory information includes a historical trajectory and a first future trajectory of a corresponding object in a continuous time period; A partitioning module configured to partition the trajectory prediction dataset into a training set and a validation set; A training module, configured to iteratively input the training set into a multi-object trajectory prediction model for training to obtain a trained multi-object trajectory prediction model; wherein the multi-object trajectory prediction model is a model established based on an LSTM interactive modeling algorithm; A verification module is configured to process the historical trajectories in the verification set in sequence based on the trained multi-object trajectory prediction model to obtain predicted future trajectories corresponding to the historical trajectories in the verification set and predicted classification information corresponding to the objects in the verification set.
10. A storage medium storing a computer program, wherein when the computer program is executed by a processor, the steps of the multi-object trajectory prediction method based on the LSTM interactive modeling algorithm according to any one of claims 1 to 8 are implemented.
