A method for removing image artifacts
By generating an adversarial network model and multiple loss functions in a bidirectional loop, combined with a multi-scale generator and a discriminator, the problem of weak generalization ability and unstable reconstruction effect of the CTA coronary image motion artifact removal method is solved, and a more efficient pseudo-artifact removal method is achieved. Shadow removal and image reconstruction effects.
Patent Information
- Application Number
- CN202011440467.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-11
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-12-11
AI Technical Summary
Existing methods for removing motion artifacts from CTA coronary images have weak generalization capabilities and unstable reconstruction results. Moreover, traditional methods require cropping the ROI area first, and the reconstruction process is complex, resulting in slow image reconstruction speed.
Using a bidirectional cyclic generative adversarial network model, the network is trained through multiple loss functions (including discriminator loss function, generator joint loss function, cyclic loss function and self-consistent loss function), and the combination of multi-scale generator and discriminator is used to improve image reconstruction. effect, and apply structural similarity and peak signal-to-noise ratio constraints in the ROI region.
It significantly improves the reconstruction effect of motion artifacts in coronary artery images. It can remove motion artifacts to a great extent by combining semantic information at different scales and depths, improve the recovery effect of key parts, and improve the clarity of the image.
Smart Images

Figure CN112446873B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medical image processing, and in particular to a method for removing image artifacts. Background Art
[0002] CTA stands for non-invasive coronary artery imaging technology, which is an important direction of the current development of CT technology. It is widely used because of its advantages that traditional CT examinations do not have, such as non-invasiveness and easy operation. In recent years, the rapid development of multi-layer spiral has improved the temporal resolution of CT scanning, so that the problem of patients holding their breath has been solved. However, due to the rapid heart rate, the scanning pick-up changes are difficult to control, which may still cause the formation of motion artifacts, resulting in unclear vascular imaging, affecting the clinical observation of blood vessels in medicine, and further affecting medical diagnosis. Therefore, the research on artifact removal in CTA coronary images has far-reaching scientific significance and application prospects.
[0003] Hongfeng Ma et al. published an article in 2019 titled "Evaluation of Motion Artifact Metrics for Coronary CT Angiography". The article lists the situations in which motion artifacts are generated and analyzes the various forms of artifacts. The motion artifact matrix is constructed by listing different artifact situations within the ROI, and then the artifact situation is comprehensively evaluated by the low-intensity area score and the low-intensity score, and the motion artifact image is reconstructed and repaired through matrix transformation.
[0004] Shipeng Xie et al. published an article, "Artifact Removal using ImprovedGoogLeNet for Sparse-view CT Reconstruction", in which GoogleNet was used for artifact removal and reconstruction. The overall network contains 3 convolutional layers and 23 Inception module structures, which are combined to form a 26-layer GoogleNet network for image reconstruction.
[0005] Problems with existing artifact removal methods include:
[0006] (1) Existing technologies for reconstructing artifact images can repair known artifact forms, but their generalization ability is weak and the reconstruction effect is not very stable.
[0007] (2) Since normal CT imaging requires a large amount of data to be collected, the image reconstruction speed is slow.
[0008] (3) Using traditional methods requires cutting out the ROI area first, and the reconstruction process is more complicated. Summary of the invention
[0009] The present invention proposes a method for removing image artifacts to solve the problems of weak generalization ability and unstable reconstruction effect in existing methods for removing motion artifacts in CTA coronary images.
[0010] The technical solution of the present invention to solve the above problem is: a method for removing image artifacts, comprising the following steps:
[0011] S1: Get the training data set, where
[0012] The training data set includes: an image training data set with motion artifacts and an image training data set without motion artifacts;
[0013] S2: Construct a bidirectional recurrent generative adversarial network model;
[0014] S3: Design multiple loss functions for bidirectional recurrent generative adversarial network models;
[0015] S4: Training a Bidirectional Recurrent Generative Adversarial Network Model
[0016] Inputting the training data set into the bidirectional recurrent generative adversarial network model, training the bidirectional recurrent generative adversarial network model based on the multiple loss functions, and obtaining a trained bidirectional recurrent generative adversarial network model;
[0017] S5: Input the image with motion artifacts into the trained bidirectional recurrent generative adversarial network model to obtain an image without motion artifacts.
[0018] Preferably, the bidirectional recurrent generative adversarial network model includes a first discriminator, a second discriminator, a first multi-scale generator and a second multi-scale generator; wherein,
[0019] The first multi-scale generator is used to generate an image without motion artifacts from an image with motion artifacts;
[0020] The second multi-scale generator is used to generate an image with motion artifacts from an image without motion artifacts;
[0021] The first discriminator is used to distinguish between input and generated images with motion artifacts;
[0022] The second discriminator is used to discriminate between input and generated motion artifact-free images.
[0023] Preferably, the multiple loss function is composed of a discriminator loss function, a generator joint loss function, a cycle loss function and a self-consistent loss function: wherein,
[0024] The discriminator loss function is expressed as:
[0025]
[0026] The generator joint loss function is expressed as:
[0027] L * (G) = λ g *L(G)+λ ssim *L SSIM +λ psnr *L PSNR
[0028] The cycle loss function is expressed as:
[0029]
[0030] The self-consistent loss function is expressed as:
[0031]
[0032] Among them: E(·) represents the expectation, x~* represents that the input follows a certain type of distribution, D(·) represents the output obtained after the discriminator, λ 1 Weight parameters for gradient panelty for wgan-gp;
[0033] λ g , ssim and λ psnr They represent the weight of the generator loss, the weight of the structural similarity constraint, and the weight of the peak signal-to-noise ratio constraint, respectively. L(G) represents the generator loss.
[0034] F represents the reference image used to input and generate the fake input image, and ||*|| represents the first-order norm.
[0035] Preferably, the first discriminator and the second discriminator have the same structure, wherein both structures include a convolution structure, a global average pooling layer and a fully connected layer; wherein the number of the convolution structures is greater than 1.
[0036] Preferably, the convolution structure is composed of a convolution layer, spectral normalization processing, BN processing and LeakyReLu processing, and the size of the convolution kernel in the convolution layer is 3×3 and the step size is 2.
[0037] Preferably, the first multi-scale generator and the second multi-scale generator have the same structure, wherein both structures include an encoding part, a central convolution part and a decoding part; wherein,
[0038] The encoding part includes multiple downsampling network layers, the decoding part includes multiple upsampling network layers, and the encoding part and the decoding part are cascaded with each other to fuse the features of the encoding part and the features of the decoding part.
[0039] Preferably, the structure of the downsampling network layer includes a convolution layer, a spectral normalization process, a BN process and a ReLu process;
[0040] The structure of the upsampling network layer includes bilinear difference processing, convolution layer and BN processing;
[0041] The structure of the central convolution part includes a convolution layer, a BN process and a RELU process.
[0042] Preferably, the initial learning rate of the first discriminator and the second discriminator is 1e-3, and the initial learning rate of the first multi-scale generator and the second multi-scale generator is 1e-4.
[0043] The present invention also provides an image artifact removal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the image artifact removal method.
[0044] The present invention also provides a computer-readable storage medium on which a computer program is stored, characterized in that the program executes a method for removing image artifacts when executed by a processor.
[0045] Compared with the prior art, the present invention has the following beneficial effects:
[0046] 1) The present invention adopts a multi-scale generator to improve the reconstruction effect of motion artifacts in coronary images. It can combine semantic information of multiple scales and depths to improve the reconstruction effect of the network and remove motion artifacts to a great extent.
[0047] 2) When designing multiple loss functions, the structural similarity and peak signal-to-noise ratio of the ROI area are used as constraints, and the loss function is designed jointly with the ground hole distance to improve the effect of key part recovery and eliminate the influence of motion artifacts in the generated CTA images. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 Generate an adversarial network graph for the bidirectional loop of the present invention;
[0049] Figure 2 is a schematic diagram of the structure of the first discriminator of the present invention;
[0050] Figure 3 is a schematic structural diagram of a first multi-scale generator of the present invention;
[0051] Figure 4This is a comparison diagram of image restoration results with motion artifacts in Example 1 of the present invention. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions 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 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 are within the scope of protection of the present invention. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention.
[0053] Embodiment 1: A method for removing CTA coronary artery artifacts, comprising the following steps:
[0054] Step 1: Obtain an image training dataset with motion artifacts and an image training dataset without motion artifacts, wherein the image training dataset with motion artifacts is input and the image training dataset without motion artifacts is target;
[0055] Step 2: Build a bidirectional recurrent generative adversarial network model
[0056] 21: Design the first discriminator and the second discriminator
[0057] like Figure 2 As shown in the figure, the first discriminator and the second discriminator have the same structure, and are used to distinguish the correct image from the image to be repaired. The first discriminator includes 5 convolutional layers, one global average pooling layer, and one fully connected layer. The size of the convolution kernel is 3×3, the step size is 2, and the size of the zero padding is 1. Five convolutional layers are used in the first discriminator and the second discriminator to make the fitting ability of the discriminator exceed the generator model.
[0058] 22: Design the first multi-scale generator and the second multi-scale generator
[0059] like Figure 3 As shown in FIG. 1 , the structures of the first multiscale generator and the second multiscale generator are the same. The first multiscale generator includes a four-sampling network layer, a central convolution layer, and a four-sampling network layer; the four-downsampling network layer is the encoding part, and the four-downsampling network layer is the decoding part. In the process of encoding and decoding, the generated feature maps are cascaded. In this way, the deep semantic information and the shallow position information can be integrated to extract more comprehensive image features.
[0060] The structure of the downsampling network layer includes convolutional layer, spectral normalization processing, BN processing and ReLu. The use of Relu can make the generated image free of checkerboard artifacts. The structure of the upsampling network layer includes bilinear difference processing, convolutional layer and BN processing.
[0061] 23: Design a bidirectional recurrent generative adversarial network model
[0062] like Figure 1 As shown, G ab and G ba Two sets of generators (i.e., the first multi-scale generator and the second multi-scale generator) and D a and D b Two sets of discriminators (i.e., the first discriminator and the second discriminator), where G ab and D a It is used to generate an image without motion artifacts from an image with motion artifacts, and G ba and D b We want to generate an image with motion artifacts from an image without motion artifacts, so we use G ab The process of removing artifacts from the artifact image can be realized, and using G ba The simulation process of clear image artifact generation can be realized. A bidirectional recurrent generative adversarial network is designed to control the direction of image generation and reconstruction, transforming it into a controllable direction and avoiding the converted image being in a completely unrelated field with the original image.
[0063] 3: Designing multiple loss functions for bidirectional recurrent generative adversarial network models
[0064] In the overall design process of the bidirectional recurrent generative adversarial network model, the loss function specifically includes the following parts:
[0065] 1. The network is built based on the generative adversarial network, so the core loss function is the adversarial loss. In view of the fact that the original generative adversarial loss easily leads to unstable training of the generator, resulting in problems such as gradient disappearance, the ground motion distance is used to replace the original adversarial loss. The generator L(G) and the discriminator loss L(D) are expressed as:
[0066]
[0067]
[0068] Among them, E(·) represents the expectation, x~* represents that the input follows a certain type of distribution, D(·) represents the output after the discriminator, and λ 1is the weight parameter of gradient panelty for wgan-gp, which is set to 1 in the experiment. In order to ensure that more detailed information of coronary arteries is restored during training, the ROI of the blood vessels is selected, and the structural similarity (SSIM) and peak signal-to-noise ratio (PSNR) constraints are applied to the ROI area. The formulas of peak signal-to-noise ratio and structural similarity are expressed as follows:
[0069]
[0070]
[0071] In the structural similarity formula, μ and σ represent the mean and standard deviation of the image respectively, C 1 =(k 1 L) 2 and C 2 =(k 2 L) 2 are two small constant terms to avoid the denominator being 0, where L represents the maximum pixel value of the image.
[0072] The final generator loss is expressed as:
[0073] L * (G) = λ g *L(G)+λ ssim *L SSIM +λ psnr *L PSNR
[0074] Where L * (G) is the final generator joint loss, where λ g ,λ ssim With λ psnr They are respectively represented as the weights of the generator loss, structural similarity constraint, and peak signal-to-noise ratio constraint. In the experiment, their values are 1.0, -1.0, and -10.0, respectively.
[0075] 2. Since a bidirectional cyclic generative adversarial network is used, a bidirectional network constraint is adopted, which includes two parts: cyclic loss and self-consistent loss. The cyclic loss function is expressed as:
[0076]
[0077] Where F is used to input the reference image and generate the fake input image, and ||*|| represents the first-order norm. The self-consistent loss is expressed as:
[0078]
[0079] The self-consistent loss indicates that the generator is used to generate the converted image. If the converted image is sent to the generator, it should still generate the image. Only in this way can it be proved that the generator has the ability to generate the target image type, indicating its self-consistency. The overall loss function design includes the constraints of the above parts.
[0080] 31: All the above networks are optimized using ADAM. The initial learning rate of the first discriminator and the first discriminator is 1e-3, and the initial learning rate of the first multi-scale generator and the first multi-scale generator is 1e-4. They are trained using the cosine annealing mechanism to improve their convergence effect.
[0081] Step 4: Input the images with motion artifacts and the images without motion artifacts as input images and target images respectively into the bidirectional recurrent generative adversarial network model for training to obtain the trained bidirectional recurrent generative adversarial network model.
[0082] Step 5: Input the image with motion artifacts into the trained bidirectional recurrent generative adversarial network model to obtain an image without motion artifacts.
[0083] Embodiment 2: An image artifact removal device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the image artifact removal method of embodiment 1 is implemented.
[0084] Embodiment 3: A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method for removing image artifacts of embodiment 1 is performed.
[0085] The above descriptions are merely embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related system fields, are also included in the protection scope of the present invention.
Claims
1. A method for removing image artifacts, characterized in that: The following steps are involved: S1: Get the training data set, where The training data set includes: an image training data set with motion artifacts and an image training data set without motion artifacts; S2: Construct a bidirectional recurrent generative adversarial network model; S3: Design multiple loss functions for bidirectional recurrent generative adversarial network models; The multiple loss functions are composed of a discriminator loss function, a generator joint loss function, a cycle loss function and a self-consistent loss function: The discriminator loss function is expressed as: The generator joint loss function is expressed as: L * (G)=λ g *L(G)+λ ssim *L SSIM +λ psnr *L PSNR The cycle loss function is expressed as: The self-consistent loss function is expressed as: Where: E(·) represents the expectation, x~* represents that the input obeys a certain type of distribution, D(·) represents the output after the discriminator, and λ1 is the weight parameter of the gradient penalty of wgan-gp; λ g , ss im and λ psnr They represent the weight of the generator loss, the weight of the structural similarity constraint, and the weight of the peak signal-to-noise ratio constraint, respectively. L(G) represents the generator loss. L SSIM Indicates structural similarity, L PSNR represents the peak signal-to-noise ratio; F represents the reference image used to input and generate the fake input image, and ||*|| represents the first-order norm; S4: Training a bidirectional recurrent generative adversarial network model; Inputting the training data set into the bidirectional recurrent generative adversarial network model, training the bidirectional recurrent generative adversarial network model based on the multiple loss functions, and obtaining a trained bidirectional recurrent generative adversarial network model; The bidirectional recurrent generative adversarial network model includes a first discriminator, a second discriminator, a first multi-scale generator and a second multi-scale generator; wherein, The first multi-scale generator is used to generate an image without motion artifacts from an image with motion artifacts; The second multi-scale generator is used to generate an image with motion artifacts from an image without motion artifacts; The first discriminator is used to distinguish between input and generated images with motion artifacts; The second discriminator is used to discriminate between input and generated motion artifact-free images; S5: Input the image with motion artifacts into the trained bidirectional recurrent generative adversarial network model to obtain an image without motion artifacts.
2. The method for removing image artifacts according to claim 1, characterized in that: The first discriminator and the second discriminator have the same structure, wherein both structures include a convolution structure, a global average pooling layer and a fully connected layer; wherein the number of the convolution structures is greater than 1.
3. The method for removing image artifacts according to claim 2, characterized in that: The convolution structure is composed of a convolution layer, spectral normalization processing, BN processing and LeakyReLu processing. The size of the convolution kernel in the convolution layer is 3×3 and the step size is 2.
4. The method for removing image artifacts according to claim 1, characterized in that: The first multi-scale generator and the second multi-scale generator have the same structure, wherein both structures include an encoding part, a central convolution part and a decoding part; wherein, The encoding part includes multiple downsampling network layers, the decoding part includes multiple upsampling network layers, and the encoding part and the decoding part are cascaded with each other to fuse the features of the encoding part and the features of the decoding part.
5. The method for removing image artifacts according to claim 4, characterized in that: The structure of the downsampling network layer includes a convolution layer, a spectral normalization process, a BN process and a ReLu process; The structure of the upsampling network layer includes bilinear difference processing, convolution layer and BN processing; The structure of the central convolution part includes a convolution layer, a BN process and a RELU process.
6. The method for removing image artifacts according to claim 1, characterized in that: The initial learning rate of the first discriminator and the second discriminator is 1e-3, and the initial learning rate of the first multi-scale generator and the second multi-scale generator is 1e-4.
7. An image artifact removal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method for removing image artifacts according to any one of claims 1 to 6 is implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for removing image artifacts as described in any one of claims 1 to 6 is performed.
Citation Information
Patent Citations
A color face image illumination domain normalization method based on a cyclic generative adversarial network
CN109815893A
Multi-scale generative adversarial network-based shielded pedestrian re-identification method
CN110135366A
SAR image coloring method based on multi-domain cyclic consistency generative adversarial network
CN110197517A
CT super-resolution GAN constrained by the identical, residual and cycle learning ensemble (GAN-circle)
US20200111194A1
