CT image metal artifact removal method based on self-supervised training
Through the combination of self-supervised training method, T-encoder and local enhancement module, the problem of difficult to obtain label data in metal artifact removal tasks in CT images is solved, the generalization ability and removal effect of the model are improved, and efficient Artifact removal.
Patent Information
- Application Number
- CN202310560393.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-18
- Publication Date
- 2024-11-22
AI Technical Summary
The existing metal artifact removal methods for CT images rely on supervised neural networks, and label data is difficult to train with real artifacts, and the difference in the distribution of synthetic artifacts and real artifacts data leads to insufficient generalization of the model.
Using self-supervised training method, using the pre-task and downstream tasks, the real artifact CT images are used for pre-training and fine-tuning, and the network model of T-type encoder and local enhancement module is constructed, and the mask reconstruction and artifact separation module are used. Remove metal artifacts.
The generalization ability and artifact removal effect of the model are improved, and metal artifacts can be effectively removed, ensuring the clarity of the image structure and low noise.
Smart Images

Figure CN119006623A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of medical image processing, and in particular to a method for removing metal artifacts from CT images based on self-supervised training. Background Art
[0002] At present, CT imaging is one of the most widely used medical imaging technologies. With its advantages of high resolution, high sensitivity, and multi-level, CT plays a huge role different from traditional X-ray examination. CT imaging technology has become an important detection and diagnosis method in modern medicine and industry, and plays an increasingly important role. The principle of CT imaging is based on the difference in the attenuation degree of X-rays when penetrating different tissues. However, when metal implants exist in the human body, they absorb a large number of X-ray photons, causing the path of the beam to be destroyed. Metal implants such as dental fillings, artificial hip joints, spinal implants, or surgical clips block the penetration of X-rays, causing the projection data received by the detector to be damaged and missing. When reconstructing the image, a large number of stripes and shadow areas will be generated around the metal, which is the metal artifact. Because metal artifacts can cover up important anatomical details and lead to misdiagnosis, they can also lead to inaccurate tissue density measurements, affecting the accuracy of radiotherapy plans and other medical procedures. Many methods have been proposed to remove metal artifacts in CT images and improve image quality. These methods are generally divided into three categories: projection domain data completion, iterative reconstruction, and image post-processing. For example, a method of completing the missing projection data by first removing the data of the metal track in the projection domain through threshold segmentation, and then using linear interpolation to complete the missing projection data; correcting the error between the projection data and the theoretical data multiple times through continuous iteration, using the guidance function to start from the initial image until the update and optimization of the reconstructed image without artifacts; and a deep learning method of obtaining a deep neural network with nonlinear mapping from artifacts to artifacts-free through training based on a large amount of data. The present invention belongs to a self-supervised deep learning metal artifact removal method.
[0003] Thanks to the development of deep learning technology, the medical imaging field has been using this technology to implement tasks such as diagnosis and classification, enhancement and reconstruction, and tissue and organ segmentation. Metal artifact removal methods based on deep learning have also achieved results that surpass traditional projection domain completion and iterative reconstruction and higher computational efficiency, but these methods still have some problems. Most of the existing methods are based on supervised neural networks, and the supervision process needs to obtain labels corresponding to the input data for constraints. For the task of removing metal artifacts from CT images, the data input to the neural network is CT images with metal artifacts, and its label should be the corresponding CT image without metal artifacts. However, it is impossible to construct such a training pair with real artifact CT images collected from clinical patients, so most of the existing supervised methods use synthetic artifact data for training. Due to the complexity of metal artifacts, the difference in data distribution between synthetic artifacts and real artifacts means that synthetic data cannot cover all situations, and the model trained with synthetic artifacts is not general enough. Using unlabeled real artifacts for feature extraction can enable the model to establish a more comprehensive mapping relationship, thereby improving the generalization ability of the network and the artifact removal ability. Unsupervised learning can be trained on a real artifact CT image data set without labels, and finds rules from the input unlabeled training data to discover special data structures. However, the training of unsupervised methods is difficult, and it will face more uncertainty and instability than supervised methods. Therefore, how to use real artifact CT images in clinical data for effective and stable training is an urgent problem to be solved. Self-supervised learning methods can use the data's own structure and intrinsic information to construct training targets, capture the underlying structure and pattern in the data, so that the feature representation obtained by self-supervised learning has strong generalization performance and can be applied to various downstream tasks. Many self-supervised training methods have appeared in the field of machine vision to improve the effects of target detection, recognition and classification tasks. However, CT images describe the attenuation coefficients of different tissues inside the patient, and the artifact removal task has no correlation with natural image processing. Therefore, the self-supervised training method designed for natural images cannot be directly applied to CT image metal artifact correction. At present, no suitable self-supervised training method has been developed for the task of removing metal artifacts from CT images. The present invention designs a network model for completing the self-supervised training of the task of removing metal artifacts from CT images. Summary of the invention
[0004] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a deep learning metal artifact correction method that can use real artifact CT image data for feature extraction. The training process of the present invention includes two stages: a pre-task (pre-training) and a downstream task (fine-tuning). Pre-training is supervised by automatically generated pseudo labels. The pre-task is performed using real artifact CT image data, without the need for corresponding artifact-free labels. The present invention sets the pre-task target as mask reconstruction, that is, using a mask to randomly destroy the input data, and then using it as a label for model training to extract the features of tissue structure and metal artifacts. During the fine-tuning process, synthetic artifact data is used for end-to-end training to complete artifact correction. The present invention constructs a self-supervised training model including a T-type codec and a local enhancement (LeFF) module, and uses an artifact separation module in the downstream task to increase the effect of the decoder in removing metal artifacts. Both stages use the gradient descent method to build a network model and produce a training data set to train the network model and optimize the parameters.
[0005] The present invention solves the existing technical problems by adopting the following technical solutions:
[0006] A method for removing metal artifacts from CT images based on self-supervised training comprises the following steps:
[0007] Step 1: Construct a dataset for two training stages: the pre-task and the downstream task.
[0008] Step 2: Build a metal artifact correction network model. The pre-trained network model includes a T-type encoder and a decoder; the fine-tuned network model includes a T-type encoder obtained from the pre-training, an artifact separation module, and a decoder with reset weights.
[0009] Step 3: Perform pre-task mask data processing.
[0010] Step 4: Complete pre-training of the previous task.
[0011] Step 5: Update the network model parameter weights and save the weights of the T-encoder when the loss function converges.
[0012] Step 6: Fine-tune the model to complete the downstream task using the weights saved in step 5, the T-decoder with reset weights, and the artifact separation module.
[0013] Step 7: Update the network model parameter weights and save the model when the loss function converges.
[0014] Step 8: Use the optimal network model to remove metal artifacts affected by CT, import the CT image containing metal artifacts into the optimal network model for calculation, and obtain the CT image after artifact removal.
[0015] Furthermore, the specific implementation method of step 1 is: using CT image data (real artifacts) with metal artifacts taken from patients with metal implants in their bodies in clinical practice as a pre-task training data set; using a simulation method to add metal artifacts as labels and synthetic artifact CT to conventional CT images as a downstream task training data set.
[0016] Furthermore, the specific implementation method of step 3 is: firstly, the real artifact CT image of the input pre-task is processed, and in order to extract its features, a mask is used to mask the input data:
[0017] x=ye(1-Mask), (1)
[0018] Where y represents the real artifact CT image; Mask is a binary matrix of the mask area, with a size of h×w. Multiple Masks are used randomly, and their sizes do not exceed the overall size of y. The process of establishing self-supervised input replaces all the masks of the real artifact CT image with 0 values.
[0019] Furthermore, the specific implementation method of step 4 is: the pre-training process of completing the previous task is
[0020] y′=f pre (x) = f pre [ye(1-Mask)], (2)
[0021] where f pre (·) represents the nonlinear function mapping formed by the network structure of the encoder and decoder during pre-training, and its goal is to encode and reconstruct the real artifact CT image. x represents the input of the model; y′ represents the output of the model; during pre-training, the input x of the network is generated by mask calculation through its training label y, and y is the real artifact CT data, thereby establishing a self-supervised training framework;
[0022] Step 4.1: Input x into the model. First, a convolutional layer with a kernel size of 3×3 is used to process x into a feature map with a dimension equal to C, denoted as X with a size of H×W×C.
[0023] Step 4.2: Divide the feature map X into image blocks of size M. M is generally a common factor of the feature map size H×W. If the image block cannot be divided evenly, add 0 to the image block in the last row and column to align the size of M×M. Then expand each image block into a vector denoted by x i , i represents the vector number, there are HW / C 2 vector. i The size is M 2 ×C.
[0024] Step 4.3: x iInput T-type encoder. First, calculate the self-attention mechanism, through three matrices of learnable weights and P Q , P K and P V The data is projected into Q, K and V, which share parameters in different image blocks. The calculation of data projection is shown in formula (3):
[0025] {Q, K, V} = {x i P Q , x i P K , x i P V}, (3)
[0026] Where P represents different local windows, and the self-attention calculation in each window is shown in formula (4)
[0027]
[0028] where d k =C i / k is the scaling factor to ensure gradient stability; B is a learnable inductive bias parameter.
[0029] Step 4.4, define the LN layer:
[0030]
[0031] Among them, α, β are optimizable parameters; ε is a constant; μ is the mean; σ is the variance; x LN is the input; y LN is the output.
[0032] Step 4.5, define the WMSA layer, calculate the attention mechanism in parallel multiple times and concatenate the results to achieve:
[0033]
[0034] where W is the output transformation matrix.
[0035] Step 4.6, define the LeFF layer, first increase the vector dimension to N, and then reshape it to size The feature map X L Size X L Use a convolution kernel size of 3×3 for convolution. Finally, use a convolution of size 1×1 again to restore the number of channels and then restore the dimension of the vector through the residual connection:
[0036] Y L =LeFF(X L )=Conv(DWConv(X L))+X L , (7)
[0037] where Y L is the output of the LeFF layer
[0038] Step 4.7: The first step feature extraction process WMSA of the T-type encoder is shown in formula (8):
[0039]
[0040] Where X l-1 is the input of the encoder; X′ l is the calculation of the intermediate quantity; X l The first step of the encoder features extraction output.
[0041] Step 4.8: The second feature extraction process of the T-type encoder SWMSA will shift the feature extraction window backward by ([M / 2], [M / 2]) pixels, as shown in formula (9):
[0042]
[0043] Where X l It is the input of the second feature extraction and the output of the first feature extraction; X′ l+1 is the calculation of the intermediate quantity; X l The second step feature extraction output of the encoder is also the output of a T-type encoder.
[0044] Step 4.9: The network model consists of three T-type encoders and three T-type decoders with the same structure. l After downsampling, it is input into the next T-type encoder and repeated three times. Upsampling and decoding are performed in the same way. The jump connection process of the feature map is as follows Figure 2 As shown. Finally, a convolution kernel size of 3×3 is used for convolution and the result is output.
[0045] Furthermore, the specific implementation method of step 5 is: calculate the loss function between the input and the output, if the loss function does not converge, adjust the learning rate to optimize the network parameters, if the loss function converges, stop the training, and save the parameter weights of the encoder in the pre-training. The loss function of the pre-training process is shown in formula (10):
[0046]
[0047] where Ω(·) is the pixel position being masked.
[0048] Furthermore, the specific implementation method of step 6 is as follows: the synthetic artifact CT image is input into the model, and the encoder uses the weights saved in step 5 and does not update them again. The model adds an artifact separation module, and the other model structures are the same as those in step 4. For the input X of the artifact separation module B The size is H×W×C, which is first reshaped into a feature vector x of size HW×C B , H and W represent the length and width of the feature map, and C represents the number of channels. Using the three parameter learnable matrix W Q , W K , W V Calculate Q B =x B W Q , K B =x B W K and V B =x B W V It is used to establish cross-channel feature association information. The cross-channel self-attention calculation process is defined as:
[0049]
[0050] in, is a cross-channel attention transfer matrix of size C×C; D(·) is a convolutional layer used to aggregate cross-channel information, λ is a learnable scaling parameter, and the result of the artifact separation module is input into the symmetric decoder, which requires random initialization parameters.
[0051] Furthermore, the specific implementation method of step 7 is: calculating the mean square error between the synthetic artifact CT input in the fine-tuning process and the artifact-free label for making the synthetic artifact CT as the loss function. If the loss function does not converge, the learning rate is adjusted to optimize the network model parameters. If the loss function converges, the training is stopped and the network model is saved.
[0052] The advantages and positive effects of the present invention are:
[0053] The present invention proposes a method for removing metal artifacts from CT images based on self-supervised training. The framework enhances the generalization ability of the model by extracting the features of real artifact CT images. The designed self-supervised pre-task solves the problem that there are no corresponding labels for CT images of patients with metal implants collected in the clinic. It has considerable potential in removing metal artifacts, can correct most metal artifacts, and ensure that the tissue structure of the corrected image is clear and the noise content is low. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the embodiments of the present invention 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 invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0055] Figure 1 A flow chart of a method for removing metal artifacts from CT images based on self-supervised training is provided for an embodiment of the present invention;
[0056] Figure 2 A network model structure diagram of a CT image metal artifact removal method based on self-supervised training is provided for an embodiment of the present invention. DETAILED DESCRIPTION
[0057] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.
[0058] At present, most methods of metal artifact removal are based on supervised neural networks, and the supervision process needs to obtain labels corresponding to the input data for constraints. For the task of removing metal artifacts from CT images, the data input to the neural network is CT images with metal artifacts, and its label should be the corresponding CT images without metal artifacts. However, it is impossible to construct such training pairs with real artifact CT images collected from clinical patients. Self-supervised training methods can use unlabeled real artifacts for feature extraction, which can enable the model to establish a more comprehensive mapping relationship, thereby improving the generalization ability of the network and the ability to remove artifacts.
[0059] In order to solve the above problems, the present invention provides a method for removing metal artifacts from CT images based on self-supervised training. Figure 1 As shown, the following steps are included:
[0060] Step 1: Construct a dataset for two training stages: the pre-task and the downstream task.
[0061] In this embodiment, a real artifact CT image dataset is used for pre-training to complete the pre-task, and a total of 5,000 CT images with real artifacts are included. For the dataset for fine-tuning downstream tasks, 2,000 CT images with synthetic artifacts are included. It should be noted that both the synthetic data and the real data come from the subsets CLINIC and CLINIC-metal in the clinical CT image dataset CTPelvic1K. The real artifact CT image dataset was produced by randomly selecting 5,000 slices of 103 patients from CLINIC-metal for pre-training. The metal in the real artifact CT image was segmented at a threshold of 2500HU. For the synthetic artifact CT image, the experiment used MATLAB software to simulate metal artifacts, and inserted metal implants into the artifact-free CT image in the sub-dataset CLINIC. A projection transformation was performed to simulate the sinusoidal diagram and CT image destroyed by metal. The synthetic experiment used a fan-beam polychromatic X-ray source, and the expected number of photons of the incident X-ray was set to 2×107. The X-ray source was positioned 59.5 cm from the center of rotation, and beam hardening and Poisson noise were taken into account. The sampling condition was set to uniformly distribute 367 detector boxes between 0 and 360° and sample 361 projection views, resulting in a sinusoidal image of size 367 × 361. A total of 2,000 artifact-free CT images were randomly selected, and 40 metal masks were used to synthesize a synthetic metal artifact CT image dataset.
[0062] Step 2: Construct a metal artifact correction network model.
[0063] In this embodiment, if Figure 2 As shown, the pre-trained network model includes a T-type encoder and a decoder; the fine-tuned network model includes a T-type encoder obtained from the pre-training, an artifact separation module, and a decoder with reset weights.
[0064] Step 3: Perform pre-task mask data processing.
[0065] In this embodiment, the mask area is a binary matrix with a size of 16×16, and 10 masks are randomly used. It should be noted that the process of establishing the self-supervisory input replaces all the masks of a part of the real artifact CT image with 0 values.
[0066] Step 4: Complete the pre-training of the previous task. The specific data processing is as follows:
[0067] Step 4.1: The image input to the network model passes through a convolution layer with a convolution kernel size of 3×3 to obtain a feature map for preliminary feature extraction;
[0068] Step 4.2, the feature map is evenly divided into image blocks. If the image blocks cannot be divided evenly, zeros are added to the image blocks in the last row and column to align the size, and then the image blocks are expanded into vectors;
[0069] Step 4.3: Project the vector in step 4.2 into query, key and value, Q, K and V, through three parameter-adjustable matrices, and then perform matrix multiplication on the transpose of the query and the key, divide the product by the scale factor and add it to the inductive bias parameter, and then perform matrix multiplication on the sum through the SoftMax function and the value to obtain the self-attention matrix. The calculation formula is:
[0070]
[0071] Step 4.4, define the LN layer, subtract the input data from the mean μ of the data, divide the result by the square root of the sum of the square of the variance σ and the constant coefficient ε, and then linearly combine the result with the optimizable parameters α and β to obtain normalization:
[0072]
[0073] Then input the result into step 4.2;
[0074] Step 4.5: Apply the self-attention matrix calculation described in step 4.3 multiple times in parallel to obtain the result, then concatenate the multiple results in series and multiply them with the transposed matrix to obtain the WMAS result:
[0075]
[0076] Step 4.6, define the local enhancement module LeFF, first perform the normalization operation of step 4.4 on the vector in step 4.5, then increase the dimension of the result to match the reshaping operation, reshape the result into a feature map in matrix form, convolve the feature map using a convolution layer with a convolution kernel size of 3×3, and then use a convolution of size 1×1 to restore the number of channels and restore the dimension of the vector through residual connection:
[0077] Y L =LeFF(X L )=Conv(DWConv(X L ))+X L ;
[0078] Step 4.7: For the feature graph of the input T-type encoder, first perform the normalization calculation described in step 4.4, then perform step 4.5 and connect with the residual, perform step 4.4 again on the result, and then perform step 4.6 and connect with the residual to obtain the first step feature extraction result of the T-type encoder:
[0079]
[0080] Step 4.8: Shift the window divided in step 4.7, and perform step 4.7 to calculate SWMSA on the first step feature extraction result again to obtain the T-type encoder output:
[0081]
[0082] Step 4.9, the model includes the above three T-type encoders and the T-type decoder with the same structure, and finally uses a convolution layer with a convolution kernel size of 3×3 to obtain the output result of the model.
[0083] In this step, the CT image size of the input network model is 256×256, the feature information is encoded through 3×3 deep convolution and ReLU activation function, the output channel is 16, the image block size is 64×64 in integer form, and the input data is divided into 16 image blocks and then flattened into vectors.
[0084] Step 5: Update the network model parameter weights and save the weights of the T-encoder when the loss function converges.
[0085] In this step, the network model is trained using the AdamW optimizer to optimize the model parameters. The parameters of the AdamW optimizer are set to (0.9, 0.999), and the weight decay is 0.02. The pre-training is performed for 1000 epochs, during which the cosine decay strategy is used to reduce the learning rate from the initial value of 2e-4 to 1e-6.
[0086] Step 6: Fine-tune the model to complete the downstream task using the weights saved in step 5, the T-decoder with reset weights, and the artifact separation module.
[0087] In this step, the fine-tuning process is performed for 800 epochs, during which the learning rate is set to 1e-6, and the fine-tuning learning rate decays linearly after 400 epochs.
[0088] Step 7: Update the network model parameter weights and save the model when the loss function converges.
[0089] In this step, the loss function is the mean square error loss, and the model is saved after running on two NVIDIA Tesla V100 GPU hardware platforms and PyTorch-1.10.2 software platform.
[0090] Step 8: Use the optimal network model to remove metal artifacts affected by CT, import the CT image containing metal artifacts into the optimal network model for calculation, and obtain the CT image after artifact removal.
[0091] In this step, the size of the CT image containing metal artifacts is adjusted to 256×256, the format is adjusted to a bin binary file, and the adjusted CT image is input into the optimal network model for calculation to obtain the CT image after removing the metal artifacts.
[0092] It should be emphasized that the embodiments described in the present invention are illustrative rather than restrictive. Therefore, the present invention includes but is not limited to the embodiments described in the specific implementation manner. Any other implementation manners derived by those skilled in the art based on the technical solution of the present invention also fall within the scope of protection of the present invention.
Claims
1. A method for removing metal artifacts from CT images based on self-supervised training, characterized in that: The following steps are involved: Step 1: Construct datasets for two training stages: the pre-task and the downstream task. The pre-task dataset is used for pre-training, and the downstream task dataset is used for fine-tuning. Step 2, constructing a metal artifact correction network model; Step 3: Mask the previous task data set; Step 4: Use the mask data to complete the pre-training of the network model's pre-task, where the goal of the pre-task is to restore the mask data; Step 5: Update the network model parameter weights and save the T-encoder parameter weights when the pre-task loss function converges; Step 6: Fine-tune the model using downstream task datasets. Step 7: Update the network model parameter weights and save the model parameter weights when the downstream task loss function converges; Step 8: Use the optimal network model to remove metal artifacts affected by CT, import the CT image containing metal artifacts into the optimal network model for calculation, and obtain the CT image after artifact removal.
2. The method for removing metal artifacts from CT images based on self-supervised training according to claim 1, characterized in that: The specific implementation method of step 1 is: using CT image data with metal artifacts taken from patients with metal implants in their bodies as a pre-task training data set, where the artifact data is real artifacts; using a simulation method to add metal artifacts as labels and synthetic artifact CT to conventional CT images as a downstream task training data set.
3. The method for removing metal artifacts from CT images based on self-supervised training according to claim 1, characterized in that: The training model includes a T-type codec and a local enhancement module in pre-training, and includes a T-type encoder obtained through pre-training, a T-type decoder with reset weights, a local enhancement module, and an artifact separation module in fine-tuning.
4. The method for removing metal artifacts from CT images based on self-supervised training according to claim 3, characterized in that: The step 4 comprises the following specific steps: Step 4.1: The image input to the network model passes through a convolution layer with a convolution kernel size of 3×3 to obtain a feature map for preliminary feature extraction; Step 4.2, the feature map is evenly divided into image blocks. If the image blocks cannot be divided evenly, zeros are added to the image blocks in the last row and column to align the size, and then the image blocks are expanded into vectors; Step 4.3: Project the vector in step 4.2 into query, key and value, Q, K and V, through three parameter-adjustable matrices, and then perform matrix multiplication on the transpose of the query and the key, divide the product by the scale factor and add it to the inductive bias parameter, and then perform matrix multiplication on the sum through the SoftMax function and the value to obtain the self-attention matrix. The calculation formula is: Step 4.4, define the LN layer, subtract the input data from the mean μ of the data, divide the result by the square root of the sum of the square of the variance σ and the constant coefficient ε, and then linearly combine the result with the optimizable parameters α and β to obtain normalization: Then input the result into step 4.2; Step 4.5: Apply the self-attention matrix calculation described in step 4.3 multiple times in parallel to obtain the result, then concatenate the multiple results in series and multiply them with the transposed matrix to obtain the WMAS result: Step 4.6, define the local enhancement module LeFF, first perform the normalization operation of step 4.4 on the vector in step 4.5, then increase the dimension of the result to match the reshaping operation, reshape the result into a feature map in matrix form, convolve the feature map using a convolution layer with a convolution kernel size of 3×3, and then use a convolution of size 1×1 to restore the number of channels and restore the dimension of the vector through residual connection: Y L =LeFF(X L )=Conv(DWConv(X L ))+X L ; Step 4.7: For the feature graph of the input T-type encoder, first perform the normalization calculation described in step 4.4, then perform step 4.5 and connect with the residual, perform step 4.4 again on the result, and then perform step 4.6 and connect with the residual to obtain the first step feature extraction result of the T-type encoder: Step 4.8: Shift the window divided in step 4.7, and perform step 4.7 to calculate SWMSA on the first step feature extraction result again to obtain the T-type encoder output: Step 4.9, the model includes the above three T-type encoders and the T-type decoder with the same structure, and finally uses a convolution layer with a convolution kernel size of 3×3 to obtain the output result of the model.
5. The method for removing metal artifacts from CT images based on self-supervised training according to claim 3, characterized in that: The artifact separation module added in the step 6 fine-tuning model specifically includes: reshaping the result of the three-time T-type encoder into a feature vector, using three parameter-adjustable projection matrices to obtain the projection, key and value of the artifact separation module, performing matrix multiplication on the transpose of the key and the projection to obtain an attention transfer matrix with a size of the number of channels, dividing the matrix by the scaling parameter and passing it through the SoftMax function, performing matrix multiplication on the value and the result and passing it through a convolutional layer D to obtain the output of the artifact separation module:
6. The method for removing metal artifacts from CT images based on self-supervised training according to any one of claims 1 to 5, characterized in that: The pre-task guides the model training according to the loss function of the calculated output and the corresponding real artifact data according to claim 2, and the pre-task loss function is the L1 loss of the output result of the masked position and the original value:
7. The method for removing metal artifacts from CT images based on self-supervised training according to any one of claims 1 to 5, characterized in that: The downstream task guides model training based on the mean square error between the calculated artifact removal result and the synthetic artifact label described in claim 2.
8. The method for removing metal artifacts from CT images based on self-supervised training according to claim 7, characterized in that: When the mean square error loss converges, the optimal parameters of the model are saved. Under the saved optimal parameters, the network model can be used to remove metal artifacts in CT images.
Citation Information
Cited By
Multi-physics field monitoring CT metal artifact suppression method based on artificial intelligence
CN120521987A
Safety metal artifact removal reasoning method based on physical constraint
CN121414925A
A physics-constrained safe metal artifact reduction inference method
CN121414925B
4D ultrasonic quality control method, device and program product
CN121904565A
