ViSAR-based multi-target tracking method and device, storage medium and electronic equipment

By combining foreground target detection and moving background compensation, the multi-target tracking method solves the accuracy problem under the shadow imaging characteristics of ViSAR moving targets, improves the accuracy and continuity of multi-target tracking, reduces false detections and missed detections, and enhances Stability of target associations.

CN118628529AActive Publication Date: 2024-09-10WUHAN UNIV

Patent Information

Application Number
CN202410728547.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-09-10
Estimated Expiration
2044-06-06

AI Technical Summary

Technical Problem

Existing multi-vehicle target tracking methods for ViSAR have limited accuracy when dealing with the shadow imaging characteristics of moving targets, and are prone to missed or false detections. Moreover, radar multi-angle imaging leads to an increase in trajectory prediction errors, and individual similarity and appearance time-varying make targets difficult to detect. Association and tracking failed.

Method used

A multi-target tracking method based on ViSAR is used, combining foreground target detection and moving background compensation. Through appearance feature extraction, motion clue extraction, foreground target detection and moving background fast compensation modules, the target detection results of the current frame are predicted and corrected, and multi-target detection is used The loss function is used for model training to improve tracking accuracy.

Benefits of technology

It improves the precision and accuracy of multi-target tracking, reduces false detections and missed detections, enhances the recognition and tracking continuity of moving target shadows, and reduces trajectory prediction errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628529A
    Figure CN118628529A
Patent Text Reader

Abstract

The invention discloses a ViSAR (Visual Synthetic Aperture Radar)-based multi-target tracking method and device, a storage medium and electronic equipment. The method comprises the following steps: acquiring a current frame of ViSAR image, a previous frame of ViSAR image and a previous frame of target detection result; performing feature extraction to obtain a previous frame appearance feature map and a current frame appearance feature map; inputting the appearance feature map of the previous frame and the appearance feature map of the current frame into a motion clue extraction module to obtain an offset matrix; inputting the appearance feature map of the previous frame, the appearance feature map of the current frame and the offset matrix into a foreground target detection module to obtain a target detection result of the current frame, and dividing the target detection result into a first observation set and a second observation set; inputting the target detection result of the previous frame and the offset matrix into a motion background rapid compensation module to predict and correct the position of the current frame; and inputting the corrected current frame position, the first observation set and the second observation set into an inter-frame target association module to obtain a multi-target tracking result at the current moment. According to the invention, the multi-target tracking precision can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a multi-target tracking method, device, storage medium and electronic device based on ViSAR. Background Art

[0002] Video Synthetic Aperture Radar (ViSAR) is a new type of synthetic aperture radar system that has emerged in recent years. It has the ability to observe the earth around the clock and in all weather conditions and monitor moving targets. It is of great application value in disaster relief, traffic management and military reconnaissance. Therefore, high-value multi-vehicle target tracking on land for ViSAR has become a research hotspot.

[0003] Existing visual multi-vehicle target tracking methods for ViSAR mainly eliminate clutter interference and improve small target detection performance through SAR image preprocessing, multi-scale design of target detection backbone network and feature optimization. These methods mainly follow the idea of ​​appearance modeling of moving targets for target tracking, which is not closely integrated with the shadow imaging characteristics of ViSAR moving targets, resulting in limited overall processing accuracy and prone to missed detection or false detection. Summary of the invention

[0004] The embodiments of the present application provide a ViSAR-based multi-target tracking method, device, storage medium, and electronic device, which can improve the multi-target tracking accuracy of ViSAR images.

[0005] The embodiment of the present application provides a multi-target tracking method based on ViSAR, comprising:

[0006] Obtain the current frame ViSAR image, the previous frame ViSAR image and the previous frame target detection result;

[0007] Input the current frame ViSAR image, the previous frame ViSAR image and the previous frame target detection result into the trained multi-target tracking model to obtain the current frame target tracking result; wherein the multi-target tracking model includes an appearance feature extraction module, a motion clue extraction module, a foreground target detection module, a motion background fast compensation module and an inter-frame target association module;

[0008] Inputting the current frame ViSAR image, the previous frame ViSAR image and the previous frame target detection result into the trained multi-target tracking model to obtain the current frame target tracking result includes:

[0009] Inputting the current frame ViSAR image and the previous frame ViSAR image into the appearance feature extraction module to extract features to obtain the previous frame appearance feature map and the current frame appearance feature map;

[0010] Inputting the appearance feature map of the previous frame and the appearance feature map of the current frame into the motion clue extraction module to obtain an offset matrix;

[0011] Inputting the appearance feature map of the previous frame, the appearance feature map of the current frame and the offset matrix into the foreground object detection module to obtain a current frame object detection result, and dividing the current frame object detection result into a first observation set and a second observation set;

[0012] Input the target detection result of the previous frame and the offset matrix into the moving background fast compensation module to predict the current frame position and make corrections;

[0013] The corrected current frame position is input into the inter-frame target association module together with the first observation set and the second observation set to obtain the multi-target tracking result at the current moment.

[0014] Furthermore, in the above-mentioned ViSAR-based multi-target tracking method, the motion clue extraction module includes a linear self-attention layer, a linear cross-attention layer and a cost volume;

[0015] Inputting the appearance feature map of the previous frame and the appearance feature map of the current frame into the motion clue extraction module to obtain an offset matrix, including:

[0016] Flattening the appearance feature map of the previous frame and the appearance feature map of the current frame respectively to obtain a first flattened feature map and a second flattened feature map;

[0017] Inputting the first flattened feature map and the second flattened feature map into the linear self-attention layer to obtain a first spatial semantic alignment feature map and a second spatial semantic alignment feature map;

[0018] Inputting the first spatial semantic alignment feature map and the second spatial semantic alignment feature map into the linear cross attention layer to obtain a previous frame feature embedding vector set and a current frame feature embedding vector set;

[0019] The previous frame feature embedding vector set and the current frame feature embedding vector set are input into the cost volume to obtain an offset matrix.

[0020] Furthermore, in the above-mentioned ViSAR-based multi-target tracking method, the step of inputting the appearance feature map of the previous frame, the appearance feature map of the current frame and the offset matrix into the foreground target detection module to obtain the target detection result of the current frame includes:

[0021] The appearance feature map of the previous frame is merged with the offset matrix to obtain the conversion feature of the current frame;

[0022] The current frame conversion feature is fused with the current frame appearance feature map to obtain an enhanced current frame feature map;

[0023] The current frame target detection result is obtained according to the enhanced current frame feature map.

[0024] Furthermore, in the above-mentioned ViSAR-based multi-target tracking method, the step of dividing the target detection result of the current frame into a first observation set and a second observation set comprises:

[0025] Calculating a confidence set of the target detection result of the current frame;

[0026] Traversing the confidence set to determine an optimal confidence value;

[0027] The first observation set and the second observation set are determined by taking the optimal confidence value as a threshold.

[0028] Furthermore, the ViSAR-based multi-target tracking method, wherein the target detection result of the previous frame and the offset matrix are input into the motion background fast compensation module to predict the current frame position and perform correction, comprises:

[0029] Obtaining the same-name point pairs in the background area based on the current frame target detection result and the offset matrix;

[0030] Calculating an affine transformation matrix based on the same-name point pairs in the background area, wherein the affine transformation matrix includes a linear transformation matrix and a translation transformation matrix;

[0031] Input the target detection result of the previous frame and the offset matrix into the motion background fast compensation module, and predict the current frame position through Kalman filtering;

[0032] The current frame position is corrected based on the linear transformation matrix and the translation transformation matrix.

[0033] Furthermore, in the above-mentioned ViSAR-based multi-target tracking method, the step of inputting the corrected current frame position and the first observation set and the second observation set into an inter-frame target association module to obtain a current frame target tracking result includes:

[0034] Pairing the current frame target detection result with the first observation set by using the Hungarian algorithm to obtain a successfully paired corrected current frame target detection result and a successfully paired first observation set, and updating the position of the target at the current moment based on the successfully paired first observation set to obtain first position information;

[0035] Pairing the unpaired corrected current frame target detection result with the second observation set to obtain a successfully paired second observation set, and updating the position of the target at the current moment based on the successfully paired first observation set to obtain second position information;

[0036] The successfully paired current frame target detection result, the first position information and the second position information are fused through Kalman filtering to obtain the multi-target tracking result at the current moment.

[0037] Furthermore, in the above-mentioned ViSAR-based multi-target tracking method, the training process of the multi-target tracking model is performed based on a multi-target loss function, and the multi-target loss function is:

[0038] L=λ FG L FG +λ BG L BG +λ Det L Det

[0039] Among them, λ FG , BG and λ Det is the weight value of different loss terms, L FG is the foreground motion loss function, L BG is the background motion self-supervision loss function, L Det is the detection loss function.

[0040] The embodiment of the present application also provides a multi-target tracking device based on ViSAR, comprising:

[0041] An acquisition module is used to acquire the current frame ViSAR image, the previous frame ViSAR image and the previous frame target detection result;

[0042] An appearance feature extraction module, used for performing feature extraction based on the current frame ViSAR image and the previous frame ViSAR image to obtain a previous frame appearance feature map and a current frame appearance feature map;

[0043] A motion cue extraction module, used to obtain an offset matrix based on the appearance feature map of the previous frame and the appearance feature map of the current frame;

[0044] a foreground object detection module, configured to obtain a current frame object detection result based on the previous frame appearance feature map, the current frame appearance feature map and the offset matrix, and divide the current frame object detection result into a first observation set and a second observation set;

[0045] A moving background fast compensation module, used to predict the current frame position based on the target detection result of the previous frame and make corrections;

[0046] The inter-frame target association module is used to obtain the multi-target tracking result at the current moment based on the corrected current frame position and the second observation set.

[0047] An embodiment of the present application further provides a computer-readable storage medium, wherein a plurality of instructions are stored in the computer-readable storage medium, and wherein the instructions are suitable for being loaded by a processor to execute any of the above-mentioned ViSAR-based multi-target tracking methods.

[0048] An embodiment of the present application also provides an electronic device, including a processor and a memory, wherein the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is used for the steps in any of the above-mentioned ViSAR-based multi-target tracking methods.

[0049] The ViSAR-based multi-target tracking method, device, storage medium and electronic device provided in the present application combine foreground target detection with motion background compensation, predict the current frame target detection result through the foreground target detection module, predict the current frame position and correct it through the motion background fast compensation module, obtain the multi-target tracking result at the current moment based on the current frame target detection result and the corrected current frame position, and closely combine it with the ViSAR moving target shadow imaging characteristics to improve the multi-target tracking accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The technical solution and other beneficial effects of the present application will be made apparent by describing in detail the specific implementation methods of the present application in conjunction with the accompanying drawings.

[0051] Figure 1 A flowchart of a ViSAR-based multi-target tracking method provided in an embodiment of the present application.

[0052] Figure 2 Another flow chart of the ViSAR-based multi-target tracking method provided in an embodiment of the present application.

[0053] Figure 3 A schematic diagram of the structure of a multi-target tracking device based on ViSAR provided in an embodiment of the present application.

[0054] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0055] Figure 5 Another schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0056] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0057] Existing visual multi-vehicle target tracking methods for ViSAR mainly eliminate clutter interference and improve small target detection performance through methods such as SAR image preprocessing, multi-scale design of target detection backbone network and feature optimization. These methods mainly follow the idea of ​​appearance modeling of moving target shadows, and rarely enrich and improve the feature description of the target from the perspective of motion information compensation. In addition, the existing method design fully absorbs the advantages of the optical video MOT method, but the combination with the imaging characteristics of ViSAR moving target shadows is not close enough, resulting in limited improvement in overall processing accuracy. Due to the huge differences in the image characteristics of moving targets in optical video and ViSAR, the application of existing vehicle multi-target tracking methods to ViSAR may mainly face the following three challenges:

[0058] (1) Individual similarity leads to false associations: The Doppler modulation of the ViSAR moving target echo is very sensitive to its motion, which causes its backscatterer to be offset and defocused, forming a shadow at its true position, and it is impossible to extract discriminative texture features like vehicle targets in optical videos. Therefore, there is appearance similarity between different vehicle individuals and between the shadows of moving targets and stationary targets in ViSAR, making it easy for multi-target tracking methods that rely solely on target appearance feature matching to produce false associations.

[0059] (2) Tracking failure due to time-varying appearance: The constantly changing imaging geometry of ViSAR causes the contrast between the moving target shadow and background clutter to change over time, and is easily blocked by backscatterers, so it cannot have stable appearance features like vehicle targets in optical videos. Therefore, the detection confidence of the same vehicle target on ViSAR varies greatly at different times, and real targets and false alarm targets that have undergone appearance changes (such as occlusion and shadow defocus) also have low detection confidence. This makes the multi-target tracking method that uses fixed hyperparameters to screen high-value detection boxes for association prone to extreme false detections or missed detections, resulting in failure of moving target shadow tracking.

[0060] (3) Radar multi-angle imaging leads to increased trajectory prediction errors: The constantly changing imaging geometry of ViSAR also causes random displacement of the background between frames and global defocusing. Therefore, the Kalman filter based on the linear displacement assumption will offset the position prediction of the ViSAR vehicle target at the next moment, and form cumulative errors, resulting in target loss or confusion.

[0061] To solve the above problems, the embodiments of the present application provide a multi-target tracking method, device, storage medium and electronic device based on ViSAR. The multi-target tracking device based on ViSAR provided in the embodiments of the present application can be integrated in an electronic device, which can be a terminal, a server and other devices, wherein the terminal can include a tablet computer, a laptop computer, a personal computer (PC), a micro processing box, or other devices.

[0062] See also Figure 1 and Figure 2 , Figure 1 A schematic diagram of a multi-target tracking method based on ViSAR provided in an embodiment of the present application is shown in FIG. Figure 2 Another flowchart of a multi-target tracking method based on ViSAR provided in an embodiment of the present application is provided, which is applied in an electronic device. The multi-target tracking method based on ViSAR includes the following steps:

[0063] S1, obtain the current frame ViSAR image, the previous frame ViSAR image and the previous frame target detection result.

[0064] Specifically, the current frame ViSAR image and the previous frame ViSAR image are divided into several frames of size h I × I Pixel slice image I t-1 and I t (The number of channels, height and width are 3, h I and w I ).

[0065] It should be noted that the target detection result refers to the size, position and category of the target.

[0066] S2, input the current frame ViSAR image, the previous frame ViSAR image and the previous frame target detection result into the trained multi-target tracking model to obtain the current frame target tracking result. The multi-target tracking model includes an appearance feature extraction module, a motion clue extraction module, a foreground target detection module, a motion background fast compensation module and an inter-frame target association module.

[0067] This application combines foreground target detection with motion background compensation, predicts the current frame target detection result through the foreground target detection module, predicts the current frame position and corrects it through the motion background fast compensation module, obtains the current moment multi-target tracking result based on the current frame target detection result and the corrected current frame position, and closely combines it with the ViSAR moving target shadow imaging characteristics to improve the multi-target tracking accuracy. This method is a multi-task unified training and reasoning method for ViSAR vehicle moving target detection, tracking and implicit stabilization, and is highly coupled and easy to use.

[0068] Step S2 includes the following steps:

[0069] S21, inputting the current frame ViSAR image and the previous frame ViSAR image into the appearance feature extraction module for feature extraction to obtain the previous frame appearance feature map and the current frame appearance feature map.

[0070] Specifically, the appearance feature module is a DLA-34 backbone network that transforms the slice image I t-1 and I t Input into the DLA-34 backbone network for feature extraction to obtain the appearance feature map F of the previous frame t-1 and the current frame appearance feature map F t (The number of channels, height and width are 64, h F and w F ).

[0071] S22, inputting the appearance feature map of the previous frame and the appearance feature map of the current frame into the motion cue extraction module to obtain an offset matrix.

[0072] In one embodiment, the motion cue extraction module includes a linear self-attention layer, a linear cross-attention layer and a cost volume.

[0073] Step S22 specifically includes the following steps:

[0074] S221, flatten the appearance feature map of the previous frame and the appearance feature map of the current frame respectively to obtain a first flattened feature map and a second flattened feature map.

[0075] Specifically, the appearance feature map F of the previous frame t-1 and the current frame appearance feature map F t Expand them according to the channel dimension to obtain the first flattened feature map after expansion With the second flattened feature map (The number of channels and vector length are 64 and h respectively F × F ).

[0076] S222, input the first flattened feature map and the second flattened feature map into a linear self-attention layer to obtain a first spatial semantic alignment feature map and a second spatial semantic alignment feature map.

[0077] Specifically, in the linear self-attention layer, the first flattened feature map and the second flattened feature map are processed by the first formula and the second formula respectively, and the first formula and the second formula are:

[0078]

[0079] in, is the first spatial semantic alignment feature map in the flattened state, is the second space semantic alignment feature map in the flattened state, φ(·)=Elu(·)+1, Elu represents the Elu activation function, and ρ represents the sinusoidal position encoding adopted by the target detection method DETR.

[0080] S223, input the first spatial semantic alignment feature map and the second spatial semantic alignment feature map into the linear cross attention layer to obtain the previous frame feature embedding vector set and the current frame feature embedding vector set.

[0081] Specifically, the first spatial semantic alignment feature map and the second spatial semantic alignment feature map are processed respectively by the third formula and the fourth formula, and the third formula and the fourth formula are respectively:

[0082]

[0083] in is the feature embedding vector set of the previous frame, is the feature embedding vector set for the current frame (the number of channels and vector length are 64 and h respectively). F × F ).

[0084] Will and Restore them to their original shapes and obtain a set of feature embedding vectors aligned with spatiotemporal semantics (the number of channels, height and width are 64, h F and w F ) is denoted as E t-1 and E t .

[0085] S224, input the feature embedding vector set of the previous frame and the feature embedding vector set of the current frame into the cost volume to obtain an offset matrix.

[0086] E t-1 and E t Input into the cost volume, and calculate the offset matrix between the previous frame pixel and the current frame pixel through the Cost Volume method. Specifically, for E t-1 and E t By performing an Attention calculation (similar to cross-correlation, matrix multiplication is performed on the feature maps of the previous frame and the current frame to obtain the similarity of each pixel), the pixel of the previous frame with the maximum similarity among each pixel of the current frame can be obtained, thereby forming pixel pairs and their positions, and obtaining an offset matrix.

[0087] The motion cue extraction module provided in this application uses spatiotemporal context information to further improve the individual feature recognition, obtain more accurate dense optical flow, and enhance the association and detection of moving targets.

[0088] S23, inputting the appearance feature map of the previous frame, the appearance feature map of the current frame and the offset matrix into the foreground target detection module to obtain the target detection result of the current frame, and dividing the target detection result of the current frame into a first observation set and a second observation set.

[0089] In one embodiment, the appearance feature map of the previous frame, the appearance feature map of the current frame and the offset matrix are input into a foreground object detection module to obtain the object detection result of the current frame, including the following steps:

[0090] S231, fusing the appearance feature map of the previous frame with the offset matrix to obtain the conversion feature of the current frame;

[0091] S232, fusing the current frame conversion feature with the current frame appearance feature map to obtain an enhanced current frame feature map;

[0092] S233, obtaining the current frame target detection result according to the enhanced current frame feature map.

[0093] In one embodiment, dividing the current frame target detection result into a first observation set and a second observation set includes the following steps:

[0094] S234, calculating the confidence set of the target detection result of the current frame.

[0095] Specifically, calculate the current frame target detection result D t The confidence level C t , C t Sort in descending order to get the confidence set C t_des .

[0096] S235, traverse the confidence set to determine the optimal confidence value.

[0097] Assume that there is a confidence classification threshold at the current moment The confidence set C t_des Divided into two categories, namely and The mean confidence levels of these two types of results are and At the same time, the target detection results are divided into the first observation set D_high t and the second observation set D_low t The probabilities are and The between-class variance of confidence σ t 2 It is expressed as:

[0098]

[0099] According to the above formula, traverse the confidence set C t_des For all values ​​of t 2 When it is maximum, the confidence classification threshold is obtained The optimal confidence value of

[0100] S236: Using the optimal confidence value as a threshold value to determine the first observation set and the second observation set.

[0101] Specifically, according to the optimal value of confidence As the threshold, determine the first observation set D_high with good observation status t and the second observation set D_low with poor observation status t .

[0102] The foreground target detection module provided in this application performs spatiotemporal consistency judgment and secondary recall on potential targets with poor observation status based on the detection confidence, improves the tracking continuity of targets with changing appearance, and designs an adaptive mining method for observation status to mitigate the poor tracking effect caused by unreasonable hyperparameter settings.

[0103] S24, inputting the target detection result of the previous frame and the offset matrix into the moving background fast compensation module, predicting the current frame position and making corrections.

[0104] In one embodiment, step S24 includes the following steps:

[0105] S241, obtaining the same-name point pairs in the background area based on the target detection result of the current frame and the offset matrix.

[0106] Specifically, based on the current frame target detection result D t With the offset matrix (The number of channels, height and width are 2, h F and w F ), extract D t Offset outside the region (The number of channels and offset elements are 2 and N respectively), and then the same-name point pairs in the background area of ​​two adjacent frames are obtained (The number of pairs of points with the same name in the background area, the coordinate dimension of the previous frame, and the coordinate dimension of the current frame are N, 2, and 2, respectively).

[0107] It should be noted that the extraction of D t Offset outside the region Specifically, it refers to the background pixel offset. The same-name point pair refers to the image points of the same point on the ground in different images.

[0108] S242, calculating an affine transformation matrix based on the same-name point pairs in the background area, where the affine transformation matrix includes a linear transformation matrix and a translation transformation matrix.

[0109] Specifically, the affine transformation matrix is ​​calculated by the RanSAC algorithm Affine transformation matrix Including the linear transformation matrix M 2×2 and the translation transformation matrix T 2×1 , as follows:

[0110]

[0111] S243, input the target detection result of the previous frame and the offset matrix into the moving background fast compensation module, and predict the current frame position through Kalman filtering.

[0112] Specifically, the current frame position X(k│k-1) is predicted by Kalman filtering, and its covariance P(k│k-1) is calculated.

[0113] S244, correcting the current frame position based on the linear transformation matrix and the translation transformation matrix.

[0114] Specifically, using the linear transformation matrix M 2×2 and the translation transformation matrix T 2×1 Correct X(k│k-1) and P(k│k-1) to get the corrected current frame prediction value and its covariance

[0115] Specifically, the correction is performed by the following formula:

[0116]

[0117] S25, inputting the corrected current frame position and the first observation set and the second observation set into the inter-frame target association module respectively to obtain the multi-target tracking result at the current moment.

[0118] In one embodiment, step S25 includes the following steps:

[0119] S251, pair the current frame target detection result with the first observation set through the Hungarian algorithm to obtain the successfully paired corrected current frame target detection result and the successfully paired first observation set, and update the target's current position based on the successfully paired first observation set to obtain the first position information.

[0120] Specifically, calculate the corrected current frame position With the first observation set D_high t The intersection-and-union ratio (ratio of intersection and union) is used as the allocation cost to perform pairing through the Hungarian algorithm, where D_high is the first observation set without pairing. t Create a new trajectory, denoted as The first observation set D_high that is successfully paired t Used to update the position of the old track at the current time, recorded as the first position information Keep the corrected current frame position without pairing Recorded as

[0121] S252, pairing the unpaired corrected current frame target detection result with the second observation set to obtain a successfully paired second observation set, and updating the position of the target at the current moment based on the successfully paired second observation set to obtain second position information.

[0122] Specifically, calculate With the second observation set D_low t The intersection-and-union ratio of is used as the allocation cost to pair two observations through the Hungarian method, where the second observation set D_low without pairing is t Delete the second observation set D_low that is successfully paired t Used to update the position of the old track at the current time, recorded as the second position information Keep unpaired Recorded as

[0123] S253, the successfully paired current frame target detection result, the first position information and the second position information are fused through Kalman filtering to obtain the multi-target tracking result at the current moment.

[0124] Specifically, the continuous Thr TMN Frames not paired Delete, where Thr TMN It is the threshold used to determine whether the track needs to be deleted. For example, when an existing track has not been associated with the target for N consecutive frames, the track can be deleted (indicating that the target may have disappeared).

[0125] Corrected current frame target detection results using successful pairing As the predicted value, the first position information With the second location information As the observation value, the optimal estimate T1 is obtained by fusion calculation through Kalman filtering. t and T2 t , T1 t and T2 t The union of i This is the final multi-target tracking result at the current moment.

[0126] Compared with traditional methods, the background motion fast compensation module provided in this application fully utilizes the background optical flow in the cost volume, corrects the trajectory error through affine matrix parameter estimation and coordinate system transformation, and designs a self-supervised loss function based on cross-correlated pixels to constrain the background optical flow generation, thereby improving the multi-target tracking accuracy under camera motion.

[0127] The above is the application process of the multi-target tracking model. The following is a brief introduction to the training process of the multi-target tracking model:

[0128] (1) ViSAR image training samples and corresponding label information;

[0129] (2) Input the ViSAR image samples into the multi-target tracking model to obtain the predicted multi-target tracking results at the current moment;

[0130] (4) Calculate the multi-target loss function according to the predicted multi-target tracking results at the current moment and the true value of the label of the training sample, and iteratively train the multi-target tracking model based on the multi-target loss function to obtain a trained multi-target tracking model.

[0131] In one embodiment, the multi-objective loss function is:

[0132] L=λ FG L FG +λ BG L BG +λ Det L Det

[0133] Among them, λ FG , BG and λ Det is the weight value of different loss terms, L FG is the foreground motion loss function, L BG is the background motion self-supervision loss function, L Det is the detection loss function.

[0134] In the foreground motion loss function L FGIn the example, for the pixel point (i, j) in the feature map of the current frame, the corresponding cost volume is Indicates the similarity between the pixel (i, j) of the feature map of the current frame and all the pixels of the feature map of the previous frame. Apply the two maximum pooling kernels MaxPool to CV_FG respectively. i,j , the pooling kernel sizes are h F ×1 and 1×w F , and after the softmax function σ is calculated, the cost vectors in the two directions can be obtained respectively and They respectively represent the cost vector formed by the maximum value of each column vector in the matrix and the cost vector formed by the maximum value of each horizontal quantity in the matrix.

[0135] Represents the probability that the target of the pixel point (i, j) of the feature map of the current frame is at the column maximum vector position (0, l), Represents the probability that the target at the pixel point (i, j) of the feature map of the current frame is at the row maximum vector position (k, 0).

[0136] Remember Y_FG ijkl is the supervision label of the foreground motion. If the target of the pixel (i, j) of the feature map of the current frame appears at the position (k, l) of the previous frame, then Y_FG ijkl =1, otherwise Y_FG ijkl = 0. Therefore, L FG It can be expressed in the form of FocalLoss function:

[0137]

[0138] in, β is a hyperparameter of FocalLoss.

[0139] Based on the background motion self-supervision loss function L based on the cross-correlation pixels BG In the example, similar to the foreground motion loss function L FG , which can be expressed in the form of FocalLoss function:

[0140]

[0141] in, γ is a hyperparameter of FocalLoss.

[0142] In the detection loss function L Det In the figure, the target position loss L of the current frame is included H , size loss L WH and classification loss L CLS ; Among them, the target position loss L HIt is expressed in the form of FocalLoss function, β is a hyperparameter, and the target size loss L WH and classification loss L CLS Expressed by L1Los function:

[0143] L Det =λ H L H +λ WH L WH +λ CLS L CLS

[0144]

[0145] Where H represents the output target position feature map, WH represents the output target size feature map, CLS represents the output target category feature map, and Y WH and Y CLS are the training supervision labels of the size and classification output feature maps, Y ij is the training supervision label of the target position. If the current frame pixel (i, j) is the target, then Y ij =1, otherwise Y ij =0. Among them, λ H , WH and λ CLS are the weights of different loss terms.

[0146] Moreover, in step S24, the background motion self-supervision loss function L based on the cross-correlated pixels is BG The same-name point pairs (i, j) and (k, l) in the background area are needed. The screening method needs to meet two conditions: first, the correlation P of the two points must be higher than the threshold θ, and second, the two points are close neighbors, that is, the most relevant points of the two points in the other frame are each other. ijkl Y_BG is the supervision label of background motion. If the background pixel (i, j) of the current frame and (k, l) of the previous frame belong to the same point, then ijkl =1, otherwise Y_BG ijkl =0.

[0147] According to the method described in the above embodiment, this embodiment will be further described from the perspective of a multi-target tracking device based on ViSAR. The multi-target tracking device based on ViSAR can be implemented as an independent entity or integrated in an electronic device. The electronic device can be a terminal, a server, etc., wherein the terminal can include a tablet computer, a laptop computer, a personal computer (PC), a micro processing box, or other devices.

[0148] See also Figure 3 , Figure 3 The ViSAR-based multi-target tracking device provided in the embodiment of the present application is specifically described, and is applied to an electronic device. The ViSAR-based multi-target tracking device may include:

[0149] An acquisition module is used to acquire the current frame ViSAR image, the previous frame ViSAR image and the previous frame target detection result;

[0150] An appearance feature extraction module is used to extract features based on the current frame ViSAR image and the previous frame ViSAR image to obtain the previous frame appearance feature map and the current frame appearance feature map;

[0151] A motion cue extraction module, used to obtain an offset matrix based on the appearance feature map of the previous frame and the appearance feature map of the current frame;

[0152] A foreground object detection module is used to obtain a current frame object detection result based on a previous frame appearance feature map, a current frame appearance feature map and an offset matrix, and divide the current frame object detection result into a first observation set and a second observation set;

[0153] The fast motion background compensation module is used to predict the current frame position based on the target detection result of the previous frame and make corrections;

[0154] The inter-frame target association module is used to obtain the multi-target tracking result at the current moment based on the corrected current frame position and the second observation set.

[0155] During specific implementation, the above modules and / or units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above modules and / or units can refer to the previous method embodiments. The specific beneficial effects that can be achieved can also refer to the beneficial effects in the previous method embodiments, which will not be repeated here.

[0156] In addition, the embodiment of the present application also provides an electronic device, which may be a computer, a tablet computer, or other device. Figure 4 As shown, the electronic device 400 includes a processor 401 and a memory 402. The processor 401 is electrically connected to the memory 402.

[0157] The processor 401 is the control center of the electronic device 400. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or loading applications stored in the memory 402 and calling data stored in the memory 402, thereby monitoring the electronic device as a whole.

[0158] In this embodiment, the processor 401 in the electronic device 400 loads instructions corresponding to the processes of one or more application programs into the memory 402 according to the following steps, and the processor 401 runs the application programs stored in the memory 402 to implement various functions:

[0159] Obtain the current frame ViSAR image, the previous frame ViSAR image and the previous frame target detection result;

[0160] Input the current frame ViSAR image, the previous frame ViSAR image and the previous frame target detection result into the trained multi-target tracking model to obtain the current frame target tracking result; wherein the multi-target tracking model includes an appearance feature extraction module, a motion clue extraction module, a foreground target detection module, a motion background fast compensation module and an inter-frame target association module;

[0161] Inputting the current frame ViSAR image, the previous frame ViSAR image and the previous frame target detection result into the trained multi-target tracking model to obtain the current frame target tracking result includes:

[0162] Input the current frame ViSAR image and the previous frame ViSAR image into the appearance feature extraction module to extract features to obtain the previous frame appearance feature map and the current frame appearance feature map;

[0163] Inputting the appearance feature map of the previous frame and the appearance feature map of the current frame into the motion clue extraction module to obtain an offset matrix;

[0164] Inputting the appearance feature map of the previous frame, the appearance feature map of the current frame and the offset matrix into the foreground object detection module to obtain a current frame object detection result, and dividing the current frame object detection result into a first observation set and a second observation set;

[0165] Input the target detection result of the previous frame and the offset matrix into the moving background fast compensation module to predict the current frame position and make corrections;

[0166] The corrected current frame position is input into the inter-frame target association module together with the first observation set and the second observation set to obtain the multi-target tracking result at the current moment.

[0167] The electronic device can implement the steps in any embodiment of the ViSAR-based multi-target tracking method provided in the embodiments of the present application. Therefore, it can achieve the beneficial effects that can be achieved by any ViSAR-based multi-target tracking method provided in the embodiments of the present invention. Please refer to the previous embodiments for details and will not be repeated here.

[0168] Figure 5 The specific structural block diagram of the electronic device provided by the embodiment of the present invention is shown, and the electronic device can be used to implement the multi-target tracking method based on ViSAR provided in the above embodiment. The electronic device 500 can be a terminal, a server or other equipment, wherein the terminal can include a tablet computer, a notebook computer, a personal computer (PC, Personal Computer), a micro processing box, or other equipment.

[0169] The RF circuit 510 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices. The RF circuit 510 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity module (SIM) cards, memories, etc. The RF circuit 510 can communicate with various networks such as the Internet, corporate intranets, wireless networks, or communicate with other devices through wireless networks. The above-mentioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. The above-mentioned wireless networks can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (such as Institute of Electrical and Electronics Engineers standards IEEE 802.11a, IEEE 802.11b, IEEE802.11g and / or IEEE802.11n), Voice over Internet Protocol (VoIP), Worldwide Interoperability for Microwave Access (Wi-Max), other protocols for email, instant messaging and short messages, and any other suitable communication protocols, even those that have not yet been developed.

[0170] The memory 520 can be used to store software programs and modules, such as the corresponding program instructions / modules in the above embodiments. The processor 580 executes various functional applications and data processing by running the software programs and modules stored in the memory 520, that is, realizing the functions of taking pictures with the front camera, processing the captured images, and switching the display color of the display content on the display screen. The memory 520 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 520 may further include a memory remotely arranged relative to the processor 580, and these remote memories may be connected to the electronic device 500 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0171] The input unit 530 may be used to receive input digital or character information, and generate a keyboard and a mouse related to user settings and function control.

[0172] The display unit 540 may be used to display information input by the user or information provided to the user and various graphical user interfaces, which may be composed of graphics, text, icons, videos, and any combination thereof. The display unit 540 may include a display panel 541, which may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.

[0173] The audio circuit 560, the speaker 561, and the microphone 562 can provide an audio interface between the user and the electronic device 500. The audio circuit 560 can transmit the electrical signal converted from the received audio data to the speaker 561, which is converted into a sound signal for output; on the other hand, the microphone 562 converts the collected sound signal into an electrical signal, which is received by the audio circuit 560 and converted into audio data, and then the audio data is output to the processor 580 for processing, and then sent to another terminal through the RF circuit 510, or the audio data is output to the memory 520 for further processing. The audio circuit 560 may also include an earplug jack to provide communication between an external headset and the electronic device 500.

[0174] The electronic device 500 can help the user receive requests, send information, etc. through the transmission module 570 (such as a Wi-Fi module), which provides the user with wireless broadband Internet access. Although the transmission module 570 is shown in the figure, it is understandable that it is not a necessary component of the electronic device 500 and can be omitted as needed without changing the essence of the invention.

[0175] The processor 580 is the control center of the electronic device 500. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 520, and calling data stored in the memory 520, it executes various functions of the electronic device 500 and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 580 may include one or more processing cores; in some embodiments, the processor 580 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It can be understood that the above-mentioned modem processor may not be integrated into the processor 580.

[0176] The electronic device 500 also includes a power supply 590 (such as a battery) for supplying power to various components. In some embodiments, the power supply can be logically connected to the processor 580 through a power management system, so that the power management system can manage charging, discharging, and power consumption management. The power supply 590 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0177] Although not shown, the electronic device 500 also includes a camera (such as a front camera, a rear camera), a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the display unit of the electronic device is a touch screen display, and the mobile terminal also includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and are configured to be executed by one or more processors. One or more programs include instructions for performing the following operations:

[0178] Obtain the current frame ViSAR image, the previous frame ViSAR image and the previous frame target detection result;

[0179] Input the current frame ViSAR image, the previous frame ViSAR image and the previous frame target detection result into the trained multi-target tracking model to obtain the current frame target tracking result; wherein the multi-target tracking model includes an appearance feature extraction module, a motion clue extraction module, a foreground target detection module, a motion background fast compensation module and an inter-frame target association module;

[0180] Inputting the current frame ViSAR image, the previous frame ViSAR image and the previous frame target detection result into the trained multi-target tracking model to obtain the current frame target tracking result includes:

[0181] Inputting the current frame ViSAR image and the previous frame ViSAR image into the appearance feature extraction module to extract features to obtain the previous frame appearance feature map and the current frame appearance feature map;

[0182] Inputting the appearance feature map of the previous frame and the appearance feature map of the current frame into the motion clue extraction module to obtain an offset matrix;

[0183] Inputting the appearance feature map of the previous frame, the appearance feature map of the current frame and the offset matrix into the foreground object detection module to obtain a current frame object detection result, and dividing the current frame object detection result into a first observation set and a second observation set;

[0184] Input the target detection result of the previous frame and the offset matrix into the moving background fast compensation module to predict the current frame position and make corrections;

[0185] The corrected current frame position is input into the inter-frame target association module together with the first observation set and the second observation set to obtain the multi-target tracking result at the current moment.

[0186] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation of the above modules can be found in the previous method embodiments, which will not be repeated here.

[0187] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling related hardware through instructions, and the instructions can be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present invention provides a storage medium, which stores multiple instructions, and the instructions can be loaded by a processor to execute the steps of any embodiment of the multi-target tracking method based on ViSAR provided in an embodiment of the present invention.

[0188] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0189] Since the instructions stored in the storage medium can execute the steps in any embodiment of the ViSAR-based multi-target tracking method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any ViSAR-based multi-target tracking method provided in the embodiments of the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0190] The above is a detailed introduction to a ViSAR-based multi-target tracking method, device, storage medium and electronic device provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A multi-target tracking method based on ViSAR, characterized in that: The method comprises: Obtain the current frame ViSAR image, the previous frame ViSAR image and the previous frame target detection result; Input the current frame ViSAR image, the previous frame ViSAR image and the previous frame target detection result into the trained multi-target tracking model to obtain the current frame target tracking result; wherein the multi-target tracking model includes an appearance feature extraction module, a motion clue extraction module, a foreground target detection module, a motion background fast compensation module and an inter-frame target association module; Inputting the current frame ViSAR image, the previous frame ViSAR image and the previous frame target detection result into the trained multi-target tracking model to obtain the current frame target tracking result includes: Input the current frame ViSAR image and the previous frame ViSAR image into the appearance feature extraction module to extract features to obtain the previous frame appearance feature map and the current frame appearance feature map; Inputting the appearance feature map of the previous frame and the appearance feature map of the current frame into the motion clue extraction module to obtain an offset matrix; Inputting the appearance feature map of the previous frame, the appearance feature map of the current frame and the offset matrix into the foreground object detection module to obtain a current frame object detection result, and dividing the current frame object detection result into a first observation set and a second observation set; Input the target detection result of the previous frame and the offset matrix into the moving background fast compensation module to predict the current frame position and make corrections; The corrected current frame position is input into the inter-frame target association module together with the first observation set and the second observation set to obtain the multi-target tracking result at the current moment.

2. The multi-target tracking method based on ViSAR according to claim 1, characterized in that: The motion clue extraction module includes a linear self-attention layer, a linear cross-attention layer and a cost body; Inputting the appearance feature map of the previous frame and the appearance feature map of the current frame into the motion clue extraction module to obtain an offset matrix, including: Flattening the appearance feature map of the previous frame and the appearance feature map of the current frame respectively to obtain a first flattened feature map and a second flattened feature map; Inputting the first flattened feature map and the second flattened feature map into the linear self-attention layer to obtain a first spatial semantic alignment feature map and a second spatial semantic alignment feature map; Inputting the first spatial semantic alignment feature map and the second spatial semantic alignment feature map into the linear cross attention layer to obtain a previous frame feature embedding vector set and a current frame feature embedding vector set; The previous frame feature embedding vector set and the current frame feature embedding vector set are input into the cost volume to obtain an offset matrix.

3. The multi-target tracking method based on ViSAR according to claim 1, characterized in that: The step of inputting the appearance feature map of the previous frame, the appearance feature map of the current frame and the offset matrix into the foreground object detection module to obtain the current frame object detection result includes: The appearance feature map of the previous frame is merged with the offset matrix to obtain the conversion feature of the current frame; The current frame conversion feature is fused with the current frame appearance feature map to obtain an enhanced current frame feature map; The current frame target detection result is obtained according to the enhanced current frame feature map.

4. The multi-target tracking method based on ViSAR according to claim 1, characterized in that: The dividing the current frame target detection result into a first observation set and a second observation set comprises: Calculating a confidence set of the target detection result of the current frame; Traversing the confidence set to determine an optimal confidence value; The first observation set and the second observation set are determined by taking the optimal confidence value as a threshold.

5. The multi-target tracking method based on ViSAR according to claim 1, characterized in that: The step of inputting the target detection result of the previous frame and the offset matrix into the moving background fast compensation module, predicting the current frame position and making corrections includes: Obtaining the same-name point pairs in the background area based on the current frame target detection result and the offset matrix; Calculating an affine transformation matrix based on the same-name point pairs in the background area, wherein the affine transformation matrix includes a linear transformation matrix and a translation transformation matrix; Input the target detection result of the previous frame and the offset matrix into the motion background fast compensation module, and predict the current frame position through Kalman filtering; The current frame position is corrected based on the linear transformation matrix and the translation transformation matrix.

6. The ViSAR-based multi-target tracking method according to claim 4, characterized in that: The step of inputting the corrected current frame position, the first observation set and the second observation set into an inter-frame target association module to obtain a current frame target tracking result includes: Pairing the current frame target detection result with the first observation set by using the Hungarian algorithm to obtain a successfully paired corrected current frame target detection result and a successfully paired first observation set, and updating the position of the target at the current moment based on the successfully paired first observation set to obtain first position information; Pairing the unpaired corrected current frame target detection result with the second observation set to obtain a successfully paired second observation set, and updating the position of the target at the current moment based on the successfully paired first observation set to obtain second position information; The successfully paired current frame target detection result, the first position information and the second position information are fused through Kalman filtering to obtain the multi-target tracking result at the current moment.

7. The multi-target tracking method based on ViSAR according to claim 1, characterized in that: The training process of the multi-target tracking model is performed based on a multi-target loss function, which is: L=λ FG L FG +λ BG L BG +λ Det L Det Among them, λ FG , BG and λ Det is the weight value of different loss terms, L FG is the foreground motion loss function, L BG is the background motion self-supervision loss function, L Det is the detection loss function.

8. A multi-target tracking device based on ViSAR, characterized in that: include: An acquisition module is used to acquire the current frame ViSAR image, the previous frame ViSAR image and the previous frame target detection result; An appearance feature extraction module, used for performing feature extraction based on the current frame ViSAR image and the previous frame ViSAR image to obtain a previous frame appearance feature map and a current frame appearance feature map; A motion cue extraction module, used to obtain an offset matrix based on the appearance feature map of the previous frame and the appearance feature map of the current frame; a foreground object detection module, configured to obtain a current frame object detection result based on the previous frame appearance feature map, the current frame appearance feature map and the offset matrix, and divide the current frame object detection result into a first observation set and a second observation set; A moving background fast compensation module, used to predict the current frame position based on the target detection result of the previous frame and make corrections; The inter-frame target association module is used to obtain the multi-target tracking result at the current moment based on the corrected current frame position and the second observation set.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the ViSAR-based multi-target tracking method according to any one of claims 1 to 7.

10. An electronic device, characterized in that: It comprises a processor and a memory, wherein the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is used to execute the steps in the ViSAR-based multi-target tracking method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Micro-robot high-precision attitude measurement correlation filtering method based on Kalman filtering

    CN115900702A

  • Video SAR moving target shadow detection method based on time sequence appearance feature aggregation

    CN116152213A

  • Multi-target motion estimation and tracking method, device, equipment and medium

    CN117495907A

  • Multi-target tracking method, system and device in complex scene and medium

    CN118135248A

  • Method and program for tracking moving body, recording medium therefor, and moving body tracking apparatus

    JP2005309740A

Cited By

  • Diffusion model multi-target tracking method based on learnable motion condition characterization

    CN122066735A