NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of...

82
Image analysis in IHC - overview, considerations and applications NordiQC Workshop in Aalborg 19 th - 21 st September Rasmus Røge, MD, NordiQC scheme organizer

Transcript of NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of...

Page 1: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Image analysis in IHC - overview, considerations and applications

NordiQC Workshop in Aalborg

19th - 21st September

Rasmus Røge, MD, NordiQC schemeorganizer

Page 2: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

When?

• Time consuming repeatable tasks

• Standardizable

• Output are simple or quantifiable parameter:• Count

• Length

• Area

• Volume

• Regions of Interest with specific characteristics

• Categorical

Page 3: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

When not?

• “We will just solve that by some image analysis…”

• “Ready by Friday…?”

• Very complex setups that requires (human) interpretation

• Jobs that could easily be solved in another way

Page 4: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Theory

Image analysis in IHC - overview, considerations and applications

Page 5: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Theory

• Digital Image – numericrepresentation of two-dimensional image

• Either• Raster type: coordinate

system of pixels, resolution-fixed (bmp, jpg, gif)

• Vector type: build from primitive geometricalshapes, not-resolution-fixed (pdf, ps, fonts)

raster

Page 6: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Pixels

Page 7: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

RGB colour model

• Additive colour model

• Red, green and blue light

• System to encoderepresentation of colour

Page 8: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,
Page 9: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,
Page 10: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,
Page 11: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,
Page 12: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Digitization – microscope / scanners

Camera mounted on microscope

• Pro• Area of interest

• Quick

• Con• Time consuming

• Not standardizable

• Area of interest only

Slide scanner

• Pro• Standardizable

• Quality

• Con• Price

• Time

• File size

Page 13: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Slide scanner

• Single or multi-slide scanner

• Whole experiment on same scanner!

• Whole experiment aftercalibration

Page 14: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Image analysis

• Selection of filters

• Preprocessing – optimization of image to classification• Noise filtering, enhancement

• Classification / Segmentation

• Post processing

• Report of quantitative results

Page 15: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Selection of relevant tissue

• TMA will often contain severalirrelevant or less interestingareas

• Algorithm will analyse wholeimage or ROI (Region of interest)

• Manually or automaticdetection of ROI?

Page 16: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Noise filtering

Page 17: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Edge EnhancementStandard deviation filter

Page 18: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Edge EnhancementStandard deviation filter

100 100 100

100 100 100 -> 0

100 100 100

200 198 7

255 132 3 -> 96

150 150 2

Page 19: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Classification / segmentation

• Algorithms that group everypixels according to definedcriteria

• Can be unsupervised orsupervised• Simple: based on threshold

• Complex: several thresholds, probabilistic (Bayesian), model-fitting (K-means), texture

Page 20: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Threshold

Page 21: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Bayesian

Page 22: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Bayesian

Page 23: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

K-means

• Clustering algorithm

• Manually select number of categories (K)

• Randomly select K points (center of groups)

• Assign all point to categoryaccording to euclidian distance to center

• Calculate new center

• Repeat as needed

Page 24: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

K-means

Page 25: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

K-means

Page 26: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

K-means

Page 27: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Post processing

Page 28: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Post processing

Post-processing:Small green area, replaced by blueSmall blue area, replaced by green

Page 29: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Report of quantitative results

COUNT:Typical number or fraction of objects

AREA:Area of each category

Page 30: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Image analysis –example 1

Image analysis in IHC - overview, considerations and applications

Ki67 & Virtual Double Staining

Page 31: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Ki67 – why is it important?

• Breast cancer:• Both a prognostic and predictive marker

• Cut-off points have been suggested

• Neuroendocrine tumours• Grading

Page 32: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Digital Image Analysis

Criteria

• Identify nuclei

• Distinguish Ki67 positive and negative nuclei

• Exclude non-tumour cellsfrom analysis

Page 33: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Virtuel Double Staining: concept

33

Tissue Block

• Neighboring slide stained for pancytokeratin

Cut serial sections (3µm):• Slide stained for Ki67

Page 34: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

34

Image analysis for identification of tumor

Ki67 Pancytokeratin

Page 35: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

35

Image analysis for identification of biomarker (Ki67)

Ki67 Pancytokeratin

Page 36: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Validation of VDS + Ki67 counting

• Validation of the Nuclear detection and segmentation (number of positive and negative nuclei)

• Validation of the alignment algorithm• Overlap/agreement between slides

• Sensitivity to distance between slides

Page 37: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Method

• 3 TMAs containing more than 100 cores of breast carcinomas

• 2 slides were cut from each block, one stained for PCK, one for Ki67

• Areas were sampled from each core using SURS (systematic uniform randomized sampling) for manual counting

• Only a small percentage of total number of cells were counted (200-400)

Page 38: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Systematic Random Sampling

Page 39: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Systematic Random Sampling

• Grid of framesrandomly placedon core

• Positive and negative tumourcells countedmanually in eachframe

• Each frameextracted as an image for Virtual Double Staining

Page 40: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Stereological counting

Page 41: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,
Page 42: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Bland-Altman

Page 43: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Image analysis –example 2

Image analysis in IHC - overview, considerations and applications

Ki67 clone comparison

Page 44: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Ki67 – why staining quality is important

Page 45: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Ki67 - NordiQC

2001 2007 2009 2012

Participants 42 100 124 229

Sufficient 71% 73% 77% 89%

Optimal Good Borderline Poor

Total 166 39 18 6

Proportion 72% 17% 8% 3%

Performance in 4 NordiQC runs

Performance marks in Run B13 (2012)

Page 46: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Antibody clone comparison

Page 47: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Experimental setup• TMA with 40 breast cancers

• Stained using most commonly used mAb: Mib1, SP6, 30.9, MM1

• Stained using both (ifavailable) Ready-To-Useformat and concentratedformat (In-House optimizedprotocol)

• Stained on all major stainingplatforms

• Parallel slide stained for PCK

• Proliferation Index calculatedusing Virtual Double Staining

Page 48: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Results●●

●●●

●●

−50

−25

0

25

50

−50

−25

0

25

50

Co

nce

ntra

teR

ea

dy−

To−

Use

Dako Autostainer Leica Bond Ventana Ultra

Staining Platform

Ab

solu

te d

iffe

rence

in P

I (%

)

clone

30.9

Mib1

MM1

SP6

Page 49: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

SP6 concentrate,Ventana platform

Proliferation Index:38 %

MM1 RTU,Leica platform

Proliferation Index:12 %

Page 50: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Image analysis –example 3

Image analysis in IHC - overview, considerations and applications

HER2 connectivity and cell lines

Page 51: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Control material for HER2 IHC: performace control / consistency

Histology:

3+ tumour

2+ tumour

Cell lines:

3+

2+

Applicable

for DIA &

ref data

comparing

run-to-run

Courtesy of S. Nielsen

Page 52: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Control material for HER2 IHC: performace control / consistencyHistocyte cell lines HER2: PATHWAY IHC

Cell line 1 – 3+ Cell line 2 – 2+

Cell line 3 – 1+ Cell line 4 – 0

Courtesy of S. Nielsen

Page 53: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Control material for HER2 IHC: performace control / consistencyHistocyte cell lines HER2: PATHWAY IHC

Cell line 1 – 3+ Cell line 2 – 2+

Cell line 3 – 1+ Cell line 4 – 0

Courtesy of S. Nielsen

Page 54: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

SoftwareImage analysis in IHC - overview, considerations and applications

Page 55: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Software

• ImageJ (http://imagej.nih.gov/ij/ ): Open-source, FREE, platform-independent, large community, Requires programming-skills

• VIS (http://www.visiopharm.com/): fully developed apps, expensive, database-handling of data and images, scanner independent

• Definiens

• INCA

• Aperio (Leica)

• PathXL / Philips

• Matlab

Page 56: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Thank you for your attention!

Collaborators

Søren Nielsen

Rikke Riber-Hansen

Alex Skovsbo Jørgensen

Lasse Riis Østergaard

Mogens Vyberg

Page 57: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Pitfalls

Image analysis in IHC - overview, considerations and applications

Page 58: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Pitfalls - artefacts

Page 59: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Counter staining

Page 60: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Unspecific / Background staining

Page 61: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Staining of other cells

Page 62: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Scanning - background

Page 63: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Validation of alignmentDigital Image Analysis – Ki67

Page 64: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Validation of alignment

Page 65: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,
Page 66: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,
Page 67: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Five parallel slides of PCK

Page 68: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

•5 parallel slides from TMA containing 40 breast cancers

•All stained for PCK TMA

•Only 26 (of 40) cores were usable

• Exclusion were due to• Missing cores in one or more slides• Damaged cores

PCK-Alignment

Page 69: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

PCK-Alignment

• Algorithm was developed that segmented 2 slides based on PCK expression

• Four categories based on PCK status in slide 1 and slide 2:+ / + : PCK positive in both slides

- / - : PCK negative in both slides

+ / - or - / +: PCK positive in only one slide

Page 70: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,
Page 71: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,
Page 72: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,
Page 73: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Overlap/agreement (%)

• Calculated as:

PCK positive area in both slides +

PCK negative area in both slides

Divided by total area

+ + +

Page 74: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Good agreement (>90 %)

Page 75: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Less good agreement

Page 76: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,
Page 77: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Image analysis –advanced algorithms

Image analysis in IHC - overview, considerations and applications

Page 78: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Advanced algoritms

• More complex algorithms

• Successive application of severalalgorithms

• Not only thresholds

• Texture-based

• Architecture-based

• Feature-based training• Feature may be selected

statistically and unsupervised

Page 79: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Advanced algorithms – architectural and texture

Page 80: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Advanced algoritms - texture

Kather, J. N., Weis, C. A., Bianconi, F., Melchers, S. M., Schad, L. R., Gaiser, T., ... & Zöllner, F. G. (2016). Multi-class texture analysis in colorectal cancer histology. Scientific reports, 6, 27988.

Page 81: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

Advanced algorithms – cell nuclei texture

Jørgensen, A. S., Rasmussen, A. M., Andersen, N. K. M., Andersen, S. K., Emborg, J., Røge, R., & Østergaard, L. R. (2017). Using cell nuclei features to detect colon cancer tissue in hematoxylin and eosin stained slides. Cytometry Part A, 91(8), 785-793.

Page 82: NordiQC Workshop in Aalborg Image analysis in IHC - overview, · Image analysis •Selection of filters •Preprocessing –optimization of image to classification •Noise filtering,

AI

Djuric, Ugljesa, et al. "Precision histology: how deep learning is poised to revitalize histomorphology for personalized cancer care."npj Precision Oncology 1.1 (2017): 22.