Skip to content

BenAuer2021/Simulation-And-Reconstruction-Of-Nuclear-Medicine-Imaging-Systems-PET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simulation-And-Reconstruction-Of-Nuclear-Medicine-Imaging-Systems-PET

The simulation and reconstruction for PET imaging are developed and maintained by Auer Benjamin from the Brigham and Women's Hospital and Harvard Medical School, Boston, MA, USA, and Roncali Emilie from the University of California, Davis, CA, USA.

Contact: Auer, Benjamin Ph.D [email protected]

Table of contents:

- 1. Objective
- 2. Folder structure
- 2. Structure of the simulation
  - a) main.mac
  - b) mac/Verbose.mac
  - c) mac/world.mac
  - d) Data/GateMaterials.db
  - e) System and detector geometry: PET_head
  - f) Visualizing the geometry
  - g) Defining the attenuation object/patient
  - h) Setting up the source object
  - i) Setting up the physics
  - j) Setting up the acquisition parameters: Digitizer
  - k) Format the output data
- 4. How to run the simulation
- 5. How to analyze the simulation data
- 6. How to reconstruct the simulation data

1. Objective

In this tutorial, we offer a step-by-step walk through on how to build and analyze a realistic PET simulation in GATE source page.

2. Folder Structure

The folder structure where to find the phantom data and GATE macro files can be seen below,

Screen Shot 2023-09-25 at 9 58 25 AM

3. Structure of the Simulation

a) main.mac

The main.mac file contains all the reference to the geometry, physics, material database, and output needed to run the simulation

Screen Shot 2023-09-25 at 10 01 17 AM

b) mac/Verbose.mac

Visualizing the print out of the simulation is helpful to check information on the events and verify that the physics and geometry are modeled properly.

Screen Shot 2023-09-25 at 10 44 17 AM

c) mac/world.mac

The world defines the experimental framework of the simulation. It must be large enough to contain the entire PET system and phantom. The tracking of particles is stopped once they leave the world. The world is shown as a gray wire frame in the visualization of the simulation shown below. GateMaterials.db must contain all elemental compositions and densities of materials which are defined later in the macro.

Screen Shot 2023-09-25 at 10 46 51 AM

Screen Shot 2023-09-25 at 10 47 07 AM

d) Data/GateMaterials.db

The GateMaterials.db contains all the material definition used in the simulation.

Screen Shot 2023-09-25 at 10 57 38 AM

e) System and Detector Geometry: PET_head

We defined the cylindrical geometry (size, position, and material) and the components of the the PET_head following a volume hierarchy (Head, Module, Block, Crystal, and Layer).

Screen Shot 2023-09-25 at 10 54 07 AM

The final layer is the crystal element,

Screen Shot 2023-09-25 at 10 54 59 AM

The detector ring is created by duplicating elements,

Screen Shot 2023-09-25 at 10 58 52 AM

Screen Shot 2023-09-25 at 10 59 06 AM

The last step is to define which volumes are sensitive to interactions. The simulation record the events in the output files only for sensitive volumes.

Screen Shot 2023-09-25 at 11 01 12 AM

f) Visualizing the Geometry

https://github.com/BenAuer2021/Simulation-And-Reconstruction-Of-Nuclear-Medicine-Imaging-Systems-PET/assets/84809217/3da38cc7-16e9-44e2-8fed-aca31684c4ba

g) Defining the attenuation object/patient

The benchmark is a simple example of a water cylinder, but antropomorphic phantoms or CT-based phantoms can be created from patient data. Any of the phantoms available here can be used. The attenuation phantom can also be defined as a series of STL-based objects, we provide several STL-based phantoms here

Screen Shot 2023-09-25 at 11 22 46 AM

h) Setting up the source object

We use in the benchmark a F-18 source analytically defined. The source can also be voxelized (i.e. from an actual patient activity distribution, or corresponding to a voxelized phantom). Any of the source phantoms available here can be used. Voxelized activity source phantoms can also be used in combination with the STL-based XCAT phantom.

i) Setting up the physics

The physics model plus range and energy cuts for different particles and medium need to be set.

Screen Shot 2023-09-25 at 11 28 47 AM

j) Setting up the acquisition parameters: Digitizer

The digitizer is the critical module in modeling the detection mechanism. It can include modeling of the electronics and create waveforms, energy resolution, and dead-time.

Screen Shot 2023-09-25 at 11 48 40 AM

k) Format the output data

The simulation output can be controlled via the following command lines to create a binary ROOT listmode file output.

Screen Shot 2023-09-25 at 11 55 43 AM

4. How to run the simulation

The acquisition time and the random generator can be controlled from the main macro (main.mac).

Screen Shot 2023-09-25 at 12 48 41 PM

It is recomended to run the simulation with a low statistics to verify that it completes without issues and crashes.

https://github.com/BenAuer2021/Simulation-And-Reconstruction-Of-Nuclear-Medicine-Imaging-Systems-PET/assets/84809217/4af005e5-6fbe-443f-b461-32c3a72ebe86

The simulation can then be run with the desired statistics,

https://github.com/BenAuer2021/Simulation-And-Reconstruction-Of-Nuclear-Medicine-Imaging-Systems-PET/assets/84809217/873993e6-85db-4f33-b306-646de946fd37

5. How to analyze the simulation data

We provide a python script to analyze the simulation data runAnalysis.py.

Run the analysis with,

python ./runAnalysis.py output

The output of this script for a 10,000 Bq simulation looks like below,

Screen Shot 2023-09-25 at 1 01 21 PM

6. How to Reconstruct the simulation data

The GATE simulated data can be reconstructed via the CASToR software that allows for histogram and list-mode PET reconstruction with Time-Of-Flight modeling. CASToR provides tools to transform GATE macro and data to CASToR format files used in reconstruction. Details on CASToR and benchmarks can be found here.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages