Skip to main content

Algorithm to simulate resections osurgery on brain MRI scans.

Project description

resector

Resections

Implementation of a TorchIO transform used to simulate a resection cavity from a T1-weighted brain MRI and a corresponding geodesic information flows (GIF) brain parcellation (version 3.0).

The corresponding talk at MICCAI 2020 is available on YouTube: MICCAI 2020 - Fernando Pérez-García - Simulation of resection cavity for self-supervised learning.

Credit

If you use this library for your research, please cite the following publications:

Pérez-García, F., Dorent, R., Rizzi, M., Cardinale, F., Frazzini, V., Navarro, V., Essert, C., Ollivier, I., Vercauteren, T., Sparks, R., Duncan, J.S., Ourselin, S.: A self-supervised learning strategy for postoperative brain cavity segmentation simulating resections. International Journal of Computer Assisted Radiology and Surgery – IJCARS (Jun 2021)

Pérez-García, F., Rodionov, R., Alim-Marvasti, A., Sparks, R., Duncan, J.S., Ourselin, S.: Simulation of Brain Resection for Cavity Segmentation Using Selfsupervised and Semi-supervised Learning. In: Medical Image Computing and Computer Assisted Intervention – MICCAI 2020. pp. 115–125. Lecture Notes in Computer Science, Springer International Publishing, Cham (2020)

Bibtex:

@inproceedings{perez-garcia_simulation_2020,
    address = {Cham},
    series = {Lecture {Notes} in {Computer} {Science}},
    title = {Simulation of {Brain} {Resection} for {Cavity} {Segmentation} {Using} {Self}-supervised and {Semi}-supervised {Learning}},
    isbn = {978-3-030-59716-0},
    doi = {10.1007/978-3-030-59716-0\_12},
    language = {en},
    booktitle = {Medical {Image} {Computing} and {Computer} {Assisted} {Intervention} {\textendash} {MICCAI} 2020},
    publisher = {Springer International Publishing},
    author = {P{\'e}rez-Garc{\'i}a, Fernando and Rodionov, Roman and Alim-Marvasti, Ali and Sparks, Rachel and Duncan, John S. and Ourselin, S{\'e}bastien},
    year = {2020},
    keywords = {Segmentation, Self-supervised learning, Neurosurgery},
    pages = {115--125},
}

@article{perez-garcia_self-supervised_2021,
    title = {A self-supervised learning strategy for postoperative brain cavity segmentation simulating resections},
    issn = {1861-6429},
    url = {https://doi.org/10.1007/s11548-021-02420-2},
    doi = {10.1007/s11548-021-02420-2},
    language = {en},
    urldate = {2021-06-14},
    journal = {International Journal of Computer Assisted Radiology and Surgery},
    author = {P{\'e}rez-Garc{\'i}a, Fernando and Dorent, Reuben and Rizzi, Michele and Cardinale, Francesco and Frazzini, Valerio and Navarro, Vincent and Essert, Caroline and Ollivier, Ir{\`e}ne and Vercauteren, Tom and Sparks, Rachel and Duncan, John S. and Ourselin, S{\'e}bastien},
    month = jun,
    year = {2021},
    file = {Springer Full Text PDF:/Users/fernando/Zotero/storage/SM9WHUB7/P{\'e}rez-Garc{\'i}a et al. - 2021 - A self-supervised learning strategy for postoperat.pdf:application/pdf},
}

Installation

Using conda is recommended:

conda create --name resenv python=3.8 --yes && conda activate resenv
pip install light-the-torch
ltt install torch
pip install git+https://github.com/fepegar/resector
resect --help

Usage

resect t1.nii.gz gif_parcellation.nii.gz t1_resected.nii.gz t1_resection_label.nii.gz

TorchIO, which is installed with resector, can be used to download some sample images:

T1=`python -c "import torchio as tio; print(tio.datasets.FPG().t1.path)"`
GIF=`python -c "import torchio as tio; print(tio.datasets.FPG().seg.path)"`
resect $T1 $GIF t1_resected.nii.gz t1_resection_label.nii.gz

Run resect --help for more options.

Funding

This work was funded by the Engineering and Physical Sciences Research Council (EPSRC) and the Wellcome Trust.

It was additionally supported by the EPSRC-funded UCL Centre for Doctoral Training in Intelligent, Integrated Imaging in Healthcare (i4health) and the Wellcome / EPSRC Centre for Interventional and Surgical Sciences (WEISS).

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

resector-0.2.9.tar.gz (9.4 MB view details)

Uploaded Source

Built Distribution

resector-0.2.9-py2.py3-none-any.whl (86.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file resector-0.2.9.tar.gz.

File metadata

  • Download URL: resector-0.2.9.tar.gz
  • Upload date:
  • Size: 9.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.7

File hashes

Hashes for resector-0.2.9.tar.gz
Algorithm Hash digest
SHA256 96fd10705add9602c1afce61db9a667bd88388072a8fe5a68283417985b596ed
MD5 5cf889caa635dccbb86bfe9cbaba15a3
BLAKE2b-256 4e93d0c09f87f88315af7c5e73612b53cff22fc278da53bb8c53c511e7566a59

See more details on using hashes here.

File details

Details for the file resector-0.2.9-py2.py3-none-any.whl.

File metadata

  • Download URL: resector-0.2.9-py2.py3-none-any.whl
  • Upload date:
  • Size: 86.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.7

File hashes

Hashes for resector-0.2.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 37947151cf1d187de6b15468bb6176aa2fe7468551751428c94fdd4daff0dee1
MD5 a371be46c7bcb300a85600b20d2e1c2a
BLAKE2b-256 b7a45850f7b472cb5e927230f06969c958dc683286da35eb32a3b4f15bf3c69c

See more details on using hashes here.

Supported by

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