An unsupervised semantic segmentation method based on deep circle detection

Through the two-stage network method of deep learning, combined with the deep circular feature accumulator, the problem of complex anatomical structures and severe background interference in cardiac image segmentation is solved, and high-accuracy unsupervised semantic segmentation of the heart is achieved.

CN118470037BActive Publication Date: 2024-10-18HUNAN UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410941292.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-10-18
Estimated Expiration
2044-07-15

AI Technical Summary

Technical Problem

Due to the complex anatomy and severe background interference in cardiac image segmentation tasks, it is difficult for existing unsupervised methods to achieve high-accuracy segmentation.

Method used

A two-stage network method based on deep learning is used to first perform feature alignment on the heart template image and the target image through the affine registration network model, and then further refine the key point alignment through the deformation registration network model, combined with the deep circular feature accumulator Enhance circular feature extraction to achieve unsupervised semantic segmentation.

Benefits of technology

It effectively captures the anatomical structure of the heart, achieves unsupervised semantic segmentation of the heart, and improves the accuracy and practicality of the segmentation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118470037B_ABST
    Figure CN118470037B_ABST
Patent Text Reader

Abstract

The present application relates to an unsupervised semantic segmentation method based on deep circle detection, which includes: constructing an affine registration network model in the first stage; obtaining a heart template image and a target image; inputting the heart template image and the target image into an affine registration network optimization training; aligning the heart template image with the target image; inputting the target image into the trained affine registration network model to obtain an affine registration template image; obtaining the target image and the affine registration template image; inputting the target image and the affine registration template image into the second stage of deformation registration network model optimization training to obtain a deformation registration template image; performing a label fusion process based on the deformation registration template image to determine the mask segmentation result of the target image. The method can effectively capture the anatomical structure of the heart through the affine registration model and the deformation registration model, and the two-stage network framework can realize the unsupervised semantic segmentation of the anatomical structure of the heart.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer vision technology, and in particular to an unsupervised semantic segmentation method based on deep circle detection. Background Art

[0002] Cardiac image segmentation is a very important downstream task in the field of medical image processing. Cardiac image segmentation can help doctors more accurately identify various structures of cardiac tissue, such as ventricles, atria, myocardium, arteries, and valves, thereby assisting doctors in diagnosing and planning treatments for various heart diseases.

[0003] In recent years, many researchers have tried to use unsupervised methods to solve medical image segmentation tasks. For example, they used an unsupervised deep learning registration network to align brain maps with MRI images and successfully segmented brain images without manual annotation. However, brain MRI images have relatively low background noise and relatively simple anatomical structures. Heart imaging results are more complex. The anatomical structure of the heart can change significantly during imaging, and the background interference is more serious than that of MRI images. Summary of the invention

[0004] Based on this, it is necessary to provide an unsupervised semantic segmentation method based on circular feature detection based on deep learning to ensure that the segmentation results for the cardiac structure have stronger accuracy and practicality, thereby realizing unsupervised semantic segmentation for the cardiac anatomical structure. Specifically, an unsupervised semantic segmentation method based on deep circle detection includes:

[0005] S1: Construct the first-stage affine registration network model; the affine registration network model includes a deep circular feature accumulator CA module, a convolution module, and a large kernel convolution module;

[0006] S2: Acquire a heart template image and a target image; input the heart template image and the target image into an affine registration network model optimization training; perform feature alignment between the heart template image and the target image;

[0007] S3: inputting the target image into the trained affine registration network model to obtain an affine registration template image;

[0008] S4: Obtain a target image and an affine registration template image; input the target image and the affine registration template image into the second stage of deformation registration network model optimization training to obtain a deformation registration template image;

[0009] S5: Perform a label fusion process based on the deformable registration template image to determine the mask segmentation result of the target image.

[0010] Beneficial effects: This method can effectively capture the anatomical structure of the heart through the affine registration model and the deformable registration model, and the two-stage network framework can achieve unsupervised semantic segmentation of the anatomical structure of the heart. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be 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 paying creative work.

[0012] Figure 1 This is a flowchart of an unsupervised semantic segmentation method based on deep circle detection according to an embodiment of the present application.

[0013] Figure 2 This is a two-stage network framework diagram of an embodiment of the present application.

[0014] Figure 3 This is a schematic diagram of the affine registration network model structure of an embodiment of the present application. DETAILED DESCRIPTION

[0015] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present application, so the present application is not limited by the specific embodiments disclosed below.

[0016] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0017] like Figure 1 , Figure 2 As shown, this embodiment provides an unsupervised semantic segmentation method based on deep circle detection, the method comprising:

[0018] S1: Construct the first stage affine registration network model; the affine registration network model includes a deep circular feature accumulator CA module, a convolution module, and a large kernel convolution module.

[0019] Specifically, Figure 3The structure of the affine registration network model is shown. The process of constructing the affine registration network model includes:

[0020] Step 1: Construct a convolution module, including a convolution kernel of size 3D convolution and a 3D channel normalization function;

[0021] Step 2: Construct a large kernel convolution module, including a convolution kernel size of 3D convolution and a 3D channel normalization function;

[0022] Step 3: Construct an encoder of the affine registration network model, perform 5 layers of downsampling in the encoder, the input of the encoder is the target image and the heart template image, each downsampling layer contains a common convolutional layer module and a large kernel convolutional module for feature superposition, where the heart template image and the target image are feature spliced ​​on the batch;

[0023] Step 4: Construct a deep circular feature accumulator CA module;

[0024] Step 5: insert the deep circular feature accumulator CA module after the second downsampling layer in the encoder;

[0025] Step 6: Construct a decoder of the affine registration network model, which is used to decode the feature map after 5 layers of downsampling to obtain an affine registration template image.

[0026] The affine registration network model integrates the deep circular feature accumulator CA module after the second downsampling layer of the encoder in the affine registration network model to enhance the circular feature extraction in the cardiac image. The affine registration network model is used to identify the key points in the target image and the cardiac template image, and calculate the affine matrix in a closed form. The integration of the deep circular feature accumulator CA module can enhance the stability of the key points by accumulating circular features in the transformation space. At the same time, the deep circular feature accumulator CA module is differentiable in mathematical form and can be placed at any node in the affine registration network model. Through comparative experiments, the method of the present invention places the deep circular feature accumulator CA module after the second downsampling layer of the network, which has the best unsupervised segmentation effect on the cardiac anatomical structure.

[0027] In this embodiment, the affine registration network model is used to identify key points in the heart template image and the target image; the decoder in the affine registration network model uses a Laplacian pyramid for affine prediction, and predicts the initial coarse affine field based on the features of the fourth downsampling block in the affine registration network model. The moving feature map from this layer is deformed by the initial field, upsampled and merged with the moving feature map of the third block, represented as This process creates a moving feature map of the first pyramid level and then computes the residual affine field from the feature map of the heart template image and the feature map of the target image, expressed as , when added to the initial field, the first-stage affine registration network model produces the final affine transformation which can be mathematically expressed as:

[0028] .

[0029] The deep circular feature accumulator CA module is used to distinguish the heart from the background in the image. By accumulating circular features, the shape of the heart is integrated into the model a priori, making the model more sensitive to circular features. Considering the prominence of the circular shape along the axial direction, the circular transformation is applied to the axial 2D slice. And it is transformed into a circular feature map corresponding to the heart; the circular feature map includes gradient numerical features and gradient vector features;

[0030] The gradient vector feature is obtained by accumulating the gradient of the feature map at each voxel;

[0031] The gradient value feature is obtained by summing the values ​​of the feature map at each voxel.

[0032] The calculation formulas of the gradient vector feature and the gradient numerical feature are:

[0033] ;

[0034] ;

[0035] ;

[0036] ;

[0037] ;

[0038] ;

[0039] ;

[0040] ;

[0041] ;

[0042] ;

[0043] ;

[0044] ;

[0045] ;

[0046] ;

[0047] in, Represents the accumulated gradient vector features; Represents the accumulated gradient numerical features; Represents a feature map; Represents gradient features; represents the sampling network; represents a sampling network with opposite gradient directions; x represents the x direction; y represents the y direction; H represents the height of the feature map; W represents the width of the feature map; represents the normalized gradient in the x direction; Represents the normalized gradient in the y direction; Indicates the value in the x direction; Indicates the value in the y direction; Represents the characteristic information of sampling points in the sampling network; Represents the characteristic information of the sampling points in the x direction in the sampling network; Represents the characteristic information of the sampling points in the y direction in the sampling network; Represents the feature information of sampling points in the sampling network with opposite gradient directions; Represents the feature information of the sampling points in the x direction in the sampling network with opposite gradient directions; Represents the characteristic information of the sampling points in the y direction in the sampling network with opposite gradient directions; N represents the maximum value of the sampling network size H, W; Represents a very small number used to avoid division by 0 during normalization; represents the Hadamard product;

[0048] Represents a function mapping , further, this symbol represents the source feature map Specific cells Output target feature map , the calculation formula of the function mapping is:

[0049] ;

[0050] in, represents the kernel function and can be replaced by any meaningful kernel function.

[0051] S2: Acquire a heart template image and a target image; input the heart template image and the target image into an affine registration network model optimization training; and perform feature alignment between the heart template image and the target image.

[0052] Furthermore, the working process of the decoder includes:

[0053] Step 1: Construct a transposed convolution module and restore the feature map to an output image of the same size as the input target image through transposed convolution upsampling;

[0054] Step 2: After upsampling the first layer, extract key points based on the feature map and obtain the first affine field;

[0055] Step 3: Obtain a feature map of another scale by upsampling again and extract the second key point and the second affine field, and obtain the affine field of the affine registration network model after information fusion of the first affine field and the second affine field; the affine field includes the deformation direction and deformation size of the key point, and the heart template image is affine transformed through the affine field of the affine registration network model to preliminarily align the heart template image with the circular anatomical features of the target image;

[0056] Step 4: After 4 upsamplings, the feature map is restored to an affine registration template image of the same size as the input target image.

[0057] In this embodiment, a joint loss function of a mean square error loss function and a dice loss function is used to train the affine registration model of the first stage, and the calculation formula of the joint loss function is:

[0058] ;

[0059] ;

[0060] ;

[0061] in, Represents the joint loss function of the affine registration network model in the first stage of training; represents the mean square error loss function; represents the dice loss function; represents the i-th output image; represents the i-th real image; n represents the number of images; a represents the real label; b represents the predicted mask segmentation result.

[0062] S3: Input the target image into the trained affine registration network model to obtain an affine registration template image.

[0063] In this example, the affine registration network model of the first stage will output an affine registered template image and an affine field after affine registration after training. In this stage, the heart template image is aligned with the key points of the target image after affine registration, and the first stage ends.

[0064] S4: Obtain a target image and an affine registration template image; input the target image and the affine registration template image into the second stage of deformation registration network model optimization training to obtain a deformation registration template image.

[0065] In this embodiment, a deformable registration network model based on LKUnet is used to perform deformable registration on the affine registration template image of the first stage and the input target image, and the key point alignment between the heart template image and the target image is further refined. In this stage, a second joint loss function of normalized cross-correlation loss and divergence bi-norm regularization is used to optimize the deformable registration model. The calculation formula of the second joint loss function is:

[0066] ;

[0067] ;

[0068] in, represents the second joint loss function; represents the first hyperparameter; represents the second hyperparameter; represents the normalized cross-correlation loss function; represents the intensity of the i-th voxel in the deformed motion image; express The average intensity of represents the intensity of the i-th voxel in the deformed fixed image; express The average intensity of u A deformation field representing the deformation registration network model, wherein the deformation field includes a deformation direction and a deformation magnitude of the key point, and further deforms the key point to further align the circular anatomical features of the heart template image with the target image; Represents a gradient operation.

[0069] The target image and the affine registration template image are input into a deformable registration network model for optimization training, and the optimal parameters of the deformable registration network model are obtained through a gradient descent optimization algorithm.

[0070] S5: Perform a label fusion process based on the deformable registration template image to determine the mask segmentation result of the target image.

[0071] In this example, the deformable registration network model is a LKU-net network model.

[0072] Assume that given a heart template image And their mask segmentation results , so after the deformation registration of the LKUnet network model in the second stage, the heart template image is further aligned with the key points of the target image. In this stage, the unsupervised semantic segmentation of the heart anatomical structure is realized. The calculation formula of the overall process of the unsupervised semantic segmentation is:

[0073] .

[0074] in, represents the mask segmentation result finally predicted by the network, represents the segmentation label fusion process, represents the second stage deformation registration, represents the first stage affine registration.

[0075] Furthermore, in this example, the label fusion result is the average value of the voxel probabilities of the segmentation mask image of the deformable registration template image output by the deformable registration network model in the second stage, and the average value is converted into the mask segmentation result of the target image through the argmax function.

[0076] Among them, the calculation formula for the average value of all template segmentation prediction voxels is:

[0077] ;

[0078] in, represents the average voxel probability of the i-th segmentation mask image; represents the i-th segmentation mask image predicted based on the j-th heart template image; N represents the number of heart template images.

[0079] The calculation formula of the argmax function is:

[0080] ;

[0081] in, express ; x represents an arbitrary set; y represents a completely ordered set; S represents the set of voxel probability averages of all segmentation mask prediction results; Indicates and.

[0082] In order to overcome the difficulty in obtaining large-scale labeled data for cardiac image segmentation, the method provided in this embodiment can effectively capture the anatomical structure of the heart through the designed affine registration model and deformation registration model, thereby realizing unsupervised semantic segmentation of the heart.

[0083] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0084] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the patent application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent application shall be subject to the attached claims.

Claims

1. An unsupervised semantic segmentation method based on deep circle detection, characterized in that: include: S1: Construct the first-stage affine registration network model; the affine registration network model includes a deep circular feature accumulator CA module, a convolution module, and a large kernel convolution module; The process of building an affine registration network model includes: Step 1: Construct a convolution module, including a convolution kernel of size 3D convolution and a 3D channel normalization function; Step 2: Construct a large kernel convolution module, including a convolution kernel size of 3D convolution and a 3D channel normalization function; Step 3: Construct an encoder of the affine registration network model, perform 5 layers of downsampling in the encoder, the input of the encoder is the target image and the heart template image, each downsampling layer contains a common convolutional layer module and a large kernel convolutional module for feature superposition, where the heart template image and the target image are feature spliced ​​on the batch; Step 4: Construct a deep circular feature accumulator CA module; Step 5: insert the deep circular feature accumulator CA module after the second downsampling layer in the encoder; Step 6: Construct a decoder of the affine registration network model, wherein the decoder is used to decode the feature map after 5 layers of downsampling to obtain an affine registration template image; S2: constructing a second-stage deformable registration network model, wherein the deformable registration network model is an LKU-net network model; obtaining a heart template image and a target image; inputting the heart template image and the target image into an affine registration network model optimization training; and aligning features of the heart template image and the target image; S3: inputting the target image into the trained affine registration network model to obtain an affine registration template image; S4: Obtain a target image and an affine registration template image; input the target image and the affine registration template image into the second stage of deformation registration network model optimization training to obtain a deformation registration template image; S5: performing a label fusion process based on the deformable registration template image to determine the mask segmentation result of the target image; The label fusion result is the average value of the voxel probability of the segmentation mask image of the deformable registration template image output by the deformable registration network model in the second stage, and the average value is converted into the mask segmentation result of the target image through the argmax function.

2. The unsupervised semantic segmentation method based on deep circle detection according to claim 1, characterized in that: The deep circular feature accumulator CA module is used to distinguish the heart from the background in the image and transform it into a circular feature map corresponding to the heart; the circular feature map includes a gradient vector feature and a gradient numerical feature; The gradient vector feature is obtained by accumulating the gradient of the feature map at each voxel; The gradient value feature is obtained by summing the values ​​of the feature map at each voxel.

3. The unsupervised semantic segmentation method based on deep circle detection according to claim 2, characterized in that: The calculation formulas of the gradient vector feature and the gradient numerical feature are: ; ; ; ; ; ; ; ; ; ; ; ; ; ; in, Represents the accumulated gradient vector features; Represents the accumulated gradient numerical features; Represents a feature map; Represents gradient features; represents the sampling network; represents a sampling network with opposite gradient directions; represents the kernel function; x represents the x direction; y represents the y direction; H represents the height of the feature map; W represents the width of the feature map; represents the normalized gradient in the x direction; Represents the normalized gradient in the y direction; Represents function mapping ; Indicates the value in the x direction; Indicates the value in the y direction; Represents the characteristic information of sampling points in the sampling network; Represents the characteristic information of the sampling points in the x direction in the sampling network; Represents the characteristic information of the sampling points in the y direction in the sampling network; Represents the feature information of sampling points in the sampling network with opposite gradient directions; Represents the feature information of the sampling points in the x direction in the sampling network with opposite gradient directions; Represents the characteristic information of the sampling points in the y direction in the sampling network with opposite gradient directions; N represents the maximum value of the sampling network size H, W; Represents a very small number used to avoid division by 0 during normalization; represents the Hadamard product.

4. The unsupervised semantic segmentation method based on deep circle detection according to claim 1, characterized in that: The working process of the decoder includes: Step 1: Construct a transposed convolution module and restore the feature map to an output image of the same size as the input target image through transposed convolution upsampling; Step 2: After upsampling the first layer, extract key points based on the feature map and obtain the first affine field; Step 3: Obtain a feature map of another scale by upsampling again and extract the second key point and the second affine field, and obtain the affine field of the affine registration network model after information fusion of the first affine field and the second affine field; the affine field includes the deformation direction and deformation size of the key point, and the heart template image is affine transformed through the affine field of the affine registration network model to preliminarily align the heart template image with the circular anatomical features of the target image; Step 4: After 4 upsamplings, the feature map is restored to an affine registration template image of the same size as the input target image.

5. The unsupervised semantic segmentation method based on deep circle detection according to claim 1, characterized in that: The affine registration network model is trained using a joint loss function of a mean square error loss function and a dice loss function, and the calculation formula of the joint loss function is: ; ; ; in, represents the joint loss function; represents the mean square error loss function; represents the dice loss function; Represents the i-th output image result of the network; represents the i-th real image; n represents the number of images; a represents the real label; b represents the predicted mask segmentation result.

6. The unsupervised semantic segmentation method based on deep circle detection according to claim 1, characterized in that: The target image and the affine registration template image are input into a deformable registration network model for optimization training, and the optimal parameters of the deformable registration network model are obtained through a gradient descent optimization algorithm.

7. The unsupervised semantic segmentation method based on deep circle detection according to claim 1, characterized in that: The deformable registration network model is optimized using a second joint loss function of normalized cross-correlation loss and divergence bi-norm regularization. The calculation formula of the second joint loss function is: ; ; in, represents the second joint loss function; represents the first hyperparameter; represents the second hyperparameter; represents the normalized cross-correlation loss function; represents the intensity of the i-th voxel in the deformed motion image; express The average intensity of represents the intensity of the i-th voxel in the deformed fixed image; express The average intensity of u A deformation field representing the deformation registration network model, wherein the deformation field includes a deformation direction and a deformation magnitude of the key point, and further deforms the key point to further align the circular anatomical features of the heart template image with the target image; Represents a gradient operation.

8. The unsupervised semantic segmentation method based on deep circle detection according to claim 4, characterized in that: S5 includes: Step 1: The trained deformable registration network model of the target image outputs 5 deformable registration template images, and the 5 deformable registration template images are used as segmentation mask images output by the network; Step 2: Calculate the average value of the voxel probabilities of the five segmentation mask images. The calculation formula is: ; in, represents the average voxel probability of the i-th segmentation mask image; represents the i-th segmentation mask image predicted based on the j-th heart template image; N represents the number of heart template images; The voxel probability averages of the five segmentation mask images are fused through the argmax function to obtain the target mask segmentation result; the calculation formula of the argmax function is: ; in, express ; x represents any set; y represents a completely ordered set; S represents the set of voxel probability averages of all segmentation mask images; Indicates and.

Citation Information

Patent Citations

  • Deformable medical image registration method and system

    CN113763442A

  • Computational techniques for three-dimensional reconstruction and multi-labeling of serially sectioned tissue

    WO2022272014A1