Method for training brain tissue segmentation model by using single atlas image and application thereof
By utilizing the registration confidence map and weighted style transfer in the registration-segmentation dual model iterative learning, the training of the segmentation network is optimized, which solves the problem of low brain tissue segmentation accuracy under a single label and improves the segmentation accuracy and alignment capabilities. .
Patent Information
- Application Number
- CN202410476118.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-19
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-04-19
AI Technical Summary
It is difficult for the existing technology to achieve high-precision brain tissue segmentation with a single label, and the error generated by the registration network in the iterative learning of the registration-segmentation dual model has a large impact, limiting the segmentation performance.
In the iterative learning process of the registration-segmentation dual model, the segmentation network is optimized based on the registration error of the registration network, and the registration confidence map is used to divide the area for weighted style conversion to reduce the impact of registration error on segmentation learning. , and improve the alignment ability through the training of pseudo-labels and regular terms to constrain the registration network.
In the case of a single atlas image, the accuracy of brain tissue segmentation is improved, the negative impact of registration network errors on segmentation learning is reduced, and the performance and alignment capabilities of the segmentation network are enhanced.
Smart Images

Figure CN118537673A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of medical image segmentation, and more specifically, to a method for training a brain tissue segmentation model using a single atlas image and its application. Background Art
[0002] Brain tissue segmentation refers to the division of brain images into different functional areas, which has important guiding value in clinical surgery. Using the labels of brain tissue segmentation, doctors can understand the brain structure more intuitively, thereby more accurately realizing surgical planning, disease diagnosis and treatment.
[0003] Traditional segmentation algorithms achieve the aggregation of image elements of the same category through morphological operations or similarity measurements. Most of these methods are based on iterative optimization, which is usually time-consuming. Some of them also require good manual initialization (such as region growing algorithms usually require good initialization seed points) to obtain better segmentation results. These defects greatly limit their clinical applicability.
[0004] In recent years, deep learning algorithms have become the mainstream method in medical image segmentation due to their good performance and fast inference time. For segmentation networks, fully supervised learning methods require labels for all images and can usually achieve good segmentation accuracy. However, due to the delicate and complex structure of the human brain, manual outlining of brain tissue is usually time-consuming and error-prone, and lacks quantitative standards. Therefore, achieving accurate brain tissue segmentation with a small number of labels, especially a single label, has important practical value.
[0005] In order to achieve brain tissue segmentation under a single label, some studies have proposed methods based on atlas registration. This type of method first specifies or synthesizes a labeled template image (atlas), then registers the labeled atlas to the unlabeled image, and uses the pixel-level mapping relationship (offset field) generated by the registration to deform the atlas label accordingly, thereby predicting the label of the image to be segmented. However, due to the lack of label guidance, this type of registration method is difficult to align brain tissue with delicate and complex structures, and the segmentation accuracy is usually low, which is difficult to meet clinical needs.
[0006] A more effective method is to use the registration-segmentation dual model iterative learning. In the iterative process, the registration acts as a data enhancer, deforming the atlas image and label to generate data for segmentation training; the segmentation network predicts more refined pseudo labels to further optimize the registration. However, the error generated by the registration network will affect the subsequent segmentation learning, which limits the performance of segmentation to a certain extent. Summary of the invention
[0007] In view of the defects and improvement needs of the prior art, the present invention provides a method for training a brain tissue segmentation model using a single atlas image and its application, the purpose of which is to optimize the training of the segmentation network based on the perceived registration error of the registration network during the iterative learning process of the registration-segmentation dual model, thereby improving the performance of brain tissue segmentation when only a single atlas image is present.
[0008] To achieve the above object, according to one aspect of the present invention, a method for training a brain tissue segmentation model using a single atlas image is provided, comprising:
[0009] The semi-supervised training steps of the segmentation network include:
[0010] (S1) Using the registration network to predict the atlas image I a and the unlabeled image I u The offset field φ between them is used to calculate the atlas image I a and its label S a Perform deformation operations separately to obtain deformation atlas images and deformation atlas labels The atlas images are brain tissue images with segmentation labels, and the unlabeled images are brain tissue images without segmentation labels;
[0011] (S2) Calculate the registration confidence map C, which is used to represent the deformation atlas image and the unlabeled image I u The degree of alignment at each pixel;
[0012] (S3) According to the registration confidence map C, the deformation atlas image and the unlabeled image I u Divide into multiple regions with different alignment degrees, for the deformation atlas image Perform style conversion based on the aligned image and then stitch them together to get the style conversion image When performing style transfer, the more aligned the area is, the higher the transfer coefficient will be;
[0013] (S4) Label the deformation map As supervision information, the unlabeled image I u and style transfer images As input, train the segmentation network;
[0014] The weakly supervised training steps of the registration network include:
[0015] (W1) Use the segmentation network to predict the unlabeled image I u The segmentation result is used as a pseudo label
[0016] (W2) Using the registration network to predict the atlas image I a and the unlabeled image I u The offset field φ between the atlas images I a Tags a The deformation atlas label obtained after performing the deformation operation according to the offset field φ Compared with pseudo labels The error is used as the training loss to train the registration network;
[0017] And a dual-model iterative learning step, comprising: repeatedly and alternately executing a segmentation network semi-supervised training step and a registration network weakly supervised training step until the segmentation network and the registration network converge.
[0018] Further, in step (S3), calculating the registration confidence map C includes:
[0019] The atlas image I a and the unlabeled image I u Mirror as images separately and
[0020] Predicting images using a registration network and The offset field φ′ between
[0021] according to Calculate the synthetic offset field Φ;
[0022] Calculate the registration error E according to E = ||φ-Φ||2;
[0023] according to Calculate the registration confidence map C;
[0024] in, represents the deformation operation, φ sym represents the equivalent offset field of the mirror operation, ||||2 represents the second norm, and σ represents the standard deviation of the registration error.
[0025] Furthermore, in step (S4), when training the segmentation network, for the style transfer image Input it into the segmentation network to get the prediction result After that, the segmentation loss The calculation method is:
[0026]
[0027] For the unlabeled image I u , input it into the segmentation network to get the segmentation result After that, the segmentation loss The calculation method is:
[0028]
[0029] Wherein, Dice represents the Dice coefficient.
[0030] Furthermore, in step (W2), when training the registration network, the training loss also includes: similarity loss and regularization term The two expressions are as follows:
[0031]
[0032]
[0033] Wherein, NLCC represents the local normalized correlation coefficient; Represents the atlas image I a The atlas image deformed according to the offset field φ; Represents the gradient operator.
[0034] Furthermore, in the dual-model iterative learning step, before repeatedly and alternately executing the segmentation network semi-supervised training step and the registration network weakly supervised training step, it also includes: executing an unsupervised registration initialization step; the unsupervised registration initialization step includes:
[0035] Predicting atlas images using registration networks I a and the unlabeled image I u The offset field φ between them is calculated using similarity loss and regularization term As the training loss, the registration network is trained.
[0036] Furthermore, in the dual-model iterative learning step, before performing the unsupervised registration initialization step, the step further includes: performing a preprocessing operation; the preprocessing operation includes at least one of the following operations:
[0037] All images were corrected for bias fields;
[0038] Resample all images to the same size;
[0039] Perform an affine transformation of all images to the atlas image.
[0040] According to another aspect of the present invention, there is provided a brain tissue segmentation method, comprising:
[0041] The brain tissue image to be segmented is input into the segmentation network trained by the method of using a single atlas image to train a brain tissue segmentation model provided by the present invention to obtain a brain tissue segmentation result.
[0042] According to another aspect of the present invention, there is provided a brain tissue segmentation method, comprising:
[0043] The atlas image and the brain tissue image to be segmented are input into the registration network trained by the method of using a single atlas image to train a brain tissue segmentation model provided by the present invention, to obtain an offset field φ″ between the atlas image and the brain tissue image to be segmented; the atlas image is a brain tissue image with a segmentation label;
[0044] The labels of the atlas image are deformed according to the offset field φ″ to obtain the deformed labels, which are used as the brain tissue segmentation results of the brain tissue image to be segmented.
[0045] According to another aspect of the present invention, a computer-readable storage medium is provided, comprising a stored computer program; when the computer program is executed by a processor, the device where the computer-readable storage medium is located is controlled to execute the method provided by the present invention for training a brain tissue segmentation model using a single atlas image, and / or the brain tissue segmentation method provided by the present invention.
[0046] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects:
[0047] (1) When training the brain tissue segmentation network based on the framework of iterative learning of the registration-segmentation dual model, the present invention estimates the registration confidence map to reflect the degree of alignment at each pixel position, thereby realizing the perception of registration error; in the training scenario of a single atlas image, the deformation atlas image All from the same atlas image I a Deformation generation, the grayscale style is relatively uniform. Based on the registration error perception result, the deformation atlas image The model is divided into multiple regions with different alignment degrees, and the corresponding style conversion coefficient is set according to the alignment degree of each region, realizing a weighted style conversion. Based on this style conversion method, not only the spatial correspondence between the atlas image and the label pair after the registration deformation is retained, but also the training data with diverse styles and authenticity is generated, which can effectively weaken the influence of the error generated by the registration network on the segmentation learning, and effectively improve the accuracy of brain tissue segmentation when only a single atlas image is available.
[0048] (2) In the preferred embodiment of the present invention, the calculation of the mirror error is realized by calculating the equivalent offset field, and the mirror error is used as the registration error and converted into the registration confidence through the Gaussian function. This calculation method can accurately perceive the registration error and accurately calculate the registration confidence map.
[0049] (3) Unlabeled image I uThere is a certain spatial misalignment between the unlabeled image and the deformation atlas label. In the preferred embodiment of the present invention, the unlabeled image-deformation atlas label pair is used. When training the segmentation network, follow The segmentation loss is calculated, so that the segmentation network can focus more on learning the aligned areas of the image-label pairs when there is spatial misalignment between the unlabeled images and the deformation atlas labels, thereby further improving the segmentation accuracy.
[0050] (4) In the preferred embodiment of the present invention, the segmentation result of the segmentation network for the unlabeled image is used as a pseudo label, and a corresponding training loss term is designed to constrain the registration deformation of the atlas label With pseudo labels In addition, its training loss also includes similarity loss and regularization term. The former constrains the similarity between the deformed atlas image and the unlabeled image, and the latter constrains the smoothness of the registration offset field, thereby enabling the registration network to have stronger brain tissue alignment ability.
[0051] (5) In a preferred embodiment of the present invention, before performing dual-model iterative learning, the registration network is trained based on a similarity loss and a regularization term for constraining the smoothness of the registration offset field, and iterative initialization is achieved using an unsupervised registration network.
[0052] (6) In the preferred embodiment of the present invention, at the initial moment, preprocessing operations such as bias field correction, resampling, and affine coarse registration are performed, thereby reducing the learning burden of the subsequent registration network. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 A flow chart of a method for training a brain tissue segmentation model using a single atlas image provided in an embodiment of the present invention;
[0054] Figure 2 A schematic diagram of a registration-segmentation dual-model iterative learning framework provided in an embodiment of the present invention;
[0055] Figure 3 A schematic diagram of a registration error calculation process provided by an embodiment of the present invention;
[0056] Figure 4 A schematic diagram of weighted style conversion provided by an embodiment of the present invention;
[0057] Figure 5 A comparison diagram of conversion results between the weighted style conversion method and the conversion method based on aligned images provided in an embodiment of the present invention;
[0058] Figure 6 Segmentation model prediction results for different registration and segmentation iteration methods;
[0059] Figure 7 The curves of the change of registration accuracy and segmentation accuracy of the method of the present invention during the iteration process under different experimental conditions set for weighted style transfer and confidence-guided loss; among them, (a) compares the registration accuracy under different conditions, and (b) compares the segmentation accuracy under different conditions. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0061] In the present invention, the terms "first", "second", etc. (if any) in the present invention and the accompanying drawings are used to distinguish similar objects but not necessarily to describe a specific order or sequence.
[0062] In order to solve the technical problem that the segmentation network is affected by the registration network error and the segmentation accuracy is low in the existing method of training brain tissue segmentation model based on the registration-segmentation dual-model iterative learning framework, the present invention provides a method for training a brain tissue segmentation model using a single atlas image and its application, the overall idea of which is to realize the perception of registration error and integrate the perceived registration error into the dual-model learning framework, effectively eliminate the negative impact of the registration error on segmentation learning, and effectively improve the segmentation accuracy.
[0063] The following are examples.
[0064] Embodiment 1:
[0065] A method for training a brain tissue segmentation model using a single atlas image, the process is as follows Figure 1 As shown. The method for training a brain tissue segmentation model using a single atlas image provided in this embodiment uses a framework of iterative learning of the registration-segmentation dual model. Optionally, in this embodiment, the registration network uses an existing advanced model PC-Net, which has a strong brain tissue registration capability; the segmentation network uses Unet, and introduces a deep supervision strategy to improve the performance of the network. The framework based on iterative learning of the registration-segmentation dual model is shown in FIG. Figure 2 When training the segmentation network, the registration network is fixed; when training the registration network, the segmentation network is fixed.
[0066] In this embodiment, only a single atlas image with a label and multiple unlabeled images are needed to complete the training. After the training, the segmentation network or the registration network obtained by the training can be used to complete the high-precision segmentation of the brain tissue image. It is easy to understand that in this embodiment, the atlas image is a brain tissue image with a segmentation label, and the unlabeled image is a brain tissue image without a segmentation label.
[0067] This embodiment performs preprocessing operations on the atlas image and all unlabeled images at the initial moment. Specifically, considering that the intensity difference caused by imaging differences in the same tissue image may affect the subsequent segmentation, all brain images are first corrected by N4 bias field. After the correction is completed, all image data are resampled to 1mm×1mm×1mm, and then all image data are affine transformed to the atlas using the ANTS toolkit to achieve coarse registration, so that all images are in the same spatial coordinate system, and at the same time, the learning burden of the subsequent registration network is reduced to a certain extent.
[0068] In this embodiment, before iterative training of the registration-segmentation network, an unsupervised registration initialization step is performed, including:
[0069] Predicting atlas images using registration networks I a and the unlabeled image I u The offset field φ between them is calculated using similarity loss and regularization term As training loss, the registration network is trained;
[0070] Among them, the similarity loss Constraint Graph Image I a Atlas image deformed according to the offset field φ and the unlabeled image I u Similarity, regularization term Constrain the smoothness of the registration offset field φ. The calculation formula is:
[0071]
[0072]
[0073] represents the gradient operator, |||| represents the two-norm calculation; NLCC is the local normalized correlation coefficient, and the calculation formula is as follows:
[0074]
[0075] where Ω is a 9×9×9 image patch, and Represent the grayscale mean of X and Y in the image block respectively.
[0076] After the above preprocessing operation and unsupervised registration initialization, this embodiment will perform a dual model iterative learning step, including: repeatedly and alternately performing a segmentation network semi-supervised training step and a registration network weakly supervised training step until the segmentation network and the registration network converge. Figure 2 As shown, the semi-supervised training steps of the segmentation network include:
[0077] (S1) Using the registration network to predict the atlas image I a and the unlabeled image I u The offset field φ between them is used to calculate the atlas image I a and its label S a Perform deformation operations separately to obtain deformation atlas images and deformation atlas labels The atlas images are brain tissue images with segmentation labels, and the unlabeled images are brain tissue images without segmentation labels;
[0078] (S2) Calculate the registration confidence map C, which is used to represent the deformation atlas image and the unlabeled image I u The degree of alignment at each pixel;
[0079] (S3) According to the registration confidence map C, the deformation atlas image and the unlabeled image I u Divide into multiple regions with different alignment degrees, for the deformation atlas image Perform style conversion based on the aligned image and then stitch them together to get the style conversion image When performing style transfer, the more aligned the area is, the higher the transfer coefficient will be;
[0080] (S4) Label the graph As supervision information, the unlabeled image I u and style transfer images As input, train the segmentation network;
[0081] like Figure 2 As shown in Figure 1, the weakly supervised training steps of the registration network include:
[0082] (W1) Use the segmentation network to predict the unlabeled image I u The segmentation result is used as a pseudo label
[0083] (W2) Using the registration network to predict the atlas image I a and the unlabeled image I u The offset field φ between the atlas images I a Tags a The deformation atlas label obtained after performing the deformation operation according to the offset field φ Compared with pseudo labels The error is used as the training loss to train the registration network.
[0084] When training a brain tissue segmentation network based on the framework of iterative learning of the registration-segmentation dual model, this embodiment estimates a registration confidence map to reflect the degree of alignment at each pixel position, thereby realizing registration error perception; in order to accurately realize registration error perception, this embodiment proposes a method of calculating the registration error based on the mirror error, that is, it is considered that the input image pair to be registered is a mirror image, and its output is also a mirror image when there is no error, and the mirror difference between the outputs can reflect the registration error. Figure 3 The calculation process of the mirror error is shown as follows:
[0085] Input mirrored image pair to be registered (I a ,I u )and and They are atlas images I a and the unlabeled image I u The image obtained after the mirror operation.
[0086] The registration network can predict the offset fields φ and φ′ for each image pair. Deformation Atlas Image The atlas image I can be adjusted using the offset field φ a The deformation is:
[0087]
[0088] in, represents a deformation operation, → indicates that the starting point of the arrow (left side) tends to the end point of the arrow (right side), and φ(x) represents the offset value at x.
[0089] Similarly, for the deformed image output in mirror space Also meets:
[0090]
[0091] Will Mirroring, constructing two target images, both of which are unlabeled images I u The registration path is the path of mirror flip-deformation-mirror flip, and the path of direct deformation:
[0092]
[0093] Among them, ← indicates that the starting point of the arrow (right side) tends to the end point of the arrow (left side), and the superscript "*" indicates a mirror operation.
[0094] In order to measure the registration error, the present invention first expresses the mirror operation equivalently as an offset field φ sym , the calculation formula is as follows:
[0095] φ sym (x,y,z)=(N x -2x,0,0)
[0096] Where x is the axis perpendicular to the symmetry plane, and the symmetry plane is the sagittal plane; N x represents the length of the horizontal axis. The starting images of the above two registration paths can also be obtained by sym Unified as I a , the formula is as follows:
[0097]
[0098] in, Represents a two-way approximation.
[0099] Using the offset field superposition formula, φ sym ,φ′,φ sym The three deformations are combined into an offset field Φ, which is calculated as:
[0100]
[0101]
[0102] The absolute value of the offset field difference between the two registration paths of flip-deform-flip and direct deformation is calculated as the registration error:
[0103] E=||φ-Φ||2
[0104] The registration error is converted into registration confidence using the Gaussian function:
[0105]
[0106] Among them, ||||2 represents the second norm, and σ represents the standard deviation of the registration error.
[0107] This embodiment uses the mirror error to measure the registration error and the registration confidence calculated thereby is a pixel-level registration confidence map that can accurately reflect the degree of alignment at each pixel position.
[0108] In order to enrich the training data, the segmentation network semi-supervised training step of this embodiment uses the registered deformed atlas image-label pairs at the same time. And unlabeled image-deformation atlas label pairs Train the segmentation network. During training, As label information, register the deformed atlas image and the unlabeled image Iu as input to the segmentation network.
[0109] Considering the deformed images of each unlabeled image pair All of them are composed of a single atlas image I a Deformed, grayscale style directly inherited from I a , which is relatively simple. In this embodiment, style conversion is first performed on it before it is input into the segmentation network to increase the deformation atlas image The style diversity of the image is improved to improve the segmentation performance of the trained segmentation network. Studies have shown that the Fourier amplitude spectrum of an image mainly contains grayscale style information, while the phase spectrum mainly contains structural information. Based on this principle, the dual spectrum reconstruction method retains the phase spectrum information of the original image and linearly combines the amplitude spectrum information of the starting image and the target image, thereby changing the style of the original image. Some researchers have migrated this method to coarsely aligned image pairs. and I u In this paper, a style transfer method based on aligned images (Image-aligned Style Transformation, IST) is proposed:
[0110]
[0111] in, and are the amplitude spectrum and phase spectrum of Fourier transform, is the inverse Fourier transform, is the transformed deformation atlas image, and β is a random number between [0,1].
[0112] The above-mentioned style transfer method based on aligned images (IST) has certain defects, namely, the image I u and When the alignment degree is low and the conversion coefficient β is large, this method will produce more artifacts, affecting the segmentation accuracy. To solve this problem, in order to achieve style transfer more faithfully, this embodiment proposes a weighted image-aligned style transformation (WIST) method, that is, according to the registration confidence map C, the deformation atlas image and the unlabeled image I u Divide into multiple regions with different alignment levels, for the atlas image Perform style conversion based on the aligned image and then stitch them together to get the style conversion image When performing style transfer, the more aligned the area is, the higher the transfer coefficient will be; Figure 4Specifically, using the obtained registration confidence map C, the confidence is divided into different regions through M gate functions to obtain M binary masks:
[0113]
[0114] These masks N n Deformation Atlas Image and the unlabeled image I u Multiply them together to get N groups of region pairs with different alignment levels. The style conversion method based on aligned images is used to convert these regions, and the conversion coefficient β n Directly sample from [n / n, (n+1) / N]. Finally, all converted regions are superimposed to obtain the style conversion image. Figure 5 Shows the style transferred images produced by the above two style transfer methods when the registration accuracy is low For ease of description, the weighted style transfer method proposed in this embodiment is abbreviated as WIST. Figure 5 It can be seen that the image converted by WIST has fewer artifacts and higher image quality.
[0115] Therefore, this embodiment calculates the registration confidence map based on the perception of registration errors, and performs weighted style transfer on the image based on the registration confidence map. It not only retains the spatial correspondence between the registration deformation atlas image-label pairs, but also generates training data with diverse styles and high fidelity. It can effectively weaken the impact of the errors generated by the registration network on segmentation learning, and effectively improve the accuracy of brain tissue segmentation when only a single atlas image is available.
[0116] Optionally, in step (S4) of this embodiment, when training the segmentation network, for the style conversion image Input it into the segmentation network to get the prediction result After that, the segmentation loss The calculation method is:
[0117]
[0118] Among them, Dice represents the Dice coefficient, which is used to measure the degree of overlap between regions. The calculation formula is:
[0119]
[0120] Among them, A and B represent two areas.
[0121] Considering the unlabeled image I u and deformation atlas labels There is a certain amount of spatial misalignment. To address this problem, in this embodiment, for the unlabeled image I u , input it into the segmentation network to get the segmentation result After that, the segmentation loss The calculation method is:
[0122]
[0123] The above segmentation loss is a kind of confidence guided Dice-loss. ), calculating the loss in the above way can make the segmentation network more focused on learning the aligned regions in the image-label, and further improve the segmentation accuracy of the trained segmentation network.
[0124] In the weak supervision training step of the registration network in this embodiment, the unlabeled image I u Input into the segmentation network to get a more accurate pseudo label The weakly supervised training of the registration network using this label gives the registration network a stronger ability to align brain tissue. Compared to the initial unsupervised registration, the weakly supervised training step introduces additional losses. Atlas labels for constraining registration deformation Optimizing pseudo-labels predicted by segmentation networks consistency. The calculation formula is as follows:
[0125]
[0126] The semi-supervised training step of the segmentation network and the weakly supervised training step of the registration network are repeatedly performed alternately. After the segmentation network and the registration network converge, the trained segmentation network and the registration network can be used to achieve brain tissue segmentation.
[0127] In general, this embodiment realizes the perception of registration error and integrates the registration error into the iterative learning of the registration-segmentation dual model, which greatly eliminates the negative impact of the registration error on the segmentation learning in the registration-segmentation iterative framework. Specifically, this embodiment proposes weighted style transfer and confidence-guided loss, so that the segmentation network can learn more diverse and accurate data. Weighted style transfer not only retains the spatial correspondence between the atlas image-label pairs after registration deformation, but also produces data with diverse styles and fidelity; confidence-guided loss enables the segmentation network to more focus on learning the alignment area of the unlabeled image-deformed atlas label pairs. Both greatly improve the performance of the segmentation network.
[0128] The training method provided in this embodiment can accurately predict on a single-label data set and has higher accuracy than other existing single-label segmentation methods. The segmentation performance of this embodiment is verified and explained in combination with the segmentation result comparison.
[0129] This embodiment was tested on two public brain datasets, OASIS and CANDIShare, using only one label, and compared with 5 existing iterative learning algorithms based on registration-segmentation (DeepAtlas, Brainstorm, PC-Reg-RT, BRBS, StyleSeg) and 4 methods based on atlas registration (Ants, VoxelMorph, 10*VTN, PC-Net). The performance of the segmentation and registration models was measured by calculating the Dice coefficient and Hausdorff distance (HD). The former measures the degree of overlap between regions, and the latter calculates the maximum distance between surfaces. The HD calculation formula is as follows:
[0130]
[0131] Among them, A and B represent all pixels contained in the two labels.
[0132] Table 1 shows the quantitative results of the segmentation model of this embodiment and similar methods on two data sets, OASIS and CANDIShare, to quantitatively compare the performance of the segmentation network in different registration-segmentation iterative methods. According to the quantitative results shown in Table 1, it can be seen that the segmentation Dice of this embodiment on these two data sets are 0.868±0.004 and 0.859±0.007, respectively, which are 2.0% and 0.9% higher than the best algorithms of the same type. At the same time, the segmentation model provided by this embodiment has the smallest or second smallest (second) Hausdorff distance. In order to intuitively reflect the superior performance of the segmentation model of the method of the present invention, Figure 6 The segmentation prediction results of this embodiment and several other algorithms are shown. Figure 6 In the area marked by the box, the method of this embodiment is closer to the gold standard (Ground-truth), which shows that the segmentation network trained by this embodiment has higher segmentation accuracy than other mainstream algorithms in the single-label case.
[0133] Table 1 Performance of segmentation network in different registration-segmentation iteration methods
[0134]
[0135] Consider extending this embodiment to other application scenarios, such as surgical navigation or arbitrary brain tissue segmentation. In this scenario, the registration model can realize the alignment of preoperative and intraoperative images, and can also map new atlas labels to the image to be segmented when a single label is provided, thereby realizing tissue segmentation. Therefore, the performance of the registration model is equally important. Table 2 shows the quantitative registration results of this embodiment and the same type of methods and mainstream registration methods on two data sets of OASIS and CANDIShare. It can be seen that the registration Dice of the method of this embodiment on these two data sets are 0.847±0.004 and 0.844±0.005, respectively, which are 0.7% and 1.6% higher than the best algorithm of the same type. The results shown in Table 2 also show that this embodiment has the lowest Hausdorff distance in terms of registration performance compared with existing methods of the same type. These results all reflect that the present invention also has excellent registration performance, and therefore has broad application prospects.
[0136] Table 2 Registration performance of different registration methods
[0137]
[0138] Furthermore, in order to verify the role of the weighted style transfer and confidence-guided loss proposed in the present invention in improving the effect, the existing registration-segmentation iterative learning algorithm StyleSeg is used for comparison. StyleSeg uses the aforementioned registration model PC-Net and segmentation model U-Net for iteration, and uses image alignment style transfer IST when training the segmentation model. Only the style-converted image is used. and deformation atlas labels The method after introducing weighted style transfer alone is recorded as StyleSeg+WIST, and the method after introducing confidence-guided loss alone is recorded as Style+L cgd , and the method after introducing weighted style transfer and confidence-guided loss is recorded as StyleSeg V2. The registration accuracy of the registration model and the segmentation accuracy of the segmentation model trained by the four methods are as follows: Figure 7 As shown in (a) and (b) in , the horizontal axis represents the number of iterations. Figure 7 It can be seen from the results that the weighted style transfer and confidence-guided loss proposed in the present invention can effectively improve the registration and segmentation effects based on the registration-segmentation iterative learning method, and when the weighted style transfer and confidence-guided loss are introduced at the same time, the optimal registration and segmentation effects will be obtained.
[0139] Embodiment 2:
[0140] A brain tissue segmentation method, comprising:
[0141] The brain tissue image to be segmented is input into the segmentation network trained by the method of using a single atlas image to train a brain tissue segmentation model provided in the above embodiment 1 to obtain a brain tissue segmentation result.
[0142] Embodiment 3:
[0143] A brain tissue segmentation method, comprising:
[0144] The atlas image and the brain tissue image to be segmented are input into the registration network trained by the method of using a single atlas image to train a brain tissue segmentation model provided in the above embodiment 1 to obtain an offset field φ″ between the atlas image and the brain tissue image to be segmented; the atlas image is a brain tissue image with a segmentation label;
[0145] The labels of the atlas image are deformed according to the offset field φ″ to obtain the deformed labels, which are used as the brain tissue segmentation results of the brain tissue image to be segmented.
[0146] Embodiment 4:
[0147] A computer-readable storage medium includes a stored computer program; when the computer program is executed by a processor, the device where the computer-readable storage medium is located is controlled to execute the method for training a brain tissue segmentation model using a single atlas image provided in the above-mentioned embodiment 1, and / or the brain tissue segmentation method provided in the above-mentioned embodiment 2 or 3.
[0148] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for training a brain tissue segmentation model using a single atlas image, characterized in that: include: The semi-supervised training steps of the segmentation network include: (S1) Using the registration network to predict the atlas image I a and the unlabeled image I u and the atlas image I according to the offset field φ a and its label S a Perform deformation operations separately to obtain deformation atlas images and deformation atlas labels The atlas images are brain tissue images with segmentation labels, and the unlabeled images are brain tissue images without segmentation labels; (S2) Calculate the registration confidence map C, which is used to represent the deformation atlas image and the unlabeled image I u The degree of alignment at each pixel; (S3) According to the registration confidence map C, the deformation atlas image and the unlabeled image I u Divide into multiple regions with different alignment degrees, for the deformation atlas image Perform style conversion based on the aligned image and then stitch them together to get the style conversion image When performing style transfer, the more aligned the area is, the higher the transfer coefficient will be; (S4) Label the deformation map As supervision information, take the unlabeled image I u and style transfer images As input, train the segmentation network; The weakly supervised training steps of the registration network include: (W1) Use the segmentation network to predict the unlabeled image I u The segmentation result is used as a pseudo label (W2) Using the registration network to predict the atlas image I a and the unlabeled image I u The offset field φ between the atlas images I a Tags a The deformation atlas label obtained after performing the deformation operation according to the offset field φ Compared with pseudo labels The error is used as the training loss to train the registration network; And a dual-model iterative learning step, comprising: repeatedly and alternately executing a segmentation network semi-supervised training step and a registration network weakly supervised training step until the segmentation network and the registration network converge.
2. The method for training a brain tissue segmentation model using a single atlas image as claimed in claim 1, characterized in that: In the step (S3), calculating the registration confidence map C includes: The atlas image I a and the unlabeled image I u Mirror as images separately and Predicting images using the registration network and The offset field φ′ between according to Calculate the synthetic offset field Φ; Calculate the registration error E according to E = ||φ-Φ||2; according to Calculating the registration confidence map C; in, represents the deformation operation, φ sym represents the equivalent offset field of the mirror operation, ||||2 represents the second norm, and σ represents the standard deviation of the registration error.
3. The method for training a brain tissue segmentation model using a single atlas image according to claim 1 or 2, characterized in that: In the step (S4), when the segmentation network is trained, for the style conversion image Input it into the segmentation network to get the prediction result After that, the segmentation loss The calculation method is: For the unlabeled image I u , input it into the segmentation network to get the segmentation result After that, the segmentation loss The calculation method is: Wherein, Dice represents the Dice coefficient.
4. The method for training a brain tissue segmentation model using a single atlas image according to claim 1 or 2, characterized in that: In the step (W2), when the registration network is trained, the training loss also includes: similarity loss and regularization term The two expressions are as follows: Wherein, NLCC represents the local normalized correlation coefficient; Represents the atlas image I a The atlas image deformed according to the offset field φ; Represents the gradient operator.
5. The method for training a brain tissue segmentation model using a single atlas image as claimed in claim 4, characterized in that: In the dual-model iterative learning step, before repeatedly and alternately performing the segmentation network semi-supervised training step and the registration network weakly supervised training step, it also includes: performing an unsupervised registration initialization step; the unsupervised registration initialization step includes: Predicting atlas images using registration networks I a and the unlabeled image I u The offset field φ between them is calculated using similarity loss and regularization term As the training loss, the registration network is trained.
6. The method for training a brain tissue segmentation model using a single atlas image as claimed in claim 5, characterized in that: In the dual-model iterative learning step, before performing the unsupervised registration initialization step, it also includes: performing a preprocessing operation; the preprocessing operation includes at least one of the following operations: All images were corrected for bias fields; Resample all images to the same size; Perform an affine transformation of all images to the atlas image.
7. A brain tissue segmentation method, characterized in that: include: The brain tissue image to be segmented is input into the segmentation network trained by the method of using a single atlas image to train a brain tissue segmentation model as described in any one of claims 1 to 6 to obtain a brain tissue segmentation result.
8. A brain tissue segmentation method, characterized in that: include: The atlas image and the brain tissue image to be segmented are input into a registration network trained by the method for training a brain tissue segmentation model using a single atlas image as described in any one of claims 1 to 6, to obtain an offset field φ″ between the atlas image and the brain tissue image to be segmented; the atlas image is a brain tissue image with a segmentation label; The labels of the atlas image are deformed according to the offset field φ″ to obtain the deformed labels, which are used as the brain tissue segmentation results of the brain tissue image to be segmented.
9. A computer-readable storage medium, characterized in that: Comprising a stored computer program; when the computer program is executed by a processor, the device where the computer-readable storage medium is located is controlled to execute the method for training a brain tissue segmentation model using a single atlas image as described in any one of claims 1 to 6, and / or the brain tissue segmentation method as described in claim 7 or 8.
Citation Information
Patent Citations
Image segmentation network training method, training device thereof and image segmentation method
CN115908973A
Magnetic resonance image unsupervised cascade registration method based on artificial intelligence
CN116228823A
Differential homeomorphism-based cross-modal brain region image registration method
CN117132628A
Frame labeling training-based polyp segmentation model establishment method and polyp segmentation method
CN117351199A
Medical image registration and segmentation joint optimization method
CN117853541A
