TorchIO: A Python']Python library for efficient loading, preprocessing, augmentation and patch-based sampling of medical images in deep learning

被引:289
作者
Perez-Garcia, Fernando [1 ,2 ,3 ]
Sparks, Rachel [3 ]
Ourselin, Sebastien [3 ]
机构
[1] UCL, Dept Med Phys & Biomed Engn, London, England
[2] UCL, Wellcome EPSRC Ctr Intervent & Surg Sci WEISS, London, England
[3] Kings Coll London, Sch Biomed Engn & Imaging Sci BMEIS, London, England
基金
英国工程与自然科学研究理事会; 英国惠康基金;
关键词
Medical image computing; Deep learning; Data augmentation; Preprocessing; MR-IMAGES; SEGMENTATION; NETWORKS; PLATFORM; MODEL;
D O I
10.1016/j.cmpb.2021.106236
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
Background and objective: Processing of medical images such as MRI or CT presents different challenges compared to RGB images typically used in computer vision. These include a lack of labels for large datasets, high computational costs, and the need of metadata to describe the physical properties of voxels. Data augmentation is used to artificially increase the size of the training datasets. Training with image subvolumes or patches decreases the need for computational power. Spatial metadata needs to be carefully taken into account in order to ensure a correct alignment and orientation of volumes. Methods: We present TorchIO, an open-source Python library to enable efficient loading, preprocessing, augmentation and patch-based sampling of medical images for deep learning. TorchIO follows the style of PyTorch and integrates standard medical image processing libraries to efficiently process images during training of neural networks. TorchIO transforms can be easily composed, reproduced, traced and extended. Most transforms can be inverted, making the library suitable for test-time augmentation and estimation of aleatoric uncertainty in the context of segmentation. We provide multiple generic preprocessing and augmentation operations as well as simulation of MRI-specific artifacts. Results: Source code, comprehensive tutorials and extensive documentation for TorchIO can be found at http://torchio.rtfd.io/ . The package can be installed from the Python Package Index (PyPI) running pip install torchio . It includes a command-line interface which allows users to apply transforms to image files without using Python. Additionally, we provide a graphical user interface within a TorchIO extension in 3D Slicer to visualize the effects of transforms. Conclusion: TorchIO was developed to help researchers standardize medical image processing pipelines and allow them to focus on the deep learning experiments. It encourages good open-science practices, as it supports experiment reproducibility and is version-controlled so that the software can be cited precisely. Due to its modularity, the library is compatible with other frameworks for deep learning with medical images. (c) 2021 The Author(s). Published by Elsevier B.V. This is an open access article under the CC BY license ( http://creativecommons.org/licenses/by/4.0/ )
引用
收藏
页数:12
相关论文
共 62 条
[1]  
Abadi M, 2016, PROCEEDINGS OF OSDI'16: 12TH USENIX SYMPOSIUM ON OPERATING SYSTEMS DESIGN AND IMPLEMENTATION, P265
[2]   An Adaptive Sampling Scheme to Efficiently Train Fully Convolutional Networks for Semantic Segmentation [J].
Berger, Lorenz ;
Eoin, Hyde ;
Cardoso, M. Jorge ;
Ourselin, Sebastien .
MEDICAL IMAGE UNDERSTANDING AND ANALYSIS, MIUA 2018, 2018, 894 :277-286
[3]  
Billot B., 2020, MED IMAGING DEEP LEA, P75
[4]  
Billot B, 2020, Medical Image Computing and Computer Assisted Intervention-MICCAI 2020, P177, DOI DOI 10.1007/978-3-030-59728-3_18
[5]  
Blackwell S, 2018, RADIOTHERAPY
[6]  
Brett M, 2020, REDDAM FREEC84 NIPYN, DOI [10.5281/zenodo.3628482, DOI 10.5281/ZENODO.3628482]
[7]   Albumentations: Fast and Flexible Image Augmentations [J].
Buslaev, Alexander ;
Iglovikov, Vladimir I. ;
Khvedchenya, Eugene ;
Parinov, Alex ;
Druzhinin, Mikhail ;
Kalinin, Alexandr A. .
INFORMATION, 2020, 11 (02)
[8]   Geodesic Information Flows: Spatially-Variant Graphs and Their Application to Segmentation and Fusion [J].
Cardoso, M. Jorge ;
Modat, Marc ;
Wolz, Robin ;
Melbourne, Andrew ;
Cash, David ;
Rueckert, Daniel ;
Ourselin, Sebastien .
IEEE TRANSACTIONS ON MEDICAL IMAGING, 2015, 34 (09) :1976-1988
[9]   Variable-Density Single-Shot Fast Spin-Echo MRI with Deep Learning Reconstruction by Using Variational Networks [J].
Chen, Feiyu ;
Taviani, Valentina ;
Malkiel, Itzik ;
Cheng, Joseph Y. ;
Tamir, Jonathan I. ;
Shaikh, Jamil ;
Chang, Stephanie T. ;
Hardy, Christopher J. ;
Pauly, John M. ;
Vasanawala, Shreyas S. .
RADIOLOGY, 2018, 289 (02) :366-373
[10]   Self-supervised learning for medical image analysis using image context restoration [J].
Chen, Liang ;
Bentley, Paul ;
Mori, Kensaku ;
Misawa, Kazunari ;
Fujiwara, Michitaka ;
Rueckert, Daniel .
MEDICAL IMAGE ANALYSIS, 2019, 58