Target tracking method, device and equipment based on domain operation
Through the target tracking method based on domain operations, the problems of target merging, separation, and tracking of behaviors entering and leaving the field of view in microscopic image sequences are solved, accurate tracking of complex behaviors is achieved, and the accuracy of target tracking is improved.
Patent Information
- Application Number
- CN202410743805.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-09-03
AI Technical Summary
It is difficult for traditional target tracking methods to accurately track the merger, separation, and entry and exit behaviors of targets in microscopic image sequences, especially in application scenarios where training data is scarce, and the tracking accuracy of nonlinear moving targets is not high.
Using a target tracking method based on domain operations, by defining different spatially varying domain operation sets and pairing targets according to energy minimization rules, the domain operation with the lowest energy consumption corresponds to the correct target pairing to achieve target merging and separation behavior tracking.
It achieves accurate tracking of complex target behaviors in microscopic image sequences, can handle complex behaviors such as merging and separation that occur in image sequences, and improves the accuracy of target tracking.
Smart Images

Figure CN118587249A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of image processing technology, and in particular to a target tracking method, device and equipment based on domain operation. Background Art
[0002] Image information processing technologies such as target detection and tracking have been widely used in the fields of industry, transportation, medical treatment, biology, and drones. Common target tracking methods include active contour models, state space models, deep learning models, and target association models. The active contour model uses contour curves to locate the boundaries of each target in the current frame image. According to the characteristics of the pixel intensity distribution around the target, the target contour of the current frame image undergoes topological changes and gradually moves to the target boundary of the next frame image. When the target is greatly offset, the next frame image has only a small overlap with the same target in the current frame image, so the active contour model is difficult to track targets with large offsets. The state space model makes assumptions about the motion law of the target based on the target motion and morphology model, and uses signal filtering methods to track the target. The classic state space model is the Kalman filter and particle filter, which is based on the linear dynamic motion model of the "prediction-correction" mechanism to improve the prediction ability of the target position in the next frame image, but this method has low tracking accuracy for nonlinear motion targets. Target tracking based on the deep learning model uses a specific target detection network to extract high-level image features, fully mine the semantic information of the image, and is combined with the tracking network to form an end-to-end target tracker. For example, BGU-IL uses LSTM-Unet for target segmentation and graph convolutional neural networks for target tracking. However, such methods are difficult to apply to application scenarios where training data is scarce. Target association is to match the same target in different frames based on the similarity of the feature vectors of the target segmentation area for the segmented target. For example, the DREX-US algorithm combines the target trajectory of the next frame image with the target trajectory of the current frame image, calculates the posterior probability distribution of the candidate trajectory using the target motion features and morphological features, and obtains the target pairing for the next frame image. KTH-SE combines short-range target trajectories to form a state space containing all candidate trajectories, and iteratively adds the target trajectory to the core trajectory based on a probability scoring function.
[0003] Due to the complex life activity characteristics of subcellular structures in microscopic image sequences, targets may merge, separate, disappear, and enter and exit the field of view during the imaging stage. Traditional distance similarity-based methods are difficult to accurately track targets in biomedical microscopic images. Summary of the invention
[0004] 1. Technical issues to be resolved
[0005] In order to solve at least one of the above technical problems, the embodiments of the present disclosure provide a target tracking method, device and equipment based on domain operations, which regard different spatial changes of the target as the result of applying different operations to the target within a certain area, and different operations need to consume corresponding energy. Define a set of domain operations that cause different spatial changes to the target, and each domain operation consumes a specific amount of energy. Combine the target pairings of adjacent frame images with the domain operations. According to the energy minimization rule, the domain operation with the lowest energy consumption corresponds to the correct target pairing. The method provided by the embodiments of the present disclosure can achieve more accurate tracking of behaviors such as target merging and separation, and the domain operation set is expandable to express more complex spatial positions and geometric changes of the target, so as to solve the problem of target tracking in complex behaviors such as merging and separation in image sequences.
[0006] (II) Technical solution
[0007] In view of the above problems, embodiments of the present disclosure provide a target tracking method, apparatus and device based on domain operation.
[0008] According to a first aspect of the present disclosure, a target tracking method based on domain operations is provided, and the method includes the following steps: determining a target scope range of adjacent frame images according to an input image sequence; performing target pairing of adjacent frame images according to the target scope range of adjacent frame images to obtain a target pairing set; optimizing the target pairing set to obtain a target candidate pairing set; calculating a total energy value consumed by a domain operation corresponding to a target pairing in the target candidate pairing set to obtain an optimal target pairing; and generating a target tracking result according to the optimal target pairing, wherein the domain operation is to cause paired adjacent frame targets to perform specific behaviors within the target scope; and the target pairing corresponding to the domain operation with the lowest total energy consumption in the target candidate pairing set is the optimal target pairing.
[0009] In some exemplary embodiments, the method further includes the following steps: defining basic operations and domain operations within the target scope; and defining energy values consumed by basic operations and energy values consumed by domain operations, wherein the domain operations are composed of basic operations; and the energy value consumed by the domain operations is the sum of the energy values consumed by the basic operations constituting the domain operations.
[0010] In some exemplary embodiments, basic operations include creation operations, move operations, and deletion operations; and domain operations include target movement, target merging, target separation, entering the field of view, and leaving the field of view operations, wherein the basic operations corresponding to target movement include move operations; the basic operations corresponding to target merging include move operations, delete operations, and creation operations; the basic operations corresponding to target separation include creation operations, move operations, and deletion operations; the basic operations corresponding to entering the field of view include creation operations and move operations; and the basic operations corresponding to leaving the field of view include creation operations and move operations.
[0011] In some exemplary embodiments, the energy values consumed by the creation operation and the deletion operation are defined as fixed values; the energy values consumed by the creation operation and the deletion operation are defined as equal; and the energy value consumed by the movement operation is defined as positively correlated with the corresponding target movement distance and the distance between targets in adjacent frame images.
[0012] In some exemplary embodiments, the target scope of adjacent frame images is determined based on an input image sequence, including the following steps: calculating the centroid and area of the target region; calculating the distance between each target in the current frame image and each target in the next frame image based on the centroid; taking the minimum value of the distance between each target in the current frame image and each target in the next frame image as the nearest neighbor distance of the corresponding target, and obtaining a nearest neighbor distance set; taking the maximum value in the nearest neighbor distance set as the target scope radius; and determining the target scope of adjacent frame images based on the target scope radius.
[0013] In some exemplary embodiments, target pairing of adjacent frame images is performed based on target scopes of adjacent frame images to obtain a target pairing set, including the following steps: obtaining a first target set of each target in the target scope of the current frame image; obtaining a second target set of the next frame image in the same target scope as the current frame image; and pairing the first target set with the second target set to obtain a target pairing set.
[0014] In some exemplary embodiments, optimizing a target pairing set to obtain a target candidate pairing set includes the following steps: calculating energy values consumed by target pairings in the target pairing set; and removing redundant target pairings in the target pairing set according to a minimum energy principle, wherein redundant target pairings include repeated target pairings; and when there are multiple pairing results between the first target set and the second target set, the redundant target pairings also include target pairings that consume more energy.
[0015] In some exemplary embodiments, the total energy value consumed by the domain operation corresponding to the target pairing in the target candidate pairing set is calculated to obtain the optimal target pairing, including the following steps: obtaining the number of pairs in the target candidate pairing set, the number of targets in the current frame image, and the number of targets in the next frame image; constructing the target participation matrix of the current frame image and the target participation matrix of the next frame image; calculating the energy value consumed by the domain operation corresponding to each target pairing in the target candidate pairing set, and the energy value consumed by the domain operation corresponding to the target pairing constitutes an energy vector; constructing a target pairing participation vector corresponding to the energy vector; respectively constructing the target participation matrix of the current frame image, the target participation matrix of the next frame image, and the equation of the energy vector and the target pairing participation vector so that the total energy value of the domain operation corresponding to the target pairing of adjacent frame images is the lowest; and using a genetic algorithm to solve the target pairing participation vector to obtain the optimal target pairing, wherein the element values in the target participation matrix of the current frame image and the target participation matrix of the next frame image are 0 or 1, wherein 0 indicates that the target does not participate in the pairing, and 1 indicates that the target participates in the pairing; the element values in the target pairing participation vector are 0 or 1, wherein 1 indicates that the target pairing is selected, and 0 indicates that the target pairing is not selected.
[0016] A second aspect of the present disclosure provides a target tracking device based on domain operations, the device comprising the following modules: a range determination module, used to determine the target scope of adjacent frame images according to an input image sequence; a first pairing module, used to perform target pairing of adjacent frame images according to the target scope of adjacent frame images to obtain a target pairing set; a second pairing module, used to optimize the target pairing set to obtain a target candidate pairing set; a third pairing module, used to calculate the total energy value consumed by the domain operation corresponding to the target pairing in the target candidate pairing set to obtain the optimal target pairing; and a generation module, used to generate a target tracking result according to the optimal target pairing, wherein the domain operation is the target behavior corresponding to the target pairing of adjacent frame images within the target scope; and the target pairing corresponding to the domain operation with the lowest total energy consumption in the target candidate pairing set is the optimal target pairing.
[0017] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the above method.
[0018] The fourth aspect of the present disclosure also provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the above method.
[0019] (III) Beneficial effects
[0020] It can be seen from the above technical solutions that the target tracking method, device and apparatus based on domain operation provided by the embodiments of the present disclosure have at least one of the following beneficial effects:
[0021] (1) According to the characteristics of microscopic images, different spatial changes of the target are regarded as the results of applying different operations to the target in a certain area, and different operations require corresponding energy consumption. According to the energy minimization rule, the domain operation with the lowest energy consumption corresponds to the correct target pairing, which can achieve more accurate target merging and separation and other behavior tracking.
[0022] (2) By defining a set of domain operations that cause different spatial changes to the target, the target pairing of adjacent frame images is combined with the domain operations. At the same time, the domain operation set can be expanded to express more complex spatial positions and geometric changes of the target, so as to solve the problem of target tracking that occurs in complex behaviors such as merging and separation in image sequences. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0024] Figure 1 A schematic diagram of a process flow of a target tracking method based on domain operation according to an embodiment of the present disclosure is shown;
[0025] Figure 2 A schematic diagram of a flow chart of another target tracking method based on domain operation according to an embodiment of the present disclosure is shown;
[0026] Figure 3 A schematic diagram of a process of determining a target scope of adjacent frame images according to an input image sequence according to an embodiment of the present disclosure is shown;
[0027] Figure 4 The flowchart schematically shows how to perform target pairing of adjacent frame images according to the target scope of adjacent frame images to obtain a target pairing set according to an embodiment of the present disclosure;
[0028] Figure 5 The following schematically shows a flow chart of optimizing a target pairing set and obtaining a target candidate pairing set according to an embodiment of the present disclosure;
[0029] Figure 6 A schematic diagram of a process of calculating the total energy value consumed by the domain operation corresponding to the target pairing in the target candidate pairing set and obtaining the optimal target pairing according to an embodiment of the present disclosure is shown;
[0030] Figure 7A schematic diagram schematically shows the visualization result of the complex behavior tracking trajectory of the target in the Fluo-N2DH-GOWT1 microscopic image sequence according to an embodiment of the present disclosure;
[0031] Figure 8 The structure block diagram of a target tracking device 800-1 based on domain operation according to an embodiment of the present disclosure is schematically shown;
[0032] Fig. 9 A structural block diagram of another target tracking device 800-2 based on domain operation according to an embodiment of the present disclosure is schematically shown; and
[0033] Fig.10 A block diagram of an electronic device according to a target tracking method based on domain operation according to an embodiment of the present disclosure is schematically shown.
[0034] Illustration Description:
[0035] 600-electronic device; 601-processor; 602-read only memory (ROM); 603-random access memory (RAM); 604-bus; 605-input / output (I / O) interface; 606-input part; 607-output part; 608-storage part; 609-communication part; 610-drive; 611-removable medium. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present disclosure.
[0037] Figure 1 A flowchart of a target tracking method based on domain operation according to an embodiment of the present disclosure is schematically shown.
[0038] like Figure 1 As shown, a target tracking method based on domain operation according to an embodiment of the present disclosure includes steps S110 to S150.
[0039] In step S110, the target scope of adjacent frame images is determined according to the input image sequence. Optionally, the input image sequence includes a microscopic image sequence.
[0040] In step S120, target pairing of adjacent frame images is performed according to the target scope of adjacent frame images to obtain a target pairing set.
[0041] In step S130 , the target pairing set is optimized to obtain a target candidate pairing set.
[0042] In step S140, the total energy value consumed by the domain operation corresponding to the target pair in the target candidate pair set is calculated to obtain the optimal target pair. The domain operation is to make the paired adjacent frame targets perform specific behaviors within the target scope, and the target pair corresponding to the domain operation with the lowest total energy value consumed in the target candidate pair set is the optimal target pair.
[0043] In step S150, a target tracking result is generated according to the optimal target pairing.
[0044] Figure 2 A flowchart of another target tracking method based on domain operation according to an embodiment of the present disclosure is schematically shown.
[0045] like Figure 2 As shown, another target tracking method based on domain operation according to an embodiment of the present disclosure is Figure 1 Steps S160 - S170 are added on the basis of the method shown. It can be understood that S160 - S170 are not limited to being set before step S110 , but can also be set at any position before step S130 .
[0046] In step S160, basic operations and domain operations within the target scope are defined, wherein the domain operations are composed of basic operations.
[0047] In some exemplary embodiments, the basic operations are defined to include a create operation (Create, C), a move operation (Move, M), and a delete operation (Delete, D); the operation O acting on the target T is denoted as O(T): the create operation C(T) generates a target T; the move operation M(T1, T2) moves the current frame image target T1 to the next frame image target T2; the delete operation D(T) deletes the target T from the current frame image. Indicates n operations are performed on the target T. For example, It means generating target T1 and moving it to the position of target T2 in the next frame. The creation and movement operations act on any layer of operations, but the deletion operator can only act on the outermost layer. Different combinations of operations represent different target behaviors.
[0048] The domain operations include target movement, target merging, target separation, entering the field of view, and leaving the field of view. Among them, the basic operations corresponding to target movement include moving operations; the basic operations corresponding to target merging include moving operations, deleting operations, and creating operations; the basic operations corresponding to target separation include creating operations, moving operations, and deleting operations; the basic operations corresponding to entering the field of view include creating operations and moving operations; and the basic operations corresponding to leaving the field of view include creating operations and moving operations. The domain operation set in the embodiments of the present disclosure is not limited to the above-mentioned forms, and can be expanded according to actual conditions to express more complex spatial positions and geometric changes of targets, so as to solve the problem of target tracking in complex behaviors such as merging and separation in image sequences.
[0049] In step S170, the energy value consumed by the basic operation and the energy value consumed by the domain operation are defined, wherein the energy value consumed by the domain operation is the sum of the energy values consumed by the basic operations constituting the domain operation.
[0050] In some exemplary embodiments, the energy values consumed by the creation operation and the deletion operation are defined as fixed values; and the energy value consumed by the movement operation is defined to be positively correlated with the corresponding target movement distance and the distance between each target in adjacent frame images.
[0051] For example, the energy consumed by the basic operations including create operation (Create, C), move operation (Move, M) and delete operation (Delete, D) are denoted as E C 、E M and E D , where the energy consumed by the creation operation and the deletion operation is defined to be equal, E C =E D =-1. The energy consumed by the domain operation is defined as the sum of the energy consumed by the basic operations that constitute the domain operation. The energy consumed by the domain operation is calculated as follows.
[0052] The energy consumed by target movement (MOVE). The move operation M(T1, T2) means moving the target from the position of target T1 in the current frame image to the position of target T2 in the next frame image. The energy consumed by target movement is defined to be related to the target movement distance. The energy consumed by the movement is calculated based on the target distance matrix H. M .
[0053]
[0054] Among them, max(H) represents the maximum value of the calculated target distance matrix H, and min(H) represents the minimum value of the target distance matrix H.
[0055] The energy consumed by target merging (ME) is the sum of the energy values of the following operations:
[0056] (1) Mobile operation and The target T of the current frame image 11 and T 12 Move to the position of target T2 in the next frame image.
[0057] (2) Deletion operation D(T 11 ) and D(T 12 ) Delete the current frame image target T 11 and T 12 .
[0058] (3) Create operation C(T2) to generate target T2 in the next frame image.
[0059] The energy consumed by the target merger is:
[0060]
[0061] The energy consumed by the target separation behavior (DV) is the sum of the energy values of the following operations:
[0062] (1) Perform two creation operations C(T1) on the target T1 to be separated in the current frame image to generate two new targets.
[0063] (2) Mobile operation and Move the new target to the next frame image target T 21 and T 22 Location.
[0064] (3) The deletion operation D(T1) deletes the current frame image target T1.
[0065] The energy consumed by the target separation is:
[0066]
[0067] The energy consumed by entering the field of view (MIN) is the sum of the energy values of the following operations:
[0068] (1) Operation Create a virtual target at the position closest to target T2 at the edge of the first frame image .
[0069] (2) Operation Virtual Target Move to the target T2 position.
[0070] The energy consumed by entering the field of view is:
[0071]
[0072] The energy consumed by leaving the field of view (MOUT) is the sum of the energy values of the following operations:
[0073] (1) Operation Create a virtual target at the position closest to target T1 at the edge of the second frame image .
[0074] (2) Operation The target T1 is moved to a position close to the virtual target at the edge of the second frame image.
[0075] The energy consumed when leaving the field of view is:
[0076]
[0077] The energy consumed by operations in each domain is not limited to the calculation method listed in the above examples, and the parameters in each calculation formula can be adjusted according to the actual scenario.
[0078] Figure 3 The flowchart of determining the target scope of adjacent frame images according to the input image sequence according to an embodiment of the present disclosure is schematically shown.
[0079] like Figure 3 As shown, step S110 according to the embodiment of the present disclosure includes steps S111-S115.
[0080] In step S111 , the centroid and area of the target region are calculated.
[0081] In some exemplary embodiments, the input image sequence includes a binary image of the target area or the image is converted into a binary image. The centroid and area of the target area of each frame of the binary image are calculated as the centroid and area of the target area.
[0082] In step S112, the distance between each target in the current frame image and each target in the next frame image is calculated based on the centroid.
[0083] In some exemplary embodiments, the distances between the targets in adjacent frame images are calculated according to the target centroid positions, and the distances between the targets form a target distance matrix H. The target distance matrix H can be expressed as:
[0084]
[0085] Among them, n1 and n2 represent the number of targets in the current frame image and the next frame image, and the matrix , H ij Indicates the target a in the current frame image i and target b in the next frame image j The Euclidean distance between .
[0086] In step S113, the minimum value of the distance between each target in the current frame image and each target in the next frame image is taken as the nearest neighbor distance of the corresponding target, and a nearest neighbor distance set is obtained.
[0087] In step S114, the maximum value in the nearest neighbor distance set is taken as the target scope radius. s It can be expressed as:
[0088]
[0089] Among them, i and j are any targets in the current frame image and the next frame image respectively.
[0090] In step S115, the target scope of adjacent frame images is determined according to the target scope radius. The scope is the range of the domain operation on the same target, which limits the influence of the domain operation on the target and reduces the calculation amount of the target tracking algorithm.
[0091] Figure 4 The flowchart schematically shows a process of performing target pairing of adjacent frame images according to the target scope of adjacent frame images to obtain a target pairing set according to an embodiment of the present disclosure.
[0092] like Figure 4 As shown, step S120 according to the embodiment of the present disclosure includes steps S121-S123.
[0093] In step S121, a first target set of each target in the target scope in the current frame image is obtained, and the first target set is represented by P T .
[0094] In step S122, a second target set in the same target scope as the current frame image is obtained for the next frame image, and the second target set is represented by Q T .
[0095] In step S123, the first target set is paired with the second target set to obtain a target paired set, where the target paired set is denoted as P.
[0096] For example, take the target set P in the scope T , and the second target set Q T Perform non-repetitive pairing and add the pairing results to the target pairing set P. Depending on the number of targets in the scope, there are the following cases: T Contains only one target, set Q T When it is empty, the corresponding target of the target pairing leaves the field of view; when the set P T Empty, set Q TWhen only one target is included, the target pairing corresponding to the target enters the field of view; when the set P T and Q T When all contain only one target, the target pairing corresponds to the target movement; when the set P T Contains two or more targets, set Q T When there is only one target, the target pairing corresponds to the target merging; when the set P T Contains only one target, set Q T When two or more targets are included, target pairing corresponds to target separation.
[0097] Figure 5 The flowchart of optimizing the target pairing set and obtaining the target candidate pairing set according to the embodiment of the present disclosure is schematically shown.
[0098] like Figure 5 As shown, step S130 according to the embodiment of the present disclosure includes steps S131 - S132 .
[0099] In step S131, the energy value consumed by the target pairing in the target pairing set is calculated. Optionally, the energy value consumed by the target pairing is calculated according to the calculation formula for the domain operation energy consumption defined in step S170.
[0100] In step S132, redundant target pairs in the target pairing set are removed according to the minimum energy principle, wherein the redundant target pairs include repeated target pairs. When there are multiple pairing results between the first target set and the second target set, the redundant target pairs also include target pairs that consume more energy.
[0101] For example, if the scope set P T or Q T When the number of targets is greater than or equal to 2, remove the target pairing with larger energy consumption. If the current frame image target a1 is paired with the next frame image targets b1 and b2 respectively, and the energy consumption of pairing with target b1 is higher than the energy consumption of pairing with target b2, then remove the target pairing (a1, b1).
[0102] Figure 6 The figure schematically shows a flow chart of calculating the total energy value consumed by the domain operation corresponding to the target pairing in the target candidate pairing set and obtaining the optimal target pairing according to an embodiment of the present disclosure.
[0103] like Figure 6 As shown, step S140 according to the embodiment of the present disclosure includes steps S141-S146.
[0104] In step S141 , the number of pairs in the target candidate pairing set, the number of targets in the current frame image, and the number of targets in the next frame image are obtained.
[0105] In step S142, a target participation matrix of the current frame image and a target participation matrix of the next frame image are constructed.
[0106] In step S143, the energy value consumed by the domain operation corresponding to each target pair in the target candidate pair set is calculated, and the energy values consumed by the domain operations corresponding to the target pairs constitute an energy vector.
[0107] In step S144, a target pairing participation vector corresponding to the energy vector is constructed.
[0108] In step S145, the target participation matrix of the current frame image, the target participation matrix of the next frame image, and the equations of the energy vector and the target pairing participation vector are constructed respectively, so that the total energy value of the domain operation corresponding to the target pairing of adjacent frame images is the lowest; wherein the element values in the target participation matrix of the current frame image and the target participation matrix of the next frame image are 0 or 1, wherein 0 indicates that the target does not participate in pairing, and 1 indicates that the target participates in pairing. The element values in the target pairing participation vector are 0 or 1, wherein 1 indicates that the target is selected for pairing, and 0 indicates that the target is not selected for pairing.
[0109] For example, all targets in the current frame image within its scope are paired with targets in the same scope of the next frame image. c The number of pairs is K. Let the number of targets in the current frame image be n1, and the number of targets in the next frame image be n2. Use 0 or 1 to indicate whether the target participates in pairing, and construct the target participation matrix of the current frame image , the next frame image target participation matrix , all elements in matrix A and matrix B are either 0 or 1. The value of the i-th row and j-th column of matrix A and B is 1, which means that the i-th target in the current frame image and the next frame image participates in the pairing of the j-th target, and the value is 0, which means that the target does not participate in the pairing. The target candidate pairing set P c The energy consumption value of each target pair in constitutes the energy vector . Let the variable , a value of 1 indicates that the target pairing is selected, and a value of 0 indicates that the target pairing is not selected. The target pairing search problem is described as a single-objective integer programming problem:
[0110]
[0111] In step S146, a genetic algorithm is used to solve the target pairing participation vector to obtain the optimal target pairing.
[0112] For example, use chromosomes to encode variable x, and chromosome genes represent the components of variable x that take values of 0 or 1. Set the number of chromosome populations to 1000, the maximum number of iterations to 100, the probability of chromosome segment exchange to 0.5, and the probability of chromosome mutation to 0.2. Construct a chromosome population, use the constraints of a single-objective integer programming problem to select chromosomes, and use the objective function of a single-objective integer programming problem as the fitness function of the chromosome. Use the chromosome exchange and mutation algorithm to parallelly calculate the target pairing set P corresponding to each chromosome c The total energy consumption value of . According to the values of 0 and 1 in the optimal solution of variable x, the target pairing is selected to obtain the optimal target pairing set.
[0113] In order to verify the accuracy of the target tracking method based on domain operation according to the embodiment of the present disclosure, the mouse stem cell microscopic image sequence Fluo-N2DH-GOWT1 and the benchmark target tracking results provided by the Cell Tracking Challenge (http: / / celltrackingchallenge.net) were selected. The evaluation index for the accuracy of multi-target complex behavior tracking adopts the non-periodic directed graph measurement method. The value range of this index is [0,1], and a value of 1 indicates that the tracking result is completely consistent with the benchmark tracking result. The multi-target tracking accuracy of the target tracking method based on domain operation according to the embodiment of the present disclosure for this microscopic image sequence reaches 0.997, indicating that the tracking results obtained by the target tracking method based on domain operation according to the embodiment of the present disclosure are consistent with the benchmark tracking results. For the visualization results of the complex behavior tracking trajectory of the target in the Fluo-N2DH-GOWT1 microscopic image sequence in the embodiment of the present disclosure, please refer to Figure 7 . Figure 7 In , the white mark indicates the target that is separated and leaves the field of view, and the gray mark indicates the child target generated after the target is separated. Figure 7 It can be seen that target T3 is separated into targets T26 and T27, target T15 is separated into targets T24 and T25, target T16 is separated into targets T28 and T29, and T29 disappears in the 90th frame.
[0114] Figure 8 The structural block diagram of a target tracking device 800 - 1 based on domain operation according to an embodiment of the present disclosure is schematically shown.
[0115] like Figure 8 As shown, a target tracking device 800 - 1 based on domain operation according to an embodiment of the present disclosure includes a range determination module 810 , a first pairing module 820 , a second pairing module 830 , a third pairing module 840 and a generation module 850 .
[0116] The range determination module 810 is used to determine the target scope of adjacent frame images according to the input image sequence.
[0117] The first pairing module 820 is used to perform target pairing of adjacent frame images according to the target scope of the adjacent frame images to obtain a target pairing set.
[0118] The second pairing module 830 is used to optimize the target pairing set to obtain a target candidate pairing set.
[0119] The third pairing module 840 calculates the total energy consumed by the domain operation corresponding to the target pairing in the target candidate pairing set to obtain the optimal target pairing. The domain operation is the target behavior corresponding to the target pairing of adjacent frame images within the target scope; and the target pairing corresponding to the domain operation with the lowest total energy consumed in the target candidate pairing set is the optimal target pairing.
[0120] The generating module 850 is used to generate a target tracking result according to the optimal target pairing.
[0121] In some specific embodiments, any multiple modules among the range determination module 810, the first pairing module 820, the second pairing module 830, the third pairing module 840 and the generation module 850 may be combined into one module for implementation, or any one of the modules may be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules may be combined with at least part of the functions of other modules and implemented in one module.
[0122] In some specific embodiments, at least one of the range determination module 810, the first pairing module 820, the second pairing module 830, the third pairing module 840 and the generation module 850 may be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or may be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or in any one of the three implementation modes of software, hardware and firmware or in any appropriate combination of any of them. Alternatively, at least one of the range determination module 810, the first pairing module 820, the second pairing module 830, the third pairing module 840 and the generation module 850 may be at least partially implemented as a computer program module, and when the computer program module is executed, the corresponding function may be performed.
[0123] Fig. 9 The structural block diagram of another target tracking device 800 - 2 based on domain operation according to an embodiment of the present disclosure is schematically shown.
[0124] like Fig. 9 As shown, another target tracking device 800-2 based on domain operation according to an embodiment of the present disclosure is compared with Figure 8The device 800 - 1 shown in the figure is added with a first definition module 860 and a second definition module 870 .
[0125] The first definition module 860 is used to define basic operations and domain operations within the target scope, wherein the domain operations are composed of basic operations.
[0126] The second definition module 870 is used to define the energy value consumed by the basic operation and the energy value consumed by the domain operation. The energy value consumed by the domain operation is the sum of the energy values consumed by the basic operations constituting the domain operation.
[0127] In some specific embodiments, any multiple modules among the range determination module 810, the first pairing module 820, the second pairing module 830, the third pairing module 840, the generation module 850, the first definition module 860, and the second definition module 870 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module.
[0128] In some specific embodiments, at least one of the scope determination module 810, the first pairing module 820, the second pairing module 830, the third pairing module 840, the generation module 850, the first definition module 860 and the second definition module 870 may be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or may be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation modes of software, hardware and firmware or in any appropriate combination of any of them. Alternatively, at least one of the scope determination module 810, the first pairing module 820, the second pairing module 830, the third pairing module 840, the generation module 850, the first definition module 860 and the second definition module 870 may be at least partially implemented as a computer program module, and when the computer program module is executed, the corresponding function may be performed.
[0129] Fig.10 A block diagram of an electronic device according to a target tracking method based on domain operation according to an embodiment of the present disclosure is schematically shown.
[0130] like Fig.10As shown, the electronic device 600 according to an embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 to a random access memory (RAM) 603. The processor 601 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 601 may also include an onboard memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0131] In RAM603, various programs and data required for the operation of electronic device 600 are stored. Processor 601, ROM602 and RAM603 are connected to each other via bus 604. Processor 601 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM602 and / or RAM603. It should be noted that the program can also be stored in one or more memories other than ROM602 and RAM603. Processor 601 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in one or more memories.
[0132] In some specific embodiments, the electronic device 600 may further include an input / output (I / O) interface 605, which is also connected to the bus 604. The electronic device 600 may further include one or more of the following components connected to the I / O interface 605: an input portion 606 including a keyboard, a mouse, etc.; an output portion 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 608 including a hard disk, etc.; and a communication portion 609 including a network interface card such as a LAN card, a modem, etc. The communication portion 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage portion 608 as needed.
[0133] An embodiment of the present disclosure shows a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiment; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0134] In some specific embodiments, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM602 and / or RAM603 described above and / or one or more memories other than ROM602 and RAM603.
[0135] An embodiment of the present disclosure shows a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the method provided by the embodiment of the present disclosure.
[0136] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 601. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0137] In some specific embodiments, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 609, and / or installed from a removable medium 611. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0138] In some specific embodiments, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the processor 601, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, apparatus, module, unit, etc. described above can be implemented by a computer program module.
[0139] In some specific embodiments, the program code for executing the computer program provided by the embodiments of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0140] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0141] It will be appreciated by those skilled in the art that the features described in the various embodiments of the present invention may be combined and / or combined in various ways, even if such combinations or combinations are not explicitly described in the present invention. In particular, without departing from the spirit and teachings of the present invention, the features described in the various embodiments of the present invention may be combined and / or combined in various ways. All of these combinations and / or combinations fall within the scope of the present invention.
[0142] The embodiments of the present invention are described above. However, these embodiments are only for the purpose of illustration, and are not intended to limit the scope of the present invention. Although each embodiment is described above, it does not mean that the measures in each embodiment cannot be used in combination advantageously. Without departing from the scope of the present invention, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present invention.
Claims
1. A target tracking method based on domain operation, characterized in that: The method comprises the following steps: According to the input image sequence, determine the target scope range of adjacent frame images; According to the target scope of adjacent frame images, target pairing of adjacent frame images is performed to obtain a target pairing set; Optimizing the target pairing set to obtain a target candidate pairing set; Calculating the total energy value consumed by the domain operation corresponding to the target pairing in the target candidate pairing set to obtain the optimal target pairing; and According to the optimal target pairing, a target tracking result is generated, The domain operation is to make paired adjacent frame targets perform specific behaviors within the target scope; and the target pairing corresponding to the domain operation with the lowest total energy consumption in the target candidate pairing set is the optimal target pairing.
2. The target tracking method based on domain operation according to claim 1, characterized in that: The method further comprises the following steps: defining basic operations and domain operations within the target scope; and defining energy values consumed by the basic operations and energy values consumed by the domain operations, The domain operation is composed of the basic operations; and the energy value consumed by the domain operation is the sum of the energy values consumed by the basic operations constituting the domain operation.
3. The target tracking method based on domain operation according to claim 2, characterized in that: The basic operations include creation, movement and deletion; and the domain operations include target movement, target merging, target separation, entering the field of view and leaving the field of view. Wherein, the basic operation corresponding to the target movement includes the movement operation; The basic operations corresponding to the target merging include the move operation, the delete operation and the create operation; The basic operations corresponding to the target separation include the creation operation, the move operation and the deletion operation; The basic operation corresponding to entering the field of view includes the creation operation and the movement operation; and The basic operation corresponding to leaving the field of view includes the creation operation and the movement operation.
4. The target tracking method based on domain operation according to claim 3 is characterized in that: Define the energy values consumed by the creation operation and the deletion operation as fixed values; Defining that the energy values consumed by the creation operation and the deletion operation are equal; as well as It is defined that the energy value consumed by the moving operation is positively correlated with the moving distance of the corresponding target and the distance between the targets in adjacent frame images.
5. The target tracking method based on domain operation according to claim 1 or 2, characterized in that: Determining the target scope of adjacent frame images according to the input image sequence includes the following steps: Calculate the centroid and area of the target region; Calculate the distance between each target in the current frame image and each target in the next frame image according to the centroid; The minimum value of the distance between each target in the current frame image and each target in the next frame image is taken as the nearest neighbor distance of the corresponding target, and the nearest neighbor distance set is obtained; Taking the maximum value in the nearest neighbor distance set as the target scope radius; and The target scope range of adjacent frame images is determined according to the target scope radius.
6. The target tracking method based on domain operation according to claim 1 or 2, characterized in that: The method of performing target pairing of adjacent frame images according to the target scope of adjacent frame images to obtain a target pairing set includes the following steps: Obtain the first target set of each target in the target scope in the current frame image; Acquire a second target set in the same target scope as the current frame image for the next frame image; and The first target set is paired with the second target set to obtain a target paired set.
7. The target tracking method based on domain operation according to claim 6, characterized in that: The step of optimizing the target pairing set to obtain a target candidate pairing set includes the following steps: Calculating energy values consumed by target pairs in the target pair set; and According to the minimum energy principle, redundant target pairs in the target pairing set are removed. Wherein, the redundant target pairing includes repeated target pairing; and When there are multiple pairing results between the first target set and the second target set, the redundant target pairings also include target pairings with greater energy consumption.
8. The target tracking method based on domain operation according to claim 6, characterized in that: The calculating the total energy value consumed by the domain operation corresponding to the target pairing in the target candidate pairing set to obtain the optimal target pairing includes the following steps: Obtaining the number of pairs in the target candidate pairing set, the number of targets in the current frame image, and the number of targets in the next frame image; Constructing the target participation matrix of the current frame image and the target participation matrix of the next frame image; Calculating the energy value consumed by the domain operation corresponding to each target pair in the target candidate pair set, the energy values consumed by the domain operation corresponding to the target pair constitute an energy vector; constructing a target pairing participation vector corresponding to the energy vector; respectively constructing the target participation matrix of the current frame image, the target participation matrix of the next frame image, and equations of the energy vector and the target pairing participation vector, so that the total energy value of the domain operation corresponding to the target pairing of adjacent frame images is the lowest; and Use a genetic algorithm to solve the target pairing participation vector to obtain the optimal target pairing, The element values in the target participation matrix of the current frame image and the target participation matrix of the next frame image are 0 or 1, wherein 0 indicates that the target does not participate in pairing, and 1 indicates that the target participates in pairing; The element value in the target pairing participation vector is 0 or 1, wherein 1 indicates that the target pairing is selected, and 0 indicates that the target pairing is not selected.
9. A target tracking device based on domain operation, characterized in that: The device comprises the following modules: A range determination module is used to determine the target scope of adjacent frame images according to the input image sequence; A first pairing module is used to perform target pairing of adjacent frame images according to the target scope of adjacent frame images to obtain a target pairing set; A second pairing module is used to optimize the target pairing set to obtain a target candidate pairing set; The third pairing module calculates the total energy value consumed by the domain operation corresponding to the target pairing in the target candidate pairing set to obtain the optimal target pairing; as well as A generation module is used to generate a target tracking result according to the optimal target pairing, Wherein, the domain operation is a target behavior corresponding to the target pairing of adjacent frame images within the target scope; as well as The target pairing corresponding to the domain operation with the lowest total energy consumption in the target candidate pairing set is the optimal target pairing.
10. An electronic device, wherein: include: one or more processors; as well as a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors execute the method according to any one of claims 1 to 8.
