Spectral Methods and Algorithms: applications in...

65
UCSB 2011 Welcome Spectral Methods and Algorithms: applications in neuroscience Jonathan J. Crofts Department of Physics & Mathematics Nottingham Trent University August 5, 2011 [email protected] J. J. Crofts () UCSB 2011 August 5, 2011 1 / 51

Transcript of Spectral Methods and Algorithms: applications in...

Page 1: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Welcome

Spectral Methods and Algorithms: applications inneuroscience

Jonathan J. Crofts

Department of Physics & MathematicsNottingham Trent University

August 5, 2011

[email protected]

J. J. Crofts () UCSB 2011 August 5, 2011 1 / 51

Page 2: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Introduction and Motivation

Outline1 Introduction and Motivation2 Algebraic Graph Theory3 Network Reorderings

Directed Hierarchies4 Matrix Functions and Walks

Approximate Bipartite SubstructuresWeighted Networks

Strokes Vs Controls5 Connecting it all Together

J. J. Crofts () UCSB 2011 August 5, 2011 2 / 51

Page 3: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Introduction and Motivation

Background

Joel E. CohenMathematics is biology’s next microscope, only better

Quantative/computational work in biology may be data driven or mayarise through modelling

ModelQuantative, simplified description of a natural system

Useful for

testing/comparing hypothesesmaking predictions

This talk will focus on networks: extracting useful information andmodelling

J. J. Crofts () UCSB 2011 August 5, 2011 3 / 51

Page 4: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Introduction and Motivation

Background

Joel E. CohenMathematics is biology’s next microscope, only better

Quantative/computational work in biology may be data driven or mayarise through modelling

ModelQuantative, simplified description of a natural system

Useful for

testing/comparing hypothesesmaking predictions

This talk will focus on networks: extracting useful information andmodelling

J. J. Crofts () UCSB 2011 August 5, 2011 3 / 51

Page 5: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Introduction and Motivation

Typical Tasks

Data Driven:

find well-connected clustersfind specific connectivity substructuresfind ‘important’ nodes or linkscompare the properties of one network with another

Modelling Arguments:

summarize a network in terms of a few parametersexplain how the connectivity has arisendiscover missing or spurious linksmake predictions concerning future growth of the network

J. J. Crofts () UCSB 2011 August 5, 2011 4 / 51

Page 6: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Introduction and Motivation

Network Science: connections are important

Complex networks are the structural skeletons of complexsystems

J. J. Crofts () UCSB 2011 August 5, 2011 5 / 51

Page 7: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Algebraic Graph Theory

Outline1 Introduction and Motivation2 Algebraic Graph Theory3 Network Reorderings

Directed Hierarchies4 Matrix Functions and Walks

Approximate Bipartite SubstructuresWeighted Networks

Strokes Vs Controls5 Connecting it all Together

J. J. Crofts () UCSB 2011 August 5, 2011 6 / 51

Page 8: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Algebraic Graph Theory

Graph Spectra

Spectral methods:matrix representation of the networkstudy the spectra of the resulting matrix, i.e., eigenvalues andeigenvectors

Importantly:this allows us to compute graph invariants using basic linearalgebra; andto implement data-mining tools to study networks, i.e., determinepatterns and features

J. J. Crofts () UCSB 2011 August 5, 2011 7 / 51

Page 9: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Algebraic Graph Theory

Graph Spectra

Spectral methods:matrix representation of the networkstudy the spectra of the resulting matrix, i.e., eigenvalues andeigenvectors

Importantly:this allows us to compute graph invariants using basic linearalgebra; andto implement data-mining tools to study networks, i.e., determinepatterns and features

J. J. Crofts () UCSB 2011 August 5, 2011 7 / 51

Page 10: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Algebraic Graph Theory

Graph Spectra: adjacency matrix

3

4

5

1 6

7 2

8

A =

0 0 0 1 0 1 0 00 0 0 0 0 1 0 10 0 0 1 0 0 0 01 0 1 0 1 0 1 10 0 0 1 0 0 0 01 1 0 0 0 0 1 00 0 0 1 0 1 0 00 1 0 1 0 0 0 0

A =

{1, i ∼ j0, otherwise

here ∼ denotes that vertices i and j are adjacent

J. J. Crofts () UCSB 2011 August 5, 2011 8 / 51

Page 11: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Algebraic Graph Theory

Other Possibilities Include . . .

3

4

5

1 6

7 2

8

L =

2 0 0 −1 0 −1 0 00 2 0 0 0 −1 0 −10 0 1 −1 0 0 0 0

−1 0 −1 5 −1 0 −1 −10 0 0 −1 1 0 0 0

−1 −1 0 0 0 3 −1 00 0 0 −1 0 −1 2 00 −1 0 −1 0 0 0 2

Graph Laplacian

L =

{di , i = j−aij , otherwise

here di denotes the degree of node i

J. J. Crofts () UCSB 2011 August 5, 2011 9 / 51

Page 12: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Algebraic Graph Theory

Other Possibilities Include . . .

Normalised Laplacian:

L =

1, i = j− aij√

di dj, otherwise

Signless Laplacian:

Q =

{di , i = jaij , otherwise

less well studiedcan determine bipartite structures (Kirkland and Paul 2011)

Line Graph:used to detect community structure (Evans & Lambiotte 2010)

J. J. Crofts () UCSB 2011 August 5, 2011 10 / 51

Page 13: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Algebraic Graph Theory

An Example: neuronal network of C. elegans

C. elegans are tiny (1mm long),transparent, round worms

Model organism in biology

Connectome consists of some302 neurons linked by over 7000synaptic connections

J. J. Crofts () UCSB 2011 August 5, 2011 11 / 51

Page 14: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Algebraic Graph Theory

Motivation

J. J. Crofts () UCSB 2011 August 5, 2011 12 / 51

Page 15: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Algebraic Graph Theory

Local C. elegans Neuronal Network

0 50 100

0

50

100

(a)

Adjacency Matrix

0 50 100

0

50

100

(b)

Reordered Adjacency Matrix

Reordering the frontal neurons of C. elegans using eigenvectorsof the signless Laplacian Q reveals bipartite substructures

J. J. Crofts () UCSB 2011 August 5, 2011 13 / 51

Page 16: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Algebraic Graph Theory

C. elegans Example Ctd.

0 10 20

0

10

20

Bipartite Substructure

J. J. Crofts () UCSB 2011 August 5, 2011 14 / 51

Page 17: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Algebraic Graph Theory

Properties of the Different Graph Spectra

Important: cospectral graphs are not necessarily isomorphic

Example:

χG = λ5 − 4λ3

J. J. Crofts () UCSB 2011 August 5, 2011 15 / 51

Page 18: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Algebraic Graph Theory

Properties of the Different Graph Spectra

Important: cospectral graphs are not necessarily isomorphic

Example:

χG = λ5 − 4λ3

J. J. Crofts () UCSB 2011 August 5, 2011 15 / 51

Page 19: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Algebraic Graph Theory

Properties of the Different Graph Spectra

Properties the spectrum (eigenvalues) can and cannot distinguish:

Matrix # edges bipartite # components # bipartitecomponents

A Yes Yes No NoL Yes No Yes NoL No Yes Yes YesQ Yes No No Yes

J. J. Crofts () UCSB 2011 August 5, 2011 16 / 51

Page 20: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Algebraic Graph Theory

Properties of the Different Graph Spectra

Which graphs are determined by their spectrum? (Van Dam &Haemers (2003))

For almost all graphs this is an open questionNumerical simulations suggest that ‘almost all graphs are’

A combination of eigenvalues and eigenvectors does the trick,e.g., subgraph centrality

CS (i) =n∑

k=1

eλk x[k ]2

i

CS =

1.69051.69053.76221.69051.6905

&

2.38112.38111.00002.38112.3811

J. J. Crofts () UCSB 2011 August 5, 2011 17 / 51

Page 21: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Algebraic Graph Theory

Properties of the Different Graph Spectra

Which graphs are determined by their spectrum? (Van Dam &Haemers (2003))

For almost all graphs this is an open questionNumerical simulations suggest that ‘almost all graphs are’

A combination of eigenvalues and eigenvectors does the trick,e.g., subgraph centrality

CS (i) =n∑

k=1

eλk x[k ]2

i

CS =

1.69051.69053.76221.69051.6905

&

2.38112.38111.00002.38112.3811

J. J. Crofts () UCSB 2011 August 5, 2011 17 / 51

Page 22: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Network Reorderings

Outline1 Introduction and Motivation2 Algebraic Graph Theory3 Network Reorderings

Directed Hierarchies4 Matrix Functions and Walks

Approximate Bipartite SubstructuresWeighted Networks

Strokes Vs Controls5 Connecting it all Together

J. J. Crofts () UCSB 2011 August 5, 2011 18 / 51

Page 23: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Network Reorderings

An Example: short-range structure

The network reordering problem:

0 50 100 150 200

0

20

40

60

80

100

120

140

160

180

200

nz = 2804

A

0 50 100 150 200

0

20

40

60

80

100

120

140

160

180

200

nz = 2804

A(p,p)

• Solve

min∑{p∈P}

(pi − pj)2aij

P denotes the set of permutationsof the integers {1, . . . ,n}

• An approximate solution isgiven by the first, non-zero eigen--vector of L = D − A

J. J. Crofts () UCSB 2011 August 5, 2011 19 / 51

Page 24: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Network Reorderings

An Example: short-range structure

The network reordering problem:

0 50 100 150 200

0

20

40

60

80

100

120

140

160

180

200

nz = 2804

A

0 50 100 150 200

0

20

40

60

80

100

120

140

160

180

200

nz = 2804

A(p,p)

• Solve

min∑{p∈P}

(pi − pj)2aij

P denotes the set of permutationsof the integers {1, . . . ,n}

• An approximate solution isgiven by the first, non-zero eigen--vector of L = D − A

J. J. Crofts () UCSB 2011 August 5, 2011 19 / 51

Page 25: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Network Reorderings

An Example: short-range structure

The network reordering problem:

0 50 100 150 200

0

20

40

60

80

100

120

140

160

180

200

nz = 2804

A

0 50 100 150 200

0

20

40

60

80

100

120

140

160

180

200

nz = 2804

A(p,p)

• Solve

min∑{p∈P}

(pi − pj)2aij

P denotes the set of permutationsof the integers {1, . . . ,n}

• An approximate solution isgiven by the first, non-zero eigen--vector of L = D − A

J. J. Crofts () UCSB 2011 August 5, 2011 19 / 51

Page 26: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Network Reorderings

Directed Hierarchies

Outline1 Introduction and Motivation2 Algebraic Graph Theory3 Network Reorderings

Directed Hierarchies4 Matrix Functions and Walks

Approximate Bipartite SubstructuresWeighted Networks

Strokes Vs Controls5 Connecting it all Together

J. J. Crofts () UCSB 2011 August 5, 2011 20 / 51

Page 27: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Network Reorderings

Directed Hierarchies

Directed Hierarchies

1

2

3

4 5

6 7

8

3

4

5

1 6

7 2

8

A =

0 1 0 0 0 0 0 00 0 1 0 0 1 0 10 0 0 0 0 0 0 00 1 0 0 1 0 0 00 0 0 0 0 1 0 00 0 0 0 0 0 0 00 0 0 0 1 0 0 10 0 0 0 0 0 0 0

A =

0 0 0 1 0 1 0 00 0 0 0 0 1 0 10 0 0 1 0 0 0 00 0 0 0 1 0 1 10 0 0 0 0 0 0 00 0 0 0 0 0 1 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0

In general it is possible to find such an ordering iff we have a DAG

J. J. Crofts () UCSB 2011 August 5, 2011 21 / 51

Page 28: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Network Reorderings

Directed Hierarchies

Directed Hierarchies

1

2

3

4 5

6 7

8

3

4

5

1 6

7 2

8

A =

0 1 0 0 0 0 0 00 0 1 0 0 1 0 10 0 0 0 0 0 0 00 1 0 0 1 0 0 00 0 0 0 0 1 0 00 0 0 0 0 0 0 00 0 0 0 1 0 0 10 0 0 0 0 0 0 0

A =

0 0 0 1 0 1 0 00 0 0 0 0 1 0 10 0 0 1 0 0 0 00 0 0 0 1 0 1 10 0 0 0 0 0 0 00 0 0 0 0 0 1 00 0 0 0 0 0 0 00 0 0 0 0 0 0 0

In general it is possible to find such an ordering iff we have a DAG

J. J. Crofts () UCSB 2011 August 5, 2011 21 / 51

Page 29: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Network Reorderings

Directed Hierarchies

Out Minus In Degree

One-Sum Optimisation Problem

minp∈P

∑i,j

(pi − pj)aij

Proof

∑i,j

(pj − pi)aij =∑

i

pi · degouti −

∑j

pj · deginj

=∑

i

pi · (degouti − degin

i )

J. J. Crofts () UCSB 2011 August 5, 2011 22 / 51

Page 30: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Network Reorderings

Directed Hierarchies

Out Minus In Degree

One-Sum Optimisation Problem

minp∈P

∑i,j

(pi − pj)aij

Proof

∑i,j

(pj − pi)aij =∑

i

pi · degouti −

∑j

pj · deginj

=∑

i

pi · (degouti − degin

i )

J. J. Crofts () UCSB 2011 August 5, 2011 22 / 51

Page 31: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Network Reorderings

Directed Hierarchies

Synthetic Network Example

0 20 40 60 80 100 120

0

20

40

60

80

100

120

nz = 959

A

0 20 40 60 80 100 120

0

20

40

60

80

100

120

nz = 959

Sorted by in minus out degree

Hierarchical structure is uncovered in RHS using out-in degree

J. J. Crofts () UCSB 2011 August 5, 2011 23 / 51

Page 32: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Outline1 Introduction and Motivation2 Algebraic Graph Theory3 Network Reorderings

Directed Hierarchies4 Matrix Functions and Walks

Approximate Bipartite SubstructuresWeighted Networks

Strokes Vs Controls5 Connecting it all Together

J. J. Crofts () UCSB 2011 August 5, 2011 24 / 51

Page 33: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Paths Vs Walks

Path Walk

Shortest Path

J. J. Crofts () UCSB 2011 August 5, 2011 25 / 51

Page 34: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Counting Walks

From the following identity

(Ak )ij =n∑

i1=1

n∑i2=1

· · ·n∑

ik−1=1

ai,i1ai1,i2 · · · aik−1,j ,

we see that (Ak )ij counts the number of different walks of length kbetween nodes i and j ; moreover, the quantity

Fij = (c0I + c1A + c2A2 + c3A3 · · · )ij

with the ck constant, gives a measure of the total number of walksbetween nodes i and j

J. J. Crofts () UCSB 2011 August 5, 2011 26 / 51

Page 35: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Counting Walks

From the following identity

(Ak )ij =n∑

i1=1

n∑i2=1

· · ·n∑

ik−1=1

ai,i1ai1,i2 · · · aik−1,j ,

we see that (Ak )ij counts the number of different walks of length kbetween nodes i and j ; moreover, the quantity

Fij = (c0I + c1A + c2A2 + c3A3 · · · )ij

with the ck constant, gives a measure of the total number of walksbetween nodes i and j

J. J. Crofts () UCSB 2011 August 5, 2011 26 / 51

Page 36: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Counting Walks: matrix functions

For suitable choices of {ck}k≥0 the series overpage convergesfor example, ck = {δk}k≥0, gives the matrix resolvent (I− δA)−1

different choices of ck allow for different scalings

In particular, if f is defined on the spectrum of A, we can define

F = f (A) = Pf (D)P−1

(here A = PDP−1 is the eigendecomposition)

Proof Let

f (A) = c0I +∞∑

k=1

ck Ak

substituting A = PDP−1 into the above

f (A) = f (PDP−1) = c0I +∞∑

k=1

ck (PDP−1)k = P

c0I +∞∑

k=1

ck Dk

P−1

J. J. Crofts () UCSB 2011 August 5, 2011 27 / 51

Page 37: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Counting Walks: matrix functions

For suitable choices of {ck}k≥0 the series overpage convergesfor example, ck = {δk}k≥0, gives the matrix resolvent (I− δA)−1

different choices of ck allow for different scalings

In particular, if f is defined on the spectrum of A, we can define

F = f (A) = Pf (D)P−1

(here A = PDP−1 is the eigendecomposition)

Proof Let

f (A) = c0I +∞∑

k=1

ck Ak

substituting A = PDP−1 into the above

f (A) = f (PDP−1) = c0I +∞∑

k=1

ck (PDP−1)k = P

c0I +∞∑

k=1

ck Dk

P−1

J. J. Crofts () UCSB 2011 August 5, 2011 27 / 51

Page 38: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Example: communicability

4

2

1

3 A =

( 0 1 1 11 0 1 01 1 0 11 0 1 0

), A2 =

( 3 1 2 11 2 1 22 1 3 11 2 1 2

), · · ·

Communicability between distinct nodes i and j(I + A + A2/2! + A3/3! + · · ·

)ij

that is(eA)

ij

Spectral form:(∑n

k=1 eλk x[k ](i)x[k ](j))

ij

J. J. Crofts () UCSB 2011 August 5, 2011 28 / 51

Page 39: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Example: communicability

0 50 100

0

50

100

Aexp(A)

Communicability applied to the frontal network of C. elegans

J. J. Crofts () UCSB 2011 August 5, 2011 29 / 51

Page 40: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Approximate Bipartite Substructures

Outline1 Introduction and Motivation2 Algebraic Graph Theory3 Network Reorderings

Directed Hierarchies4 Matrix Functions and Walks

Approximate Bipartite SubstructuresWeighted Networks

Strokes Vs Controls5 Connecting it all Together

J. J. Crofts () UCSB 2011 August 5, 2011 30 / 51

Page 41: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Approximate Bipartite Substructures

Approximate Directed Bipartite Community

Crofts, Estrada, Higham, Taylor Elec. Trans. Numer. Anal (2010)

Distinct subsets of nodes S1 and S2 such thatS1 has few internal linksS2 has few internal linksthere are many S1 → S2 linksfew other links involve S1 or S2

0 5 10 15 20 25 30

0

5

10

15

20

25

30

(c)

J. J. Crofts () UCSB 2011 August 5, 2011 31 / 51

Page 42: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Approximate Bipartite Substructures

An alternating walk of length k from node i1 to node ik+1

is a list of nodesi1, i2, i3, . . . , ik+1

such that ais,is+1 6= 0 for s odd, and ais+1,is 6= 0 for s even

Loosely, an alternating walk is a traversal that successively followslinks in the forward and reverse directions

J. J. Crofts () UCSB 2011 August 5, 2011 32 / 51

Page 43: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Approximate Bipartite Substructures

This Motivates . . .

f (A) = I − A +AAT

2!− AAT A

3!+

AAT AAT

4!− · · ·

Overall idea: f (A) + f (AT ) haspositive values representing inter-community S1 ↔ S1and S2 ↔ S2 relationships, andnegative values representing extra-community S1 ↔ S2relationships

Also, f (A) + f (AT ) is a symmetric matrix, soamenable to standard clustering techniques

Note: f (A) defined above is not a matrix functionJ. J. Crofts () UCSB 2011 August 5, 2011 33 / 51

Page 44: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Approximate Bipartite Substructures

Synthetic Example

0

10

20

30nz = 252

A

30282624222018161412108642

exp(A)

0

50

100

150

30282624222018161412108642

exp(−A)

−5

0

5

30282624222018161412108642

f(A) + f(A T)

−500

0

500

J. J. Crofts () UCSB 2011 August 5, 2011 34 / 51

Page 45: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Approximate Bipartite Substructures

C. elegans Neural Data

Automates the computations of Durbin, (PhD thesis, Cambridge, 1987)

nz = 964

A

Reordered f(A) + f(AT)nz = 96

Subnetwork of A

J. J. Crofts () UCSB 2011 August 5, 2011 35 / 51

Page 46: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Weighted Networks

Outline1 Introduction and Motivation2 Algebraic Graph Theory3 Network Reorderings

Directed Hierarchies4 Matrix Functions and Walks

Approximate Bipartite SubstructuresWeighted Networks

Strokes Vs Controls5 Connecting it all Together

J. J. Crofts () UCSB 2011 August 5, 2011 36 / 51

Page 47: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Weighted Networks

Communicability for a Weighted Network

W is symmetric with non-negative real weightsLet

di =n∑

k=1

wik & D := diag (di)

Normalisation:W 7→ D−1/2WD−1/2

for at least 2 reasonsavoid overflowto stifle promiscuous nodes

Communicability measure:

exp(

D−1/2WD−1/2)

J. J. Crofts () UCSB 2011 August 5, 2011 37 / 51

Page 48: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Weighted Networks

Communicability for a Weighted Network

W is symmetric with non-negative real weightsLet

di =n∑

k=1

wik & D := diag (di)

Normalisation:W 7→ D−1/2WD−1/2

for at least 2 reasonsavoid overflowto stifle promiscuous nodes

Communicability measure:

exp(

D−1/2WD−1/2)

J. J. Crofts () UCSB 2011 August 5, 2011 37 / 51

Page 49: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Weighted Networks

But What Does it Actually Mean?

4

2

1

3

w34

w14

w21

w23

w13

W =

0 w12 w13 w14

w21 0 w23 w24w31 w32 0 w34w41 w42 w43 0

The k th powers of W provide ameasure of the total strengthcontained within walks of length kbetween nodes i and j :

(W 2)ij =∑

k

wikwkj , (W 3)ij = · · ·

J. J. Crofts () UCSB 2011 August 5, 2011 38 / 51

Page 50: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Weighted Networks

Example: anatomical connectivity data

9 subjects - at least 6 monthsfollowing first, left-hemisphere,subcortical stroke; and 10 (18)age matched controlsDiffusion Tensor Imagingcomputes all connectionsbetween all voxelsConnectivity network based onthe Harvard-Oxford corticaland subcortical structuralatlas: 48 cortical regions and 8subcortical regions

http://wwww.fmrib.ox.ac.uk/fsl/fslview/

atlas-descriptions.html

J. J. Crofts () UCSB 2011 August 5, 2011 39 / 51

Page 51: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Weighted Networks

Unsupervised Clustering of Patients

0 5 10 15 20−0.5

−0.4

−0.3

−0.2

−0.1

0

0.1

0.2

0.3

0.4Raw

V[2

]

0 5 10 15 20−2

−1.5

−1

−0.5

0

0.5

1x 10

−3 Normalised

D−

1/2

right

V[2

]

n

0 5 10 15 20−0.6

−0.5

−0.4

−0.3

−0.2

−0.1

0

0.1

0.2

0.3

0.4Communicability

V[2

]

Crofts & Higham, Roy. Soc. Interface (2009)

J. J. Crofts () UCSB 2011 August 5, 2011 40 / 51

Page 52: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Weighted Networks

Communicability Adds Value to the Raw Data

10 20 30 40 50

5

10

15

20

25

30

35

40

45

50

55

Raw Data (Control)

10 20 30 40 50

5

10

15

20

25

30

35

40

45

50

55

Communicability (Control)

J. J. Crofts () UCSB 2011 August 5, 2011 41 / 51

Page 53: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Weighted Networks

What Are we Actually Detecting?

QuestionExactly what enables us to differentiate between strokes & controls?

If it is merely the fact that many connections have been destroyedclose to the infarcted region this is not very interesting – an MRIscan can tell us this with no further analysis needed!

Why not rerun the tractographies including only those connectionswithin the non-stroke hemisphere?If we still distinguish between the two classes, this will be morerelevant from a bio point of view

J. J. Crofts () UCSB 2011 August 5, 2011 42 / 51

Page 54: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Weighted Networks

What Are we Actually Detecting?

QuestionExactly what enables us to differentiate between strokes & controls?

If it is merely the fact that many connections have been destroyedclose to the infarcted region this is not very interesting – an MRIscan can tell us this with no further analysis needed!

Why not rerun the tractographies including only those connectionswithin the non-stroke hemisphere?If we still distinguish between the two classes, this will be morerelevant from a bio point of view

J. J. Crofts () UCSB 2011 August 5, 2011 42 / 51

Page 55: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Weighted Networks

RHS Hemisphere Sorted by Brain Region

0 10 20 30−0.6

−0.4

−0.2

0

0.2

0.4raw − weighted degree

0 10 20 30−0.6

−0.4

−0.2

0

0.2

0.4comm over 56 nodes

0 10 20 30−1

−0.5

0

0.5

1

1.5x 10

−3 norm − weighted degree

0 10 20 30−0.06

−0.04

−0.02

0

0.02

0.04norm comm over 56 nodes

J. J. Crofts () UCSB 2011 August 5, 2011 43 / 51

Page 56: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Weighted Networks

Left (Stroke Side) Vs Right

−0.12 −0.1 −0.08 −0.06 −0.04 −0.02 0 0.02 0.04−0.1

−0.08

−0.06

−0.04

−0.02

0

0.02

0.04

0.06

LHS

V[2]

V[3]

−0.1 −0.08 −0.06 −0.04 −0.02 0 0.02 0.04 0.06−0.06

−0.04

−0.02

0

0.02

0.04

0.06

0.08

0.1

RHS

V[2]

V[3]

1

2

3

4

5

6

7

8

9

1

9

28

7

4

5

6

3

J. J. Crofts () UCSB 2011 August 5, 2011 44 / 51

Page 57: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Weighted Networks

Overlay of Stroke Overlap Volume

Highlighted regions are those where patients showed reducedcommunicability relative to controls

J. J. Crofts () UCSB 2011 August 5, 2011 45 / 51

Page 58: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Weighted Networks

Crofts et al. NeuroImage (2011)

And increased communicability

J. J. Crofts () UCSB 2011 August 5, 2011 46 / 51

Page 59: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Weighted Networks

GSVD

Generalised singular value decomposition

A = UCX−1 and B = VSX−1

of a pair of matrices can be used to determine clusters that are‘good’ in one network and ‘poor’ in the other - and vice versa[Xiao et al. (2011)]

Another way to understand this is to note that, in the case whereA and B are invertible the GSVD is closely related to the SVD ofAB−1 and BA−1, hence

AB−1 = UCS−1V T and BA−1 = VSC−1UT

J. J. Crofts () UCSB 2011 August 5, 2011 47 / 51

Page 60: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Matrix Functions and Walks

Weighted Networks

GSVD Example: anatomical connectivity data

10 20 30 40 50

5

10

15

20

25

30

35

40

45

50

55

Controls

10 20 30 40 50

5

10

15

20

25

30

35

40

45

50

55

Stroke

GSVD finds a group of brain regions that are much better connected incontrols than strokes

J. J. Crofts () UCSB 2011 August 5, 2011 48 / 51

Page 61: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Connecting it all Together

Outline1 Introduction and Motivation2 Algebraic Graph Theory3 Network Reorderings

Directed Hierarchies4 Matrix Functions and Walks

Approximate Bipartite SubstructuresWeighted Networks

Strokes Vs Controls5 Connecting it all Together

J. J. Crofts () UCSB 2011 August 5, 2011 49 / 51

Page 62: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Connecting it all Together

The Take Home Message

Spectral methods provide a useful tool for determiningdifferent types of network architecture

scalablemost work has focused on the adjacency matrix

Walk based measures are attractive since:combinatorics are described in terms of basic linear algebrainformation does not necessarily flow along geodesicswalks are more tolerent to errors

GSVD and extensions:tensor decompositions (plus multiple tasks/modalities,time-dependent networks)NNMF (Lee et al (2010)), ICA (Smith et al (2005))

J. J. Crofts () UCSB 2011 August 5, 2011 50 / 51

Page 63: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Connecting it all Together

The Take Home Message

Spectral methods provide a useful tool for determiningdifferent types of network architecture

scalablemost work has focused on the adjacency matrix

Walk based measures are attractive since:combinatorics are described in terms of basic linear algebrainformation does not necessarily flow along geodesicswalks are more tolerent to errors

GSVD and extensions:tensor decompositions (plus multiple tasks/modalities,time-dependent networks)NNMF (Lee et al (2010)), ICA (Smith et al (2005))

J. J. Crofts () UCSB 2011 August 5, 2011 50 / 51

Page 64: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Connecting it all Together

The Take Home Message

Spectral methods provide a useful tool for determiningdifferent types of network architecture

scalablemost work has focused on the adjacency matrix

Walk based measures are attractive since:combinatorics are described in terms of basic linear algebrainformation does not necessarily flow along geodesicswalks are more tolerent to errors

GSVD and extensions:tensor decompositions (plus multiple tasks/modalities,time-dependent networks)NNMF (Lee et al (2010)), ICA (Smith et al (2005))

J. J. Crofts () UCSB 2011 August 5, 2011 50 / 51

Page 65: Spectral Methods and Algorithms: applications in neuroscienceonline.itp.ucsb.edu/online/brain-m11/crofts/pdf/... · Algebraic Graph Theory Graph Spectra Spectral methods: matrix representation

UCSB 2011

Connecting it all Together

Thank you!

Colleagues at Strathclyde: Des Higham, Ernesto Estrada & AlanTaylor

Colleagues from Oxford: Heidi Johanson-Berg & Tim BehrensThe stroke data was supplied by Rose Bosnell

This work was supported by the Medical Research Council underproject no. MRC G0601353

J. J. Crofts () UCSB 2011 August 5, 2011 51 / 51