Semi-supervised intracranial aneurysm segmentation method based on semantic enhancement and transformation consistency

By introducing a multi-level feature fusion attention module and an uncertainty-aware averaging teacher framework in intracranial aneurysm segmentation, the problems of foreground and background imbalance and loss of detailed information in intracranial aneurysm segmentation are solved, achieving higher performance. Segmentation fineness and consistency, utilizing unlabeled data improves diagnostic efficiency.

CN118570470APending Publication Date: 2024-08-30HEBEI UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410650046.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing intracranial aneurysm segmentation tasks face the problem of foreground and background imbalance, which makes segmentation difficult, and detailed information is lost during the encoding process, affecting segmentation accuracy. Semi-supervised methods do not fully utilize unlabeled data.

Method used

A semi-supervised intracranial aneurysm segmentation method based on semantic enhancement and transformation consistency is adopted. By introducing a multi-level feature fusion attention module and an uncertainty-aware averaging teacher framework, a teacher model and a student model are constructed, and multi-level feature fusion attention is used. The module enhances the feature extraction capabilities of the decoder and optimizes model consistency under different perturbations through an uncertainty-aware averaging teacher framework.

Benefits of technology

It improves the precision and consistency of intracranial aneurysm segmentation, makes full use of unlabeled data, reduces dependence on labeled data, and improves diagnostic efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570470A
    Figure CN118570470A
Patent Text Reader

Abstract

The invention discloses a semi-supervised intracranial aneurysm segmentation method based on semantic enhancement and transformation consistency, and the method comprises the steps: constructing a multi-stage feature fusion attention module, and embedding the multi-stage feature fusion attention module in a V-Net network to construct a teacher model and a student model; each of the two models comprises an encoder, a decoder and a multi-stage feature fusion attention module, output features of the first k-1 stages of the encoder are input into the multi-stage feature fusion attention module, and an output feature C1 of the first stage of the encoder sequentially passes through batch normalization, activation and channel attention modules to obtain a feature M1; sequentially performing convolution, batch normalization, activation, channel attention module and bilinear interpolation on output features C2, C3,..., Ck-1 of the other stages of the encoder to obtain features M2, M3,..., Mk-1; the features M1, M2,..., Mk-1 are spliced and then subjected to convolution to obtain output features of the multi-level feature fusion attention module; and performing model training based on an uncertainty perception average teacher framework of transformation consistency, and taking the trained student model as a segmentation model. Details and edge information in shallow features are fully extracted, semantic enhancement is realized, and segmentation fineness is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of medical image segmentation, and specifically is a semi-supervised intracranial aneurysm segmentation method based on semantic enhancement and transformation consistency. Background Art

[0002] Intracranial aneurysms are mostly abnormal bulges that appear on the walls of intracranial arteries. Rupture of intracranial aneurysms usually causes subarachnoid hemorrhage and is one of the cerebrovascular diseases with a high mortality and morbidity rate. The risk of rupture of intracranial aneurysms is related to the size, location and shape of the aneurysm, so early detection and treatment are crucial to prevent rupture of intracranial aneurysms. With the continuous improvement and development of medical imaging technology, the detection and diagnosis of intracranial aneurysms have become more and more accurate and reliable.

[0003] Since intracranial aneurysms account for a relatively small proportion of images, even experienced radiologists need to spend a long time to diagnose, which is prone to missed diagnoses and misdiagnoses. Different radiologists may have different diagnostic results, and the results have poor consistency. The application of computer-aided diagnosis can assist doctors in making initial judgments, effectively improving the accuracy and efficiency of doctors' diagnoses.

[0004] With the development of deep learning technology, deep learning algorithms have shown great potential in medical imaging diagnosis and analysis, which can assist doctors in completing diagnosis and speed up diagnosis. The existing intracranial aneurysm segmentation task mainly faces two challenges: 1) There is an imbalance problem between foreground and background in intracranial aneurysm images, that is, the proportion of intracranial aneurysms in the entire image is small, which makes segmentation difficult; in addition, during the encoding process, as the downsampling proceeds, the detailed information in the features will gradually be lost, and the low-level features obtained by encoding are not fully extracted and utilized during the decoding process, thereby reducing the segmentation accuracy. 2) In the semi-supervised intracranial aneurysm segmentation task, unlabeled data is not fully utilized. Therefore, the present invention proposes a semi-supervised intracranial aneurysm segmentation method based on semantic enhancement and transformation consistency. Summary of the invention

[0005] In view of the deficiencies in the prior art, the technical problem that the present invention intends to solve is to propose a semi-supervised intracranial aneurysm segmentation method based on semantic enhancement and transformation consistency.

[0006] The present invention solves the technical problem by adopting the following technical solution:

[0007] A semi-supervised intracranial aneurysm segmentation method based on semantic enhancement and transformation consistency, characterized in that the method comprises the following steps:

[0008] Step 1: Obtain a number of brain CT images containing intracranial aneurysms to form a data set, and preprocess the data set;

[0009] Step 2: Based on the V-Net network, a multi-level feature fusion attention module is introduced to construct a teacher model and a student model; the teacher model and the student model both include an encoder, a decoder and a multi-level feature fusion attention module located between the encoder and the decoder, and the encoder and the decoder both include k stages;

[0010] The output features of the first k-1 stages of the encoder are input into the multi-level feature fusion attention module. The output feature C1 of the first stage of the encoder is sequentially subjected to batch normalization, activation and channel attention modules to obtain feature M1; the output features C2, C3, …, C k-1 After 1×1×1 convolution, batch normalization, activation, channel attention module and bilinear interpolation respectively, features M2, M3, …, M are obtained. k-1 ; The features M1,M2,…,M k-1 After splicing, it undergoes 1×1×1 convolution to obtain the output features of the multi-level feature fusion attention module;

[0011] The output features of the multi-level feature fusion attention module are concatenated with the output features of the penultimate stage of the encoder and used as the input features of the last stage of the encoder;

[0012] Step 3: Based on the uncertainty-aware average teacher framework with transformation consistency, the teacher model and the student model are trained synchronously, and the trained student model is used as the segmentation model for the segmentation of intracranial aneurysms.

[0013] Furthermore, for model training, the input images of the student model are the labeled image and the unlabeled image with added perturbations. The unlabeled image with added perturbations is used as the input image of the teacher model after random transformation. During the training process, the training loss is calculated by formula (3);

[0014] L=L s +λ(t)L c #(3)

[0015] Where, L s To monitor the loss, L c is the unsupervised loss, λ(t) is an ascending weighted function that controls the trade-off between supervised and unsupervised losses;

[0016] The calculation formula of supervision loss is:

[0017] L s =L ce (f(x i ;θ),y i)#(4)

[0018] In the formula, x i represents the input image, y i Indicates label, L ce is the cross entropy loss function, f(·) represents the student model, and θ is the weight parameter of the student model;

[0019] The formula for calculating the unsupervised loss is:

[0020]

[0021] In the formula, π i represents the random transformation operation, f v (x i ; θ; ξ) represents the segmentation result of the student model for the vth voxel of the unlabeled image, ξ is the perturbation added to the unlabeled image input to the student model, θ' is the weight parameter of the teacher model, ξ' is the perturbation added to the unlabeled image input to the teacher model, and f v (π i (x i ; θ'; ξ')) represents the segmentation result of the teacher model for the vth voxel of the input image, is the indicator function, u v is the uncertainty at the vth voxel in the uncertainty map, and H is the uncertainty threshold.

[0022] Furthermore, the input image is randomly forward-passed N times in the teacher model to obtain N segmentation results. Each segmentation result is passed through the softmax function to obtain the probability that each segmentation result belongs to each class. The uncertainty map is obtained through formula (5);

[0023]

[0024] In the formula, is the probability that the nth segmentation result belongs to the cth category.

[0025] Furthermore, each stage of the encoder includes convolution, batch normalization and activation operations, and the input features of each stage are residually connected with the features after the activation operation of the stage to obtain the output features of each stage; the output features of the previous stage are downsampled to obtain the input features of the next stage; each stage of the decoder includes convolution, batch normalization and activation operations, and the input features of each stage are residually connected with the features after the activation operation of the stage to obtain the output features of each stage; the output features of the previous stage are upsampled to obtain the input features of the next stage.

[0026] Furthermore, the channel attention module is expressed as:

[0027]

[0028] Where F is the input feature of the channel attention module, AvgPool and MaxPool represent the average pooling operation and the maximum pooling operation respectively, MLP represents the shared fully connected layer, σ represents the Sigmoid activation function, and F a represents the attention coefficient, × represents multiplication in the channel dimension, and P is the output feature of the channel attention module.

[0029] Compared with the prior art, the present invention has the following beneficial effects:

[0030] (1) The present invention proposes a multi-level feature fusion attention module, which is embedded between the encoder and the decoder to construct the teacher model and the student model. Since the shallow features extracted by the encoder contain relatively accurate details and edge information about the target, the multi-level feature fusion attention module can combine the important feature information in the features of different levels extracted by the encoder, make full use of the details and edge information in the shallow features, and effectively enhance the semantics of the shallow features, so that the features obtained by the decoder and the shallow features extracted by the encoder are more effectively fused. In the decoder, as the feature resolution increases, it is often accompanied by the loss of details and edge information. The multi-level feature fusion attention module can obtain more details and edge information while ensuring that the decoder restores the feature resolution, thereby improving the precision of the segmentation result. At the same time, the channel attention mechanism in the multi-level feature fusion attention module can effectively improve the model's attention to important channel information, so that the model can focus on feature information with larger weights, so that the decompression path can obtain more useful feature information, reduce the influence of redundant feature information on the decompression path, and help the model to restore details and edge information while maintaining accurate positioning of intracranial aneurysms and achieve accurate segmentation.

[0031] (2) The present invention uses the uncertainty-aware average teacher framework for model training to ensure that the model has consistent segmentation results under different disturbances. In order to make full use of unlabeled data, the unlabeled images with added disturbances are used as the input images of the student model, and the unlabeled images with added disturbances and random transformations are used as the input images of the teacher model. The transformation consistency is introduced to measure the loss between the segmentation results of the teacher model and the segmentation results of the student model on the unlabeled image, which further improves the consistency of the segmentation results of the model under different disturbances and transformations, and improves the segmentation accuracy of the model.

[0032] (3) The present invention uses a semi-supervised approach. In the case of a small amount of labeled data and a large amount of unlabeled data, the unlabeled data is fully utilized to reduce the model's dependence on labeled data and improve the segmentation performance of intracranial aneurysms. The method of the present invention can effectively assist doctors in diagnosing intracranial aneurysms, reduce the diagnosis time, and improve the diagnosis efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is the overall flow chart of the present invention;

[0034] Figure 2 It is the image preprocessing flow chart of the present invention;

[0035] Figure 3 A network structure diagram of a teacher model and a student model of the present invention;

[0036] Figure 4 It is a structural diagram of the multi-level feature fusion attention module of the present invention;

[0037] Figure 5 Schematic diagram of the channel attention module of the present invention;

[0038] Figure 6 This is a diagram of the training architecture based on the transformation consistency model of the present invention. DETAILED DESCRIPTION

[0039] Specific embodiments are given below in conjunction with the accompanying drawings. The specific embodiments are only used to introduce the technical solutions of the present invention in detail and are not intended to limit the protection scope of the present application.

[0040] The present invention provides a semi-supervised intracranial aneurysm segmentation method based on semantic enhancement and transformation consistency (hereinafter referred to as method, see Figures 1 to 6 ), including the following steps:

[0041] Step 1: Obtain a number of brain CT images containing intracranial aneurysms to form a data set, and preprocess the data set;

[0042] Several brain CT images with intracranial aneurysms were obtained to form a data set. The resolution of each brain CT image was 512×512×D, where D was the number of slices. The brain CT images were preprocessed, including removing useless information, HU value clipping, and channel value normalization. In order to reduce the influence of useless information in the image, the brain CT images were first clipped along the skull contour, each slice was clipped to 360×360 pixels, and the lowest 10 slices and the top 10 slices were removed. The final resolution of the brain CT image was 360×360×F, where F was the number of slices after clipping. The HU values ​​(Hounsfield unit scale) of the brain CT images were cropped, and the brain CT images were divided into three input channels of 0-100, 100-200, and 200-800 according to the HU values, and spliced ​​in the channel dimension. The final size of the brain CT image was 360×360×3F, and the values ​​of the three channels in the brain CT images were normalized to [0,1].

[0043] Step 2: Based on the V-Net network, a multi-level feature fusion attention module (MFAM) is introduced to build a teacher model and a student model with the same network structure.

[0044] like Figure 3 As shown in the figure, the network structure of the teacher model and the student model is similar to the V-Net network, including an encoder, a decoder and a multi-level feature fusion attention module. The multi-level feature fusion attention module is located between the encoder and the decoder; the encoder serves as a compression path and the decoder serves as a decompression path. The multi-level feature fusion attention module further processes the features of different levels extracted by the encoder, extracts more accurate detail information and edge information from the output features of different levels of the encoder, and makes the model pay more attention to useful channel information. The output features of the multi-level feature fusion attention module are concatenated with the output features of the third stage of the encoder as the input features of the last stage of the encoder.

[0045] The encoder includes multiple stages (four in this embodiment), each stage includes convolution, batch normalization and activation operations, the convolution kernel size of the convolution operation of each stage is 5×5×5, the step size is 1, the padding is 2, and the activation operation adopts the PReLu activation function; the input features of each stage are residually connected with the output features of the activation operation of the stage to obtain the output features of each stage; the output features of the previous stage are down-sampled to obtain the input features of the next stage, and the down-sampling operation is implemented by convolution with a convolution kernel size of 2×2×2 and a step size of 2.

[0046] The decoder contains multiple stages with the same number as the encoder stage. Each stage contains convolution, batch normalization and activation operations. The convolution kernel of the convolution operation in each stage is 5×5×5, the step size is 1, and the padding is 2. The activation operation uses the PReLu activation function. The input features of each stage are residually connected with the output features of the activation operation of that stage to obtain the output features of each stage. The output features of the previous stage are upsampled to obtain the input features of the next stage.

[0047] like Figure 4 As shown, the input features of the multi-level feature fusion attention module are the features C1, C2, and C3 extracted in the first, second, and third stages of the encoder; feature C1 undergoes batch normalization, Relu activation function, and channel attention module to obtain feature M1 of the same dimension as C1; features C2 and C3 undergo 1×1×1 convolution, batch normalization, Relu activation function, channel attention module, and bilinear interpolation, respectively, to obtain features M2 and M3 of the same size as feature M1; 1×1×1 convolution is used to adjust the number of channels, and the channel attention module makes the model pay more attention to useful channel information, and bilinear interpolation is used for upsampling; features M1, M2, and M3 are concatenated, and then the number of channels is adjusted by 1×1×1 convolution to obtain the output features of the multi-level feature fusion attention module. The multi-level feature fusion attention module can be expressed by formula (1):

[0048]

[0049] In the formula, BN represents batch normalization operation, Relu represents Relu activation function, CAM represents channel attention module, Conv 1×1×1 represents 1×1×1 convolution, BI represents bilinear interpolation, and [;] represents concatenation operation;

[0050] like Figure 5 As shown, the input feature F of the channel attention module is subjected to average pooling and maximum pooling respectively. The features obtained by the two pooling operations are passed through a shared fully connected layer to obtain features F1 and F2. Features F1 and F2 are added to obtain a feature with a dimension of 1×1×C, and then the attention coefficient F is obtained through the Sigmoid activation function. a ; The attention coefficient F a Multiply it with the input feature F in the channel dimension to obtain the output feature of the channel attention module. The channel attention module can be expressed by formula (2):

[0051]

[0052] Where AvgPool and MaxPool represent average pooling and maximum pooling operations respectively, MLP represents a shared fully connected layer, σ represents a Sigmoid activation function, × represents multiplication in the channel dimension, and P is the output feature of the channel attention module.

[0053] Step 3: Based on the uncertainty-aware average teacher framework with transformation consistency, the teacher model and the student model are trained synchronously, and the trained student model is used as the segmentation model for the segmentation of intracranial aneurysms;

[0054] The input images of the student model are labeled images and unlabeled images with added perturbations, and the input images of the teacher model are unlabeled images with added perturbations, so that the model can make full use of unlabeled data; the segmentation results of the student model on the labeled images are used to calculate the supervision loss, and the segmentation results of the student model on the unlabeled images are used to calculate the uncertainty-aware transformation consistency loss.

[0055] In this embodiment, the disturbance includes but is not limited to adding noise. The random transformation includes but is not limited to one of scaling, rotation and flipping transformations, the scaling ratios of the scaling transformation are 0.7 and 1.4, the rotation transformation includes four angles of 0°, 90°, 180° and 270°, and the flipping transformation includes horizontal flipping and vertical flipping.

[0056] During the training process, the training loss is calculated using the loss function of formula (3), which consists of supervised loss and unsupervised loss.

[0057] The supervised loss is calculated using the cross entropy loss on the labeled data and the consistency regularization loss on the labeled and unlabeled data.

[0058] L=L s +λ(t)L c #(3)

[0059] Where, L s To monitor the loss, L c is the unsupervised loss, λ(t) is the ascending weighted function that controls the trade-off between supervised and unsupervised losses, and uses a Gaussian warm-up function Where t represents the current training step length, t max is the maximum training step size. At the beginning of training, the training is mainly guided by the supervision loss, so λ(t) is very small.

[0060] The supervised loss is used to evaluate the quality of the model on the labeled image. The cross entropy loss is used to represent the supervised loss. The calculation formula of the supervised loss is expressed as:

[0061] L s =L ce (f(x i ;θ),yi )#(4)

[0062] In the formula, x i represents the input image, y i Indicates label, L ce is the cross entropy loss function, f(·) represents the student model, and θ is the weight parameter of the student model.

[0063] In order to achieve reliable guidance for updating the student model parameters, the uncertainty map is calculated through Monte Carlo loss to ensure that the unreliable segmentation results of the teacher model are filtered out when calculating the uncertainty-aware transformation consistency loss. That is, all the segmentation results of the teacher model are passed through the softmax function to obtain a probability vector; the prediction entropy is used as the uncertainty measure to obtain the uncertainty map, which can be expressed as formula (5):

[0064]

[0065] In the formula, is the probability that the nth segmentation result belongs to the cth class, N is the number of segmentation results obtained by the input image after N random forward passes in the teacher model, and u is the uncertainty map.

[0066] The unsupervised loss is the uncertainty-aware transformation consistency loss, which is used to measure the consistency loss between the segmentation results of the teacher model and the student model for the same unlabeled image under different perturbations and transformations. The difference between the segmentation results of the teacher model and the student model is optimized by the uncertainty-aware transformation consistency loss. The calculation formula of the uncertainty-aware transformation consistency loss Lc is expressed as:

[0067]

[0068] In the formula, π i represents the random transformation operation, f v (x i ; θ; ξ) represents the segmentation result of the student model for the vth voxel of the unlabeled image, ξ is the perturbation added to the unlabeled image input to the student model, θ' is the weight parameter of the teacher model, ξ' is the perturbation added to the unlabeled image input to the teacher model, and f v (π i (x i ; θ'; ξ')) represents the segmentation result of the teacher model for the vth voxel of the input image, is the indicator function, u v is the uncertainty at the vth voxel in the uncertainty map u, and H is the uncertainty threshold.

[0069] The network can generate more reliable output results for unlabeled data. cWhen , the uncertainty estimated by the teacher model is used to exclude unreliable pixels and only reliable predictions are retained, so that the student model is more reliably supervised and the teacher model is encouraged to generate more reliable outputs and more reliably utilize unlabeled data to improve the performance of the model.

[0070] During the training process, the weight parameters of the teacher model are updated using the exponential moving average (EMA) according to the weight parameters of the student model. The update formula is shown in formula (7);

[0071] θ′ t =αθ′ t-1 +(1-α)θ t #(7)

[0072] In the formula, θ' t ,θ' t-1 are the weight parameters of the teacher model at training step t and t-1, θ t is the weight parameter of the student model in the training step t, and α is the balance coefficient.

[0073] Any matters not described in the present invention are applicable to the prior art.

Claims

1. A semi-supervised intracranial aneurysm segmentation method based on semantic enhancement and transformation consistency, characterized in that: The method comprises the following steps: Step 1: Obtain a number of brain CT images containing intracranial aneurysms to form a data set, and preprocess the data set; Step 2: Based on the V-Net network, a multi-level feature fusion attention module is introduced to construct a teacher model and a student model respectively; the teacher model and the student model both include an encoder, a decoder and a multi-level feature fusion attention module located between the encoder and the decoder, and the encoder and the decoder both include k stages; The output features of the first k-1 stages of the encoder are input into the multi-level feature fusion attention module. The output feature C1 of the first stage of the encoder is sequentially subjected to batch normalization, activation and channel attention modules to obtain feature M1; the output features C2, C3, …, C k-1 After 1×1×1 convolution, batch normalization, activation, channel attention module and bilinear interpolation respectively, features M2, M3, …, M are obtained. k-1 ; The features M1,M2,…,M k-1 After splicing, it undergoes 1×1×1 convolution to obtain the output features of the multi-level feature fusion attention module; The output features of the multi-level feature fusion attention module are concatenated with the output features of the penultimate stage of the encoder and used as the input features of the last stage of the encoder; Step 3: Based on the uncertainty-aware average teacher framework with transformation consistency, the teacher model and the student model are trained synchronously, and the trained student model is used as the segmentation model for the segmentation of intracranial aneurysms.

2. The semi-supervised intracranial aneurysm segmentation method based on semantic enhancement and transformation consistency according to claim 1, characterized in that: For model training, the input images of the student model are the labeled image and the unlabeled image with added perturbations. The unlabeled image with added perturbations is used as the input image of the teacher model after random transformation. During the training process, the training loss is calculated by formula (3); L=L s +λ(t)L c #(3) Where, L s To monitor the loss, L c is the unsupervised loss, λ(t) is an ascending weighted function that controls the trade-off between supervised and unsupervised losses; The calculation formula of supervision loss is: L s =L ce (f(x i ;θ),y i )#(4) In the formula, x i represents the input image, y i Indicates label, L ce is the cross entropy loss function, f(·) represents the student model, and θ is the weight parameter of the student model; The formula for calculating the unsupervised loss is: In the formula, π i represents the random transformation operation, f v (x i ; θ; ξ) represents the segmentation result of the student model for the vth voxel of the unlabeled image, ξ is the perturbation added to the unlabeled image input to the student model, θ' is the weight parameter of the teacher model, ξ' is the perturbation added to the unlabeled image input to the teacher model, and f v (π i (x i ;θ'; ξ')) represents the segmentation result of the teacher model for the vth voxel of the input image, is the indicator function, u v is the uncertainty at the vth voxel in the uncertainty map, and H is the uncertainty threshold.

3. The semi-supervised intracranial aneurysm segmentation method based on semantic enhancement and transformation consistency according to claim 2 is characterized in that: The input image is randomly forward-passed N times in the teacher model to obtain N segmentation results. Each segmentation result is passed through the softmax function to obtain the probability that each segmentation result belongs to each category. The uncertainty map is obtained through formula (5); In the formula, is the probability that the nth segmentation result belongs to the cth category.

4. The semi-supervised intracranial aneurysm segmentation method based on semantic enhancement and transformation consistency according to any one of claims 1 to 3, characterized in that: Each stage of the encoder includes convolution, batch normalization and activation operations, and the input features of each stage are residually connected with the features after the activation operation of the stage to obtain the output features of each stage; The output features of the previous stage are downsampled to obtain the input features of the next stage; Each stage of the decoder includes convolution, batch normalization and activation operations, and the input features of each stage are residually connected with the features after the activation operation of the stage to obtain the output features of each stage; The output features of the previous stage are upsampled to obtain the input features of the next stage.

5. The semi-supervised intracranial aneurysm segmentation method based on semantic enhancement and transformation consistency according to claim 1, characterized in that: The channel attention module is expressed as: Where F is the input feature of the channel attention module, AvgPool and MaxPool represent the average pooling operation and the maximum pooling operation respectively, MLP represents the shared fully connected layer, σ represents the Sigmoid activation function, and F a represents the attention coefficient, × represents multiplication in the channel dimension, and P is the output feature of the channel attention module.