1 of 20

The neural code�Visualizing population codes

Kenneth D Harris, UCL

2 of 20

Exploratory vs. confirmatory analysis

  • Exploratory analysis
    • Helps you formulate a hypothesis
    • End result is usually a nice-looking picture
    • Any method is equally valid – because it just helps you think of a hypothesis

  • Confirmatory analysis
    • Where you test your hypothesis
    • Multiple ways to do it (Classical, Bayesian, Cross-validation)
    • You have to stick to the rules

  • Everything we are doing today is exploratory

3 of 20

Two types of raster plot

One cell�Rows: repeats

Allen ephys session 791319847: unit 180 (primary visual cortex)

One repeat�Rows: cells

4 of 20

Sorting cells by correlation with stimuli/behavior

5 of 20

ALWAYS use a validation set when sorting cells

If you don’t use a separate set of trials/times for sorting cells than what you display, you will see artifactual order

6 of 20

Sorting cells by correlation with each other

Sorted by first principal component

7 of 20

Sorting can reveal unexpected structure

8 of 20

Sorting cells by latency

9 of 20

Dimensionality reduction

  • The firing rates of N neurons define a vector in N-dimensional space

  • Dimensionalilty reduction methods reduce that to 2- or 3-dimensional
    • So you can visualize the results
    • While keeping some structure from the original data

  • Remember these are exploratory analyses

10 of 20

Principal component analysis

  •  

 

 

 

 

 

 

 

 

11 of 20

Mathematics of PCA

12 of 20

PCA features usually reflect smoothness of data

13 of 20

Structure of correlation matrix depends on timescale

  • At short timescales, all correlations are non-negative (at least in cortex)
  • Reflects common fluctuations (up- and down-phases)
  • What will the 1st PC vector look like?

14 of 20

PCA: auditory cortex population vectors

15 of 20

Other methods for dimensionality reduction

  • There are many other ways to do dimensionality reduction
  • They are usually optimal by some criterion
  • None of them are “correct” – they are all exploratory analyses

  • If dimensionality reduction suggests a result, you must test it with confirmatory analysis
  • Usually this happens in the high-dimensional space, not the reduced one

16 of 20

Discriminant analysis

  •  

17 of 20

Discriminant analysis: auditory cortex

  • Projections chosen to maximally separate sustained responses
  • Looks completely different to PCA!

18 of 20

Many more methods…

jPCA: Churchland, Cunningham et al, Nature 2012

Mante, Sussillo et al, Nature 2013

19 of 20

Nonlinear dimensionality reduction

  • PCA, discriminant analysis are linear methods
  • Nonlinear methods are more flexible
  • But harder to interpret

  • Examples:
    • UMAP
    • Isomap (->)
    • Local linear embedding
    • tSNE

WakingREM

20 of 20

Summary

  • When you have population data, visualizations help you understand it
  • Use sorted rasters and dimensionality reduction to form your hypotheses
  • But remember these are exploratory analyses
  • And you need to test your hypotheses with confirmatory analysis