Method and device for enhancing video target segmentation precision in interpretability mode

The interpretable deep learning algorithm distinguishes and enhances the weak features of difficult examples in video segmentation, solves the problem of noise interference, improves video segmentation accuracy and reduces the amount of calculation, and achieves more efficient video semantic segmentation effects.

CN118628962APending Publication Date: 2024-09-10ZHEJIANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410900891.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In existing video segmentation tasks, difficult sample mining methods lead to an increase in noise features, resulting in unsatisfactory accuracy and inability to effectively distinguish weak features and background features of difficult samples.

Method used

An interpretable deep learning algorithm is used to train the original network features, filter the weak feature video frame pixels, and distinguish and enhance the features at the weight position of the weak heat map in the deep learning network. It uses hyperparameters to control the calculation range and update the network layer by layer. weight.

Benefits of technology

It improves the segmentation accuracy of video semantic segmentation tasks, reduces the amount of calculation of video features, has better effects than existing methods, and is versatile.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628962A
    Figure CN118628962A
Patent Text Reader

Abstract

The invention discloses an interpretable method and device for enhancing the segmentation precision of a video target, and the method achieves the improvement of the segmentation precision of a deep learning network when the deep learning network containing a convolutional layer cluster faces a video target segmentation task based on an interpretable gradient activation graph. Comprising the following steps: (1) training an original video data set by a convolutional cluster deep learning network; (2) screening video frame weak feature pixels according to the designed 3D interpretable activation tensor; (3) calculating a motion range of a target in a single video according to the 3D interpretability activation tensor to make a new video set; and (4) retraining a new video set by the convolutional cluster deep learning network, and enhancing weak video frame pixel features of the target in the motion range. And (5) carrying out field application after training convergence. The method has the characteristics of high segmentation precision and small calculation amount. Wherein the weak video frame pixels can provide an improvement direction of the deep learning network oriented to the video target segmentation task, and an interpretability improvement space of the deep learning network is obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision semantic segmentation, and in particular to an explainable method and device for enhancing video target segmentation accuracy. Background Art

[0002] The existing algorithms for mining difficult examples have become mature in target detection tasks, and it is a consensus that training and enhancing the features of difficult examples can improve task accuracy. At present, the same solution as the target detection task is still often used for mining difficult examples in video segmentation tasks, such as retraining difficult examples. However, this type of method not only enhances the features of difficult examples, but also enhances the noise features, resulting in unsatisfactory accuracy improvement. This is because the difficult examples themselves have noise interference and low-intensity contrast background. With the development of interpretable deep learning algorithms, technical support is provided for the present invention, so that the present invention can distinguish the weak features of difficult examples from their background features for training and enhancement, thereby improving the segmentation accuracy of video semantic segmentation tasks. Summary of the invention

[0003] The purpose of the present invention is to address the deficiencies in the prior art and provide an explainable method and device for enhancing the accuracy of video target segmentation, which adopts an explainable deep learning algorithm to distinguish the weak features of difficult samples from their background features and enhance the weak video frame pixel features.

[0004] The object of the present invention is to achieve the following technical solution: a method for enhancing the accuracy of video target segmentation by interpretability, comprising the following steps:

[0005] (1) The first stage: training the original network features F:

[0006] (1.1) Put the video dataset {V} into the deep learning network training with convolutional cluster structure;

[0007] (1.2) The convolution cluster structure refers to a structure containing a convolution layer, and the deep learning network includes but is not limited to the DeepLab series, RCNN series, and U-Net series;

[0008] (1.3) For a video V in {V} i , its original network feature F is the result of all convolutional layers of the deep learning network {C1, C2, ..., Cn}, with a dimension of n W*H*T tensors, where n represents the number of convolutional layers of the deep learning network; C1 is a 3D tensor with a dimension of W*H*T.

[0009] (2) The second stage: screening weak feature video frame pixels:

[0010] (2.1) Using an interpretable deep learning neural network, calculate the video V frame by frame iThe heat map {h} of each convolutional layer has dimensions of n W*H*T tensors;

[0011] (2.1.1) The last convolutional layer of the image calculates the heat map as follows:

[0012]

[0013] h represents the heat map of a frame of image. is the feature of the kth convolution kernel in the i-th layer, and GAP represents the average pooling process. c (m,n) is the predicted value of the pixel at position (m,n) for category c. ReLU represents the weight of the kth convolution kernel. ReLU is the activation function ReLU(x)=max(0,x).

[0014] (2.1.2) Put each frame of the video (dimension W*H*1) into formula (1-1) to calculate the heat map {h}. (2.2) For the video V i , the heat maps of each convolution layer {h} are weighted and normalized according to the T dimension to obtain the standard heat map set {H}, whose dimension is n W*H*T tensors;

[0015] (2.2.1) For video V i , the weight normalization calculation for one of the convolutional layers is as follows:

[0016]

[0017] Among them, min is the minimum value of the tensor, h i,j,k is the heat map value of the layer at the position i, j, k, h i,j Represents the set of all T-frame values ​​at position i,j of the heat map of this layer.

[0018] (2.2.2) For each convolutional layer heat map {h}, repeat step (2.2.1) to obtain the standard heat map set {H}. (2.3) For the annotated heat map set {H}, set the hyperparameter λ1. For all pixel positions in the standard heat map set {H} whose values ​​are less than λ1, set V i The RGB pixel value of the corresponding pixel position is set to (0, 0, 0);

[0019] (2.4) For all videos V in the training video dataset {V} i , execute step (1) to step (2) to obtain a new video dataset

[0020] (3) The third stage: training new video dataset And enhance the features at the weak heat map weight position:

[0021] (3.1) New video dataset Put it into the deep learning network training used in the first stage;

[0022] (3.2) For A video example Its new network features The results of all convolutional layers of the deep learning network The dimension is n W*H*T tensors; It is a 3D tensor with dimensions W*H*T.

[0023] (3.3) For videos Execute step (2.1) to obtain the new standard thermal map set Its dimension is n W*H*T tensors;

[0024] (3.4) Set the hyperparameters λ2, λ3. For the new standard heat map set If all position values ​​are less than λ2, the new network features The corresponding position value is multiplied by the hyperparameter λ3, and the network weights are updated layer by layer.

[0025] (3.4.1) The value range of the hyperparameter λ1 in step (2.3) is [8, 15], and the initial default value is 14. The value range of the hyperparameter λ2 in step (3.4) is [0.05, 0.2], and the initial default value is 0.1. The value range of λ3 is [2, 5], and the initial default value is 2.

[0026] (3.4.2) When training a new video dataset When the feature of the first convolutional layer of the deep neural network is calculated, the new network feature is used. The corresponding position value is multiplied by the hyperparameter λ3 to cover the original calculation result of this layer and pass it to the next convolution layer;

[0027] (3.4.3) Update each convolutional layer layer by layer and repeat step (3.4.2) to obtain the final trained network model net.

[0028] (3.5) New video dataset After executing steps (1) to (3), the final network model net is obtained. For the test video, the trained network model net is put in to obtain the segmentation result of the entire video.

[0029] The second aspect of the present invention relates to an interpretable device for enhancing video target segmentation accuracy, comprising a memory and one or more processors, wherein the memory stores executable code, and when the one or more processors execute the executable code, they are used to implement an interpretable method for enhancing video target segmentation accuracy of the present invention.

[0030] A third aspect of the present invention relates to a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements an interpretable method of enhancing video target segmentation accuracy of the present invention.

[0031] The beneficial effect of the present invention is that the weak features of difficult sample examples can be distinguished through an interpretable deep learning algorithm, and the pixel areas with insufficient segmentation can be enhanced separately, further improving the semantic segmentation accuracy. Due to the hyperparameter limitation of the present invention, the calculation range of the video frame is limited, which will greatly reduce the calculation amount of the video features. The present invention proposes for the first time to extract the weak features of difficult samples and enhance the training separately to improve the segmentation accuracy of the video semantic segmentation task. The effect is better than the existing segmentation method and has the characteristics of versatility. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 is a diagram of steps of a method for using the present invention;

[0033] Figure 2 is a heat map of the convolutional layer of the method of the present invention;

[0034] Figure 3 is the standard thermodynamic diagram of the method of the present invention;

[0035] Figure 4 is a heat map weight position map of the method of the present invention;

[0036] Figure 5 It is a segmentation effect diagram of the method of the present invention. DETAILED DESCRIPTION

[0037] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.

[0038] Example 1

[0039] The core technology of this invention is to use an explainable deep learning algorithm to distinguish and enhance the weak features of video frames to improve the accuracy of video speech segmentation.

[0040] The present invention proposes an interpretable method for enhancing the accuracy of video object segmentation, comprising the following steps: Figure 1 ):

[0041] (1) The first stage: training the original network features F:

[0042] (1.1) Put the video dataset {V} into the deep learning network training with convolutional cluster structure;

[0043] (1.2) The convolution cluster structure refers to a structure containing a convolution layer, and the deep learning network includes but is not limited to the DeepLab series, RCNN series, and U-Net series;

[0044] (1.3) For a video V in {V} i , its original network feature F is the result of all convolutional layers of the deep learning network {C1, C2, ..., Cn}, with a dimension of n W*H*T tensors, where n represents the number of convolutional layers of the deep learning network; C1 is a 3D tensor with a dimension of W*H*T.

[0045] (2) The second stage: screening weak feature video frame pixels:

[0046] (2.1) Using an interpretable deep learning neural network, calculate the video V frame by frame i The heat map of each convolutional layer {h}( Figure 2 ), whose dimension is n W*H*T tensors; the last convolution layer of the image calculates the heat map as follows:

[0047]

[0048] h represents the heat map of a frame of image. is the feature of the kth convolution kernel in the i-th layer, and GAP represents the average pooling process. c (m,n) is the predicted value of the pixel at position (m,n) for category c. ReLU represents the weight of the kth convolution kernel. ReLU is the activation function ReLU(x)=max(0,x).

[0049] (2.2) For video V i , the heat maps of each convolution layer {h} are weighted and normalized according to the T dimension to obtain the standard heat map set {H}, whose dimension is n W*H*T tensors;

[0050] For video Vi, the weight normalization of one of the convolutional layers is calculated as follows:

[0051]

[0052] Among them, min is the minimum value of the tensor, h i,j,k is the heat map value of the layer at the position i, j, k, h i,j Represents the set of all T-frame values ​​at the position i,j of the heat map of this layer. For each convolutional layer heat map {h}, repeat the process to obtain the standard heat map set {H} ( Figure 3 ).

[0053] (2.3) For the annotated heat map set {H}, set the hyperparameter λ1. For all pixel positions whose values ​​are less than λ1 in the standard heat map set {H}, set V i The RGB pixel value of the corresponding pixel position is set to (0, 0, 0); the value range of the hyperparameter λ1 is [8, 15], and the sample value is 14;

[0054] (2.4) For all videos V in the training video dataset {V} i , execute step (1) to step (2) to obtain a new video dataset

[0055] (3) The third stage: training new video dataset And enhance the features at the weak heat map weight position ( Figure 4 ):

[0056] (3.1) New video dataset Put it into the deep learning network training used in the first stage;

[0057] (3.2) For A video example Its new network features The results of all convolutional layers of the deep learning network The dimension is n W*H*T tensors; It is a 3D tensor with dimensions W*H*T.

[0058] (3.3) For videos Execute steps (2.1) and (2.2) to obtain the new standard thermal map set Its dimension is n W*H*T tensors;

[0059] (3.4) Set the hyperparameters λ2, λ3. For the new standard heat map set If all position values ​​are less than λ2, the new network features The corresponding position value is multiplied by the hyperparameter λ3, and the network weight is updated layer by layer. The value range of the hyperparameter λ2 is [0.05, 0.2], and the sample value is 0.1; the value range of the hyperparameter λ3 is [2, 5], and the sample value is 2.

[0060] When training a new video dataset When the video V i , the features calculated by the first convolutional layer of the deep neural network are calculated in step (3.4), and the new network features are used The corresponding position value is multiplied by the hyperparameter λ3 to cover the original calculation result of this layer and pass it to the next convolution layer; each convolution layer is updated layer by layer, and this step is repeated to obtain the final trained network model net.

[0061] (3.5) New video dataset After executing steps (1) to (3), the final network model net is obtained. For the test video, the trained network model net is put in to obtain the segmentation result of the entire video ( Figure 5 ).

[0062] Example 2

[0063] The present embodiment relates to an interpretable device for enhancing video target segmentation accuracy, comprising a memory and one or more processors, wherein the memory stores executable code, and when the one or more processors execute the executable code, they are used to implement an interpretable method for enhancing video target segmentation accuracy of embodiment 1.

[0064] Example 3

[0065] A third aspect of the present invention relates to a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements an interpretable method for enhancing video target segmentation accuracy of embodiment 1.

[0066] The contents described in the embodiments of this specification are merely an enumeration of the implementation forms of the inventive concept. The protection scope of the present invention should not be regarded as limited to the specific forms described in the embodiments. The protection scope of the present invention also extends to equivalent technical means that can be conceived by those skilled in the art based on the inventive concept.

Claims

1. An interpretable method for enhancing the accuracy of video target segmentation, wherein the training network features are characterized by: The steps include: (1) The first stage: training the original network features F: (1.1) Put the video dataset {V} into the deep learning network training with convolutional cluster structure; (1.2) The convolution cluster structure refers to a structure containing a convolution layer, and the deep learning network includes but is not limited to the DeepLab series, RCNN series, and U-Net series; (1.3) For a video V in {V} i , its original network feature F is the result of all convolutional layers of the deep learning network {C1, C2, ..., Cn}, with a dimension of n W*H*T tensors, where n represents the number of convolutional layers of the deep learning network; C1 is a 3D tensor with a dimension of W*H*T. (2) The second stage: screening weak feature video frame pixels: (2.1) Using an interpretable deep learning neural network, calculate the video V frame by frame i The heat map {h} of each convolutional layer has dimensions of n W*H*T tensors; (2.2) For video V i , the heat maps of each convolution layer {h} are weighted and normalized according to the T dimension to obtain the standard heat map set {H}, whose dimension is n W*H*T tensors; (2.3) For the annotated heat map set {H}, set the hyperparameter λ1. For all pixel positions whose values ​​are less than λ1 in the standard heat map set {H}, set V i The RGB pixel value of the corresponding pixel position is set to (0, 0, 0); (2.4) For all videos V in the training video dataset {V} i , execute step (1) to step (2) to obtain a new video dataset (3) The third stage: training new video dataset And enhance the features at the weak heat map weight position: (3.1) New video dataset Put it into the deep learning network training used in the first stage; (3.2) For A video example Its new network features The results of all convolutional layers of the deep learning network The dimension is n W*H*T tensors; It is a 3D tensor with dimensions W*H*T. (3.3) For videos Execute step (2.1) to obtain the new standard thermal map set Its dimension is n W*H*T tensors; (3.4) Set the hyperparameters λ2, λ3. For the new standard heat map set If all position values ​​are less than λ2, the new network features The corresponding position value is multiplied by the hyperparameter λ3, and the network weights are updated layer by layer. (3.5) New video dataset After executing steps (1) to (3), the final network model net is obtained. For the test video, the trained network model net is put in to obtain the segmentation result of the entire video.

2. The method for enhancing the accuracy of video object segmentation according to claim 1, characterized in that: The heat map described in step (2.1) has the following calculation steps: (2.1.1) The last convolutional layer of the image calculates the heat map as follows: h represents the heat map of a frame of image. is the feature of the kth convolution kernel in the i-th layer, and GAP represents the average pooling process. c (m, n) is the predicted value of the pixel at position (m, n) for category c. ReLU represents the weight of the kth convolution kernel. ReLU is the activation function ReLU(x)=max(0,x). (2.1.2) Put each frame of the video (dimension W*H*1) into formula (1-1) to calculate and obtain the heat map {h}.

3. The method for enhancing the accuracy of video object segmentation according to claim 1, characterized in that: The weight normalization in step (2.2) includes the following sub-steps: (2.2.1) For video V i , the weight normalization calculation for one of the convolutional layers is as follows: Among them, min is the minimum value of the tensor, h i,j,k is the heat map value of the layer at the position i, j, k, h i,j Represents the set of all T-frame values ​​at position i and j of the heat map of this layer. (2.2.2) For each convolutional layer heat map {h}, repeat step (2.2.1) to obtain the standard heat map set {H}.

4. The method for enhancing the accuracy of video object segmentation according to claim 1, characterized in that: The values ​​of the hyperparameters described in steps (2.3) and (3.4) are: The hyperparameter λ1 ranges from [8, 15], and the initial default value is 14. The hyperparameter λ2 ranges from [0.05, 0.2], and the initial default value is 0.

1. The hyperparameter λ3 ranges from [2, 5], and the initial default value is 2.

5. The method for enhancing the accuracy of video object segmentation according to claim 1, characterized in that: Step (3.4) of updating the network weights layer by layer includes the following sub-steps: (3.4.1) When training a new video dataset When the feature of the first convolutional layer of the deep neural network is calculated, the new network feature is used. The corresponding position value is multiplied by the hyperparameter λ3 to cover the original calculation result of this layer and pass it to the next convolution layer; (3.4.2) Update each convolutional layer layer by layer and repeat step (3.4.1) to obtain the final trained network model net.

6. An interpretable device for enhancing video target segmentation accuracy, characterized in that: It comprises a memory and one or more processors, wherein the memory stores executable codes, and when the one or more processors execute the executable codes, they are used to implement an interpretable method for enhancing video target segmentation accuracy as described in any one of claims 1 to 5.

7. A computer-readable storage medium, characterized in that: A program is stored thereon, and when the program is executed by a processor, an interpretable method for enhancing video target segmentation accuracy as described in any one of claims 1-5 is implemented.