Optical satellite video multi-target tracking method and device based on target relationship interaction
By performing image segmentation and target detection on satellite video images and combining them with a target relationship interaction model, the problems of error compensation and computational complexity in multi-target tracking are solved, thereby improving the accuracy of multi-target tracking in satellite video, especially the ability to distinguish individual differences of targets with scarce texture features.
Patent Information
- Application Number
- CN202410984718.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-07-22
AI Technical Summary
Existing multi-target tracking methods are prone to error compensation and increased computational complexity. In particular, for satellite video targets with scarce texture features, they cannot effectively distinguish individual differences, resulting in reduced accuracy of satellite video multi-target tracking.
By segmenting the current frame and the previous frame of satellite video images, multiple target slice images that meet certain size conditions are obtained and input into a pre-trained optical satellite video multi-target tracking model based on target relationship interaction. Tracking is performed using a spatiotemporal relationship sparse attention module, a multi-granularity spatiotemporal contrast learning module, a motion cue extraction module, a target detection module, and a joint feature matching module. An undirected bipartite graph and feature enhancement are constructed, and the similarity of target features between frames is evaluated.
It effectively reduces the computational complexity of multi-target tracking, improves the accuracy of multi-target tracking in satellite video, and enhances the ability to distinguish individual differences of targets with scarce texture features.
Smart Images

Figure CN119068168B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image processing technology, and in particular to an optical satellite video multi-target tracking method and apparatus based on target relationship interaction. Background Technology
[0002] As a novel space-based Earth observation method that has emerged in recent years, HROSV (High-Resolution Optical Satellite Video) can continuously monitor moving targets in a specific area over a period of time through staring imaging. Compared with high-resolution optical remote sensing imagery, it has higher temporal resolution and a wider field of view compared with UAV-based Earth observation video and ground surveillance video. HROSV-based multi-target tracking can extract the movement trajectories of a large number of ground targets over a period of time, playing an important role in fields such as traffic perception, military reconnaissance, and commercial analysis, thus attracting the attention of many researchers.
[0003] Multi-target tracking typically includes two sub-tasks: target of interest detection and inter-frame association. Compared to multi-target tracking based on other video data, HRSOV-based multi-target tracking has the following two significant challenges: (1) Weak target features make detection difficult. Satellite video is collected from a distance, and moving targets (such as cars, ships, and airplanes) have low spatial resolution, small size, sparse texture features, low contrast with the background, and motion blur, making it difficult for targets to form stable and effective appearance feature representations; (2) Similar individual features lead to association errors. The basis for inter-frame association is that the feature representation of the same individual target has temporal consistency and uniqueness. The long-distance bird's-eye view observation used in satellite video results in the loss of texture and viewpoint features of the target, causing low differentiation of individual targets in local areas and confusion.
[0004] In existing technologies, based on the coupling form of the two subtasks of target detection and inter-frame association, multi-target tracking methods can be divided into two mainstream paradigms: TBD (Tracking-By-Detection, serial processing after detection and association) and JDT (Joint Detection and Tracking, joint learning of detection and association). TBD detects targets in each frame first and then associates them. This two-stage processing method can achieve flexible combination of local optimal modules. However, the performance of TBD is heavily dependent on high-precision detection results. In response, JDT adopts a one-stage multi-task learning approach to simultaneously achieve detection and association.
[0005] In the detection of small targets, JDT currently mainly employs two strategies: multi-scale feature extraction and historical information compensation. It searches for target regions for information compensation globally, which inevitably leads to errors in compensation and computational complexity, ultimately limiting the improvement of target detection performance. Furthermore, in inter-frame target association within JDT, appearance feature matching and motion feature matching are the two mainstream approaches. For satellite video targets lacking texture features, using feature vectors from detected regions as cues for target association is inefficient and unreliable, failing to effectively distinguish individual differences. In this case, target motion features can possess some individual discriminative power, but they are prone to failure in densely populated local scenes. In addition, the learning competition between detection and association tasks is a common problem faced by JDT methods.
[0006] Therefore, multi-target tracking methods in related technologies are prone to error compensation and increased computational complexity, which limits the improvement of target detection performance. In particular, for satellite video targets with scarce texture features, the feature vectors of the detection area cannot be used for target association clues, and individual differences cannot be effectively distinguished, which reduces the accuracy of multi-target tracking in satellite video and urgently needs to be solved. Summary of the Invention
[0007] This application provides an optical satellite video multi-target tracking method and apparatus based on target relationship interaction, in order to solve the problem that multi-target tracking methods in related technologies are prone to error compensation and increase computational complexity, which limits the improvement of target detection performance. In particular, for satellite video targets with scarce texture features, it is impossible to effectively distinguish individual differences, thus reducing the accuracy of satellite video multi-target tracking.
[0008] The first aspect of this application provides a method for multi-target tracking of optical satellite video based on target relationship interaction, comprising the following steps: acquiring the current frame satellite video image and the previous frame satellite video image of the target satellite video, and performing target detection on the current frame satellite video image to determine the target detection result of the current frame satellite video image; performing image segmentation processing on the current frame satellite video image and the previous frame satellite video image to obtain multiple target slice images that meet preset size conditions; and inputting the multiple target slice images and the target detection result into a pre-trained optical satellite video multi-target tracking model based on target relationship interaction to track and obtain the optical satellite video multi-target tracking result based on target relationship interaction.
[0009] Optionally, in one embodiment of this application, the step of inputting the plurality of target slice images and the target detection results into a pre-trained optical satellite video multi-target tracking model based on target relationship interaction to track and obtain optical satellite video multi-target tracking results based on target relationship interaction includes: obtaining a target node set based on the feature vector set of the target center position of the previous frame satellite video image and the neighborhood feature vector set corresponding to the current frame satellite video image; connecting the target node sets to each other, and ensuring that the target node sets are not adjacent to each other internally, to obtain an edge set; and using the edge set to construct an undirected bipartite graph that satisfies preset conditions.
[0010] Optionally, in one embodiment of this application, the step of inputting the plurality of target slice images and the target detection results into a pre-trained optical satellite video multi-target tracking model based on target relationship interaction to track and obtain the optical satellite video multi-target tracking result based on target relationship interaction includes: determining template nodes according to the feature vector set, and determining search nodes using the neighborhood feature vector set; determining target nodes to be enhanced using the attention scores of the template nodes and the attention scores of the search nodes; guiding the target nodes to be enhanced to perform feature enhancement to obtain enhanced target nodes; normalizing the attention value of each edge based on the enhanced target nodes to obtain a normalization result; using the normalization result to guide the node features of the previous time step to be aggregated to the node features of the current time step, and updating the aggregated result to obtain the enhanced target region features of the current frame satellite video image.
[0011] Optionally, in one embodiment of this application, the step of inputting the plurality of target slice images and the target detection results into a pre-trained optical satellite video multi-target tracking model based on target relationship interaction to track and obtain optical satellite video multi-target tracking results based on target relationship interaction includes: calculating the spatiotemporal contrast loss at the individual granularity and the spatiotemporal contrast loss at the category granularity based on the features of the enhanced target region, the target ground truth target features of the current frame satellite video image and the previous frame satellite video image; and determining the multi-granularity spatiotemporal contrast loss using the spatiotemporal contrast loss at the individual granularity and the spatiotemporal contrast loss at the category granularity.
[0012] Optionally, in one embodiment of this application, the step of inputting the plurality of target slice images and the target detection results into a pre-trained optical satellite video multi-target tracking model based on target relationship interaction to obtain the optical satellite video multi-target tracking result based on target relationship interaction includes: based on the multi-granularity spatiotemporal contrast loss, the positions of all targets in the previous frame satellite video image and the current frame satellite video image, respectively obtaining the topological relationship between each target in the previous frame and the current frame and its neighboring targets, to obtain the target detection results of two adjacent frames; using the target detection results of two adjacent frames to obtain the appearance features and motion offsets of the previous frame satellite video image and the current frame satellite video image; based on the topological relationship, the appearance features, and the motion offsets, evaluating the similarity of target features between frames to obtain a first similarity of the topological relationship, a second similarity of the appearance features, and a third similarity of the motion offsets; using the first similarity, the second similarity, and the third similarity to obtain the similarity of the joint target features, and obtaining the optical satellite video multi-target tracking result based on target relationship interaction according to the similarity of the joint target features.
[0013] Optionally, in one embodiment of this application, the formula for the similarity of the target joint features is:
[0014]
[0015] Among them, Sim(F t,j ,F t-1,i The similarity is represented by the appearance features. For the similarity of motion offset, Let B be the predicted value of the envelope in frame t. t,j The true value is given by IoU, where IoU is the intersection-union ratio, and Sim(T) is the true value. t,j ,T t-1,i ) for target V t,j With target V t-1,i Topological similarity.
[0016] A second aspect of this application provides an optical satellite video multi-target tracking device based on target relationship interaction, comprising: an acquisition module, configured to acquire a current frame satellite video image and a previous frame satellite video image of a target satellite video, and perform target detection on the current frame satellite video image to determine the target detection result of the current frame satellite video image; a determination module, configured to perform image segmentation processing on the current frame satellite video image and the previous frame satellite video image to obtain multiple target slice images that meet preset size conditions; and a tracking module, configured to input the multiple target slice images and the target detection result into a pre-trained optical satellite video multi-target tracking model based on target relationship interaction to track and obtain an optical satellite video multi-target tracking result based on target relationship interaction.
[0017] Optionally, in one embodiment of this application, the tracking module includes: a first acquisition unit, configured to acquire a set of target nodes based on the feature vector set of the target center position of the previous frame satellite video image and the neighborhood feature vector set corresponding to the current frame satellite video image; a first determination unit, configured to connect the target node sets to each other and ensure that the target node sets are not adjacent to each other internally, so as to obtain an edge set; and a construction unit, configured to construct an undirected bipartite graph that satisfies preset conditions using the edge set.
[0018] Optionally, in one embodiment of this application, the tracking module includes: a second determining unit, configured to determine a template node based on the feature vector set and determine a search node using the neighborhood feature vector set; a third determining unit, configured to determine a target node to be enhanced using the attention score of the template node and the attention score of the search node; a fourth determining unit, configured to guide the target node to be enhanced to perform feature enhancement to obtain an enhanced target node; a fifth determining unit, configured to normalize the attention value of each edge based on the enhanced target node to obtain a normalization result; and a processing unit, configured to use the normalization result to guide the node features from the previous time step to the node features from the current time step to aggregate, and update the aggregated result to obtain the enhanced target region features of the current frame satellite video image.
[0019] Optionally, in one embodiment of this application, the tracking module includes: a calculation unit, configured to calculate, based on the features of the enhanced target region, the target ground truth features of the current frame satellite video image and the target features of the previous frame satellite video image, respectively, the spatiotemporal contrast loss at the individual granularity and the spatiotemporal contrast loss at the category granularity; and a sixth determination unit, configured to determine the multi-granularity spatiotemporal contrast loss using the spatiotemporal contrast loss at the individual granularity and the spatiotemporal contrast loss at the category granularity.
[0020] Optionally, in one embodiment of this application, the tracking module includes: a second acquisition unit, configured to acquire, based on the multi-granularity spatiotemporal contrast loss, the target positions of the previous frame satellite video image and the current frame satellite video image, the topological relationship between each target in the previous frame and the current frame and its neighboring targets, respectively, to obtain target detection results for two adjacent frames; a third acquisition unit, configured to acquire, using the target detection results for two adjacent frames, the appearance features and motion offsets of the previous frame satellite video image and the current frame satellite video image; a seventh determination unit, configured to evaluate the similarity of target features between frames based on the topological relationship, the appearance features and the motion offsets, to obtain a first similarity of the topological relationship, a second similarity of the appearance features and a third similarity of the motion offsets; and a fourth acquisition unit, configured to obtain the similarity of joint target features using the first similarity, the second similarity and the third similarity, and obtain optical satellite video multi-target tracking results based on target relationship interaction according to the similarity of the joint target features.
[0021] Optionally, in one embodiment of this application, the formula for the similarity of the target joint features is:
[0022]
[0023] Among them, Sim(F t,j ,F t-1,i The similarity is represented by the appearance features. For the similarity of motion offset, Let B be the predicted value of the envelope in frame t. t,j The true value is given by IoU, where IoU is the intersection-union ratio, and Sim(T) is the true value. t,j ,T t-1,i ) for target V t,j With target V t-1,i Topological similarity.
[0024] A third aspect of this application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the optical satellite video multi-target tracking method based on target relationship interaction as described in the above embodiments.
[0025] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described optical satellite video multi-target tracking method based on target relationship interaction.
[0026] A fifth aspect of this application provides a computer program product, including a computer program that, when executed, is used to implement the above-described optical satellite video multi-target tracking method based on target relationship interaction.
[0027] This application embodiment can input multiple target slice images that meet certain size conditions obtained by image segmentation processing of the current frame and the previous frame satellite video images, and the target detection results obtained by target detection of the current frame satellite video image, into a pre-trained optical satellite video multi-target tracking model based on target relationship interaction. This allows for tracking of the optical satellite video multi-target tracking results based on target relationship interaction, effectively reducing the computational complexity of multi-target tracking and improving the accuracy of satellite video multi-target tracking. Therefore, it solves the problem that related multi-target tracking methods are prone to error compensation and increased computational complexity, leading to limited target detection performance improvement, especially for satellite video targets with scarce texture features, where individual differences cannot be effectively distinguished, thus reducing the accuracy of satellite video multi-target tracking.
[0028] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0029] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:
[0030] Figure 1 This is a flowchart illustrating a multi-target tracking method for optical satellite video based on target relationship interaction, according to an embodiment of this application.
[0031] Figure 2 This is a schematic diagram of an optical satellite video multi-target tracking network model based on target relationship interaction, according to a specific embodiment of this application.
[0032] Figure 3 This is a schematic diagram of the structure of an optical satellite video multi-target tracking device based on target relationship interaction according to an embodiment of this application;
[0033] Figure 4 This is a schematic diagram of the structure of an electronic device provided according to an embodiment of this application. Detailed Implementation
[0034] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0035] The following describes, with reference to the accompanying drawings, an optical satellite video multi-target tracking method and apparatus based on target relationship interaction according to embodiments of this application. Addressing the issues raised in the background section regarding the limitations of existing multi-target tracking methods in the prior art, such as error compensation, increased computational complexity, and consequently limited target detection performance, especially for satellite video targets lacking texture features, where individual differences cannot be effectively distinguished, thus reducing the accuracy of satellite video multi-target tracking, this application provides an optical satellite video multi-target tracking method based on target relationship interaction. In this method, multiple target slice images meeting certain size conditions obtained by image segmentation processing of the current and previous frame satellite video images, along with the target detection results obtained by target detection of the current frame satellite video image, are input into a pre-trained optical satellite video multi-target tracking model based on target relationship interaction. This model tracks and obtains the multi-target tracking result based on target relationship interaction, effectively reducing the computational complexity of multi-target tracking and improving the accuracy of satellite video multi-target tracking. Therefore, this solves the problems of existing multi-target tracking methods in the prior art, such as error compensation, increased computational complexity, limited target detection performance, and consequently, the inability to effectively distinguish individual differences for satellite video targets lacking texture features, thus reducing the accuracy of satellite video multi-target tracking.
[0036] Specifically, Figure 1 This is a flowchart illustrating a multi-target tracking method for optical satellite video based on target relationship interaction, provided in an embodiment of this application.
[0037] like Figure 1 As shown, this optical satellite video multi-target tracking method based on target relationship interaction includes the following steps:
[0038] In step S101, the current frame satellite video image and the previous frame satellite video image of the target satellite are acquired, and target detection is performed on the current frame satellite video image to determine the target detection result of the current frame satellite video image.
[0039] It is understood that the embodiments of this application can acquire the current frame satellite video image and the previous frame satellite video image of the target satellite video, that is, acquire the satellite video images of two adjacent frames, and perform target detection on the current frame satellite video image to determine the target detection result of the current frame satellite video image. For example, the embodiments of this application can perform target detection on the current frame video image through a deep learning model and determine the target category and location, etc., which effectively improves the feasibility of multi-target tracking of optical satellite video.
[0040] In step S102, the current frame satellite video image and the previous frame satellite video image are processed by image segmentation to obtain multiple target slice images that meet the preset size conditions.
[0041] It is understood that the embodiments of this application can perform image segmentation processing on the current frame satellite video image and the previous frame satellite video image to obtain multiple target slice images that meet preset size conditions. For example, the embodiments of this application can segment the previous frame satellite video image and the previous frame satellite video image into several slices of size h. I ×w I The pixel-level slice image effectively improves the accuracy of multi-target tracking in high-resolution optical satellite video.
[0042] In step S103, multiple target slice images and target detection results are input into a pre-trained optical satellite video multi-target tracking model based on target relationship interaction to obtain the optical satellite video multi-target tracking result based on target relationship interaction.
[0043] It is understood that, in the embodiments of this application, multiple target slice images and target detection results in the following steps can be input into a pre-trained optical satellite video multi-target tracking model based on target relationship interaction, so as to obtain high-resolution optical satellite video multi-target tracking results based on target relationship interaction, thereby achieving high-precision satellite video multi-target tracking.
[0044] For example, such as Figure 2 As shown, the embodiments of this application can perform tracking processing based on the spatiotemporal relationship sparse attention module, multi-granularity spatiotemporal contrast learning module, motion cue extraction module, target detection module, joint feature matching module, and target inter-frame association module in the pre-trained target relationship-based optical satellite video multi-target tracking model to obtain satellite video multi-target tracking results. Among them, the spatiotemporal relationship sparse attention module consists of a historical trajectory-guided inter-frame graph construction module and a target node feature enhancement module based on graph attention aggregation, which effectively reduces the computational complexity of multi-target tracking and improves the accuracy of optical satellite video multi-target tracking.
[0045] Optionally, in one embodiment of this application, multiple target slice images and the target detection results are input into a pre-trained optical satellite video multi-target tracking model based on target relationship interaction to track and obtain optical satellite video multi-target tracking results based on target relationship interaction. This includes: obtaining a target node set based on the feature vector set of the target center position of the previous frame satellite video image and the neighborhood feature vector set corresponding to the current frame satellite video image; connecting the target node sets to each other, and ensuring that the target node sets are not adjacent to each other internally, to obtain an edge set; and using the edge set to construct an undirected bipartite graph that satisfies preset conditions.
[0046] In actual implementation, such as Figure 2As shown, in this embodiment of the application, an undirected bipartite graph describing the inter-frame relationships of the target can be constructed using an inter-frame graph construction module guided by the historical trajectory of the spatiotemporal relation sparse attention module. Specifically, the feature vector set V of the target center location in the previous frame of satellite video image can be used as a reference. t-1 Neighborhood feature vector set corresponding to the current frame satellite video image As two sets of nodes, and these two sets of nodes are adjacent to each other, but not internally adjacent to each other, we obtain an edge set E, where E and They are represented as follows:
[0047]
[0048] Where E is the set of edges. For an undirected bipartite graph, V t-1 For the feature vector set, V is the set of feature vectors in the neighborhood. j and V i These represent the search node and the template node, respectively.
[0049] Optionally, in one embodiment of this application, multiple target slice images and the target detection results are input into a pre-trained optical satellite video multi-target tracking model based on target relationship interaction to obtain the optical satellite video multi-target tracking result based on target relationship interaction. This includes: determining template nodes based on feature vector sets and determining search nodes using neighborhood feature vector sets; determining target nodes to be enhanced using the attention scores of template nodes and search nodes; guiding the target nodes to be enhanced to perform feature enhancement to obtain enhanced target nodes; normalizing the attention values of each edge based on the enhanced target nodes to obtain normalization results; using the normalization results to guide the node features from the previous time step to be aggregated to the node features from the current time step, and updating the aggregated results to obtain the enhanced target region features of the current frame satellite video image.
[0050] In some embodiments, such as Figure 2 As shown, the spatiotemporal relation sparse attention module in this embodiment of the application obtains the target node feature enhancement module based on graph attention aggregation. After that, V can be t-1 and These are treated as template nodes and search nodes, respectively. The target node to be enhanced is determined by the attention scores of the template node and the search node. Since a higher attention score indicates a higher similarity between the search node and the template node, and a greater likelihood that they are the same target, based on the above analysis, this application embodiment can introduce graph attention aggregation to guide the feature enhancement of the target node. For each edge (V... j V i )∈E, its attention value e j,i Represented as:
[0051] e j,i =A(V) j V i ) = (W j V j (W) i V i ) T (3)
[0052] Where A is the graph attention module, and V j and V i These are the search node and the template node, respectively. j and W i These are the linear mapping matrices corresponding to the search node and the template node, respectively.
[0053] Next, regarding e j,i Normalization yields e_norm j,i , to represent V j With V i The degree of similarity, that is:
[0054]
[0055] Among them, softmax(e j,i ) is the activation function.
[0056] Secondly, e_norm j,i Node features used to guide time t-1 Node characteristics at time t To perform aggregation and updates, i.e.:
[0057]
[0058] Where l is the computation layer number of the node after feature propagation; L is the number of graph attention layers, which can be set to 2 here; W h These are the learnable weight coefficients.
[0059] In addition, for each edge (V) i V jThe feature update process of )∈E can also refer to formulas (3)-(5). After multiple graph attention layers are calculated, the features of the target area of the current frame satellite video image can be effectively enhanced.
[0060] Therefore, it can be seen that the embodiments of this application can construct a spatiotemporal sparse graph of the known position of the target in the previous frame and the potential position in the current frame through the spatiotemporal relation sparse attention module, accurately capture the cross-frame semantics related to the target region, and thus effectively enhance the feature expression of weak targets.
[0061] Optionally, in one embodiment of this application, multiple target slice images and the target detection results are input into a pre-trained optical satellite video multi-target tracking model based on target relationship interaction to track and obtain optical satellite video multi-target tracking results based on target relationship interaction, including: calculating the spatiotemporal contrast loss at the individual granularity and the spatiotemporal contrast loss at the category granularity based on the features of the enhanced target region, the target ground truth target features of the current frame satellite video image and the previous frame satellite video image; and determining the multi-granularity spatiotemporal contrast loss using the spatiotemporal contrast loss at the individual granularity and the spatiotemporal contrast loss at the category granularity.
[0062] As one possible way to achieve this, such as Figure 2 As shown, the multi-granularity spatiotemporal contrast learning module in this embodiment can calculate the spatiotemporal contrast loss at the individual granularity level. Specifically, for a ground truth target feature V in the current frame satellite video image and the previous frame satellite video image, i.e., two adjacent frames of satellite video images, ground truth target features with the same ID are considered as positive samples. Ground truth target features with different IDs are considered negative samples. The spatiotemporal contrast loss at the individual granularity level can then be calculated using the following formula (6):
[0063]
[0064] in, To determine the similarity between negative sample pairs of a ground truth target feature that has a different ID from a given ground truth target feature, To measure the similarity of positive sample pairs with the same ID as a ground truth target feature, L ind It is always greater than or equal to 0.
[0065] Among them, when smaller and The larger the value, meaning the less similar the features of negative sample pairs and the more similar the features of positive sample pairs, the greater the spatiotemporal contrast loss L at the individual granularity. ind The smaller the value, the better the correlation performance.
[0066] Secondly, the embodiments of this application can also calculate the spatiotemporal contrast loss at the category level. Specifically, similar to the spatiotemporal contrast loss at the individual level, for a ground truth target feature V in two adjacent frames, ground truth target features belonging to the same category are considered as positive samples. True-valued target features belonging to a different category are considered negative samples. The spatiotemporal contrast loss L at the category granularity can be calculated using the following formula (7). cat ,Right now:
[0067]
[0068] in, To measure the similarity between a negative sample pair and a ground-valued target feature that belongs to a different category, To determine the similarity between positive sample pairs of ground value target features belonging to the same category as a certain ground value target feature, when L... cat The smaller the size, the higher the classification accuracy of the target.
[0069] Furthermore, in this embodiment, the spatiotemporal contrast loss at the individual granularity level can be weighted and added together with the spatiotemporal contrast loss at the category granularity level to obtain the multi-granularity spatiotemporal contrast loss L. MGSTCL ,Right now:
[0070] L MGSTCL =0.5*L ind +0.5*L cat (8)
[0071] Placing the multi-granularity spatiotemporal contrast loss after the computational steps of the spatiotemporal relation sparse attention module can alleviate the conflict in multi-task related feature extraction and improve the tracking accuracy of multiple categories and multiple targets in optical satellite video.
[0072] It should be noted that the multi-granularity spatiotemporal contrast learning module in this application embodiment only uses the L calculated above during training. MGSTCL Used for backpropagation of network model parameters.
[0073] Therefore, it can be seen that the embodiments of this application can use a multi-granularity spatiotemporal comparison learning module to perform discriminative training on target features at the individual granularity and category granularity, so that the differences within the same individual are reduced and the differences between individuals of the same category are smaller than the differences between categories, thereby maintaining the balance of multi-task optimization and improving the accuracy of multi-target tracking.
[0074] Optionally, in one embodiment of this application, multiple target slice images and the target detection results are input into a pre-trained optical satellite video multi-target tracking model based on target relationship interaction to obtain the optical satellite video multi-target tracking result based on target relationship interaction. This includes: obtaining the topological relationship between each target and its neighboring targets within the previous and current frames based on multi-granularity spatiotemporal contrast loss, the positions of all targets in the previous and current frames of satellite video images, and obtaining the target detection results of two adjacent frames; obtaining the appearance features and motion offsets of the previous and current frames of satellite video images using the target detection results of two adjacent frames; evaluating the similarity of target features between frames based on the topological relationship, appearance features, and motion offsets to obtain a first similarity of the topological relationship, a second similarity of the appearance features, and a third similarity of the motion offsets; obtaining the similarity of the joint features of the targets using the first similarity, the second similarity, and the third similarity, and obtaining the optical satellite video multi-target tracking result based on the target relationship interaction according to the similarity of the joint features of the targets.
[0075] In some embodiments, such as Figure 2 As shown, in this embodiment, after obtaining the target detection result of the current frame, the joint feature matching module knows the locations of all targets in the previous frame satellite video image and the current frame satellite video image. It can describe the topological relationship between each target in the frame and its neighboring targets. For the j-th target V in the t-th frame... t,j The topological relationship between the M nearest targets can be described by the following formula:
[0076]
[0077] Among them, T t,j,m For target V t,j With neighboring target V t,m The relative positional relationship; x j y j w j and h j The target V is respectively t,j x, y, width, and height; m y m w m and h m The neighboring target V t,m The x-coordinate, y-coordinate, width, and height of the image; w0 and h0 are the width and height of the image in frame t, respectively.
[0078] The target V can be obtained from the above formula (9). t,j Topological relationship description T t,j That is, a vector with dimensions M×8. Similarly, embodiments of this application can also obtain the target V. t-1,iTopological relationship description T t-1,i .
[0079] Secondly, embodiments of this application can utilize cosine distance to evaluate target V. t,j With target V t-1,i Topological similarity Sim(T) t,j T t-1,i ),Right now:
[0080]
[0081] Among them, Sim(T) t,j T t-1,i ) represents the topological similarity; when Sim(T) t,j T t-1,i When V approaches 1, it indicates that the target V t,j With target V t-1,i The more similar the neighbor relationships of each entity, the higher the probability that they belong to the same target, and vice versa.
[0082] Furthermore, in this embodiment of the application, after obtaining the target detection results of two adjacent frames, the DLA-34 appearance feature F at the corresponding location can be obtained. t-1 and F t and the corresponding motion offset. Therefore, the similarity of target features between frames can be evaluated from three dimensions: appearance features, motion offset, and topological relationship, in order to improve the accuracy of target association between frames.
[0083] Among these methods, cosine distance can be used to evaluate the similarity of appearance features and the similarity of motion offsets. Predicted values using the envelope of frame t With truth value B t,j The intersection-union ratio (IoU) is used to evaluate the similarity of topological relationships, and the similarity of topological relationships is obtained using Sim(T) obtained by formula (10). t,j T t-1,i Similarity of joint features of the target (Sim(V)) t,j V t-1,i It is calculated using formula (11), that is:
[0084]
[0085] Among them, Sim(F t,j F t-1,i The similarity is represented by the appearance features. For the similarity of motion offsets, Sim(T) t,j T t-1,i ) for target V t,j With target V t-1,i Topological similarity, Let B be the predicted value of the envelope in frame t. t,j The true value is given by IoU, where IoU is the crossover ratio; when Sim(V) is true, IoU is the crossover ratio. t,j V t-1,i When V approaches 1, it indicates that the target V t,j With target V t-1,i The more similar the individual characteristics, the higher the probability that they belong to the same target, and vice versa.
[0086] Therefore, the embodiments of this application can measure the similarity of the topological subgraphs of each target in adjacent frames through the joint feature matching module, and construct a joint feature description of the target individuals based on appearance, motion, and topology, thereby achieving robust multi-target tracking in densely distributed target scenes.
[0087] The target-relationship-based optical satellite video multi-target tracking method proposed in this application can input multiple target slice images that meet certain size conditions obtained by image segmentation processing of the current frame and the previous frame satellite video images, and the target detection results obtained by target detection of the current frame satellite video image, into a pre-trained target-relationship-based optical satellite video multi-target tracking model to track the target-relationship-based optical satellite video multi-target tracking results. This effectively reduces the computational complexity of multi-target tracking and improves the accuracy of high-resolution optical satellite video multi-target tracking. Therefore, it solves the problem that related multi-target tracking methods are prone to error compensation and increased computational complexity, resulting in limited target detection performance improvement, especially for satellite video targets with scarce texture features, where individual differences cannot be effectively distinguished, thus reducing the accuracy of satellite video multi-target tracking.
[0088] Next, referring to the accompanying drawings, an optical satellite video multi-target tracking device based on target relationship interaction according to an embodiment of this application is described.
[0089] Figure 3 This is a block diagram of an optical satellite video multi-target tracking device based on target relationship interaction according to an embodiment of this application.
[0090] like Figure 3 As shown, the optical satellite video multi-target tracking device 10 based on target relationship interaction includes: an acquisition module 100, a determination module 200, and a tracking module 300.
[0091] Specifically, the acquisition module 100 is used to acquire the current frame satellite video image and the previous frame satellite video image of the target satellite video, and to perform target detection on the current frame satellite video image to determine the target detection result of the current frame satellite video image.
[0092] The determination module 200 is used to perform image segmentation processing on the current frame satellite video image and the previous frame satellite video image to obtain multiple target slice images that meet preset size conditions.
[0093] The tracking module 300 is used to input multiple target slice images and target detection results into a pre-trained optical satellite video multi-target tracking model based on target relationship interaction, so as to obtain the optical satellite video multi-target tracking result based on target relationship interaction.
[0094] Optionally, in one embodiment of this application, the tracking module 300 includes: a first acquisition unit, a first determination unit, and a construction unit.
[0095] The first acquisition unit is used to acquire a set of target nodes based on the feature vector set of the target center position of the previous frame satellite video image and the neighborhood feature vector set corresponding to the current frame satellite video image.
[0096] The first determining unit is used to connect the target node sets to each other, and ensure that the target node sets are not adjacent to each other internally, so as to obtain the edge set.
[0097] The building unit is used to construct an undirected bipartite graph that satisfies preset conditions using a set of edges.
[0098] Optionally, in one embodiment of this application, the tracking module 300 includes: a second determining unit, a third determining unit, a fourth determining unit, a fifth determining unit, and a processing unit.
[0099] The second determining unit is used to determine the template node based on the feature vector set and to determine the search node using the neighborhood feature vector set.
[0100] The third determining unit is used to determine the target node to be enhanced by using the attention score of the template node and the attention score of the search node.
[0101] The fourth determining unit is used to guide the target node to be enhanced to perform feature enhancement, so as to obtain the enhanced target node.
[0102] The fifth determining unit is used to normalize the attention value of each edge based on the enhanced target node, and obtain the normalized result.
[0103] The processing unit is used to guide the aggregation of node features from the previous time step to node features from the current time step using the normalization processing result, and to update the aggregated result to obtain the enhanced target area features of the current frame satellite video image.
[0104] Optionally, in one embodiment of this application, the tracking module 300 includes a calculation unit and a sixth determination unit.
[0105] The computing unit is used to calculate the spatiotemporal contrast loss at the individual granularity and the spatiotemporal contrast loss at the category granularity, based on the features of the enhanced target region, the target ground truth features of the current frame satellite video image and the previous frame satellite video image.
[0106] The sixth determining unit is used to determine the multi-granularity spatiotemporal contrast loss by utilizing the spatiotemporal contrast loss at the individual granularity level and the spatiotemporal contrast loss at the category granularity level.
[0107] Optionally, in one embodiment of this application, the tracking module 300 includes: a second acquisition unit, a third acquisition unit, a seventh determination unit, and a fourth acquisition unit.
[0108] The second acquisition unit is used to acquire the topological relationship between each target and its neighboring targets in the previous and current frames based on multi-granularity spatiotemporal contrast loss, the positions of all targets in the previous and current frames of satellite video images, and to obtain the target detection results of two adjacent frames.
[0109] The third acquisition unit is used to acquire the appearance features and motion offset of the previous frame satellite video image and the current frame satellite video image using the target detection results of two adjacent frames.
[0110] The seventh determining unit is used to evaluate the similarity of target features between frames based on topological relationships, appearance features, and motion offsets, so as to obtain the first similarity of topological relationships, the second similarity of appearance features, and the third similarity of motion offsets.
[0111] The fourth acquisition unit is used to obtain the similarity of the joint features of the targets using the first similarity, the second similarity and the third similarity, and to obtain the optical satellite video multi-target tracking result based on the target relationship interaction according to the similarity of the joint features of the targets.
[0112] Optionally, in one embodiment of this application, the formula for the similarity of the joint features of the target is:
[0113]
[0114] Among them, Sim(F t,j F t-1,i The similarity is represented by the appearance features. For the similarity of motion offset, Let B be the predicted value of the envelope in frame t. t,j The true value is given by IoU, where IoU is the intersection-union ratio, and Sim(T) is the true value. t,j T t-1,i ) for target V t,j With target V t-1,i Topological similarity.
[0115] It should be noted that the foregoing explanation of the embodiment of the optical satellite video multi-target tracking method based on target relationship interaction also applies to the optical satellite video multi-target tracking device based on target relationship interaction in this embodiment, and will not be repeated here.
[0116] The target-relationship-based optical satellite video multi-target tracking device proposed in this application can input multiple target slice images that meet certain size conditions obtained by image segmentation processing of the current frame and the previous frame satellite video images, and the target detection results obtained by target detection of the current frame satellite video image, into a pre-trained target-relationship-based optical satellite video multi-target tracking model to track and obtain the target-relationship-based optical satellite video multi-target tracking results. This effectively reduces the computational complexity of multi-target tracking and improves the accuracy of satellite video multi-target tracking. Therefore, it solves the problem that related multi-target tracking methods are prone to error compensation and increased computational complexity, resulting in limited target detection performance improvement, especially for satellite video targets with scarce texture features, where individual differences cannot be effectively distinguished, thus reducing the accuracy of satellite video multi-target tracking.
[0117] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device may include:
[0118] The memory 401, the processor 402, and the computer program stored on the memory 401 and capable of running on the processor 402.
[0119] When the processor 402 executes the program, it implements the optical satellite video multi-target tracking method based on target relationship interaction provided in the above embodiments.
[0120] Furthermore, electronic devices also include:
[0121] Communication interface 403 is used for communication between memory 401 and processor 402.
[0122] The memory 401 is used to store computer programs that can run on the processor 402.
[0123] The memory 401 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.
[0124] If the memory 401, processor 402, and communication interface 403 are implemented independently, then the communication interface 403, memory 401, and processor 402 can be interconnected via a bus to complete communication between them. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, Figure 4 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0125] Optionally, in a specific implementation, if the memory 401, processor 402, and communication interface 403 are integrated on a single chip, then the memory 401, processor 402, and communication interface 403 can communicate with each other through an internal interface.
[0126] Processor 402 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.
[0127] This embodiment also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described optical satellite video multi-target tracking method based on target relationship interaction.
[0128] This embodiment also provides a computer program product, including a computer program that, when executed, is used to implement the above-described optical satellite video multi-target tracking method based on target relationship interaction.
[0129] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0130] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0131] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or N executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.
[0132] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.
[0133] It should be understood that the various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0134] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0135] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0136] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.
Claims
1. A multi-target tracking method based on target relationship interaction in optical satellite video, characterized in that, Includes the following steps: Acquire the current frame satellite video image and the previous frame satellite video image of the target satellite, and perform target detection on the current frame satellite video image to determine the target detection result of the current frame satellite video image; The current frame satellite video image and the previous frame satellite video image are subjected to image segmentation processing to obtain multiple target slice images that meet the preset size conditions; The multiple target slice images and the target detection results are input into a pre-trained optical satellite video multi-target tracking model based on target relationship interaction to obtain the optical satellite video multi-target tracking result based on target relationship interaction. The step of inputting the multiple target slice images and the target detection results into a pre-trained optical satellite video multi-target tracking model based on target relationship interaction to obtain the optical satellite video multi-target tracking result based on target relationship interaction includes: obtaining a target node set based on the feature vector set of the target center position of the previous frame satellite video image and the neighborhood feature vector set corresponding to the current frame satellite video image; connecting the target node sets to each other, and ensuring that the target node sets are not adjacent to each other internally, to obtain an edge set; and using the edge set to construct an undirected bipartite graph that satisfies preset conditions. A template node is determined based on the feature vector set, and a search node is determined using the neighborhood feature vector set. The attention scores of the template node and the search node are used to determine the target node to be enhanced. The target node to be enhanced is guided to undergo feature enhancement to obtain the enhanced target node. Based on the enhanced target node, the attention value of each edge is normalized to obtain a normalization result. The normalization result is used to guide the aggregation of node features from the previous time step to node features from the current time step, and the aggregation result is updated to obtain the enhanced target region features of the current frame satellite video image. Based on the features of the enhanced target region, the ground truth target features of the current frame satellite video image and the previous frame satellite video image, the spatiotemporal contrast loss at the individual granularity level and the spatiotemporal contrast loss at the category granularity level are calculated respectively; the multi-granularity spatiotemporal contrast loss is determined using the spatiotemporal contrast loss at the individual granularity level and the spatiotemporal contrast loss at the category granularity level. Based on the multi-granularity spatiotemporal contrast loss and the positions of all targets in the previous and current frame satellite video images, the topological relationships between each target and its neighboring targets within the previous and current frames are obtained to obtain target detection results for two adjacent frames. The appearance features and motion offsets of the previous and current frame satellite video images are then obtained using the target detection results of the two adjacent frames. Based on the topological relationships, appearance features, and motion offsets, the similarity of target features between frames is evaluated to obtain a first similarity of the topological relationships, a second similarity of the appearance features, and a third similarity of the motion offsets. The similarity of the joint target features is obtained using the first, second, and third similarities, and the optical satellite video multi-target tracking results based on target relationship interaction are obtained according to the similarity of the joint target features.
2. The method according to claim 1, characterized in that, The formula for the similarity of the joint features of the targets is: in, Similarity in appearance features For the similarity of motion offset, For the first Frame envelope prediction value, The true value is given by IoU, which is the intersection-union ratio. For the goal With the goal Topological similarity.
3. A multi-target tracking device based on target relationship interaction using optical satellite video, characterized in that, include: The acquisition module is used to acquire the current frame satellite video image and the previous frame satellite video image of the target satellite video, and to perform target detection on the current frame satellite video image to determine the target detection result of the current frame satellite video image; The determination module is used to perform image segmentation processing on the current frame satellite video image and the previous frame satellite video image to obtain multiple target slice images that meet preset size conditions; The tracking module is used to input the multiple target slice images and the target detection results into a pre-trained optical satellite video multi-target tracking model based on target relationship interaction, so as to obtain the optical satellite video multi-target tracking result based on target relationship interaction; The step of inputting the multiple target slice images and the target detection results into a pre-trained optical satellite video multi-target tracking model based on target relationship interaction to obtain the optical satellite video multi-target tracking result based on target relationship interaction includes: obtaining a target node set based on the feature vector set of the target center position of the previous frame satellite video image and the neighborhood feature vector set corresponding to the current frame satellite video image; connecting the target node sets to each other, and ensuring that the target node sets are not adjacent to each other internally, to obtain an edge set; and using the edge set to construct an undirected bipartite graph that satisfies preset conditions. A template node is determined based on the feature vector set, and a search node is determined using the neighborhood feature vector set. The attention scores of the template node and the search node are used to determine the target node to be enhanced. The target node to be enhanced is guided to undergo feature enhancement to obtain the enhanced target node. Based on the enhanced target node, the attention value of each edge is normalized to obtain a normalization result. The normalization result is used to guide the aggregation of node features from the previous time step to node features from the current time step, and the aggregation result is updated to obtain the enhanced target region features of the current frame satellite video image. Based on the features of the enhanced target region, the ground truth target features of the current frame satellite video image and the previous frame satellite video image, the spatiotemporal contrast loss at the individual granularity level and the spatiotemporal contrast loss at the category granularity level are calculated respectively; the multi-granularity spatiotemporal contrast loss is determined using the spatiotemporal contrast loss at the individual granularity level and the spatiotemporal contrast loss at the category granularity level. Based on the multi-granularity spatiotemporal contrast loss and the positions of all targets in the previous and current frame satellite video images, the topological relationships between each target and its neighboring targets within the previous and current frames are obtained to obtain target detection results for two adjacent frames. The appearance features and motion offsets of the previous and current frame satellite video images are then obtained using the target detection results of the two adjacent frames. Based on the topological relationships, appearance features, and motion offsets, the similarity of target features between frames is evaluated to obtain a first similarity of the topological relationships, a second similarity of the appearance features, and a third similarity of the motion offsets. The similarity of the joint target features is obtained using the first, second, and third similarities, and the optical satellite video multi-target tracking results based on target relationship interaction are obtained according to the similarity of the joint target features.
4. The apparatus according to claim 3, characterized in that, The formula for the similarity of the joint features of the targets is: in, Similarity in appearance features For the similarity of motion offset, For the first Frame envelope prediction value, The true value is given by IoU, which is the intersection-union ratio. For the goal With the goal Topological similarity.
5. An electronic device, characterized in that, include: The memory, the processor, and the computer program stored in the memory and executable on the processor, the processor executing the program to implement the optical satellite video multi-target tracking method based on target relationship interaction as described in any one of claims 1-2.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that, The program is executed by the processor to implement the optical satellite video multi-target tracking method based on target relationship interaction as described in any one of claims 1-2.
7. A computer program product, comprising a computer program, characterized in that, The computer program is executed by a processor to implement the optical satellite video multi-target tracking method based on target relationship interaction as described in any one of claims 1-2.
