SiPBA Research Lab
  • Home
  • People
  • Research
  • Publications
  • Posts

On this page

  • Installation
  • Quickstart

BrainSimulator

python
Functional brain image synthesis using the KDE or MVN distribution.
Author
Affiliation

F.J. Martinez-Murcia

Dpt. of Signal Theory, Networking and Communications. University of Granada & DaSCI.

Published

November 30, 2017

Schema of Brain Simulator

brainSimulator is a brain image synthesis procedure for data augmentation and standardization of evaluation of ML neuroimaging pipelines. It intends to generate a new image set that share characteristics given an original one. The system focuses on nuclear imaging modalities such as PET or SPECT brain images. It analyses the dataset by applying PCA to the original dataset, and then model the distribution of samples in the projected eigenbrain space using a Probability Density Function (PDF) estimator. Once the model has been built, anyone can generate new coordinates on the eigenbrain space belonging to the same class, which can be then projected back to the image space.

Documentation Download

Installation

brainSimulator is now available via pypi and can be installed directly from:

pip install brainSimulator

Alternatively, download the package, uncompress and execute:

cd /path/to/uncompressed/brainSimulator/
python setup.py install

Quickstart

This allows to train the model once and then perform as many sample drawings as required.

#navigate to the folder where simulator.py is located
import brainSimulator as sim

simulator = sim.BrainSimulator(algorithm='PCA', method='mvnormal')
simulator.fit(original_dataset, labels) 
images, classes = simulator.generateDataset(original_dataset, labels, N=200, classes=[0, 1, 2])

Citation

BibTeX citation:
@online{martinez-murcia2017,
  author = {Martinez-Murcia, F.J.},
  title = {BrainSimulator},
  date = {2017-11-30},
  url = {https://pakitochus.github.io/fjmartinezmurcia.es/posts/2017-11-30-project-brainsimulator/},
  langid = {en}
}
For attribution, please cite this work as:
Martinez-Murcia, F.J. 2017. “BrainSimulator.” November 30, 2017. https://pakitochus.github.io/fjmartinezmurcia.es/posts/2017-11-30-project-brainsimulator/.