Abstract
Purpose
We report here on a technique to implement high-resolution objects with voxels having variable dimensions (compressed) for the reduction of memory and central processing unit (CPU) requirements in Monte Carlo simulations. The technique, which was implemented in GATE, the GEANT4 application for positron emission tomography/single photon emission computed tomography (PET/SPECT) imaging simulations, was developed in response to our need for realistic high-resolution phantoms for dosimetry calculations.
Procedures
A compression algorithm similar to run-length encoding for one-dimensional data streams, was used to fuse together adjacent voxels with identical physical properties. The algorithm was verified by conducting dosimetric calculations and imaging experiments on compressed and uncompressed phantoms.
Results
Depending on the initial phantom size and composition, compression ratios of up to 99.9% were achieved allowing memory and CPU reductions of up to 85% and 70%, respectively. The output of the simulations was consistent with respect to the goals for each type of simulation performed (dosimetry and imaging).
Conclusions
The implementation of compressed voxels in GATE allows for significant memory and CPU reduction and is suitable for dosimetry as well as for imaging experiments.
Similar content being viewed by others
Explore related subjects
Discover the latest articles, news and stories from top researchers in related subjects.Avoid common mistakes on your manuscript.
Introduction
Monte Carlo simulation of radiation transport through matter is a powerful tool used for many diagnostic imaging applications such as positron emission tomography (PET) [1–6], single photon emission computed tomography (SPECT) [7–9], and X-ray computed tomography (CT) [10]. The same tool is also used in therapeutic applications such as dosimetry and radiation therapy planning.
The simulations include a description of all the relevant elements involved in the experiment, including the tomographic gantry, the detectors, the subject, the bed and other support, as well as any shields. This description can be achieved either with mathematical formulations that range from elementary geometrical shapes like spheres, cylinders, and boxes, to non-uniform rational B-splines [11, 12], or with voxelized phantoms. Elementary shapes are appropriate to describe tomographs and simple phantoms, but they cannot adequately represent living subjects. As a result, geometrical phantoms can only provide estimates of imaging parameters like spatial resolution, partial volume recovery coefficients, scatter, and radiation dose, but cannot truly reproduce realistic imaging situations. Mathematical formulations achieve much better approximation of living subjects, but the ultimate flexibility and ease of use is provided from voxelized phantoms that can represent arbitrary distributions.
Realistic description is essential in the evaluation of imaging systems and their performance at both the design stages as well as at the optimization of the imaging protocols [13, 14]. It also is critical in dosimetry applications [15, 16] as well as for more complicated imaging systems [17]. In these cases, the accurate geometry description of animals for small animal PET or of larger patients for clinical PET is important.
Anatomically detailed digital phantoms have been developed [18–20] that are described in the form of either a matrix of voxels (voxelized form) or in mathematical terms (e.g., non-uniform rational B-splines surfaces). For the purpose of simulations though, voxelized realizations of phantoms are used by most computer codes. In this case, depending on the overall size and desired spatial resolution, one can rapidly reach memory and computational speed limitations as phantoms become very large (108 voxels). However, in practice high spatial resolution is often not required throughout the entire phantom, and therefore high voxelation phantoms often lead to significant waste of computer resources. For example, in dosimetry applications, one is concerned with target volumes and sensitive organs, which typically constitute only a fraction of the entire phantom. In imaging applications, high spatial resolution is only needed to maintain smooth boundaries between phantom sections. Fortunately, voxelized phantoms have large groups of adjacent voxels belonging in regions with identical properties. This observation suggested that some form of compression of voxelized descriptions could be used to reduce memory requirements. To satisfy our need for high spatial resolution phantoms, we have developed such a compression scheme.
In this paper, we report on our method to implement variable-size compressed voxels for phantoms. This method reduces significantly the memory and central processing unit (CPU) requirements in GEANT4 application for tomographic emission (GATE) Monte Carlo simulations.
Methods
Algorithm
We define compressed voxels as rectangular voxels having variable size in every dimension. They are the result of the fusion of elementary equal-sized voxels from an initial phantom, sharing physical content properties such as material composition and density. Compressed voxels V have the following format: \(\left\{ {\overline X ,d\overline X ,\overline n } \right\}\), where for a 3D space, \(\overline X = \left\{ {X_1 ,X_2 ,X_3 } \right\}\) is the position vector, \(d\overline X = \left\{ {dX_1 ,dX_2 ,dX_3 } \right\}\) is the voxel size vector, and \(\overline n \) is a vector representative of the voxel contents. This vector represents the material or other phantom property of interest. The compression method developed for three-dimensional (3-D) voxelized objects is similar to the run length encoding (RLE) compression algorithm [21] for one-dimensional streams of data. Essentially, the method fuses adjacent voxels of the same dimensions and material to yield a set of rectangular voxels of various sizes. More specifically, three successive searches—one along each dimension—are performed on the voxelized object. In each search, voxels are fused if they are adjacent and of identical material or other relevant property.
As an example, consider the 4 × 8 × 8 synthetic phantom shown in Fig. 1, made with three “materials” identified by white, light gray, and dark gray. The first search fuses voxels along lines (the X 3 dimension), leaving voxels of dimensions \(d\overline X = \left\{ {1,1,dX_3 } \right\}\). Here, the entire first row of eight voxels is fused because all voxels are made out of “light gray” material. This produces one compressed voxel with dimensions {1, 1, 8}. The second search fuses voxels in the X 2 dimension creating voxels with dimensions \(d\overline X = \left\{ {1,dX_2 ,dX_3 } \right\}\). Similarly, for the third dimension the resulting voxels are \(d\overline X = \left\{ {dX_1 ,dX_2 ,dX_3 } \right\}\). The same approach can be extended to phantoms containing more than three dimensions as, for example, temporal information for gated data acquisitions.
A single compressed voxel holds more information than an uncompressed voxel: position and size in addition to other voxel properties; therefore, it uses more memory. As with one-dimensional RLE, there is a minimum number of voxels (threshold) before an overall memory allocation gain can be achieved. This threshold is clearly implementation dependent. However, even in the case when this criterion is not met and no substantial memory reduction is achieved, there will still be a reduction in the number of voxels. This can lead to decreased CPU time as there will be fewer geometrical boundaries crossed and less checks to determine voxel properties during particle transport.
Implementation
The algorithm has been implemented in GATE [22], the GEANT4 application for tomographic emission, used for Monte Carlo simulations of PET and SPECT experiments. The implementation exploits the G4PVParameterized class of GEANT4 [23] to define parameterized volumes. In this case, a parameterized volume is a generic volume representing a collection of repeated volumes in which each copy can be different in size, shape, and material. The actual properties of an elementary volume are given by a parameterization function. This function must provide the geometrical transformation to be applied (rotation and translation), the dimensions, shape, and material. This GEANT4 class is especially well suited for implementing the variable-size voxel scheme. One only needs to provide a parameterization function that will consult a list of compressed voxels containing all the required information.
In the implementation described here, 2-byte unsigned integers are used to hold each element of the compressed voxel. The position vector \(\overline X = \left\{ {X_1 ,X_2 ,X_3 } \right\}\) uses three 2-byte integers; the same holds for the dimension vector \(d\overline X = \left\{ {dX_1 ,dX_2 ,dX_3 } \right\}\), and finally 2 bytes are allocated for the voxel contents value \(\overline n \). The result is a total of 14 bytes per voxel. The voxel value \(\overline n \) is an index (a scalar) into a material pointer table. As there are 216 different values that can be represented by a 2-byte unsigned integer, the maximum phantom dimensions capable of being represented by this scheme is 216 along each axis, with no more than 216 different materials.
As a convenience, an option has also been implemented to allow regions to be excluded from the compression mechanism. In those excluded regions, although voxels are not compressed, they are still converted to the compressed format. The exclusion mechanism still allows some memory (and CPU) reduction while retaining the benefits of high resolution when required. Regions to be excluded are identified by material n with an “exclude” statement in the GATE input script. More than one region can be excluded in the same simulation run.
Experiments
The algorithm was verified by conducting two types of simulated experiments. First, radiation dosimetry experiments were selected because they are most likely to be affected by changes in phantom representation as they record information (dose) at the voxel level. Second, we have selected PET imaging experiments. These simulation experiments should be less sensitive to the phantom voxel representation as long as the activity distribution is not affected.
Dosimetry
For the radiation dosimetry experiments, different phantom sizes and shapes were used to assess memory and CPU time reduction and also to assess any effects compression could have on dose calculations. Dose was calculated using an optional feature of GATE, which produces dose matrices having the same dimensions as the input phantom.
In the first simulation experiment, a voxelized version of the Hoffman brain phantom [19] was used. The phantom is a rectangular matrix of 128×128×55≈106 voxels defining five regions (materials): exterior of the phantom (air), the polymethyl methacrylate cylinder, and three internal regions representing gray, white matter, and ventricles. The phantom was used in three ways: uncompressed form, fully compressed form, and in compressed form with gray matter excluded from compression. One slice of the phantom (Fig. 2a) is shown without and with compression in Fig. 2b and c, respectively. After full compression, the number of voxels was reduced from 901,120 to about 40,000, giving a compression ratio of 95.6%, whereas memory use decreased by about 30%. Activity was disseminated in regions corresponding to gray and white matter with concentrations of 906 and 430 Bq/mL, respectively, and a total of 106 positrons were tracked for each experiment. Dose-volume histograms were subsequently calculated by combining dose from dose matrices and organ information from the phantom.
It is important to point out that the spatial distribution of activity in the phantom remains unaffected by the compression mechanism and is solely determined by the original, uncompressed phantom. It is therefore the exact same number of particles followed for all three brain phantom simulation experiments, regardless of the compression status of the phantom.
Additional experiments with larger phantoms were also performed. A realistic mathematical mouse phantom—the MOBY phantom [18]—was realized with two voxel sizes, 200 and 100 μm, yielding phantoms with 107 and 108 voxels, respectively. Dosimetry experiments were performed by subjecting these phantoms to a polyenergetic x-ray beam mimicking a micro-CT scanner [15, 24]. For the purpose of this work, 109 photon histories were followed.
Imaging
The imaging experiment was inspired from current work at our institution aimed at determining the minimum detectable activity in typical mouse experiments. Whereas the actual simulations, image reconstruction algorithms, and data analysis for this goal is beyond the scope of the work presented here, the voxel compression has made this research possible. Here, therefore, we only present the feasibility of simulating a realistic activity distribution in a computational platform. To achieve this, a modified version of the MOBY phantom was used in which a spherical tumor (7 mm diameter) was added in the axillary area. The phantom was realized with a voxel size of (400 μm)3. Fluorine-18 activity was distributed in the phantom as follows: uniform background of 5 nCi/mm3 was put in major organs (guts, muscle mass, liver, kidneys, spleen, brain, and testes), 10 nCi/mm3 of activity was put in the tumor and the myocardium to obtain a 2:1 activity ratio, and 25 nCi/mm3 of activity was put in the bladder, for a total of 110 μCi. A 10-minute acquisition scan was divided into 600 one-second simulations to be run on a 27-dual-cpu computer cluster. The simulated tomograph was based on the microPET Focus 220 (Siemens, Preclinical Solutions, Knoxville, TN). The image was reconstructed from an attenuation-corrected sinogram using two iterations of OSEM-3D (six subsets) followed by 18 iterations of maximum a posteriori (MAP) algorithm with a regularization (beta) parameter value of 0.1. Here again, the experiment was performed once with the uncompressed phantom and once with the compressed version.
Results and Discussion
Effect of Compression on Dose-Volume Histograms
Dose distributions for different organs calculated with compressed phantoms had a narrower width when compared to those calculated with uncompressed phantoms. This effect can be best explained by the definition of dose, which is the ratio of energy deposited over mass. Let E i,k be the i th energy deposit from particle interactions in elementary (uncompressed) voxel k, N k be the number of such energy deposits, and m k be the voxel mass. The dose D k deposited in elementary voxel k is given by:
If a number P of those voxels are fused together, then dose D in the fused larger voxel is given by:
As media in fused voxels is homogeneous and all elementary voxels have the same size, they also have the same mass. Hence, the sum in the denominator can be replaced by a product:
which is the average of dose values (1) in elementary voxels. Therefore, larger voxels have an averaging effect, i.e., they dampen out fluctuations. This will be reflected in dose-volume histograms: compressed voxels with large volumes will score dose values closer to the average (averaging effect). The dose distribution will then be closer to the average, and the distribution is narrower. This narrowing effect will be more pronounced with higher compression rates that produce larger parametric voxels. In the limit case of 100% compression rate: only one voxel would be left and the dose distribution would be a single value at the (average) dose of that voxel, for any single Monte Carlo simulation.
Brain Phantom
The dose-volume histograms for the PET simulation with the Hoffman brain phantom are shown in Fig. 3. Dose is normalized to the total activity present in the phantom (μGy/GBq) and curves show results from the uncompressed (solid thin line), partially compressed—gray matter excluded (solid thick gray line) and fully compressed (dotted line) versions of the phantom.
The dose averages for white matter (Fig. 3a) were 35.2 μGy/GBq (standard deviation ±5.4 μGy/GBq) and 35.4 μGy/GBq (±13.0 μGy/GBq) for the fully compressed and uncompressed versions, respectively. Whereas the average dose is the same, the distribution is narrower for the compressed version as can be seen in Fig. 3 and from the standard deviation (SD) values. For the partially compressed phantom, dose was 35.3 (±5.4) μGy/GBq and the distribution was identical to the fully compressed phantom, as white matter was compressed in both versions.
For gray matter (Fig. 3b), the dose was 53.6 (±6.0) μGy/GBq, 53.7 (±16.3) μGy/GBq, and 53.8 (±16.3) μGy/GBq for the fully compressed, uncompressed, and partially compressed phantoms, respectively. Here, the distributions for the uncompressed and partially compressed phantoms are identical as gray matter was excluded from compression. As with white matter, the distribution from the fully compressed phantom is narrower than the others.
Mouse Phantom
In Fig. 4 are shown dose-volume histograms for the liver from an x-ray CT simulation with the MOBY phantom (200 μm voxel size) using uncompressed and compressed versions. Dose averages were 6.3 (±2.2) μGy and 6.3 (±1.2) μGy for the uncompressed and compressed phantoms, respectively. Again, with a high compression rate (>99%), a narrower dose distribution was obtained without changing the average.
Finally, in Table 1 are shown performance results obtained as a function of phantom size. As the phantom size grows larger, the corresponding memory reduction becomes more significant. Although this technique was primarily implemented to reduce memory requirements, important reduction in CPU time has also been achieved. In the case of the high-resolution mouse phantom (MOBY 100 μm), a comparison with the uncompressed version was not possible because the phantom could not be accomodated in the ∼3 GB of memory available in the user address space.
PET Imaging
A comparison of the activity distribution in the phantom and the reconstructed PET image (both compressed and uncompressed cases) are shown in Fig. 5. From a qualitative point of view, the PET images look similar; there is no apparent artifact from the voxel compression process and they both render regions with high, medium, and no activity. The images do not look exactly the same because they are two different realizations of a random process.
The Student t test has been used to evaluate the difference in means between regions of interest (ROI) in the two images. ROIs were drawn around the tumor, bladder, the heart, and the mid section of the body. The average value and variance of each region was calculated for each image and a t statistic was calculated with the following formula:
where \(\overline x _k \), and \(s_k^2 \), are the average pixel value, and variance, in a ROI of image k, respectively. P values, representing the probability that the t statistic would be less than the observed value assuming that the two means are the same, were calculated using:
where ν is the number of degrees of freedom and B is the Beta function. All calculated p values were below 10−4 for all regions.
In Fig. 6, which shows profiles obtained across the tumor from the compressed and uncompressed phantom, the profiles are similar for both phantoms (allowing for statistical fluctuations) and the tumor-to-background ratio of recovered activity is close to the nominal ratio of 2:1. The total cpu time spent for simulation with the compressed and uncompressed phantoms was 2,400 and 4,200 hours, respectively.
Remarks
In theory, because the compression algorithm does not alter the information content of the phantom, the use of compressed voxels should not have any effect on the outcome of the simulation. In practice, however, the performance ultimately depends on the Monte Carlo code and the physics models used. For codes using a condensed history technique for charged particles transport (such as GEANT4), artifacts can be introduced by altering the particle transportation step size [25]. As geometrical boundaries are step-limiting factors, small uncompressed voxels will force shorter steps as opposed to larger ones with compressed voxels, potentially leading to different results. As a general rule, shorter steps (and small, uncompressed voxels) yield more accurate results. Users would be well advised to verify that compression is appropriate for their application (geometry and energies involved) by performing simple experiments, e.g., calculating dose-volume histograms. Any observed differences in results could be overcome as most codes offer parameters to limit the electron step size.
Applications other than PET imaging and dosimetry should be able to take advantage of compressed voxels without incurring any significant changes. This includes other imaging applications (x-ray, CT, SPECT), systems performance analysis, and scatter analysis among others. The voxelized object does not have to be a synthetic phantom like the MOBY mouse; more realistic subjects could be used. For example, compressed voxelized objects could be generated from segmented CT images of a small animal and used in any type of imaging experiment. It is even possible to consider compressing images obtained from clinical scans. The size of a clinical scan is of the order of 108 voxels, similar to the high-resolution MOBY phantom used in this study. Using the compression method described here, the image would fit into memory and CPU reduction would be achieved. However, enough computing power would still be required to perform the simulations in a reasonable amount of time.
The compression exclusion mechanism should prove very useful in dosimetry applications when one needs to investigate dose distribution in only one or a few organs. By excluding these organs from compression, high-resolution dose-volume histograms can be calculated with improved performance without loss in precision. In our opinion, compression should be the rule rather than the exception in these types of simulations.
Conclusion
A voxel compression algorithm has been developed and was implemented in GATE. Dosimetry calculations and PET imaging experiments were performed with various phantoms with and without compression. Depending on phantom size and shape, memory reduction of up to 85% and CPU reduction of up to 70% have been observed. Dose distributions in compressed phantoms were narrower (smaller standard deviation) than in uncompressed phantoms; however, dose averages were similar. No artifact was noticed in PET images because of the voxel-compression process. In addition to memory and CPU time reduction, the technique makes it possible to use very large phantoms that would not otherwise fit into memory.
References
Vandenberghe S, Daube-Witherspoon ME, Lewitt RM, Karp JS (2006) Fast reconstruction of 3D time-of-flight PET data by axial rebinning and transverse mashing. Phys Med Biol 51:1603–1621
Qi JY, Leahy RM (2000) Resolution and noise properties of MAP reconstruction for fully 3-D PET. IEEE Trans Med Imag 19:493–506
Huang SC, et al. (2005) An Internet-based “kinetic imaging system” (KIS) for MicroPET. Mol Imaging Biol 7:330–341
Kaplan MS, Harrison RL, Vannoy SD (1998) Coherent scatter implementation for SimSET. IEEE Trans Nucl Sci 45:3064–3068
Lewitt RM, Muehllehner G, Karp JS (1994) 3-dimensional image-reconstruction for PET by multislice rebinning and axial image filtering. Phys Med Biol 39:321–339
Thompson CJ, Morenocantu J, Picard Y (1992) PETSIM: Monte-Carlo simulation of all sensitivity and resolution parameters of cylindrical positron imaging-systems. Phys Med Biol 37:731–749
Beekman FJ, de Jong HWAM, van Geloven S (2002) Efficient fully 3-D iterative SPECT reconstruction with Monte Carlo-based scatter compensation. IEEE Trans Med Imag 21:867–877
Yanch JC, Dobrzeniecki AB (1993) Monte-Carlo simulation in SPECT - Complete 3D-modeling of source, collimator and tomographics data acquisition. IEEE Trans Nucl Sci 40:198–203
Yanch JC, Dobrzeniecki AB, Ramanathan C, Behrman R (1992) Physically realistic Monte-Carlo simulation of source, collimator and tomographic data acquisition for emission computed-tomography. Phys Med Biol 37:853–870
Ay MR, Zaidi H (2005) Development and validation of MCNP4C-based Monte Carlo simulator for fan- and cone-beam x-ray CT. Phys Med Biol 50:4863–4885
Segars WP, et al. (2001) Development and application of the new dynamic Nurbs-based Cardiac-Torso (NCAT) phantom. J Nucl Med 42:7P–7P
Ward RC, et al. (2000) Creating a human phantom for the virtual human program. Stud Health Technol Inform 70:368–374
Barret O, Carpenter TA, Clark JC, Ansorge RE, Fryer TD (2005) Monte Carlo simulation and scatter correction of the GE advance PET scanner with SimSET and Geant4. Phys Med Biol 50:4823–4840
Baete K, et al. (2004) Evaluation of anatomy based reconstruction for partial volume correction in brain FDG-PET. Neuroimage 23:305–317
Taschereau R, Chow PL, Chatziioannou AF (2006) Monte Carlo simulations of dose from microCT imaging procedures in a realistic mouse phantom. Med Phys 33:216–224
Taschereau R, Chatziioannou A (2007) Monte Carlo simulations of absorbed dose in a mouse phantom from 18-fluorine compounds. Med Phys 34:1026–1036
Rannou FR, Kohli V, Prout DL, Chatziioannou AF (2004) Investigation of OPET performance using GATE, a Geant4-based simulation software. IEEE Trans Nucl Sci 51:2713–2717
Segars WP, Tsui BMW, Frey EC, Johnson GA, Berr SS (2004) Development of a 4-D digital mouse phantom for molecular imaging research. Mol Imaging Biol 6:149–159
Hoffman EJ, Cutler PD, Digby WM, Mazziotta JC (1990) 3-D phantom to simulate cerebral blood-flow and metabolic images for PET. IEEE Trans Nucl Sci 37:616–620
Zubal IG, et al. (1994) Computerized 3-dimensional segmented human anatomy. Med Phys 21:299–302
Salomon D (2000) Data compression: the complete reference. New York: Springer
Jan S, et al. (2004) GATE: a simulation toolkit for PET and SPECT. Phys Med Biol 49:4543–4561
Agostinelli S, et al. (2003) Geant4—a simulation toolkit. Nucl Instrum Methods Phys Res Sect A Accel Spectrom Detect Assoc Equip 506:250–303
Taschereau R, Chow PL, Cho JS, Chatziioannou A (2006) A microCT x-ray head model for spectra generation with Monte Carlo simulations. Nucl Instrum Methods Phys Res Sect A Accel Spectrom Detect Assoc Equip 569:373–377
Bielajew A, Rogers DWO (1988) In: Jenkins TM, Nelson WR, Rindi A (eds) Monte Carlo transport of electrons and photons. Plenum Press, New York, pp 115–137
Acknowledgments
The authors wish to thank the members of the OpenGATE collaboration for letting them be part of it and for accepting this work as a contribution to the development of GATE. This work was supported in part by the U.S. Department of Energy under Contract DE-FC03 02ER63420 and by the National Institutes of Health under Grant R24 CA92865.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Taschereau, R., Chatziioannou, A.F. Compressed Voxels for High-Resolution Phantom Simulations in GATE. Mol Imaging Biol 10, 40–47 (2008). https://doi.org/10.1007/s11307-007-0110-7
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11307-007-0110-7