TorchIO
TorchIO provides utilities for loading, preprocessing, augmenting, and patch-based sampling of medical images (MRI and CT) for deep learning workflows while preserving voxel spatial metadata and orientation.
Key Features:
- Efficient Data Handling: Supports efficient loading and preprocessing of large medical image datasets to address high computational demands.
- Data Augmentation: Implements augmentation techniques to artificially increase dataset variability and improve model robustness for limited labeled medical images.
- Patch-Based Sampling: Enables training on image subvolumes/patches to reduce memory and computational requirements during model training.
- Metadata Management: Preserves and manages spatial metadata including voxel physical properties, alignment, and orientation to maintain correct volume geometry.
- Transform Flexibility: Provides a wide range of preprocessing and augmentation transforms, including simulation of MRI-specific artifacts, with most transforms invertible to support test-time augmentation and aleatoric uncertainty estimation.
- Modularity and Composability: Offers a modular architecture that enables composition, reproduction, tracing, and extension of data transformations.
- PyTorch Integration: Integrates with the PyTorch framework to apply transforms within neural network training pipelines.
- Reproducibility Support: Promotes standardized processing pipelines and supports experiment reproducibility, including use of version control.
Scientific Applications:
- Neural network training: Preprocessing, augmentation, and patch sampling for training deep learning models on MRI and CT data.
- Data-efficiency and robustness: Augmentation to increase effective dataset size and robustness when labeled medical images are scarce.
- Segmentation and uncertainty estimation: Invertible transforms and test-time augmentation to estimate aleatoric uncertainty in segmentation tasks.
- Method validation with artifact simulation: Simulation of MRI-specific artifacts to evaluate algorithm resilience and robustness.
- Spatially accurate quantitative analysis: Preservation of voxel metadata to ensure correct alignment and orientation for quantitative measurements.
Methodology:
Computational operations include efficient image loading, preprocessing transforms, data augmentation (including MRI artifact simulation), patch-based sampling, invertible and composable transforms, preservation of spatial metadata, and integration with PyTorch for application within training pipelines.
Topics
Details
- License:
- Apache-2.0
- Cost:
- Free of charge
- Tool Type:
- library
- Operating Systems:
- Mac, Linux, Windows
- Programming Languages:
- Python
- Added:
- 11/15/2021
- Last Updated:
- 11/15/2021
Operations
Publications
Pérez-García F, Sparks R, Ourselin S. TorchIO: A Python library for efficient loading, preprocessing, augmentation and patch-based sampling of medical images in deep learning. Computer Methods and Programs in Biomedicine. 2021;208:106236. doi:10.1016/j.cmpb.2021.106236. PMID:34311413. PMCID:PMC8542803.