Rapid Development of Image Analysis Research Tools Bridging the Gap

Rapid Development of Image Analysis Research Tools Bridging the Gap

Computers in Biology and Medicine 69 (2016) 203–212 Contents lists available at ScienceDirect Computers in Biology and Medicine journal homepage: www.elsevier.com/locate/cbm Rapid development of image analysis research tools: Bridging the gap between researcher and clinician with pyOsiriX Matthew D. Blackledge n, David J. Collins, Dow-Mu Koh, Martin O. Leach CR-UK Cancer Imaging Centre, Radiotherapy and Imaging Division, The Institute of Cancer Research and The Royal Marsden NHS Foundation Trust, London, United Kingdom article info abstract Article history: We present pyOsiriX, a plugin built for the already popular dicom viewer OsiriX that provides users the Received 24 July 2015 ability to extend the functionality of OsiriX through simple Python scripts. This approach allows users to Accepted 3 December 2015 integrate the many cutting-edge scientific/image-processing libraries created for Python into a powerful DICOM visualisation package that is intuitive to use and already familiar to many clinical researchers. Keywords: Using pyOsiriX we hope to bridge the apparent gap between basic imaging scientists and clinical practice Medical imaging in a research setting and thus accelerate the development of advanced clinical image processing. We Radiology provide arguments for the use of Python as a robust scripting language for incorporation into larger Dicom visualisation software solutions, outline the structure of pyOsiriX and how it may be used to extend the functionality Computed tomography of OsiriX, and we provide three case studies that exemplify its utility. OsiriX For our first case study we use pyOsiriX to provide a tool for smooth histogram display of voxel values Python fi Dicom management within a user-de ned region of interest (ROI) in OsiriX. We used a kernel density estimation (KDE) method available in Python using the scikit-learn library, where the total number of lines of Python code required to generate this tool was 22. Our second example presents a scheme for segmentation of the skeleton from CT datasets. We have demonstrated that good segmentation can be achieved for two example CT studies by using a combination of Python libraries including scikit-learn, scikit-image, SimpleITK and matplotlib. Furthermore, this segmentation method was incorporated into an automatic analysis of quantitative PET-CT in a patient with bone metastases from primary prostate cancer. This enabled repeatable statistical evaluation of PET uptake values for each lesion, before and after treatment, providing estaimes maximum and median standardised uptake values (SUVmax and SUVmed respectively). Following treatment we observed a reduction in lesion volume, SUVmax and SUVmed for all lesions, in agreement with a reduction in concurrent measures of serum prostate-specific antigen (PSA). Crown Copyright & 2015 Published by Elsevier Ltd. This is an open access article under the CC BY license (http://creativecommons.org/licenses/by/4.0/). 1. Introduction Imaging has revolutionized the standard for patient care and research in many fields of medicine including oncology [1–10], A search for the keyword ‘Imaging’ in PubMed reveals that the cardiology [11–16] and cognitive sciences [17–20]. This increased number of medical imaging related articles published in 2014 reliance on imaging has evolved through technological innova- exceeds 66,000 and that this number has been increasing over tions, enabling better diagnostic accuracy, faster acquisition times recent years. One major contributor is likely to be the increased and lower costs. Furthermore, advances in computer hardware and utility of clinical and preclinical studies, which include magnetic storage now allow large patient datasets to be archived (e.g. up to several gigabytes per examination), which can be pipelined for resonance imaging (MRI), computed tomography (CT), diagnostic advanced processing to enhance diagnostic performance. We ultrasound (US) and positron emission tomography (PET) amongst predict that this trend will continue with further developments in others. Imaging provides a major advantage over other diagnostic multi-modal imaging [21–26], quantitative imaging [10,27–31] techniques, as it is non-invasive and can provide in-vivo mea- and radiomics/radiogenomics [32–38]. However, the rapid infla- surements of the biological properties of human tissue that can be tion in data volume necessitates the development of rapid and monitored over time. robust image analysis tools to ensure timely delivery of pertinent information. n The advent of the Digital Imaging and Communications in Correspondence to: The Institute of Cancer Research, 15 Cotswold Road, Sutton, ’ Surrey, SM2 5NG, United Kingdom. Medicine (DICOM) standard in the 1980 s has provided vendors E-mail address: [email protected] (M.D. Blackledge). with a common and lightweight means to store and distribute http://dx.doi.org/10.1016/j.compbiomed.2015.12.002 0010-4825/Crown Copyright & 2015 Published by Elsevier Ltd. This is an open access article under the CC BY license (http://creativecommons.org/licenses/by/4.0/). 204 M.D. Blackledge et al. / Computers in Biology and Medicine 69 (2016) 203–212 medical data [39,40]. This revolution enables images acquired they are altered in debugging. This issue, in the view of the from different imaging modalities to be centrally accessed for author, has been a major roadblock in the development of patient diagnosis, and also to be searched and viewed on inde- plugins, which require OsiriX to be restarted many times during pendent platforms. Most imaging systems now provide their own development. DICOM solution, which are also equipped with powerful visuali- All memory management is taken care of automatically by the sation tools such as multi-planar reformatting and volume ren- interpreter. If a variable name is re-used, the old memory dering; alongside a comprehensive DICOM management frame- assigned to the variable reference is automatically deallocated. work. Furthermore, a number of independent alternative com- The interpreter is able to issue errors to the user without mercial DICOM visualisation platforms such as eFilm [41] and Olea needing to stop the current runtime making the debug step of Sphere [42] are also available. code development much simpler. An open-source DICOM imaging solution designed for the Apples As code written for interpretive languages can be saved as a text operating system, OsiriX, has gathered considerable interest amongst file, this automatically provides an easy way to store, audit and the medical community [43–45]. Built heavily using the Mac-native version-control algorithms in human readable format. Objective-C programming language and libraries, it performs many of the vital medical image viewing tasks outlined above, including 2D/ However, if execution time is an issue, Python provides a 3D/4D data visualisation, DICOM database management and is able to straight forward C API that makes it trivial to build Python libraries act as a ‘Picture Archiving and Communication System’ (PACS) server comprising native machine code to perform tasks at speed. The C for the retrieval of images transferred from other medical devices. It API also provides the possibility of embedding Python as a features an intuitive user-interface (UI) that is easy to use, which scripting interpreter in another application, a feature that is not fi includes tools for de ning Regions of Interest (ROIs) and basic image available to other scripting tools such as Matlab and IDL. Fur- processing such as smoothing and segmentation. Of particular inter- thermore, Python is becoming very competitive as a scientific est for imaging scientists is an open-source application program programming tool [52,53] thanks to the advent of many free and interface (API) that supports the development of custom-built ‘Plu- open-source scientific libraries including efficient array manip- gins’ using the Objective-C programming language. At our institution, ulation using NumPy [46], scientific computing using SciPy [50], we have used this feature extensively to design and develop solutions for clinical research trials, where a number of novel image processing extensive plotting routines with matplotlib [48], advanced image algorithms may be tested. These have included a plugin for computed processing with scikit-image [50], state-of-the-art machine diffusion weighted MR-imaging (cDWI) to improve the assessment of learning using scikit-learn [49] and Bayesian modelling with PyMC skeletal metastasis [27] and the calculation of fat-fraction from fat- [54]. Furthermore, Python builds of the Insight Segmentation and water MRI techniques, amongst others. Although using the OsiriX API Registration Toolkit (ITK) [51] provide fast and easy access to some has provided our clinicians with useful clinical tools, this approach is of the most advanced image segmentation and registration algo- impractical for research. The development of low-level C-based soft- rithms available to the imaging community. As a result of current ware is too cumbersome for rapid prototyping and lacks the scientific developments we speculate that Python will be a major contender libraries available to scientific languages such as Matlab, IDL and as the programming language of choice in scientific imaging Python. In this article we present our solution: pyOsiriX is a plugin research. that has been developed with the aim of providing researchers access to the data and functionality contained within OsiriX by means of using Python

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    10 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us