Skip to main content

Python tools for GATE GAN simulations

Project description

GAGA = GAN for GATE

pip install gaga-phsp

Scripts associated with the publication : Phys Med Biol. 2019 doi: https://doi.org/10.1088/1361-6560/ab3fc1 Generative adversarial networks (GAN) for compact beam source modelling in Monte Carlo simulations Sarrut D, Krah N, Letang JM. https://www.ncbi.nlm.nih.gov/pubmed/31470418

A method is proposed and evaluated to model large and inconvenient phase space files used in Monte Carlo simulations by a compact Generative Adversarial Network (GAN). The GAN is trained based on a phase space dataset to create a neural network, called Generator (G), allowing G to mimic the multidimensional data distribution of the phase space. At the end of the training process, G is stored with about 0.5 million weights, around 10MB, instead of few GB of the initial file. Particles are then generated with G to replace the phase space dataset.
 
 This concept is applied to beam models from linear accelerators (linacs) and from brachytherapy seed models. Simulations using particles from the reference phase space on one hand and those generated by the GAN on the other hand were compared. 3D distributions of deposited energy obtained from source distributions generated by the GAN were close to the reference ones, with less than 1% of voxel-by-voxel relative difference. Sharp parts such as the brachytherapy emission lines in the energy spectra were not perfectly modeled by the GAN. Detailed statistical properties and limitations of the GAN-generated particles still require further investigation, but the proposed exploratory approach is already promising and paves the way for a wide range of applications

Tests in opengate (https://github.com/OpenGATE/opengate): see test066.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gaga-phsp-0.7.1.tar.gz (44.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gaga_phsp-0.7.1-py3-none-any.whl (56.6 kB view details)

Uploaded Python 3

File details

Details for the file gaga-phsp-0.7.1.tar.gz.

File metadata

  • Download URL: gaga-phsp-0.7.1.tar.gz
  • Upload date:
  • Size: 44.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for gaga-phsp-0.7.1.tar.gz
Algorithm Hash digest
SHA256 3b09cb159c7dbd103b01fccb3150f718c5e67b0a6fc4b4fe6e78bcfd68b9cafd
MD5 aa9c9bcc5f8f9b33a1cfd49aeff16fdf
BLAKE2b-256 1736c03bbc820a777ebc452d0f04ff23f6ac8cdaf20fe800a01976c0b564f3f1

See more details on using hashes here.

File details

Details for the file gaga_phsp-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: gaga_phsp-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 56.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for gaga_phsp-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 68e09950a4a5260eb801da97910ba0c82e4c0a9d8b1e07895ed6b5dae0083518
MD5 3291e3ad3ca696ebfaca1b02c3b5684a
BLAKE2b-256 8e42e08b5b1af4fa89c265577e2f57d469ae6721c494fbc2ea361b362c3bf0c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page