Semi-supervised prototype feature alignment method and system for multi-tissue component image segmentation

Through the method of semi-supervised prototype feature alignment, the problem of traditional supervised learning in the pathological images of pancreatic ductal adenocarcinoma is solved. Adaptive and abstract learning.

CN118071765BActive Publication Date: 2024-08-27SUZHOU UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410501868.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-25
Publication Date
2024-08-27
Estimated Expiration
2044-04-25

AI Technical Summary

Technical Problem

Traditional supervised learning is difficult to deal with the problems of large local differences and imbalanced distribution in pathological images of pancreatic ductal adenocarcinoma, resulting in the model being unable to adapt to unknown scenes during the training process, and making it difficult to abstract and summarize knowledge for continued learning.

Method used

A multi-tissue component image segmentation method using semi-supervised prototype feature alignment is used to construct a U-Net segmentation network by obtaining the original training set, extract the input image feature embedding, calculate the unlabeled feature embedding energy score, and use JS divergence to differentially update the class prototype , build an adaptive energy prototype global contrast alignment model, and use segmentation loss function, contrast loss function and energy loss function to jointly optimize the segmentation network.

Benefits of technology

It improves the feature learning ability and multi-class segmentation accuracy of the image segmentation network, solves the problem of poor label generation, improves segmentation performance, and achieves better results in multi-class segmentation tasks of pathological images in particular.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118071765B
    Figure CN118071765B
Patent Text Reader

Abstract

The present invention discloses a multi-tissue component image segmentation method and system for semi-supervised prototype-like feature alignment, which relates to the field of image processing technology, including obtaining an original training set and constructing a U-Net segmentation network, training the U-Net segmentation network to preliminarily predict and obtain a global prototype; using the U-Net segmentation network encoder to extract input image feature embedding, calculating the unlabeled feature embedding energy score to filter out pixels outside the distribution, using JS divergence differentiation to update the prototype, and constructing an adaptive energy prototype global contrast alignment model; using a segmentation loss function, a contrast loss function and an energy loss function to jointly optimize the segmentation network to obtain a trained U-Net segmentation network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a multi-tissue component image segmentation method and system for semi-supervised prototype feature alignment. Background Art

[0002] Pancreatic cancer is a highly malignant digestive tract tumor, the main type of which is ductal adenocarcinoma. This type of cancer has an insidious onset and the initial symptoms are not obvious, so diagnosis and treatment are very difficult. At present, full-field slice image technology has realized the digitization of pathological slice images, enabling pathologists to better analyze the patient's tissue lesions under high-resolution images, but this analysis process requires doctors to have extremely high professional qualities. The algorithm automatically segments the five tissue components of tumors, blood vessels, nerves, islets and ducts in pancreatic ductal adenocarcinoma pathological images, which can assist doctors in making more accurate diagnoses of patients' conditions, and has very important practical significance for improving the quality of medical treatment for patients in areas with backward medical levels.

[0003] In recent years, deep learning models based on U-shaped networks have been shown to achieve optimal performance in solving various medical image problems. However, the traditional supervised learning process is essentially a repeated memory of existing knowledge, limited to known data, unable to abstractly summarize knowledge and use this summary to feed back into the process of continued learning, and therefore unable to achieve better learning results. The pathological images of pancreatic ductal adenocarcinoma have the characteristics of large local differences and unbalanced distribution of tissue components, and it is particularly necessary to seek better methods to enable the model to adapt to unknown scenarios not covered during the training process. Summary of the invention

[0004] In view of the above-mentioned problems, the present invention is proposed.

[0005] Therefore, the technical problem solved by the present invention is: the existing traditional supervised learning is difficult to handle images with excessive local differences and images with unbalanced distribution, and how to get rid of the limitations of known content, summarize abstract content and continue learning.

[0006] To solve the above technical problems, the present invention provides the following technical solutions: a multi-tissue component image segmentation method with semi-supervised prototype feature alignment, comprising obtaining an original training set and constructing a U-Net segmentation network, training the U-Net segmentation network to preliminarily predict a global class prototype; using the U-Net segmentation network encoder to extract input image feature embedding, calculating the unlabeled feature embedding energy score to filter out pixels outside the distribution, using JS divergence differentiation to update the class prototype, and constructing an adaptive energy prototype global contrast alignment model; using a segmentation loss function, a contrast loss function and an energy loss function to jointly optimize the segmentation network to obtain a trained U-Net segmentation network.

[0007] As a preferred solution of the multi-tissue component image segmentation method with semi-supervised prototype feature alignment described in the present invention, wherein: the obtaining of the original training set and constructing the U-Net segmentation network includes obtaining the multi-tissue component image to construct the original training set, using the original training set to pre-train the U-Net segmentation network, and updating the parameters of the U-Net segmentation network.

[0008] As a preferred solution of the multi-tissue component image segmentation method for semi-supervised prototype feature alignment of the present invention, wherein: the use of the U-Net segmentation network encoder to extract the input image feature embedding includes using a pre-trained U-Net segmentation network to make an initial prediction on the input labeled image, and calculating the multi-class average Dice similarity coefficient, taking all the average Dice similarity coefficients greater than the threshold Dc t The image is used as the confidence image, and all confidence images are used to calculate the initial global class prototype, which is expressed as:

[0009] ;

[0010] in, represents the class feature prototype of the cth class, represents the total number of confident images, Represents the total number of pixels in a single image. represents the nth feature embedding in the deep features of the mth image, Indicates the category corresponding to the nth feature embedding of the mth image in the downsampled segmentation label, is the indicator function, when it satisfies It is 1 if it is of type c, otherwise it is 0.

[0011] As a preferred solution of the multi-tissue component image segmentation method of semi-supervised prototype feature alignment described in the present invention, wherein: the calculation of the unlabeled feature embedding energy score to screen out the pixels outside the distribution includes sending the unlabeled image and the labeled image into the U-Net segmentation network in pairs, and the input labeled image and the unlabeled image are both extracted through the encoder to extract the deep feature map , h is the number of channels of the deep feature map, are the height and width of the deep feature map, respectively. The deep feature map is rearranged to form a deep feature embedding matrix , with labeled feature embedding matrix and the unlabeled feature embedding matrix Compute matrix multiplication to obtain a semi-supervised similarity matrix , the labeled feature embedding matrix calculates the similarity with the class prototype to obtain a labeled class similarity matrix , is the number of categories. The U-Net segmentation network encoder is used to extract the input image feature embedding. The cosine similarity between each feature embedding of the labeled image and each class prototype is calculated. The maximum value of each row in the class similarity matrix is ​​taken to generate a global threshold vector , expressed as:

[0012] ;

[0013] in, represents the jth element in the i-th row of the label class similarity matrix, Represents the global threshold vector The i-th element of Represents matrix transpose; unlabeled feature embedding and class prototype calculate cosine similarity to obtain an unlabeled class similarity matrix Then take the index of the maximum value of each row in the class similarity matrix to generate a predicted class vector , expressed as:

[0014] ;

[0015] in, Indicates the index where the maximum value occurs. represents the kth element in the i-th row of the unlabeled class similarity matrix, Represents the predicted class vector The ith element of .

[0016] As a preferred solution of the multi-tissue component image segmentation method for semi-supervised class prototype feature alignment described in the present invention, wherein: the use of JS divergence differentiation to update the class prototype includes using the global threshold and the predicted class vector to divide the unlabeled feature embedding into positive samples and negative samples. If the unlabeled feature embedding has a similarity with the labeled feature embedding lower than the global threshold or the predicted class does not appear in the label, it is classified as a negative sample, otherwise it is a positive sample, expressed as:

[0017] ;

[0018] in, represents the unlabeled image feature embedding set of positive samples and negative samples in the i-th row of the semi-supervised matrix, Represents the semi-supervised similarity matrix The jth element of the ith row of L represents the set of categories contained in the segmentation label; after dividing the positive and negative samples, the contrastive learning loss function is used as the global contrastive alignment loss function , expressed as:

[0019] ;

[0020] in, is the nth deep feature embedding of the labeled input image, is the deep feature embedding of the bth positive sample in the set of unlabeled positive samples under the current labeled input, is the nth unlabeled deep feature embedding under the current labeled input, is the temperature coefficient, represents the total number of deep embeddings of the input labeled image, Represents the total number of deep embeddings for the input unlabeled image.

[0021] As a preferred solution of the multi-tissue component image segmentation method for semi-supervised prototype feature alignment of the present invention, wherein: the updating of the prototype using JS divergence differentiation includes using JS divergence to embed adaptively update the prototype using labeled features, expressed as:

[0022] ;

[0023] in, represents the class prototype of the c-th class in the t-th cycle, represents the class prototype of the cth class in the t-1th period, represents the prototype calculated by the cth category in the current input at the tth cycle, represents the Jensen–Shannon divergence, and is a hyperparameter; the energy loss function is used to assist in training the segmentation network, and the energy loss function is expressed as:

[0024] ;

[0025] in, Represents the total number of pixels in a single image. represents the qth pixel of the input image, is the energy boundary hyperparameter; calculate the unlabeled feature embedding energy score and set an energy threshold. If the energy score If the energy value is higher than the energy threshold, it is considered as an out-of-distribution sample and is screened out. It does not participate in the class prototype update. The remaining feature prototypes are adaptively updated using JS divergence using labeled feature embedding. The energy score is expressed as:

[0026] ;

[0027] in, is the temperature coefficient, The pixels in the predicted image prediction results.

[0028] As a preferred solution of the multi-tissue component image segmentation method of semi-supervised prototype feature alignment described in the present invention, wherein: the use of the segmentation loss function, the contrast loss function and the energy loss function to jointly optimize the segmentation network includes using the segmentation loss function, the contrast loss function and the energy loss function to jointly optimize the segmentation network, the total loss It is expressed as:

[0029] ;

[0030] in, represents the cross entropy loss, represents the Dice similarity loss, is the label value of the cth class of the qth pixel, is the predicted probability of the cth class for the qth pixel, is the protection factor, is a hyperparameter. The multi-tissue component images are processed by the trained U-Net segmentation network to obtain the segmented images.

[0031] Another object of the present invention is to provide a multi-tissue component image segmentation system with semi-supervised prototype feature alignment, which can pre-extract class prototypes for each target category and use class prototypes to achieve feature alignment, thereby improving the feature learning ability of the segmentation network and improving the multi-class segmentation accuracy, thereby solving the problem that the current semi-supervised segmentation task still relies too much on pseudo-labels when the label generation effect is not good, resulting in reverse optimization of the segmentation network.

[0032] As a preferred solution of the multi-tissue component image segmentation system with semi-supervised prototype-like feature alignment described in the present invention, it includes: an initial prediction module, an adaptive energy prototype global contrast alignment module, and a network segmentation module; the initial prediction module is used to obtain the original training set and construct a U-Net segmentation network, and train the U-Net segmentation network to preliminarily predict and obtain a global class prototype; the adaptive energy prototype global contrast alignment module is used to use the U-Net segmentation network encoder to extract input image feature embedding, calculate the unlabeled feature embedding energy score to filter out pixels outside the distribution, use JS divergence differentiation to update the class prototype, and construct an adaptive energy prototype global contrast alignment model; the network segmentation module is used to use the segmentation loss function, the contrast loss function and the energy loss function to jointly optimize the segmentation network to obtain the trained U-Net segmentation network.

[0033] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of a multi-tissue component image segmentation method with semi-supervised prototype feature alignment.

[0034] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a multi-tissue component image segmentation method with semi-supervised prototype feature alignment.

[0035] Beneficial effects of the present invention: The multi-tissue component image segmentation method of semi-supervised class prototype feature alignment provided by the present invention proposes a semi-supervised adaptive energy prototype global comparison alignment method and designs a corresponding loss function. By using class prototypes to guide the alignment of similar features, the feature resolution ability of the network is made stronger. Combined with the JS divergence adaptive prototype update and the energy function unlabeled distribution external screening method, the class prototype update is further optimized, so that the class prototype contains more reliable and comprehensive information, which can better guide feature alignment, thereby improving segmentation accuracy. Compared with the original U-shaped network method, the semi-supervised method can further improve the segmentation performance and is suitable for the segmentation of multi-tissue component images. The present invention achieves better results in the multi-class segmentation task of pathological images. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0037] Figure 1 An overall flow chart of a multi-tissue component image segmentation method with semi-supervised prototype feature alignment provided for the first embodiment of the present invention.

[0038] Figure 2 A schematic diagram of an adaptive energy prototype global comparison alignment method for a multi-tissue component image segmentation method with semi-supervised prototype feature alignment provided in the first embodiment of the present invention.

[0039] Figure 3 A segmentation comparison diagram of different methods of a multi-tissue component image segmentation method with semi-supervised prototype feature alignment provided in the second embodiment of the present invention.

[0040] Figure 4 An overall flow chart of a multi-tissue component image segmentation system with semi-supervised prototype feature alignment provided for the third embodiment of the present invention. DETAILED DESCRIPTION

[0041] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.

[0042] Example 1

[0043] Reference Figure 1-Figure 2 , as an embodiment of the present invention, provides a multi-tissue component image segmentation method with semi-supervised prototype feature alignment, comprising:

[0044] S1: Get the original training set and build a U-Net segmentation network. Train the U-Net segmentation network to make preliminary predictions to obtain the global class prototype.

[0045] Furthermore, obtaining the original training set and constructing the U-Net segmentation network includes obtaining multi-tissue component images to construct the original training set, using the original training set to pre-train the U-Net segmentation network, and updating the parameters of the U-Net segmentation network.

[0046] It should be noted that the U-Net segmentation network includes an encoder and a decoder, including four series-connected convolution modules. Each convolution module contains two 3×3 convolutions, batch normalization and Relu activation functions. Maximum pooling is used for downsampling after each convolution block. The output channel of the last convolution module is the number of categories of the target to be segmented, followed by a 1×1 convolution and a softmax function along the channel direction to obtain a predicted probability map. The model is pre-trained on the training set using traditional supervised learning methods to obtain the pre-trained model parameters.

[0047] S2: Use U-Net segmentation network encoder to extract input image feature embedding, calculate unlabeled feature embedding energy score to filter out pixels outside the distribution, use JS divergence differentiation to update class prototypes, and build an adaptive energy prototype global comparison alignment model.

[0048] Furthermore, using the U-Net segmentation network encoder to extract input image feature embedding includes using the pre-trained U-Net segmentation network to make initial predictions on the input labeled image and calculating the multi-class average Dice similarity coefficient, taking all the average Dice similarity coefficients greater than the threshold Dc t The image is used as the confidence image, and all confidence images are used to calculate the initial global class prototype, which is expressed as:

[0049] ;

[0050] in, represents the class feature prototype of the cth class, represents the total number of confident images, Represents the total number of pixels in a single image. represents the nth feature embedding in the deep features of the mth image, Indicates the category corresponding to the nth feature embedding of the mth image in the downsampled segmentation label, is the indicator function, when it satisfies It is 1 if it is of type c, otherwise it is 0.

[0051] It should be noted that the calculation of the unlabeled feature embedding energy score to exclude pixels outside the distribution includes sending the unlabeled image and the labeled image into the U-Net segmentation network in pairs, and the input labeled image and the unlabeled image are both passed through the encoder to extract the deep feature map , h is the number of channels of the deep feature map, are the height and width of the deep feature map, respectively. The deep feature map is rearranged to form a deep feature embedding matrix , with labeled feature embedding matrix and the unlabeled feature embedding matrix Compute matrix multiplication to obtain a semi-supervised similarity matrix , the labeled feature embedding matrix calculates the similarity with the class prototype to obtain a labeled class similarity matrix , is the number of categories. The U-Net segmentation network encoder is used to extract the input image feature embedding. The cosine similarity between each feature embedding of the labeled image and each class prototype is calculated. The maximum value of each row in the class similarity matrix is ​​taken to generate a global threshold vector , expressed as:

[0052] ;

[0053] in, represents the jth element in the i-th row of the label class similarity matrix, Represents the global threshold vector The i-th element of Represents matrix transpose.

[0054] Unlabeled feature embedding and class prototype calculation cosine similarity to obtain an unlabeled class similarity matrix Then take the index of the maximum value of each row in the class similarity matrix to generate a predicted class vector , expressed as:

[0055] ;

[0056] in, Indicates the index where the maximum value occurs. represents the kth element in the i-th row of the unlabeled class similarity matrix, Represents the predicted class vector The ith element of .

[0057] It should also be noted that the use of JS divergence to differentiate the updating class prototype includes using the global threshold and the predicted class vector to divide the unlabeled feature embedding into positive samples and negative samples. If the similarity between the unlabeled feature embedding and the labeled feature embedding is lower than the global threshold or the predicted class does not appear in the label, it is classified as a negative sample, otherwise it is a positive sample, expressed as:

[0058] ;

[0059] in, represents the unlabeled image feature embedding set of positive samples and negative samples in the i-th row of the semi-supervised matrix, Represents the semi-supervised similarity matrix The jth element in the ith row of L represents the set of categories contained in the segmentation label.

[0060] After dividing the positive and negative samples, use the contrastive learning loss function as the global contrastive alignment loss function , expressed as:

[0061] ;

[0062] in, is the nth deep feature embedding of the labeled input image, is the deep feature embedding of the bth positive sample in the set of unlabeled positive samples under the current labeled input, is the nth unlabeled deep feature embedding under the current labeled input, is the temperature coefficient, represents the total number of deep embeddings of the input labeled image, Represents the total number of deep embeddings for the input unlabeled image.

[0063] Furthermore, using JS divergence to differentially update the class prototype includes using JS divergence to embed the adaptive update class prototype using labeled features, which is expressed as:

[0064] ;

[0065] in, represents the class prototype of the c-th class in the t-th cycle, represents the class prototype of the cth class in the t-1th period, represents the prototype calculated by the cth category in the current input at the tth cycle, represents the Jensen–Shannon divergence, and is a hyperparameter.

[0066] The energy loss function is used to assist in training the segmentation network. The energy loss function is expressed as:

[0067] ;

[0068] in, Represents the total number of pixels in a single image. represents the qth pixel of the input image, is the energy boundary hyperparameter.

[0069] Calculate the unlabeled feature embedding energy score and set an energy threshold. If the energy score If the energy value is higher than the energy threshold, it is considered as an out-of-distribution sample and is screened out. It does not participate in the class prototype update. The remaining feature prototypes are adaptively updated using JS divergence using labeled feature embedding. The energy score is expressed as:

[0070] ;

[0071] in, is the temperature coefficient, The pixels in the predicted image prediction results.

[0072] S3: Use the segmentation loss function, contrast loss function and energy loss function to jointly optimize the segmentation network to obtain a further improvement in the trained U-Net segmentation network.

[0073] Furthermore, using the segmentation loss function to compare the loss function and the energy loss function to jointly optimize the segmentation network includes using the segmentation loss function to compare the loss function and the energy loss function to jointly optimize the segmentation network, the total loss It is expressed as:

[0074] ;

[0075] in, represents the cross entropy loss, represents the Dice similarity loss, is the label value of the cth class of the qth pixel, is the predicted probability of the cth class for the qth pixel, is the protection factor, is a hyperparameter. The multi-tissue component images are processed by the trained U-Net segmentation network to obtain the segmented images.

[0076] Example 2

[0077] Reference Figure 3 , which is an embodiment of the present invention, provides a multi-tissue component image segmentation method with semi-supervised prototype feature alignment. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through economic benefit calculation and simulation experiments.

[0078] First, the data used in the present invention were collected from patients with pancreatic ductal adenocarcinoma. A total of 88 whole-slice pathology staining images from different patients were included, and all images were stained with HE. 72 of these whole-slice pathology images were annotated by an experienced pathology expert, including all areas of five types of tissue components in the image, including tumors, nerves, blood vessels, pancreatic islets and ducts. The remaining 16 images were used as unlabeled images. The whole-slice pathology images were processed using the following steps: 1. After downsampling the whole-slice pathology image by 16 times, a scaled image with an average size of approximately 12000×9400 was obtained; 2. Using a 512×512 sliding window, the downsampled whole-slice pathology image was cropped into non-overlapping local slice images; 3. In the cropped image, a total of 3378 local slice images containing the segmentation target were used as the total data set used in this chapter.

[0079] The present invention uses the pytorch deep learning framework, torch version 1.13.0. All training and verification processes are completed on an NVIDIA GeForce RTX 3090 graphics card equipped with 24G video memory. During the training process, the neural network uses a small batch method to read data, and the batch size is set to 2. The optimizer uses the stochastic gradient descent (SGD) method, the initial learning rate is set to 0.01, the optimizer momentum is set to 0.9, and the optimizer regularization coefficient is set to 0.0001. The learning rate adjustment strategy uses the Poly method.

[0080] The experimental results of the present invention are as follows:

[0081] In order to quantitatively evaluate the performance of the method proposed in the present invention, two different evaluation indicators are selected to evaluate the performance of the neural network in the segmentation task of multiple tissue components of pancreatic ductal adenocarcinoma: Dice similarity coefficient (DSC) and Intersection over Union (IoU). The DSC calculation formula is:

[0082] ;

[0083] in, is the number of true positive segmented pixels, is the number of false positive segmented pixels, is the number of false negative segmented pixels. The calculation formula of the intersection-over-union ratio is:

[0084] ;

[0085] The present invention compares the segmentation results with the existing semi-supervised methods, as shown in Table 1. Table 1 compares the segmentation results of the present invention with the methods of others.

[0086] like Figure 3 As shown, the segmentation result diagrams of different methods are shown, where the first row is the original pathological slice image. The second row is the corresponding gold standard. The following are the segmentation result diagrams of Unimatch, MCF, URPC, SSNET, CLCC, CPS, ICT, and HCE. The last column is the segmentation result diagram of the method of the present invention.

[0087] Table 1 Experimental data comparison table

[0088]

[0089] Referring to Table 1, we can see that compared with other existing semi-supervised methods, our proposed method is superior to other existing methods in terms of the average segmentation accuracy of the five categories, both in terms of the Dice similarity coefficient and the intersection-over-union ratio. Compared with the best HCE method among other methods, the average segmentation Dice similarity coefficient of the five categories proposed by our method is increased by 1.36%, and the average intersection-over-union ratio is increased by 1.31%. Figure 3 It can be seen that other semi-supervised methods still have many mis-segmentation situations, for example, the long duct tissue in the lower right corner of the first column is mistakenly segmented as tumor tissue by other semi-supervised methods. At the same time, other semi-supervised algorithms also have many under-segmentation situations for vascular tissue and tumor tissue, such as the vascular tissue in the upper right corner of the third column image, the vascular tissue on the left side of the fourth column image, and the tumor tissue in the lower left corner of the fifth column image.

[0090] Example 3

[0091] Reference Figure 4 As an embodiment of the present invention, a multi-tissue component image segmentation system with semi-supervised prototype feature alignment is provided, including an initial prediction module, an adaptive energy prototype global contrast alignment module, and a network segmentation module.

[0092] Among them, the initial prediction module is used to obtain the original training set and build a U-Net segmentation network, and the U-Net segmentation network is trained to make a preliminary prediction to obtain the global class prototype; the adaptive energy prototype global contrast alignment module is used to use the U-Net segmentation network encoder to extract the input image feature embedding, calculate the unlabeled feature embedding energy score to screen out pixels outside the distribution, and use the JS divergence difference to update the class prototype, and build an adaptive energy prototype global contrast alignment model; the network segmentation module is used to use the segmentation loss function, contrast loss function and energy loss function to jointly optimize the segmentation network to obtain the trained U-Net segmentation network.

[0093] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), disk or optical disk, etc. Various media that can store program codes.

[0094] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0095] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk case (magnetic devices), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0096] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logical function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc. It should be noted that the above embodiments are only used to illustrate the technical solution of the present invention and are not limited. Although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention, which should be included in the scope of the claims of the present invention.

[0097] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A multi-tissue component image segmentation method based on semi-supervised prototype feature alignment, characterized in that: include: Obtain the original training set and build a U-Net segmentation network, train the U-Net segmentation network to make a preliminary prediction to obtain the global class prototype; Use U-Net segmentation network encoder to extract input image feature embedding, calculate unlabeled feature embedding energy score to filter out pixels outside the distribution, use JS divergence differentiation to update class prototypes, and build an adaptive energy prototype global comparison alignment model; Use the segmentation loss function, contrast loss function and energy loss function to jointly optimize the segmentation network to obtain the trained U-Net segmentation network; The method of using JS divergence to differentiate and update the class prototype includes using JS divergence to embed the adaptively updated class prototype using labeled features, which is expressed as: in, represents the class prototype of the c-th class in the t-th cycle, represents the class prototype of the cth class in the t-1th period, e ct represents the prototype calculated in the tth cycle for the cth class in the current input, JSD represents the Jensen–Shannon divergence, and α and β are hyperparameters; The energy loss function is used to assist in training the segmentation network. The energy loss function is expressed as: Among them, M total Represents the total number of pixels in a single image, x q represents the qth pixel of the input image, k in is the energy boundary hyperparameter; Calculate the unlabeled feature embedding energy score and set an energy threshold. If the energy score Ex is higher than the energy threshold, it will be considered as an out-of-distribution sample and screened out. It will not participate in the class prototype update. The remaining feature prototypes are adaptively updated using JS divergence using labeled feature embedding. The energy score is expressed as: Where Temp is the temperature coefficient, f c (x) is the prediction result of pixel x in the prediction image.

2. The multi-tissue component image segmentation method of semi-supervised prototype feature alignment as claimed in claim 1, characterized in that: The method of obtaining the original training set and constructing the U-Net segmentation network includes obtaining multi-tissue component images to construct the original training set, using the original training set to pre-train the U-Net segmentation network, and updating the parameters of the U-Net segmentation network.

3. The multi-tissue component image segmentation method of semi-supervised prototype feature alignment as claimed in claim 2, characterized in that: The method of extracting input image feature embedding using a U-Net segmentation network encoder includes using a pre-trained U-Net segmentation network to make an initial prediction on the input labeled image, and calculating the multi-class average Dice similarity coefficient, taking all the average Dice similarity coefficients greater than a threshold Dc t The image is used as the confidence image, and all confidence images are used to calculate the initial global class prototype, which is expressed as: Among them, p c represents the class feature prototype of the cth class, M represents the total number of confidence images, N represents the total number of pixels in a single image, and e mn represents the nth feature embedding in the deep feature of the mth image, y mn Indicates the category corresponding to the nth feature embedding of the mth image in the downsampled segmentation label, 1 is the indicator function, when y is satisfied mn It is 1 if it is of type c, otherwise it is 0.

4. The multi-tissue component image segmentation method of semi-supervised prototype feature alignment as claimed in claim 3, characterized in that: The calculation of the unlabeled feature embedding energy score to filter out the pixels outside the distribution includes sending the unlabeled image and the labeled image into the U-Net segmentation network in pairs, and the input labeled image and the unlabeled image are both passed through the encoder to extract the deep feature map f, ch is the number of channels of the deep feature map, h and w are the height and width of the deep feature map respectively, and the deep feature map is rearranged to form a deep feature embedding matrix E. Labeled feature embedding matrix E l and the unlabeled feature embedding matrix E u Calculate matrix multiplication to obtain a semi-supervised similarity matrix M semi , The labeled feature embedding matrix and the class prototype calculate the similarity to obtain a labeled class similarity matrix M sim_cl , C is the number of categories. The U-Net segmentation network encoder is used to extract the input image feature embedding. The cosine similarity between each feature embedding of the labeled image and each class prototype is calculated. The maximum value of each row in the class similarity matrix is ​​taken to generate a global threshold vector V. t , It is expressed as: V t =[v t1 ,v t2 ,…,v ti ] T Among them, M sim_cl (i,j) represents the jth element in the i-th row of the label class similarity matrix, v ti Represents the global threshold vector V t The i-th element of , T represents the matrix transpose; Unlabeled feature embedding and class prototype calculation cosine similarity to obtain an unlabeled class similarity matrix M sim_cu , Then take the index of the maximum value of each row in the class similarity matrix to generate a predicted class vector V c , It is expressed as: V c =[v c1 ,v c2 ,…,v ci ] T Among them, argmax represents the index when the maximum value occurs, M sim_cu (i,k) represents the kth element of the i-th row in the unlabeled class similarity matrix, v ci Represents the predicted class vector V c The ith element of .

5. The multi-tissue component image segmentation method of semi-supervised prototype feature alignment as claimed in claim 4, characterized in that: The method of updating the class prototype by using JS divergence differentiation includes using the global threshold and the predicted class vector to divide the unlabeled feature embedding into positive samples and negative samples. If the similarity between the unlabeled feature embedding and the labeled feature embedding is lower than the global threshold or the predicted class does not appear in the label, it is classified as a negative sample, otherwise it is a positive sample, which is expressed as: in, represents the unlabeled image feature embedding positive sample set and negative sample set in the i-th row of the semi-supervised matrix, M semi (i,j) represents the semi-supervised similarity matrix M semi The jth element of the ith row of L represents the set of categories contained in the segmentation label; After dividing the positive and negative samples, the contrastive learning loss function is used as the global contrastive alignment loss function L con , expressed as: Among them, e l,n is the nth deep feature embedding of the labeled input image, is the deep feature embedding of the bth positive sample in the set of unlabeled positive samples under the current labeled input, e u,n is the nth unlabeled deep feature embedding under the current labeled input, τ is the temperature coefficient, N l represents the total number of deep embeddings of the input labeled image, B u Represents the total number of deep embeddings for the input unlabeled image.

6. The multi-tissue component image segmentation method of semi-supervised prototype feature alignment as claimed in claim 5, characterized in that: The method of using the segmentation loss function to compare the loss function and the energy loss function to jointly optimize the segmentation network includes using the segmentation loss function to compare the loss function and the energy loss function to jointly optimize the segmentation network, and the total loss L semi_total It is expressed as: THE semi_total =L CE +L Dice +λL semi L semi =L semi_con +L energy Among them, L CE represents the cross entropy loss, L Dice represents the Dice similarity loss, y qc is the label value of the cth class of the qth pixel, p qc is the predicted probability of the cth class of the qth pixel, ε is the protection coefficient, λ is the hyperparameter, and the multi-tissue component image is processed by the trained U-Net segmentation network to obtain the segmented image.

7. A system using the multi-tissue component image segmentation method of semi-supervised prototype feature alignment as claimed in any one of claims 1 to 6, characterized in that: It includes initial prediction module, adaptive energy prototype global comparison and alignment module, and network segmentation module; The initial prediction module is used to obtain the original training set and build a U-Net segmentation network, and train the U-Net segmentation network to make a preliminary prediction to obtain a global class prototype; The adaptive energy prototype global comparison alignment module is used to extract input image feature embedding using the U-Net segmentation network encoder, calculate the unlabeled feature embedding energy score to filter out pixels outside the distribution, use JS divergence differentiation to update the class prototype, and construct an adaptive energy prototype global comparison alignment model; The network segmentation module is used to jointly optimize the segmentation network using a segmentation loss function, a contrast loss function, and an energy loss function to obtain a trained U-Net segmentation network.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the multi-tissue component image segmentation method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the multi-tissue component image segmentation method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Segmentation network semi-supervised training method and system, equipment and storage medium

    CN114004817A

  • Multi-organization component image segmentation method and system based on improved U-shaped network

    CN116778158A

  • Mutual learning-based semi-supervised medical image segmentation method and system

    WO2023116635A1