Abstract
Medical implants are often made of dense materials and pose great challenges to accurate CT reconstruction and visualization, especially in regions close to or surrounding implants. Moreover, it is common that diagnostics involving implanted patients require distinct visualization strategies for implants and anatomy indvidually. In this work, we propose a novel approach for joint estimation of anatomy and implants as separate image volumes using a mixed prior model. This prior model leverages a learning-based diffusion prior for the anatomy image and a simple 0-norm sparsity prior for implants to decouple the two volumes. Additionally, a hybrid mono-polyenergetic forward model is employed to effectively accommodate the spectral effects of implants. The proposed reconstruction process alternates between two steps: Diffusion posterior sampling is used to update the anatomy image, and classic optimization updates to the implant image and associated spectral coefficients. Evaluation in spine imaging with metal pedicle screw implants demonstrates that the proposed algorithm can achieve accurate decompositions. Moreover, anatomy reconstruction between the two pedicle screws, an area where all competing algorithms typically fail, is successful in visualizing details. The proposed algorithm also effectively avoids streaking and beam hardening artifacts in soft tissue, achieving 15.25% higher PSNR and 24.29% higher SSIM compared to normalized metal artifacts reduction (NMAR). These results suggest that mixed prior models can help to separate spatially and spectrally distinct objects that differ from standard anatomical features in ordinary single-energy CT to not only improve image quality but to enhance visualization of the two distinct image volumes.
1. INTRODUCTION
Medical implants are essential devices used in various therapeutic and diagnostic applications to restore or enhance physiological function. Implants can range from orthopedic devices, such as joint replacements and spinal screws,1, 2 to cardiovascular devices, including stents and pacemakers.3 Dense alloys are often used to manufacture medical implants,4 which poses challenges to Computed Tomography (CT) imaging, because metal can severely attenuate the incident photons, resulting in significant beam-hardening5 and streaking artifacts which may extend to the whole CT image. Clinical diagnosis or surgery can be hampered by this kind of artifacts since the region-of-interest (ROI) is often close to metal.2 Additionally, diagnostics associated with implants often involves independent visualization of the anatomy and the implant (in part due to the high dynamic range between metal and human tissue). Visualization can include overlay image of implant over anatomy and/or segmentation of implants to obtain boundary information which is overlaid, or independently analyzed.
Various methods have been investigated to improve CT reconstruction with implants.6 Many approaches treat this task as a missing data problem, trying to correct the metal-corrupted projections or reconstruct images from metal-free projections. While this strategy effectively removes most artifacts, it ignores information from the metal-corrupted projections, resulting in compromised performance around metal. Previous work called known-component reconstruction (KCR)7, 8 sought to decouple patient anatomy and implants using known models of the implants. This decoupling permits both independent modeling of the differing spectral characteristics of the implant versus anatomy - leading to improved image quality particularly in the vicinity of the implant, and also provides independent image volumes which facilitates various visualization strategies.
However, the precise prior knowledge KCR relies on, such as the exact shape and material composition of implants, is not always available in practice. Recent advances in score-based generative model9 provide an effective way to model an anatomical prior. In this work, we shift strong prior from implant to anatomy, and apply a mixed prior model for joint estimation of anatomy and implants. Specifically, we employ a sophisticated diffusion prior for the anatomical image, and a simple sparsity prior for the implant image. Additionally, a hybrid mono-polyenergetic forward model is employed to further accommodate the spectral effects of implants. The proposed algorithm is evaluated in spine imaging with pedicle screws. Simulation results demonstrate that the proposed algorithm can achieve accurate anatomy and implant reconstruction.
2. METHODS
2.1. Hybrid Mono-polyenergetic Forward Model
Consider a two-material measurement model for patient anatomy (e.g., water) with an implant (some other material):
| (1) |
where is the spectral sensitivity of the system including x-ray spectrum, detector response, etc. as a function of energy, . The terms and are the energy-dependent linear attenuation coefficients of the anatomy and implant. (We approximate the patient as being water only.) The polyenergetic spectrum and the energy-dependent material coefficients together result in beam-hardening5 and associated artifacts when reconstruction based on a monoenergetic model is applied. In practice, corrections10, 11 attempt to mitigate the beam hardening, resulting in an approximately monoenergetic forward model. However, the spectral effects of implants are much pronounced than normal tissue, and analogous processing for implants can be challenging due to unknown material composition and distribution. To address this issue, this work employs a model similar to that of previous work,8 which uses a monoenergetic model for the anatomical volume and a polyenergetic model for the implant volume:
| (2) |
where and are the effective (spectrum-independent) linear attenuation coefficients. Moreover, consider the case where the implant material is unknown, but the energy-dependent attenuation of the implant is modeled by a th order polynominal function parameterized by “spectral” coefficients . After discretization and log-normalization, the forward model can be rewritten as:
| (3) |
where is the system matrix. For independent measurements, covariance matrix is approximated by diagonal matrix . We seek to estimate , and .
2.2. Mixed Prior Model for Anatomy and Implant
Joint estimation of anatomy and implant from measurements is underdetermined. In this work, a mixed prior model, i.e., a deep learning prior for the anatomy and sparsity prior for the implant, is employed to facilitate this joint reconstruction. Specifically, the anatomy prior is captured by a diffusion model,12 which samples from through a stochastic differential equation:9
| (4) |
The gradient of log prior probability density , referred to as the score function, is approximated by a neural network. We presume the metal implant to be relatively small and only occupy a limited number voxels in the volume, and thus, employ a sparsity prior for the implant volume:
| (5) |
2.3. Joint Anatomy and Implant Reconstruction
Combining the hybrid mono-polyenergetic forward model and the mixed prior model, the objective function for joint anatomy and implant reconstruction is written as:
| (6) |
Note that the spectral coefficients are jointly estimated with the anatomy and implant volumes. Eq.(6) is solved by alternating updates of and . Specifically, The implant volume and spectral coefficients are fixed in an anatomy volume update, and then vice versa.
The objective for the anatomy update can be written as:
| (7) |
where is the iteration index. Eq.(7) is solved via a Diffusion Posterior Sampling (DPS) CT reconstruction algorithm:13
| (8a) |
| (8b) |
| (8c) |
Eq.(8a) is a one-step estimation of the anatomy using Tweedie’s formula.14 Eq.(8b) further modifies the anatomy volume to update the data consistency using the Adam optimizer.15 The parameters of Adam optimizer are (from right to left): the loss function, an initialization, step size, and number of iterations. Eq.(8c) computes the next diffusion state based on current state, estimated score, and anatomy update in Eq.(8b).
The objective for the implant and coefficients update is:
| (9) |
where controls the strength of the sparsity prior. We introduce an auxiliary variable for :
| (10) |
where controls the similarity between and . Eq.(10) can be solved by alternating optimization: The implant volume and spectral coefficients are first updated as:
| (11) |
then the auxiliary variable is updated by minimizing:
| (12) |
Eq.(11) enforces data consistency while maintaining similarity between and . It is solved approximately using a fixed number of iterations for the likelihood minimization, and the similarity constraint can be implicitly added by starting the iteration from . Eq.(12) is considered as a 0-norm proximal operator on .16 Therefore, Eq.(10) is solved by:
| (13a) |
| (13b) |
In this work, the reconstruction runs 150 iterations of Eq. 8 and Eqs.13, and hyperparameters are empirically chosen with: .
2.4. Evaluation
Simulation Setup:
We simulated the abdomen phantom as shown in Fig. 1. The water and calcium basis are created by soft thresholding the single-energy CT as in Jiang et al.17 Two homogeneous pedicle screws (composition: 87% Ti, 6% Al, 7%Nb, density: 4.5 g/ml) are placed in the spine. The water/calcium density is set to zero where masked by the screws. Polyenergetic projections are simulated for this three-basis phantom, with the scanning technique set to 120 kVp, 0.4 mAs/view, 720 views.
Figure 1.

The abdomen phantom used in the simulation study. This phantom is composed of water and calcium bases for the anatomy, and a metal implant basis.
Comparison Algorithms:
The proposed algorithm was compared with filter backprojection (FBP), model-based reconstruction (MBIR), and normalized metal artifacts reduction (NMAR). (Monoenergetic) MBIR is formulated as:
| (14) |
represents a simple quadratic regularization that penalizes the differences between first-order neighborhoods. Eq.(14) is solved using a separable paraboloidal surrogates (SPS) algorithm.18 For NMAR, the metal trace is generated by projecting the exact metal mask, and the corrected projection are reconstructed by FBP. All the FBP reconstructions are implemented with a Hamming window and a cutoff of 0.8×Nyquist frequency.
3. RESULTS
Fig. 2 displays reconstructions using different algorithms. The baseline image was generated by MBIR reconstruction on noiseless and implant-free projections. In the single screw case, due to photon starvation and beam hardening, FBP results exhibited shading and blooming artifacts around implant, as well as streaks throughout the image. While MBIR mitigated noise, it failed to correct the major streaking artifacts through the implant. NMAR replaced the noisy and hardened projection with interpolated value to largely eliminate streaking. However, the interpolation lost significant information, and led to a empty area (yellow arrow) around the implant. In contrast, the proposed algorithm most accurately depicted the tissue surrounding metal implant, including along the major axis of the screw where imaging was most challenging (blue arrow). Moreover, we note that the joint reconstruction provided an independent estimate of the implant volume without explicit segmentation. We used this information to overlay the pedicle screws in red.
Figure 2.

Reconstruction results using different algorithms. For the proposed method, the implant image is color-encoded and overlay with the anatomy image. The green box defines a zoomed spine ROI containing the implant. Brown and blue boxes indicate two soft tissue ROIs near the implant, Display window: [0.01,0.03]cm−1.
Reconstruction of the case with two pedicle screws was more challenging, especially for the center of the spine, because almost all the projections pass through implants. With very limited metal-free projections, NMAR obscured almost all of the internal spinal structures. However, the proposed algorithm accurately depicted the spine with a relatively clear reconstruction of the spinal cord (purple arrow). In addition to the spine ROI containing implants, two ROIs around spine are displayed in Fig. 3 to investigate the soft tissue reconstruction.
Figure 3.

Soft tissue ROIs of the double screw case in Fig.2. PSNR and SSIM of each ROI are listed at top left corner. Display window: [0.015,0.025]cm−1.
The proposed algorithm effectively removed artifacts and streaky noise without blurring the images, providing the best artery visualization and clearest muscle-fat boundary. Compared to NMAR, the proposed algorithm improved PSNR by 15.25% and 16.45% and improved SSIM by 24.29% and 10.47%, further demonstrating the superior accuracy of proposed algorithm. Fig. 4 compares results from a monoenergetic implant model, i.e., fix as [1.0, 0.0, 0.0, 0.0], versus a polyenergetic implant model. The polyenergetic model exhibited less blooming and shading artifacts, particularly around the ends of screws as indicated by green arrows, which demonstrates that the polyenergetic metal model, though having additional unknown parameters to be estimated, was highly effective in improving the reconstruction.
Figure 4.

Comparison of proposed reconstructions with the monoenergetic metal model(left) and the polyenergetic metal model(right). Display window: [0.01,0.03]cm−1.
4. CONCLUSION AND DISCUSSION
The joint reconstruction of anatomy and implant using single-energy projections is an underdetermined problem that requires prior information to solve. In this work, we proposed a novel estimation approach using a mixed prior model, which employs a learning-based diffusion prior for the anatomy and a simple 0-norm sparsity prior for implants. The reconstruction process alternates between two subproblems: one uses diffusion posterior sampling to update the anatomy volume, while classic optimization updates are applied to the implant volume and the spectral coefficients. The algorithm was evaluated on spine imaging with screw implants, demonstrating promising performance in accurate joint reconstruction, especially in regions surrounding the implants.
The combination of a spectrally parameterized forward model and a mixed prior model allows one to separate two distinct material types in an image volume. Parts of the image volume that are well-modeled with a monoenergetic form and that fit the learned prior distribution can be estimated as anatomy. In contrast, sparse elements of the volume that have similar transmission properties and that can only be well-modeled using a polyenergetic form are estimated in the implant volume. While this work demonstrates the success of the approach in reducing metal artifacts, there are likely other applications where spectrally distinct elements of the volume may be separated as part of the reconstruction process. Such applications would likely benefit from having sophisticated prior models for both materials - though the simple sparsity prior in the mixed model presented here was sufficient for this scenario.
ACKNOWLEDGMENTS
This work was supported, in part, by NIH grant R01EB030494.
REFERENCES
- [1].Kunčická L, Kocich R, and Lowe TC, “Advances in metals and alloys for joint replacement,” Progress in Materials Science 88, 232–280 (2017). [Google Scholar]
- [2].Zhang X, Uneri A, Webster Stayman J, Zygourakis CC, Lo S.-f. L., Theodore N, and Siewerdsen JH, “Known-component 3d image reconstruction for improved intraoperative imaging in spine surgery: A clinical pilot study,” Medical physics 46(8), 3483–3495 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- [3].Jeong S, “Basic knowledge about metal stent development,” Clinical endoscopy 49(2), 108–112 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- [4].Okazaki Y, Ito Y, Ito A, and Tateishi T, “Effect of alloying elements on mechanical properties of titanium alloys for medical implants,” Materials Transactions, JIM 34(12), 1217–1222 (1993). [Google Scholar]
- [5].Hsieh J, [Computed tomography: principles, design, artifacts, and recent advances], SPIE press; (2003). [Google Scholar]
- [6].Gjesteby L, De Man B, Jin Y, Paganetti H, Verburg J, Giantsoudi D, and Wang G, “Metal artifact reduction in ct: where are we after four decades?,” Ieee Access 4, 5826–5849 (2016). [Google Scholar]
- [7].Stayman JW, Otake Y, Prince JL, Khanna AJ, and Siewerdsen JH, “Model-based tomographic reconstruction of objects containing known components,” IEEE transactions on medical imaging 31(10), 1837–1848 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
- [8].Xu S, Uneri A, Khanna AJ, Siewerdsen J, and Stayman J, “Polyenergetic known-component ct reconstruction with unknown material compositions and unknown x-ray spectra,” Physics in Medicine & Biology 62(8), 3352 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- [9].Song Y, Sohl-Dickstein J, Kingma DP, Kumar A, Ermon S, and Poole B, “Score-based generative modeling through stochastic differential equations,” arXiv preprint arXiv:2011.13456 (2020). [Google Scholar]
- [10].Yan CH, Whalen RT, Beaupre GS, Yen SY, and Napel S, “Reconstruction algorithm for polychromatic ct imaging: application to beam hardening correction,” IEEE Transactions on medical imaging 19(1), 1–11 (2000). [DOI] [PubMed] [Google Scholar]
- [11].Kyriakou Y, Meyer E, Prell D, and Kachelrieß M, “Empirical beam hardening correction (ebhc) for ct,” Medical physics 37(10), 5179–5187 (2010). [DOI] [PubMed] [Google Scholar]
- [12].Ho J, Jain A, and Abbeel P, “Denoising diffusion probabilistic models,” Advances in neural information processing systems 33, 6840–6851 (2020). [Google Scholar]
- [13].Jiang X, Li S, Teng P, Gang G, and Stayman JW, “Strategies for ct reconstruction using diffusion posterior sampling with a nonlinear model,” arXiv preprint arXiv:2407.12956 (2024). [Google Scholar]
- [14].Efron B, “Tweedie’s formula and selection bias,” Journal of the American Statistical Association 106(496), 1602–1614 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
- [15].Kingma DP and Ba J, “Adam: A method for stochastic optimization,” arXiv preprint arXiv:1412.6980 (2014). [Google Scholar]
- [16].Xu L, Lu C, Xu Y, and Jia J, “Image smoothing via l 0 gradient minimization,” in [Proceedings of the 2011 SIGGRAPH Asia conference], 1–12 (2011). [Google Scholar]
- [17].Jiang X, Gang GJ, and Stayman JW, “Ct material decomposition using spectral diffusion posterior sampling,” arXiv preprint arXiv:2402.03476 (2024). [PMC free article] [PubMed] [Google Scholar]
- [18].Erdogan H and Fessler JA, “Ordered subsets algorithms for transmission tomography,” Physics in Medicine & Biology 44(11), 2835 (1999). [DOI] [PubMed] [Google Scholar]
