A weakly supervised image segmentation method based on bias calibration and hybrid enhancement strategy

By adopting a weak supervision method of bias calibration and hybrid enhancement strategy in image segmentation, using differential feature learning and pseudo label correction, the accuracy and cost problems of image segmentation under weak supervision conditions are solved, and high-quality automatic segmentation effects are achieved. .

CN118587441BActive Publication Date: 2024-10-29ZHEJIANG ZHENENG ELECTRIC POWER CO LTD XIAOSHAN POWER PLANT +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411060761.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-10-29
Estimated Expiration
2044-08-05

AI Technical Summary

Technical Problem

The existing technology lacks complete pixel-level annotation information in image segmentation, resulting in insufficient model feature representation capabilities and difficulty in achieving accurate segmentation. Especially under weak supervision conditions, the model is prone to overfitting and misclassification, and manual annotation is costly.

Method used

A weakly supervised image segmentation method based on bias calibration and hybrid enhancement strategy is adopted, differentiated feature learning is performed through two independent sub-networks, pseudo label correction is performed based on prediction entropy and classification results of neighboring pixels, and an adaptive image hybrid enhancement strategy is designed. , reduce dependence on manual annotation and improve segmentation accuracy.

Benefits of technology

It effectively reduces the cost of annotation, improves the precision and accuracy of image segmentation, and achieves high-quality automatic segmentation under low-annotation conditions. The model has strong generalization and is suitable for different types of image data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587441B_ABST
    Figure CN118587441B_ABST
Patent Text Reader

Abstract

The present invention discloses a weakly supervised image segmentation method based on deviation calibration and hybrid enhancement strategy, which constructs an image segmentation model based on prediction deviation calibration, and only requires the labeled image to contain a small amount of pixel information to achieve accurate automatic segmentation of the image; the method focuses on the potential prediction deviation area of ​​the image segmentation model, and realizes the correction of possible erroneous predictions through the soft label strategy of neighbor constraints, which alleviates the prediction deviation problem of the image segmentation model under the condition of limited supervision signals; by combining the adaptive image hybrid enhancement strategy with the optimization process of the image segmentation model, the diversity of data and label information is enriched, and the recognition ability of the image segmentation model for difficult areas is improved. The present invention can be applied to various types of images such as natural images, medical images, and two-dimensional codes, and can achieve good segmentation results at a lower annotation cost, effectively alleviating the burden of manual image annotation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automatic image segmentation in computer vision, specifically to the technical field of intelligent image segmentation in the case of incomplete or sparse image label information, and in particular to a weakly supervised image segmentation method based on deviation calibration and hybrid enhancement strategy. Background Art

[0002] Image segmentation aims to divide the pixels in an image into different semantic categories or object instances, and its goal is to segment the image into regions with specific semantics. Image segmentation plays an important role in many application fields, including target detection and recognition, image editing and synthesis, and medical image analysis. However, traditional supervised model training methods require complete pixel-level annotation information support, and label acquisition is time-consuming and costly, which greatly hinders the application of intelligent image segmentation in practical scenarios. In order to alleviate this problem, many research works have turned to the problem of image segmentation with limited labels, including semi-supervised segmentation and weakly supervised segmentation. Among them, semi-supervised segmentation only reduces the demand for the number of complete label samples, but still requires pixel-level annotation information. In comparison, weakly supervised segmentation uses sparse annotation to train the segmentation model, which is more flexible and further reduces the burden of manual annotation.

[0003] Common sparse annotations include image-level annotations, bounding box annotations, and graffiti annotations. Among them, the amount of information provided by image-level annotations is too limited. Although bounding box annotations provide location information, bounding boxes of different categories may overlap with each other, causing confusion in label information. In contrast, graffiti annotations are relatively easy to obtain and can more flexibly reflect the distribution of different category labels, especially for irregularly shaped segmentation targets. Therefore, the present invention mainly considers the image segmentation problem based on graffiti annotations.

[0004] Existing research methods can be divided into pseudo-label-based methods, regularization loss-based methods, and consistency learning-based methods. Although these methods have achieved good segmentation performance improvements, due to the lack of complete pixel-level annotation information, there is still a large gap between the segmentation performance of these methods and their corresponding performance ceilings, where the performance ceiling is the model segmentation performance based on dense annotation training. Although graffiti annotation provides a small amount of pixel label information, there are still two key challenges to achieve accurate segmentation of the target: first, the lack of geometric boundary information of the segmented target, which will affect the model's extraction of key visual features required for target recognition, resulting in insufficient feature representation capabilities. Another point is that deep learning models tend to output overly confident prediction results. In the case of limited supervision information, the model's feature representation capabilities are insufficient, which will amplify the negative effects of this problem, causing the model to maintain high confidence in misclassified pixels, thereby hindering model optimization. Therefore, how to solve the above difficulties and design an accurate image automatic segmentation model with low annotation costs is the key to further adapting the automatic segmentation model to actual application scenarios. Summary of the invention

[0005] The purpose of the present invention is to provide a weakly supervised image segmentation method based on deviation calibration and hybrid enhancement strategy to address the deficiencies of the prior art. The present invention can reduce the burden of manual image annotation, effectively reduce the annotation cost, accurately segment images, and improve the accuracy of image segmentation.

[0006] The objective of the present invention is achieved through the following technical solution: a weakly supervised image segmentation method based on deviation calibration and hybrid enhancement strategy, comprising the following steps:

[0007] (1) Collect image data and annotate each segmentation category of each image as label information to build a dataset; preprocess and enhance the image data in the dataset to obtain a training dataset;

[0008] (2) constructing a weakly supervised image segmentation network based on prediction bias calibration and adaptive hybrid enhancement strategy; wherein the weakly supervised image segmentation network includes two independently trained sub-networks;

[0009] (3) Using the image data in the training data set as the input of the weakly supervised image segmentation network for training, and optimizing the parameters of the weakly supervised image segmentation network according to the loss function of the weakly supervised image segmentation network until the loss function of the weakly supervised image segmentation network converges or reaches a preset number of training rounds; using the first subnetwork of the trained weakly supervised image segmentation network as the image segmentation model;

[0010] (4) Obtain image data, input the image into the image segmentation model, and obtain the image segmentation result.

[0011] Furthermore, in step (1), the number of annotated pixels in each segmentation category of each image is at least 1.

[0012] Furthermore, the image data in the data set is preprocessed and data enhanced to obtain a training data set, specifically including:

[0013] (1.1) Divide the three-dimensional image in the data set into a number of two-dimensional slices to obtain a two-dimensional image;

[0014] (1.2) The size of the two-dimensional image is uniformly scaled to 256×256 to obtain a scaled image;

[0015] (1.3) performing z-score normalization on the pixels of the scaled image to obtain a data normalized image;

[0016] (1.4) Random rotation and random flipping are used to perform data augmentation on the data-normalized images to obtain a training dataset.

[0017] Furthermore, the structures of the two subnetworks included in the weakly supervised image segmentation network are completely consistent, but different parameter initialization strategies are adopted; each subnetwork adopts the U-Net architecture, and each subnetwork includes an encoder and a decoder, the encoder is used to encode the input image to obtain image features, and the decoder is used to obtain the required image segmentation results based on image feature decoding; wherein, the encoder includes a convolution module and a downsampling module, the decoder includes a convolution module, an upsampling module and an output module, the convolution module includes a convolution layer, a batch normalization layer, a LeakyReLU activation function and a random inactivation layer, the downsampling module includes a maximum pooling layer, the upsampling module includes a deconvolution layer, and the output module includes a convolution layer.

[0018] Furthermore, the loss function of the weakly supervised image segmentation network is calculated as follows:

[0019]

[0020] in, is the loss function of the weakly supervised image segmentation network, is the supervised loss for the original image input, The segmentation loss for the segmentation prediction and pseudo-label output of the two sub-networks, is the segmentation loss for mixed image input, The prediction deviation correction loss is used to generate prediction divergence in the area where the two sub-networks predict divergence. is the weight parameter;

[0021] The calculation formula of the supervised loss of the original image input is:

[0022]

[0023] in, represents the segmentation category, Represents a set of pixels with labeled information. and Output the predicted pixels of the two sub-networks respectively For Category The predicted probability of

[0024] The calculation formula for the segmentation loss of the segmentation prediction and pseudo-label output by the two sub-networks is:

[0025]

[0026]

[0027] in, represents the pseudo label corresponding to the input image, and Represents the segmentation prediction results output by the two sub-networks, and The prediction entropy graph representing the prediction results of the two sub-network outputs, represents the dot product, represents the segmentation loss;

[0028] The calculation formula for the segmentation loss of the mixed image input is:

[0029]

[0030] in, , , and They respectively represent the graffiti annotation, pseudo label of the enhanced image corresponding to the original image and the segmentation prediction results output by the two sub-networks, where the graffiti annotation is the label information corresponding to the image data;

[0031] The calculation formula for the prediction deviation correction loss of the prediction divergence area generated by the two sub-networks is:

[0032]

[0033]

[0034]

[0035] in, and Indicates the pixel prediction results and soft label values ​​corresponding to the fuzzy area where the two sub-networks predict diverge. Represents the KL divergence loss of the network prediction result and its corresponding soft label value, Indicates that pixel i is the soft label value corresponding to category c, Represents the prediction result of pixel i, and Represents the prediction results of pixel i output by the two sub-networks, is the weight of different neighboring pixels, is the set of neighboring pixels, Indicates neighboring pixels.

[0036] Furthermore, the segmentation loss It is one or a combination of dice loss and cross entropy loss.

[0037] Furthermore, the calculation formula for the predicted entropy of each pixel in the predicted entropy map is:

[0038]

[0039] in, is the predicted entropy of pixel i, represents the total number of segmentation categories, Represents the probability that pixel i is predicted to be of category c.

[0040] Furthermore, the mixed image is obtained according to the following formula:

[0041]

[0042] in, represents a mixed image, and are two different images in the same batch, represents the mask matrix, Represents an image translation transformation, which is used to transform and The center points of the segmented areas of the two images are aligned.

[0043] Furthermore, the mask matrix is ​​calculated according to the following formula:

[0044]

[0045] in, represents the mask matrix of pixel i, Represents the mean value of the predicted entropy of all pixels in the predicted entropy map.

[0046] Furthermore, the step (4) specifically includes:

[0047] If the image data is a two-dimensional image, it is preprocessed to obtain a data-standardized image, and the data-standardized image is directly input into the image segmentation model to obtain the corresponding image segmentation result;

[0048] If the image data is a three-dimensional image, the three-dimensional image needs to be divided into several two-dimensional slices, and then preprocessed to obtain a data-standardized image. The data-standardized image is input into the image segmentation model to obtain the corresponding image slice segmentation result, and then the segmentation results of several image slices are superimposed to restore the segmentation result of the three-dimensional image.

[0049] Compared with the prior art, the present invention has the following beneficial effects:

[0050] (1) Starting from the scenario where label sample information is sparse, this paper designs a novel weakly supervised deep learning segmentation model, which is more suitable for practical application scenarios, effectively reduces the segmentation model's dependence on manual annotation, and realizes high-quality automatic image segmentation;

[0051] (2) To address the problem of model overfitting under limited supervision signals, the present invention designs two independent sub-networks to perform differentiated feature learning. On the one hand, more reliable pseudo-labels are generated by introducing prediction entropy constraints. On the other hand, the model focuses on potential prediction deviation areas and corrects these possibly erroneous probability predictions in combination with the classification results of neighboring pixels, thus guiding the model to make more reasonable and accurate segmentation predictions.

[0052] (3) To address the problem of missing prior structure of segmentation targets, the present invention proposes an adaptive image hybrid enhancement strategy in combination with the model optimization process. While enriching the diversity of data and label information, it also encourages the model to pay more attention to the pixel segmentation of difficult areas. In the process of model verification, only a small amount of pixel annotation is required from the label samples to achieve a high-accuracy image segmentation effect, which effectively improves the accuracy of image segmentation.

[0053] (4) The image segmentation model of the present invention is simple to construct and has good generalization properties. It is applicable to different types of image data and has strong versatility. It can effectively assist humans in completing image segmentation tasks more efficiently. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 It is a structural schematic diagram of the image segmentation model of the present invention;

[0055] Figure 2 A flow chart of a method for training an image segmentation model under a weakly supervised setting according to the present invention;

[0056] Figure 3 It is a flow chart of the method for performing image segmentation using an image segmentation model under weak supervision setting of the present invention;

[0057] Figure 4 This is an example diagram of the image segmentation result of the present invention. DETAILED DESCRIPTION

[0058] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0059] The terms used in the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The singular forms "a", "the" and "the" used in the present invention and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0060] It should be understood that although the terms first, second, third, etc. may be used in the present invention to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present invention, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0061] The present invention is described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the features of the following embodiments and implementations can be combined with each other.

[0062] The weakly supervised image segmentation method based on deviation calibration and hybrid enhancement strategy of the present invention achieves better results in the accuracy and completeness of the segmentation results through differentiated feature learning and image enhancement combined with model optimization. The following uses the ACDC heart segmentation challenge public data set as an example to illustrate the technical solution of the present invention.

[0063] In this embodiment, the method specifically includes the following steps:

[0064] (1) Collect image data and annotate each segmentation category of each image as label information to build a dataset; preprocess and enhance the image data in the dataset to obtain a training dataset, such as Figure 2 shown.

[0065] Furthermore, the number of annotated pixels of each segmentation category in each image is at least 1.

[0066] It should be noted that the segmentation categories corresponding to most pixel areas of each image are unknown. Therefore, when collecting image data, a small number of pixel annotations are required for each segmentation category of each image as label information. Therefore, in the constructed dataset, each image contains a small amount of pixel annotation information for each segmentation category, and the number of annotated pixels for each segmentation category is at least 1.

[0067] Specifically, the data set constructed in this embodiment includes 200 cardiac magnetic resonance imaging (MRI) images of 100 patients, and the segmentation categories include left ventricle (LV), right ventricle (RV), myocardium (Myo) and background (BG). The experiment is conducted in a five-fold cross-validation manner, that is, 20 case images are selected for testing and 80 case images are selected for training each time until all images are tested, and the average results of five tests are finally reported. After collecting the image data, each segmentation category of each image needs to be annotated. The image annotation here refers to the pixel-level classification results. The pixels representing the left ventricle are annotated as 1, the pixels representing the right ventricle are annotated as 2, the pixels representing the myocardium are annotated as 3, and the remaining pixels are all backgrounds and are annotated as 0. This is a four-category task, but it is not limited to this.

[0068] Furthermore, the image data in the data set is preprocessed and data enhanced to obtain a training data set, which specifically includes the following sub-steps:

[0069] (1.1) Divide the three-dimensional image in the data set into several two-dimensional slices to obtain a two-dimensional image.

[0070] (1.2) The size of the two-dimensional image is uniformly scaled to 256×256 to obtain a scaled image.

[0071] (1.3) Perform z-score normalization on the pixels of the scaled image to obtain a data-normalized image.

[0072] (1.4) Random rotation and random flipping are used to perform data augmentation on the data-normalized images to obtain a training dataset.

[0073] It should be understood that when data enhancement is performed on the image after data standardization, the rotation angle is 90°, 180°, or 270°, and the flipping is image flipping along the x or y axis. Performing data enhancement on the image can expand the training data set and make the training data richer.

[0074] (2) A weakly supervised image segmentation network is constructed based on prediction bias calibration and adaptive hybrid enhancement strategy. The weakly supervised image segmentation network consists of two independently trained sub-networks.

[0075] In this embodiment, the specific structure of the weakly supervised image segmentation network is as follows: Figure 1 As shown in the figure, the weakly supervised image segmentation network includes two independently trained subnetworks. The structures of the two subnetworks are exactly the same, but different parameter initialization strategies are used. Each subnetwork adopts the U-Net architecture, and each subnetwork includes an encoder E and a decoder D, wherein the encoder is used to encode the input image to obtain image features, and the decoder is used to decode the image features to obtain the required image segmentation results. Among them, the encoder E includes a convolution module and a downsampling module, and the decoder D includes a convolution module, an upsampling module, and an output module. The convolution module includes a convolution layer, a batch normalization (BN) layer, a LeakyReLU activation function, and a random dropout layer. The downsampling module includes a maximum pooling layer, the upsampling module includes a deconvolution layer, and the output module includes a convolution layer.

[0076] Exemplarily, the encoder E in this embodiment is composed of 5 convolution modules and 4 downsampling modules, each convolution module is composed of a convolution layer, a BN layer, a LeakyReLU activation function and a Dropout layer, which are sequentially connected and repeated twice, and each downsampling module is a maximum pooling layer. The decoder D includes 4 convolution modules, 4 upsampling modules and an output module. The convolution module is consistent with that in the encoder E, the upsampling module is a deconvolution layer, and the output module includes a convolution layer.

[0077] It should be understood that the number of each module can be adjusted according to actual needs.

[0078] (3) Using the image data in the training data set as the input of the weakly supervised image segmentation network for training, and optimizing the parameters of the weakly supervised image segmentation network according to the loss function of the weakly supervised image segmentation network until the loss function of the weakly supervised image segmentation network converges or reaches a preset number of training rounds; using the first subnetwork of the trained weakly supervised image segmentation network as the image segmentation model.

[0079] Specifically, the image data in the training dataset is randomly divided into batches with a batch size of 12, and each batch contains 12 two-dimensional images. Next, the weakly supervised image segmentation network is trained in batches for 60,000 rounds. The training uses the SGD optimizer with an initial learning rate of 0.1. The learning rate is reduced to one tenth of the original learning rate every 2,500 rounds of training. Figure 1 As shown, the image data in the training data set is input into the weakly supervised image segmentation network, and enters the two sub-networks respectively to obtain two segmentation prediction results. Pseudo labels are generated based on the two segmentation prediction results and the prediction entropy constraint, and then the training of the two sub-networks is supervised. For the parts where the predictions of the two sub-networks are inconsistent, the predictions can be corrected by referring to the pixel prediction results of the corresponding pixel neighbors. In addition, according to the prediction results of the original image, another image is randomly selected from the same batch and mixed with it to generate an enhanced image. After that, the enhanced image is input into the sub-network, and the pseudo labels of the two original images for generating the mixed image are mixed in the same way to obtain the pseudo labels of the enhanced image, and then the output results of the two sub-networks are supervised to train the weakly supervised image segmentation network. During the training process, the parameters of the weakly supervised image segmentation network are optimized according to the loss function of the weakly supervised image segmentation network until the loss function of the weakly supervised image segmentation network converges or reaches the preset number of training rounds, and the training is stopped to obtain a trained weakly supervised image segmentation network. The first sub-network of the trained weakly supervised image segmentation network is used as an image segmentation model for the segmentation of subsequent images.

[0080] Furthermore, the loss function of the weakly supervised image segmentation network is calculated as:

[0081]

[0082] in, is the loss function of the weakly supervised image segmentation network, is the supervised loss for the original image input, The segmentation loss for the segmentation prediction and pseudo-label output of the two sub-networks, is the segmentation loss for mixed image input, The prediction deviation correction loss is used to generate prediction divergence in the area where the two sub-networks predict divergence. is the weight parameter, and its value range is .

[0083] Furthermore, the supervised loss of the original image input is calculated as:

[0084]

[0085] in, represents the segmentation category, Represents a set of pixels with labeled information. and Output the predicted pixels of the two sub-networks respectively For Category The predicted probability of .

[0086] Furthermore, the segmentation loss of the segmentation prediction and pseudo-label output by the two sub-networks is calculated as:

[0087]

[0088]

[0089] in, represents the pseudo label corresponding to the input image, and Represents the segmentation prediction results output by the two sub-networks, and The prediction entropy graph representing the prediction results of the two sub-network outputs, represents the dot product, represents the segmentation loss.

[0090] It should be noted that the segmentation loss It is one or a combination of dice loss and cross entropy loss. In this embodiment, the commonly used dice loss is selected.

[0091] Furthermore, the calculation formula for the predicted entropy of each pixel in the predicted entropy map is:

[0092]

[0093] in, is the predicted entropy of pixel i, represents the total number of segmentation categories, Represents the probability that pixel i is predicted to be category c. The above formula can be used to calculate the predicted entropy of each pixel, and then calculate the predicted entropy of all pixels in the predicted entropy map, and then obtain the corresponding predicted entropy map, that is, the predicted entropy map of the prediction results of the two sub-networks output and .

[0094] Furthermore, the segmentation loss of mixed image input is calculated as:

[0095]

[0096] in, , , and They respectively represent the graffiti annotation, pseudo label of the enhanced image corresponding to the original image and the segmentation prediction results output by the two sub-networks, where the graffiti annotation is the label information corresponding to the image data.

[0097] It should be understood that the graffiti annotation is the label information corresponding to the annotation of a small number of pixels when collecting image data in step (1).

[0098] Furthermore, the mixed image is obtained as follows:

[0099]

[0100] in, represents a mixed image, and are two different images in the same batch, represents the mask matrix, Represents an image translation transformation, which is used to transform and The center points of the segmented areas of the two images are aligned.

[0101] Furthermore, the mask matrix is ​​calculated as follows:

[0102]

[0103] in, represents the mask matrix of pixel i, Represents the mean value of the predicted entropy of all pixels in the predicted entropy map.

[0104] Furthermore, the calculation formula for the prediction deviation correction loss of the prediction divergence area between the two sub-networks is:

[0105]

[0106]

[0107]

[0108] in, and Indicates the pixel prediction results and soft label values ​​corresponding to the fuzzy area where the two sub-networks predict diverge. Represents the KL divergence loss of the network prediction result and its corresponding soft label value, Indicates that pixel i is the soft label value corresponding to category c, Represents the prediction result of pixel i, and Represents the prediction results of pixel i output by the two sub-networks, is the weight of different neighboring pixels, is the set of neighboring pixels, Indicates neighboring pixels.

[0109] It should be understood that the soft label refers to the prediction result of the current pixel constructed by referring to the prediction result of the pixels within the 5*5 range with the current pixel as the center. This soft label is used to correct the prediction result of the current pixel directly output by the network. The soft label value can calibrate the network prediction. From the above formula, it can be seen that the output definition of the prediction divergence area corresponds to .

[0110] (4) Obtain image data, input the image into the image segmentation model, and obtain the image segmentation result.

[0111] Specifically, if the image data is a two-dimensional image, it is preprocessed to obtain a data-standardized image, and the data-standardized image is directly input into the image segmentation model to obtain the corresponding image segmentation result; if the image data is a three-dimensional image, the three-dimensional image needs to be divided into several two-dimensional slices, and then preprocessed to obtain a data-standardized image, and the data-standardized image is input into the image segmentation model to obtain the corresponding image slice segmentation result, and then the segmentation results of several image slices are superimposed to restore the segmentation result of the three-dimensional image, such as Figure 3 shown.

[0112] Exemplarily, the method of the present invention and some existing methods are used for testing, and the results are as follows: Figure 4 As shown in Table 1, it can be verified that the effect of the method of the present invention is better. The test image is divided into several two-dimensional slices, and the data is preprocessed using the same z-score standardization as in step (1), and input into the trained image segmentation model to obtain the corresponding image slice segmentation results, and then the slice segmentation results are superimposed to restore the segmentation results of the three-dimensional image.

[0113] Table 1 Quantitative comparison results of the proposed method and the existing algorithm on the ACDC dataset

[0114]

[0115] Table 1 compares the segmentation performance of the method of the present invention and the existing methods, wherein the higher the DSC index, the better, and the lower the 95HD index, the better. After comparison, the method of the present invention improves the accuracy and completeness of image segmentation compared to the existing technology, and is also closer to the real annotation in terms of geometry. The present invention enhances the representation ability of image features and the reliability of pseudo-labels through a differentiated segmentation network and an entropy-guided pseudo-label fusion strategy. On the other hand, by rationalizing the model prediction of the fuzzy area and adaptively enhancing the image hybridization to guide the model to continuously focus on the segmentation of the fuzzy boundary area, the accuracy of boundary segmentation is improved, and the corresponding visualization segmentation effect is shown in FIG. Figure 4 shown.

[0116] In summary, the present invention aims at the problem of weakly supervised image segmentation with sparse label information, and adopts a deep learning segmentation method based on prediction bias calibration and adaptive hybrid enhancement strategy to achieve accurate automatic segmentation of images. The model has strong generalization and is also applicable to different types of image segmentation, which can effectively alleviate the burden of manual image annotation. In terms of segmentation accuracy, it is also significantly improved compared with the current advanced algorithms.

[0117] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. 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 invention.

Claims

1. A weakly supervised image segmentation method based on bias calibration and hybrid enhancement strategy, characterized in that: The following steps are involved: (1) Collect image data and annotate each segmentation category of each image as label information to construct a dataset; perform preprocessing and data enhancement on the image data in the dataset to obtain a training dataset; (2) constructing a weakly supervised image segmentation network based on prediction bias calibration and adaptive hybrid enhancement strategy; wherein the weakly supervised image segmentation network includes two independently trained sub-networks; (3) using the image data in the training data set as input of the weakly supervised image segmentation network for training, and optimizing the parameters of the weakly supervised image segmentation network according to the loss function of the weakly supervised image segmentation network until the loss function of the weakly supervised image segmentation network converges or reaches a preset number of training rounds; using the first subnetwork of the trained weakly supervised image segmentation network as an image segmentation model; (4) Obtaining image data, inputting the image into an image segmentation model, and obtaining an image segmentation result; The weakly supervised image segmentation network includes two subnetworks with completely identical structures, but adopts different parameter initialization strategies; each subnetwork adopts a U-Net architecture, and each subnetwork includes an encoder and a decoder, wherein the encoder is used to encode the input image to obtain image features, and the decoder is used to obtain the required image segmentation results based on image feature decoding; wherein the encoder includes a convolution module and a downsampling module, the decoder includes a convolution module, an upsampling module and an output module, the convolution module includes a convolution layer, a batch normalization layer, a LeakyReLU activation function and a random inactivation layer, the downsampling module includes a maximum pooling layer, the upsampling module includes a deconvolution layer, and the output module includes a convolution layer; The calculation formula of the loss function of the weakly supervised image segmentation network is: in, is the loss function of the weakly supervised image segmentation network, is the supervised loss for the original image input, The segmentation loss for the segmentation prediction and pseudo-label output of the two sub-networks, is the segmentation loss for mixed image input, The prediction deviation correction loss is generated for the two sub-networks to predict the divergent areas, and λ is the weight parameter; The calculation formula of the supervised loss of the original image input is: Among them, c represents the segmentation category, S represents the set of pixels with labeled information, and The predicted probability of pixel i being of category c in the prediction results output by the two sub-networks respectively; The calculation formula for the segmentation loss of the segmentation prediction and pseudo-label output by the two sub-networks is: Among them, PL represents the pseudo label corresponding to the input image, and Represents the segmentation prediction results output by the two sub-networks, and Represents the prediction entropy graph of the prediction results of the two sub-networks output, ⊙ represents the dot product, represents the segmentation loss; The calculation formula for the segmentation loss of the mixed image input is: Among them, s mix , PL mix , and They respectively represent the graffiti annotation, pseudo label of the enhanced image corresponding to the original image and the segmentation prediction results output by the two sub-networks, where the graffiti annotation is the label information corresponding to the image data; The calculation formula for the prediction deviation correction loss of the prediction divergence area generated by the two sub-networks is: in, and Indicates the pixel prediction results and soft label values ​​corresponding to the fuzzy area where the two sub-networks predict diverge. Represents the KL divergence loss of the network prediction result and its corresponding soft label value, Indicates that pixel i is the soft label value corresponding to category c, Represents the prediction result of pixel i, and represents the prediction result of pixel i output by the two sub-networks, ω is the weight of different neighboring pixels, D is the set of neighboring pixels, and j represents the jth neighboring pixel.

2. The weakly supervised image segmentation method based on deviation calibration and hybrid enhancement strategy according to claim 1 is characterized in that: In the step (1), the number of annotated pixels of each segmentation category in each image is at least 1.

3. The weakly supervised image segmentation method based on deviation calibration and hybrid enhancement strategy according to claim 1 is characterized in that: The image data in the data set is preprocessed and data enhanced to obtain a training data set, specifically including: (1.1) Divide the three-dimensional image in the data set into a number of two-dimensional slices to obtain a two-dimensional image; (1.2) The size of the two-dimensional image is uniformly scaled to 256×256 to obtain a scaled image; (1.3) performing z-score normalization on the pixels of the scaled image to obtain a data-normalized image; (1.4) Random rotation and random flipping are used to perform data augmentation on the data normalized images to obtain the training data set.

4. The weakly supervised image segmentation method based on deviation calibration and hybrid enhancement strategy according to claim 1 is characterized in that: The segmentation loss It is one or a combination of dice loss and cross entropy loss.

5. The weakly supervised image segmentation method based on deviation calibration and hybrid enhancement strategy according to claim 1, characterized in that: The calculation formula for the predicted entropy of each pixel in the predicted entropy map is: in, is the predicted entropy of pixel i, C represents the total number of segmentation categories, Represents the probability that pixel i is predicted to be of category c.

6. The weakly supervised image segmentation method based on deviation calibration and hybrid enhancement strategy according to claim 1, characterized in that: The mixed image is obtained according to the following formula: x mix =(1−z)⊙x1+z⊙f(x2) Among them, x mix represents a mixed image, x1 and x2 are two different images in the same batch, z represents a mask matrix, and f(x) represents an image translation transformation, which aligns the center points of the segmented areas of the two images x1 and x2.

7. The weakly supervised image segmentation method based on deviation calibration and hybrid enhancement strategy according to claim 6 is characterized in that: The mask matrix is ​​calculated according to the following formula: Among them, z i represents the mask matrix of pixel i, and σ represents the mean of the predicted entropy of all pixels in the predicted entropy map.

8. The weakly supervised image segmentation method based on deviation calibration and hybrid enhancement strategy according to claim 1 is characterized in that: The step (4) specifically comprises: If the image data is a two-dimensional image, it is preprocessed to obtain a data-standardized image, and the data-standardized image is directly input into the image segmentation model to obtain the corresponding image segmentation result; If the image data is a three-dimensional image, the three-dimensional image needs to be divided into several two-dimensional slices, and then preprocessed to obtain a data-standardized image. The data-standardized image is input into the image segmentation model to obtain the corresponding image slice segmentation result, and then the segmentation results of several image slices are superimposed to restore the segmentation result of the three-dimensional image.

Citation Information

Patent Citations

  • Three-dimensional brain tumor nuclear magnetic resonance image segmentation method based on self-adjusting strategy

    CN114821052A

  • System and method of semi-supervised learning with few labeled images per class

    US20230053716A1