Self-adaptive segmentation and measurement method for laryngeal cancer-hypopharyngeal cancer medical image

The adaptive medical image segmentation method through comparative learning pre-training and source domain fine-tuning solves the identification difficulty and adaptability problems in laryngeal cancer and hypopharyngeal cancer image segmentation, improves diagnostic efficiency and accuracy, and reduces medical costs.

CN118674728AActive Publication Date: 2024-09-20NINGBO MEDICAL CENT LIHUILI HOSPITACL +1

Patent Information

Application Number
CN202410657350.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-25
Publication Date
2024-09-20
Estimated Expiration
2044-05-25

AI Technical Summary

Technical Problem

Existing medical image segmentation methods have problems such as high identification difficulty, low contrast, large morphological variability, and poor adaptability to different imaging equipment in the early diagnosis of laryngeal and hypopharyngeal cancers, resulting in insufficient diagnostic efficiency and accuracy and increasing medical costs. Cost and patient burden.

Method used

An adaptive medical image segmentation and measurement method is adopted. Through contrastive learning pre-training and source domain fine-tuning, the generator is used for style transfer and random number enhancement to construct view pairs within and between fields, optimize network learning parameters, and achieve Adaptive segmentation of medical images.

Benefits of technology

It significantly improves the model's generalization ability in different medical imaging fields, simplifies the unsupervised field adaptation process, improves the accuracy and clinical application practicability of the segmentation model, and reduces medical costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118674728A
    Figure CN118674728A
Patent Text Reader

Abstract

The invention relates to the technical field of medical image processing, in particular to a laryngeal cancer-hypopharyngeal cancer medical image self-adaptive segmentation and measurement method. The key steps of the method comprise comparative learning pre-training and source domain fine tuning, the comparative learning pre-training adopts a parameter sharing encoder-decoder as a network backbone, pixel-level representation is mapped to a hyperspherical space by designing a nonparametric feature projection head, and consistency representation between fields is learned by using a comparative loss function; according to source domain fine tuning, pre-trained knowledge is migrated to a segmentation model, and pixel-level accurate segmentation is achieved. The method not only optimizes the accuracy and efficiency of the diagnosis process, but also has significant significance in reducing the medical cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of medical image processing, and in particular to a laryngeal cancer-hypopharynx cancer medical image adaptive segmentation and measurement method. Background Art

[0002] Laryngeal cancer and hypopharyngeal cancer, as common types of malignant tumors in the field of otolaryngology and head and neck surgery, are in urgent need of early diagnosis. This early diagnosis plays a vital role in improving patients' survival rates and their quality of life. Unfortunately, these cancers are challenging to diagnose and treat because of the difficulty in visually observing the lesions and the lack of significant early symptoms. Currently, traditional medical imaging and pathology methods still show certain limitations in the early detection of laryngeal cancer and hypopharyngeal cancer, especially in the accurate identification and location of early lesions. Usually, patients need to undergo multiple different modes of testing, which not only reduces the efficiency of diagnosis and the use of medical resources, but also increases the economic burden and mental stress of patients.

[0003] Although unsupervised domain adaptation methods can achieve cross-domain analysis in laryngeal cancer-hypopharynx cancer medical images, there are still many challenges in the segmentation and measurement of laryngeal cancer and hypopharyngeal cancer medical images: First, these tumor areas are difficult to identify in medical images, mainly because the contrast between tumors and surrounding tissues in images is usually low. In addition, the morphology and size of tumors are highly variable, which increases the difficulty of accurate image segmentation. At the same time, the generalization ability of segmentation algorithms is often limited under different imaging devices and conditions, making it complicated to apply in clinical settings. In past studies, although these problems have been solved to a certain extent by improving network structures and algorithms, these methods often rely on complex network modules and are usually only applicable to specific domain adaptation scenarios, making it difficult to be widely used in the diversified clinical environment of laryngeal cancer-hypopharynx cancer medical images. These methods require a lot of customized parameter adjustments when trying to adapt to different imaging conditions and equipment, which not only increases the complexity of the model, but also leads to the inability to widely adapt to imaging devices with different parameters. Summary of the invention

[0004] The technical solution to be solved by the present invention is to provide a laryngeal cancer-hypopharynx cancer medical image adaptive segmentation and measurement method, which not only optimizes the accuracy and efficiency of the diagnosis process, but also has significant significance in reducing medical costs.

[0005] The technical solution adopted by the present invention is: a laryngeal cancer-hypopharynx cancer medical image adaptive segmentation and measurement method, characterized in that it comprises the following steps:

[0006] S1. Select the data set: construct source domain images and target domain images;

[0007] S2, data preprocessing: expanding the source domain image and target domain image constructed in step S1;

[0008] S3, domain connection construction:

[0009] Within the domain, the target domain image preprocessed in step S2 is subjected to identity mapping to obtain a global view of the target domain image, and then a random number enhancement operation is performed on the target domain image to obtain a local view of the target domain image; between domains, the source domain image preprocessed in step S2 is input into the trained generator for style transfer conversion to obtain a global view of the fake target domain image, and then a random number enhancement operation is performed on the source domain image to obtain a local view of the source domain image;

[0010] Within a domain, the global view and local view of the target domain image are used as positive sample pairs. Between domains, the source domain image is input into the trained generator for style transfer to obtain the global view of the fake target domain image and the local view of the source domain image obtained by random number enhancement operation are used as positive sample pairs. Within a domain, the local views and global views of different target domain images are used as negative sample pairs. Between domains, the local views of different source domain images and the global view of the fake target domain image obtained by the generator are used as negative sample pairs.

[0011] S4, contrastive learning pre-training: The intra-domain view and inter-domain view obtained in step S3 are respectively input into the parameter-sharing encoder-decoder to obtain pixel-level representation, and the pixel-level representation is mapped to the hypersphere space by designing a non-parametric feature projection head. The loss is calculated using the contrastive loss function, and the network learning parameters are optimized by back propagation to minimize the distance between positive sample pairs and maximize the distance between negative sample pairs between domains. Then, the optimization is iterated continuously until the contrastive loss function converges, and finally the trained network learning parameters are obtained;

[0012] S5, source domain fine-tuning: construct a semantic segmenter, initialize the segmenter using the network learning parameters trained in step S4, and randomly initialize the segmentation head, then adjust the segmenter using the image obtained in step S3 to obtain a trained segmenter;

[0013] S6. Use the segmenter trained in step S5 to segment the medical image to be segmented.

[0014] Preferably, the trained generator in step S3 refers to a CycleGAN or CUT generator trained with the preprocessed data in step S2.

[0015] Preferably, the formula of the contrast loss function in step S4 is:

[0016]

[0017] Where L contrast is the contrast loss function, sim(·) is used to calculate the cosine similarity of the feature vector, f i represents a feature vector as an anchor point, f i ′ represents the feature vector of the positive sample corresponding to the anchor point, f j represents the eigenvector of negative samples, + represents the eigenvector of positive samples that are pulled closer, - represents the eigenvector of negative samples that are pushed away, v is the temperature parameter, n is the number of eigenvectors, and j represents the counting variable.

[0018] Preferably, the non-parametric feature projection head in step S4 refers to: inputting a feature map, then obtaining an intermediate layer feature map through a combination of several layers of maximum pooling layers and non-linear activation functions, and then performing a vector flattening operation on the intermediate layer feature map to obtain a feature vector.

[0019] Preferably, after fine-tuning the segmenter using the image obtained in step S3 in step S5, a hybrid segmentation loss is also used to guide the segmenter, and the hybrid segmentation loss is composed of a weighted cross entropy loss and a Dice loss.

[0020] Preferably, the formulas for the segmenter and hybrid segmentation loss are:

[0021]

[0022]

[0023] Where F(x) is the segmenter, Θ is the network learning parameter, the superscript s represents the prediction result based on the source domain image sample or the source domain image sample; s→t means that the source domain sample has undergone style transfer transformation from the source domain to the target domain through the generator G; is the output of the segmenter F, y s is the true value of the source domain image sample, p represents the prediction; λ = 1.0 and η = 2.0 are the contribution coefficients of the hybrid segmentation loss function;

[0024]

[0025]

[0026] The superscript s represents the prediction result based on the source domain image sample or the source domain image sample; c represents the number of true semantic categories; β is the ratio vector of the pixel ratio of a specific category in a batch to the pixel ratio of all categories, and pixels represents the pixel-by-pixel traversal operation.

[0027] Compared with the prior art, the present invention has the following advantages:

[0028] (1) The present invention effectively utilizes unlabeled data through contrastive learning pre-training technology, significantly improving the generalization ability of the model in different medical imaging fields, especially when processing multi-center, multi-site, multi-sequence and multi-modal medical images.

[0029] (2) The two-stage contrastive learning training framework of the present invention simplifies the traditional unsupervised domain adaptation (UDA) process and improves the practicality and accuracy of the segmentation model in clinical applications, especially when labeled data is scarce.

[0030] (3) The method of the present invention has demonstrated superior performance in multiple medical image segmentation tasks, including but not limited to the segmentation of laryngeal cancer and hypopharyngeal cancer, demonstrating its potential in practical clinical applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 This is a model training and prediction model framework diagram of a laryngeal cancer-hypopharynx cancer medical image adaptive segmentation and measurement method of the present invention.

[0032] Figure 2 This is the technical roadmap of the non-parametric feature projection head proposed in this invention. DETAILED DESCRIPTION

[0033] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0034] Embodiment 1:

[0035] A laryngeal cancer-hypopharynx cancer medical image adaptive segmentation and measurement method, such as Figure 1 As shown in FIG. 1 , the core steps of this method include contrastive learning pre-training and source domain fine-tuning, and contrastive learning pre-training also includes domain connection construction, which includes the following steps as a whole:

[0036] S1. Dataset selection: This model constructs relevant CT and MRI fusion datasets for laryngeal cancer and hypopharyngeal cancer. The CT modality data and MRI modality data each contain 3D grayscale images consisting of 60 samples. 1600 2D plane slices are obtained by slicing. The resolution is 256×256. The training set, validation set and test set are divided in a ratio of 8:1:1. The CT image S is the source domain image and the MRI image T is the target domain image.

[0037] S2. Data preprocessing: In order to build a more comprehensive training dataset, we merged all the data and used three rotation methods: horizontal rotation, vertical rotation, and horizontal-vertical rotation. By randomly applying these rotations, we successfully expanded the original 1,600 images to 3,200. In the expanded dataset, each sample contains three different rotation versions: the upper right is horizontally rotated, the lower left is vertically rotated, and the lower right is horizontal-vertical rotation. This processing not only increases the diversity of the dataset, but also helps to improve the model's robustness to image rotation changes.

[0038] S3, domain connection construction,

[0039] In the domain, by taking the view of the target domain image after identity mapping μ as the global view of the target domain, and taking the view of the target domain image after random data enhancement τ as the local view of the target domain, and considering their scales, it can be ensured that the semantics of these two views always match in the latent space, ensuring semantic consistency in the domain. Specifically, through contrastive learning, the local view of the target domain and the global view of the target domain are made as close as possible in semantics, while other views are pushed further away, so that dense representations containing sufficient image context are learned in the pre-training stage. This strategy not only avoids the semantic inconsistency problem caused by random enhancement τ, but also provides fine-grained representations for subsequent segmentation tasks;

[0040] Between domains, the source domain image is used as the generator G using unsupervised pre-trained CycleGAN or CUT to perform style transfer conversion to synthesize the global view of the fake target domain image Where S represents the source domain, T represents the target domain, and S T represents the set of style-transferred images based on the source domain, Indicates S T In this paper, a local view of the source domain is obtained by randomly enhancing τ to maintain semantic consistency. Specifically, by constructing a positive view that has both target domain features and semantic consistency in, represents the enhanced view of the i-th source domain image sample, represents the sample of the source domain after the generator G transfers it, + represents the positive sample feature is pulled closer, and then used for comparative pre-training to reduce the difference between the source domain and the target domain, thereby establishing an effective connection between the two domains. Through this strategy, we can achieve a closer connection between the domains and provide strong prior knowledge for subsequent segmentation tasks;

[0041] And it is also necessary to construct positive sample pairs and negative sample pairs, where:

[0042] Positive sample pairs, within the domain: the global view of the target domain and its local view; between domains, the global view of the fake target domain image generated by the generator G through the global view of the source domain image and the local view obtained by the random number enhancement operation of the global view of the source domain image;

[0043] Negative sample pairs, a combination of enhanced views of different images, such as a global view of the target domain and a local view of the source domain;

[0044] S4, contrastive learning pre-training: Initialize network learning parameters, including encoder-decoder parameters and parameters of non-parametric feature projection head. Input the intra-domain view and inter-domain view into the parameter-sharing encoder-decoder to obtain pixel-level representation. Then, map the pixel-level representation to the hypersphere space through the non-parametric feature projection head. Calculate the loss using the contrastive loss function. Then optimize the network learning parameters through back propagation to minimize the distance between positive samples and maximize the distance between negative samples. Then, iterate and optimize until the contrastive loss function converges. Finally, the trained network learning parameters are obtained.

[0045] The parameter-sharing encoder-decoder is a prior art. For example, commonly used encoder-decoder structures include U-Net, Autoencoder, etc., so they are not elaborated in detail in this application. Their main function is to encode the input image into a low-dimensional potential representation, and the decoder decodes the potential representation back to the original image size, thereby retaining the pixel-level information of the image; the specific process is input image: x, encoder-decoder output: h = E(x), pixel-level representation: h is a multidimensional tensor, each pixel has a corresponding feature vector, representing the high-dimensional feature of the pixel; this embodiment includes two encoder-decoders, and the parameters of the two encoder-decoders are shared, the global view of the target domain and the local view of the target domain are input into one encoder-decoder, and the global view of the false target domain image and the local view of the source domain are input into another encoder-decoder;

[0046] The non-parametric feature projection head has the main function of mapping the pixel-level representation h to the hyperspherical space. It is usually implemented using a linear transformation or a simple multi-layer perceptron (MLP). Specifically, the input is a 2-channel feature map with a resolution of 256×256. Then, the intermediate feature map representation is obtained through a combination of several layers of maximum pooling layers and non-linear activation functions. Then, the intermediate feature map is flattened to obtain an n×1-dimensional feature vector. When the input feature map size is 256*2, n=128. The maximum pooling layer followed by the non-linear activation function layer has no learnable / trainable parameters. Its purpose is to increase the sparse representation of the model to a certain extent, and improve the sensitivity of the non-parametric feature projection head to important feature vectors.

[0047] Hypersphere space refers to the feature vector space on the unit hypersphere. The L2 norm of each feature vector is 1, which can prevent the size difference of the feature vector from affecting the contrastive learning. Through the non-parametric feature projection head, each pixel-level representation is normalized to ensure that all feature vectors fall on the unit hypersphere. The pixel-level representation is mapped to the hypersphere space mainly to calculate the similarity of the feature vectors in the contrastive learning process to ensure that the size difference of the feature vector does not affect the similarity calculation;

[0048] The contrast loss function is mainly used to learn the consistency representation between domains, ensuring that the corresponding views of the source domain and the target domain are close in the feature space, while the views of different images are far away. The contrast loss function imposes different constraints on positive sample pairs and negative sample pairs: for positive sample pairs, the contrast loss function hopes that the similarity is close to 1; for negative sample pairs, the contrast loss function hopes that the similarity is less than a set threshold. The formula is:

[0049]

[0050] Where L contrast is the contrast loss function, sim(·) is used to calculate the cosine similarity of the feature vector, f i represents a feature vector as an anchor point, f i ′ represents the feature vector of the positive sample corresponding to the anchor point, f j represents the feature vector of negative samples, + represents the feature vector that brings the positive samples closer, - represents the feature vector that pushes the negative samples away, v is the temperature parameter, n is the number of feature vectors, where the number of feature vectors is the same as the number of training batches, and j represents a counting variable;

[0051] The network learning parameters are optimized by minimizing the contrast loss function, and the parameters are updated using the gradient descent method. The gradient of the contrast loss function to the network learning parameters is calculated each time, and the parameters are adjusted according to the gradient to gradually reduce the loss function. This optimization process is iterated repeatedly, and the parameters are continuously updated until the loss function converges, that is, the loss value changes very little or reaches the preset number of iterations. Ultimately, the optimized network learning parameters can minimize the distance between sample pairs in the same field and maximize the distance between sample pairs in different fields in the feature space, achieving the goal of contrastive learning, thereby training an encoder-decoder model that can effectively distinguish samples from different fields;

[0052] S5, fine-tuning the source domain, constructing a semantic segmenter, initializing the segmenter using the network learning parameters trained in step S4, and randomly initializing the segmentation head, and then adjusting the segmenter using the image obtained in step S3 to obtain a trained segmenter; specifically, it includes:

[0053] Construct a semantic segmenter F to learn the anatomical category of a specific class, use the prior domain connection knowledge (i.e., network learning parameters) Θ to initialize the segmenter F(x), and randomly initialize the segmentation head. Then, use the corresponding image label pair (x s→t ∈S T ,y s ∈Y s ) fine-tunes the segmenter F(x|Θ), where fine-tuning means that the number of adjustments is very small, within 10 times, to obtain the per-pixel semantics of the anatomical structure; where the superscript s represents the source domain image sample or the prediction result based on the source domain image sample; s→t means that the source domain sample is transformed from the source domain to the target domain through the generator G; is the output of the segmenter F, y s is the true value of the source domain image sample, p represents the prediction; λ = 1.0 and η = 2.0 are the contribution coefficients of the hybrid segmentation loss function,

[0054]

[0055]

[0056] Considering the uneven distribution of semantic categories of anatomical structures in laryngeal and hypopharyngeal cancer medical images, we use a hybrid segmentation loss L seg To guide the segmenter F, the hybrid segmentation loss L seg By weighted cross entropy loss L wce and Dice loss L dice The composition is: where the superscript s represents the prediction result based on the source domain image sample or based on the source domain image sample; c represents the number of true semantic categories; β is the ratio vector of the pixel ratio of a specific category in a batch to the pixel ratio of all categories; pixels represents the pixel-by-pixel traversal operation;

[0057]

[0058]

[0059] The segmenter F is an image segmentation network based on U-Net, and the dimension of the input image data of the network is R W×H×3 , the dimension of the output pixel-level classification probability is R W×H×C , where W, H, and C represent the length, width, and number of categories of the input image respectively;

[0060] S6. Use the segmenter trained in step S5 to segment the medical image to be segmented.

[0061] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

[0062] For those skilled in the art, various changes and modifications will undoubtedly be obvious after reading the above description. Therefore, the attached claims should be regarded as covering all changes and modifications of the true intent and scope of the present invention. Any and all equivalent ranges and contents within the scope of the claims should be considered to still be within the intent and scope of the present invention.

Claims

1. A laryngeal cancer-hypopharynx cancer medical image adaptive segmentation and measurement method, characterized in that: It includes the following steps: S1. Select the data set: construct source domain images and target domain images; S2, data preprocessing: expanding the source domain image and target domain image constructed in step S1; S3, domain connection construction: In the domain, the target domain image preprocessed in step S2 is subjected to identity mapping to obtain a global view of the target domain image, and then a random number enhancement operation is performed on the target domain image to obtain a local view of the target domain image; Between domains, the source domain image preprocessed in step S2 is input into the trained generator for style transfer conversion to obtain the global view of the fake target domain image, and then the source domain image is subjected to random number enhancement operation to obtain the local view of the source domain image; Within a domain, the global view and local view of the target domain image are used as positive sample pairs. Between domains, the source domain image is input into the trained generator for style transfer to obtain the global view of the fake target domain image and the local view of the source domain image obtained by random number enhancement operation are used as positive sample pairs. Within the domain, the local views and global views of different target domain images are used as negative sample pairs. Between domains, the local views of different source domain images and the global views of fake target domain images obtained by the generator are used as negative sample pairs. S4, contrastive learning pre-training: The intra-domain view and inter-domain view obtained in step S3 are respectively input into the parameter-sharing encoder-decoder to obtain pixel-level representation, and the pixel-level representation is mapped to the hypersphere space by designing a non-parametric feature projection head. The loss is calculated using the contrastive loss function, and the network learning parameters are optimized by back propagation to minimize the distance between positive sample pairs and maximize the distance between negative sample pairs between domains. Then, the optimization is iterated continuously until the contrastive loss function converges, and finally the trained network learning parameters are obtained; S5, source domain fine-tuning: construct a semantic segmenter, initialize the segmenter using the network learning parameters trained in step S4, and randomly initialize the segmentation head, then adjust the segmenter using the image obtained in step S3 to obtain a trained segmenter; S6. Use the segmenter trained in step S5 to segment the medical image to be segmented.

2. The method for adaptive segmentation and measurement of laryngeal cancer-hypopharynx cancer medical images according to claim 1, characterized in that: The trained generator in step S3 refers to the CycleGAN or CUT generator trained with the preprocessed data in step S2.

3. The method for adaptive segmentation and measurement of laryngeal cancer-hypopharynx cancer medical images according to claim 3, characterized in that: The formula of the contrast loss function in step S4 is: Where L contrast is the contrast loss function, sim(·) is used to calculate the cosine similarity of the feature vector, f i represents a feature vector as an anchor point, f′ i Represents the feature vector of the positive sample corresponding to the anchor point, f j represents the eigenvector of negative samples, + represents the eigenvector of positive samples that are pulled closer, - represents the eigenvector of negative samples that are pushed away, v is the temperature parameter, n is the number of eigenvectors, and j represents the counting variable.

4. The method for adaptive segmentation and measurement of laryngeal cancer-hypopharynx cancer medical images according to claim 1, characterized in that: The non-parametric feature projection head in step S4 refers to: inputting a feature map, then obtaining an intermediate layer feature map through a combination of several layers of maximum pooling layers and non-linear activation functions, and then performing a vector flattening operation on the intermediate layer feature map to obtain a feature vector.

5. The method for adaptive segmentation and measurement of laryngeal cancer-hypopharynx cancer medical images according to claim 1, characterized in that: In step S5, after fine-tuning the segmenter using the image obtained in step S3, it is also necessary to use a hybrid segmentation loss to guide the segmenter, and the hybrid segmentation loss is composed of a weighted cross entropy loss and a Dice loss.

6. The method for adaptive segmentation and measurement of laryngeal cancer-hypopharynx cancer medical images according to claim 1, characterized in that: The formulas for the segmenter and hybrid segmentation loss are: Where F(x) is the segmenter, Θ is the network learning parameter, the superscript s represents the source domain image sample or the prediction result based on the source domain image sample; s→t means that the source domain sample has undergone style transfer transformation from the source domain to the target domain through the generator G; is the output of the segmenter F, y s is the true value of the source domain image sample, p represents the prediction; λ = 1.0 and η = 2.0 are the contribution coefficients of the hybrid segmentation loss function; The superscript s represents the prediction result based on the source domain image sample or the source domain image sample; c represents the number of true semantic categories; β is the ratio vector of the pixel ratio of a specific category in a batch to the pixel ratio of all categories, and pixels represents the pixel-by-pixel traversal operation.

Citation Information

Patent Citations

  • Pathological image segmentation method based on domain adversarial self-supervised learning

    CN113379764A

  • Image saliency visualization method based on region contrast learning

    CN113450313A

  • Feature prototype-based semi-supervised domain adaptive semantic segmentation method and system

    CN114529900A

  • Cross-domain segmentation method and system for moment-invariant contrast cycle consistency adversarial network

    CN116778157A

  • Cross-modal medical image segmentation method and system

    CN117437420A

Cited By

  • Image reconstruction method based on learnable projection operator and iterative optimization framework

    CN120823279A

  • Image Reconstruction Method Based on Learnable Projection Operator and Iterative Optimization Framework

    CN120823279B