65
High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction to multispectral imaging Bartek Rajwa, PhD Bindley Bioscience Center Purdue University

Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

  • Upload
    others

  • View
    5

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

High Content 2016 September 12th-14th 3rd Annual Conference

Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA

Introduction to multispectral imaging

Bartek Rajwa, PhD

Bindley Bioscience Center Purdue University

Page 2: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Outline • 

– – – 

• • 

– – – 

• – – 

Page 3: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

What is (multi)spectral imaging?

• 

– 

– – 

• 

– 

– • 

Page 4: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Origin of spectral imaging: LANDSAT system

• • 

• 

• 

Page 5: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Remote sensing

Page 6: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Hi-res imaging vs. spectral imaging

Page 7: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

COLLECTING THE DATA

Page 8: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Spectral imaging in microscopy - web resources

• 

• 

• 

Page 9: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Collecting a lambda stack

Page 10: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Spectral imaging + microscopy

Page 11: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Spectral imaging – various approaches

Page 12: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Spectral microscopy hardware

• 

• 

Page 13: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Nikon spectral imaging system

Page 14: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Other multispectral arrangements in microscopy

Page 15: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

PROCESSING THE DATA

Page 16: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

210 bands unmixed into 7 endmembers

Page 17: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Multispectral small animal imaging

Page 18: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Problem: spectral overlap

TO-PRO-3MitoSOX RedCalcium GreenVybrant DyeCycleViolet stainMonobromobimane(mBBr)

• 

• 

Page 19: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Let’s revisit

Page 20: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Spectral unmixing overview

Page 21: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Mixing and unmixing

Page 22: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

We have two detectors, but some cross-talk happens

Page 23: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Mixing , sorting and sieving…

a = 100

50⎡

⎣⎢

⎦⎥;M = 0.8 0.3

0.2 0.7⎡

⎣⎢

⎦⎥

Page 24: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Matrix notation

⎡ ⎤= ⎢ ⎥⎣ ⎦

0.8 0.30.2 0.7

M

Page 25: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

What is the definition of “true” signal?

r1 = pa1 + (1− q)a2

r2 = (1− p)a1 + qa2

⎧⎨⎪

⎩⎪

r1r2

⎣⎢⎢

⎦⎥⎥=

p 1− q1− p q

⎣⎢⎢

⎦⎥⎥

a1

a2

⎣⎢⎢

⎦⎥⎥

′ ′= − = +⎧ ⎧⇒⎨ ⎨′ ′= − = +⎩ ⎩

′⎡ ⎤ ⎡ ⎤⎡ ⎤=⎢ ⎥ ⎢ ⎥⎢ ⎥′⎣ ⎦⎣ ⎦ ⎣ ⎦

1 1 2 1 1 2

2 2 1 2 1 2

1 1

2 2

11

s r q s r s q ss r p s r p s s

r sqr sp

The a1 and a2 (abundances) defined for unmixing are different than s1 and s2 (compensated signals) defined for compensation!

a1s1

Page 26: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Just a digression…

−−

⎝⎜

⎠⎟⎛

⎝⎜⎜

⎠⎟⎟=

′′

⎝⎜

⎠⎟⎛

⎝⎜⎜

⎠⎟⎟

−−

⎝⎜

⎠⎟⎛

⎝⎜⎜

⎠⎟⎟=

⎜⎜⎜⎜

⎟⎟⎟⎟

⎝⎜⎜

⎠⎟⎟

= =

= ÷ = ⋅

Page 27: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Unmixing requires inversion of the mixing matrix

MM−1 = 1= 1 0

0 1⎡

⎣⎢

⎦⎥

⎡ ⎤ ⎡ ⎤• =⎢ ⎥ ⎢ ⎥

⎣ ⎦ ⎣ ⎦

0.8 0.3 1 00.2 0.7 0 1

?

−⎡ ⎤ ⎡ ⎤ ⎡ ⎤• =⎢ ⎥ ⎢ ⎥ ⎢ ⎥−⎣ ⎦ ⎣ ⎦ ⎣ ⎦

0.8 0.3 1.4 0.6 1 00.2 0.7 0.4 1.6 0 1

Page 28: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Matrix inversion – simple example

a bc d

⎣⎢

⎦⎥

−1

= 1ad − bc

d −b−c a

⎣⎢

⎦⎥

4 72 6

⎣⎢

⎦⎥

−1

= 14 ⋅6 − 7 ⋅2

6 −7−2 4

⎣⎢

⎦⎥

= 110

6 −7−2 4

⎣⎢

⎦⎥

= 0.6 −0.7−0.2 0.4

⎣⎢

⎦⎥

Page 29: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Matrix inversion – cont.

4 72 6

⎣⎢

⎦⎥

0.6 −0.7−0.2 0.4

⎣⎢

⎦⎥ =

4 ⋅0.6 + 7 ⋅(−0.2) 4 ⋅(−0.7)+ 7 ⋅0.42 ⋅0.6 + 6 ⋅(−0.2) 2 ⋅(−0.7)+ 6 ⋅0.4

⎣⎢⎢

⎦⎥⎥

= 2.4 −1.4 −2.8 + 2.8

1.2−1.2 −1.4 + 2.4⎡

⎣⎢

⎦⎥ =

1 00 1

⎣⎢

⎦⎥

Page 30: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Sieved (yet, still mixed) result

Page 31: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

• 

• 

Unmixing (or how to fix a bad sieve)

r = [95,55]; M = 0.8 0.3

0.2 0.7⎡

⎣⎢

⎦⎥; S = 1 0.4286

0.25 1⎡

⎣⎢

⎦⎥

aU = M-1r ⇒ aU = 1.4 −0.6−0.4 1.6

⎣⎢

⎦⎥ ⋅

9555

⎣⎢

⎦⎥ =

10050

⎣⎢

⎦⎥

sC = S-1r ⇒ sC = 1.12 −0.28−0.48 1.12

⎣⎢

⎦⎥ ⋅

9555

⎣⎢

⎦⎥ =

8035

⎣⎢

⎦⎥

Page 32: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Example: from n channels to two 2 colors

Page 33: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

• • 

• • 

Generalization: linear mixing of fluorescence signals

r = Ma +n

• 

• 

OMG!More math!!

Page 34: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Mixing of three signals (overdetermined case)

Page 35: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

M =

0.03267974 0.010416670.13071895 0.031250000.32679739 0.072916670.26143791 0.104166670.20915033 0.468750000.03921569 0.31250000

⎢⎢⎢⎢⎢⎢⎢⎢

⎥⎥⎥⎥⎥⎥⎥⎥

, a = 100 50⎡⎣ ⎤⎦

Overdetermined (multispectral) case

Page 36: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

• 

• 

• 

Overdetermined case

aLS = MTM( )−1

MTr

aLS = M−1r

Page 37: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

However, if the constraints are imposed…

• 

• 

( ) ( ){ } { }1min s.t. = 1pT

jJαα α

=∈Δ− − Δ =∑r Mα r Mα

( ) ( )

( ) ( )

11 1

11 1

ˆ ˆ ,whereT T TSCLS LS

T T TL L

P

P

−− −⊥

−− −⊥×

⎡ ⎤= + ⎢ ⎥⎣ ⎦

⎡ ⎤= + ⎢ ⎥⎣ ⎦

α α M M 1 M M 1

I M M 1 M M 1

Page 38: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

• 

• 

( ) 1ˆ ˆ

ˆ( )

TNCLS LS

TNCLS

λ

λ

−⎧ = −⎪⎨⎪ = −⎩

α α M M

M r Mα

( ) ( ){ } { }min s.t. = 0Tjα

α α∈Δ

− − Δ ≥r Mα r Mα

Page 39: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

EXPLORATORY ANALYSIS

Page 40: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Principal component analysis

• 

• 

• 

– – 

Page 41: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Principal component analysis – textbook explanation

• • 

=

=−1

1nT

Y

Y PX

C YY

• 

• 

−= 1A QLQ

−1

1T

nXX

Page 42: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

So, let’s do that (Fisher’s data set)

• • 

4.5 5.5 6.5 7.5

4.5

5.5

6.5

7.5

Sepal.Length

2.0

2.5

3.0

3.5

4.0

Sepal.Width

12

34

56

7

Petal.Length

4.5 5.5 6.5 7.5

0.5

1.0

1.5

2.0

2.5

2.0 2.5 3.0 3.5 4.0 1 2 3 4 5 6 7 0.5 1.0 1.5 2.0 2.5

0.5

1.0

1.5

2.0

2.5

Petal.Width

Cx= XXT = QLQT

-0.10 0.00 0.05 0.10 0.15

-0.1

00.

000.

050.

100.

15

var 1

-0.2

-0.1

0.0

0.1

0.2

var 2

-0.10 0.00 0.05 0.10 0.15

-0.2

-0.1

0.0

0.1

0.2

-0.2 -0.1 0.0 0.1 0.2 -0.2 -0.1 0.0 0.1 0.2

-0.2

-0.1

0.0

0.1

0.2

var 3

Page 43: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Another approach to PCA: singular value decomposition

• 

• 

Page 44: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

This could be used to compress images!

Page 45: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

SVD and PCA

• 

• 

• = TX USV

( )( ) ( )( )= =

= = =

= 2

and

,

T T T

TT T T T T

T T

T

X USV XX QLQ

XX USV USV USV VSU V V 1

XX US U

Page 46: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

To sum up…

• 

• 

• 

• 

-3 -2 -1 0 1 2 3 4

-3-2

-10

12

34

var 1

-1.0

-0.5

0.0

0.5

1.0

var 2

-3 -2 -1 0 1 2 3 4

-0.5

0.0

0.5

-1.0 -0.5 0.0 0.5 1.0 -0.5 0.0 0.5

-0.5

0.0

0.5

var 3

Page 47: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

PCA and kernel PCA of lambda stack

-15 -10 -5 0 5 10 15

-15

-10

-50

510

151st Principal Component

2nd

Prin

cipa

l Com

pone

nt

•  We can compute PCA on spectral data •  Pure endmemebers form a simplex! •  Theory of convex sets •  Simplest endmember estimation requires

only PCA (or kPCA)

label 1

0

50

100

150

200

0 50 100 150 200

0 50 100 150 200

label 2

0

50

100

150

200

0

50

100

150

200

0 50 100 150 200

label 3

( )1SAM( , ) cosi j i j i js s −= ⋅ ⋅s s s s

Page 48: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

PCA performed on a lambda stack

Page 49: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

PCA performed on reflected light lambda stack

Page 50: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Example: Raman spectorscopy

Page 51: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

• 

• 

Non-negative matrix factorization (NMF)

2( , )F

F = −W H X WH

Page 52: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Application example: autofluorescence removal

Woolfe, F. et al.., 2011. Autofluorescence Removal by Non-Negative Matrix Factorization. IEEE Transactions on Image Processing 20, 1085–1093. doi:10.1109/TIP.2010.2079810

Page 53: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

NMF in histopathology

Page 54: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

SCREEN QUALITY ASSESSMENT

Page 55: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Screen quality assessment in multiplexed HCS

• 

• 

– 

– 

• 

– 

Page 56: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

…but first – what is Cohen’s d ?

• 

δ =

μpos − μneg

σ

d =

Ypos −Yneg

′s, ′s =

npos −1( )spos2 + nneg −1( )sneg

2

npos + nneg − 2

Page 57: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Cohen’s measures distance between normally distributed populations

Page 58: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Z’-factor and Cohen’s d

• 

• 

′Z = 1−

3 σ neg +σ pos( )μpos − μneg

, ′Z = 1−3 sneg + spos( )

Ypos −Yneg

′Z = 1− 6

d

Page 59: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Cohen’s d and Z’ in multiple dimensions

• 

– 

– 

– – 

• 

Page 60: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Why 2-D is better than 1-D?

Page 61: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Mahalanobis distance

D2 = dT R−1d = d1,d2 ,…,dm⎡⎣ ⎤⎦

1 r1,2 r1,m

r1,2 1

r1,m 1

⎢⎢⎢⎢⎢

⎥⎥⎥⎥⎥

−1

d1

d2

dm

⎢⎢⎢⎢⎢

⎥⎥⎥⎥⎥

.

D = dT R−1d• 

• • 

D = T 2 nposnneg

npos + nneg

Page 62: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Confidence interval for D

fD =

nposnneg npos + nneg − p −1( )p npos + nneg( ) npos + nneg − 2( ) D2

fD ~ Fp,m+n− p−1 λ( )

Page 63: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

So, how can we use this information?

prob Fp,m+n− p−1 λL( )( ) = 1− α2

prob Fp,m+n− p−1 λU( )( ) = 1−α

Page 64: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Conclusions

• 

• 

• 

• 

• 

Page 65: Introduction to multispectral imaging · High Content 2016 September 12th-14th 3rd Annual Conference Joseph B. Martin Conference Center at Harvard Medical School, Boston, MA Introduction

Thank you!