Retina cross-modal segmentation method and device based on domain invariant contrast learning
Through a retinal cross-modal segmentation method based on domain-invariant contrast learning and uncertainty-aware self-integrated uniformity framework, the problem of strong dependence on annotation data in cross-modal medical image segmentation is solved, and the problem of strong dependence on annotation data is achieved under limited annotation. High-performance OCT image segmentation significantly improves the accuracy and efficiency of medical image segmentation.
Patent Information
- Application Number
- CN202410731301.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-06
AI Technical Summary
Existing deep learning methods have limited effects in cross-modal learning, especially when converting from color fundus photography to optical coherence tomography images, and are highly dependent on annotated data, making it difficult to effectively adapt to new modalities and achieve accurate medical diagnosis. Image segmentation.
A retinal cross-modal segmentation method based on domain-invariant contrast learning is adopted, combined with the U-net model and the uncertainty-aware self-integrated uniformity framework, to reduce dependence on annotated data through domain-invariant contrast learning and uncertainty perception mechanisms. , improve the model’s generalization ability and cross-modal segmentation performance.
Significantly improves the accuracy and efficiency of OCT image segmentation, reduces the need for a large amount of annotated data, improves the generalization ability of the model, achieves high-performance segmentation under limited annotated data, and exhibits a higher Dice coefficient and better Low average symmetry surface distance.
Smart Images

Figure CN118710893A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medical image segmentation technology, and in particular to a retinal cross-modal segmentation method and device based on domain-invariant contrast learning. Background Art
[0002] Deep learning techniques have made significant progress in the field of medical image segmentation. Nevertheless, there are still a number of challenges when applying these techniques to process optical coherence tomography (OCT) images. In particular, in the context of cross-modal learning, that is, applying knowledge learned from one modality (such as color fundus photography, CFP) to another modality (such as OCT), the performance of existing deep learning methods in adapting to new modalities still needs to be improved.
[0003] Existing methods, such as the Domain Adversarial Network (DANN) proposed by Tzeng et al., and the adversarial example generation technology further developed by Ganin et al., have solved the problem of domain adaptation to a certain extent, but their effects are still limited in dealing with the specific challenges of medical images, especially OCT images. These methods mainly focus on adaptation at the feature level, without making full use of the spatial and contextual information of the medical image itself.
[0004] In addition, existing technologies often require a large amount of labeled data when processing cross-modal data, which is a significant limitation in practical applications because obtaining a large number of high-quality medical image annotations is time-consuming and expensive. For example, the semi-supervised learning method proposed by Zhang et al. attempts to reduce the reliance on labeled data, but its application effect is still limited in the cross-modal learning scenario, especially in OCT image segmentation. Summary of the invention
[0005] The present invention provides a retinal cross-modal segmentation method and device based on domain-invariant contrast learning, which can effectively adapt to new modalities and achieve accurate image segmentation under limited annotated data.
[0006] To achieve the above object, the present invention provides the following technical solutions:
[0007] In a first aspect, the present invention provides a retinal cross-modal segmentation method, characterized in that it comprises the following steps:
[0008] Acquire retinal images;
[0009] A retinal cross-modal segmentation model is established, and the retinal image is input into the retinal cross-modal segmentation model to obtain a segmentation result of the retinal image, wherein the retinal cross-modal segmentation model is based on the U-net model as the basic framework, using image data of different modalities, and is trained through domain-invariant contrast learning and uncertainty-aware self-integrated teacher framework.
[0010] In a second aspect, the present invention further provides an electronic device, including a processor and a memory;
[0011] The memory is used to store programs;
[0012] The processor executes the program to implement the method described above.
[0013] In a third aspect, the present invention further provides a computer-readable storage medium, wherein the storage medium stores a program, and the program is executed by a processor to implement the method described above.
[0014] In a fourth aspect, the present invention further provides a computer program product or a computer program, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device can read the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above method.
[0015] Compared with the prior art, the present invention has the following beneficial effects:
[0016] The present invention solves the key challenge of cross-modal data segmentation in the field of medical image segmentation through domain-invariant contrastive learning (CSA-DoCL), and especially shows significant advantages in the accurate hierarchical segmentation of OCT images.
[0017] It also has the following advantages:
[0018] Significantly reduce the reliance on large amounts of annotated data: By combining labeled CFP images with a small amount of annotated OCT images for learning, the present invention significantly reduces the need for large amounts of annotated data. This advantage directly addresses the problem of high cost and time consumption in obtaining large amounts of high-quality annotated data in medical image segmentation tasks.
[0019] Effectively improve cross-modal segmentation performance: The domain-invariant contrastive learning (DoCL) strategy enables the model to learn feature representations that are effective in both the source domain and the target domain, thereby effectively improving the accuracy of cross-modal segmentation. This effect has been verified through extensive experiments on different data sets, where the model using the method of the present invention exhibits a higher Dice coefficient and lower average symmetric surface distance (ASSD) in the OCT image segmentation task compared to the prior art.
[0020] Enhance the generalization ability of the model: This paper further improves the generalization ability of the model on unseen data through the uncertainty-aware self-aggregated average teacher framework (UA-MT). This mechanism ensures stability and accuracy during fine-tuning on the target domain by automatically identifying and reducing the uncertainty of pseudo-labels, so that the model can maintain good segmentation performance on new, unlabeled OCT images.
[0021] Through the comprehensive application of these technical features, the present invention not only theoretically proposes a new cross-modal medical image segmentation method, but also proves its effectiveness and superiority through experimental data. Especially in OCT image segmentation, the present invention has higher accuracy and better generalization ability than the existing technology, significantly improves the efficiency and accuracy of medical image segmentation, and is of great significance to the development and application of medical image analysis technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0023] Figure 1 is a flow chart of a retinal cross-modal segmentation method in one embodiment of the present invention;
[0024] Figure 2 is a flow chart of a retinal cross-modal segmentation method in yet another embodiment of the present invention;
[0025] Figure 3 is a flow chart of domain-invariant contrast learning in an embodiment of the present invention;
[0026] Figure 4 This is a flowchart of the uncertainty-aware self-integrated teacher framework in an embodiment of the present invention; DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0028] Example:
[0029] It should be noted that the terms "including" and "having" and any variations of the embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] See also Figures 1 to 4 This embodiment provides a retinal cross-modal segmentation method, which specifically includes the following process:
[0031] Step 100: Acquire a retinal image and preprocess the retinal image.
[0032] In this step: a retinal image to be cross-modal segmented, such as an optical coherence tomography (OCT) image, is acquired, and the image is segmented using the retinal cross-modal segmentation model provided in this embodiment.
[0033] Step 200: Establish a retinal cross-modal segmentation model, and input the preprocessed retinal image into the retinal cross-modal segmentation model to obtain a segmentation result of the retinal image, wherein the retinal cross-modal segmentation model is based on the U-net model as the basic framework, using image data of different modalities, and is trained through domain-invariant contrast learning and uncertainty-aware self-integrated teacher framework.
[0034] In this step: image data of different modalities, including source domain data and target domain data, specifically, source domain data (REFUGE2 dataset): this dataset contains color fundus photography (CFP) images, which are used to simulate the features of OCT images. In order to make the CFP images closer to the OCT images in terms of features, these images are processed by linear polar coordinate transformation and grayscale conversion to obtain a retinal hierarchical structure similar to the OCT image structure. Target domain data (GOALS, Duke DME, and MS datasets): these datasets provide actual OCT images and their corresponding hierarchical annotations, which are used to train the model to identify and segment the retinal layers. This embodiment comprehensively utilizes cross-modal learning between color fundus photography (CFP) images and optical coherence tomography (OCT) images to achieve efficient and accurate hierarchical segmentation of OCT images.
[0035] After domain-invariant contrastive learning and uncertainty-aware self-ensembled average teacher framework training, including the first and second stages, specifically, the first stage: pre-train the model on CFP images, and learn the source domain features in a supervised manner. The second stage: adopt the CSA-DoCL strategy, combined with the UA-MT mechanism, use a small number of labeled OCT images and unlabeled OCT images for cross-modal learning to reduce the model's dependence on a large amount of labeled data. Then. Fine-tune the pre-trained model on the target domain (OCT images), and use CSA-DoCL for detailed adjustments to adapt to the characteristics of the target domain data. The UA-MT mechanism is used to finally optimize the model to improve the generalization ability of the model to unseen data. Then, by setting the loss function, the model achieves the expected training goal. Finally, performance evaluation is performed: an independent test dataset (OCT images) is used to evaluate the segmentation performance of the model, including indicators such as the Dice coefficient and the average symmetric surface distance (ASSD). Specifically, experimental settings: experiments are conducted on GOALS, DukeDME, and MS datasets, which cover different retinal diseases and conditions and are highly representative and challenging. Evaluation indicators: By comparing with existing semi-supervised learning methods and supervised learning methods, standard indicators such as DICE coefficient and mean Euclidean distance (MED) are used to evaluate the model performance. Experimental results: CSA-DoCL has achieved significant performance improvements on various datasets, proving the effectiveness of the scheme in the task of hierarchical segmentation of retinal OCT images using limited annotated data.
[0036] Optionally, training is performed through domain-invariant contrastive learning, and the specific steps include: obtaining a labeled data set as a source domain and a labeled data set as a target domain; according to the labeled data set of the source domain and the labeled data set of the target domain, using a small batch mean variance method to obtain a batch normalization layer of the source domain style and a batch normalization layer of the target domain style; according to the labeled data set of the source domain and the batch normalization layer of the source domain style, obtaining source domain style features through linear layer mapping, and according to the labeled data set of the target domain and the batch normalization layer of the target domain style, obtaining target domain style features through linear layer mapping; according to the source domain style features and the target domain style features, obtaining cross-domain consistent features through domain-invariant contrastive learning.
[0037] In the above embodiment, the loss function of domain-invariant contrastive learning includes: the loss from the source domain to the target domain and the loss from the target domain to the source domain:
[0038] The loss from the source domain to the target domain is composed of two negative pair losses and one positive pair loss:
[0039]
[0040] Loss from target domain to source domain:
[0041]
[0042] The loss function of domain-invariant contrastive learning is composed of the above two losses:
[0043]
[0044] in Represents the normalized feature representation generated by source domain specific BN; Represents the normalized feature representation generated by the target domain specific BN; Represents the normalized feature representation of the target domain image generated by source domain specific BN; Represents the normalized feature representation of the target domain image generated by the target domain specific BN.
[0045] Optionally, the uncertainty-aware self-integrated teacher framework is used for training, and the specific steps include: feeding the labeled dataset of the source domain and the labeled dataset of the target domain into the student model, and preventing overfitting of unlabeled data through supervised learning loss.
[0046] In the above embodiment, the loss function can improve the model's ability to extract features and prevent the model from overfitting on unlabeled data when the unlabeled data is much larger than the labeled data. The loss function of supervised learning loss includes: the DF loss of the predicted label of the source domain data and the true label is replaced by the DF loss of the predicted label of the labeled data in the target domain and the true label:
[0047]
[0048] DF loss represents the combination of Dice loss and Focal loss:
[0049] L DF =L Dice +L Focal ;
[0050] in Represents the network's predicted output for the CFP image in the source domain; Represents the network's predicted output for OCT images in the target domain; They represent their corresponding labels respectively; w1 and w2 represent two parameters for adjusting category imbalance.
[0051] Optionally, training is performed using an uncertainty-aware self-integrated average teacher framework, and the specific steps include: obtaining an unlabeled dataset as a target domain; sending the unlabeled dataset of the target domain to a student model and a teacher model respectively through different enhancements; using the pseudo-labels output by the teacher model and passing through an unsupervised consistency loss, so that the teacher model supervises the student model at the pixel level; and updating the weight of the teacher model through a mean exponential shift mechanism.
[0052] In the above embodiment, in order to enhance the generalization ability of the model and make full use of the unlabeled data in the target domain, the embodiment uses unsupervised consistency loss to achieve this goal. Specifically, the embodiment uses unlabeled data for different enhancements, and sends them to the teacher model and the student model respectively. The output of the teacher model is used to supervise the output of the student model. Here, pixel-level consistency loss is used to enable the model to capture pixel-level features. The loss function of unsupervised consistency loss includes:
[0053]
[0054] Where I(.) represents the indicator function; represents the prediction of the teacher network at the jth pixel; represents the prediction of the student network at the jth pixel; u j represents the estimated uncertainty of the jth pixel; H represents the threshold used to select the most certain target.
[0055] In the above embodiment, updating the weight of the teacher model by the average exponential moving mechanism includes:
[0056]
[0057] Where α represents the exponential moving average (EMA) decay rate; represents the teacher model parameters in the e-1th training step; represents the teacher model parameters in the e-th training step; represents the student model parameters at the e-th training step.
[0058] It can be seen that the innovation of this embodiment lies in the combination of cross-modal learning, domain-invariant contrastive learning and uncertainty perception mechanism, which effectively solves the key challenges in cross-modal medical image segmentation and achieves high-performance segmentation under limited annotation resources. In addition, this embodiment reduces the technical threshold by optimizing the model training and tuning process, making it easy for non-expert users to apply, and provides an efficient and accurate solution for medical image analysis.
[0059] Example 2
[0060] Based on the same inventive concept, an embodiment of the present invention also provides an electronic device, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the retinal cross-modal segmentation method as described above.
[0061] It is understood that the memory may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory includes a non-transitory computer-readable storage medium. The memory may be used to store instructions, programs, codes, code sets, or instruction sets. The memory may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function, instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data created according to the use of the server, etc.
[0062] The processor may include one or more processing cores. The processor uses various interfaces and lines to connect the various parts of the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory, and calling data stored in the memory. Optionally, the processor can be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor can integrate one or a combination of a central processing unit (CPU) and a modem. Among them, the CPU mainly processes the operating system and application programs; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor, but implemented separately through a chip.
[0063] Since the electronic device is the electronic device corresponding to the retinal cross-modal segmentation method of the embodiment of the present invention, and the principle of solving the problem by the electronic device is similar to that of the method, the implementation of the electronic device can refer to the implementation process of the above-mentioned method embodiment, and the repeated parts will not be repeated.
[0064] Example 3
[0065] Based on the same inventive concept, an embodiment of the present invention also provides a computer-readable storage medium, in which at least one instruction, at least one program, a code set or an instruction set is stored. The at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the retinal cross-modal segmentation method as described above.
[0066] A person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable programmable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0067] Since the storage medium is the storage medium corresponding to the retinal cross-modal segmentation method of the embodiment of the present invention, and the principle of solving the problem by the storage medium is similar to that of the method, the implementation of the storage medium can refer to the implementation process of the above-mentioned method embodiment, and the repeated parts will not be repeated.
[0068] Example 4
[0069] In some possible implementations, various aspects of the method of the embodiments of the present invention may also be implemented in the form of a program product, which includes a program code. When the program product is run on a computer device, the program code is used to enable the computer device to execute the steps of the retinal cross-modal segmentation method according to various exemplary embodiments of the present application described above in this specification. Among them, the executable computer program code or "code" for executing various embodiments may be written in a high-level programming language such as C, C++, C#, Smalltalk, Java, JavaScript, Visual Basic, structured query language (e.g., Transact-SQL), Perl, or in various other programming languages.
[0070] 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, a plurality of 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 logic 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.
[0071] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0072] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable ordinary technicians in the field to understand the content of the present invention and implement it accordingly, and they cannot be used to limit the protection scope of the present invention. Any equivalent changes or modifications made based on the essence of the content of the present invention should be included in the protection scope of the present invention.
Claims
1. A retinal cross-modal segmentation method, characterized in that: The following steps are involved: Acquire retinal images; A retinal cross-modal segmentation model is established, and the retinal image is input into the retinal cross-modal segmentation model to obtain a segmentation result of the retinal image, wherein the retinal cross-modal segmentation model is based on the U-net model as the basic framework, using image data of different modalities, and is trained through domain-invariant contrast learning and uncertainty-aware self-integrated teacher framework.
2. The retinal cross-modal segmentation method according to claim 1, characterized in that: The training is performed through domain-invariant contrastive learning. The specific steps include: Obtain a labeled dataset as a source domain and a labeled dataset as a target domain; According to the labeled data set of the source domain and the labeled data set of the target domain, a batch normalization layer of the source domain style and a batch normalization layer of the target domain style are correspondingly obtained by using a small batch mean variance method; According to the labeled data set of the source domain and the batch normalization layer of the source domain style, a source domain style feature is obtained through a linear layer mapping; according to the labeled data set of the target domain and the batch normalization layer of the target domain style, a target domain style feature is obtained through a linear layer mapping; Based on the source domain style features and the target domain style features, cross-domain consistent features are obtained through domain-invariant contrast learning.
3. The retinal cross-modal segmentation method according to claim 2, characterized in that: The loss function of domain-invariant contrastive learning includes the loss from the source domain to the target domain and the loss from the target domain to the source domain: Loss from source domain to target domain: Loss from target domain to source domain: Loss function for domain-invariant contrastive learning: in Represents the normalized feature representation generated by source domain specific BN; Represents the normalized feature representation generated by the target domain specific BN; Represents the normalized feature representation of the target domain image generated by source domain specific BN; Represents the normalized feature representation of the target domain image generated by the target domain specific BN.
4. The retinal cross-modal segmentation method according to claim 2, characterized in that: The training is carried out through the uncertainty-aware self-integrated average teacher framework. The specific steps include: The labeled dataset of the source domain and the labeled dataset of the target domain are fed into the student model and optimized through supervised learning loss; The unlabeled dataset of the target domain is fed into the teacher model and optimized with an unsupervised consistency loss.
5. The retinal cross-modal segmentation method according to claim 4, characterized in that: The loss function of supervised learning loss includes: the DF loss of the predicted label and the real label of the source domain data is replaced by the DF loss of the predicted label and the real label of the labeled data in the target domain: DF loss represents the combination of Dice loss and Focal loss: LDF=LDice+LFocal; in Represents the network's predicted output for the CFP image in the source domain; Represents the network's predicted output for OCT images in the target domain; They represent their corresponding labels respectively; w1 and w2 represent two parameters for adjusting category imbalance.
6. The retinal cross-modal segmentation method according to claim 2, characterized in that: The training is carried out through the uncertainty-aware self-integrated average teacher framework. The specific steps include: Obtain an unlabeled dataset as the target domain; The unlabeled dataset of the target domain is respectively fed into the student model and the teacher model through different enhancements; Using the pseudo labels output by the teacher model and undergoing unsupervised consistency loss, the teacher model performs pixel-level supervision on the student model; The weights of the teacher model are updated via a mean exponential moving mechanism.
7. The retinal cross-modal segmentation method according to claim 6, characterized in that: The loss function for unsupervised consistency loss includes: Where I(.) represents the indicator function; represents the prediction of the teacher network at the jth pixel; represents the prediction of the student network at the jth pixel; u j represents the estimated uncertainty of the jth pixel; H represents the threshold used to select the most certain target.
8. The retinal cross-modal segmentation method according to claim 2, characterized in that: Acquiring data from the source domain also includes a preprocessing step, which includes: The source domain data is subjected to linear polar coordinate transformation and grayscale conversion to obtain a retinal hierarchical structure similar to that of the target domain data.
9. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the retinal cross-modal segmentation method as described in any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the retinal cross-modal segmentation method described in any one of claims 1 to 8.
Citation Information
Patent Citations
Semi-supervised cross-domain adaptive image segmentation method
CN114240955A
Unsupervised retinal vessel segmentation method and system and electronic equipment
CN115937192A
Infrared weak and small target detection method and device based on semi-supervised mixed domain adaptation
CN116310655A
Semi-supervised optic nerve segmentation method based on clinical knowledge driving and comparative learning
CN117557576A
Asymmetric Multi-Modal Machine Learning System and Method using Clinical Metadata in Electronic Medical Records
US20240169714A1
Cited By
Heart and edge material region segmentation method and system for different-material wood floor image
CN120747127A
