Target state prediction method and device, terminal equipment and storage medium

By combining the state prediction model and the state update algorithm, the target state is predicted and updated in complex traffic scenarios, which solves the problem of low prediction accuracy in the existing technology and achieves higher prediction accuracy and real-time performance.

CN118690187AInactive Publication Date: 2024-09-24VANJEE TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310288236.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-22
Publication Date
2024-09-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing target state prediction methods based on deep learning algorithms have low prediction accuracy in complex traffic scenarios. This is mainly due to the delay in data transmission and algorithm processing, and the prediction results may not be the true state of the current target.

Method used

Combining the state prediction model and the preset state update algorithm, it predicts and updates through multi-frame environmental sensing data, uses the neural network model to predict the future state of the target, and uses Kalman filtering or other state update algorithms to correct the prediction results. , to achieve optimal estimation.

Benefits of technology

The accuracy of target state prediction is improved. By comprehensively considering the position, size, direction angle and detection frame overlap loss function, the effect of model training is enhanced, and the delay error of the prediction result is reduced through the state update algorithm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690187A
    Figure CN118690187A
Patent Text Reader

Abstract

The invention relates to the technical field of target tracking, and provides a target state prediction method and device, terminal equipment and a storage medium. The method comprises the following steps: acquiring continuous multi-frame environment sensing data; inputting the multi-frame environment perception data into a trained state prediction model for processing to obtain a state prediction result of each target contained in the multi-frame environment perception data; wherein the state prediction model is a neural network model for predicting the future state of the target based on the historical state of the target; and when the state prediction model outputs a state prediction result corresponding to one frame of environment perception data, updating the state prediction result by using a preset state updating algorithm. According to the method, the state prediction model and the state updating algorithm are combined, the state prediction result is corrected by using the state updating algorithm, the state of the target is optimally estimated through the two processes of'prediction 'and'updating', and the accuracy of target state prediction can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of target tracking technology, and in particular to a target state prediction method, apparatus, terminal device and storage medium. Background Art

[0002] Nowadays, state prediction models based on deep learning algorithms are usually used to predict the states of targets such as pedestrians or vehicles in complex traffic scenarios. For example, the Grip++ algorithm of the graph convolutional network can be used. The basic prediction process of the Grip++ algorithm is to predict the state of the target in one or several frames in the future based on the historical state of the target. In the model training phase, the loss is calculated based on the true value of the target position state to converge the model parameters. However, in the actual target detection and tracking phase, there is no theoretical true value of the target position state. At this time, after data transmission and algorithm processing delays, when the prediction result is calculated, the corresponding predicted state is likely not the true state of the current target. Therefore, the current target state prediction method based on deep learning still has the problem of low prediction accuracy. Summary of the invention

[0003] In view of this, embodiments of the present application provide a method, apparatus, terminal device, and storage medium for predicting a target state, which can improve the accuracy of target state prediction.

[0004] A first aspect of an embodiment of the present application provides a method for predicting a state of a target, comprising:

[0005] Acquire continuous multi-frame environmental perception data;

[0006] Inputting the multi-frame environmental perception data into a trained state prediction model for processing to obtain a state prediction result of each target contained in the multi-frame environmental perception data;

[0007] Among them, the state prediction model is a neural network model that predicts the future state of the target based on the historical state of the target; whenever the state prediction model outputs a first state prediction result corresponding to a frame of environmental perception data, the preset state update algorithm is used to update the first state prediction result.

[0008] In an embodiment of the present application, continuous multi-frame environmental perception data is obtained as input data and input into a trained state prediction model for processing, thereby obtaining the state prediction results of each target contained in the multi-frame environmental perception data. Wherein, each time the state prediction model outputs a state prediction result corresponding to a frame of environmental perception data, the state prediction result is updated using a preset state update algorithm. In the above process, the state prediction model and the state update algorithm are combined, and the state prediction result is corrected using the state update algorithm. The state of the target is optimally estimated through the two processes of "prediction" and "update", which can improve the accuracy of the target state prediction.

[0009] In one implementation of the embodiment of the present application, the loss function used in the training of the state prediction model can be calculated in the following way:

[0010] In the process of training the state prediction model using the training sample set with annotated label values, calculating the position prediction loss according to the target position label value of the training sample set and the target position prediction value output by the state prediction model;

[0011] Calculating a size prediction loss according to a target size label value of the training sample set and a target size prediction value output by the state prediction model;

[0012] Calculating the direction angle prediction loss according to the target direction angle label value of the training sample set and the target direction angle prediction value output by the state prediction model;

[0013] Calculating the detection box overlap prediction loss according to the target detection box label value of the training sample set and the target detection box prediction value output by the state prediction model;

[0014] The loss function is calculated based on the position prediction loss, the size prediction loss, the direction angle prediction loss, and the detection frame overlap prediction loss.

[0015] Further, the calculating the direction angle prediction loss according to the target direction angle label value of the training sample set and the target direction angle prediction value output by the state prediction model may include:

[0016] The direction angle prediction loss is calculated using the following formula:

[0017] L θ =Smooth L1(sin(θ m -θ n ))

[0018] Among them, L θ represents the direction angle prediction loss, θ mrepresents the target direction angle prediction value, θ n Indicates the target direction angle label value.

[0019] Furthermore, calculating the detection box overlap prediction loss according to the target detection box label value of the training sample set and the target detection box prediction value output by the state prediction model may include:

[0020] Calculating a first degree of overlap between a target detection frame corresponding to the target detection frame label value and a target detection frame corresponding to the target detection frame prediction value;

[0021] The detection box overlap prediction loss is calculated based on the first overlap; wherein the detection box overlap prediction loss is negatively correlated with the first overlap.

[0022] In an implementation manner of the embodiment of the present application, the updating of the first state prediction result by using a preset state update algorithm may include:

[0023] Performing a target detection frame matching operation on the first state prediction result and the second state prediction result to obtain a matching result of each target detection frame in the first state prediction result; wherein the second state prediction result is a state prediction result of a previous frame of environmental perception data adjacent to the environmental perception data corresponding to the first state prediction result;

[0024] The state update algorithm is used to update the target detection frame for which the matching result is successful in the first state prediction result.

[0025] Further, performing a target detection frame matching operation on the first state prediction result and the second state prediction result to obtain a matching result of each target detection frame in the first state prediction result may include:

[0026] For any first target detection frame in the first state prediction result and any second target detection frame in the second state prediction result, calculating a second degree of overlap between the first target detection frame and the second target detection frame;

[0027] Multiplying the second overlap by the confidence of the first target detection frame to obtain a target cost value;

[0028] If the target cost value is greater than a set threshold, the matching result of the first target detection frame is determined to be successful.

[0029] In an implementation manner of the embodiment of the present application, after the first state prediction result is updated using a preset state update algorithm, the following method may also be included:

[0030] Determine, according to each target detection frame in the updated first state prediction result, a valid range area of ​​a subsequent frame of environmental perception data adjacent to the environmental perception data corresponding to the first state prediction result;

[0031] The target detection frame outside the effective range area in the next frame of environmental perception data is deleted or assigned a confidence level lower than a set threshold.

[0032] Further, determining, according to each target detection frame in the updated first state prediction result, a valid range area of ​​a subsequent frame of environmental perception data adjacent to the environmental perception data corresponding to the first state prediction result may include:

[0033] Expanding the size of each target detection frame in the updated first state prediction result by a set ratio;

[0034] The effective range area is determined according to the area where each of the expanded target detection frames is located.

[0035] In an implementation of the embodiment of the present application, inputting the multi-frame environmental perception data into a trained state prediction model for processing to obtain a state prediction result of each target contained in the multi-frame environmental perception data may include:

[0036] Using a preset kinematic model to perform target state prediction processing on the environmental perception data of a previously set number of frames in the multiple frames of environmental perception data, to obtain a state prediction result corresponding to the environmental perception data of the previously set number of frames; wherein, whenever the kinematic model outputs a third state prediction result corresponding to a frame of environmental perception data, the state update algorithm is used to update the third state prediction result;

[0037] The multiple frames of environmental perception data are input into the state prediction model for processing to obtain a state prediction result corresponding to each frame of environmental perception data after the previously set number of frames in the multiple frames of environmental perception data.

[0038] A second aspect of an embodiment of the present application provides a target state prediction device, including:

[0039] A perception data acquisition module, used to acquire continuous multi-frame environmental perception data;

[0040] A target state prediction module is used to input the multiple frames of environmental perception data into a trained state prediction model for processing to obtain state prediction results of each target contained in the multiple frames of environmental perception data; wherein the state prediction model is a neural network model that predicts the future state of the target based on the historical state of the target; whenever the state prediction model outputs a first state prediction result corresponding to a frame of environmental perception data, the first state prediction result is updated using a preset state update algorithm.

[0041] The third aspect of an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the state prediction method of the target provided in the first aspect of the embodiment of the present application is implemented.

[0042] The fourth aspect of the embodiments of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the state prediction method of the target provided by the first aspect of the embodiments of the present application.

[0043] A fifth aspect of an embodiment of the present application provides a computer program product. When the computer program product runs on a terminal device, the terminal device executes the target state prediction method provided in the first aspect of the embodiment of the present application.

[0044] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 is a flow chart of a method for predicting the state of a target provided in an embodiment of the present application;

[0046] Figure 2 It is a structural schematic diagram of a target state prediction device provided in an embodiment of the present application;

[0047] Figure 3 It is a schematic diagram of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] In the following description, for the purpose of illustration rather than limitation, specific details such as specific system structures, technologies, etc. are proposed, so as to thoroughly understand the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, the detailed description of well-known systems, devices, circuits and methods is omitted to prevent unnecessary details from hindering the description of the present application. In addition, in the description of the present application specification and the attached claims, the terms "first", "second", "third" etc. are only used to distinguish the description, and cannot be interpreted as indicating or suggesting relative importance.

[0049] For the state prediction of targets such as pedestrians or vehicles in complex traffic scenes, a state prediction model (or target tracking model) based on a deep learning algorithm is currently generally used for implementation. For example, the grip++ algorithm of a graph convolutional network can be used. This algorithm calculates the Euclidean distance between each target in a certain number of historical frames in the scene, obtains the adjacency matrix of each target to other targets, i.e., a topological graph, and uses the GRU network to perform encoding and decoding learning of adjacency relations to predict the state of one or several frames in the future of all targets in the scene. However, due to the delay in data transmission and algorithm processing, the predicted state corresponding to the moment when the model calculates the prediction result is likely not to be the true state of the current target, so there is still a problem of low prediction accuracy. In view of this, the present application embodiment provides a state prediction method, device, terminal device and storage medium of a target, which can improve the accuracy of target state prediction. For more specific technical implementation details of the present application embodiment, please refer to the method embodiment described below.

[0050] It should be understood that the execution subjects of the various method embodiments of the present application are various types of terminal devices or servers, such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), large-screen TVs, etc. The embodiments of the present application do not impose any restrictions on the specific types of the terminal devices and servers.

[0051] See also Figure 1 , showing a method for predicting the state of a target provided by an embodiment of the present application, comprising:

[0052] 101. Acquire continuous multi-frame environmental perception data;

[0053] First, obtain continuous multi-frame environmental perception data. Environmental perception data can be any type of data containing the target to be detected, which is generally acquired through various types of environmental perception devices, such as image data collected by a camera, point cloud data collected by a lidar, and so on. The target to be detected is various types of targets that need to be predicted and tracked, such as vehicles and pedestrians in intersection scenes, and so on. In addition, since the state prediction model based on algorithms such as grip++ needs to predict the future state of the target based on its multi-frame historical state, it is necessary to obtain continuous multi-frame environmental perception data as the input of the state prediction model.

[0054] 102. Input the multi-frame environmental perception data into a trained state prediction model for processing to obtain state prediction results of each target contained in the multi-frame environmental perception data; wherein the state prediction model is a neural network model that predicts the future state of the target based on the historical state of the target; whenever the state prediction model outputs a first state prediction result corresponding to a frame of environmental perception data, the first state prediction result is updated using a preset state update algorithm.

[0055] After obtaining multiple frames of environmental perception data, these environmental perception data are input into a trained state prediction model for processing, so as to obtain the state prediction result of each target. Among them, the state prediction model is any type of neural network model that predicts the future state of the target based on the historical state of the target. Specifically, various types of state prediction and tracking algorithms can be used, such as grip++ algorithm, JDE algorithm, SORT algorithm, etc.

[0056] Since the prediction accuracy of the existing state prediction model is not high, the embodiment of the present application uses a state update algorithm to correct the prediction result output by the state prediction model, and the state of the target is optimally estimated through the two processes of "prediction" and "update", thereby improving the accuracy of the target state prediction. Specifically, whenever the state prediction model outputs a state prediction result corresponding to a frame of environmental perception data (represented by the first state prediction result), the state prediction result is updated using a preset state update algorithm. Various types of existing state update algorithms can be used here, such as Kalman filter algorithm, disordered measurement state update algorithm, and so on. For example, when the state prediction model outputs the state prediction result N of the Nth frame of environmental perception data, the state prediction result N is updated using the state update algorithm to obtain the updated state prediction result N; thereafter, the updated state prediction result N is input into the state prediction model to obtain the state prediction result N+1 of the N+1th frame of environmental perception data, and the state prediction result N+1 is continued to be updated using the state update algorithm to obtain the updated state prediction result N+1..., and so on.

[0057] In one implementation of the embodiment of the present application, the loss function used in the training of the state prediction model can be calculated in the following way:

[0058] (1) in the process of training the state prediction model using the training sample set with labeled label values, the position prediction loss is calculated according to the target position label value of the training sample set and the target position prediction value output by the state prediction model;

[0059] (2) Calculating the size prediction loss based on the target size label value of the training sample set and the target size prediction value output by the state prediction model;

[0060] (3) Calculating the direction angle prediction loss based on the target direction angle label value of the training sample set and the target direction angle prediction value output by the state prediction model;

[0061] (4) Calculate the detection box overlap prediction loss based on the target detection box label value of the training sample set and the target detection box prediction value output by the state prediction model;

[0062] (5) The loss function is calculated based on the position prediction loss, size prediction loss, direction angle prediction loss and detection frame overlap prediction loss.

[0063] For the above step (1), when the state prediction model is trained using a training sample set with annotated label values, the position prediction loss can be calculated based on the position label value (i.e., true value) of each target in the training sample set and the position prediction value of each target output by the state prediction model. For example, the position root mean square error between the predicted value and the label value can be calculated using the following formula as the position prediction loss:

[0064]

[0065] Among them, L pos represents the position prediction loss, m represents the number of targets, represents the position prediction value, Represents a position label value.

[0066] For the above step (2), the size prediction loss can be calculated based on the target size label value of the training sample set and the target size prediction value output by the state prediction model. Generally speaking, the size of the target detection box can include length l, width w and height h, so the size prediction loss can include length prediction loss L l , width prediction loss L w and the height prediction loss L hIn specific calculations, the SmoothL1 loss function can be used to predict the difference between the size of the target and the size of the true value of the label to calculate the loss and back propagate. For example, the following formula can be used for calculation:

[0067]

[0068] Among them, x represents any size among length l, width w and height h, that is, the length prediction loss L l , width prediction loss L w and the height prediction loss L h This formula can be used for calculation.

[0069] For the above step (3), during the model training process, when the predicted direction of a target detection box is just opposite to the true direction, the regression loss of the above state quantities such as position and size is small, while the regression loss of the direction will be large, which is not conducive to model training. In order to solve this problem, the embodiment of the present application introduces the direction angle prediction loss, which can be calculated based on the target direction angle label value of the training sample set and the target direction angle prediction value output by the state prediction model. Specifically, the direction angle prediction loss can be calculated using the following formula:

[0070] L θ =Smooth L1(sin(θ m -θ n ))

[0071] Among them, L θ represents the direction angle prediction loss, θ m Represents the predicted value of the target direction angle, θ n Represents the target direction angle label value. Obviously, when θ m =θ n When ±π, the direction angle prediction loss tends to 0, which is beneficial to model training.

[0072] For the above step (4), the output of the pure neural network may be overfitted or violate the dynamic constraints. For example, the prediction of some target detection frames may deviate greatly from the dynamics or overlap with other target detection frames. For this reason, the embodiment of the present application considers adding the target overlap influencing factor to the loss function, that is, introducing the detection frame overlap prediction loss, which can be calculated based on the target detection frame label value of the training sample set and the target detection frame prediction value output by the state prediction model. Further, the above step (4) may include:

[0073] (4.1) calculating a first degree of overlap between a target detection frame corresponding to the target detection frame label value and a target detection frame corresponding to the target detection frame prediction value;

[0074] (4.2) According to the first overlap, the detection box overlap prediction loss is calculated; wherein the detection box overlap prediction loss is negatively correlated with the first overlap.

[0075] First, the overlap between the target detection frame corresponding to the target detection frame label value and the target detection frame corresponding to the target detection frame prediction value is calculated. The overlap is represented by the first overlap. If there are multiple target detection frames here, the first overlap can be the average of the overlaps of the target detection frames. Then, the detection frame overlap prediction loss can be calculated based on the first overlap. The higher the first overlap, the smaller the difference between the prediction value and the label value, and the lower the detection frame overlap prediction loss. Therefore, the detection frame overlap prediction loss is set to be negatively correlated with the first overlap. For example, the detection frame overlap prediction loss can be calculated using the following formula:

[0076] L iou =1-IOU

[0077] Among them, L iou It represents the prediction loss of the detection box overlap, and IOU represents the first overlap.

[0078] For the above step (5), the loss function can be calculated based on the position prediction loss, size prediction loss, direction angle prediction loss and detection frame overlap prediction loss. For example, the following formula can be used for calculation:

[0079] Loss = L pos +L w +L l +L θ +L iou

[0080] Among them, Loss represents the loss function. Here we consider the two-dimensional plane situation, so the size prediction loss only includes the length prediction loss L l and width prediction loss L w If three-dimensional space needs to be considered, the height prediction loss L is added h That's it.

[0081] The loss function used in the training of the existing state prediction model usually only considers the position prediction loss, while the loss function used in the training of the state prediction model proposed in the embodiment of the present application comprehensively considers the size prediction loss, the direction angle prediction loss and the detection frame overlap loss, which can effectively improve the accuracy of the state prediction.

[0082] In an implementation of the embodiment of the present application, the updating of the first state prediction result by using a preset state update algorithm may include:

[0083] (1) performing a target detection frame matching operation on the first state prediction result and the second state prediction result to obtain a matching result of each target detection frame in the first state prediction result; wherein the second state prediction result is a state prediction result of a previous frame of environmental perception data adjacent to the environmental perception data corresponding to the first state prediction result;

[0084] (2) Using the state update algorithm, the target detection box whose matching result is successful in the first state prediction result is updated.

[0085] In the data association stage of state prediction, it is necessary to associate the target detection frames corresponding to the same target in two adjacent frames of data. The second state prediction result is the state prediction result of the previous frame adjacent to the first state prediction result. By performing the target detection frame matching operation on the first state prediction result and the second state prediction result, the matching result of each target detection frame in the first state prediction result can be obtained. For the target detection frames where the matching result is successful, the state update algorithm is used to complete the update. As for the target detection frames where the matching result is failed, they can be not processed, discarded, or wait for the next frame of data to match again.

[0086] Furthermore, performing a target detection frame matching operation on the first state prediction result and the second state prediction result to obtain a matching result of each target detection frame in the first state prediction result may include:

[0087] (1) calculating, for any first object detection frame in the first state prediction result and any second object detection frame in the second state prediction result, a second degree of overlap between the first object detection frame and the second object detection frame;

[0088] (2) Multiply the second overlap by the confidence of the first target detection frame to obtain the target cost value;

[0089] (3) If the target cost value is greater than the set threshold, the matching result of the first target detection frame is determined to be successful.

[0090] When performing the matching operation of the target detection frame, it is assumed that the matching of the first target detection frame and the second target detection frame is currently being performed, wherein the first target detection frame is any target detection frame in the first state prediction result, and the second target detection frame is any target detection frame in the second state prediction result. First, the overlap between the first target detection frame and the second target detection frame is calculated, recorded as the second overlap; then, the confidence of the first target detection frame predicted by the state prediction model is obtained, and the second overlap is multiplied by the confidence to obtain the target cost value. That is, let cost = coincidence * iou, where cost represents the target cost value, coincidence represents the confidence, and iou represents the second overlap. Finally, if the target cost value cost is greater than the set threshold, it means that the first target detection frame and the second target detection frame correspond to the same target, that is, the matching result of the first target detection frame is successful. On the contrary, if the target cost value cost is less than the set threshold, it means that the first target detection frame and the second target detection frame fail to match, and the next target detection frame can be obtained to match with the first target detection frame.

[0091] In an implementation of the embodiment of the present application, after the first state prediction result is updated using a preset state update algorithm, the following may also be included:

[0092] (1) determining, according to each target detection frame in the updated first state prediction result, a valid range area of ​​the next frame of environmental perception data adjacent to the environmental perception data corresponding to the first state prediction result;

[0093] (2) The target detection frame outside the effective range in the next frame of environmental perception data is deleted or assigned a confidence level lower than a set threshold.

[0094] Generally speaking, when using deep learning algorithms to detect external moving vehicles and other targets, sensors such as cameras and laser radars are used. When the scene is large, the amount of input data for the corresponding state prediction algorithm will also surge, which will increase the time consumption of the algorithm processing and affect the real-time performance of the algorithm. To solve this problem, the effective range area of ​​the next frame of environmental perception data adjacent to the environmental perception data corresponding to the first state prediction result can be determined according to each target detection frame in the updated first state prediction result, and then the target detection frame outside the effective range area in the next frame of environmental perception data is deleted or assigned a confidence level lower than the set threshold. In actual situations, the various targets to be detected may be concentrated in a certain area of ​​the environmental perception data, which is the effective range area, and a small number of targets outside the effective range area can be regarded as invalid data and filtered out. Specifically, according to the position of each target detection frame in the state prediction result of the previous frame, the effective range area can be divided, and then by deleting the target detection frame outside the effective range area or assigning a confidence level lower than the set threshold, the calculation amount of the state prediction algorithm and the state update algorithm can be effectively reduced, thereby improving the real-time performance of the algorithm processing.

[0095] Further, determining the valid range area of ​​the next frame of environmental perception data adjacent to the environmental perception data corresponding to the first state prediction result according to each target detection frame in the updated first state prediction result may include:

[0096] (1) expanding the size of each target detection box in the updated first state prediction result by a set ratio;

[0097] (2) Determine the effective range area according to the area where each object detection frame is located after expansion.

[0098] When determining the effective range, a certain redundancy can be considered, that is, the size of each target detection frame in the updated first state prediction result can be expanded by a set ratio, and then the effective range is determined based on the area where each expanded target detection frame is located. By expanding the size of the target detection frame, a larger effective range can be obtained, thereby avoiding filtering out effective targets.

[0099] In one implementation of the embodiment of the present application, the inputting of the multi-frame environmental perception data into the trained state prediction model for processing to obtain the state prediction result of each target contained in the multi-frame environmental perception data may include:

[0100] (1) using a preset kinematic model to perform target state prediction processing on a set number of frames of environmental perception data in the plurality of frames of environmental perception data, and obtaining a state prediction result corresponding to the set number of frames of environmental perception data; wherein, whenever the kinematic model outputs a third state prediction result corresponding to a frame of environmental perception data, the state update algorithm is used to update the third state prediction result;

[0101] (2) Inputting the multiple frames of environmental perception data into the state prediction model for processing, obtaining the state prediction result corresponding to each frame of environmental perception data after the previously set number of frames in the multiple frames of environmental perception data.

[0102] For the state prediction model of algorithms such as grip++, a certain amount of historical state information is required to improve the accuracy of target state prediction. Therefore, when the target just enters the detection range and has no historical state information, various kinematic models (such as uniform motion model, uniform acceleration motion model or Kalman filter model, etc.) can be used to establish a tracking chain. When the historical state information of the target reaches the number of data frames required by the state prediction model, the state prediction model is used for state prediction. Moreover, every time the kinematic model outputs a frame of state prediction results, the state prediction result is also updated using the state update algorithm. For example, assuming that 100 frames of environmental perception data are obtained, the first 30 frames can be used for state prediction using the kinematic model, and the state prediction results are updated using the state update algorithm. After obtaining the state prediction results of 30 frames, it is considered that the number of historical state information data frames required by the state prediction model has been obtained. At this time, it is converted to using the state prediction model for state prediction, and the state prediction results are also updated using the state update algorithm, and so on.

[0103] In an embodiment of the present application, continuous multi-frame environmental perception data is obtained as input data and input into a trained state prediction model for processing, thereby obtaining the state prediction results of each target contained in the multi-frame environmental perception data. Wherein, each time the state prediction model outputs a state prediction result corresponding to a frame of environmental perception data, the state prediction result is updated using a preset state update algorithm. In the above process, the state prediction model and the state update algorithm are combined, and the state prediction result is corrected using the state update algorithm. The state of the target is optimally estimated through the two processes of "prediction" and "update", which can improve the accuracy of the target state prediction.

[0104] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0105] A method for predicting the state of a target is mainly described above, and a device for predicting the state of a target will be described below.

[0106] See also Figure 2 , an embodiment of a state prediction device of a target in an embodiment of the present application includes:

[0107] A perception data acquisition module 201 is used to acquire continuous multi-frame environment perception data;

[0108] The target state prediction module 202 is used to input the multi-frame environmental perception data into a trained state prediction model for processing to obtain the state prediction results of each target contained in the multi-frame environmental perception data; wherein the state prediction model is a neural network model that predicts the future state of the target based on the historical state of the target; whenever the state prediction model outputs a first state prediction result corresponding to a frame of environmental perception data, the first state prediction result is updated using a preset state update algorithm.

[0109] In an implementation of the embodiment of the present application, the target state prediction device may further include:

[0110] A position prediction loss calculation module, used to calculate the position prediction loss according to the target position label value of the training sample set and the target position prediction value output by the state prediction model during the process of training the state prediction model using the training sample set with labeled label values;

[0111] A size prediction loss calculation module, used to calculate the size prediction loss according to the target size label value of the training sample set and the target size prediction value output by the state prediction model;

[0112] A direction angle prediction loss calculation module is used to calculate the direction angle prediction loss according to the target direction angle label value of the training sample set and the target direction angle prediction value output by the state prediction model;

[0113] An overlap prediction loss calculation module is used to calculate the detection frame overlap prediction loss according to the target detection frame label value of the training sample set and the target detection frame prediction value output by the state prediction model;

[0114] The loss function calculation module is used to calculate the loss function according to the position prediction loss, the size prediction loss, the direction angle prediction loss and the detection frame overlap prediction loss.

[0115] Furthermore, the direction angle prediction loss calculation module can be specifically used for:

[0116] The direction angle prediction loss is calculated using the following formula:

[0117] L θ =Smooth L1(sin(θ m -θ n ))

[0118] Among them, L θ represents the direction angle prediction loss, θ m represents the target direction angle prediction value, θ n Indicates the target direction angle label value.

[0119] Furthermore, the overlap prediction loss calculation module may include:

[0120] An overlap calculation unit, used to calculate a first overlap between a target detection frame corresponding to the target detection frame label value and a target detection frame corresponding to the target detection frame prediction value;

[0121] An overlap prediction loss calculation unit is used to calculate the detection frame overlap prediction loss according to the first overlap; wherein the detection frame overlap prediction loss is negatively correlated with the first overlap.

[0122] In one implementation of the embodiment of the present application, the target state prediction module may include:

[0123] a detection frame matching unit, configured to perform a target detection frame matching operation on the first state prediction result and the second state prediction result to obtain a matching result of each target detection frame in the first state prediction result; wherein the second state prediction result is a state prediction result of a previous frame of environmental perception data adjacent to the environmental perception data corresponding to the first state prediction result;

[0124] A detection frame updating unit is used to use the state updating algorithm to update the target detection frame for which the matching result is successful in the first state prediction result.

[0125] Furthermore, the detection frame matching unit may include:

[0126] an overlap calculation subunit, configured to calculate a second overlap between the first target detection frame and the second target detection frame for any first target detection frame in the first state prediction result and any second target detection frame in the second state prediction result;

[0127] a cost value calculation subunit, configured to multiply the second overlap degree and the confidence degree of the first target detection frame to obtain a target cost value;

[0128] The matching result determination subunit is used to determine that the matching result of the first target detection frame is successful if the target cost value is greater than a set threshold.

[0129] In an implementation of the embodiment of the present application, the target state prediction device may further include:

[0130] An effective range region determination module, configured to determine, based on each target detection frame in the updated first state prediction result, an effective range region of a subsequent frame of environmental perception data adjacent to the environmental perception data corresponding to the first state prediction result;

[0131] The detection frame filtering module is used to delete the target detection frame outside the effective range area in the next frame of environmental perception data or assign a confidence level lower than a set threshold.

[0132] Furthermore, the effective range area determination module may include:

[0133] A detection frame expansion unit, used to expand the size of each target detection frame in the updated first state prediction result by a set ratio;

[0134] The effective range region determining unit is used to determine the effective range region according to the region where each of the expanded target detection frames is located.

[0135] In one implementation of the embodiment of the present application, the target state prediction module may include:

[0136] a state prediction unit, configured to use a preset kinematic model to perform target state prediction processing on a previously set number of frames of environmental perception data among the multiple frames of environmental perception data, and obtain a state prediction result corresponding to the previously set number of frames of environmental perception data; wherein, whenever the kinematic model outputs a third state prediction result corresponding to a frame of environmental perception data, the state update algorithm is used to update the third state prediction result;

[0137] The prediction result generating unit is used to input the multiple frames of environmental perception data into the state prediction model for processing, and obtain the state prediction result corresponding to each frame of environmental perception data after the previously set number of frames in the multiple frames of environmental perception data.

[0138] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, a state prediction method for a target as represented by any of the above embodiments is implemented.

[0139] An embodiment of the present application also provides a computer program product. When the computer program product is run on a terminal device, the terminal device executes a state prediction method for a target as represented by any of the above embodiments.

[0140] Figure 3 Schematic diagram of a terminal device provided by an embodiment of the present application. Figure 3 As shown, the terminal device 3 of this embodiment includes: a processor 30, a memory 31, and a computer program 32 stored in the memory 31 and executable on the processor 30. When the processor 30 executes the computer program 32, the steps of the state prediction method for the above-mentioned goal are implemented, for example Figure 1 Alternatively, when the processor 30 executes the computer program 32, the functions of each module / unit in the above-mentioned device embodiments are realized, for example, Figure 2 Functions of modules 201 to 202 are shown.

[0141] The computer program 32 may be divided into one or more modules / units, which are stored in the memory 31 and executed by the processor 30 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 32 in the terminal device 3.

[0142] The processor 30 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0143] The memory 31 may be an internal storage unit of the terminal device 3, such as a hard disk or memory of the terminal device 3. The memory 31 may also be an external storage device of the terminal device 3, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 3. Further, the memory 31 may also include both an internal storage unit and an external storage device of the terminal device 3. The memory 31 is used to store the computer program and other programs and data required by the terminal device. The memory 31 may also be used to temporarily store data that has been output or is to be output.

[0144] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0145] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0146] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0147] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel 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 this application.

[0148] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0149] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present application.

[0150] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0151] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0152] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for predicting the state of a target, characterized in that: include: Acquire continuous multi-frame environmental perception data; Inputting the multi-frame environmental perception data into a trained state prediction model for processing to obtain a state prediction result of each target contained in the multi-frame environmental perception data; Among them, the state prediction model is a neural network model that predicts the future state of the target based on the historical state of the target; whenever the state prediction model outputs a first state prediction result corresponding to a frame of environmental perception data, the preset state update algorithm is used to update the first state prediction result.

2. The method according to claim 1, characterized in that The loss function used in the training of the state prediction model is calculated in the following way: In the process of training the state prediction model using the training sample set with labeled label values, calculating the position prediction loss according to the target position label value of the training sample set and the target position prediction value output by the state prediction model; Calculating a size prediction loss according to a target size label value of the training sample set and a target size prediction value output by the state prediction model; Calculating the direction angle prediction loss according to the target direction angle label value of the training sample set and the target direction angle prediction value output by the state prediction model; Calculating the detection box overlap prediction loss according to the target detection box label value of the training sample set and the target detection box prediction value output by the state prediction model; The loss function is calculated based on the position prediction loss, the size prediction loss, the direction angle prediction loss, and the detection frame overlap prediction loss.

3. The method according to claim 2, characterized in that The step of calculating the direction angle prediction loss according to the target direction angle label value of the training sample set and the target direction angle prediction value output by the state prediction model includes: The direction angle prediction loss is calculated using the following formula: L θ =Smooth L1(sin(θ m -θ n )) Among them, L θ represents the direction angle prediction loss, θ m represents the target direction angle prediction value, θ n Indicates the target direction angle label value.

4. The method according to claim 2, characterized in that The step of calculating the detection box overlap prediction loss according to the target detection box label value of the training sample set and the target detection box prediction value output by the state prediction model includes: Calculating a first degree of overlap between a target detection frame corresponding to the target detection frame label value and a target detection frame corresponding to the target detection frame prediction value; The detection box overlap prediction loss is calculated based on the first overlap; wherein the detection box overlap prediction loss is negatively correlated with the first overlap.

5. The method according to claim 1, characterized in that The using a preset state update algorithm to update the first state prediction result includes: Performing a target detection frame matching operation on the first state prediction result and the second state prediction result to obtain a matching result of each target detection frame in the first state prediction result; wherein the second state prediction result is a state prediction result of a previous frame of environmental perception data adjacent to the environmental perception data corresponding to the first state prediction result; The state update algorithm is used to update the target detection frame for which the matching result is successful in the first state prediction result.

6. The method according to claim 5, characterized in that The performing a target detection frame matching operation on the first state prediction result and the second state prediction result to obtain a matching result of each target detection frame in the first state prediction result includes: For any first target detection frame in the first state prediction result and any second target detection frame in the second state prediction result, calculating a second degree of overlap between the first target detection frame and the second target detection frame; Multiplying the second overlap by the confidence of the first target detection frame to obtain a target cost value; If the target cost value is greater than a set threshold, the matching result of the first target detection frame is determined to be successful.

7. The method according to claim 1, characterized in that After the first state prediction result is updated using a preset state update algorithm, the method further includes: Determine, according to each target detection frame in the updated first state prediction result, a valid range area of ​​a subsequent frame of environmental perception data adjacent to the environmental perception data corresponding to the first state prediction result; The target detection frame outside the effective range area in the next frame of environmental perception data is deleted or assigned a confidence level lower than a set threshold.

8. The method according to claim 7, characterized in that The determining, according to each target detection frame in the updated first state prediction result, a valid range area of ​​a subsequent frame of environmental perception data adjacent to the environmental perception data corresponding to the first state prediction result, comprises: Expanding the size of each target detection frame in the updated first state prediction result by a set ratio; The effective range area is determined according to the area where each of the expanded target detection frames is located.

9. The method according to any one of claims 1 to 8, characterized in that The step of inputting the multiple frames of environmental perception data into a trained state prediction model for processing to obtain a state prediction result of each target contained in the multiple frames of environmental perception data includes: Using a preset kinematic model to perform target state prediction processing on the environmental perception data of a previously set number of frames in the multiple frames of environmental perception data, to obtain a state prediction result corresponding to the environmental perception data of the previously set number of frames; wherein, whenever the kinematic model outputs a third state prediction result corresponding to a frame of environmental perception data, the state update algorithm is used to update the third state prediction result; The multiple frames of environmental perception data are input into the state prediction model for processing to obtain a state prediction result corresponding to each frame of environmental perception data after the previously set number of frames in the multiple frames of environmental perception data.

10. A target state prediction device, characterized in that: include: A perception data acquisition module, used to acquire continuous multi-frame environmental perception data; A target state prediction module is used to input the multiple frames of environmental perception data into a trained state prediction model for processing to obtain state prediction results of each target contained in the multiple frames of environmental perception data; wherein the state prediction model is a neural network model that predicts the future state of the target based on the historical state of the target; whenever the state prediction model outputs a first state prediction result corresponding to a frame of environmental perception data, the first state prediction result is updated using a preset state update algorithm.

11. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the state prediction method of the target according to any one of claims 1 to 9 is implemented.

12. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the state prediction method of the object according to any one of claims 1 to 9 is implemented.