with openshift and openstack medical image …...medical image processing with openshift and...

29
Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr. Principal Software Engineer Red Hat Ata Turk Research Scientist Boston University

Upload: others

Post on 20-May-2020

24 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr

Medical Image Processing with OpenShift and OpenStack

Rudolph PienaarStaff ScientistBoston Children’s Hospital

Dan McPhersonSr. Principal Software EngineerRed Hat

Ata TurkResearch ScientistBoston University

Page 2: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr

The Landscape

Medical image processing research happens in relative isolationThe focus is on the output

Everyone invents their own platform

Brorfelde landscape by Stig Nygaard, Creative Commons Attribution 2.0

Page 3: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr

ChRIS

ChRIS (ChRIS Research Integration System) is a web-based medical image platform that allows for various forms of medical image (Ex: MRIs) processing.

ChRIS itself is comprised of multiple open source projects (https://github.com/FNNDSC/) and the intention is to make the research and capabilities available to other hospitals.

Page 4: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr

Massachusetts Open Cloud (MOC)

Collaborative effort bw/ 5 research universities, government, and industry

Unlike Amazon/Microsoft/Google an open ecosystem of cloud services

Research and innovation over a production-scale public cloud

- Operating over a 15MW datacenter- Backed by OpenStack and OpenShift

Page 5: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr

Combined GoalImprove the scale and efficiency of healthcare image processing applications using various Red Hat technologies

○ Today image processing takes ~10 hrs for certain apps. Ideally we can get that down to a few mins.

Democratize medical image application development

○ Standardize healthcare application development (docker/OCI)○ Provide a platform that enables testing over real data (OpenShift+OpenStack)

Page 6: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr

The Technology

Page 7: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr

OCI / docker

● Standardizes image processor development

○ Portability○ Dependency isolation

Page 8: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr

OpenShift / Kubernetes

● Provides scaled job framework for running image processors

● Resource Management○ CPU/Memory/Network/GPU

● Easy to operationalize (logging/metrics/Ansible/etc.)

Page 9: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr

OpenShift : Optimizing for Density

Utilize slack resources with QOS Tiers

RESERVED

FREE

CONSUMED

SLACK CONSUMED ORMASSACHUSETTS OPEN CLOUD (MOC)

Page 10: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr

OpenShift - AI/ML● Spark● Tensorflow● ...

Page 11: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr

OpenStack● OpenShift/Kubernetes doesn’t

solve the infrastructure problem● Containers need a unifying story

for the private cloud● On-premises IaaS

○ Compute (GPU and CPU)○ Networking○ Storage (Ceph)○ Scale & on-demand access

Page 12: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr

Medical Processing

● Registration○ “morph” one

image onto another

○ Used for:■ localization■ “difference”■ typical first

step

Page 13: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr

Medical Processing

● Classification (AI/ML)○ Identification and pointing out

abnormalities○ Complex contrasts

● Metabolism○ Monte Carlo simulation of photon

propagation through brain tissue

○ Multiple wavelengths, scattered based on tissue properties and local metabolism of O2

Page 14: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr

Medical Processing

● Tractography○ acquire multiple image

volumes○ solve diffusion equation for

water movement based on image contrast

■ mapping fiber paths through the brain for surgical planning

Page 15: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr

Compute Environment

Compute Environment

ChRIS Detail

ChRIS

Store

Compute Environment

Data Source Data Source

Data Source

Page 16: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr

Compute Environment

I3 O3Pc

Compute Environment

ChRIS Detail

Data Source

ChRIS

Store

I1I1

O1

I1 O1Pa

Pa

Pb

Pn

Compute Environment

I2 O2Pb

I2

O2

I3

O3

I2

I3

Page 17: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr

MOC (OpenStack) OpenShift

Job

Architecture BCH

Process ManagerIO Handler

Swift

Image Plugin 1

ChRIS

Shared VolumeImage Plugin 2 Image Plugin N...

Publish Container

Init Container

OperationData

Page 18: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr

Parallelizing Plugins

Page 19: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr

Image Processing

Container 1 (Node A)

Container 2 (Node B)

Container 3 (Node C)

Container 4 (Node D)

● Parallel Processing with Kubernetes Job Framework

● N workers run until worker 1-N completes (fixed completion count)

● Communication through FS or Network

Page 20: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr

Parallel Example - Advanced Normalization Tools

● Among the highest quality algorithms for non-rigid registration○ https://github.com/stnava/ANTs○ https://github.com/FNNDSC/pl-antsreg

● Used as prototype for scaling image plugins● Lessons Learned

○ Most existing image processing applications weren’t written to scale horizontally○ Performance gains dependent on how much of the algorithm is parallelizable

Setup Parallelizable Processing Coalesce

Page 21: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr

GPU Enabled Plugins

Page 22: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr

GPU Topology MOC (OpenStack)

HOST X

VM 1

CONTAINER 1

CONTAINER N

CONTAINER 2

VM 2

CONTAINER 1

CONTAINER N

CONTAINER 2

Page 23: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr

GPU Details

Container 1 (Node A)

Container 2 (Node B)

Container 3 (Node C)

Container 4 (Node D)

Plugins register themselves with ChRIS as requiring or desiring a GPU

OpenShift/Kubernetes schedules plugins onto nodes with available GPUs

○ Device Plugins

‘Gpu’ icon by Misha Petrishchev from the Noun Project, CC-BY 3.0

Page 24: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr

GPU Example - Prostate Segmentationhttps://github.com/FNNDSC/pl-neuproseg/

Page 25: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr

GPU Example - Monte Carlo

Page 26: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr

Demo

Page 27: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr
Page 28: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr

Take AwaysChoosing the right open source solutions is essential to every project’s success

OpenShift on OpenStack solved our processing and data management challenges and let us focus on the specific problem at hand

Page 29: with OpenShift and OpenStack Medical Image …...Medical Image Processing with OpenShift and OpenStack Rudolph Pienaar Staff Scientist Boston Children’s Hospital Dan McPherson Sr

plus.google.com/+RedHat

linkedin.com/company/red-hat

youtube.com/user/RedHatVideos

facebook.com/redhatinc

twitter.com/RedHat

THANK YOU