(pseudo-)CT¶

PRESTUS supports the use of UTE-based images as a source of pseudo-Hounsfield units. These can replace the skull layer of a layered simulation for continuous tissue property mapping.
[!WARNING] (pseudo-)HU mapping is an experimental feature in active development.
Creating pseudoCTs from UTE scans¶
-
MR acquisition
Acquire an MR sequence with detailed bone contrast
Example PETRA UTE parameters (Carpino et al., 2023) TR: 3.32 ms TE: 0.07 ms voxel size: 0.8 mm3 352 sagittal slices flip angle: 2Β° FoV: 294 mm
-
SimNIBS segmentation.
Perform a SimNIBS segmentation using a T1w and a PETRA UTE scan (instead of T2w) as inputs. You can either use the SimNIBS GUI or PRESTUS (default).
-
pseudoCT generation.
Dependencies. pseudoCT generation requires FSL (
fslmaths), ANTs (N4BiasFieldCorrection,SmoothImage), and MATLAB onPATH. Setstartup.fsl_bin_pathandstartup.ants_bin_pathin your config so PRESTUS can prepend these toPATHat runtime. On HPC, also setstartup.matlab_bin_path.Automated (default). When
pct.enabled = 1, PRESTUS callspct_create_pseudoCT.shautomatically after SimNIBS segmentation β but only ifpseudoCT.nii.gzis not already present in them2m_sub-XXX/folder. The UTE image is identified viapath.t2_pattern(the same field used to pass it as the second SimNIBS input). The resultingpseudoCT.nii.gzandtissues_mask.nii.gzare deposited inm2m_sub-XXX/.Minimum config to enable the fully automated workflow:
path: t2_pattern: 'sub-%1$03d_UTE.nii.gz' # UTE image (used for both SimNIBS and pseudoCT) startup: fsl_bin_path: '/opt/fsl/bin' # prepended to PATH for fslmaths ants_bin_path: '/opt/ants/bin' # prepended to PATH for N4BiasFieldCorrection, SmoothImage matlab_bin_path: '/opt/matlab/R2024a/bin/matlab' # required on HPC; local falls back to matlabroot pct: enabled: 1 skull_mapping: 'kosciessa' # UTEβHU linear mapping algorithm debug: 1 # keep intermediate images in pseudoCT/ subfolder mapping_density: 'k-plan' mapping_soundspeed: 'k-plan' mapping_attenuation: 'k-plan'Manual fallback. If
pseudoCT.nii.gzalready exists in them2m_sub-XXX/folder when the pipeline runs, generation is skipped automatically. You can also runpct_create_pseudoCT.shdirectly in bash before starting PRESTUS. An example wrapper is provided atexamples/createPseudoCT.sh. Required modules: SimNIBS, FSL, ANTs.
pseudoCT generation¶
The following steps are used to create the pseudoCT:
- UTE: Threshold at 0, apply bias field correction to remove inhomogeneity, normalize (divide by soft tissue peak value > i.e., normalised UTE intensity = 1)
- Soft tissue value is identified with the MATLAB function
pct_soft_tissue_peak - pHU Soft-tissue (normalised UTE intensity = 1): 42 HU (Wiesinger et al., 2018)
- pHU Air: -1000 HU (Wiesinger et al., 2018; Miscouridou et al., 2022)
- pHU Skull: Linear mapping
miscouridou| pHU = β2085 UTE + 2329carpino| pHU = -2194 UTE + 2236wiesinger| pHU = -2000 (UTE-1) + 42treeby| pHU = -2929.6 UTE + 3247.9kosciessa| individualized: pHU_trabecular=300 & pHU_trabecular_cortical = 700
- 3D Gaussian smoothing (Ο=0.8 voxels via ANTsβ SmoothImage) prevents abrupt tissue transitions in the simulation grid. To retain information in the skull layer, unsmoothed values are retained within an eroded skull mask that attempts to correct for partial volume effects.
References:
Wiesinger, F. et al. Zero TE-based pseudo-CT image conversion in the head and its application in PET/MR attenuation correction and MR-guided radiation therapy planning. Magn. Reson. Med. 80, 1440β1451 (2018).
Miscouridou, M., Pineda-Pardo, J. A., Stagg, C. J., Treeby, B. E. & Stanziola, A. Classical and Learned MR to Pseudo-CT Mappings for Accurate Transcranial Ultrasound Simulation. IEEE Trans. Ultrason., Ferroelectr., Freq. Control 69, 2896β2905 (2022).
Fat, D. L. et al. The Hounsfield value for cortical bone geometry in the proximal humerusβan in vitro study. Skelet. Radiol. 41, 557β568 (2012).
Carpino et al. (2024). Transcranial ultrasonic stimulation of the human amygdala to modulate threat learning. MSc thesis.
Using (pseudo-)CTs to inform acoustic properties¶
Hounsfield Units can be used to inform acoustic properties in the bone layer of a SimNIBS segmentation. This is a subtype of a layered medium.
To inform skull properties by pCTs in simulations, set parameters.use_pseudoCT = 1, define parameters.t2_path_template as the pseudoCT.nii.gz in the simnibs output directory, and choose the desired acoustic parameter mapping algorithms. The current code supports the following mappings optionally model density, speed of sounds, and attenuation in the skull bone. When set to "none" or when the parameter field is deleted/missing, each property will revert to the uniform skull value. The defaults highlighted below are the ones specified in the config_default.yaml.
[!warning] The most suitable mapping remains an active area of research. All mappings should therefore be treated as experimental. See this issue. Mappings will exclusively be applied within the uniform skull mask.
Mapping skull density¶
Mapping algorithm is goverened by pct_mapping_density.
-
k-plan| 4-part piecewise linear fit based on k-Plan defaults (default)Acoustic simulations
Piece-wise linear mapping between HU and mass density in kg/m^3 using k-Plan default calibration see k-Plan documentation:$$ \rho_\text{skull} = \text{fit_pairwiselinear}(\text{HU}, \text{density}) $$
HU = [-990, 60, 1000, 1950] density = [1.2, 1060, 1530, 2150]Density estimates are regularized at the minimum to the water density specified in the configuration.
Note: k-Plan's bone segmentation starts at density values of 1150 kg/m3, which internally regularized data ranges. Such density regularization is not currently enforced in PRESTUS...
Thermal simulations
Overwrite bone density prior to the thermal simulation:\[ \rho_\text{skull} = 1850 \, \text{kg/m}^3 \] -
k-wave| 4-part piecewise linear fit based on Schneider et al. (1996)PseudoCT values are initially shifted by +1000 and thresholded at 300 to align with hounsfield2density.
\[ \rho_\text{skull} = \text{hounsfield2density}(\text{HU} + 1000) \]Density estimates are regularized at the minimum to the water density specified in the configuration, and a max. skull density
rho_bone = 2100kg/m3.References:
Schneider, U., Pedroni, E., and Lomax A., "The calibration of CT Hounsfield units for radiotherapy treatment planning," Phys. Med. Biol., 41, pp. 111-124 (1996). -
marsac| Marsac et al. (2017)This algorithm initially regularizes skull pHU to a range of
HU_min = 300andHU_max = 2000. Note that in contrast to Marsac et al., 2017, PRESTUS regularizes pHU values instead of excluding pHU < HU_min from the skull mask as the latter is prone to create skull holes.\[ \rho_\text{skull} = \rho_\text{water} + (\rho_\text{bone} - \rho_\text{water}) \cdot \frac{\text{HU} - \text{HU}_\text{min}}{\text{HU}_\text{max} - \text{HU}_\text{min}} \]with max. skull density
rho_bone = 2100kg/m3.References:
Marsac, L. et al. Ex Vivo Optimisation of a Heterogeneous Speed of Sound Model of the Human Skull for Non-Invasive Transcranial Focused Ultrasound at 1 MHz. International Journal of Hyperthermia. 33. 635β645 (2017).
-
aubry| "Porosity-based" mapping based on Aubry et al. (2003)This algorithm first estimates the porosity as:
\[ \phi_\text{skull} = 1 - \frac{\text{HU}}{\text{HU}_\text{max}} \]This uses the max. skull HU denominator from Guo et al., 2019.
Skull density is then estimated as the mixture of bone and water density composites:\[ \rho_\text{skull} = \rho_\text{water} \cdot \phi_\text{skull} + \rho_\text{bone} \cdot (1 - \phi_\text{skull}) \]Respective tissue sound speed properties are extracted from the configuration.
References:
Aubry, J.-F., et al. Experimental demonstration of noninvasive transskull adaptive focusing based on prior computed tomography scans. J Acoust Soc Am 113, 84β93 (2003).
Guo, S., et al. Feasibility of ultrashort echo time images using full-wave acoustic and thermal modeling for transcranial MRI-guided focused ultrasound (tcMRgFUS) planning. Phys. Med. Biol. 64, 095008 (2019).
Mapping skull sound speed¶
Mapping algorithm is goverened by pct_mapping_soundspeed.
-
k-plan| Density-based mapping (default)Implements the k-Plan mapping:
\[ c_\text{skull} = 1.33 \cdot \rho_\text{skull} + 167 \]The minimum sound speed in skull bone is regularized to water sound speed.
-
marsac| Density-based mapping according to Marsac et al. (2017)\[ c_\text{skull} = c_\text{water} + (c_\text{bone} - c_\text{water}) \cdot \frac{\rho_\text{skull} - \rho_\text{water}}{\rho_\text{bone} - \rho_\text{water}} \]with max. speed of sound in skull
c_skull = 3360m/s and max. skull densityrho_bone = 2100kg/m3. Respective water properties are extracted from the configuration.References:
Marsac, L. et al. Ex Vivo Optimisation of a Heterogeneous Speed of Sound Model of the Human Skull for Non-Invasive Transcranial Focused Ultrasound at 1 MHz. International Journal of Hyperthermia. 33. 635β645 (2017).
-
aubry| "Porosity"-based mapping based on Aubry et al. (2003)This algorithm first estimates the porosity as:
\[ \phi_\text{skull} = 1 - \frac{\text{HU}}{\text{HU}_\text{max}} \]This uses the max. skull HU denominator from Guo et al., 2019.
Skull sound speed is then estimated as the mixture of bone and water sound speed composites:\[ c_\text{skull} = c_\text{water} \cdot \phi_\text{skull} + c_\text{bone} \cdot (1 - \phi_\text{skull}) \]Respective tissue sound speed properties are extracted from the configuration.
References:
Aubry, J.-F., et al. Experimental demonstration of noninvasive transskull adaptive focusing based on prior computed tomography scans. J Acoust Soc Am 113, 84β93 (2003).
Guo, S., et al. Feasibility of ultrashort echo time images using full-wave acoustic and thermal modeling for transcranial MRI-guided focused ultrasound (tcMRgFUS) planning. Phys. Med. Biol. 64, 095008 (2019).
Mapping skull attenuation¶
Mapping algorithm is goverened by pct_mapping_attenuation.
-
k-plan| Uniform fixed (default)\[ \alpha_\text{skull} = \alpha_\text{coeff} \]k-Plan fixes the attenuation coeff. to
13.3and frequency power law to1. To allow more flexibility, this variant reads in the alpha power values specified for the respective bone segmentation (trabecularorcortical) from the current config. To replicate k-Plan's setup, specifyalpha_coeff = 13.3andalpha_power = 1in the skull bone medium configuration. -
mueller| Algorithm specified in Mueller et al. (2017).\[ \alpha_\text{skull} = \alpha_\text{min} + (\alpha_\text{max} - \alpha_\text{min}) \left(1 - \frac{\text{HU} - \text{HU}_\text{min}}{\text{HU}_\text{max} - \text{HU}_\text{min}}\right)^{0.5} \]with
Ξ±_min= 4 andΞ±_max= 8.7 (see Yakuub et al., 2023).These πΌ estimates are based on 500 kHz (i.e., πΌ(f); see Aubry, J.-F., 2022 for prior benchmark simulations). However, we require
alpha_0inπΌ(f) = alpha_0 x f[MHz] ^ y. We therefore estimatealpha_0 = πΌ(f)/0.5^ywithybeing the specifiedalpha_powerfor the skull tissue.References:
Aubry, J.-F. et al. Benchmark problems for transcranial ultrasound simulation: Intercomparison of compressional wave modelsa). J. Acoust. Soc. Am. 152, 1003β1019 (2022).
Mueller, J. K., Ai, L., Bansal, P. & Legon, W. Numerical Evaluation of the Skull for Human Neuromodulation with Transcranial Focused Ultrasound. Journal of Neural Engineering. 14. 066012 (2017).
Yaakub, S. N. et al. Pseudo-CTs from T1-Weighted MRI for Planning of Low-Intensity Transcranial Focused Ultrasound Neuromodulation: An Open-Source Tool. Brain Stimulation. 16. 75β78 (2023).
-
aubry| "Porosity-based" mapping based on Aubry et al. (2003)This algorithm first estimates the porosity as:
\[ \phi_\text{skull} = 1 - \frac{\text{HU}}{\text{HU}_\text{max}} \]This uses the max. skull HU denominator from Guo et al., 2019.
Skull attenuation is then estimated as:\[ \alpha_\text{skull} = \alpha_\text{min} + (\alpha_\text{max} - \alpha_\text{min}) \cdot \phi_\text{skull}^{0.5} \]with
Ξ±_min = 0.2andΞ±_max = 8(Aubry et al., 2003).References:
Aubry, J.-F., et al. Experimental demonstration of noninvasive transskull adaptive focusing based on prior computed tomography scans. J Acoust Soc Am 113, 84β93 (2003).
Guo, S., et al. Feasibility of ultrashort echo time images using full-wave acoustic and thermal modeling for transcranial MRI-guided focused ultrasound (tcMRgFUS) planning. Phys. Med. Biol. 64, 095008 (2019).