A method and device for processing multi-obstacle full-modal prediction scenes

By using the probability distribution function of the Gaussian mixture model in the autonomous driving system to train a multi-modal trajectory prediction model, a multi-obstacle full-modal prediction scenario is generated, which solves the problem of insufficient estimation of emergency states and improves the prediction accuracy.

CN115339473BActive Publication Date: 2024-10-25SUZHOU QINGZHOU ZHIHANG INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211062858.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-31
Publication Date
2024-10-25
Estimated Expiration
2042-08-31

AI Technical Summary

Technical Problem

The autonomous driving system only selects the maximum possible predicted trajectory when constructing a multi-obstacle prediction scenario, resulting in the problem of underestimation of emergency states.

Method used

Use the probability distribution function of the Gaussian mixture model to construct a loss function to train the multi-modal trajectory prediction model, generate multiple predicted trajectories and corresponding probabilities, and combine and sort the predicted trajectories of all obstacles to obtain the multi-obstacle full model state prediction scenario.

Benefits of technology

The prediction accuracy of the multi-modal trajectory prediction model is improved, the problem of underestimation caused by a single prediction scenario is solved, and the full-modal prediction scenario of all obstacles in the future period is obtained.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115339473B_ABST
    Figure CN115339473B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention relates to a method and device for processing a multi-obstacle full-modal prediction scenario, the method comprising: obtaining first obstacle data of multiple obstacles; inputting each first obstacle data into a multi-modal trajectory prediction model to perform trajectory prediction to obtain a first predicted trajectory data group of a modal total N; performing statistics on the number of first obstacle data to generate a first obstacle total K; performing multi-obstacle trajectory combination to obtain N K first prediction scenes; in each first prediction scene, the first prediction trajectory probabilities corresponding to the K first prediction trajectories of the current prediction scene are summed up to generate the corresponding first scene probability sum; the first prediction scenes are sorted in descending order of the first scene probability sum to generate a first prediction scene sequence, and the first prediction scene sequence is output as the multi-obstacle full-modal prediction scene at the current moment. The present invention can solve the problem of underestimation caused by a single prediction scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a method and device for processing a multi-obstacle full-modal prediction scene. Background Art

[0002] Under normal circumstances, the trajectory prediction module of the autonomous driving system will use a multimodal trajectory prediction model to predict the movement trajectory of each obstacle in various possible motion states (such as going straight, turning left, turning right, turning around, etc.) in the future period based on the historical trajectory and real-time position of each obstacle at the current moment, and generate a corresponding prediction trajectory probability for each predicted trajectory. Multimodality refers to multiple possible motion states; then, the predicted trajectory with the highest probability is selected from the multiple predicted trajectories corresponding to each obstacle as the maximum possible predicted trajectory of each obstacle at the current moment; then, the multi-obstacle prediction scene composed of the maximum possible predicted trajectories of all obstacles is output to the downstream planning module for self-driving path planning processing. Through practice, we will find that the prediction scene obtained by this processing method has the problem of underestimation: when constructing the multi-obstacle prediction scene, only the maximum possible prediction trajectory is selected for construction, and other possible sudden states are under-estimated. Summary of the invention

[0003] The purpose of the present invention is to provide a processing method, device, electronic device and computer-readable storage medium for multi-obstacle full-modal prediction scenarios in view of the defects of the prior art; a loss function is constructed in advance based on the probability distribution function of the Gaussian mixture model to train the multi-modal trajectory prediction model; after the model training is mature, the multi-modal trajectory prediction model is used to predict the various possible motion trajectories of each obstacle in the future period to obtain the corresponding multiple predicted trajectories and the predicted trajectory probability of each predicted trajectory, and all the predicted trajectories of all obstacles are combined to obtain multiple prediction scenarios, and the sum of the scene probabilities of each prediction scenario is calculated, and all the prediction scenarios are sorted in order from large to small according to the sum of the scene probabilities to obtain the final multi-obstacle full-modal prediction scenario. Through the present invention, the model is trained based on the loss function constructed by the probability distribution function of the Gaussian mixture model, and the predicted trajectory and the predicted probability can be supervised synchronously, so as to achieve the purpose of improving the prediction accuracy of the multi-modal trajectory prediction model; through the present invention, the full-modal prediction scenario of all obstacles in the future period can be obtained, so as to solve the problem of underestimation caused by a single prediction scenario.

[0004] To achieve the above object, a first aspect of an embodiment of the present invention provides a method for processing a multi-obstacle omnimodal prediction scenario, the method comprising:

[0005] Obtain the first obstacle data D corresponding to the historical trajectories and real-time positions of multiple obstacles at the current momenti ; The obstacle index i is a positive integer greater than or equal to 1; The first obstacle data D i Includes the first historical track and the first position;

[0006] Each of the first obstacle data D i Input the preset multi-modal trajectory prediction model to perform trajectory prediction processing to obtain the first predicted trajectory data set E of the total modal amount N i,g ; The total modal quantity N is the total output modal quantity corresponding to the multimodal trajectory prediction model; The first predicted trajectory data set E i,g Including the first predicted trajectory S i,g and the first predicted trajectory probability ρ i,g ; The modal index g is a positive integer greater than or equal to 1, and its value range is 1≤g≤N;

[0007] The first obstacle data D i The number of obstacles is counted to generate the corresponding total number K of the first obstacles;

[0008] From the plurality of first predicted trajectories S corresponding to each obstacle i,g Select any predicted trajectory from the above to combine multiple obstacle trajectories to obtain the corresponding first predicted scene V j ; The scene index j is a positive integer greater than or equal to 1, and its value range is 1≤j≤N K ;

[0009] In each of the first prediction scenarios V j , for the K first predicted trajectories S of the current predicted scene i,g The corresponding first predicted trajectory probability ρ i,g Perform the sum calculation to generate the corresponding first scene probability sum R j ; and according to the sum of the probabilities of the first scenario R j The first prediction scenario V is j Sorting is performed to generate a corresponding first prediction scene sequence, and the first prediction scene sequence is output as a multi-obstacle full-modal prediction scene at the current moment.

[0010] Preferably, the method further comprises: in the step of obtaining the first obstacle data D corresponding to the historical trajectories and real-time positions of the plurality of obstacles at the current moment i Previously, a loss function was constructed in advance based on the probability distribution function of the Gaussian mixture model to train the multimodal trajectory prediction model.

[0011] Preferably, each of the first prediction scenarios V j The first predicted trajectory S is composed of the first total number of obstacles K i,gComposition: Each of the first prediction scenarios V j Any two of the first predicted trajectories S i,g The obstacle index i of any two of the first prediction scenes V j The first predicted trajectory S i,g They won't completely overlap.

[0012] A second aspect of an embodiment of the present invention provides a device for implementing the processing method of the multi-obstacle omnimodal prediction scene described in the first aspect above, the device comprising: an acquisition module, a multimodal trajectory prediction processing module, a first prediction scene processing module, and a second prediction scene processing module;

[0013] The acquisition module is used to acquire the first obstacle data D corresponding to the historical tracks and real-time positions of multiple obstacles at the current moment. i ; The obstacle index i is a positive integer greater than or equal to 1; The first obstacle data D i Includes the first historical track and the first position;

[0014] The multi-modal trajectory prediction processing module is used to convert each of the first obstacle data D i Input the preset multi-modal trajectory prediction model to perform trajectory prediction processing to obtain the first predicted trajectory data set E of the total modal amount N i,g ; The total modal quantity N is the total output modal quantity corresponding to the multimodal trajectory prediction model; The first predicted trajectory data set E i,g Including the first predicted trajectory S i,g and the first predicted trajectory probability ρ i,g ; The modal index g is a positive integer greater than or equal to 1, and its value range is 1≤g≤N;

[0015] The first prediction scene processing module is used to process the first obstacle data D i The number of the first obstacles is counted to generate the corresponding total number K of the first obstacles; and the first predicted trajectories S corresponding to each obstacle are counted. i,g Select any predicted trajectory from the above to combine multiple obstacle trajectories to obtain the corresponding first predicted scene V j ; The scene index j is a positive integer greater than or equal to 1, and its value range is 1≤j≤N K ;

[0016] The second prediction scene processing module is used to process each of the first prediction scenes V j , for the K first predicted trajectories S of the current predicted scene i,g The corresponding first predicted trajectory probability ρ i,g Perform the sum calculation to generate the corresponding first scene probability sum R j; and according to the sum of the probabilities of the first scenario R j The first prediction scenario V is j Sorting is performed to generate a corresponding first prediction scene sequence, and the first prediction scene sequence is output as a multi-obstacle full-modal prediction scene at the current moment.

[0017] A third aspect of an embodiment of the present invention provides an electronic device, including: a memory, a processor, and a transceiver;

[0018] The processor is used to couple with the memory, read and execute instructions in the memory, so as to implement the method steps described in the first aspect above;

[0019] The transceiver is coupled to the processor, and the processor controls the transceiver to send and receive messages.

[0020] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions. When the computer instructions are executed by a computer, the computer executes the instructions of the method described in the first aspect above.

[0021] The embodiment of the present invention provides a processing method, device, electronic device and computer-readable storage medium for a multi-obstacle full-modal prediction scene; a loss function is constructed in advance based on the probability distribution function of a Gaussian mixture model to train the multi-modal trajectory prediction model; after the model training is mature, the multi-modal trajectory prediction model is used to predict the various possible motion trajectories of each obstacle in the future period to obtain the corresponding multiple predicted trajectories and the predicted trajectory probability of each predicted trajectory, and all predicted trajectories of all obstacles are combined to obtain multiple prediction scenes, and the sum of the scene probabilities of each prediction scene is calculated, and all prediction scenes are sorted in order from large to small in the order of the sum of the scene probabilities to obtain the final multi-obstacle full-modal prediction scene. Through the present invention, the model is trained based on the loss function constructed by the probability distribution function of the Gaussian mixture model, and the predicted trajectory and the predicted probability can be supervised synchronously, thereby improving the prediction accuracy of the multi-modal trajectory prediction model; through the present invention, the full-modal prediction scene of all obstacles in the future period can be obtained, which solves the problem of underestimation caused by a single prediction scene. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 A schematic diagram of a method for processing a multi-obstacle omni-modal prediction scenario provided in Embodiment 1 of the present invention;

[0023] Figure 2 A module structure diagram of a processing device for a multi-obstacle omnimodal prediction scenario provided in Embodiment 2 of the present invention;

[0024] Figure 3 A schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0026] Embodiment 1 of the present invention provides a method for processing a multi-obstacle full-modal prediction scenario, such as Figure 1 As shown in the schematic diagram of a processing method for a multi-obstacle full-modal prediction scenario provided in the first embodiment of the present invention, the method mainly includes the following steps:

[0027] Step 1: Obtain the first obstacle data D corresponding to the historical trajectories and real-time positions of multiple obstacles at the current moment i ;

[0028] Wherein, the obstacle index i is a positive integer greater than or equal to 1; the first obstacle data D i Includes the first historical track and the first position.

[0029] Here, the trajectory prediction module of the autonomous driving system obtains the first historical trajectory and the first position corresponding to the current obstacle from the perception data set output by the upstream perception module; the first historical trajectory is the actual motion trajectory of the current obstacle for a fixed period of time before the current moment; the first position is the real-time position coordinates of the current obstacle at the current moment.

[0030] Step 2: each first obstacle data D i Input the preset multi-modal trajectory prediction model to perform trajectory prediction processing to obtain the first predicted trajectory data set E of the total modal amount N i,g ;

[0031] Among them, the total modal quantity N is the total output modal quantity corresponding to the multimodal trajectory prediction model; the first predicted trajectory data set E i,g Including the first predicted trajectory S i,g and the first predicted trajectory probability ρ i,g ; The modal index g is a positive integer greater than or equal to 1, and its value range is 1≤g≤N.

[0032] Here, the multimodal trajectory prediction model of the embodiment of the present invention is a pre-trained trajectory prediction model for multimodal trajectory prediction; the multimodal trajectory prediction model can perform trajectory prediction based on the historical trajectory and real-time position of the obstacle and output a corresponding plurality of predicted trajectories and a predicted trajectory probability of each predicted trajectory; the total modality N of the multimodal trajectory prediction model indicates that the current model can predict N possible motions (modalities), and each mode outputs a predicted trajectory data group, namely, the first predicted trajectory data group E i,g , each first predicted trajectory data set E i,g The first predicted trajectory S in i,g That is, the predicted trajectory of the current mode, the probability of the first predicted trajectory ρ i,g That is the corresponding first predicted trajectory S i,g The predicted trajectory probability.

[0033] It should be noted that the embodiment of the present invention needs to train the multimodal trajectory prediction model before using it. That is, after obtaining the historical trajectories and real-time positions of multiple obstacles at the current moment, the first obstacle data D corresponding to the obstacle is obtained. i Previously, a loss function was constructed based on the probability distribution function of the Gaussian mixture model to train the multimodal trajectory prediction model, including:

[0034] Step A0, constructing a training data set;

[0035] The training data set includes multiple training data set records; the training data set records include training history trajectory h, training real-time position p and training true value trajectory S * ;

[0036] Here, when constructing a training data set, the embodiment of the present invention first collects the motion trajectories of various obstacles passing through a scene without clear road traffic signs and logos and with at least one intersection to obtain multiple collected trajectories; and selects a point on each collected trajectory as the real-time position p, and divides the collected trajectory into two sub-trajectories, front and back, with the real-time position p as the dividing point, and extracts a fixed-length trajectory from the front sub-trajectory as the historical trajectory h according to a set time length, and the position of the end trajectory point of the historical trajectory h is the real-time position p, and then extracts a fixed-length trajectory from the back sub-trajectory as the training true value trajectory S according to a set time length. * , the training truth trajectory S * The position of the starting trajectory point is the real-time position p, and then a set of training history trajectories h, training real-time position p and training true value trajectory S are obtained. * Form a training data set record and store it in the training data set;

[0037] Step A1, initializing the count value of the convergence counter to 0; and extracting the first training data record from the training data set as the current training data record;

[0038] Step A2: extract the training history trajectory h and the training real-time position p from the current training data record to form the corresponding current training obstacle data; and input the current training obstacle data into the multimodal trajectory prediction model for trajectory prediction processing to obtain the predicted trajectory data set E of the total modal amount N g ;

[0039] Among them, the predicted trajectory data set E g Including the predicted trajectory S g and the corresponding predicted trajectory probability ρ g ;

[0040] Here, because the total number of output modes of the multimodal trajectory prediction model is known to be the total number of modes N, N predicted trajectory data sets E can be obtained based on a set of training obstacle data g , each predicted trajectory data set E g Corresponds to a mode (possible state of motion);

[0041] Step A3: predict the trajectory S g The data dimension determines the corresponding dimension parameter M; and each prediction trajectory S g Determine the corresponding covariance matrix C g ; and the covariance matrix C g Add to the corresponding predicted trajectory data set E g middle;

[0042] Here, the current step is to prepare the parameters of the probability distribution function of the Gaussian mixture model, and the updated predicted trajectory data set E g It should include three parameters: predicted trajectory S g , predicted trajectory probability ρ g and the covariance matrix C g ; Dimension parameter M and predicted trajectory S g Corresponding to the data dimension, the predicted trajectory S g The data dimension is the predicted trajectory S g The trajectory point coordinate dimension, if the predicted trajectory S g The trajectory point coordinates are two-dimensional coordinates, and the corresponding dimension parameter M = 2. If the predicted trajectory S g If the coordinates of the trajectory point are three-dimensional coordinates, the corresponding dimension parameter M=3;

[0043] Step A4: construct a first probability function P(S) based on the probability distribution function of the Gaussian mixture model. * |E), and based on the first probability function P(S *|E) Construct the corresponding negative log-likelihood loss function and record it as the first loss function L 1 :

[0044] L 1 = -log(P(S * |E)),

[0045]

[0046] (S * -S g ) T For (S * -S g )’s transposed matrix;

[0047] Here, the principle of the Gaussian mixture model and the derivation of its corresponding probability distribution function are both public technical implementations, which can be obtained through public technical information and will not be described one by one here; the reason why the embodiment of the present invention constructs the loss function based on the probability distribution function of the Gaussian mixture model is that the first probability function P(S * |E) The predicted trajectory S output by the multimodal trajectory prediction model can be g and the predicted trajectory probability ρ g Performing simultaneous supervision to construct the loss function helps to improve both the trajectory prediction and probability prediction accuracy of the model;

[0048] Step A5: train the true value trajectory S * , the predicted trajectory data set E of the dimension parameter M and the modal total N g (S g ,ρ g ,C g ) Substitute into the first loss function L 1 Calculate and obtain the corresponding first loss value;

[0049] Step A6, identifying whether the first loss value enters the preset convergence loss value range; if the first loss value does not enter the convergence loss value range, the count value of the convergence counter is reset to 0, and the model parameters of the multimodal trajectory prediction model are modulated, and when the modulation is completed, the step returns to step A2 to continue training; if the first loss value has entered the convergence loss value range, the count value of the convergence counter is added by 1, and it is judged whether the count value of the convergence counter after adding 1 exceeds the preset convergence number threshold, if it has exceeded, go to step A7, if not, extract the next training data record from the training data set as the new current training data record and return to step A2 to continue training;

[0050] Here, when the first loss value does not enter the convergence loss value range, it means that the model has not converged yet and the model parameters of the multimodal trajectory prediction model need to be modulated, and after the modulation, the model parameters of the multimodal trajectory prediction model are returned to step A2 to continue training and modulation based on the previously trained obstacle data; when modulating the model parameters of the multimodal trajectory prediction model, the model parameters can be substituted into the first loss function L 1 The corresponding objective function is obtained, and the model parameters of the multimodal trajectory prediction model are estimated in an estimation method that makes the objective function reach an extreme value, and the model parameters of the multimodal trajectory prediction model are modulated according to the obtained estimated values;

[0051] When the first loss value has entered the convergence loss value range, the embodiment of the present invention will not directly determine that the model has been trained to maturity, but will judge the number of times that the model has entered the convergence loss value range continuously recently, i.e., the count value of the current convergence counter, based on a preset convergence number threshold; if the count value of the convergence counter exceeds the convergence number threshold, it means that the model has been trained to maturity, and the embodiment of the present invention will go to step A7; if the count value of the convergence counter does not exceed the convergence number threshold, it means that new training obstacle data is needed to be further used for training to ensure the output stability of the model, and the embodiment of the present invention will extract new training data records from the training data set as the current training data records and return to step A2 to continue training;

[0052] Step A7: stop model training and confirm that the multimodal trajectory prediction model has been trained to maturity.

[0053] Step 3: For the first obstacle data D i The number of obstacles is counted to generate the corresponding first total number K.

[0054] Step 4: From the plurality of first predicted trajectories S corresponding to each obstacle i,g Select any predicted trajectory from the above to combine multiple obstacle trajectories to obtain the corresponding first predicted scene V j ;

[0055] The scene index j is a positive integer greater than or equal to 1, and its value range is 1≤j≤N K ; Each first prediction scenario V j The first predicted trajectory S of the first total number of obstacles K i,g Composition: Each first prediction scene V j Any two first predicted trajectories S i,g The obstacle index i of any two first prediction scenes V j The first predicted trajectory S i,g They won't completely overlap.

[0056] For example, it is known that the number of multiple obstacles is 3, that is, the total number of first obstacles K=3, and the corresponding three obstacles are: obstacle 1, obstacle 2, obstacle 3; it is known that the total number of modes of the multimodal trajectory prediction model is N=2;

[0057] Through the above step 2, two sets of first predicted trajectory data sets E can be predicted for each obstacle. i,g They are:

[0058] The first predicted trajectory data set E of obstacle 1 1,1 (S 1,1 ,ρ 1,1 ), the first predicted trajectory data set E 1,2 (S 1,2 ,ρ 1,2 ),

[0059] The first predicted trajectory data set E of obstacle 2 2,1 (S 2,1 ,ρ 2,1 ), the first predicted trajectory data set E 2,2 (S 2,2 ,ρ 2,2 ),

[0060] The first predicted trajectory data set E of obstacle 3 3,1 (S 3,1 ,ρ 3,1 ), the first predicted trajectory data set E 3,2 (S 3,2 ,ρ 3,2 );

[0061] Then, from the multiple first predicted trajectories S corresponding to each obstacle i,g By selecting any predicted trajectory from the above and combining multiple obstacle trajectories, we can get N K =2 3 = 8 first prediction scenarios V j , respectively:

[0062] First prediction scenario V 1 {S 1,1 ,S 2,1 ,S 3,1}, the first prediction scenario V 2 {S 1,1 ,S 2,2 ,S 3,1},

[0063] First prediction scenario V 3 {S 1,1 ,S 2,1 ,S 3,2}, the first prediction scenario V 4 {S 1,1 ,S2,2 ,S 3,2},

[0064] First prediction scenario V 5 {S 1,2 ,S 2,1 ,S 3,1}, the first prediction scenario V 6 {S 1,2 ,S 2,2 ,S 3,1},

[0065] First prediction scenario V 7 {S 1,2 ,S 2,1 ,S 3,2}, the first prediction scenario V 8 {S 1,2 ,S 2,2 ,S 3,2}.

[0066] Step 5: In each first prediction scenario V j In the current prediction scene, the K first prediction trajectories S i,g The corresponding first predicted trajectory probability ρ i,g Perform the sum calculation to generate the corresponding first scene probability sum R j ; and according to the sum of the probability of the first scene R j The first prediction scenario V is ranked from largest to smallest. j The corresponding first prediction scene sequence is generated by sorting, and the first prediction scene sequence is output as the multi-obstacle full-modal prediction scene at the current moment.

[0067] For example, it is known that the number of multiple obstacles is 3, that is, the total number of first obstacles K = 3, and the corresponding three obstacles are: obstacle 1, obstacle 2, obstacle 3; it is known that the total number of modes of the multimodal trajectory prediction model is N = 2; from step 4, 8 first prediction scenarios V are obtained j , respectively: the first prediction scenario V 1 {S 1,1 ,S 2,1 ,S 3,1}, the first prediction scenario V 2 {S 1,1 ,S 2,2 ,S 3,1}, the first prediction scenario V 3 {S 1,1 ,S 2,1 ,S 3,2}, the first prediction scenario V 4 {S 1,1 ,S 2,2 ,S 3,2}, the first prediction scenario V5 {S 1,2 ,S 2,1 ,S 3,1}, the first prediction scenario V 6 {S 1,2 ,S 2,2 ,S 3,1}, the first prediction scenario V 7 {S 1,2 ,S 2,1 ,S 3,2}, the first prediction scenario V 8 {S 1,2 ,S 2,2 ,S 3,2};

[0068] Then, in the 8 first prediction scenarios V j The three first prediction trajectories S for each prediction scenario i,g The corresponding first predicted trajectory probability ρ i,g The sum of the corresponding 8 first scene probabilities R can be obtained by summing them up. j , respectively: R 1 =ρ 1,1 +ρ 2,1 +ρ 3,1 , R 2 =ρ 1,1 +ρ 2,2 +ρ 3,1 , R 3 =ρ 1,1 +ρ 2,1 +ρ 3,2 , R 4 =ρ 1,1 +ρ 2,2 +ρ 3,2 , R 5 =ρ 1,2 +ρ 2,1 +ρ 3,1 , R 6 =ρ 1,2 +ρ 2,2 +ρ 3,1 , R 7 =ρ 1,2 +ρ 2,1 +ρ 3,2 , R 8 =ρ 1,2 +ρ 2,2 +ρ 3,2 ;

[0069] Assume that the sum of the probabilities of the eight first scenarios is R j The order from largest to smallest is R 1 >R 2 >R 3 >R4 >R 8 >R 6 >R 5 >R 7 , then, the first prediction scene sequence, that is, the multi-obstacle full-modal prediction scene, should be {V 1 ,V 2 ,V 3 ,V 4 ,R 8 ,V 6 ,V 5 ,V 7}.

[0070] Figure 2 The module structure diagram of a processing device for a multi-obstacle full-modal prediction scenario provided in the second embodiment of the present invention is a terminal device or server that implements the aforementioned method embodiment, and can also be a device that enables the aforementioned terminal device or server to implement the aforementioned method embodiment. For example, the device can be a device or chip system of the aforementioned terminal device or server. Figure 2 As shown, the device includes: an acquisition module 201, a multimodal trajectory prediction processing module 202, a first prediction scene processing module 203 and a second prediction scene processing module 204.

[0071] The acquisition module 201 is used to obtain the first obstacle data D corresponding to the historical tracks and real-time positions of multiple obstacles at the current moment. i ; The obstacle index i is a positive integer greater than or equal to 1; The first obstacle data D i Includes the first historical track and the first position.

[0072] The multi-modal trajectory prediction processing module 202 is used to convert each first obstacle data D i Input the preset multi-modal trajectory prediction model to perform trajectory prediction processing to obtain the first predicted trajectory data set E of the total modal amount N i,g ; The total modal quantity N is the total output modal quantity corresponding to the multimodal trajectory prediction model; The first predicted trajectory data set E i,g Including the first predicted trajectory S i,g and the first predicted trajectory probability ρ i,g ; The modal index g is a positive integer greater than or equal to 1, and its value range is 1≤g≤N.

[0073] The first prediction scene processing module 203 is used to process the first obstacle data D i The number of obstacles is counted to generate the corresponding first total number K; and the first predicted trajectories S corresponding to each obstacle are obtained. i,g Select any predicted trajectory from the above to combine multiple obstacle trajectories to obtain the corresponding first predicted scene V j; The scene index j is a positive integer greater than or equal to 1, and its value range is 1≤j≤N K .

[0074] The second prediction scene processing module 204 is used to process each first prediction scene V j In the current prediction scene, the K first prediction trajectories S i,g The corresponding first predicted trajectory probability ρ i,g Perform the sum calculation to generate the corresponding first scene probability sum R j ; and according to the sum of the probability of the first scene R j The first prediction scenario V is ranked from largest to smallest. j The corresponding first prediction scene sequence is generated by sorting, and the first prediction scene sequence is output as the multi-obstacle full-modal prediction scene at the current moment.

[0075] An embodiment of the present invention provides a processing device for a multi-obstacle omnimodal prediction scenario, which can execute the method steps in the above method embodiment. Its implementation principle and technical effects are similar and will not be repeated here.

[0076] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the acquisition module can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The function of the above-mentioned module is determined. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.

[0077] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more digital signal processors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a module above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0078] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the above method embodiments are generated. The above computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The above-mentioned computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the above-mentioned computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, Bluetooth, microwave, etc.) methods. The above-mentioned computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The above-mentioned available medium can be a magnetic medium (such as a floppy disk, a hard disk, a tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)), etc.

[0079] Figure 3 This is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present invention. The electronic device may be the aforementioned terminal device or server, or may be a terminal device or server connected to the aforementioned terminal device or server to implement the method of the embodiment of the present invention. Figure 3As shown, the electronic device may include: a processor 301 (such as a CPU), a memory 302, and a transceiver 303; the transceiver 303 is coupled to the processor 301, and the processor 301 controls the transceiver 303. Various instructions may be stored in the memory 302 to complete various processing functions and implement the processing steps described in the aforementioned method embodiment. Preferably, the electronic device involved in the embodiment of the present invention also includes: a power supply 304, a system bus 305 and a communication port 306. The system bus 305 is used to realize the communication connection between components. The above-mentioned communication port 306 is used for connecting and communicating between the electronic device and other peripherals.

[0080] exist Figure 3 The system bus 305 mentioned in the figure can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface is used to realize the communication between the database access device and other devices (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM), and may also include non-volatile memory (Non-Volatile Memory), such as at least one disk storage.

[0081] The above-mentioned processor can be a general-purpose processor, including a central processing unit CPU, a network processor (Network Processor, NP), a graphics processing unit (Graphics Processing Unit, GPU), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0082] It should be noted that an embodiment of the present invention further provides a computer-readable storage medium, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the method and processing process provided in the above embodiments.

[0083] An embodiment of the present invention further provides a chip for executing instructions, wherein the chip is used to execute the processing steps described in the aforementioned method embodiment.

[0084] The embodiment of the present invention provides a processing method, device, electronic device and computer-readable storage medium for a multi-obstacle full-modal prediction scene; a loss function is constructed in advance based on the probability distribution function of a Gaussian mixture model to train the multi-modal trajectory prediction model; after the model training is mature, the multi-modal trajectory prediction model is used to predict the various possible motion trajectories of each obstacle in the future period to obtain the corresponding multiple predicted trajectories and the predicted trajectory probability of each predicted trajectory, and all predicted trajectories of all obstacles are combined to obtain multiple prediction scenes, and the sum of the scene probabilities of each prediction scene is calculated, and all prediction scenes are sorted in order from large to small in the order of the sum of the scene probabilities to obtain the final multi-obstacle full-modal prediction scene. Through the present invention, the model is trained based on the loss function constructed by the probability distribution function of the Gaussian mixture model, and the predicted trajectory and the predicted probability can be supervised synchronously, thereby improving the prediction accuracy of the multi-modal trajectory prediction model; through the present invention, the full-modal prediction scene of all obstacles in the future period can be obtained, which solves the problem of underestimation caused by a single prediction scene.

[0085] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0086] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0087] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for processing a multi-obstacle full-modal prediction scene, characterized in that: The method comprises: Obtain the first obstacle data D corresponding to the historical trajectories and real-time positions of multiple obstacles at the current moment i ; The obstacle index i is a positive integer greater than or equal to 1; The first obstacle data D i Includes the first historical track and the first position; Each of the first obstacle data D i Input the preset multi-modal trajectory prediction model to perform trajectory prediction processing to obtain the first predicted trajectory data set E of the total modal amount N i,g ; The total modal quantity N is the total output modal quantity corresponding to the multimodal trajectory prediction model; The first predicted trajectory data set E i,g Including the first predicted trajectory S i,g and the first predicted trajectory probability ρ i,g ; The modal index g is a positive integer greater than or equal to 1, and its value range is 1≤g≤N; The first obstacle data D i The number of obstacles is counted to generate the corresponding total number K of the first obstacles; From the plurality of first predicted trajectories S corresponding to each obstacle i,g Select any predicted trajectory from the above to combine multiple obstacle trajectories to obtain the corresponding first predicted scene V j ; The scene index j is a positive integer greater than or equal to 1, and its value range is 1≤j≤N K ; In each of the first prediction scenarios V j , for the K first predicted trajectories S of the current predicted scene i,g The corresponding first predicted trajectory probability ρ i,g Perform the sum calculation to generate the corresponding first scene probability sum R j ; and according to the sum of the probabilities of the first scenario R j The first prediction scenario V is ranked from largest to smallest. j Sorting is performed to generate a corresponding first prediction scene sequence, and the first prediction scene sequence is output as a multi-obstacle full-modal prediction scene at the current moment.

2. The method for processing a multi-obstacle omnimodal prediction scene according to claim 1, characterized in that: The method further comprises: obtaining the historical tracks and real-time positions of the plurality of obstacles at the current moment to form corresponding first obstacle data D i Previously, a loss function was constructed in advance based on the probability distribution function of the Gaussian mixture model to train the multimodal trajectory prediction model.

3. The method for processing a multi-obstacle omnimodal prediction scene according to claim 1, characterized in that: Each of the first prediction scenarios V j The first predicted trajectory S is composed of the first total number of obstacles K i,g Composition: Each of the first prediction scenarios V j Any two of the first predicted trajectories S i,g The obstacle index i of any two of the first prediction scenes V j The first predicted trajectory S i,g They won't overlap completely.

4. A device for executing the method for processing a multi-obstacle omnimodal prediction scenario according to any one of claims 1 to 3, characterized in that: The device comprises: an acquisition module, a multimodal trajectory prediction processing module, a first prediction scene processing module and a second prediction scene processing module; The acquisition module is used to acquire the first obstacle data D corresponding to the historical tracks and real-time positions of multiple obstacles at the current moment. i ; The obstacle index i is a positive integer greater than or equal to 1; The first obstacle data D i Includes the first historical track and the first position; The multi-modal trajectory prediction processing module is used to convert each of the first obstacle data D i Input the preset multi-modal trajectory prediction model to perform trajectory prediction processing to obtain the first predicted trajectory data set E of the total modal amount N i,g ; The total modal quantity N is the total output modal quantity corresponding to the multimodal trajectory prediction model; The first predicted trajectory data set E i,g Including the first predicted trajectory S i,g and the first predicted trajectory probability ρ i,g ; The modal index g is a positive integer greater than or equal to 1, and its value range is 1≤g≤N; The first prediction scene processing module is used to process the first obstacle data D i The number of the first obstacles is counted to generate the corresponding total number K of the first obstacles; and the first predicted trajectories S corresponding to each obstacle are counted. i,g Select any predicted trajectory from the above to combine multiple obstacle trajectories to obtain the corresponding first predicted scene V j ; The scene index j is a positive integer greater than or equal to 1, and its value range is 1≤j≤N K ; The second prediction scene processing module is used to process each of the first prediction scenes V j , for the K first predicted trajectories S of the current predicted scene i,g The corresponding first predicted trajectory probability ρ i,g Perform the sum calculation to generate the corresponding first scene probability sum R j ; and according to the sum of the probabilities of the first scenario R j The first prediction scenario V is ranked from largest to smallest. j Sorting is performed to generate a corresponding first prediction scene sequence, and the first prediction scene sequence is output as a multi-obstacle full-modal prediction scene at the current moment.

5. An electronic device, characterized in that: include: memory, processors, and transceivers; The processor is used to couple with the memory, read and execute instructions in the memory, so as to implement the method steps described in any one of claims 1 to 3; The transceiver is coupled to the processor, and the processor controls the transceiver to send and receive messages.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, which, when executed by a computer, enable the computer to execute the method according to any one of claims 1 to 3.