Skip to content

NuriaRufo/DeepPETmodified

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

DeepPET

DeepPET [1] is a Deep Learning method to reconstruct positron emission tomography (PET) images from raw data, organized in sinograms, to a high quality final image where the noise is greatly reduced. This repository contains all the tools necessary to work with an adaptation of the method with some changes in the original architecture.

Architecture

Set up environmet

conda create --name DeepPET_modified python=3.7
conda activate DeepPET_modified
pip install -r requirements.txt

Running the code

It is organized in two parts:

The first one consists of a series of directories where the images used are stored in NumPy format of size N x 128 x 128 x 1 (N, number of images). Here you can differentiate between the datasets you want to use and within them you can find training, validation and test set. In addition, the different trained models can also be stored here.

In the second part, we find all the code necessary to perform the tests. This can be divided into three stages:

  • Generate_input.py will load the user's images to use. You can also choose if you want to perform data augmentation to the set by rotation, rotation and random zoom. Afterwards, the corresponding sinograms will be generated from these images, which will be the input to the network. Finally, the datasets will be saved in the directory section and it is also given the possibility to save the data in batches for a later use of a batch generator that feeds the network dynamically and volatilely for lower GPU memory footprint.

  • Train.ipby will be the notebook where, as its name indicates, the training is carried out. To do this, images from the indicated directory are loaded and Poisson noise is added to them so that the network learns to handle noisy sinograms. Then, it is necessary to indicate the hyperparameters for the training and very important if you want to use the batch generator to feed the network. Once the model is trained, it is saved in the indicated directory and its performance is evaluated.

  • Finally, an inference can be made between the reconstruction results of the model and the traditional methods, also implemented. In this notebook, the average errors and the success rate of the test set of all methods will be displayed and a report will be created and saved in the indicated folder.

PET reconstruction results

We encourage the user to test the trained model on a brain phantom test set [2]. To do so, in the infer script, the corresponding directory will be set and the model DeepPETtrained.h5 will be chosen, available in [3]. These are the results of the reconstruction of the model as well as those of the traditional FBP, ML-EM and regularised ML-EM reconstruction [4] with their corresponding error with regards to the ground truth.

gitt

References:

  • Original DeepPET [1]: I. Häggström, C. R. Schmidtlein, G. Campanella, and T. J. Fuchs, “DeepPET: A deep encoder–decoder network for directly solving the PET image reconstruction inverse problem,” Medical Image Analysis, vol. 54, pp. 253–262, May 2019, doi: 10.1016/j.media.2019.03.013.

  • [2] C. A. Cocosco, V. Kollokian, R. K.-S. Kwan, and A. C. Evans, “BrainWeb: Online Interface to a 3D MRI Simulated Brain Database,” Neuroimage, vol. 5, no. no.4, part 2/4, S425, 1997.

  • Model trained for test [3]: https://drive.google.com/drive/folders/10k1alwt340cMyXpTIQoF3bfppDVjL6_f?usp=sharing

  • Iterative reconstruction methods [4]: G. Kontaxakis, “Iterative Image Reconstruction for Clinical PET Using Ordered Subsets, Median Root Prior, and a Web-Based Interface,” Molecular Imaging & Biology, vol. 4, no. 3, pp. 219–231, Jun. 2002, doi: 10.1016/S1536-1632(02)00004-5.

About

PET reconstruction with deep learning

Resources

Stars

Watchers

Forks

Packages

No packages published