 Original Article
 Open access
 Published:
A projectiondomain iterative algorithm for metal artifact reduction by minimizing the totalvariation norm and the negativepixel energy
Visual Computing for Industry, Biomedicine, and Art volumeÂ 5, ArticleÂ number:Â 1 (2022)
Abstract
Metal objects in Xray computed tomography can cause severe artifacts. The stateoftheart metal artifact reduction methods are in the sinogram inpainting category and are iterative methods. This paper proposes a projectiondomain algorithm to reduce the metal artifacts. In this algorithm, the unknowns are the metalaffected projections, while the objective function is set up in the image domain. The data fidelity term is not utilized in the objective function. The objective function of the proposed algorithm consists of two terms: the total variation of the metalremoved image and the energy of the negativevalued pixels in the image. After the metalaffected projections are modified, the final image is reconstructed via the filtered backprojection algorithm. The feasibility of the proposed algorithm has been verified by real experimental data.
Introduction
The metal artifacts in Xray computed tomography (CT) are mainly due to the beam hardening effects [1,2,3,4]. The linear attenuation coefficient in a material is a function of the Xray energy. Xray CT systems normally use polychromatic beams, and the various energy components are not attenuated uniformly. The lower energy component of Xray spectrum is more easily to be attenuated or even completely adsorbed when traveling through metals. The beam hardening effects make the sinogram values deviate from the assumption that the sinogram values are the lineintegrals of the attenuation coefficients in the object.
Many techniques are commonly used to reduce the metal beam hardening effects. In clinical scans, the metal materials and the Xray source settings are known. Modelbased iterative algorithms [5,6,7,8,9,10,11,12] and iterative segmentationbased interpolation methods [13,14,15,16,17,18,19,20] can be used by taking the advantage of the available knowledge of the metals, the soft tissues, the bones, and Xray source settings.
In this paper, we consider a more challenging situation where the objects of interest, the metal materials and the Xray source settings are all unknown. Thus, modelbased iterative reconstruction methods are not effective here.
There are other methods to be considered. Bayesian algorithms, for example, the total variation (TV) norm minimization can be considered [21,22,23,24,25]. The metal artifacts appear as bright or dark streaks, radiated from the metals. The bright parts are the positive overshoots; the dark parts are the negative undershoots. The negative undershoots may result in negative image pixels. Our proposed algorithm is to minimize the TV of the metalremoved image [25] and the energy of the negative image pixels [26]. The algorithm variables are the metal affected sinogram values.
We must point out that it is not straightforward to reflect the negative image pixel constraint in the sinogram domain. It is not equivalent to setting the associated sinogram values to zero or positive [26].
Methods
This paper is inspired by the two observations that the metal artifacts often result in dark/bright streaks radiating from the metals [25] and negative image pixels around the metals [26]. The streaking artifacts increase the TV norm of the nonmetal regions of the image. The attenuation coefficients cannot be negative. These two effects were dealt with in two papers, separately [16, 26]. The goal of this current paper is to combine these two methods into one.
Let the measured sinogram (i.e., line integrals) be P, which can be divided into two parts: the metal affected part P_{M} and the metal unaffected part P_{notM}. This separation can be readily achieved by performing a raw filtered backprojection (FBP) reconstruction, thresholding, and forward projection. The objective function is hence
where the first term is the TV norm, and the second term is the squared L_{2} norm. In Formula (1), F denotes the FBP reconstruction operator, G is the operator that removes the metals from the image, and Î²_{1} and Î²_{2} are the parameters balancing the two norms. In the gradient descent algorithm, Î²_{1} and Î²_{2} also act as the step sizes (also, known as the relaxation factors).
We minimize this objective function with respect to unknowns P_{M} with a gradient descent algorithm. It is noticed that neither of the two terms in Formula (1) is differentiable. Subgradients are used to combat this difficulty [27].
A subgradient is a â€˜surrogateâ€™ of the gradient: it coincides with the gradient whenever a gradient exists, and it generalizes the notion of gradient at points where the function is nondifferentiable. Let us consider a point of interest and the function is nondifferentiable at this point. A subgradient is evaluated as follows. We find the leftgradient by taking the limit from the left and the rightgradient by taking the limit from the right, which are also known as the directional gradients. Any values between these two left and right values can be used as the subgradient.
We now use the absolute function x to illustrate how to find the subgradient. When xâ€‰>â€‰0, the subgradient is the same as the gradient: 1. When xâ€‰<â€‰0, the subgradient is the same as the gradient: âˆ’1. When xâ€‰=â€‰0, the function x is nondifferentiable. The leftgradient is âˆ’1 and the rightgradient is 1. The subgradient at xâ€‰=â€‰0 can be any value in the interval [âˆ’â€‰1, 1].
In our implementation, three values of Î²_{1} were tested: 0, 0.002 and 0.004; two values of Î²_{2} were tested: 0 and 5.
The FBP algorithm
In Formula (1), F(P) is a linear algorithm that can be deposed into two steps. The first step is to convolve the sinogram P along the detector dimension with a convolution kernel h(n):
The second step is the backprojection. Let the FBP reconstruction from P be X. If both P and X are represented in the vector forms, F(P) can be written as matrix multiplication
where F is a matrix.
For a given threshold value t, a metal image is obtained by modifying the image X. If a pixel in X is greater than t, its value is set to 1, otherwise its value is set to 0. The forward projection of X generates a â€˜shadowâ€™ in the projection domain. If the shadow values are positive, the corresponding sinogram values are called metalaffected projections, P_{M}. If the shadow values are zero, the corresponding sinogram values are called metalnotaffected projections, P_{notM}. The sinogram P is thus divided into two parts: P_{M} and P_{notM}. The projection values in P_{M} are treated as variables in the proposed algorithm.
In Formula (1), the metal removed FBP image, G{F(P)}â€‰=â€‰G{X}, is almost the same as X, except that if a pixel value is greater than t, its value is set to 0.
In Formula (1), min{0,â€‰F(P)}â€‰=â€‰minâ€‰{0,â€‰X} is almost the same as X, except that if a pixel value is positive, its value is set to 0. Here, the â€˜minâ€™ function is an elementwise function.
Optimization of the objective function (Formula 1) by the gradient descent algorithm
A gradient descent algorithm to minimize the objective function T(P) in Formula (1) can be expressed as
where the super script (k) is the iteration index. The projection vector P consists of two parts: the metal affected part P_{M} and the metal notaffected part P_{notM}. The metal notaffected part P_{notM} does not get updated from iteration to iteration. The matrix D in Formula (4) is a diagonal matrix with 0â€™s and 1â€™s, which discards the entries in P_{notM}. The parameter Î²_{1} and Î²_{2} in Formula (4) controls the step sizes of the gradient descent algorithm for the two different norms, respectively. In Formula (4), âˆ‡T_{1} is the gradient of the TV norm of the image with the metals removed, and âˆ‡T_{2} is the gradient of the energy of the negative pixels in the image. These two gradients are calculated with respect to the projections P. These two gradients are discussed further in the following two sub sections.
Minimization of the first term in the objective function (Formula 1)
Let Yâ€‰=â€‰G{F(P)}â€‰=â€‰G{X} be the metalremoved FBP reconstruction. The image Y is represented in a twodimensional array and y_{i,j} is its pixel value at the ith row and jth column. The TV norm of Y is defined as
The partial derivative of T_{1} with respect to pixel (i, j) (if exists) is readily calculated as
When the quantity under a square root is zero, the gradient u_{i,j} is not welldefined. In this case, we use the subgradient and assume the subgradient u_{i,j} to be zero
The gradient of T_{1} given in Formula (6) is with respect to the image pixels y_{i,j}. However, the gradient decent algorithm (Formula 4) requires the gradient of T_{1} be with respect to the projections P.
Realizing that Y is in the image domain, the algorithm variables are in the projection domain related by the mapping
where, A represents the forward projection matrix. The matrix A maps the image into its projections. This same matrix A can map the gradient U into the projection domain as AU, where the entries of U are u_{i,j}. We have
Minimization of the second term in the objective function (Formula 1)
Let Zâ€‰=â€‰minâ€‰{0,â€‰F(P)}â€‰=â€‰minâ€‰{0,â€‰X} be the negative pixels in the FBP reconstruction X. The energy of the negative image pixels is the square of the L_{2} norm of Z given as
To find the gradient âˆ‡T_{2}(P) , that is, âˆ‚T_{2}/âˆ‚p_{j}, is not straightforward, because the â€˜minâ€™ function in Formula (10) makes T_{2} nondifferentiable. We can use the subdifferential concept to find the gradient of âˆ‚T_{2}/âˆ‚p_{j} as [27]
where F^{T} represents forward projection followed by ramp filtering. The operator F^{T} maps an image into the projection domain.
Proposed gradient descent algorithm to estimate P _{M}
Combining the gradients above, the proposed gradient descent iterative algorithm (Formula 4) to estimate P_{M} can given as
where tanh(âˆ‡T_{1}) is used in place of âˆ‡T_{1} in Formula (4). The purpose of the hyperbolic tangent function â€˜tanhâ€™ is to hard limit the TV gradient values, making the iterative algorithm more stable.
The proposed algorithm is different from the commonly used iterative algorithms in the sense that the sinogram values in a common iterative reconstruction algorithm are never altered. Also, the proposed algorithm does not have a data fidelity term in the objective function (Formula 1). Our final image is obtained by the FBP algorithm, after P_{M} is modified. The initial value of the metal affected part P_{M} is the measured value.
We tested the proposed algorithm with some unknown airport bags, which contained some unknown metals. The projection sinograms were provided by the US Department of Homeland Security. The data sets were acquired with unknown kVp and unknown current settings. The original sinograms were converted into parallelbeam geometry with 180 views over 180Â° and with 597 detection channels (i.e., detector bins).
Results
Figures 1, 2, 3, 4 and 5 show the reconstruction results of 5 different unknown airport bags. Each figure consists of 4 images: the original raw FBP reconstruction; the TVnormonly (with Î²_{1}â€‰=â€‰0.004 and Î²_{2}â€‰=â€‰0) reconstruction; the negativitypixelenergyonly (with Î²_{1}â€‰=â€‰0 and Î²_{2}â€‰=â€‰5); the combined reconstruction (with Î²_{1}â€‰=â€‰0.004 and Î²_{2}â€‰=â€‰5). All images have the same display window. Black color represents negative values and white color represents large positive values. In order to visualize the metal artifacts, the display window is determined by the raw FBP reconstruction using the original measured sinogram. The display window is airport bag specific. The 1/3 of the maximum raw FBP image value is mapped to the gray level 255 (white). Any value larger is set to 255. The metal pixels are much brighter than other pixels in the image. If we do not clip the very bright metal pixels, we cannot see other structures in the image. The minimum raw FBP value (which is negative) is mapped to the gray level 0 (black). The mapping is linear in the range below 1/3 of the maximum value. All 4 images in the figure use the same grayscale mapping. Therefore, back pixels are negative.
The number of iterations for all studies in this paper was 400 in the gradient descent algorithm. The image array size was 420â€‰Ã—â€‰420, and the pixel size was 0.92â€‰mm. The proposed algorithm was implemented using MATLABÂ®, and the computational time for 400 iterations was 145â€‰s.
Because the ground truth is unknown to us, it is inappropriate to perform quantitative evaluations. In this paper, we only make human visual inspections on the reconstructions, focusing on the severeness of the artifacts. Two evaluation metrics were used. One metric was the TV norm of the reconstructed image with metals removed. The other metric was the energy of the negative pixels in the reconstructed image.
It is seen that all raw FBP images (shown at the upperleft conner) contain severe black streaking artifacts, indicating streaks of negative values. When the objective function only has the TVnorm term, that is, Î²_{2}â€‰=â€‰0, most black streaks are removed from the images (shown at the upperright conner); unfortunately, many lowcontrast structures are lost at the same time. The lowerleft images are obtained using only the negativepixelenergy minimization (i.e., Î²_{1}â€‰=â€‰0), and the black streaking artifacts are effectively removed from the resulting reconstructions. Compared with the upperright images, the lowerleft images look noisier and may contain some new bright streaking artifacts. If both of the two terms are used in the objective function (Formula 1), the resultant images are shown at the lowerright conner, which enjoy the benefits from both terms in the objective function (Formula 1).
In Fig. 5, the metal reduction methods fail to remove the dark streaking artifacts. On the other hand, Fig. 6 shows better results for the same airport bag. The different results in these two figures are mainly due to the different setup in metal image segmentation. In Figs. 1, 2, 3, 4 and 5, the FBP image pixels are segmented into the metal image if the image values are greater than tâ€‰=â€‰1/3 of the maximum image value. However, in Fig. 6, the FBP image pixels are segmented into the metal image if the image values are greater than 1/10 of the maximum image value. The change of the segmentation threshold results in different metal maps, as illustrated in Fig. 7. After changing the threshold value t from 1/3 to 1/10, we must change Î²_{1}â€‰=â€‰0.004 to a much smaller value Î²_{1}â€‰=â€‰0.002, otherwise the resultant image is too smooth and lots of image details disappear.
Tables 1, 2, 3, 4, 5 and 6 list the maximum and minimum values for each image in Figs. 1, 2, 3, 4, 5 and 6, respectively. It is noticed that the images generated from the processed sinograms still have negative image pixels. The residual negative pixels are most likely due to the angular aliasing artifacts because we use only 180 views in our sinogram data. A typical Xray CT scan has approximately 1000 views. The tables also list the evaluation metrics: the TV norm of the reconstructed image with metals removed and the energy of the negative pixels in the reconstructed image.
Figure 8 compares bag #1 sinograms before and after processing. Figure 8(a) is for the case of Î²_{1}â€‰=â€‰0.004 and Î²_{2}â€‰=â€‰5. Figure 8(b) represents the raw measurements. The difference image [(a) â€“ (b)] is shown at Fig. 8(c). It is observed that most sinogram values are not altered by the iterative algorithm.
Discussion
This paper combines two methods into one. These two methods use two different objective functions. They try to reduce the metal artifacts by using two different strategies. One method tries to reduce the artifacts that have oscillations; the other method tries to reduce the artifacts that have negative overshoots. By combining these two methods, we have a better chance to reduce metal artifacts that have both oscillating and negative overshoots features. One potential limitation is that those two methods may work in the opposite ways, making none of the methods effective. Another potential limitation is that the combined method has some hyper parameters Î²1 and Î²2 to be adjusted. There are no general rules to set them.
The ratio of these two parameters determines which objective function should be more dominating. Their values also affect the convergence rate of the gradient descent algorithm. Usually, larger values of Î²_{1} and Î²_{2} result in fast convergence. If their values are too large, the gradient descent algorithm may diverge. There is no clear relationship between the beta values and the threshold value. The values of Î²_{1} and Î²_{2} should be set for every new data set and every new object. The value of Î²_{2} may not be sensitive to the data set or object. There are no general rules how to set these two hyper parameters. It is observed from Tables 1, 2, 3, 4, 5 to 6 that the TV norm values T_{1} are much larger than the energy of negative pixel energy (NPE) values T_{2}. Therefor, Î²_{1} is much smaller than Î²_{2}.
The setting of the hyper parameters is data dependent. One setting works well for one object but does not work well for another object. This newer value of Î²_{1} for bag #5 did not work well for other data sets. The hyper parameters are set by trialanderror for each case.
From our experimental results, there is no significant difference between the results of nonnegativityterm only and combined. The minimum and maximum values of the two results are also very close. This observation implies that among the two methods, the method to reduce the negative overshoot is more effective than the TV minimization method for the cases presented.
Conclusions
This paper proposes a projectiondomain iterative algorithm to estimate metal affected projections using an imagedomain objective function. The objective function does not have a data fidelity term. It consists of the TV norm and the energy of the negative pixels. Real CT scans with unknown objects and unknown metals are used to test the feasibility of the proposed algorithm. The metals cause severe streaking artifacts in the raw FBP reconstructions. Those streaking artifacts are successfully removed by the proposed algorithm.
Results of two special cases, Î²_{1}â€‰=â€‰0 and Î²_{2}â€‰=â€‰0, are also compared. When Î²_{2}â€‰=â€‰0, the algorithm only minimizes the image TV norm. The images with TV norm minimization tend to be oversmoothed, and some low contrast structures may get lost. When Î²_{1}â€‰=â€‰0, the algorithm only minimizes the image NPE. The images with NPE minimization contain more low contrast structures but may be noisy. When both terms are used in the objective function (1), the final images are more balanced between details and noise control. In all three cases discussed above, the metal streaking artifacts are effectively reduced.
Availability of data and materials
Not applicable.
Abbreviations
 CT:

Computed tomography
 FBP:

Filtered backprojection
 NPE:

Negative pixel energy
 TV:

Total variation
References
Curry TI, Dowdey JE, Murray RC Jr (1990) Christensenâ€™s physics of diagnostic radiology, 4th edn. Lea & Febiger, Philadelphia, pp 61â€“69
Boas FE, Fleischmann D (2011) Evaluation of two iterative techniques for reducing metal artifacts in computed tomography. Radiology 259(3):894â€“902. https://doi.org/10.1148/radiol.11101782
Barrett JF, Keat N (2004) Artifacts in CT: recognition and avoidance. RadioGraphics 24(6):1679â€“1691. https://doi.org/10.1148/rg.246045065
Matsumoto K, Jinzaki M, Tanami Y, Ueno A, Yamada M, Kuribayashi S (2011) Virtual monochromatic spectral imaging with fast kilovoltage switching: improved image quality as compared with that obtained with conventional 120kVp CT. Radiology 259(1):257â€“262. https://doi.org/10.1148/radiol.11100978
Medoff BP, Brody WR, Nassi M, Macovski A (1983) Iterative convolution backprojection algorithms for image reconstruction from limited data. J Opt Soc Amer 73(11):1493â€“1500. https://doi.org/10.1364/JOSA.73.001493
Wang G, Snyder DL, Oâ€™Sullivan JA, Vannier MW (1996) Iterative deblurring for CT metal artifact reduction. IEEE Trans Med Imag 15(5):657â€“664. https://doi.org/10.1109/42.538943
Wang G, Vannier MW, Cheng CP (1999) Iterative Xray conebeam tomography for metal artifact reduction and local region reconstruction. Microsc Microanal 5(1):58â€“65. https://doi.org/10.1017/S1431927699000057
Wang G, Frei T, Vannier MW (2000) Fast iterative algorithm for metal artifact reduction in Xray CT. Acad Radiol 7(8):607â€“614. https://doi.org/10.1016/S10766332(00)805760
August J, Kanade T (2004) Fast streaking artifact reduction in CT using constrained optimization in metal masks. In: Barillot C, Haynor DR, Hellier P (eds) Medical image computing and computerassisted intervention  MICCAI 2004, 7th international conference, SaintMalo, France, September 26â€“29, 2004. Springer, Heidelberg, pp 1044â€“1045. https://doi.org/10.1007/9783540301363_130
De Man B (2008) Method and apparatus for the reduction of artifacts in computed tomography images. US patent 7444010, 28 Oct 2008
Luzhbin D, Wu J (2020) Model imagebased metal artifact reduction for computed tomography. J Digit Imag 33(1):71â€“82. https://doi.org/10.1007/s10278019002106
Kubo Y, Ito K, Sone M, Nagasawa H, Onishi Y, Umakoshi N, et al (2020) Diagnostic value of modelbased iterative reconstruction combined with a metal artifact reduction algorithm during CT of the oral cavity. Amer J Neuroradiol 41(11):2132â€“2138. https://doi.org/10.3174/ajnr.A6767
Liu JJ, WattSmith SR, Smith SM (2005) Metal artifact reduction for CT based on sinusoidal description. J XRay Sci Technol 13(2):85â€“96
Gu JW, Zhang L, Yu GQ, Xing YX, Chen ZQ (2006) Xray CT metal artifacts reduction through curvature based sinogram inpainting. J XRay Sci Technol 14(2):73â€“82
Zhang YB, Zhang LF, Zhu XR, Lee AK, Chambers M, Dong L (2007) Reducing metal artifacts in conebeam CT images by preprocessing projection data. Int J Radiat Oncol Biol Phys 67(3):924â€“932. https://doi.org/10.1016/j.ijrobp.2006.09.045
Joemai RMS, De Bruin PW, Veldkamp WJH, Geleijns J (2012) Metal artifact reduction for CT: development, implementation, and clinical comparison of a generic and a scannerspecific technique. Med Phys 39(2):1125â€“1132. https://doi.org/10.1118/1.3679863
Kratz B, Weyers I, Buzug TM (2012) A fully 3D approach for metal artifact reduction in computed tomography. Med Phys 39(11):7042â€“7054. https://doi.org/10.1118/1.4762289
Yu LF, Li H, Mueller J, Kofler J, Liu X, Primak AN et al (2009) Metal artifact reduction from reformatted projections for hip prostheses in multislice helical computed tomography: techniques and initial clinical results. Investig Radiol 44(11):691â€“696. https://doi.org/10.1097/RLI.0b013e3181b0a2f9
Yu HY, Zeng K, Bharkhada DK, Wang G, Madsen MT, Saba O, et al (2007) A segmentationbased method for metal artifact reduction. Acad Radiol 14(4):495â€“504. https://doi.org/10.1016/j.acra.2006.12.015
Karimi S, Cosman P, Wald C, Martz H (2012) Segmentation of artifacts and anatomy in CT metal artifact reduction. Med Phys 39(10):5857â€“5868. https://doi.org/10.1118/1.4749931
Xue H, Zhang L, Xiao YS, Chen ZQ, Xing YX (2009) Metal artifact reduction in dual energy CT by sinogram segmentation based on active contour model and TV inpainting. In: Abstracts of the 2009 IEEE nuclear science symposium conference record, IEEE, Orlando, 24 Oct1 Nov 2009
Zhang Y, Pu YF, Hu JR, Liu Y, Zhou JL (2011) A new CT metal artifacts reduction algorithm based on fractionalorder sinogram inpainting. J XRay Sci Technol 19(3):373â€“384. https://doi.org/10.3233/XST20110300
Zhang XM, Lei X (2013) Sequentially reweighted TV minimization for CT metal artifact reduction. Med Phys 40(7):071907. https://doi.org/10.1118/1.4811129
Manhart M, Psychogios M, Amelung N, Knauth M, Rohkohl C (2017) Improved metal artifact reduction via image quality metric optimization. In: abstracts of the 14th international meeting on fully 3D image reconstruction in radiology and nuclear medicine, Xiâ€™an, China, 1923 June 2017
Zeng GL (2020) Projectiondomain iteration to estimate unreliable measurements. Vis Comput Ind Biomed Art 3(1):16. https://doi.org/10.1186/s4249202000054w
Zeng GL, Zeng M (2021) Reducing metal artifacts by restricting negative pixels. Vis Comput Ind Biomed Art 4(1):17. https://doi.org/10.1186/s4249202100083z
Calafiore GC, El Ghaoui L (2014) Optimization models. Cambridge University Press, Cambridge. https://doi.org/10.1017/CBO9781107279667
Acknowledgements
The Reconstruction Initiative Dataset used in the research related to this publication was generated and provided by Awareness and Localization of ExplosivesRelated Threats, a Department of Homeland Security Center of Excellence. The views and conclusions contained in this document are those of the authors and should not be interpreted as necessarily representing the official policies, either expressed or implied, of the U.S. Department of Homeland Security. In this paper, we downgrade the spatial resolution of the original data on purpose.
Funding
This research is partially supported by NIH, No. R15EB024283.
Author information
Authors and Affiliations
Contributions
GLZ is the only author. The author read and approved the final manuscript.
Corresponding author
Ethics declarations
Competing interests
The author has any competing interests in the manuscript.
Additional information
Publisherâ€™s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Zeng, G.L. A projectiondomain iterative algorithm for metal artifact reduction by minimizing the totalvariation norm and the negativepixel energy. Vis. Comput. Ind. Biomed. Art 5, 1 (2022). https://doi.org/10.1186/s4249202100094w
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s4249202100094w