An end-to-end multi-target recognition, tracking and prediction method
Through the end-to-end multi-target recognition, tracking and prediction method, graph neural network is used for feature aggregation and joint training, which solves the problem in the existing technology that multi-target recognition, tracking and prediction models cannot be trained collaboratively, and achieves more accurate trajectories. Prediction, capable of handling interactions between multiple agents and traffic participants, is suitable for real road scenarios.
Patent Information
- Application Number
- CN202111495731.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-09
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-12-09
AI Technical Summary
Existing multi-target recognition, tracking and prediction models cannot be trained collaboratively in Internet of Vehicles and intelligent driving scenarios. As a result, the final trajectory prediction results are not accurate enough and cannot be applied in real road scenarios. They also ignore the temporal and spatial characteristics of the target objects and cannot Dealing with the interaction between multi-agent and the mutual influence between traffic participants.
Adopt an end-to-end multi-target recognition, tracking and prediction method to establish an integrated model, use graph neural networks for feature aggregation, including target detectors, target tracking modules and trajectory prediction modules, and train through a joint training framework to build spatio-temporal 3D Directed graphs, taking into account the interactions between agents and the multimodality of the scene.
It improves the accuracy of multi-target recognition, tracking and prediction, can provide timely feedback on prediction results to adjust model parameters, achieves a more complete framework, enhances the accuracy of trajectory prediction, and can handle the interaction between multiple traffic participants in complex traffic scenarios. influence, generating more reasonable and multi-modal trajectory prediction results.
Smart Images

Figure CN114169241B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle networking and intelligent vehicle technology, and in particular to an end-to-end multi-target recognition, tracking and trajectory prediction technology. Background Art
[0002] With the emergence and proliferation of autonomous driving technology, multi-target tracking and prediction in road scenes has become an important part of semantic understanding of urban scenes. Accurate multi-target recognition, tracking and prediction systems play a vital role in intelligent transportation tasks such as navigation, route planning, positioning and traffic analysis. Some existing target tracking and prediction models are based on single targets. In the scenarios of Internet of Vehicles and intelligent driving, tasks such as path planning and navigation require accurate grasp of the positions and trajectories of all target objects in the current road environment, so single target tracking and prediction cannot meet the needs. The main task of multi-target recognition is to identify all target objects in the current scene. The whole process includes identifying all target objects such as vehicles and pedestrians, and obtaining the position and shape information of the target in the scene. The input of the multi-target tracking task is the recognition result output by the multi-target recognition task. The main task of multi-target tracking is to find the optimal trajectory set of all targets of interest on a continuous image sequence, and to link the set of identified target objects over time by considering the information of the time series. The input of the trajectory prediction task is the historical trajectory of the multi-target agent, and predicts the multimodal distribution of the agent's future trajectory. The trajectory prediction task requires predicting the possible future destination of the agent and performing trajectory prediction based on the destination and the interactions between agents and between agents and the environment.
[0003] At present, multi-target recognition models, multi-target tracking models, and multi-target trajectory prediction models have been fully studied, but the existing research is based on a single task, which requires first obtaining the results of the upstream task, and then using the results of the upstream task as the input of the downstream task until the final trajectory prediction result is obtained. In this case, although each sub-model can obtain the optimal result, multiple sub-models cannot be trained collaboratively, and the output results of the downstream task cannot be fed back to the upstream model. As a result, the final trajectory prediction result may not be accurate enough and cannot be applied in real road scenarios.
[0004] Existing document 1 (Chinese invention patent application with publication number CN111784747A) disclosed a vehicle multi-target tracking system and method based on key point detection and correction on October 16, 2020. However, this technical solution only considers the apparent features of the target object in the feature extraction process, and ignores the temporal and spatial features related to the target object. Therefore, the features obtained by this technology through the deep neural network do not contain rich temporal and spatial information, and are easily affected by occlusion and deformation, resulting in association failure.
[0005] Existing document 2 (Chinese invention patent application with publication number CN112135038A) disclosed a vehicle tracking method, system and storage medium based on traffic monitoring on December 25, 2020, but this technical solution only completed the multi-target tracking task, and directly used the multi-target recognition results obtained by the detection model as the input of the tracking model. The multi-target tracking results cannot be used to improve the multi-target recognition results, and thus the multi-target tracking task cannot be completed using better multi-target recognition results, resulting in inaccurate tracking results.
[0006] Existing document 3 (Chinese invention patent application with publication number CN112597922A) disclosed a multi-target trajectory prediction method based on collision-free LSTM (long short-term memory network) on April 2, 2021. It can accurately predict the trajectory route after the initial collision, and output the collision avoidance route through the collision avoidance model constructed by LSTM to avoid the harm caused by secondary collision. However, this method does not consider the interaction between multiple intelligent agents. For example, when a vehicle changes lanes, it will affect the motion trajectory of the front and rear vehicles in the adjacent lanes, and there is a very strong dependency between the trajectory and the scene. Therefore, in the trajectory prediction process, it is necessary to consider the interaction between multiple intelligences and the interaction with the scene.
[0007] Existing document 4 (Chinese invention patent application with publication number CN112465273A) disclosed a method for predicting the trajectory of an unmanned vehicle based on a local attention mechanism on March 9, 2021. The method takes the historical trajectories of vehicles around the unmanned vehicle as input, fully considers the impact of the interaction between the unmanned vehicle and the neighboring vehicles on the future trajectory of the unmanned vehicle, and estimates some vehicles with a high correlation with the future trajectory of the unmanned vehicle through the local attention mechanism. The correlation between these vehicles and the unmanned vehicle is calculated, and the time and space interaction between the unmanned vehicle and the surrounding vehicles are integrated to predict the trajectory of the unmanned vehicle. However, this method only considers the interaction between vehicles, and does not consider the interaction between other participants in road traffic. Ignoring other traffic participants such as pedestrians, bicycles, and electric vehicles will lead to the inability to deal with traffic safety issues and easily cause dangerous accidents such as collisions.
[0008] The above-mentioned existing technology treats the multi-target recognition, tracking and prediction tasks as an independent task for training, and only uses simple appearance and motion features in the multi-target tracking and prediction process. Therefore, the prediction results are inaccurate, dangerous accidents are prone to occur, and cannot be applied in real road scenes. Summary of the invention
[0009] In view of the problem that the current technology for multi-target recognition, tracking and prediction has inaccurate prediction results and cannot be applied in real road scenarios, the present invention proposes an end-to-end multi-target recognition, tracking and prediction method, which regards the multi-target recognition, tracking and prediction tasks as a complete task, establishes an integrated model to train the tasks, and uses the powerful feature aggregation ability of graph neural networks to obtain rich features for tracking and prediction, so as to obtain the optimal prediction results. The prediction results can be applied to roadside infrastructure or on-board intelligent facilities to complete multi-target recognition, tracking and prediction tasks.
[0010] An end-to-end multi-target recognition, tracking and prediction method of the present invention comprises:
[0011] Step 1: Establish an end-to-end multi-target recognition, tracking and prediction model; the model includes a target detector, a target tracking module and a trajectory prediction module;
[0012] Step 2: In the target detection module, a multi-target detector based on the center point is used to complete target detection; in the target tracking module, a graph convolutional neural network is used to track multiple targets and output trajectory association results;
[0013] Step 3: In the trajectory prediction module, motion trajectory prediction of multiple targets is performed based on the graph network, which is divided into three stages: (1) prediction of trajectory destination; (2) information transmission between agents; and (3) generation of future trajectories.
[0014] Step 4: The target detector, target tracking module and trajectory prediction module are treated as a whole and trained simultaneously using a joint training framework.
[0015] In the step 1, a target detector is used to identify all target objects in each input frame image; a target tracking module is used to extract spatiotemporal aggregation features for each target object identified in each frame, and target association is performed based on the spatiotemporal aggregation features, and the trajectory association results of the target objects are output; and a trajectory prediction module is used to predict the future trajectory of the target based on the historical trajectories of multiple targets.
[0016] In the step 2, a center-point-based multi-target detector is used to obtain target recognition results quickly, efficiently and more accurately. In the target tracking module, a spatiotemporal relationship graph is first constructed based on the historical time clues and spatial clues of the target object, and then a graph convolution operation is performed on the spatiotemporal graph to perform feature aggregation, and the association matching work is completed based on the discriminative features.
[0017] In the step 2, in the target detector, the input RGB image of the current frame, the RGB image of the previous frame and the prediction result of the previous frame are first passed through the convolution layer, the batch normalization layer and the activation function, and then bitwise added to obtain the fused information; the fused information is then used as the input of the feature extraction network, and four output feature maps are obtained through four head networks consisting of two convolution layers and a Relu activation function, which are the detection box center point position feature map, the center point confidence map, the length and width of the detection box corresponding to the center point, and the displacement of the center point relative to the previous frame; finally, the target detection result is obtained based on the first three feature maps, and the motion feature for target tracking is obtained based on the fourth feature map.
[0018] In the step 2, in the target tracker, the target detection result and the historical tracking trajectory are used as input, and a directed graph based on time and space clues is constructed according to the historical tracking trajectory, the motion features output by the target detector and the spatial clues of the target object in the current frame. Then, a convolution operation is performed on the directed graph using a graph convolutional neural network to obtain features that aggregate time and space dimension information. Finally, based on the feature, the similarity between the target objects is calculated, and the association matching between the target object in the current frame and the existing tracking trajectory is performed to obtain a new tracking trajectory.
[0019] In step three, when predicting the trajectory destination, the scene features, the agent's historical trajectory features and the destination features are first extracted, then input into the variational automatic encoding module to encode into a latent variable Z, and then the latent variable Z is sampled and decoded by the VAE decoding module to obtain the predicted destination.
[0020] In step 3, information transmission between agents includes: constructing the traffic scene as a heterogeneous graph, with traffic participants as agents and each traffic participant as a node in the heterogeneous graph; for any two nodes, if the Euclidean distance between the two nodes is less than a set threshold δ s , and the distance between the time windows of the historical trajectories of the two nodes is less than the set threshold δ t , then an edge is established between the two nodes; for the constructed heterogeneous graph, a heterogeneous graph convolutional neural network is used to learn the mutual influence of traffic participants during the movement process, including: (1) encoding the predicted destination point to obtain the destination point feature, combining the historical trajectory features of the traffic participants and the predicted destination point features to form the node feature; the node features H of the two connected traffic participants are i and H j Input into the fully connected network to obtain the relationship feature H between the two e(i,j) ; Input the node features and relationship features into the heterogeneous graph convolutional neural network to obtain the node features after the traffic participants interact
[0021] In step 3, generating future trajectories includes: using a fully connected network to map node features Decode and predict the future trajectories of traffic participants.
[0022] In the step 4, when the joint training framework is used for training, the current frame image is input into the target detector to obtain the target recognition result, and the current frame image is input into the target tracking module together with the historical trajectory to obtain multiple target trajectories, and the multiple target trajectories and the traffic scene are input into the trajectory prediction module to obtain the final trajectory prediction result; during back propagation, the loss function consists of three parts: target detection, target tracking and trajectory prediction. The loss of the target detector includes the L2 distance between the center point and the true value and the predicted value of the length and width of the target, the loss of the target tracking module is the L2 distance between the predicted target association matrix and the actual target association matrix, and the loss of the trajectory prediction module is the L2 distance between each coordinate point of the predicted trajectory and the true trajectory; the losses of the three modules are summed to obtain the final loss function, and the loss function is back propagated based on the loss function to train the end-to-end multi-target recognition, tracking and prediction model.
[0023] Compared with the prior art, the advantages and positive effects of the present invention are:
[0024] (1) The method of the present invention regards the multi-target recognition, tracking and prediction tasks as a complete task, performs model training in an end-to-end manner, trains the three tasks at the same time, adjusts the model parameters in time according to the prediction results, trains a more complete framework, and the prediction results of the trajectory prediction model can be fed back to the multi-target detection and tracking model in time to obtain the optimal multi-target trajectory prediction results, further improving the final trajectory prediction accuracy. Compared with the prior art that treats the multi-target recognition, multi-target tracking and multi-target trajectory prediction tasks as three independent tasks and designs three models for separate training, the method of the present invention regards the three tasks as a whole, learns the mutual influence of the trajectories between different types of traffic participants, and realizes the simultaneous training and mutual promotion of the three modules, making the whole process more compact and smooth, and obtaining more accurate recognition, tracking and prediction results.
[0025] (2) The method of the present invention constructs a heterogeneous graph of traffic participants and learns the interaction of the trajectories of road participants through information interaction between nodes of the heterogeneous graph. Compared with existing algorithms that do not consider the interaction between different types of traffic participants, the method of the present invention can predict more reasonable trajectories. At the same time, considering the multimodal nature of the trajectories, it can predict multiple possible trajectories of the unified intelligent agent in the future.
[0026] (3) The method of the present invention extracts rich and representative target features based on graph neural networks to complete tracking and prediction tasks. By performing graph convolution operations on 3D directed graphs, temporal and spatial features are aggregated for each target, thereby obtaining more representative and recognizable features for target association, solving the problems caused by occlusion and limited field of view, and improving the performance of multi-target tracking and prediction. In combination with the trajectory prediction model, a more accurate target trajectory can be obtained. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a schematic diagram of the overall implementation of the end-to-end multi-target recognition, tracking and prediction method of the present invention;
[0028] Figure 2 It is a schematic diagram of constructing spatiotemporal aggregation features of target objects and performing target association during multi-target tracking of the present invention;
[0029] Figure 3 It is a schematic diagram of the process of realizing the prediction of multi-target motion trends by the present invention. DETAILED DESCRIPTION
[0030] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments.
[0031] In view of the shortcomings of the prior art in multi-target recognition, tracking and prediction, the purpose of the present invention is to build an end-to-end multi-target recognition, tracking and prediction framework, which integrates the perception data of vehicle-mounted cameras and roadside cameras, constructs a spatiotemporal 3D directed graph based on time clues and spatial topology, and uses graph convolutional neural networks to aggregate time and space feature information for tracking and prediction, so as to obtain more recognizable features and reduce the problem of reduced accuracy caused by occlusion and camera motion during tracking and prediction, so as to obtain the optimal trajectory prediction result.
[0032] The present invention provides an end-to-end multi-target recognition, tracking and prediction method, which mainly includes four parts: Figure 1 As shown in the figure: (1) Establish an end-to-end multi-target recognition, tracking and prediction model; (2) Track multiple targets based on graph convolutional neural network; (3) Predict the motion trend of multiple targets based on graph neural network; (4) Train the three models as a whole based on the joint training framework. The following is an explanation of each part.
[0033] The first step is to establish an end-to-end multi-target recognition, tracking and prediction model.
[0034] Multi-target recognition, multi-target tracking and multi-target trajectory prediction models are mutually reinforcing. Better multi-target recognition results can lead to better multi-target tracking and prediction results. At the same time, multi-target tracking and prediction results can in turn improve the multi-target recognition model to make it more accurate. The method of the present invention implements an end-to-end multi-target recognition, tracking and prediction framework, designs a model that includes multi-target recognition, tracking and prediction tasks, trains it in an end-to-end manner, and enables the three subtasks to promote and improve each other, thereby obtaining the optimal recognition, tracking and prediction results.
[0035] The model established by the present invention includes a target detector, a target tracking module and a trajectory prediction module. For each input frame of the image, the target detector is used to identify all target objects in the image; the target tracking module is used to extract the spatiotemporal aggregation features of each target object identified in each frame, and the target association is performed based on the spatiotemporal aggregation features, and the trajectory association results of the target object are output; the trajectory prediction module is used to predict the target trajectory.
[0036] In the second step, multi-target detection based on center points is implemented in the target detection module, and multi-target tracking based on graph convolutional neural network is implemented in the target tracking module.
[0037] In this step, the target detection module and the target tracking module complete multi-target recognition and tracking, support the input of time information to complete target detection, and the input includes the RGB image of the current frame, the RGB image of the previous frame, the prediction result of the previous frame, and the existing tracking trajectory.
[0038] The method of the present invention uses an object detector based on the anchor-free concept. In the process of object detection, the object is detected as a point, and the key point estimation method is used to find the center point, and then regress to other object properties, including position and size. The object detector based on the anchor-free framework is simpler, faster and more accurate, and better achieves a trade-off between speed and accuracy.
[0039] Given an image I at time t t , the target detector detects all target objects in the frame and uses Indicates that and represents the coordinates of the center point of the i-th target object at time t, and It represents the length and width of the i-th target object at time t. Then, the target image is extracted according to the recognized target frame for feature extraction and association in the tracking process.
[0040] The target detector first passes the three input information of the RGB image of the current frame, the RGB image of the previous frame, and the prediction result of the previous frame through a simple convolution layer, a batch normalization layer, and an activation function, and then adds them bit by bit to complete the information fusion; then the fused information is used as the input of the feature extraction network, and four output feature maps are obtained through four head networks consisting of two convolution layers and a Relu activation function, namely the position feature map of the center point of the detection box, the confidence map of the center point, the length and width of the detection box corresponding to the center point, and the displacement of the center point relative to the previous frame; finally, the target detection result is obtained based on the first three feature maps, and the motion feature for target tracking is obtained based on the fourth feature map.
[0041] In multi-target tracking tasks, occlusion, camera motion and other reasons may cause large deformation of the target object, so the object features change greatly. The similarity score calculated based on this feature for the same target object between two adjacent frames will also be low, which may lead to final association errors, causing the same target object in two adjacent frames to be marked as different tracking IDs, resulting in tracking failure. Taking this into account, the present invention adds time series relationships and spatial topological relationships to the feature calculation process. During the tracking process, the time series information contained in the historical trajectory can help aggregate feature information in the time dimension, and the spatial topological information contained in each frame can help aggregate information in the spatial dimension. The present invention then aggregates spatiotemporal features by means of graph convolution to obtain more representative and discriminative features, and calculates the similarity scores of targets in two adjacent frames based on this spatiotemporal aggregated feature. Specifically, Figure 2 As shown, it is described in the following three steps.
[0042] Step 2.1: Construct a 3D spatiotemporal graph G(V,E), where V is a set of nodes, each target object is a node, and E is a set of edges. The definition of edges includes three rules:
[0043] Rule 1: Time association rule. According to the time association relationship of the existing trajectories, each target object has a unique trajectory IDΦ. When the target object v in two adjacent frames i and v j have the same trajectory Id, namely Φ(v i )=Φ(v j ), there is an edge between the two target objects, namely, e i,j =1, in other cases e i,j =0, which means there is no edge between the two objects.
[0044] Rule 2: Time association relationship is the association relationship between the current frame and the previous frame; if the specific time association relationship between the current frame and the previous frame cannot be determined, the simplest method is to associate every possible pair of target objects, but this method will greatly waste time and memory, because some target objects cannot have an association relationship, such as two target objects in the same frame will not have a time association, such as target objects of different categories will not have a time association. In addition, target objects that are too far away will not have a time association, so the present invention sets a range threshold. The offset between objects in two adjacent frames is less than this threshold and there is a possibility of an association relationship. In summary, when v i and v j In different frames, the distance between two nodes dis(v i ,v j ) is less than the specified threshold τ dis , and the categories of the two target objects are the same, namely cat i =cat j When , there is an edge between the two target objects, namely, e i,j =1, in other cases e i,j =0.
[0045] Rule 3: Spatial association relationship. The present invention regards the topological relationship of the current frame as the spatial association relationship. There is an edge between the target object node and its neighboring node in the current frame, that is, e i,j =1,j∈N(i), N(i) represents v i All neighbor nodes.
[0046] Step 2.2, after obtaining the spatiotemporal relationship graph, perform graph convolution on the graph to obtain the final node features for association. First, the target object detected by the target detector is cut out from the original image, and then the convolutional neural network DenseNet is used to extract the apparent features of each target. Then, the features of the two nodes connected by the edge are input into a fully connected neural network to obtain the edge features. Finally, the node features, edge features and adjacency matrix are used as the input of the graph convolutional network to obtain the features that aggregate time and space as the final features of the target object, which are used for the final target feature association.
[0047] Step 2.3, in the association stage, first calculate the cosine distance of the target object features of two adjacent frames as the feature similarity The target node v i and v j The feature similarity of the target object v in two adjacent frames is then calculated i and v j The intersection over union (IoU) of the bounding box is used as the IoU similarity. Then, the feature similarity and IoU similarity are connected, and an MLP (multi-layer perceptron) network is used to obtain the final similarity. Finally, the final similarity is used as the input of the greedy matching algorithm to obtain the final target trajectory association matrix result, which is provided to the trajectory prediction module.
[0048] The target tracker of the present invention takes the target detection results and the existing tracking trajectory as input, builds a directed graph based on time and space clues according to the historical tracking trajectory, the motion features output by the target detector and the spatial clues of the target object in the current frame, and then uses the graph convolutional neural network to perform convolution operations on the directed graph to obtain features that aggregate time and space dimension information. Finally, the similarity between the target objects is calculated based on the features, and the association matching between the target object in the current frame and the existing trajectory is completed to obtain a new tracking trajectory.
[0049] In the third step, the trajectory prediction module predicts the motion trends of multiple targets based on the graph network.
[0050] Complex and dense traffic scenes contain many types of moving objects such as vehicles, bicycles, and pedestrians. These agents have different movement modes and different interaction modes. At the same time, the trajectory of the agent has a strong interaction with the scene. Therefore, in the trajectory prediction problem with multiple types of traffic participants, it is necessary to consider the interaction between agents and the interaction between agents and the scene.
[0051] The present invention constructs the traffic scene into a heterogeneous graph structure to interact between nodes. A heterogeneous graph refers to a graph structure with multiple types of nodes and edges. The method of the present invention uses heterogeneous graph convolution to transfer information between nodes. At the same time, the future trajectory of the intelligent agent has a multimodal nature. For example, when a vehicle drives to a traffic intersection, it has operations such as turning left, going straight, or turning right. The intelligent agent may plan the path according to different destinations. This multimodal nature needs to be considered in trajectory prediction. The present invention divides trajectory prediction into three stages, such as Figure 3 As shown in Figure 1, it includes: (1) prediction of the trajectory destination; (2) information transmission between agents; and (3) generation of future trajectories. The following describes each stage separately.
[0052] (1) Prediction of trajectory destination points. Since the future trajectory of the motion agent has multimodal characteristics, the present invention uses conditional variational autoencoding (VAE) to predict the distribution of the agent's trajectory destination points. The main implementation method is as follows:
[0053] (1.1) Use the feature extraction module to extract scene features, such as road structure, obstacles, etc., to extract the historical trajectory features and destination features of the agent. The scene semantic features use CNN (convolutional neural network), with the input being the top view of the scene and the output being the obtained scene features F sThe historical trajectory feature extraction uses LSTM, the input is the trajectory coordinates of the agent in the past period of time, and the output is the historical trajectory feature F t The destination point feature extraction module encodes the destination point coordinates into F through the fully connected layer. d .
[0054] (1.2) The VAE encoding module encodes the extracted features (scene features, agent historical trajectory features, destination features) into latent variables Z.
[0055] (1.3) Sample the latent variable Z and decode it through the VAE decoding module to obtain the predicted destination point.
[0056] (2) Information transmission between agents. The interactions between different types of agents are different. For example, vehicles form a convoy, and vehicles and pedestrians need to avoid each other. In order to model this difference, the present invention constructs various types of traffic participants into a heterogeneous graph, which is represented by P = (V, E, A, R). Among them, V is a node set, E is an edge set, A is a node type set, and R is an edge type set. v∈V represents a node, and each target object is a node. e∈E represents an edge, and the rule for establishing an edge is: when the spatial association rule and the temporal association relationship are satisfied at the same time, an edge is established between two traffic participants.
[0057] Spatial association rule: The Euclidean distance between two traffic participants i and j is less than the threshold δ s ,as follows:
[0058]
[0059] Among them, (x i ,y i )、(x j ,y j ) are the position coordinates of traffic participants i and j respectively.
[0060] Temporal association rule: The distance between the time windows of the historical trajectories of two traffic participants i and j is less than the threshold δ t ,as follows:
[0061]
[0062] in, Represent the time window lengths of the historical trajectories of traffic participants i and j respectively; It is to calculate the distance between the historical trajectory time window of traffic participant i and the start time of the time window of traffic participant j; It is to calculate the distance between the historical trajectory time window of traffic participant i and the start time of the time window of traffic participant j. The left half of the formula finally obtains the minimum time distance between the two time windows. The threshold δs and δ t Can be set and adjusted based on experience.
[0063] If the historical trajectories of traffic participants i and j satisfy the above two rules, an edge e is established between them. i,j =1.
[0064] The mapping functions of nodes and edges of heterogeneous graphs to their types are τ(v): V→A and φ(e): E→R. For traffic scenarios, the node type set A can include {vehicle, pedestrian, bicycle...}, and the edge type set E is represented as {vehicle-vehicle, vehicle-pedestrian, vehicle-bicycle...}.
[0065] After constructing the heterogeneous graph, the present invention uses the heterogeneous graph convolutional neural network to learn the mutual influence of traffic participants during the movement process. First, the predicted destination point obtained in the first stage is encoded to obtain the destination point feature. The destination point feature is input into the variational encoder to learn the distribution information of the destination point. By predicting the distribution information of the destination point of the trajectory, the accuracy of trajectory prediction can be significantly improved. The historical trajectory features of the traffic participants and the predicted destination point distribution features are combined to form the node feature H i Then the node characteristics H of the interconnected traffic participants are i and H j Input into the fully connected network to obtain the relationship feature H between them e(i,j) Finally, the node features and relationship features are input into the heterogeneous graph convolutional network to obtain the node features after the traffic participants interact.
[0066] (3) Generate future trajectories. In the final stage, a fully connected network (MLP) is used to train node features Decode and predict the future trajectory. The network is learned by comparing the future trajectory with the actual trajectory and the difference between the predicted destination and the actual destination.
[0067] In the fourth step, we regard the three tasks of target detection, target tracking, and trajectory prediction as a whole, design a complete model, train the three tasks simultaneously in an end-to-end manner, adjust the model parameters in time according to the prediction results, and train a more complete framework to obtain more accurate recognition, tracking, and prediction results.
[0068] In the process of testing and training, the present invention uses the picture of the current frame as the input data of the target detector to obtain the target recognition result, and uses the existing trajectory as the input of the multi-target tracking module to obtain the trajectory information of multiple targets. Finally, the target trajectory and traffic scene information are used as the input of the multi-target trajectory prediction module to obtain the final trajectory prediction result. During back propagation, the loss function consists of three parts: target recognition, target tracking and trajectory prediction. The loss of the target detector includes the L2 distance between the center point and the true value and predicted value of the length and width of the target. The loss of the target tracking module is the L2 distance between the predicted target association matrix and the actual target association matrix. The loss of the trajectory prediction module is the L2 distance between the predicted trajectory of the target and each coordinate point of the real trajectory. The losses of the three modules are summed to obtain the final loss function, and based on the loss function, back propagation is performed to train an end-to-end multi-target recognition, tracking and prediction model.
[0069] Most of the existing methods for multi-target recognition, tracking and prediction are implemented separately. Compared with the three modules of multi-target recognition, multi-target tracking and multi-target trajectory prediction, the end-to-end training model increases the difficulty of training to a certain extent, but can make full use of the close connection between the three modules. In order to achieve end-to-end unified training, the present invention designs a joint training framework to better integrate the three modules of target recognition, target tracking and target trajectory prediction. Through the well-designed framework, the three modules are constantly promoted to each other during the training process to obtain the best trajectory prediction performance. There is a training framework for joint target recognition and target tracking modules in the prior art. This kind of framework trains the target recognition and target tracking modules at the same time and obtains the best tracking performance. However, this kind of model and the target trajectory prediction model are trained separately and cannot guarantee the best trajectory prediction performance. Compared with the prior art, the present invention integrates the multi-target trajectory prediction task into the multi-target recognition and tracking task, and introduces a heterogeneous graph convolutional network into the multi-target trajectory prediction task to learn the mutual influence of the trajectories between different types of traffic participants, so as to achieve the simultaneous training and mutual promotion of the three modules, making the whole process more compact and smooth, and obtaining the best multi-target recognition and trajectory tracking and prediction performance.
[0070] Except for the technical features described in the specification, all of them are known technologies to those skilled in the art. The present invention omits the description of the known technologies to avoid redundant description and unnecessary limitation of the present invention. The implementation methods described in the above embodiments do not represent all implementation methods consistent with the present application. On the basis of the technical solution of the present invention, various modifications or variations that can be made by those skilled in the art without creative labor are still within the protection scope of the present invention.
Claims
1. An end-to-end multi-target recognition, tracking and prediction method, It is characterized in that include: Step 1: Establish an end-to-end multi-target recognition, tracking and prediction model; The model includes a target detector, a target tracking module and a trajectory prediction module; For each input image frame, the target detector is used to identify all target objects in the image; the target tracking module is used to extract the spatiotemporal aggregation features of each target object identified in each frame, and the target is associated based on the spatiotemporal aggregation features, and the trajectory association results of the target object are output; Get the historical trajectories of multiple targets and use the trajectory prediction module to predict the future trajectory of the target; Step 2: In the target detection module, a center-point-based multi-target detector is used for target detection; in the target tracking module, a graph convolutional neural network is used to track multiple targets and output the trajectory association matrix result; Step 3: In the trajectory prediction module, motion trajectory prediction of multiple targets is performed based on the graph network, which is divided into three stages: (1) Prediction of trajectory destination, including: extracting scene features, agent historical trajectory features and destination features, inputting them into the variational autoencoding module to encode them into latent variables Z, sampling the latent variables Z, and decoding them through the VAE decoding module to obtain the predicted destination; (2) Information transmission between agents, including: constructing the traffic scene as a heterogeneous graph, with traffic participants as agents and each traffic participant as a node in the heterogeneous graph; for any two nodes, if the Euclidean distance between the two nodes is less than the set threshold δ s , and the distance between the time windows of the historical trajectories of the two nodes is less than the set threshold δ t , then an edge is established between the two nodes; for the constructed heterogeneous graph, a heterogeneous graph convolutional neural network is used to learn the mutual influence of traffic participants during the movement process, including: (1) encoding the predicted destination point to obtain the destination point feature, combining the historical trajectory features of the traffic participants and the predicted destination point features to form the node feature; the node features H of the two connected traffic participants are i and H j Input into the fully connected network to obtain the relationship feature H between the two e(i,j) ; Input the node features and relationship features into the heterogeneous graph convolutional neural network, and get ^ Node characteristics after interaction with traffic participants ; (3) Generate future trajectories, including: decoding the node features H using a fully connected network to predict the future trajectories of traffic participants; Step 4: The target detector, target tracking module and trajectory prediction module are taken as a whole and trained simultaneously using a joint training framework; In the joint training framework, the current frame image is input into the target detector to obtain the target recognition result, and the target recognition result is input into the target tracking module together with the historical trajectory to obtain multiple target trajectories. The multiple target trajectories and the traffic scene are input into the trajectory prediction module to obtain the final trajectory prediction result. During back propagation, the loss function consists of three parts: target detection, target tracking and trajectory prediction. The loss of the target detector includes the L2 distance between the center point and the true value and the predicted value of the length and width of the target. The loss of the target tracking module is the L2 distance between the predicted target association matrix and the actual target association matrix. The loss of the trajectory prediction module is the L2 distance between each coordinate point of the predicted trajectory and the true trajectory. The losses of the three modules are summed to obtain the final loss function, and the loss function is back-propagated based on the loss function to train the end-to-end multi-target recognition, tracking and prediction model.
2. The method according to claim 1, It is characterized in that In the step 2, firstly, an anchor-free framework-based target detector is used to detect the target as a point, and the center point, length and width of the target are found; then, a target tracking module is used to construct a 3D spatiotemporal graph for the input video frame, and each target is taken as a node, and edges between nodes are established according to the temporal and spatial association relationships; node features, edge features and adjacency matrix are obtained and used as inputs of the graph convolutional network to obtain the spatiotemporal aggregation features of the target; similarity detection is performed based on the spatiotemporal aggregation features of the target, and the trajectory association results are output using a greedy matching algorithm.
3. The method according to claim 2, It is characterized in that In the step 2, in the target detector, the input RGB image of the current frame, the RGB image of the previous frame, and the prediction result of the previous frame are first passed through a convolution layer, a batch normalization layer, and an activation function, and then bitwise added to obtain the fused information; the fused information is then used as the input of the feature extraction network, and four output feature maps are obtained through four head networks consisting of two convolution layers and a Relu activation function, which are the detection box center point position feature map, the center point confidence map, the length and width of the detection box corresponding to the center point, and the displacement of the center point relative to the previous frame; finally, the target detection result is obtained based on the first three feature maps, and the motion feature for target tracking is obtained based on the fourth feature map.
4. The method according to claim 2, It is characterized in that In the step 2, in the target tracker, the target detection result and the historical tracking trajectory are used as input, and a directed graph based on time and space clues is constructed according to the historical tracking trajectory, the motion features output by the target detector and the spatial clues of the target object in the current frame. Then, a convolution operation is performed on the directed graph using a graph convolutional neural network to obtain features that aggregate information in the time and space dimensions. Finally, based on the feature, the similarity between the target objects is calculated, and the association matching between the target object in the current frame and the existing tracking trajectory is performed to obtain a new tracking trajectory.
5. The method according to claim 1, It is characterized in that In the step 3, the scene feature is obtained by inputting the overhead view of the scene into a convolutional neural network for processing, the agent history trajectory feature is obtained by inputting the agent's history trajectory coordinates into a long short-term memory network for processing, and the destination point feature is obtained by encoding the destination point coordinates through a fully connected layer.
6. The method according to claim 1, It is characterized in that In step 3, the heterogeneous graph constructed for the traffic scene is represented as P = (V, E, A, R), where V is a node set, E is an edge set, A is a node type set, and R is an edge type set; for two traffic participants i and j, if the following spatial association rules and temporal association relationships are satisfied at the same time, an edge is established between the two traffic participants i and j; Spatial association rule: The Euclidean distance between two traffic participants i and j is less than the threshold δ s : Temporal association rule: The distance between the time windows of the historical trajectories of two traffic participants i and j is less than the threshold δ t : Among them, (x i ,y i )、(x j ,y j ) are the position coordinates of traffic participants i and j respectively; They represent the time window lengths of the historical trajectories of traffic participants i and j respectively.
