A key point extraction and tracking method for space nematode movement in space station
By extracting and tracking the key points of nematode movement in the space station, the problem of poor reliability of worm movement swing frequency counting is solved, and efficient nematode posture estimation and swing frequency statistics are achieved.
Patent Information
- Application Number
- CN202410505805.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-25
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-04-25
AI Technical Summary
There are statistical differences in the existing technology when counting the oscillation frequency of nematode movement, resulting in a decrease in the credibility of the results.
A key point extraction and tracking method for space nematode movement on the space station is adopted. By determining the head, tail and center point positions of the nematode in the image frame, the instantaneous speed direction is calculated, and the swing result is judged based on preset conditions to improve the reliability of swing frequency counting. reliability. This method includes a combination of a backbone network, a key point extraction branch network and an instance prediction branch network, and enhances the branch network and attention mechanism through instance-level key points to improve the algorithm's ability to distinguish and discriminate nematode postures.
It achieves efficient key point detection and tracking of nematode movement, improves the reliability of swing frequency counting, and can accurately count movement information in severe occlusion and overlapping scenarios.
Smart Images

Figure CN118379327B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a method for extracting and tracking key points of space nematode movement in a space station. Background Art
[0002] The movement of nematodes is the research object of biological experiments. For example, by studying the swing frequency of nematodes, the activity of nematodes can be observed and the results of biological experiments can be further obtained.
[0003] Currently, the swing frequency of nematodes is obtained by manual visual counting. For example, during the video playback, researchers record the number of nematode surges by browsing the video, and then calculate the number of surges per unit time.
[0004] However, there were statistical differences in the counting process, which reduced the confidence in the results. Summary of the invention
[0005] The embodiment of the present application provides a key point extraction and tracking method for space nematode movement in a space station, which can solve the technical problem of poor reliability of oscillation frequency counting of nematode movement.
[0006] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0007] In a first aspect, an embodiment of the present application provides a key point extraction and tracking method for space nematode movement in a space station, and the key point extraction and tracking method for space nematode movement in a space station includes: determining a first mark position, a second mark position, and a third mark position of the nematode in a first image frame; the first mark position is used to calibrate the position of the nematode's head in the first image frame; the second mark position is used to calibrate the position of the nematode's tail in the first image frame; the third mark position is used to calibrate the position of the nematode's center point in the first image frame; determining a fourth mark position, a fifth mark position, and a sixth mark position of the nematode in the second image frame; the second image frame is an adjacent image frame to the first image frame; the fourth mark position is used to calibrate the nematode's head; the fifth mark position is used to calibrate the nematode's tail; the sixth mark position is used to calibrate the nematode's center point; determining a first displacement based on the first mark position and the fourth mark position; determining a first instantaneous velocity direction based on the first displacement; determining a second displacement based on the second mark position and the fifth mark position; determining a second instantaneous velocity direction based on the second displacement; determining a a third displacement; according to the third displacement, determining the third instantaneous speed direction; determining the seventh mark position, the eighth mark position and the ninth mark position of the nematode in the third image frame; the third image frame is an adjacent image frame to the second image frame; the seventh mark position is used to calibrate the head of the nematode; the eighth mark position is used to calibrate the tail of the nematode; the ninth mark position is used to calibrate the center point of the nematode; according to the fourth mark position and the seventh mark position, determining the fourth displacement; according to the fourth displacement, determining the fourth instantaneous speed direction; according to the fifth mark position and the eighth mark position, determining the fifth displacement; according to the fifth displacement, determining the fifth instantaneous speed direction; according to the sixth mark position and the ninth mark position, determining the sixth displacement; according to the sixth displacement, determining the sixth instantaneous speed direction; if the third instantaneous speed direction and the sixth instantaneous speed direction meet the first preset condition, then judging whether the first instantaneous speed direction and the fourth instantaneous speed direction, the second instantaneous speed direction and the fifth instantaneous speed direction meet the second preset condition; if the first instantaneous speed direction and the fourth instantaneous speed direction, the second instantaneous speed direction and the fifth instantaneous speed direction meet the second preset condition, then marking the swing result.
[0008] Based on the above description of the key point extraction and tracking method for space station space nematode motion provided by the embodiment of the present application, it can be known that the key point extraction and tracking method for space station space nematode motion includes locating the head, tail and center point of the nematode on each image frame to achieve nematode key point positioning in each frame. Confirm the instantaneous speed direction of the continuous first image frame, second image frame and third image frame to achieve the association between frames. Achieve convenient and efficient key point detection and tracking of nematodes in the first stage, meet the statistical needs of motion information, and improve the credibility of the swing frequency counting of nematode motion.
[0009] In a feasible implementation of the first aspect, when executing the step of determining the first marking position, the second marking position and the third marking position of the nematode in the first image frame, the key point extraction and tracking method for the space station space nematode movement also includes: based on the backbone network, extracting the global representation features of the first image frame; based on the key point extraction branch network, extracting the first key point in the global representation features; based on the instance prediction branch network, extracting the nematode instance in the global representation features; based on the first key point and the nematode instance, enhancing the branch network through the instance-level key point to obtain the individual posture of the first nematode.
[0010] In this way, through the key point instance interaction enhancement method, the algorithm can effectively improve its ability to distinguish and discriminate the key point postures of different individual instances, achieve a more accurate and detailed feature description of the nematode posture distribution, and obtain high-precision nematode posture estimation results.
[0011] In a feasible implementation of the first aspect, the key point extraction and tracking method for space station space nematode movement also includes: determining the individual posture of the second nematode in the second image frame; determining the individual posture of the third nematode in the third image frame; based on the individual posture of the first nematode, the individual posture of the second nematode and the individual posture of the third nematode, obtaining nematode posture tracking through a motion branch network.
[0012] In a feasible implementation of the first aspect, when executing the step of enhancing the branch network based on the first key point and the nematode instance through the instance-level key point to obtain the individual posture of the first nematode, the key point extraction and tracking method for the space station space nematode movement also includes: based on the predicted instance mask, filtering the representation trunk features to obtain the filtered trunk features; based on the filtered trunk features, enhancing the representation of the first key point through the attention mechanism to obtain the key point instance mutual attention features.
[0013] In a feasible implementation of the first aspect, the calculation formula of the key point instance mutual attention feature includes:
[0014]
[0015] Among them, Q is composed of F P After the linear layer, we get P ∈HW×C1, H represents the height of the feature map, W represents the width of the feature map, and C1 represents the channel dimension of the feature map width; K, V are determined by F M After the linear layer, we get M ∈k×C0, k represents the number of feature points selected in the predicted instance mask, and C0 represents the channel dimension of the feature map height; d k Represented as a key dimension.
[0016] In a feasible implementation of the first aspect, the key point extraction and tracking method for space station space nematode movement further includes: calibrating the key point instance mutual attention features to obtain a spatial calibration feature map;
[0017] Spatial calibration feature map F s The calculation formula includes:
[0018] F s =F P M;
[0019] Among them, M represents the spatial distribution mask of the key point, M∈H×W, H represents the height of the feature map, and W represents the width of the feature map;
[0020] The key point instance mutual attention features and the spatial calibration feature map are concatenated to obtain the fused features.
[0021] In a feasible implementation of the first aspect, the key point extraction and tracking method for space station space nematode movement also includes: applying a convolution layer to the mutual attention features of the key point instances to obtain a spatial distribution mask of the key points.
[0022] In a feasible implementation of the first aspect, the calculation formula of the loss function of the key point extraction branch network includes:
[0023] L kp =FL(H,H * );
[0024] in, α and β are hyperparameters, N is H * The number of positive sample points in the true value heat map x j Expressed as the horizontal coordinate of the key point position; y j Expressed as the ordinate of the key point position; σ i represents the variance of adaptation to nematode size;
[0025] The calculation formula of the loss function of the instance prediction branch network includes:
[0026]
[0027] in, The category represented as (x, y) position; N pos Represents a positive sample point; θ x,y It is represented by the filter parameters generated at the (x, y) position; F x,y Represents the incoming instance features; InsHead represents the corresponding instance head network, which is composed of dynamic parameters θ x,y The convolutional layers are stacked; Dice loss is used to balance the foreground and background samples. p represents the predicted probability distribution, and y represents the true value of the mask; The instance mask truth value represented as (x, y) position;
[0028] The calculation formula of the loss function of the instance-level keypoint enhancement branch network includes:
[0029]
[0030] Where m represents the number of instances;
[0031] The calculation formula of the loss function of the motion branch network includes:
[0032]
[0033] Among them, predict a two-dimensional displacement For each detected position Displacement Represents the displacement difference between the target corresponding to this position in the current frame and the previous frame.
[0034] In a second aspect, an embodiment of the present application provides a key point extraction and tracking system for nematode movement, the key point extraction and tracking system for nematode movement comprising: at least one processor; a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor so that the at least one processor can execute the method provided in the first aspect.
[0035] The key point extraction and tracking system for nematode movement locates the head, tail and center point of the nematode on each image frame by executing the method provided in the first aspect, and realizes the key point positioning of the nematode in each frame. The instantaneous speed direction of the continuous first image frame, the second image frame and the third image frame is confirmed to realize the association between the frames. The key point detection and tracking of the nematode in the first stage is realized conveniently and efficiently, the statistical requirements of the motion information are met, and the credibility of the swing frequency counting of the nematode movement is improved.
[0036] In a third aspect, an embodiment of the present application provides a computer-readable medium having computer program instructions stored thereon, and the computer program instructions can be executed by a processor to implement the method provided in the first aspect.
[0037] The computer program instructions in the computer-readable medium locate the head, tail and center point of the nematode on each image frame by implementing the method provided in the first aspect, and realize the positioning of the key points of the nematode in each frame. The instantaneous speed direction of the continuous first image frame, the second image frame and the third image frame is confirmed to realize the association between the frames. The convenient and efficient key point detection and tracking of the nematode in the first stage is realized, the statistical requirements of the motion information are met, and the credibility of the swing frequency counting of the nematode movement is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A schematic diagram of the structure of a key point extraction and tracking system for nematode movement provided in an embodiment of the present application;
[0039] Figure 2 A schematic flow chart of a key point extraction and tracking method for space nematode movement in a space station provided in an embodiment of the present application;
[0040] Figure 3 A schematic flow chart of a key point extraction and tracking method for space nematode movement in a space station provided in an embodiment of the present application;
[0041] Figure 4 A structural diagram of an instance-level key point enhancement branch network in a key point extraction and tracking method for space station space nematode movement provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] The technical solutions in the embodiments of the present invention will be described below in conjunction with the accompanying drawings in the embodiments of the present invention. In the description of the embodiments of the present invention, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0043] In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, the words "first", "second" and the like are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not necessarily limit the difference. At the same time, in the embodiments of the present invention, the words "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or design. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way for easy understanding.
[0044] The principles and features of the present application are described below. The examples given are only used to explain the present application and are not used to limit the scope of the present application.
[0045] The embodiment of the present application provides a key point extraction and tracking method for the movement of space nematodes in a space station, which can extract the movement information of the target object and is widely used in the field of biological experiment video information processing and analysis.
[0046] The embodiment of the present application provides a key point extraction and tracking system for nematode movement, which can execute the key point extraction and tracking method for space nematode movement in a space station provided by the embodiment of the present application. Figure 1 A schematic diagram of the structure of a key point extraction and tracking system for nematode movement provided in an embodiment of the present application.
[0047] like Figure 1 As shown, the key point extraction and tracking system 001 for nematode movement includes at least one processor 011 and a memory 012 communicatively connected to the at least one processor; wherein the memory 012 stores instructions executable by the at least one processor 011, and the instructions are executed by the at least one processor 011 so that the at least one processor 011 can execute the key point extraction and tracking method for space nematode movement in a space station provided in an embodiment of the present application.
[0048] Figure 2 A schematic diagram of a key point extraction and tracking method for space nematode movement in a space station provided in an embodiment of the present application. Figure 2 As shown, in some embodiments, the key point extraction and tracking method for space nematode movement in a space station includes the following steps:
[0049] S1, determining a first marked position, a second marked position, and a third marked position of a nematode in a first image frame.
[0050] The first marking position is used to calibrate the position of the nematode's head in the first image frame.
[0051] The second marking position is used to calibrate the position of the tail of the nematode in the first image frame.
[0052] The third marking position is used to calibrate the position of the center point of the nematode in the first image frame.
[0053] In some embodiments, the calibration method of the first mark position, the second mark position and the third mark position may be key point detection and tracking. A feasible implementation method is described below.
[0054] In some embodiments, when executing step S1, the key point extraction and tracking method for space nematode movement in a space station further includes:
[0055] S101, extracting global representation features of the first image frame based on the backbone network.
[0056] S102, extracting the first key point in the global representation feature based on the key point extraction branch network.
[0057] The key point extraction branch is used to extract all possible key points in the global representation feature. There can be multiple first key points.
[0058] Figure 3 A schematic diagram of a key point extraction and tracking method for space nematode movement in a space station provided in an embodiment of the present application. Figure 3 As shown, in some embodiments, based on the key point extraction branch network, a key point heat map is output. The key point heat map is input into the loss function to calculate the accuracy of the prediction result.
[0059] In one implementation, the calculation formula of the loss function of the key point extraction branch network includes:
[0060] L kp =FL(H,H*)
[0061] in, α and β are hyperparameters, and N is H * The number of positive sample points in the true value heat map x j Expressed as the horizontal coordinate of the key point position. j Expressed as the vertical coordinate of the key point position. i represents the variance of adaptation to nematode size.
[0062] S103, extracting nematode instances from global representation features based on the instance prediction branch network.
[0063] The instance prediction branch is used to extract all nematode instances in the global representation feature. There can be multiple nematode instances.
[0064] like Figure 3 As shown, in some embodiments, based on the instance prediction branch network, an instance heat map is output. The instance heat map is input into the loss function to calculate the accuracy of the prediction result.
[0065] In one implementation, the calculation formula of the loss function of the instance prediction branch network includes:
[0066]
[0067] in, The category represented as a (x, y) position. N pos Represents a positive sample point. x,y It is represented as the filter parameters generated at the (x, y) position. x,yRepresents the incoming instance features. InsHead represents the corresponding instance head network, which is composed of dynamic parameters θ x,y The convolutional layers are stacked. Dice loss is used to balance the foreground and background samples. The ground truth of the instance mask is expressed as the (x, y) position.
[0068] The calculation method of Dice loss is explained below.
[0069] For example, p represents the predicted probability distribution, and y represents the true value of the mask.
[0070] S104, based on the first key point and the nematode instance, enhancing the branch network through the instance-level key point to obtain the first nematode individual posture.
[0071] The instance-level keypoint enhancement branch integrates keypoints with instances and enhances attention, thereby obtaining a keypoint distribution that matches the instance and the posture of the nematode individual. In this way, keypoint features can be combined with instance constraints to achieve integration.
[0072] like Figure 3 As shown, in some embodiments, a branch network is enhanced based on instance-level keypoints to output a motion vector.
[0073] In one implementation, the calculation formula of the loss function of the instance-level key point enhancement branch network includes:
[0074]
[0075] Where m represents the number of instances;
[0076] α and β are hyperparameters, N is H * The number of positive sample points in the true value heat map x j Expressed as the horizontal coordinate of the key point position. j Expressed as the vertical coordinate of the key point position. i represents the variance of adaptation to nematode size.
[0077] The key point extraction branch, instance prediction branch and instance-level key point enhancement branch in steps S102 to S104 are all functional branch head networks.
[0078] In one implementation, when executing step S104, the key point extraction and tracking method for space nematode movement in a space station further includes:
[0079] S1041, based on the predicted instance mask, filter the backbone features to obtain the filtered backbone features.
[0080] S1042, based on the filtered backbone features, the first key point is represented by an enhanced attention mechanism to obtain the key point instance mutual attention feature.
[0081] Figure 4 This is a schematic diagram of the structure of an instance-level key point enhancement branch network in a key point extraction and tracking method for space station space nematode movement provided by an embodiment of the present application. Figure 4 Explain each noun in the text.
[0082] Spatial-attention feature refers to the feature that emphasizes or suppresses specific areas in an image through the attention mechanism in computer vision tasks in order to more effectively capture relevant information.
[0083] Attention mask: A mask used in the attention mechanism to determine the location or area to pay attention to.
[0084] Projection feature refers to the process of mapping input features to another space or dimension through linear transformation in a neural network. It is usually used to reduce dimensionality or increase the ability of nonlinear transformation.
[0085] Instance mask: In the instance segmentation task, a binary mask used to indicate the pixel area of each instance (such as an object) in the image.
[0086] Backbone feature refers to the main part of a deep neural network used to extract input data features, usually composed of multiple layers of convolution and pooling layers.
[0087] Flattening is an operation that converts a multidimensional array (such as a tensor) into a one-dimensional array.
[0088] Linear layer, a basic layer type in neural networks, is usually used to perform linear transformations, such as fully connected layers.
[0089] Topk: selects the operations with the top K largest or smallest values.
[0090] Convolution (Conv), a basic operation in convolutional neural networks, is used to extract features from input data.
[0091] Concat is an operation that connects multiple tensors along a specified dimension.
[0092] Mutual-attention feature refers to the feature that considers the interaction between multiple inputs simultaneously in the attention mechanism.
[0093] Reshape is an operation that changes the shape of a tensor, usually used to adapt the data size requirements between different layers.
[0094] Fused feature refers to the process of fusing or integrating features from different sources.
[0095] Softmax, a commonly used normalization function, maps a set of values to between (0, 1) so that their sum is 1. It is often used to convert the output of a neural network into a probability distribution.
[0096] like Figure 4 As shown, the calculation formula of the key point instance mutual attention feature includes:
[0097]
[0098] Among them, Q is composed of F P After the linear layer, we get P ∈HW×C1, H represents the height of the feature map, W represents the width of the feature map, and C1 represents the channel dimension of the feature map width. k and V are determined by F M After the linear layer, we get M ∈k×C0, k represents the number of feature points selected in the predicted instance mask, and C0 represents the channel dimension of the feature map height. k Represented as a key dimension.
[0099] For calibration, in some embodiments, the key point extraction and tracking method for space nematode movement in a space station further includes:
[0100] S1043, calibrate the key point instance mutual attention features to obtain a spatial calibration feature map.
[0101] Spatial calibration feature map F s The calculation formula includes:
[0102] F s =F P ·M.
[0103] Among them, M represents the spatial distribution mask of the key point, M∈H×W, H represents the height of the feature map, and W represents the width of the feature map.
[0104] In one implementation, a convolutional layer is applied to the keypoint instance mutual attention features to obtain a spatial distribution mask of the keypoints.
[0105] S1044, concatenate and fuse the key point instance mutual attention features and the spatial calibration feature map to obtain a fused feature.
[0106] By executing steps S1041 to S1044, s and F A Perform concatenation and fusion to obtain the fusion feature F F , in order to better distinguish the postures of individual nematodes. F The feature with instance-level nematode key point posture information is used to generate instance-level key point heat map.
[0107] S2, determining a fourth marking position, a fifth marking position, and a sixth marking position of the nematode in the second image frame.
[0108] The second image frame is adjacent to the first image frame, the fourth marking position is used to calibrate the head of the nematode, the fifth marking position is used to calibrate the tail of the nematode, and the sixth marking position is used to calibrate the center point of the nematode.
[0109] The marking method of the fourth marking position, the fifth marking position and the sixth marking position on the second image frame can refer to the marking method of the first image frame in step S1, and will not be described again.
[0110] S3, determining a first displacement according to the first mark position and the fourth mark position, and determining a first instantaneous velocity direction according to the first displacement.
[0111] An inter-frame feature relationship is established based on the marked positions of the first image frame and the second image frame.
[0112] In some embodiments, when executing step S3, the key point extraction and tracking method for space nematode movement in a space station further includes:
[0113] S301, determining the posture of a second nematode individual in a second image frame.
[0114] S302, based on the first nematode individual posture and the second nematode individual posture, obtain nematode posture tracking through a motion branch network.
[0115] The motion branch is a functional branch head network that can give the displacement of the same key point in adjacent frames (such as the first image frame and the second image frame). In a short time interval, the displacement can be regarded as the instantaneous speed of the key point position.
[0116] The motion branch is used to extract the motion displacement changes of the instance between frames, so as to realize the associated tracking of the nematode individuals. Based on the posture results of each frame and the associated tracking results between frames, the posture tracking of multiple nematode individuals is finally realized.
[0117] In one implementation, the calculation formula of the loss function of the motion branch network includes:
[0118]
[0119] Among them, predict a two-dimensional displacement For each detected position Displacement Represents the displacement difference between the target corresponding to this position in the current frame and the previous frame.
[0120] In one implementation, the total loss function is obtained by adding the loss functions of each branch:
[0121] l all =L kp +L ins_kp +L ins +l mot .
[0122] S4, determining a second displacement according to the second mark position and the fifth mark position, and determining a second instantaneous velocity direction according to the second displacement.
[0123] Step S4 may refer to step S3, which will not be described in detail here.
[0124] S5, determining a third displacement according to the third mark position and the sixth mark position, and determining a third instantaneous velocity direction according to the third displacement.
[0125] Step S5 may refer to step S3, which will not be described in detail here.
[0126] S6, determining a seventh marking position, an eighth marking position, and a ninth marking position of the nematode in the third image frame.
[0127] The third image frame is adjacent to the second image frame. The seventh marking position is used to calibrate the head of the nematode. The eighth marking position is used to calibrate the tail of the nematode. The ninth marking position is used to calibrate the center point of the nematode.
[0128] Step S6 may refer to step S1 and will not be described in detail here.
[0129] S7, determining a fourth displacement according to the fourth mark position and the seventh mark position, and determining a fourth instantaneous velocity direction according to the fourth displacement.
[0130] Step S7 may refer to step S3, which will not be described in detail here.
[0131] An inter-frame feature relationship is established based on the marked positions of the second image frame and the third image frame.
[0132] In some embodiments, when executing step S7, the key point extraction and tracking method for space nematode movement in a space station further includes:
[0133] S701, determining the posture of a second nematode individual in a second image frame.
[0134] S702, determining the posture of a third nematode individual in a third image frame.
[0135] S703, based on the second nematode individual posture and the third nematode individual posture, obtain nematode posture tracking through the motion branch network.
[0136] In some embodiments, when executing step S7, the key point extraction and tracking method for space station space nematode movement also includes: obtaining nematode posture tracking through a motion branch network based on the first nematode individual posture, the second nematode individual posture and the third nematode individual posture.
[0137] In this way, an inter-frame feature relationship is established according to the marked positions of the first image frame, the second image frame and the third image frame.
[0138] S8, determining a fifth displacement according to the fifth marking position and the eighth marking position, and determining a fifth instantaneous velocity direction according to the fifth displacement.
[0139] Step S8 may refer to step S3, which will not be described in detail here.
[0140] S9, determining a sixth displacement according to the sixth mark position and the ninth mark position, and determining a sixth instantaneous velocity direction according to the sixth displacement.
[0141] Step S9 may refer to step S3, which will not be described in detail here.
[0142] S10, if the third instantaneous speed direction and the sixth instantaneous speed direction meet the first preset condition, then determine whether the first instantaneous speed direction and the fourth instantaneous speed direction, the second instantaneous speed direction and the fifth instantaneous speed direction meet the second preset condition.
[0143] The first preset condition may include that the accumulated confidence of the center point moving in the same direction is relatively high. It can be understood that when the accumulated confidence of the center point moving in the same direction is relatively high, it is considered that the nematode as a whole is moving in that direction.
[0144] The second preset condition has multiple feasible implementations. For example, in one implementation, the speed directions of the head, tail and center point change from being the same to being opposite. For another example, in another implementation, the speed directions of the head, tail and center point change from being opposite to being the same.
[0145] S11, if the first instantaneous speed direction and the fourth instantaneous speed direction, the second instantaneous speed direction and the fifth instantaneous speed direction meet the second preset condition, then mark the swing result.
[0146] In one implementation, if the speed directions of the head, tail and center point change from the same to the opposite, it is recorded as one swing. In another implementation, if the speed directions of the head, tail and center point change from the opposite to the same, it is also recorded as one swing.
[0147] In this way, the nematode's head and tail swinging can be statistically obtained by comparing the instantaneous speed directions of the head and tail with the center point respectively.
[0148] The key point extraction and tracking method for the space station space nematode movement includes locating the head, tail and center point of the nematode on each image frame to achieve the nematode key point positioning in each frame. The instantaneous speed direction of the continuous first image frame, second image frame and third image frame is confirmed to achieve the association between frames. The convenient and efficient key point detection and tracking of the nematode in the first stage is achieved to meet the statistical needs of motion information and improve the credibility of the swing frequency counting of the nematode movement. It can meet the severe occlusion and overlapping scenes.
[0149] The method provided in the embodiment of the present application is compared with the dense key point regression (DEKR), channel importance decoupling (CID) and adaptive pose estimation (Adaptive Pose Est imat ion) methods for the space station nematode key point detection accuracy experiment. The experimental results are shown in Table 1. The average precision (AP) of the method provided in the embodiment of the present application on the data set is 0.721, AP50 is 0.956, and AP75 is 0.811. The accuracy indicators are better than the three existing algorithms. This shows that the algorithm can effectively improve the ability to distinguish the key point postures of different instance individuals through the interactive enhancement of key point instances, and realize a more accurate and detailed feature description of the nematode posture distribution, and obtain a high-precision nematode posture estimation result.
[0150] Table 1 Experimental results of nematode key point detection in space station
[0151] AP AP50 AP75 DEKR 0.633 0.889 0.717 CID 0.703 0.947 0.796 AdaptivePose 0.687 0.939 0.762 This application 0.721 0.956 0.811
[0152] In order to verify the role of the innovative module in the method provided in the embodiment of the present application, a set of ablation experiments were designed to determine the impact of the module on the accuracy of nematode key point detection. The ablation experiment results are shown in Table 2.
[0153] Table 2 Results of the ablation experiment judgment module on the accuracy of nematode key point detection
[0154]
[0155]
[0156] The instance-level key point enhancement branch can introduce instance branch information into the key point branch model, effectively alleviating the difficulty of key point branch in distinguishing nematode individuals, significantly improving the key point prediction accuracy of the algorithm, and improving the key point detection AP indicator by 17.4%, with significant results.
[0157] Based on the same application concept, a key point extraction and tracking system for nematode movement is also provided in an embodiment of the present application. The method corresponding to the key point extraction and tracking system for nematode movement can be the key point extraction and tracking method for space station space nematode movement in the aforementioned embodiment, and its principle of solving the problem is similar to that of the method. The key point extraction and tracking system for nematode movement provided in an embodiment of the present application includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the methods and / or technical solutions of the aforementioned multiple embodiments of the present application.
[0158] For the automatic welding joints of high-grade steel pipelines, the key point extraction and tracking technology of nematode movement is studied to provide a basis for optimizing the performance of girth welds of newly built pipelines and reduce the probability of girth weld failure. Based on the welding data during the construction period, direct technical support is provided for the integrity management of girth welds of in-service pipelines.
[0159] Another embodiment of the present application further provides a computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions can be executed by a processor to implement the methods and / or technical solutions of any one or more embodiments of the present application described above.
[0160] Specifically, the present embodiment may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, 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), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device, or device.
[0161] Computer readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than a computer readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0162] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0163] Computer program code for performing the operation of the present application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect through the Internet).
[0164] The flow chart or block diagram in the accompanying drawings shows the possible architecture, function and operation of the equipment, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated system for hardware that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0165] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0166] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or page components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0167] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0168] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0169] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0170] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
[0171] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in a device claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
Claims
1. A key point extraction and tracking method for space nematode movement in a space station, characterized in that: include: determining a first marked position, a second marked position, and a third marked position of the nematode in the first image frame; The first marking position is used to calibrate the position of the head of the nematode in the first image frame; the second marking position is used to calibrate the position of the tail of the nematode in the first image frame; the third marking position is used to calibrate the position of the center point of the nematode in the first image frame; Determine a fourth marking position, a fifth marking position, and a sixth marking position of the nematode in a second image frame; the second image frame and the first image frame are adjacent image frames; the fourth marking position is used to calibrate the head of the nematode; the fifth marking position is used to calibrate the tail of the nematode; and the sixth marking position is used to calibrate the center point of the nematode; determining a first displacement according to the first marking position and the fourth marking position; determining a first instantaneous velocity direction according to the first displacement; determining a second displacement according to the second mark position and the fifth mark position; determining a second instantaneous velocity direction according to the second displacement; Determining a third displacement according to the third marking position and the sixth marking position; determining a third instantaneous velocity direction according to the third displacement; Determine a seventh marking position, an eighth marking position, and a ninth marking position of the nematode in a third image frame; the third image frame and the second image frame are adjacent image frames; the seventh marking position is used to calibrate the head of the nematode; the eighth marking position is used to calibrate the tail of the nematode; and the ninth marking position is used to calibrate the center point of the nematode; Determine a fourth displacement according to the fourth mark position and the seventh mark position; determine a fourth instantaneous velocity direction according to the fourth displacement; Determine a fifth displacement according to the fifth mark position and the eighth mark position; determine a fifth instantaneous velocity direction according to the fifth displacement; Determine a sixth displacement according to the sixth mark position and the ninth mark position; determine a sixth instantaneous velocity direction according to the sixth displacement; If the third instantaneous speed direction and the sixth instantaneous speed direction meet the first preset condition, then determine whether the first instantaneous speed direction and the fourth instantaneous speed direction, the second instantaneous speed direction and the fifth instantaneous speed direction meet the second preset condition; If the first instantaneous speed direction and the fourth instantaneous speed direction, the second instantaneous speed direction and the fifth instantaneous speed direction meet a second preset condition, the swing result is marked.
2. The key point extraction and tracking method for space nematode movement in a space station according to claim 1 is characterized in that: When executing the step of determining the first marking position, the second marking position and the third marking position of the nematode in the first image frame, the key point extraction and tracking method for the space station-oriented space nematode movement further includes: Based on the backbone network, extracting global representation features of the first image frame; Extracting a first key point in the global representation feature based on a key point extraction branch network; Extracting the nematode instance in the global representation feature based on the instance prediction branch network; Based on the first key point and the nematode instance, a branch network is enhanced by instance-level key points to obtain a first nematode individual posture.
3. The key point extraction and tracking method for space nematode movement in a space station according to claim 2 is characterized in that: The key point extraction and tracking method for space station space nematode movement also includes: determining a second nematode individual posture in the second image frame; determining a third nematode individual posture of the third image frame; Based on the first nematode individual posture, the second nematode individual posture and the third nematode individual posture, nematode posture tracking is obtained through a motion branch network.
4. The key point extraction and tracking method for space nematode movement in a space station according to claim 2 or 3, characterized in that: When executing the step of enhancing the branch network based on the first key point and the nematode instance by the instance-level key point to obtain the first nematode individual posture, the key point extraction and tracking method for the space station space nematode movement also includes: Based on the predicted instance mask, the backbone features are filtered to obtain the filtered backbone features; Based on the filtered backbone features, the representation of the first key point is enhanced through an attention mechanism to obtain a key point instance mutual attention feature.
5. The key point extraction and tracking method for space nematode movement in a space station according to claim 4 is characterized in that: The calculation formula of the key point instance mutual attention feature includes: Among them, Q is composed of F P After the linear layer, we get P ∈HW×C1, H represents the height of the feature map, W represents the width of the feature map, and C1 represents the channel dimension of the feature map width; K and V are determined by F M After the linear layer, we get M ∈k×C0, k represents the number of feature points selected in the predicted instance mask, and C0 represents the channel dimension of the feature map height; d k Represented as a key dimension.
6. The key point extraction and tracking method for space nematode movement in a space station according to claim 5 is characterized in that: The key point extraction and tracking method for space station space nematode movement also includes: Calibrate the key point instance mutual attention features to obtain a spatial calibration feature map; The spatial calibration feature map F s The calculation formula includes: F s =F P ·M; Among them, M represents the spatial distribution mask of the key point, M∈H×W, H represents the height of the feature map, and W represents the width of the feature map; The key point instance mutual attention features and the spatial calibration feature map are concatenated and fused to obtain a fused feature.
7. The key point extraction and tracking method for space nematode movement in a space station according to claim 6 is characterized in that: The key point extraction and tracking method for space station space nematode movement also includes: A convolutional layer is applied to the key point instance mutual attention features to obtain the spatial distribution mask of the key point.
8. A key point extraction and tracking system for nematode movement, characterized in that: include: at least one processor; a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method according to any one of claims 1 to 7.
9. A computer readable medium having computer program instructions stored thereon, wherein the computer program instructions can be executed by a processor to implement the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Microscopic image processing method and device, computer equipment and storage medium
CN115205262A
Fish tail swinging frequency counting method, system and product
CN116486311A
