Multi-target joint detection tracking method based on time sequence representation enhancement and trajectory correction

Through the method of timing representation enhancement and trajectory correction, the problem of trajectory ID changes caused by changes in target appearance and reduced confidence in traditional multi-target tracking methods is solved, improving the accuracy and robustness of detection and tracking, and ensuring trajectory coherence. .

CN118570754AActive Publication Date: 2024-08-30TONGJI UNIV

Patent Information

Application Number
CN202410617427.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2024-08-30
Estimated Expiration
2044-05-17

AI Technical Summary

Technical Problem

Traditional multi-target tracking methods are affected by changes in appearance, occlusion or detection noise during target movement, resulting in reduced target confidence, resulting in changes in trajectory ID, and reducing the accuracy and robustness of the joint detection and tracking model.

Method used

A multi-target joint detection and tracking method based on temporal representation enhancement and trajectory correction is adopted to improve the effectiveness and recognition accuracy of target representation through temporal representation enhancement, and reduce trajectory ID changes caused by reduced confidence through trajectory correction to ensure trajectory coherence. , thereby improving the accuracy and robustness of detection and tracking. Specific steps include surround image and point cloud feature extraction, multi-modal feature fusion, temporal representation enhancement, data association, trajectory prediction and low-confidence trajectory correction.

Benefits of technology

It improves the accuracy and robustness of target detection and tracking, reduces trajectory ID changes, ensures trajectory coherence, and enhances the model's detection and tracking capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570754A
    Figure CN118570754A
Patent Text Reader

Abstract

The invention relates to a multi-target joint detection tracking method based on time sequence representation enhancement and trajectory correction, and the method comprises the steps: collecting a look-around image and a point cloud in a multi-target joint detection tracking process, carrying out the feature extraction, carrying out the fusion of the extracted features, and obtaining a multi-modal fusion feature; performing time sequence representation enhancement on the initialized target query vector of the current frame by using the historical track query vector, performing spatial feature interaction with the multi-modal fusion feature, and then performing target decoding to obtain a target detection result; carrying out data association according to a detection result, and judging whether target identity inheritance is carried out or not to obtain a track ID; updating a historical query vector based on the target trajectory tracked by the current frame, and performing trajectory prediction based on the historical query vector and map information; and according to the classification confidence of the target detection result, correcting the low-confidence trajectory by using the predicted target trajectory. Compared with the prior art, the accuracy and robustness of target detection and tracking are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of autonomous driving environment perception, and in particular to a multi-target joint detection and tracking method based on temporal representation enhancement and trajectory correction. Background Art

[0002] In recent years, with the rapid development of new energy vehicles, intelligent driving technology has also become popular. As one of the three core technologies of the intelligent driving system of automobiles, environmental perception technology is used to perceive the state of the vehicle and the surrounding environment.

[0003] For dynamic targets in road scenes, it is necessary not only to accurately detect the current position, but also to effectively track its trajectory. The basic process of multi-target tracking includes four parts: target positioning, feature extraction, similarity measurement, and data association. Target positioning is achieved through target detection, feature extraction is used for similarity measurement, and data association aims to match the detected target with the corresponding historical trajectory based on the similarity between targets to maintain the target identity. Multi-target tracking methods mainly include detection-based tracking paradigm and joint detection and tracking paradigm. Traditional detection-based tracking methods first perform target detection and then perform multi-target tracking. The calculation speed is fast, but joint optimization cannot be performed. The joint detection and tracking method can achieve joint optimization and is an end-to-end perception algorithm.

[0004] The appearance of the target may change during the movement, which is a great challenge to the robustness of the joint detection and tracking model. The occlusion of the target or other detection noise will significantly reduce the target confidence, causing the target trajectory ID to change, resulting in a decrease in the accuracy and robustness of the joint detection and tracking model. Summary of the invention

[0005] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and to provide a multi-target joint detection and tracking method based on timing representation enhancement and trajectory correction. The timing representation enhancement makes the target representation more effective and the identification more accurate. The trajectory correction reduces the trajectory ID change caused by the reduction of target confidence and makes the trajectory more coherent, thereby improving the accuracy and robustness of detection and tracking.

[0006] The purpose of the present invention can be achieved by the following technical solutions:

[0007] A multi-target joint detection and tracking method based on temporal representation enhancement and trajectory correction includes the following steps:

[0008] In the target tracking process, surround images and point clouds are collected, and features are extracted from the surround images and point clouds respectively. The extracted features are fused to obtain multimodal fusion features. The target query vector initialized in the current frame is enhanced in time series representation using the historical trajectory query vector, and spatial features are interacted with the multimodal fusion features to obtain the target detection result after target decoding.

[0009] Perform data association based on the target detection results, determine whether to inherit the target identity, and obtain the trajectory ID;

[0010] Based on the target trajectory tracked in the current frame, the pre-stored historical query vector is updated, and the trajectory is predicted based on the historical query vector and map information;

[0011] According to the target classification confidence of the target detection result, the predicted target trajectory is used to correct the low-confidence trajectory.

[0012] Furthermore, the process of extracting features from the surround image is specifically as follows:

[0013] Input the surround image into the pre-built feature extraction network to obtain image features The position embedding module projects the position coordinates of the 3D space corresponding to the surround image into a higher-dimensional feature space to obtain the 3D position feature encoding. Encode 3D position features through the fusion module Incorporating image features In the above example, we obtain the image features of 3D perception.

[0014] Furthermore, the process of feature extraction of point cloud is as follows:

[0015] Through the pre-built point cloud feature extraction network, feature extraction is performed on the point cloud data of the current frame to obtain point cloud features.

[0016] Furthermore, the process of enhancing the temporal representation is specifically as follows:

[0017] The historical trajectory query vector is aligned to the current frame through motion compensation and motion feature embedding, and then the feature interaction is performed with the query vector of the current frame based on the temporal attention mechanism. The calculation expression of the feature interaction is:

[0018]

[0019] In the formula, is the feature query vector obtained after temporal representation enhancement, TA(·) is the temporal attention module; motion guidance is implemented by embedding motion features; the query vector is defined based on the Transformer attention architecture, and the query vector Q is composed of the feature query vector Q c and the position query vector Qp composition; and They are the feature query vector and position embedding query vector input before temporal enhancement of the i-th layer of the L-layer Transformer model; when i = 0, is the initial query vector of the current frame, which is the initial input of the temporal attention module; and They are the historical feature query vector and the historical location query vector respectively, and the corresponding calculation expressions are:

[0020]

[0021] Where cct(·) is the concatenation operation, and They are k h The position embedding query vector and feature query vector of each historical frame.

[0022] Furthermore, the motion compensation is specifically: transforming the historical position query vector to the current frame through the vehicle posture, and then embedding the position. The corresponding calculation expression is:

[0023]

[0024] Where Ψ(·) is the motion compensation operator; is the historical location query vector, is the vehicle posture in the historical frame. After motion compensation, the posture transformation matrix from the historical frame to the current frame is obtained. and historical location query vector ε(·) is the position embedding module, aligned to the historical position query vector of the current frame Then perform position embedding to obtain the historical position embedding query vector Historical feature query vector Remains unchanged when aligned to the current frame;

[0025] The motion feature embedding is specifically as follows:

[0026] The pose transformation matrix, inter-frame time difference, and target prediction speed are embedded into the query vector through the affine transformation in the layer normalization process. The corresponding calculation expression is:

[0027]

[0028] Where LN(·) represents the layer normalization operator without learnable affine transformation parameters, and the calculation expressions of parameters α and β are:

[0029]

[0030] Where M is the motion feature, including the product of the time difference between frames and the target predicted speed, and the transformation matrix from the historical frame to the current frame; the motion feature M is first transformed into a motion feature vector through the same linear layer L0, and then passes through different linear layers L1 and L2 to obtain the affine transformation coefficients α and β with motion features.

[0031] Furthermore, the current frame initial query vector The query vector of the previous frame aligned to the current frame and the initialized query vector The corresponding calculation expression is:

[0032]

[0033] Where cct(·) is the concatenation operation; Initialized by the position query vector Perform position embedding to obtain, is a zero-feature query vector of the same shape as the position query vector, and the corresponding calculation expression is:

[0034]

[0035] Where ε(·) is the position embedding module and zero_like(·) is an operator that generates all-zero vectors of the same shape.

[0036] Furthermore, the calculation expression of the spatial feature interaction is:

[0037]

[0038] In the formula, is the feature query vector obtained after spatial feature interaction; SA(·) is the spatial attention module; is the feature query vector output by the Lth layer of the Transformer model of the temporal representation enhancement module; the position embedding query vectors in different Transformer layers remain unchanged, that is, It is the multimodal fusion feature of the current frame.

[0039] Furthermore, the data association adopts different association strategies in the model training stage and the inference stage to obtain the target number ID;

[0040] The expression of the association strategy of the data association in the model training stage is:

[0041]

[0042] In the formula, for the target with ID in the current frame, if the i-th target at time t-1 In the current frame, the true value ID set In the current frame, the target inherits the ID of the previous frame and marks the target as active. If the target ID is not in the current frame true value ID set , then determine the number of frames that are not in the true value ID set With the frame number threshold l X If it is less than the threshold, the target ID of the previous frame is inherited. The target is marked as inactive deact. If it is greater than the threshold, it is considered that the target has left the field of view and the corresponding track is deleted. For targets without identity information in the current frame, the predicted box is judged to be a real target based on the intersection over union (IoU) of the predicted box and the true target bounding box that did not appear in the previous frame. If the IoU is greater than the threshold, the true value ID is assigned to the predicted box and its state is set to active act. If the IoU is less than the threshold, it is considered a false positive FP.

[0043] The expression of the association strategy of the data association in the model reasoning stage is:

[0044]

[0045] In the formula, if the classification confidence s corresponds to the trajectory query vector, then the classification confidence obtained by decoding is Greater than the threshold ∈ trk is considered as the real target and inherits the trajectory of the previous frame Less than the threshold ∈ trk FP; if the classification confidence s corresponds to the initialized query vector, the classification confidence obtained by decoding is Greater than the threshold ∈ init When it is regarded as a real target, a new ID is assigned, which is less than the threshold ε init It is considered as a false positive FP.

[0046] Furthermore, the trajectory prediction process is specifically as follows: based on the stored historical query vector, the trajectory of the future kf frame is predicted by the prediction module, and the corresponding calculation expression is:

[0047]

[0048] Where Γ(·) is the map information encoding module, I map It is map information. First, the map information encoding module is used to encode the map information to obtain map encoding information, and then the historical feature query vector is used and map encoding feature F m , predict the future κ through the temporal attention module TA(·) f The query vector of the frame Finally, the multi-layer perception module MLP(·) is used to decode the future κ fFrame target motion

[0049] Furthermore, the calculation expression for correcting the low-confidence trajectory using the predicted target trajectory is:

[0050]

[0051] In the formula, whether trajectory correction is needed is determined based on the target classification confidence predicted by the model. If the target classification confidence is Greater than the threshold ∈ r , then use the predicted trajectory to query the current frame vector and Passed to the next frame and Using the trajectory extension operator Get the t+κth f +1 frame of movement, and continuously correct the target trajectory by the number of frames Return to zero; if the target classification confidence Less than the threshold ∈ r , then first determine whether the number of consecutive correction frames of the target trajectory is less than the threshold ∈ L , if the target trajectory is continuously corrected by the number of frames Less than the threshold ∈ L , the target is considered to have temporarily left the field of view, the trajectory is retained, and the target query vector is transferred to the next frame using the trajectory extended from the previous frame, and the trajectory extension operator is used Get the t+κth f +1 frame of movement, if the target trajectory continuously corrects the frame number Greater than the threshold ∈ L , the target is considered to have left the field of view and the corresponding track is deleted.

[0052] Furthermore, during the model training process of the method, the detection part of the model is first trained on a single frame, and then the entire model is jointly trained on multiple frames; the model training process includes data augmentation of the model input; during single-frame training, the data augmentation includes scaling, cropping, flipping, rotation, and translation, and during multi-frame training, the data augmentation includes scaling and cropping.

[0053] Compared with the prior art, the present invention has the following advantages:

[0054] (1) The present invention includes the following steps: in the process of multi-target joint detection and tracking, surround images and point clouds are collected, features are extracted from the surround images and point clouds respectively, and the extracted features are fused to obtain multimodal fusion features; the target query vector initialized in the current frame is enhanced in time series representation by using the historical trajectory query vector, and spatial feature interaction is performed with the multimodal fusion feature, and then the target is decoded to obtain the target detection result; data association is performed according to the target detection result to determine whether to inherit the target identity and obtain the trajectory ID; based on the target trajectory tracked in the current frame, the pre-stored historical query vector is updated, and the trajectory is predicted based on the historical query vector and map information; according to the target classification confidence of the target detection result, the low-confidence trajectory is corrected using the predicted target trajectory.

[0055] This solution makes target representation more effective and identification more accurate by enhancing the temporal representation of multimodal fusion features, and uses the predicted trajectory to correct the low-confidence trajectory to reduce the trajectory ID change and make the trajectory more coherent, thereby improving the accuracy and robustness of target detection and tracking.

[0056] (2) The present invention first performs single-frame training on the detection part of the model, and then performs multi-frame joint training on the entire model. This training method is conducive to model convergence and can speed up model training.

[0057] (3) The present invention performs various augmentations on the input data when training the model. When training the detection part of a single frame, augmentation methods such as scaling, cropping, flipping, rotation, and translation are used. When training multiple frames together, augmentation methods such as scaling and cropping are used to increase the diversity of the input data and enhance the accuracy and robustness of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 A schematic flow chart of a multi-target joint detection and tracking method based on time series representation enhancement and trajectory correction provided in an embodiment of the present invention;

[0059] Figure 2 A schematic diagram of a model structure of a multi-target joint detection and tracking method based on time series representation enhancement and trajectory correction provided in an embodiment of the present invention;

[0060] Figure 3 The present invention is a flowchart of a motion-guided time alignment method provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0061] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0062] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0063] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0064] Example 1

[0065] This embodiment provides an end-to-end multi-target joint detection and tracking method based on time series representation enhancement and trajectory correction, including the following steps:

[0066] S1: In the process of multi-target tracking, surround images and point clouds are collected, and features are extracted from the surround images and point clouds respectively. The extracted features are fused to obtain multimodal fusion features. The target query vector initialized in the current frame is enhanced in time series representation using the historical trajectory query vector, and spatial features are interacted with the multimodal fusion features, and then the target is decoded to obtain the target detection result.

[0067] S2: Perform data association based on the target detection results, determine whether to inherit the target identity, and obtain the trajectory ID;

[0068] S3: Based on the target trajectory tracked in the current frame, the pre-stored historical query vector is updated, and the trajectory prediction is performed based on the historical query vector and map information;

[0069] S4: According to the target classification confidence of the target detection result, the low confidence trajectory is corrected using the predicted target trajectory.

[0070] Specifically, in step S1, the feature extraction and multimodal feature fusion of the surround image and point cloud are performed first, and then the motion-guided temporal representation enhancement and spatial feature interaction are performed. Finally, the target is decoded to obtain the prediction box, category and confidence.

[0071] First, the current frame surround image passes through the feature extraction network and then integrates into the 3D position embedding to obtain the 3D perceived image features, that is,

[0072]

[0073] In the formula, It is a feature extraction network, including the backbone network and feature fusion network. Input feature extraction network to get image features Then, the position coordinates of the 3D space are projected into a higher-dimensional feature space through the position embedding module, ε(·), to obtain the 3D position feature encoding. The 3D position is then embedded into the image features through the fusion module φ(·) to obtain 3D-aware image features.

[0074] The current frame point cloud is passed through the feature extraction network to obtain the point cloud features:

[0075]

[0076] In the formula, is the point cloud feature extraction network, P t is the point cloud data of the current frame.

[0077] As an optional implementation, the point cloud feature extraction network is a SECOND model.

[0078] The 3D-perceived image features and point cloud features are fused through the multimodal feature fusion module:

[0079]

[0080] Where Θ(·) is the multimodal feature fusion network, It is the multimodal fusion feature of the current frame.

[0081] Then, the historical trajectory query vector is aligned to the current frame through motion compensation and motion feature embedding, and then feature interaction is performed with the current frame query vector based on the temporal attention mechanism:

[0082]

[0083] In the formula, is the feature query vector obtained after temporal representation enhancement, TA(·) is the temporal attention module; the query vector is defined based on the Transformer attention architecture, and the query vector Q is composed of the feature query vector Q c and the position query vector Q p composition; and They are the feature query vector and position embedding query vector input before temporal enhancement of the i-th layer of the L-layer Transformer model; when i=0, is the initial query vector of the current frame, which is the initial input of the temporal attention module; and are the historical feature query vector and the historical location query vector, respectively, which are obtained by the following formulas:

[0084]

[0085] Where cct(·) is the concatenation operation, and They are κ h The position embedding query vector and feature query vector of each historical frame.

[0086] As an optional implementation, the number of layers L of the Transformer model is 6.

[0087] As an optional implementation, motion compensation is to transform the historical position query vector in the storage module to the current frame through the vehicle posture, and then perform position embedding, that is:

[0088]

[0089] Where Ψ(·) is the motion compensation operator; is the historical location query vector, is the vehicle posture in the historical frame. After motion compensation, the posture transformation matrix from the historical frame to the current frame is obtained. Historical location query vector ε(·) is the position embedding module, which aligns to the historical position query vector of the current frame and then performs position embedding to obtain the historical position embedding query vector Historical feature query vector Remains unchanged when snapping to the current frame.

[0090] As an optional implementation, Figure 3 As shown in the figure, motion feature embedding is to embed the pose transformation matrix, inter-frame time difference, and target prediction speed into the query vector through the affine transformation in the layer normalization process, that is:

[0091]

[0092] Where LN(·) represents the layer normalization operator without learnable affine transformation parameters; the parameters α and β are obtained as follows:

[0093]

[0094] Where M is the motion feature, including the product of the time difference between frames and the target predicted speed, and the transformation matrix from the historical frame to the current frame; the motion feature M is first transformed into a motion feature vector through the same linear layer L0, and then passes through different linear layers L1 and L2 to obtain the affine transformation coefficients α and β with motion features.

[0095] As an optional implementation, the initial query vector of the current frame The query vector of the previous frame aligned to the current frame and the initialized query vector Spliced ​​together, that is

[0096]

[0097] Where cct(·) is the concatenation operation; Initialized by the position query vector Perform position embedding to obtain, is a zero-feature query vector of the same shape as the position query vector, that is:

[0098]

[0099] Where ε(·) is the position embedding module and zero_like(·) is an operator that generates all-zero vectors of the same shape.

[0100] Then, the feature query vector after temporal representation enhancement Further integrate the multimodal features of the current frame To interact with spatial features:

[0101]

[0102] Where SA(·) is the spatial attention module; is the feature query vector output by the Lth layer of the Transformer model of the temporal representation enhancement module; the position embedding query vectors in different Transformer layers remain unchanged, that is, It is the multimodal fusion feature of the current frame.

[0103] Finally, the feature query vector obtained after the spatial feature interaction is used to obtain the target prediction box, category and confidence through the target decoding module:

[0104]

[0105] In the formula, is the decoding module of the model, It is the feature query vector output by the L-th layer Transformer of the spatial feature interaction module.

[0106] In step S2, data association is performed on the detected target to obtain a track ID.

[0107] Specifically, different association strategies are used to obtain the target ID in the model training phase and the inference phase.

[0108] As an optional implementation, the association strategy of data association in the model training phase is:

[0109]

[0110] In the formula, for the target with ID in the current frame, if the i-th target at time t-1 In the current frame, the true value ID set In the current frame, the target inherits the ID of the previous frame and marks the target as active. If the target ID is not in the current frame true value ID set , then determine the number of frames that are not in the true value ID set With the frame number threshold l X If it is less than the threshold, the target ID of the previous frame is inherited. The target is marked as inactive deact. If it is greater than the threshold, it is considered that the target has left the field of view and the track is deleted. For targets without identity information in the current frame, the intersection over union (IoU) of the predicted box and the true target bounding box that did not appear in the previous frame is used to determine whether it is a real target. If the IoU is greater than the threshold, the true value ID is assigned to the predicted box and its state is set to active act. If the IoU is less than the threshold, it is considered a false positive FP.

[0111] As an optional implementation, the association strategy of data association in the model reasoning stage is:

[0112]

[0113] In the formula, if the classification confidence s corresponds to the trajectory query vector, then the classification confidence obtained by decoding is Greater than the threshold ∈ trk is considered as the real target and inherits the trajectory of the previous frame Less than the threshold ∈ trk FP; if the classification confidence s corresponds to the initialized query vector, the classification confidence obtained by decoding is Greater than the threshold ∈ init When it is regarded as a real target, a new ID is assigned, which is less than the threshold ε init It is considered as a false positive FP.

[0114] As an optional implementation, the classification confidence threshold ∈ trk and ∈ init Take 0.2 and 0.3 respectively.

[0115] In step S3, the storage module is first updated and then trajectory prediction is performed based on the historical query vector and combined with map information.

[0116] Specifically, first, the predicted targets are sorted based on the predicted category confidence, the top k targets are selected, their corresponding query vectors are added to the storage module, and all target query vectors of the earliest frame in the storage module are deleted:

[0117]

[0118] As an optional implementation, the storage module adopts a first-in-first-out strategy to store historical information, and the stored historical information includes N historical frames and k trajectory query vectors in each frame.

[0119] As an optional implementation, the first 256 targets are selected for storage, the number of historical frames N stored is 4, and the number k of trajectory query vectors per frame is 256.

[0120] Then, based on the historical query vectors in the storage module, the prediction module predicts the future k f The trajectory of the frame is predicted:

[0121]

[0122] Where Γ(·) is the map information encoding module, I map It is map information. First, the map information encoding module is used to encode the map information to obtain map encoding information, and then the historical feature query vector is used and map encoding feature F m , predict the future κ through the temporal attention module TA(·) f The query vector of the frame Finally, the multi-layer perception module MLP(·) is used to decode the future κ f Frame target motion

[0123] In step S4, the low confidence trajectory is corrected using the predicted trajectory.

[0124] Specifically, first, determine whether trajectory correction is needed based on the target classification confidence predicted by the model:

[0125]

[0126] If the target classification confidence Greater than the threshold ∈ r , then there is no need to perform trajectory correction, and the current frame query vector is converted using the predicted trajectory and Passed to the next frame and Using the trajectory extension operator Get the t+kth f +1 frame of movement, and continuously correct the target trajectory by the number of frames If the target classification confidence Less than the threshold ∈ r , then trajectory correction is required. First determine whether the number of consecutive correction frames of the target trajectory is less than the threshold ∈ L , if the target trajectory is continuously corrected by the number of frames Less than the threshold ∈ L , the target is considered to have temporarily left the field of view, the trajectory is retained, and the target query vector is transferred to the next frame using the extended trajectory of the previous frame, replacing the low-confidence trajectory of the current frame, and the trajectory extension operator is used Get the t+kth f +1 frame of movement; if the target trajectory is continuously corrected Greater than the threshold ∈ L , the target is considered to have left the field of view and the track is deleted.

[0127] As an optional implementation, the classification confidence threshold ∈ r And the continuous correction frame number threshold ∈ L 0.2 and 8 respectively.

[0128] As an optional implementation, the trajectory predicts the number of future frames κ f The value is 8.

[0129] As an optional implementation, the model training process includes first performing single-frame training on the detection part of the model, and then performing multi-frame joint training on the entire model. At least 2 frames of data, preferably 3 frames of data, are required for joint training of the detection and tracking model. Through joint optimization, the detection and tracking parts can promote each other and improve the detection and tracking accuracy of the model.

[0130] As an optional implementation, the loss function used in the model training process is:

[0131]

[0132] In the formula, is the focal loss, which is used to supervise the classification of targets in the target detection module, and its coefficient is The value is 1.0; is the L1 loss, which is used to supervise the regression of the target prediction box in the target detection module, and its coefficient is The value is 1.0; is the L1 loss, which is used to supervise the prediction of trajectories in the trajectory prediction module, and its coefficient is The value is 0.2.

[0133] As an optional implementation, the model training process includes data augmentation of the model input to increase the diversity of the input data and improve the robustness of the model.

[0134] As an optional implementation, different augmentation methods are used in single-frame and multi-frame training, including scaling, cropping, flipping, rotation, and translation in single-frame training, and scaling and cropping in multi-frame training.

Claims

1. A multi-target joint detection and tracking method based on temporal representation enhancement and trajectory correction, characterized in that: The following steps are involved: In the target tracking process, surround images and point clouds are collected, and features are extracted from the surround images and point clouds respectively. The extracted features are fused to obtain multimodal fusion features. The target query vector initialized in the current frame is enhanced in time series representation using the historical trajectory query vector, and spatial features are interacted with the multimodal fusion features to obtain the target detection result after target decoding. Perform data association based on the target detection results, determine whether to inherit the target identity, and obtain the trajectory ID; Based on the target trajectory tracked in the current frame, the pre-stored historical query vector is updated, and the trajectory is predicted based on the historical query vector and map information; According to the target classification confidence of the target detection result, the predicted target trajectory is used to correct the low-confidence trajectory.

2. According to claim 1, a multi-target joint detection and tracking method based on time series representation enhancement and trajectory correction is characterized in that: The process of feature extraction for surround view images is as follows: Input the surround image into the pre-built feature extraction network to obtain image features The position embedding module projects the position coordinates of the 3D space corresponding to the surround image into a higher-dimensional feature space to obtain the 3D position feature encoding. Encode 3D position features through the fusion module Incorporating image features In the above example, we obtain the image features of 3D perception.

3. The multi-target joint detection and tracking method based on time series representation enhancement and trajectory correction according to claim 1 is characterized in that: The process of enhancing the temporal representation is specifically as follows: The historical trajectory query vector is aligned to the current frame through motion compensation and motion feature embedding, and then the feature interaction is performed with the query vector of the current frame based on the temporal attention mechanism. The calculation expression of the feature interaction is: In the formula, is the feature query vector obtained after temporal representation enhancement, TA(·) is the temporal attention module; motion guidance is implemented by embedding motion features; the query vector is defined based on the Transformer attention architecture, and the query vector Q is composed of the feature query vector Q c and the position query vector Q p composition; and They are the feature query vector and position embedding query vector input before temporal enhancement in the i-th layer of the L-layer Transformer model; When i=0, is the initial query vector of the current frame, which is the initial input of the temporal attention module; and They are the historical feature query vector and the historical location query vector respectively, and the corresponding calculation expressions are: Where cct(·) is the concatenation operation, and They are κ h The position embedding query vector and feature query vector of each historical frame.

4. The multi-target joint detection and tracking method based on temporal representation enhancement and trajectory correction according to claim 3 is characterized in that: The motion compensation is specifically: The historical position query vector is transformed to the current frame through the vehicle posture, and then the position is embedded. The corresponding calculation expression is: Where Ψ(·) is the motion compensation operator; is the historical location query vector, is the vehicle posture in the historical frame. After motion compensation, the posture transformation matrix from the historical frame to the current frame is obtained. and historical location query vector ε(·) is the position embedding module, aligned to the historical position query vector of the current frame Then perform position embedding to obtain the historical position embedding query vector Historical feature query vector Remains unchanged when aligned to the current frame; The motion feature embedding is specifically as follows: The pose transformation matrix, inter-frame time difference, and target prediction speed are embedded into the query vector through the affine transformation in the layer normalization process. The corresponding calculation expression is: Where LN(·) represents the layer normalization operator without learnable affine transformation parameters, and the calculation expressions of parameters α and β are: Where M is the motion feature, including the product of the time difference between frames and the target predicted speed, and the transformation matrix from the historical frame to the current frame; the motion feature M is first transformed into a motion feature vector through the same linear layer L0, and then passes through different linear layers L1 and L2 to obtain the affine transformation coefficients α and β with motion features.

5. The multi-target joint detection and tracking method based on temporal representation enhancement and trajectory correction according to claim 3 is characterized in that: The current frame initial query vector The query vector of the previous frame aligned to the current frame and the initialized query vector The corresponding calculation expression is: Where cct(·) is the concatenation operation; Initialized by the position query vector Perform position embedding to obtain, is a zero-feature query vector of the same shape as the position query vector, and the corresponding calculation expression is: Where ε(·) is the position embedding module and zero_like(·) is an operator that generates all-zero vectors of the same shape.

6. The multi-target joint detection and tracking method based on temporal representation enhancement and trajectory correction according to claim 1 is characterized in that: The calculation expression of the spatial feature interaction is: In the formula, is the feature query vector obtained after spatial feature interaction; SA(·) is the spatial attention module; is the feature query vector output by the Lth layer of the Transformer model of the temporal representation enhancement module; the position embedding query vectors in different Transformer layers remain unchanged, that is, It is the multimodal fusion feature of the current frame.

7. The multi-target joint detection and tracking method based on time series representation enhancement and trajectory correction according to claim 1 is characterized in that: The data association adopts different association strategies in the model training stage and the inference stage to obtain the target ID; The expression of the association strategy of the data association in the model training stage is: In the formula, for the target with ID in the current frame, if the i-th target at time t-1 In the current frame, the true value ID set In the current frame, the target inherits the ID of the previous frame and marks the target as active. If the target ID is not in the current frame true value ID set , then determine the number of frames that are not in the true value ID set With the frame number threshold l X If it is less than the threshold, the target ID of the previous frame is inherited. The target is marked as inactive deact. If it is greater than the threshold, it is considered that the target has left the field of view and the corresponding track is deleted. For targets without identity information in the current frame, the predicted box is judged to be a real target based on the intersection over union (IoU) of the predicted box and the true target bounding box that did not appear in the previous frame. If the IoU is greater than the threshold, the true value ID is assigned to the predicted box and its state is set to active act. If the IoU is less than the threshold, it is considered a false positive FP. The expression of the association strategy of the data association in the model reasoning stage is: In the formula, if the classification confidence s corresponds to the trajectory query vector, then the classification confidence obtained by decoding is Greater than the threshold ∈ trk is considered as the real target and inherits the trajectory of the previous frame Less than the threshold ∈ trk FP; if the classification confidence s corresponds to the initialized query vector, the classification confidence obtained by decoding is Greater than the threshold ∈ init When it is regarded as a real target, a new ID is assigned, and it is less than the threshold ∈ init It is considered as a false positive FP.

8. The multi-target joint detection and tracking method based on temporal representation enhancement and trajectory correction according to claim 1 is characterized in that: The trajectory prediction process is specifically as follows: based on the stored historical query vector, the prediction module predicts the future k f The trajectory of the frame is predicted, and the corresponding calculation expression is: Where Γ(·) is the map information encoding module, I map It is map information. First, the map information encoding module is used to encode the map information to obtain map encoding information, and then the historical feature query vector is used and map encoding feature F m , predict the future k through the temporal attention module TA(·) f The query vector of the frame Finally, the multi-layer perception module MLP(·) is used to decode the future κ f Frame target motion 9. The multi-target joint detection and tracking method based on time series representation enhancement and trajectory correction according to claim 1 is characterized in that: The calculation expression for correcting the low confidence trajectory using the predicted target trajectory is: In the formula, whether trajectory correction is needed is determined based on the target classification confidence predicted by the model. If the target classification confidence is Greater than the threshold ∈ r , then use the predicted trajectory to query the current frame vector and Passed to the next frame and Using the trajectory extension operator Get the t+κth f +1 frame of movement, and continuously correct the target trajectory by the number of frames Return to zero; if the target classification confidence Less than the threshold ∈ r , then first determine whether the number of consecutive correction frames of the target trajectory is less than the threshold ∈ L , if the target trajectory is continuously corrected by the number of frames Less than the threshold ∈ L , the target is considered to have temporarily left the field of view, the trajectory is retained, and the target query vector is transferred to the next frame using the trajectory extended from the previous frame, and the trajectory extension operator is used Get the t+κth f +1 frame of movement, if the target trajectory continuously corrects the frame number Greater than the threshold ∈ L , the target is considered to have left the field of view and the corresponding track is deleted.

10. The multi-target joint detection and tracking method based on temporal representation enhancement and trajectory correction according to claim 1, characterized in that: During the model training process of the method, the detection part of the model is firstly trained with a single frame, and then the entire model is jointly trained with multiple frames; the model training process includes data augmentation of the model input; during single-frame training, the data augmentation includes scaling, cropping, flipping, rotating, and translating, and during multi-frame training, the data augmentation includes scaling and cropping.

Citation Information

Patent Citations

  • Improved kernel-related filtering tracking method based on ultra-pixel optical flow and self-adaptive learning factor

    CN108090919A

  • Pedestrian multi-target tracking method and device and computer readable storage medium

    CN115240130A

  • Multi-target cyclic detection tracking method and system based on motion compensation and linkage

    CN116758119A

  • Multi-target tracking method based on fusion information association and camera motion compensation

    CN117036397A

  • Apparatus and methods for driver assistance and vehicle control

    WO2023129646A2

Cited By

  • Automatic driving end-to-end trajectory prediction method based on look-around fisheye camera

    CN119370120A

  • An End-to-End Trajectory Prediction Method for Autonomous Driving Based on Surround-Looking Fisheye Cameras

    CN119370120B

  • Method and system for predicting track of vulnerable road user based on motion query enhancement

    CN120216607A

  • 3D point cloud semantic segmentation method and system based on adaptive space-time aggregation enhancement

    CN120451572A

  • Target tracking method, device and equipment

    CN120635760A