Satellite video multi-vehicle online tracking method and device based on motion tracking Transformer
By introducing the trajectory prediction head and Transformer encoder into satellite video multi-vehicle tracking, and combining the trajectory query and target query results, the problem of vehicle trajectory jumping in the high-altitude field of view is solved, and tracking accuracy and continuity are improved.
Patent Information
- Application Number
- CN202310682680.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-09
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-06-09
AI Technical Summary
Existing satellite video multi-vehicle tracking methods are prone to target trajectory jumps due to background object occlusion in high-altitude fields of view. Existing technologies are difficult to effectively utilize inter-frame information, resulting in poor tracking results.
Using a method based on motion tracking Transformer, the trajectory prediction head is introduced, the trajectory query result and the target query result are generated through the Transformer encoder and decoder, and the two are fused to generate the final tracking query result, supplementing the position of the occluded target, and improving tracking accuracy sex.
It effectively improves the vehicle tracking effect of satellite video, reduces the occurrence of jump trajectories, enhances the prediction ability of the location of occluded targets, and improves the accuracy and continuity of multi-vehicle online tracking.
Smart Images

Figure CN117132788B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of earth observation technology, and in particular to a method and device for online tracking of multiple vehicles using satellite video based on a motion tracking Transformer. Background Art
[0002] Remote sensing image processing plays an important role in earth observation systems. As a new type of remote sensing image data, satellite video is of great significance in military, commercial, engineering and other fields. The purpose of the MOT task is to find the location of the target and the trajectory identity across frames in the video. There are two main categories of popular methods: detection-based tracking (DBT) and joint detection and tracking (JDT).
[0003] The tracking process of the DBT-based MOT method can generally be divided into two steps: (1) First, an off-the-shelf target detector (such as Faster RCNN) is used to obtain the detection results of the target in each frame. (2) Then, a separate data association method is used to construct the identity of the target across frames. The processing of the data association method generally includes two key points: similarity measurement and matching. Currently popular similarity measurement methods include methods based on appearance features, methods based on intersection-over-union (IOU), and methods based on motion similarity. The most widely used matching algorithm is the Hungarian algorithm. Since each step is independent, appropriate methods can be specifically designed for each stage. However, the ability of DBT-based methods to utilize inter-frame information is limited.
[0004] Recently, JDT-based methods have emerged. Some of these methods complete the MOT task by simultaneously optimizing object detection and identity embedding / re-identification (ReID) losses in a single network. These methods usually use anchor-based detectors (such as Mask R-CNN) to complete object localization, while adding ReID losses to complete identity links across frames. CenterTrack proposes a point-based joint detection and tracking framework. CenterTrack is based on the CenterNet detector and completes the MOT task by simultaneously optimizing the center-based object detection loss, the bounding box regression loss based on the object size, and the loss based on the object offset between two adjacent frames. However, the above methods usually run in the current frame. Considering that the detector may miss the detection in subsequent frames, TraDeS is proposed. TraDeS estimates the offset distance of the tracked object based on the matching cost, extracts the features of the object through forward propagation, and improves the detection of the current object in the last frame. TGraM improves TraDeS through a graph-based structure. These methods have a certain ability to utilize inter-frame information.
[0005] In satellite videos, when the target is a vehicle, it is often blocked by background objects such as viaducts due to the high-altitude field of view. Existing MOT trackers usually produce jumping trajectories. Summary of the invention
[0006] The embodiment of the present application provides a method and device for online tracking of multiple vehicles using satellite video based on motion tracking Transformer, and proposes a tracking method that uses short-term memory information to predict the position of an occluded target, introduces a trajectory prediction head, and generates a predicted trajectory. During the tracking process, the target detection head and the trajectory prediction head simultaneously generate a target query and a trajectory query, respectively. The trajectory query will supplement the occluded objects in the target query, thereby improving the tracking effect of satellite video on vehicles.
[0007] The present application embodiment provides a satellite video multi-vehicle online tracking method based on motion tracking Transformer, which is characterized by comprising:
[0008] Acquire a remote sensing video sequence containing multiple targets with different identities;
[0009] Extracting feature information of the remote sensing video sequence using a CNN backbone network;
[0010] The extracted feature information is encoded using the self-attention module of the Transformer encoder;
[0011] At the decoder, the three previous tracking query results are respectively input into the three sequential attention modules of the decoder to learn the trajectory of each target, and the outputs of the three sequential attention modules and the encoded features are input into another attention module of the decoder to complete the decoding of the continuous query target;
[0012] The decoder output is mapped by two FFN-based output heads to generate a tracking query result for each visible or occluded target, wherein the tracking query result includes a prediction of the target's bounding box, category, and ID, wherein the two FFN-based output heads are used to perform trajectory query and generate trajectory query results based on the outputs formed by three sequential attention modules, and to perform target query and generate target query results based on the output formed by another attention module, and the fusion of the trajectory query result and the target query result is the tracking query result.
[0013] Optionally, the network framework of the satellite video multi-vehicle online tracking method includes a CNN backbone network, a Transformer encoder, a decoder and two FFN-based output heads arranged in sequence;
[0014] The decoder includes four attention modules arranged in series, wherein the first three attention modules serve as three sequential attention modules of the decoder, and the last one serves as another attention module of the decoder, and two FFN-based output heads are respectively set at the outputs of the three sequential attention modules and the output of the another attention module.
[0015] Optionally, the inputs of the three sequential attention modules of the decoder are specifically three tracking query results of three previous adjacent moments.
[0016] Optionally, generating a tracking query result for each visible or obscured target specifically includes:
[0017] In the case where the track query result is consistent with the target query result, the tracking query result finally output is the same as the target query result;
[0018] In the case where the trajectory query result is inconsistent with the target query result:
[0019] If there is a new target, a new identifier is assigned to the new target and added to the tracking query results;
[0020] If there is a missing object in the target query result, and a corresponding bounding box is still generated in the track query result, the bounding box of the missing object is supplemented in the final output tracking query result;
[0021] If the corresponding target cannot be detected in the trajectory query results of multiple consecutive adjacent moments, the corresponding target is regarded as an out-of-line target, and the bounding box of the out-of-line target is deleted in the final tracking query result.
[0022] Optionally, complete network training as follows:
[0023] Set corresponding loss functions for the two FFN-based output heads and detect the loss and predicted loss ,in:
[0024] Detection loss Defined as, when the matching output query When is the sum of the bounding box and classification losses for each query, where
[0025]
[0026] in, is the predicted class, is the predicted bounding box, Indicates i The bounding box of the target detected during tracking, represents the bounding box regression loss between the predicted box and the ground truth in DETR, Indicates i The sum of bounding box and classification losses for each query, Indicates the Nth matching target, Indicates the number of bounding boxes containing visible objects and occluded objects in the last frame;
[0027] The prediction loss is defined as,satisfying,
[0028]
[0029] Among them, is the number of tracking boxes containing visible objects and occluded objects in the last frame.
[0030] An embodiment of the present application also proposes a satellite video multi-vehicle online tracking device based on a motion tracking Transformer, including a processor and a memory, wherein a computer program is stored on the memory, and when the computer program is executed by the processor, the steps of the satellite video multi-vehicle online tracking method based on a motion tracking Transformer as described above are implemented.
[0031] An embodiment of the present application also proposes a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the satellite video multi-vehicle online tracking method based on motion tracking Transformer as described above are implemented.
[0032] The embodiment of the present application proposes a tracking method that uses short-term memory information to predict the position of an occluded target, introduces a trajectory prediction head, generates a predicted trajectory and supplements target queries, and improves the tracking effect of satellite video on the vehicle.
[0033] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0035] Figure 1 This is an overall process example of the satellite video multi-vehicle online tracking method according to an embodiment of the present application;
[0036] Figure 2 This is an example of the basic process of the satellite video multi-vehicle online tracking method according to an embodiment of the present application;
[0037] Figure 3 This is an example of a decoder architecture for the satellite video multi-vehicle online tracking method according to an embodiment of the present application. DETAILED DESCRIPTION
[0038] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0039] Transformer has been widely used since it was proposed in 2017. It has not only become a unifying paradigm in the field of natural language processing (NLP), but has also been applied to some visual fields such as image classification, object detection, and behavior recognition.
[0040] Detection Transformer (DETR) treats object detection as a collective prediction problem. DETR is divided into four parts, including the Convolutional Neural Network (CNN) backbone, the Transformer encoder, the Transformer decoder, and the Feed Forward Network (FFN) used as the last prediction layer. The FFN prediction box normalizes the center coordinates, height, and width, and then uses the Softmax function to activate the predicted class label.
[0041] The bipartite graph matching uses the Hungarian algorithm, that is, the predicted set elements correspond to the real set elements one by one to minimize the matching loss:
[0042] (1)
[0043] (2)
[0044] in represents the true bounding box, represents the predicted bounding box, represents the predicted category, Indicates the situation when no target is detected. is the index of the category. is the matching loss between the actual and predicted results. First, the probability of the corresponding prediction of the target category is obtained for the non-background objects, and then the predicted category probability is subtracted from the bounding box loss. The target bounding box regression loss is the weighted sum of the IOU loss and the L1 loss:
[0045] (3)
[0046] (4)
[0047] Based on this, the embodiment of the present application provides a satellite video multi-vehicle online tracking method based on motion tracking Transformer. In some embodiments, the network framework of the satellite video multi-vehicle online tracking method includes a sequentially arranged CNN backbone network, a Transformer encoder, a decoder, and two FFN-based output heads. Figure 1 As shown, it is similar to DETR, except that the input of the decoder in the embodiment of the present application not only includes features from the encoder, but also introduces prior tracking query information for multiple adjacent decoded outputs based on multiple sequential attention modules, and introduces a trajectory prediction head, through which two types of queries can be generated from the decoder. The two FFN-based output heads function as follows: Using these two output heads, two queries will be generated. The first type is the target query generated by the detection head and matching method in DETR. The second type is the trajectory query generated by the trajectory prediction head after the tracking query is input in the last 3 frames. The final tracking query of the current frame is a combination of the target query and the trajectory query. Specifically, Figure 2 As shown, the satellite video multi-vehicle online tracking method of the present application includes the following steps:
[0048] In step S201, a remote sensing video sequence containing multiple target vehicles with different identities is obtained. For example, given a video sequence of K targets with different identities, the multi-target tracking task needs to generate a tracking track containing a bounding box and an identity id (K). A subset of Recording the time series of the target from entering to exiting the scene can be regarded as a box prediction problem for each frame.
[0049] In step S202, the feature information of the remote sensing video sequence is extracted using a CNN backbone network, for example, frame-level feature information of the remote sensing video sequence is extracted.
[0050] In step S203, the extracted feature information is encoded using the self-attention module of the Transformer encoder.
[0051] In step S204, in the decoder, the three previous tracking query results are respectively input into the three sequential attention modules of the decoder to learn the trajectory of each target, and the outputs of the three sequential attention modules and the encoded features are input into another attention module of the decoder to complete the decoding of the continuous query targets.
[0052] In step S205, the decoder output is mapped by two FFN-based output heads to generate a tracking query result for each visible or occluded target, wherein the tracking query result includes a prediction of the target's bounding box, category, and ID, wherein the two FFN-based output heads are used to perform trajectory query and generate trajectory query results based on the outputs formed by three sequential attention modules, and to perform target query and generate target query results based on the output formed by one attention module, respectively. The fusion of the trajectory query result and the target query result is the tracking query result.
[0053] In some embodiments, Figure 3 As shown, the network framework of the satellite video multi-vehicle online tracking method includes a sequentially arranged CNN backbone network, a Transformer encoder, a decoder, and two FFN-based output heads (not shown in the figure); wherein the decoder includes four attention modules arranged in series, wherein the first three attention modules serve as three sequential attention modules of the decoder, and the last one serves as another attention module of the decoder. FFN and Add&Norm structures are also arranged after the third sequential attention module, and FFN and Add&Norm structures are also arranged after another attention module. Two FFN-based output heads, namely, a trajectory prediction head and a target detection head, are respectively arranged after the output of the third sequential attention module (after the Add&Norm structure) and the output of the other attention module (after the Add&Norm structure).
[0054] Unlike natural videos, remote sensing videos are shot from a high altitude, which causes the target to be often blocked by background objects. The trajectory of the corresponding target is jumpy. Figure 3 As shown, in addition to the target detection head, a trajectory prediction head is also introduced in the embodiment of the present application. The trajectory prediction head generates a predicted bounding box for the target being tracked in the previous frame in the current frame. Unlike the target detection head, the trajectory prediction head requires sequence information to predict the position of the target. The embodiment of the present application uses a separate FFN and a corresponding residual connection to construct a prediction head. Using an FFN-based output head as the target prediction head, a target query result is generated in the current frame, that is, the bounding box and category of the target. The fusion of the trajectory query result and the target query result is the tracking query result.
[0055] The embodiment of the present application proposes a tracking method that uses short-term memory information to predict the position of an obscured target, adds a trajectory prediction head, generates a predicted trajectory to supplement the target query, and improves the tracking effect of satellite video on the vehicle.
[0056] In some embodiments, Figure 3As shown, the Transformer decoder includes three sequential attention modules; the inputs of the three sequential attention modules of the decoder are specifically three tracking query results of three previous adjacent moments.
[0057] In the embodiment of the present application, there are three situations where the target query and the track query are inconsistent: there is a new target; the target is blocked and temporarily disappears; the target moves out of the field of view. In some embodiments, generating tracking query information for each visible or blocked target vehicle specifically includes:
[0058] In the case where the track query result of executing the track query is consistent with the target query result of executing the target query, the track query finally outputted is the same as the result of the target query;
[0059] When the trajectory query result of executing the trajectory query is inconsistent with the target query result of executing the target query:
[0060] If there is a new target, a new identifier is assigned to the new target and added to the tracking query results;
[0061] If there are missing objects in the target query, but the corresponding bounding boxes are still generated in the track query, the bounding boxes of the missing objects are added to the final output tracking query results;
[0062] If the tracking query information output by multiple consecutive adjacent decodings cannot detect the corresponding target, the corresponding target is regarded as an out-of-line target, and the bounding box of the out-of-line target is deleted in the final tracking query result.
[0063] If different situations occur at the same time, each independent target can be operated separately according to the above rules.
[0064] Since query tracking requires tracking the target in the next frame and interacting with the target query, this method requires dedicated frame-to-frame tracking training. In some embodiments, network training is completed as follows:
[0065] The embodiment of the present application completes the tracking training by training multiple adjacent frames at the same time, and jointly optimizes the objective functions of all multi-target tracking. In some specific examples, corresponding loss functions are set for two FFN-based output heads respectively, and the detection loss and predicted loss ,in:
[0066] Detection loss Defined as, when the matching output query hour, That is, the sum of the bounding box and classification losses for each query, where
[0067]
[0068] in, is the predicted class, is the predicted bounding box, Indicates i The bounding box of the target detected during tracking, represents the bounding box regression loss between the predicted box and the ground truth in DETR, Indicates i The sum of the bounding boxes and classification losses of the queries represents the Nth matched target, which represents the number of bounding boxes containing visible objects and occluded objects in the last frame.
[0069] The prediction loss is defined as ,
[0070]
[0071] in, Indicates the number of bounding boxes containing visible objects and occluded objects in the last frame. In the prediction loss, if i If an object is occluded, the bounding box does not exist in the ground truth. Therefore, when the occluded object appears again, the trajectory loss is updated. In addition, the trajectory prediction training is online. For the i The bounding box of each target detected during tracking.
[0072] The applicant's experimental results on three groups of satellites verified the performance of the method of the present application. Specifically, the baseline and ground truth (GT) tracking results on the SkySat-01, jilin-01 and jilin-02 datasets were visualized, which verified the effectiveness and advanced performance of the method of the present application.
[0073] Due to the high-altitude viewing angle of the satellite, the targets in such videos are often often obscured by background objects. The beneficial effect of the method of the present application is that a tracking method for predicting the position of an obscured target using short-term memory information is proposed. On the basis of DETR, a trajectory prediction head is added to generate predicted trajectories and target queries. The embodiment of the present application designs a short-term memory architecture that uses sequence information to generate accurate trajectory predictions.
[0074] An embodiment of the present application also proposes a satellite video multi-vehicle online tracking device based on a motion tracking Transformer, including a processor and a memory, wherein a computer program is stored on the memory, and when the computer program is executed by the processor, the steps of the satellite video multi-vehicle online tracking method based on a motion tracking Transformer as described above are implemented.
[0075] An embodiment of the present application also proposes a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the satellite video multi-vehicle online tracking method based on motion tracking Transformer as described above are implemented.
[0076] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0077] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0078] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0079] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A satellite video multi-vehicle online tracking method based on motion tracking Transformer, characterized in that: include: Acquire a remote sensing video sequence containing multiple targets with different identities; Extracting feature information of the remote sensing video sequence using a CNN backbone network; The extracted feature information is encoded using the self-attention module of the Transformer encoder; At the decoder, the three tracking query results at the previous adjacent moments are input one-to-one into the three sequential attention modules of the decoder to learn the trajectory of each target, and the output of the third sequential attention module and the encoded features are input into another attention module of the decoder to complete the decoding of the continuous query target; Mapping the decoder output through two FFN-based output heads to generate a tracking query result for each visible or occluded target, wherein the tracking query result includes a prediction of the target's bounding box, category, and ID, wherein the two FFN-based output heads are respectively used to perform a track query based on the outputs formed by the three sequential attention modules and generate a track query result, and to perform a target query based on the output formed by another attention module and generate a target query result, and the track query result and the target query result are fused to obtain the tracking query result; The network framework of the satellite video multi-vehicle online tracking method includes a sequentially arranged CNN backbone network, a Transformer encoder, a decoder, and two FFN-based output heads; The decoder includes four attention modules arranged in series, the first three attention modules serve as three sequential attention modules of the decoder, the last one serves as another attention module of the decoder, and two FFN-based output heads are respectively set at the outputs of the three sequential attention modules and the output of the another attention module.
2. The satellite video multi-vehicle online tracking method based on motion tracking Transformer as claimed in claim 1, characterized in that: Generating the tracking query result of each visible or obscured target specifically includes: In the case where the track query result is consistent with the target query result, the tracking query result finally output is the same as the target query result; In the case where the trajectory query result is inconsistent with the target query result: If there is a new target, a new identifier is assigned to the new target and added to the tracking query results; If there is a missing object in the target query result, and a corresponding bounding box is still generated in the track query result, the bounding box of the missing object is supplemented in the final output tracking query result; If the corresponding target cannot be detected in the trajectory query results of multiple consecutive adjacent moments, the corresponding target is regarded as an out-of-line target, and the bounding box of the out-of-line target is deleted in the final tracking query result.
3. The satellite video multi-vehicle online tracking method based on motion tracking Transformer as claimed in claim 1, characterized in that: The network training is done as follows: Set the corresponding loss function for the two FFN-based output heads respectively, and detect the loss L obj and the prediction loss L tra ,in: Detection loss L obj Defined as, when the matching output query hour, That is, the sum of the bounding box and classification losses for each query, where in, is the predicted class, is the predicted bounding box, represents the bounding box detected by the i-th target during tracking, represents the bounding box regression loss between the predicted box and the ground truth in DETR, O i represents the sum of bounding box and classification losses for the i-th query, Indicates the Nth matching target, N obj Indicates the number of bounding boxes containing visible objects and occluded objects in the last frame; Prediction loss L tra , defined as, satisfying Among them, N tra is the number of tracking boxes containing visible and occluded objects in the last frame.
4. A satellite video multi-vehicle online tracking device based on motion tracking Transformer, characterized in that: The method comprises a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the steps of the satellite video multi-vehicle online tracking method based on a motion tracking Transformer as described in any one of claims 1 to 3 are implemented.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the satellite video multi-vehicle online tracking method based on motion tracking Transformer as described in any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Multi-target tracking method and device under aerial view angle
CN115984586A
Pose detection using thermal data
US20220221344A1
