A method, system, storage medium and electronic device for removing CT image artifacts
By constructing a CT motion artifact removal neural network and using deep learning technology to remove motion artifacts in CT images, the problem of image quality degradation in the existing technology is solved, rapid and effective artifact removal is achieved, and diagnostic accuracy is improved. .
Patent Information
- Application Number
- CN202410775480.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-06-17
AI Technical Summary
Motion artifacts in CT images cause image quality degradation due to patient breathing or other involuntary movements. Existing technologies are not effective in practical applications, especially due to the problem of detector frame rate and long reconstruction time.
CT motion artifact removal neural network is used to construct a deep learning network composed of basic blocks and stride blocks, combined with convolutional layers, channel attention units, spatial attention units and residual units, using L1 loss, frequency domain space Loss, VGGNet-19 layer feature map loss, basic GAN loss and discriminative loss based on spectral normalization U-net are trained to generate a target neural network to remove artifacts.
It achieves rapid removal of motion artifacts in CT images, improves image quality, enhances diagnostic accuracy, and reduces reconstruction time constraints.
Smart Images

Figure CN118351210B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of CT image artifact removal, and in particular relates to a CT image artifact removal method, system, storage medium and electronic equipment. Background Art
[0002] CT (Computed Tomography) is a computer tomography scan that uses precisely collimated X-ray beams, gamma rays, ultrasound, etc., together with extremely sensitive detectors to perform cross-sectional scans one after another around a certain part of the human body. It has the characteristics of fast scanning time and clear images, and can be used to detect a variety of diseases.
[0003] In CT scanning, motion artifacts are mainly manifested as a decrease in image quality caused by patient movement. Motion artifacts in CT images appear in various forms, such as blurring, smearing, ghosting, deformation of internal structures, or severe image distortion. Subsequently, diagnostic accuracy and radiological imaging effects may be severely reduced.
[0004] From the scanning level, motion artifacts can be avoided through fast scanning and motion compensation based on patient motion estimation. However, due to the limitations of detector frame rate, long reconstruction time and the need to access the original projection data, the application effect is not good in actual application scenarios. Summary of the invention
[0005] Based on this, an embodiment of the present invention provides a CT image artifact removal method, system, storage medium and electronic device, which aim to quickly remove motion artifacts in CT images caused by patient breathing or other involuntary movements.
[0006] A first aspect of an embodiment of the present invention provides a method for removing artifacts from a CT image, the method comprising:
[0007] Obtaining images with artifacts and corresponding images without artifacts to form a training set;
[0008] Constructing a CT motion artifact removal neural network, wherein the CT motion artifact removal neural network consists of a basic block and a stride block, the basic block consists of a convolutional layer, a channel attention unit, a spatial attention unit, and a residual unit, and the stride block consists of a convolutional layer and a residual unit;
[0009] Constructing a deep learning network loss, and inputting the images containing artifacts and the corresponding images without artifacts in the training set into the CT motion artifact removal neural network for training according to the deep learning network loss to obtain a target neural network;
[0010] Inputting the image to be processed into the target neural network to obtain a target image with artifacts removed;
[0011] The step of obtaining images containing artifacts and corresponding images without artifacts to form a training set comprises:
[0012] Obtaining an original image containing artifacts and a corresponding image without artifacts, and overlapping the original image containing artifacts and the corresponding image without artifacts to obtain an overlapped image;
[0013] Determining the overlap area in the overlap map according to the preset pixel value;
[0014] According to the pixel values corresponding to the overlapped area, controlling the overlapped area to expand outwards, and determining the corresponding expanded area;
[0015] Marking the extended area on the original image containing artifacts to obtain a processed image containing artifacts;
[0016] Marking the overlapped area on the original corresponding image without artifacts to obtain a processed image without artifacts;
[0017] The correspondence between the processed images containing artifacts and the processed corresponding images without artifacts is re-established, and after normalization, a training set is formed.
[0018] Furthermore, the step of obtaining images containing artifacts and corresponding images without artifacts to form a training set also includes:
[0019] Acquire an original image without artifacts, and generate a corresponding image with artifacts through artifact simulation to form a training set, wherein the artifact simulation is one or a combination of the first Radon transform processing, the second Radon transform processing, and the third Radon transform processing;
[0020] The first Radon transform processing specifically includes:
[0021] Project each pixel of the original artifact-free image into a parallel direction to obtain the first sinogram space data;
[0022] The first sinogram space data is translated and rotated, and the translated and rotated sinogram space data is inversely transformed to obtain a corresponding image containing artifacts;
[0023] The second Radon transform processing specifically includes:
[0024] According to a preset number of adjacent artifact-free images in the same acquired CT image sequence, each pixel of each image is projected into a corresponding parallel direction to obtain each second sinogram spatial data;
[0025] Selecting a portion of each second sinogram spatial data, performing a splicing operation according to a preset angle, and performing an inverse Radon transform process on the spliced sinogram spatial data to obtain a corresponding image containing artifacts;
[0026] The third Radon transform process specifically includes:
[0027] Project each pixel of the original artifact-free image into a parallel direction to obtain the third sinogram space data;
[0028] A preset mask is added to the third sinogram spatial data, and an inverse Radon transform is performed on the sinogram spatial data after the preset mask is added to obtain a corresponding image containing artifacts.
[0029] Furthermore, the step of controlling the overlapped area to expand outwards according to the pixel values corresponding to the overlapped area and determining the corresponding expanded area includes:
[0030] Step 1, obtaining pixel values of pixel points at the boundary of the overlapped area, and controlling the pixel points at the boundary of the overlapped area to synchronously extend outward by a preset step, and obtaining pixel values of the extended pixel points;
[0031] Step 2: judging whether the pixel value of the extended pixel point matches the pixel value corresponding to the overlapped area according to the pixel value corresponding to the overlapped area;
[0032] Step 3: If yes, determine whether the difference between the pixel value of the pixel point at the boundary of the overlapped area and the pixel value of the corresponding extended pixel point is less than a threshold;
[0033] Step 4: If yes, loop steps 1 to 3 until the difference between the pixel value of the pixel point at the boundary of the overlapping area and the pixel value of the corresponding extended pixel point is greater than or equal to the threshold, control the extension to stop, and determine the extended area.
[0034] Furthermore, the CT motion artifact removal neural network includes three basic blocks, one stride block, two basic blocks, one stride block and one basic block connected in sequence, and repeated 6 times, wherein the feature map of the convolution kernel in the convolution layer is set to 64.
[0035] Furthermore, in the step of constructing the deep learning network loss, the constructed deep learning network loss includes L1 loss, frequency domain space loss, VGGNet-19 layer feature map loss, basic GAN loss, and discriminant loss based on spectral normalization U-net.
[0036] Furthermore, according to the deep learning network loss, the images containing artifacts and the corresponding images without artifacts in the training set are input into the CT motion artifact removal neural network for training, and in the step of obtaining the target neural network, iterative updates are performed through the Adam optimizer with a learning rate of 0.001, wherein the network weights are updated for 200 cycles.
[0037] A second aspect of an embodiment of the present invention provides a CT image artifact removal system, the system comprising:
[0038] An acquisition module, used for acquiring images containing artifacts and corresponding images without artifacts to form a training set;
[0039] A construction module, used to construct a CT motion artifact removal neural network, wherein the CT motion artifact removal neural network consists of a basic block and a stride block, the basic block consists of a convolutional layer, a channel attention unit, a spatial attention unit, and a residual unit, and the stride block consists of a convolutional layer and a residual unit;
[0040] A training module, used for constructing a deep learning network loss, and according to the deep learning network loss, inputting the images containing artifacts and the corresponding images without artifacts in the training set into the CT motion artifact removal neural network for training to obtain a target neural network;
[0041] The input module is used to input the image to be processed into the target neural network to obtain a target image with artifacts removed.
[0042] A third aspect of the embodiments of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the CT image artifact removal method provided in the first aspect.
[0043] A fourth aspect of an embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the CT image artifact removal method provided in the first aspect is implemented.
[0044] A method, system, storage medium and electronic device for removing artifacts from CT images provided in an embodiment of the present invention form a training set by acquiring images containing artifacts and corresponding images without artifacts; constructing a CT motion artifact removal neural network, wherein the CT motion artifact removal neural network consists of a basic block and a stride block, the basic block consists of a convolutional layer, a channel attention unit, a spatial attention unit and a residual unit connected, and the stride block consists of a convolutional layer and a residual unit connected; constructing a deep learning network loss, and according to the deep learning network loss, inputting the images containing artifacts and the corresponding images without artifacts in the training set into the CT motion artifact removal neural network for training to obtain a target neural network; inputting the image to be processed into the target neural network to obtain a target image with artifacts removed, so as to quickly remove motion artifacts in the CT image caused by the patient's breathing or other involuntary movements. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A flowchart of a method for removing artifacts from a CT image provided in the first embodiment of the present invention;
[0046] Figure 2 Schematic diagram of the neural network for CT motion artifact removal;
[0047] Figure 3 is a schematic diagram of a basic block;
[0048] Figure 4 is a schematic diagram of the stride block;
[0049] Figure 5 A structural block diagram of a CT image artifact removal system provided in Embodiment 3 of the present invention;
[0050] Figure 6 This is a structural block diagram of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0051] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.
[0052] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.
[0053] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0054] Embodiment 1
[0055] See also Figure 1 , Figure 1 A flowchart of a method for removing artifacts from a CT image provided by the first embodiment of the present invention is shown, which specifically includes steps S01 to S04.
[0056] Step S01, obtaining images with artifacts and corresponding images without artifacts to form a training set.
[0057] Specifically, real CT motion artifact data and corresponding artifact-free data, that is, images with artifacts and corresponding images without artifacts, are collected, and the above-mentioned images with artifacts and corresponding images without artifacts are normalized. The expression is: Norm_val = (Real_val - Min) / (Max-Min), where Min is the minimum value of the CT image, Max is the maximum value of the CT image, Norm_val is the normalized value, and Real_val is the original pixel value of the CT image.
[0058] In some other embodiments of the present invention, it is also possible to obtain an original artifact-free image, and generate a corresponding artifact-containing image through artifact simulation to form a training set. Specifically, the original artifact-free image is first normalized by analyzing the statistical histogram of the pixel values of the image. The normalization method is consistent with the above. It can be understood that in order to generate the corresponding artifact-containing image, a low-artifact CT image can also be used.
[0059] In this embodiment, an original image without artifacts is obtained, and a corresponding image with artifacts is generated through artifact simulation to form a training set, wherein the artifact simulation is one or a combination of the first Radon transform processing, the second Radon transform processing, and the third Radon transform processing;
[0060] The first Radon transform process specifically includes:
[0061] Project each pixel of the original artifact-free image into a parallel direction to obtain the first sinogram space data;
[0062] The first sinogram space data is translated and rotated, and the translated and rotated sinogram space data is subjected to inverse Radon transform processing to obtain a corresponding image containing artifacts;
[0063] The second Radon transform process specifically includes:
[0064] According to a preset number of adjacent artifact-free images in the same acquired CT image sequence, each pixel of each image is projected into a corresponding parallel direction to obtain each second sinogram spatial data;
[0065] Selecting a portion of each second sinogram spatial data, performing a splicing operation according to a preset angle, and performing an inverse Radon transform process on the spliced sinogram spatial data to obtain a corresponding image containing artifacts;
[0066] The third Radon transform process specifically includes:
[0067] Project each pixel of the original artifact-free image into a parallel direction to obtain the third sinogram space data;
[0068] A preset mask is added to the third sinogram space data, and an inverse Radon transform is performed on the sinogram space data after the preset mask is added to obtain a corresponding image containing artifacts.
[0069] More specifically, the artifact simulation is a combination of one or more of the first Radon transform processing, the second Radon transform processing, and the third Radon transform processing, that is, it includes image domain artifact simulation and sinogram space artifact simulation. It should be noted that in the image domain artifact simulation, a single CT image can be rotated, translated, and then overlapped with the original image to obtain an approximate artifact image; the three axes of the CT image sequence can also be translated and rotated within a specific range, and motion artifact images of different degrees of severity can be obtained by controlling the range size, wherein the CT image sequence is a medical image. In the sinogram space artifact simulation, the CT image sequence can be subjected to a Radon (filtered projection) transform to obtain the corresponding sinogram space data. It should be noted that the Radon transform is a method of projecting a two-dimensional image into a high-dimensional space, which can project each pixel of the image into a parallel direction, and can be expressed as:
[0070] ;
[0071] in, is the projection angle, is the position parameter of the projection, is the original image.
[0072] Furthermore, the three axes of the sinogram space data are translated and rotated within a specific range. By controlling the range size and then performing an inverse Radon (filtered back projection) transform, motion artifact images of different severity levels can be obtained. It can be understood that the motion artifacts caused by patient movement or equipment vibration in the actual imaging process can be simulated; several adjacent single CT images of the same sequence can be subjected to a Radon transform to obtain data in the corresponding sinogram space, and a portion of each image is taken and spliced at an optional angle, and then a motion artifact image is obtained by performing an inverse Radon transform. Due to the discontinuity in the splicing process, the final generated image will have motion artifacts of different degrees and types; a single CT image can also be subjected to a Radon transform to obtain the corresponding sinogram space data, and masks of different forms, such as striped, grid-shaped or randomly distributed masks, are added to the sinogram space data for downsampling to obtain downsampled sinogram space data, and then a motion artifact image is obtained by performing an inverse Radon transform. It can be understood that the addition of masks is equivalent to simulating data loss or noise interference in the CT imaging process.
[0073] Step S02, constructing a CT motion artifact removal neural network, wherein the CT motion artifact removal neural network consists of a basic block and a stride block, the basic block is composed of a convolutional layer, a channel attention unit, a spatial attention unit and a residual unit connection, and the stride block is composed of a convolutional layer and a residual unit connection.
[0074] Among them, see Figure 2 , is a schematic diagram of the CT motion artifact removal neural network, which consists of a basic block and a stride block. The input is a CT motion artifact sequence, that is, an image containing CT motion artifacts, and the output is a CT deep learning reconstruction sequence, that is, an image without CT motion artifacts. The CT motion artifact removal neural network includes three basic blocks, a stride block, two basic blocks, a stride block, and a basic block connected in sequence, and repeated 6 times, where the feature map of the convolution kernel in the convolution layer is set to 64. Please refer to Figure 3 and Figure 4 , Figure 3 is a schematic diagram of the basic block. Figure 4 is a schematic diagram of a stride block, where the basic block consists of a convolutional layer, a channel attention unit (i.e. Figure 3 channel attention shown in ), spatial attention units (i.e. Figure 3The stride block consists of a convolutional layer and a residual unit, and the convolutional layer is also connected with an activation layer.
[0075] Step S03, constructing a deep learning network loss, and according to the deep learning network loss, inputting the images containing artifacts and the corresponding images without artifacts in the training set into the CT motion artifact removal neural network for training to obtain a target neural network.
[0076] It should be noted that the deep learning network loss is composed of one or more pixel feature losses, image feature losses, adversarial generation losses, and k-space feature losses. Pixel features include L1 loss, L2 loss, and SmoothL1loss; image feature losses include SSIM loss and PSNR loss; losses using public pre-trained network feature maps include but are not limited to neural networks trained based on CNN, Transformer, and Diffusion; adversarial generation losses are composed of trainable discriminator networks and GAN losses; the discriminator network can be composed of different VGG networks, or basic FCN networks, or U-net networks based on spectral normalization and batch normalization, or VIT segmentation networks based on Transformer; GAN losses can be basic GAN losses, WGAN losses, or RGAN losses.
[0077] In this embodiment, the constructed deep learning network losses include L1 loss, frequency domain space loss, VGGNet-19 layer feature map loss, basic GAN loss, and discriminant loss based on spectral normalization U-net.
[0078] Specifically, the expression of L1 loss is:
[0079] ;
[0080] in, To find l1 to l n The average value, x n Represented as the output of the neural network, y n Represents the high-quality images in the training set, and ln is l N The instantiation result of .
[0081] The expression of frequency domain spatial loss is:
[0082] ;
[0083] Among them, F r and F f All are frequency domain spatial data, F r is the real frequency domain spatial data, Ff To generate the frequency domain spatial data of the graph, M and N represent the width and height of the frequency domain respectively. Expressed as the frequency domain representation of real data, is represented as the frequency domain representation of the generated data and (u,v) are the coordinates in the frequency domain.
[0084] The expression of the feature map loss of VGGNet-19 layer is:
[0085] ;
[0086] Among them, C j is the number of channels in the jth layer, H j and W j are the height and width of the j-th layer feature map, F ij is the feature map of the jth layer of the network, P ij is the feature map of the jth layer of the target image.
[0087] The basic GAN loss expression is:
[0088] ;
[0089] The expression of the discriminant loss based on spectral normalization U-net is:
[0090] ;
[0091] in, and Both are expected value operators, used to calculate the expectation of data distribution and noise distribution. Indicates that for the real data distribution p data For each data sample x sampled in , calculate the expected value of the function logD(x), For the noise distribution p z For each noise sample z sampled in , the expected value of the function log(1-D(G(z))) is calculated, and the weights W of the discriminator D are spectrally normalized:
[0092] .
[0093] Furthermore, the images with artifacts and the corresponding images without artifacts in the training set were input into the CT motion artifact removal neural network for training, and iteratively updated by the Adam optimizer with a learning rate of 0.001, where the network weights were updated for 200 cycles to obtain the target neural network. Specifically, the first-order moment estimate (mean) and second-order moment estimate of the gradient were calculated. These estimates are used to adjust the learning rate of each parameter respectively; for the kth parameter θk , calculate the first-order moment estimate m k and the second-order moment estimate v k :
[0094] ;
[0095] ;
[0096] Where g is the gradient, β1 and β2 are exponential decay rates (set to 0.9 and 0.999) that control the first-order and second-order moment estimates; bias correction is then performed to ensure that the gradient estimate is not biased towards 0 in the early stages of training:
[0097] ;
[0098] ;
[0099] Finally update the parameter θ k :
[0100] ;
[0101] Where η is the learning rate, is a small number (e.g. 1e-8) to prevent division by zero, and k is the current iteration number.
[0102] Step S04: input the image to be processed into the target neural network to obtain a target image with artifacts removed.
[0103] In summary, the CT image artifact removal method in the above-mentioned embodiment of the present invention forms a training set by acquiring images containing artifacts and corresponding images without artifacts; constructing a CT motion artifact removal neural network, wherein the CT motion artifact removal neural network is composed of a basic block and a stride block, the basic block is composed of a convolutional layer, a channel attention unit, a spatial attention unit and a residual unit connected, and the stride block is composed of a convolutional layer and a residual unit connected; constructing a deep learning network loss, and according to the deep learning network loss, inputting the images containing artifacts and the corresponding images without artifacts in the training set into the CT motion artifact removal neural network for training to obtain a target neural network; inputting the image to be processed into the target neural network to obtain a target image with artifacts removed, so as to quickly remove motion artifacts in the CT image caused by the patient's breathing or other involuntary movements.
[0104] Embodiment 2
[0105] Embodiment 2 of the present invention also provides a method for removing artifacts from CT images, which differs from Embodiment 1 in that a different training set is constructed. Specifically, the steps of obtaining images containing artifacts and corresponding images without artifacts to form a training set include:
[0106] Obtaining an original image containing artifacts and a corresponding image without artifacts, and overlapping the original image containing artifacts and the corresponding image without artifacts to obtain an overlapped image;
[0107] According to the preset pixel value, the overlap area in the overlap image is determined. It can be understood that the preset pixel value can be a range of values, and the original image containing artifacts and the corresponding image without artifacts are basically grayscale images, and the pixel values are mainly gray and black. That is, when the pixel value belongs to the range of gray and black, the corresponding overlap area is determined;
[0108] According to the pixel values corresponding to the overlapped area, the overlapped area is controlled to expand outwards, and the corresponding expansion area is determined, specifically including:
[0109] Step 1, obtain the pixel value of the pixel point at the boundary of the overlapping area, and control the pixel point at the boundary of the overlapping area to synchronously extend outward by a preset step to obtain the pixel value of the extended pixel point; Step 2, determine whether the pixel value of the extended pixel point matches the pixel value corresponding to the overlapping area according to the pixel value corresponding to the overlapping area; Step 3, if it is determined whether the pixel value of the extended pixel point matches the pixel value corresponding to the overlapping area, that is, the pixel value also belongs to the range, then determine whether the difference between the pixel value of the pixel point at the boundary of the overlapping area and the corresponding pixel value of the extended pixel point is less than a threshold; Step 4, if it is determined that the difference between the pixel value of the pixel point at the boundary of the overlapping area and the corresponding pixel value of the extended pixel point is less than a threshold, then loop steps 1 to 3 until the difference between the pixel value of the pixel point at the boundary of the overlapping area and the corresponding pixel value of the extended pixel point is greater than or equal to the threshold, indicating that the color difference has changed significantly, the extension is controlled to stop, and the expansion area is determined;
[0110] Marking the extended area on the original image containing artifacts to obtain a processed image containing artifacts;
[0111] Mark the overlapping area on the original corresponding artifact-free image to obtain a processed artifact-free image;
[0112] Re-establishing the correspondence between the processed image with artifacts and the processed corresponding image without artifacts, which can be understood to include the correspondence between the images and the correspondence between the marks in the images, and forming a training set after normalization. It should be noted that since the correspondence between the marks in the images is determined, the neural network can be assisted to quickly learn the features between them, reducing some unnecessary interference factors, such as irrelevant background, etc., and improving the learning efficiency and accuracy of the neural network.
[0113] Embodiment 3
[0114] See also Figure 5 , Figure 5 1 is a structural block diagram of a CT image artifact removal system provided in Embodiment 3 of the present invention. The CT image artifact removal system 200 includes: an acquisition module 21, a construction module 22, a training module 23 and an input module 24, wherein:
[0115] An acquisition module 21 is used to acquire images containing artifacts and corresponding images without artifacts to form a training set;
[0116] A construction module 22 is used to construct a CT motion artifact removal neural network, wherein the CT motion artifact removal neural network is composed of a basic block and a stride block, the basic block is composed of a convolution layer, a channel attention unit, a spatial attention unit and a residual unit, the stride block is composed of a convolution layer and a residual unit, and in addition, the CT motion artifact removal neural network includes three basic blocks, one stride block, two basic blocks, one stride block and one basic block connected in sequence, and is repeated 6 times, wherein the feature map of the convolution kernel in the convolution layer is set to 64;
[0117] A training module 23 is used to construct a deep learning network loss, and according to the deep learning network loss, input the images containing artifacts and the corresponding images without artifacts in the training set into the CT motion artifact removal neural network for training to obtain a target neural network, wherein the constructed deep learning network loss includes L1 loss, frequency domain space loss, VGGNet-19 layer feature map loss, basic GAN loss, and discriminant loss based on spectral normalization U-net. In addition, during the network training process, iterative updates are performed through the Adam optimizer with a learning rate of 0.001, wherein the network weights are updated for 200 cycles;
[0118] The input module 24 is used to input the image to be processed into the target neural network to obtain a target image with artifacts removed.
[0119] Further, in some optional embodiments of the present invention, the acquisition module 21 includes:
[0120] Artifact simulation unit for
[0121] Acquire an original image without artifacts, and generate a corresponding image with artifacts through artifact simulation to form a training set, wherein the artifact simulation is one or a combination of the first Radon transform processing, the second Radon transform processing, and the third Radon transform processing;
[0122] The first Radon transform processing specifically includes:
[0123] Project each pixel of the original artifact-free image into a parallel direction to obtain the first sinogram space data;
[0124] The first sinogram space data is translated and rotated, and the translated and rotated sinogram space data is inversely transformed to obtain a corresponding image containing artifacts;
[0125] The second Radon transform processing specifically includes:
[0126] According to a preset number of adjacent artifact-free images in the same acquired CT image sequence, each pixel of each image is projected into a corresponding parallel direction to obtain each second sinogram spatial data;
[0127] Selecting a portion of each second sinogram spatial data, performing a splicing operation according to a preset angle, and performing an inverse Radon transform process on the spliced sinogram spatial data to obtain a corresponding image containing artifacts;
[0128] The third Radon transform process specifically includes:
[0129] Project each pixel of the original artifact-free image into a parallel direction to obtain the third sinogram space data;
[0130] A preset mask is added to the third sinogram spatial data, and an inverse Radon transform is performed on the sinogram spatial data after the preset mask is added to obtain a corresponding image containing artifacts.
[0131] Furthermore, in some optional embodiments of the present invention, the acquisition module 21 further includes:
[0132] A coincidence unit, used for obtaining an original image containing artifacts and a corresponding image without artifacts, and overlapping the original image containing artifacts and the corresponding image without artifacts to obtain a coincidence image;
[0133] A first determining unit, configured to determine an overlap area in the overlap map according to a preset pixel value;
[0134] A control unit, configured to control the overlapped area to expand outwards and determine a corresponding expansion area according to the pixel values corresponding to the overlapped area;
[0135] A first marking unit, used for marking the extended area on the original image containing artifacts to obtain a processed image containing artifacts;
[0136] A second marking unit, used for marking the overlapped area on the original corresponding image without artifacts to obtain a processed image without artifacts;
[0137] The normalization unit is used to re-establish the correspondence between the processed image containing artifacts and the processed corresponding image without artifacts, and form a training set after normalization.
[0138] Further, in some optional embodiments of the present invention, the control unit includes:
[0139] A control subunit, used to obtain pixel values of pixel points at the boundary of the overlapped area, and control the pixel points at the boundary of the overlapped area to synchronously extend outward by a preset step, and obtain pixel values of the extended pixel points;
[0140] A first judgment subunit is used to judge whether the pixel value of the extended pixel point matches the pixel value corresponding to the overlapped area according to the pixel value corresponding to the overlapped area;
[0141] A second judgment subunit is used to judge whether the difference between the pixel value of the pixel point at the boundary of the overlapping area and the pixel value of the corresponding pixel point after extension is less than a threshold value when it is judged that the pixel value of the extended pixel point matches the pixel value corresponding to the overlapping area;
[0142] A loop unit is used to control the subunit to loop to the second judgment subunit when the difference between the pixel value of the pixel point at the boundary of the overlapping area and the pixel value of the corresponding extended pixel point is less than a threshold value, until the difference between the pixel value of the pixel point at the boundary of the overlapping area and the pixel value of the corresponding extended pixel point is greater than or equal to the threshold value, control the extension to stop, and determine the extended area.
[0143] Embodiment 4
[0144] Another aspect of the present invention provides an electronic device, see Figure 6 , shown is an electronic device in Embodiment 4 of the present invention, including a memory 20, a processor 10, and a computer program 30 stored in the memory and executable on the processor, wherein the processor 10 implements the above-mentioned CT image artifact removal method when executing the computer program 30.
[0145] In some embodiments, the processor 10 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip, used to run program codes or process data stored in the memory 20, such as executing access restriction programs.
[0146] Among them, the memory 20 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 20 can be an internal storage unit of an electronic device, such as a hard disk of the electronic device. In other embodiments, the memory 20 can also be an external storage device of an electronic device, such as a plug-in hard disk equipped on the electronic device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Further, the memory 20 can also include both an internal storage unit of the electronic device and an external storage device. The memory 20 can not only be used to store application software and various types of data of the electronic device, but also can be used to temporarily store data that has been output or is to be output.
[0147] It should be pointed out that Figure 6 The structure shown does not constitute a limitation on the electronic device. In other embodiments, the electronic device may include fewer or more components than those shown in the figure, or combine certain components, or arrange the components differently.
[0148] The embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned method for removing artifacts from CT images is implemented.
[0149] Those skilled in the art will appreciate that the logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For purposes of this specification, "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0150] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0151] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0152] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0153] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention patent shall be subject to the attached claims.
Claims
1. A method for removing artifacts from CT images, characterized in that: The method comprises: Obtaining images with artifacts and corresponding images without artifacts to form a training set; Constructing a CT motion artifact removal neural network, wherein the CT motion artifact removal neural network consists of a basic block and a stride block, the basic block consists of a convolutional layer, a channel attention unit, a spatial attention unit, and a residual unit, and the stride block consists of a convolutional layer and a residual unit; Constructing a deep learning network loss, and inputting the images containing artifacts and the corresponding images without artifacts in the training set into the CT motion artifact removal neural network for training according to the deep learning network loss to obtain a target neural network; Inputting the image to be processed into the target neural network to obtain a target image with artifacts removed; The step of obtaining images containing artifacts and corresponding images without artifacts to form a training set comprises: Obtaining an original image containing artifacts and a corresponding image without artifacts, and overlapping the original image containing artifacts and the corresponding image without artifacts to obtain an overlapped image; Determining the overlap area in the overlap map according to the preset pixel value; According to the pixel values corresponding to the overlapped area, controlling the overlapped area to expand outwards, and determining the corresponding expanded area; Marking the extended area on the original image containing artifacts to obtain a processed image containing artifacts; Marking the overlapped area on the original corresponding image without artifacts to obtain a processed image without artifacts; Re-establishing the correspondence between the processed image with artifacts and the processed corresponding image without artifacts, performing normalization processing, and forming a training set; The step of obtaining images containing artifacts and corresponding images without artifacts to form a training set further comprises: Acquire an original image without artifacts, and generate a corresponding image with artifacts through artifact simulation to form a training set, wherein the artifact simulation is one or a combination of the first Radon transform processing, the second Radon transform processing, and the third Radon transform processing; The first Radon transform processing specifically includes: Project each pixel of the original artifact-free image into a parallel direction to obtain the first sinogram space data; The first sinogram space data is translated and rotated, and the translated and rotated sinogram space data is inversely transformed to obtain a corresponding image containing artifacts; The second Radon transform processing specifically includes: According to a preset number of adjacent artifact-free images in the same acquired CT image sequence, each pixel of each image is projected into a corresponding parallel direction to obtain each second sinogram spatial data; Selecting a portion of each second sinogram spatial data, performing a splicing operation according to a preset angle, and performing an inverse Radon transform process on the spliced sinogram spatial data to obtain a corresponding image containing artifacts; The third Radon transform process specifically includes: Project each pixel of the original artifact-free image into a parallel direction to obtain the third sinogram space data; A preset mask is added to the third sinogram spatial data, and an inverse Radon transform is performed on the sinogram spatial data after the preset mask is added to obtain a corresponding image containing artifacts.
2. The method for removing CT image artifacts according to claim 1, characterized in that: The step of controlling the overlapped area to expand outwards according to the pixel values corresponding to the overlapped area and determining the corresponding expanded area comprises: Step 1, obtaining pixel values of pixel points at the boundary of the overlapped area, and controlling the pixel points at the boundary of the overlapped area to synchronously extend outward by a preset step, and obtaining pixel values of the extended pixel points; Step 2: judging whether the pixel value of the extended pixel point matches the pixel value corresponding to the overlapped area according to the pixel value corresponding to the overlapped area; Step 3: If yes, determine whether the difference between the pixel value of the pixel point at the boundary of the overlapped area and the pixel value of the corresponding extended pixel point is less than a threshold; Step 4: If yes, loop steps 1 to 3 until the difference between the pixel value of the pixel point at the boundary of the overlapping area and the pixel value of the corresponding extended pixel point is greater than or equal to the threshold, control the extension to stop, and determine the extended area.
3. The method for removing CT image artifacts according to any one of claims 1 to 2, characterized in that: The CT motion artifact removal neural network includes three basic blocks, one stride block, two basic blocks, one stride block and one basic block connected in sequence, and repeated 6 times, wherein the feature map of the convolution kernel in the convolution layer is set to 64.
4. The method for removing CT image artifacts according to claim 3, characterized in that: In the step of constructing the deep learning network loss, the constructed deep learning network loss includes L1 loss, frequency domain space loss, VGGNet-19 layer feature map loss, basic GAN loss, and discriminant loss based on spectral normalization U-net.
5. The method for removing CT image artifacts according to claim 4, characterized in that: According to the deep learning network loss, the images containing artifacts and the corresponding images without artifacts in the training set are input into the CT motion artifact removal neural network for training, and in the step of obtaining the target neural network, iterative updates are performed through the Adam optimizer with a learning rate of 0.001, wherein the network weights are updated for 200 cycles.
6. A CT image artifact removal system, characterized in that: Used to implement the CT image artifact removal method according to any one of claims 1 to 5, the system comprises: An acquisition module, used for acquiring images containing artifacts and corresponding images without artifacts to form a training set; A construction module, used to construct a CT motion artifact removal neural network, wherein the CT motion artifact removal neural network consists of a basic block and a stride block, the basic block consists of a convolutional layer, a channel attention unit, a spatial attention unit, and a residual unit, and the stride block consists of a convolutional layer and a residual unit; A training module, used for constructing a deep learning network loss, and according to the deep learning network loss, inputting the images containing artifacts and the corresponding images without artifacts in the training set into the CT motion artifact removal neural network for training to obtain a target neural network; The input module is used to input the image to be processed into the target neural network to obtain a target image with artifacts removed.
7. 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 artifacts from a CT image as described in any one of claims 1 to 5 is implemented.
8. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for removing artifacts from a CT image according to any one of claims 1 to 5 is implemented.
