SlideShare a Scribd company logo
1 of 72
Download to read offline
Spike sorting: What is it? Why do we 
need it? Where does it come from? How 
is it done? How to interpret it? 
I. What is spike sorting, neurophysiological 
origin of the recorded signal and short 
history of the field. 
Christophe Pouzat 
Mathématiques Appliquées à Paris 5 (MAP5) 
Université Paris-Descartes and CNRS UMR 8145 
christophe.pouzat@parisdescartes.fr
Where are we ? 
Ensemble recordings 
What is spike sorting? 
What do we measure? 
A short history of spike sorting
Why do we want to record from many neurons? 
Neurophysiologists are trying to record many neurons at once 
with single neuron resolution because: 
I They can collect more data per experiment. 
I They have reasons to think that neuronal information 
processing might involve synchronization among neurons, 
an hypothesis dubbed binding by synchronization in the 
field.
Ensemble recordings: multi-electrode array (MEA) 
Left, the brain and the recording probe with 16 electrodes 
(bright spots). Width of one probe shank: 80 m. Right, 1 
sec of raw data from 4 electrodes. The local extrema are the 
action potentials. The insect shown on the figure is a locust, 
Schistocerca americana. Source: Pouzat, Mazor and Laurent.
What a Schistocerca americana looks like? 
Schistocerca americana headshot by Rob Ireton - http: 
//www.flickr.com/photos/24483890@N00/7182552776/. 
Licensed under Creative Commons.
Voltage sensitive dyes 
Fig. 2 of Homma et al (2009) Phil Trans R Soc B 364:2453.
Ensemble recordings: voltage-sensitive dyes (VSD) 
Imaging of the pedal ganglion of Tritonia by Frost et al 
(2010), Chap. 5 of Membrane Potential Imaging in the 
Nervous System, edited by M. Canepari and D. Zevecic.
What a Tritonia looks like? 
Tritonia festiva by Daniel Hershman from Federal Way, US - 
edmonds4. Licensed under Creative Commons Attribution 2.0 
via Wikimedia Commons.
Ensemble recordings: calcium concentration 
imaging 
Embryonic mouse brainstem-spinal chord preparation. Fig. 10 
of Homma et al (2010) Phil Trans R Soc B 364:2453.
Where are we ? 
Ensemble recordings 
What is spike sorting? 
What do we measure? 
A short history of spike sorting
Why are tetrodes used? 
The last 200 ms of the locust figure. With the upper recording 
site only it would be difficult to properly classify the two first 
large spikes (**). With the lower site only it would be difficult 
to properly classify the two spikes labeled by ##.
What do we want? 
I Find the number of neurons contributing to the data. 
I Find the value of a set of parameters characterizing the 
signal generated by each neuron (e.g., the spike waveform 
of each neuron on each recording site). 
I Acknowledging the classification ambiguity which can 
arise from waveform similarity and/or signal corruption 
due to noise, the probability for each neuron to have 
generated each event (spike) in the data set. 
I A method as automatic as possible.
A similar problem (1) 
I Think of a room with many people seating and talking to 
each other using a language we do not know. 
I Assume that microphones were placed in the room and 
that their recordings are given to us. 
I Our task is to isolate the discourse of each person.
A similar problem (2) 
With apologies to Brueghel (original, without microphones, in 
Vienna, Kunsthistorisches Museum).
A similar problem (3) 
To fulfill our task we could make use of the following features: 
I Some people have a low pitch voice while other have a 
high pitch one. 
I Some people speak loudly while other do not. 
I One person can be close to one microphone and far from 
another such that its talk is simultaneously recorded by 
the two with different amplitudes. 
I Some people speak all the time while other just utter a 
comment here and there, that is, the discourse statistics 
changes from person to person.
VSD does not eliminate the sorting problem (1) 
VSD recording from Aplysia’s abdominal ganglion, Fig. 1 of 
Zecevic et al (1989) J Neurosci 9:3681.
Aplysia 
Source: Wikipedia, Licensed under Creative Commons 
Attribution-Share Alike 3.0 via Wikimedia Commons.
VSD does not eliminate the sorting problem (2) 
Fig. 2 of Zecevic et al (1989).
Calcium signals have slow kinetics! 
Fig. 4 of Canepari et al (2010), Chap. 4 of of Membrane 
Potential Imaging in the Nervous System, edited by M. 
Canepari and D. Zevecic.
Spike sorting also matters for neurologists 
Neurologist perform daily electromyographic (EMG) recordings 
monitoring muscle fibers action potentials.
Where are we ? 
Ensemble recordings 
What is spike sorting? 
What do we measure? 
A short history of spike sorting
Membrane potential: intracellular and extracellular 
ionic concentrations 
Fig. 4-13 of Randall et al (1997) Eckert Animal Physiology W 
H Freeman and Company.
Different concentrations and selective permeability 
generate membrane potential 
Fig. 3.2 of Plonsey and Barr (2007) Bioelectricity. A quantitative 
Approach. Springer. 
The equilibrium potential (when a single ion is membrane 
permeable, here ion P) is given by the Nernst equation: 
Veq 
m = i  e = 
RT 
ZpF 
ln 
 
[Cp]i 
[Cp]e 
 
:
Nernst equilibrium potential 
Tables 3.1 and 3.3 of Plonsey and Barr (2007). 
We get for the potassium ion in the squid: 
25:8  ln 397=20 = 78 mV.
A Model of a membrane patch 
Fig. 3.3 of Plonsey and Barr (2007).
What makes (most) neurons special? 
If we depolarize neurons enough, an active response of 
action potential is generated. Fig. 5-16 of Randall et al 
(1997).
Conductance changes are responsible for the action 
potential 
Fig. 5.16 of Plonsey and Barr (2007).
The action potential propagates! 
VSD recording from the giant metacerebral neuron of Helix 
aspersa. Fig. 2 of Antic et al (2000) J Physiol 527:55.
The giant metacerebral neuron of Helix aspersa 
Fig. 1 of Antic et al (2000).
Helix aspersa 
Snail1web. Licensed under Public domain via Wikimedia 
Commons.
Currents associated with a non-uniform membrane 
potential 
When the membrane potential, Vm, is spatially non-uniform 
axial, Ii [A], and trans-membrane, im [A/L], currents are 
necessarily present: 
Ii = a2i@Vm=@x 
and 
im = a2i@2Vm=@x2 ; 
where a is the axon / neurite diameter, the neurite is assumed 
to seat on the x axis, an axial current is positive if it goes in 
the increasing x direction and a trans-mambrane current is 
positive if it goes from inside to outside and i is the 
intracellular conductance per centimeter [S/L]. See for 
instance Plonsey and Barr (2007) Chap. 6 and 8.
Currents associated with a propagating AP 
Fig. 8.3 of Plonsey and Barr (2007).
Extracellular potential associated with a current 
source (1) 
For a point current source of intensity I0 in a medium of 
conductivity per unit length e , the extracellular potential 
(with respect to a reference at infinity) depends only on the 
distance, r , to the source and is given by: 
e = 
1 
4e 
I0 
r 
: 
For a fiber seating on the x axis we get at a point (x0; y0; z0) 
the potential: 
e(x0; y0; z0) = 
1 
4e 
Z 
L 
im(x) p 
(x  x0)2 + y02 + z02 
dx :
Extracellular potential associated with a current 
source (2) 
Part of Fig. 8.5 of Plonsey and Barr (2007). 
Using our previous expression for im we get: 
e(x0; y0; z0) = 
a2i 
4e 
Z 
L 
@2Vm(x) 
@x2 
dx p 
(x  x0)2 + y02 + z02 
: 
Notice the dependence on the fiber cross-section.
Observed extracellular potential 
Fig. 16 of Fatt (1957) J Neurophys 20:27. Recordings from 
Cats motoneurons.
Computed extracellular potential 
Left, Fig. 8 of Santiago Ramón y Cajal (1899), middle and 
right Fig. 2.4 and 2.5 of Holt PhD thesis (Caltech, 1999).
The stretch receptor of Homarus americanus (1) 
The preparation, Fig. 1 A of Eyzaguirre and Kuffler (1955a) J 
Gen Phys 39:87.
The stretch receptor of Homarus americanus (2) 
Fig. 1 B of Eyzaguirre and Kuffler (1955a).
Homarus americanus 
Yellow-lobster. Licensed under Creative Commons 
Attribution-Share Alike 3.0 via Wikimedia Commons.
Mismatch between somatic and axonal AP? 
Fig. 13 of Eyzaguirre and Kuffler (1955b) J Gen Phys 39:121.
This is not an invertebrate peculiarity (1) 
Fig. 7 of Sakmann and Stuart (2009) in Single-Channel 
Recording, edited by B Sakmann and E Neher, Springer
This is not an invertebrate peculiarity (2) 
Fig. 5 of Williams and Stuart (1999) J Physiol 521:467.
No more than a HH model is required 
Fig. 5 of Cooley and Dodge (1966) Biophys J 6:583.
A note on slice recording (1) 
Fig. 1 of Sakmann and Stuart (2009)
A note on slice recording (2) 
Fig. 2 of Aitken et al (1995) J Neurosci Methods 59:139.
What happens when the diameter increases? 
Numerical model, Fig. 10 of Goldstein and Rall (1974) 
Biophys J 14:731.
Reflected AP can happen! 
Fig. 5 of Antic et al (2000).
Where are we ? 
Ensemble recordings 
What is spike sorting? 
What do we measure? 
A short history of spike sorting
Sorting by eye 
As soon as the the all-or-nothing response of sensory nerve 
fibres was established by Adrian and Forbes (1922), 
neurophysiologists started doing sorting by eye using the spike 
amplitude as a feature. Fig. 4 of Hartline and Graham (1932) 
J Cell Comp Physiol 1:277. Limulus polyphemus recording.
What a Limulus polyphemus looks like? 
Limulus polyphemus (aq.) by Hans Hillewaert - Own work. 
Licensed under Creative Commons Attribution-Share Alike 4.0 
via Wikimedia Commons.
Automatic window discriminator (1963) 
Fig. 4 of Poggio and Mountcastle (1963) J Neurophys 
26:775. In vivo recordings from monkeys thalamic neurons.
Template matching (1964) 
Fig. 1 of Gerstein and Clark (1964) Science 143:1325. Dorsal 
cochlear nucleus recordings from anesthetized cats.
Dimension reduction and cluster membership 
(1965) 
Fig. 1-3 of Simon (1965) Electroenceph clin Neurophysiol 
18:192.
Superposition resolution (1972) 
Fig. 3 of Prochazka et al (1972) Electroenceph clin 
Neurophysiol 32:95.
Multi-channel linear filter: principle (1)
Multi-channel linear filter: principle (2) 
You can reconstruct the figure with the following waveforms: 
I Neuron 1: electrode 1 (-1,2,1,0,0,0,0,0,0) and electrode 2 
(0,0,0,0,0,0,-1,2,-1). 
I Neuron 2: electrode 1 (-1,2,1,0,0,0,0,0,0) and electrode 2 
(0,0,0,-1,2,-1,0,0,0). 
And the following filters: 
I Neuron 1: electrode 1 (-1/2,1,1/2,0,0,0,0,0,0) and electrode 2 
(0,0,0,0,0,0,-1/2,1,-1/2). 
I Neuron 2: electrode 1 (-1/2,1,1/2,0,0,0,0,0,0) and electrode 2 
(0,0,0,-1/2,1,-1/2,0,0,0). 
Given signals E1(t) and E2(t) on electrode 1 and 2, the output of 
filter 1 (responding to Neuron 1) is: 
F1(t) = E1(t1)=2+E1(t)E1(t+1)=2E2(t+5)=2+E2(t+6)E2(t+7)=2 :
Multi-channel linear filter (1975) 
Fig. 2 of Roberts and Hartline (1975) Brain Res 94:141.
Waveform changes during bursts (1973) 
Fig. 2 of Calvin (1972) Electroenceph clin Neurophysiol 34:94.
McNaughton, O’Keefe and Barnes solution (1983) 
Part of the Introduction and Fig. 1 of McNaughton et al 
(1983) J Neurosci Methods 8:391.
McNaughton, O’Keefe and Barnes solution (1983) 
Fig. 2 and 3 of McNaughton et al (1983)
McNaughton, O’Keefe and Barnes solution (1983) 
Fig. 5 of McNaughton et al (1983)
Sampling jitter (1984) 
Fig. 1 of McGill and Dorfman (1984) IEEE Trans Biomed Eng 
31:462. EMG recordings.
Sampling jitter correction 
Fig. 4 of Pouzat et al (2002) J Neurosci Methods 122:43.
Sophisticated visualization tools (late 80s early 
90s) 
A scatter plot matrix obtained with GGobi (www.ggobi.org).
Automatic clustering: K-means (1) 
Hastie et al (2009) The Elements of Statistical Learning. 
Springer. p 510.
Automatic clustering: K-means (2) 
Fig. 14.6 of Hastie et al (2009).
Gaussian Mixture Model (GMM) 
GMM can be viewed as refined and softer version of the 
K-means. Here an individual observation is assumed to arise 
from the following procedure, with K components in the 
mixture: 
1. Draw the mixture component j 2 f1; : : : ;Kg with 
PK 
probabilities f1; : : : ; Kg ( 
i=1 i = 1). 
2. Given j , draw the observation Y 2 Rp from a 
(multivariate) Gaussian distribution with pdf: 
1 
j ;j (y) = 
(2)p=2jj j1=2 exp 
 
 
1 
2 
(y  j )T1 
j (y  j ) 
 
: 
The N observation are assumed to be drawn independently an 
identically. 
The pdf of y 2 Rp can then be written as: 
pY (y) = 
XK 
j=1 
jj ;j (y) :
GMM inference: Expectation-Maximization (1) 
Let us consider a simple case in dimension 1 with two 
components. We have: 
I Y1  N(1; 2 
1) 
I Y2  N(2; 2 
2) 
I Y = (1  Z)Y1 + ZY2 
where Z 2 f0; 1g with Pr(Z = 1) = . The density of Y is 
then: 
pY (y) = (1  )1;1(y) + 2;2(y) 
and the (log-)likelihood, when an IID sampe of size N has 
been observed, is: 
l (; 1; 1; 2; 2) = 
XN 
i=1 
ln [(1  )1;1(yi ) + 2;2(yi )] :
GMM inference: Expectation-Maximization (2) 
The Expectation-Maximization (EM) algorithm for GMM 
augments the data, doing as if the component of origin 
had been observed, that is as if (Y ; Z) instead of simply Y 
was known. The complete log-likelihood is then: 
l0(; 1; 1; 2; 2) = 
PN 
i=1(1  zi ) ln P 1;1(yi ) + zi ln 2;2(yi )+ N 
i=1(1  zi ) ln(1  ) + zi ln() : 
Since the zi are not known, the EM proceeds in a iterative 
fashion, by substituting their expected values: 

i = E(Zi j; 1; 1; 2; 2) = Pr(Zi = 1j; 1; 1; 2; 2) ; 
also called the responsibility of the second component for 
observation i .
GMM inference: Expectation-Maximization (3) 
Hastie et al (2009) p 275.
Automatic choice of K 
The number of components can be automatically chosen by 
minimizing a penalized likelihood with Akaike’s Information 
Criterion (AIC): 
K = arg min 
k 
2l (^k ) + 2d(k) ; 
where ^k stands for maximum likelihood estimator of the set 
of model parameters and d(k) stands for the dimension 
(number of parameters) of the model. 
Schwarz’s Bayesian Information Criterion (BIC) tends to work 
better: 
K = arg min 
k 
2l (^k ) + ln(N)d(k) ; 
where N is the sample size. 
See Chap. 7 of Hastie et al (2009) for more criteria and 
discussion.
That’s all for today! 
Thank you for listening!

More Related Content

Viewers also liked (7)

ACTION POTENTIAL - IONIC BASIS AND RECORDING
ACTION POTENTIAL - IONIC BASIS AND RECORDINGACTION POTENTIAL - IONIC BASIS AND RECORDING
ACTION POTENTIAL - IONIC BASIS AND RECORDING
 
Electrophysiologic Study
Electrophysiologic StudyElectrophysiologic Study
Electrophysiologic Study
 
Patch clamp technique
Patch clamp techniquePatch clamp technique
Patch clamp technique
 
Electrophysiology basics,part1(lecture)
Electrophysiology basics,part1(lecture)Electrophysiology basics,part1(lecture)
Electrophysiology basics,part1(lecture)
 
Electrophysiology study basics
Electrophysiology study basicsElectrophysiology study basics
Electrophysiology study basics
 
Introduction To Electrophysiology
Introduction To ElectrophysiologyIntroduction To Electrophysiology
Introduction To Electrophysiology
 
Patch clamp technique
Patch clamp techniquePatch clamp technique
Patch clamp technique
 

Similar to Spike sorting: What is it? Why do we need it? Where does it come from? How is it done? How to interpret it?

The Brain as a Whole: Executive Neurons and Sustaining Homeostatic Glia
The Brain as a Whole: Executive Neurons and Sustaining Homeostatic GliaThe Brain as a Whole: Executive Neurons and Sustaining Homeostatic Glia
The Brain as a Whole: Executive Neurons and Sustaining Homeostatic Glia
InsideScientific
 
Cereb. cortex 2009-knafo-586-92
Cereb. cortex 2009-knafo-586-92Cereb. cortex 2009-knafo-586-92
Cereb. cortex 2009-knafo-586-92
shiraknafo
 
Ultrasonic Histology
Ultrasonic HistologyUltrasonic Histology
Ultrasonic Histology
Debdoot Sheet
 
What is (computational) neuroscience?
What is (computational) neuroscience?What is (computational) neuroscience?
What is (computational) neuroscience?
SSA KPI
 
My Presentation @Ryerson University
My Presentation @Ryerson UniversityMy Presentation @Ryerson University
My Presentation @Ryerson University
Jagdish Bhatt
 
Scientific evidence for a connection between mind and matter
Scientific evidence for a connection between mind and matterScientific evidence for a connection between mind and matter
Scientific evidence for a connection between mind and matter
Martin Peniak
 
Kimpo et al_JNsci 2003
Kimpo et al_JNsci 2003Kimpo et al_JNsci 2003
Kimpo et al_JNsci 2003
Rhea Kimpo
 

Similar to Spike sorting: What is it? Why do we need it? Where does it come from? How is it done? How to interpret it? (20)

The Brain as a Whole: Executive Neurons and Sustaining Homeostatic Glia
The Brain as a Whole: Executive Neurons and Sustaining Homeostatic GliaThe Brain as a Whole: Executive Neurons and Sustaining Homeostatic Glia
The Brain as a Whole: Executive Neurons and Sustaining Homeostatic Glia
 
189084.full
189084.full189084.full
189084.full
 
Cereb. cortex 2009-knafo-586-92
Cereb. cortex 2009-knafo-586-92Cereb. cortex 2009-knafo-586-92
Cereb. cortex 2009-knafo-586-92
 
Reverberation Artifacts in ultrasound imaging
Reverberation Artifacts in ultrasound imagingReverberation Artifacts in ultrasound imaging
Reverberation Artifacts in ultrasound imaging
 
Plaque inflammation july 2
Plaque inflammation july 2Plaque inflammation july 2
Plaque inflammation july 2
 
143 plaque inflammation spio
143 plaque inflammation spio143 plaque inflammation spio
143 plaque inflammation spio
 
143 plaque inflammation spio
143 plaque inflammation spio143 plaque inflammation spio
143 plaque inflammation spio
 
Ultrasonic Histology
Ultrasonic HistologyUltrasonic Histology
Ultrasonic Histology
 
Comparison of 500Hz Tonebursts and 500Hz octave Chirps for Cervical vestibula...
Comparison of 500Hz Tonebursts and 500Hz octave Chirps for Cervical vestibula...Comparison of 500Hz Tonebursts and 500Hz octave Chirps for Cervical vestibula...
Comparison of 500Hz Tonebursts and 500Hz octave Chirps for Cervical vestibula...
 
06972937
0697293706972937
06972937
 
Student Project - Accurate Computer-assisted Cell Culture using Ultrasounds
Student Project - Accurate Computer-assisted Cell Culture using UltrasoundsStudent Project - Accurate Computer-assisted Cell Culture using Ultrasounds
Student Project - Accurate Computer-assisted Cell Culture using Ultrasounds
 
What is (computational) neuroscience?
What is (computational) neuroscience?What is (computational) neuroscience?
What is (computational) neuroscience?
 
My Presentation @Ryerson University
My Presentation @Ryerson UniversityMy Presentation @Ryerson University
My Presentation @Ryerson University
 
Scientific evidence for a connection between mind and matter
Scientific evidence for a connection between mind and matterScientific evidence for a connection between mind and matter
Scientific evidence for a connection between mind and matter
 
Noise-induced amplification of MEA signal based in Stochastic Resonance
Noise-induced amplification of MEA signal based in Stochastic ResonanceNoise-induced amplification of MEA signal based in Stochastic Resonance
Noise-induced amplification of MEA signal based in Stochastic Resonance
 
Examen talk
Examen talkExamen talk
Examen talk
 
Sympathy of the Brain - Emmanuelle Tognoli, Shanghai, ECNU
Sympathy of the Brain - Emmanuelle Tognoli, Shanghai, ECNUSympathy of the Brain - Emmanuelle Tognoli, Shanghai, ECNU
Sympathy of the Brain - Emmanuelle Tognoli, Shanghai, ECNU
 
Computational neuroscience
Computational neuroscienceComputational neuroscience
Computational neuroscience
 
Kimpo et al_JNsci 2003
Kimpo et al_JNsci 2003Kimpo et al_JNsci 2003
Kimpo et al_JNsci 2003
 
A monkey model of auditory scene analysis
A monkey model of auditory scene analysisA monkey model of auditory scene analysis
A monkey model of auditory scene analysis
 

More from NeuroMat

MEPHunter: Making things easier for signal visualization and analysis
MEPHunter: Making things easier for signal visualization and analysisMEPHunter: Making things easier for signal visualization and analysis
MEPHunter: Making things easier for signal visualization and analysis
NeuroMat
 

More from NeuroMat (13)

Gromov and the ”ergo-brain”
Gromov and the ”ergo-brain”Gromov and the ”ergo-brain”
Gromov and the ”ergo-brain”
 
Perspectives on Applications of a Stochastic Spiking Neuron Model to Neural N...
Perspectives on Applications of a Stochastic Spiking Neuron Model to Neural N...Perspectives on Applications of a Stochastic Spiking Neuron Model to Neural N...
Perspectives on Applications of a Stochastic Spiking Neuron Model to Neural N...
 
Hidden context tree modeling of EEG data
Hidden context tree modeling of EEG dataHidden context tree modeling of EEG data
Hidden context tree modeling of EEG data
 
Functional Regression Analysis
Functional Regression AnalysisFunctional Regression Analysis
Functional Regression Analysis
 
Goodness–of–fit tests for regression models: the functional data case
Goodness–of–fit tests for regression models: the functional data caseGoodness–of–fit tests for regression models: the functional data case
Goodness–of–fit tests for regression models: the functional data case
 
Introdução ao Armazenamento de Dados de Experimentos em Neurociência - Parte 03
Introdução ao Armazenamento de Dados de Experimentos em Neurociência - Parte 03Introdução ao Armazenamento de Dados de Experimentos em Neurociência - Parte 03
Introdução ao Armazenamento de Dados de Experimentos em Neurociência - Parte 03
 
Introdução ao Armazenamento de Dados de Experimentos em Neurociência - Parte 02
Introdução ao Armazenamento de Dados de Experimentos em Neurociência - Parte 02Introdução ao Armazenamento de Dados de Experimentos em Neurociência - Parte 02
Introdução ao Armazenamento de Dados de Experimentos em Neurociência - Parte 02
 
Introdução ao Armazenamento de Dados de Experimentos em Neurociência - Parte 01
Introdução ao Armazenamento de Dados de Experimentos em Neurociência - Parte 01Introdução ao Armazenamento de Dados de Experimentos em Neurociência - Parte 01
Introdução ao Armazenamento de Dados de Experimentos em Neurociência - Parte 01
 
MEPHunter: Making things easier for signal visualization and analysis
MEPHunter: Making things easier for signal visualization and analysisMEPHunter: Making things easier for signal visualization and analysis
MEPHunter: Making things easier for signal visualization and analysis
 
Neuroscience Experiments System - NES - Versão 0.1
Neuroscience Experiments System - NES - Versão 0.1Neuroscience Experiments System - NES - Versão 0.1
Neuroscience Experiments System - NES - Versão 0.1
 
Desafios matemáticos e computacionais da neurociência
Desafios matemáticos e computacionais da neurociênciaDesafios matemáticos e computacionais da neurociência
Desafios matemáticos e computacionais da neurociência
 
Introdução elementar à modelagem estocástica de cadeias simbólicas
Introdução elementar à modelagem estocástica de cadeias simbólicasIntrodução elementar à modelagem estocástica de cadeias simbólicas
Introdução elementar à modelagem estocástica de cadeias simbólicas
 
Data Provenance and Scientific Workflow Management
Data Provenance and Scientific Workflow ManagementData Provenance and Scientific Workflow Management
Data Provenance and Scientific Workflow Management
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Recently uploaded (20)

OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answers
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactistics
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health Education
 

Spike sorting: What is it? Why do we need it? Where does it come from? How is it done? How to interpret it?

  • 1. Spike sorting: What is it? Why do we need it? Where does it come from? How is it done? How to interpret it? I. What is spike sorting, neurophysiological origin of the recorded signal and short history of the field. Christophe Pouzat Mathématiques Appliquées à Paris 5 (MAP5) Université Paris-Descartes and CNRS UMR 8145 christophe.pouzat@parisdescartes.fr
  • 2. Where are we ? Ensemble recordings What is spike sorting? What do we measure? A short history of spike sorting
  • 3. Why do we want to record from many neurons? Neurophysiologists are trying to record many neurons at once with single neuron resolution because: I They can collect more data per experiment. I They have reasons to think that neuronal information processing might involve synchronization among neurons, an hypothesis dubbed binding by synchronization in the field.
  • 4. Ensemble recordings: multi-electrode array (MEA) Left, the brain and the recording probe with 16 electrodes (bright spots). Width of one probe shank: 80 m. Right, 1 sec of raw data from 4 electrodes. The local extrema are the action potentials. The insect shown on the figure is a locust, Schistocerca americana. Source: Pouzat, Mazor and Laurent.
  • 5. What a Schistocerca americana looks like? Schistocerca americana headshot by Rob Ireton - http: //www.flickr.com/photos/24483890@N00/7182552776/. Licensed under Creative Commons.
  • 6. Voltage sensitive dyes Fig. 2 of Homma et al (2009) Phil Trans R Soc B 364:2453.
  • 7. Ensemble recordings: voltage-sensitive dyes (VSD) Imaging of the pedal ganglion of Tritonia by Frost et al (2010), Chap. 5 of Membrane Potential Imaging in the Nervous System, edited by M. Canepari and D. Zevecic.
  • 8. What a Tritonia looks like? Tritonia festiva by Daniel Hershman from Federal Way, US - edmonds4. Licensed under Creative Commons Attribution 2.0 via Wikimedia Commons.
  • 9. Ensemble recordings: calcium concentration imaging Embryonic mouse brainstem-spinal chord preparation. Fig. 10 of Homma et al (2010) Phil Trans R Soc B 364:2453.
  • 10. Where are we ? Ensemble recordings What is spike sorting? What do we measure? A short history of spike sorting
  • 11. Why are tetrodes used? The last 200 ms of the locust figure. With the upper recording site only it would be difficult to properly classify the two first large spikes (**). With the lower site only it would be difficult to properly classify the two spikes labeled by ##.
  • 12. What do we want? I Find the number of neurons contributing to the data. I Find the value of a set of parameters characterizing the signal generated by each neuron (e.g., the spike waveform of each neuron on each recording site). I Acknowledging the classification ambiguity which can arise from waveform similarity and/or signal corruption due to noise, the probability for each neuron to have generated each event (spike) in the data set. I A method as automatic as possible.
  • 13. A similar problem (1) I Think of a room with many people seating and talking to each other using a language we do not know. I Assume that microphones were placed in the room and that their recordings are given to us. I Our task is to isolate the discourse of each person.
  • 14. A similar problem (2) With apologies to Brueghel (original, without microphones, in Vienna, Kunsthistorisches Museum).
  • 15. A similar problem (3) To fulfill our task we could make use of the following features: I Some people have a low pitch voice while other have a high pitch one. I Some people speak loudly while other do not. I One person can be close to one microphone and far from another such that its talk is simultaneously recorded by the two with different amplitudes. I Some people speak all the time while other just utter a comment here and there, that is, the discourse statistics changes from person to person.
  • 16. VSD does not eliminate the sorting problem (1) VSD recording from Aplysia’s abdominal ganglion, Fig. 1 of Zecevic et al (1989) J Neurosci 9:3681.
  • 17. Aplysia Source: Wikipedia, Licensed under Creative Commons Attribution-Share Alike 3.0 via Wikimedia Commons.
  • 18. VSD does not eliminate the sorting problem (2) Fig. 2 of Zecevic et al (1989).
  • 19. Calcium signals have slow kinetics! Fig. 4 of Canepari et al (2010), Chap. 4 of of Membrane Potential Imaging in the Nervous System, edited by M. Canepari and D. Zevecic.
  • 20. Spike sorting also matters for neurologists Neurologist perform daily electromyographic (EMG) recordings monitoring muscle fibers action potentials.
  • 21. Where are we ? Ensemble recordings What is spike sorting? What do we measure? A short history of spike sorting
  • 22. Membrane potential: intracellular and extracellular ionic concentrations Fig. 4-13 of Randall et al (1997) Eckert Animal Physiology W H Freeman and Company.
  • 23. Different concentrations and selective permeability generate membrane potential Fig. 3.2 of Plonsey and Barr (2007) Bioelectricity. A quantitative Approach. Springer. The equilibrium potential (when a single ion is membrane permeable, here ion P) is given by the Nernst equation: Veq m = i e = RT ZpF ln [Cp]i [Cp]e :
  • 24. Nernst equilibrium potential Tables 3.1 and 3.3 of Plonsey and Barr (2007). We get for the potassium ion in the squid: 25:8 ln 397=20 = 78 mV.
  • 25. A Model of a membrane patch Fig. 3.3 of Plonsey and Barr (2007).
  • 26. What makes (most) neurons special? If we depolarize neurons enough, an active response of action potential is generated. Fig. 5-16 of Randall et al (1997).
  • 27. Conductance changes are responsible for the action potential Fig. 5.16 of Plonsey and Barr (2007).
  • 28. The action potential propagates! VSD recording from the giant metacerebral neuron of Helix aspersa. Fig. 2 of Antic et al (2000) J Physiol 527:55.
  • 29. The giant metacerebral neuron of Helix aspersa Fig. 1 of Antic et al (2000).
  • 30. Helix aspersa Snail1web. Licensed under Public domain via Wikimedia Commons.
  • 31. Currents associated with a non-uniform membrane potential When the membrane potential, Vm, is spatially non-uniform axial, Ii [A], and trans-membrane, im [A/L], currents are necessarily present: Ii = a2i@Vm=@x and im = a2i@2Vm=@x2 ; where a is the axon / neurite diameter, the neurite is assumed to seat on the x axis, an axial current is positive if it goes in the increasing x direction and a trans-mambrane current is positive if it goes from inside to outside and i is the intracellular conductance per centimeter [S/L]. See for instance Plonsey and Barr (2007) Chap. 6 and 8.
  • 32. Currents associated with a propagating AP Fig. 8.3 of Plonsey and Barr (2007).
  • 33. Extracellular potential associated with a current source (1) For a point current source of intensity I0 in a medium of conductivity per unit length e , the extracellular potential (with respect to a reference at infinity) depends only on the distance, r , to the source and is given by: e = 1 4e I0 r : For a fiber seating on the x axis we get at a point (x0; y0; z0) the potential: e(x0; y0; z0) = 1 4e Z L im(x) p (x x0)2 + y02 + z02 dx :
  • 34. Extracellular potential associated with a current source (2) Part of Fig. 8.5 of Plonsey and Barr (2007). Using our previous expression for im we get: e(x0; y0; z0) = a2i 4e Z L @2Vm(x) @x2 dx p (x x0)2 + y02 + z02 : Notice the dependence on the fiber cross-section.
  • 35. Observed extracellular potential Fig. 16 of Fatt (1957) J Neurophys 20:27. Recordings from Cats motoneurons.
  • 36. Computed extracellular potential Left, Fig. 8 of Santiago Ramón y Cajal (1899), middle and right Fig. 2.4 and 2.5 of Holt PhD thesis (Caltech, 1999).
  • 37. The stretch receptor of Homarus americanus (1) The preparation, Fig. 1 A of Eyzaguirre and Kuffler (1955a) J Gen Phys 39:87.
  • 38. The stretch receptor of Homarus americanus (2) Fig. 1 B of Eyzaguirre and Kuffler (1955a).
  • 39. Homarus americanus Yellow-lobster. Licensed under Creative Commons Attribution-Share Alike 3.0 via Wikimedia Commons.
  • 40. Mismatch between somatic and axonal AP? Fig. 13 of Eyzaguirre and Kuffler (1955b) J Gen Phys 39:121.
  • 41. This is not an invertebrate peculiarity (1) Fig. 7 of Sakmann and Stuart (2009) in Single-Channel Recording, edited by B Sakmann and E Neher, Springer
  • 42. This is not an invertebrate peculiarity (2) Fig. 5 of Williams and Stuart (1999) J Physiol 521:467.
  • 43. No more than a HH model is required Fig. 5 of Cooley and Dodge (1966) Biophys J 6:583.
  • 44. A note on slice recording (1) Fig. 1 of Sakmann and Stuart (2009)
  • 45. A note on slice recording (2) Fig. 2 of Aitken et al (1995) J Neurosci Methods 59:139.
  • 46. What happens when the diameter increases? Numerical model, Fig. 10 of Goldstein and Rall (1974) Biophys J 14:731.
  • 47. Reflected AP can happen! Fig. 5 of Antic et al (2000).
  • 48. Where are we ? Ensemble recordings What is spike sorting? What do we measure? A short history of spike sorting
  • 49. Sorting by eye As soon as the the all-or-nothing response of sensory nerve fibres was established by Adrian and Forbes (1922), neurophysiologists started doing sorting by eye using the spike amplitude as a feature. Fig. 4 of Hartline and Graham (1932) J Cell Comp Physiol 1:277. Limulus polyphemus recording.
  • 50. What a Limulus polyphemus looks like? Limulus polyphemus (aq.) by Hans Hillewaert - Own work. Licensed under Creative Commons Attribution-Share Alike 4.0 via Wikimedia Commons.
  • 51. Automatic window discriminator (1963) Fig. 4 of Poggio and Mountcastle (1963) J Neurophys 26:775. In vivo recordings from monkeys thalamic neurons.
  • 52. Template matching (1964) Fig. 1 of Gerstein and Clark (1964) Science 143:1325. Dorsal cochlear nucleus recordings from anesthetized cats.
  • 53. Dimension reduction and cluster membership (1965) Fig. 1-3 of Simon (1965) Electroenceph clin Neurophysiol 18:192.
  • 54. Superposition resolution (1972) Fig. 3 of Prochazka et al (1972) Electroenceph clin Neurophysiol 32:95.
  • 56. Multi-channel linear filter: principle (2) You can reconstruct the figure with the following waveforms: I Neuron 1: electrode 1 (-1,2,1,0,0,0,0,0,0) and electrode 2 (0,0,0,0,0,0,-1,2,-1). I Neuron 2: electrode 1 (-1,2,1,0,0,0,0,0,0) and electrode 2 (0,0,0,-1,2,-1,0,0,0). And the following filters: I Neuron 1: electrode 1 (-1/2,1,1/2,0,0,0,0,0,0) and electrode 2 (0,0,0,0,0,0,-1/2,1,-1/2). I Neuron 2: electrode 1 (-1/2,1,1/2,0,0,0,0,0,0) and electrode 2 (0,0,0,-1/2,1,-1/2,0,0,0). Given signals E1(t) and E2(t) on electrode 1 and 2, the output of filter 1 (responding to Neuron 1) is: F1(t) = E1(t1)=2+E1(t)E1(t+1)=2E2(t+5)=2+E2(t+6)E2(t+7)=2 :
  • 57. Multi-channel linear filter (1975) Fig. 2 of Roberts and Hartline (1975) Brain Res 94:141.
  • 58. Waveform changes during bursts (1973) Fig. 2 of Calvin (1972) Electroenceph clin Neurophysiol 34:94.
  • 59. McNaughton, O’Keefe and Barnes solution (1983) Part of the Introduction and Fig. 1 of McNaughton et al (1983) J Neurosci Methods 8:391.
  • 60. McNaughton, O’Keefe and Barnes solution (1983) Fig. 2 and 3 of McNaughton et al (1983)
  • 61. McNaughton, O’Keefe and Barnes solution (1983) Fig. 5 of McNaughton et al (1983)
  • 62. Sampling jitter (1984) Fig. 1 of McGill and Dorfman (1984) IEEE Trans Biomed Eng 31:462. EMG recordings.
  • 63. Sampling jitter correction Fig. 4 of Pouzat et al (2002) J Neurosci Methods 122:43.
  • 64. Sophisticated visualization tools (late 80s early 90s) A scatter plot matrix obtained with GGobi (www.ggobi.org).
  • 65. Automatic clustering: K-means (1) Hastie et al (2009) The Elements of Statistical Learning. Springer. p 510.
  • 66. Automatic clustering: K-means (2) Fig. 14.6 of Hastie et al (2009).
  • 67. Gaussian Mixture Model (GMM) GMM can be viewed as refined and softer version of the K-means. Here an individual observation is assumed to arise from the following procedure, with K components in the mixture: 1. Draw the mixture component j 2 f1; : : : ;Kg with PK probabilities f1; : : : ; Kg ( i=1 i = 1). 2. Given j , draw the observation Y 2 Rp from a (multivariate) Gaussian distribution with pdf: 1 j ;j (y) = (2)p=2jj j1=2 exp 1 2 (y j )T1 j (y j ) : The N observation are assumed to be drawn independently an identically. The pdf of y 2 Rp can then be written as: pY (y) = XK j=1 jj ;j (y) :
  • 68. GMM inference: Expectation-Maximization (1) Let us consider a simple case in dimension 1 with two components. We have: I Y1 N(1; 2 1) I Y2 N(2; 2 2) I Y = (1 Z)Y1 + ZY2 where Z 2 f0; 1g with Pr(Z = 1) = . The density of Y is then: pY (y) = (1 )1;1(y) + 2;2(y) and the (log-)likelihood, when an IID sampe of size N has been observed, is: l (; 1; 1; 2; 2) = XN i=1 ln [(1 )1;1(yi ) + 2;2(yi )] :
  • 69. GMM inference: Expectation-Maximization (2) The Expectation-Maximization (EM) algorithm for GMM augments the data, doing as if the component of origin had been observed, that is as if (Y ; Z) instead of simply Y was known. The complete log-likelihood is then: l0(; 1; 1; 2; 2) = PN i=1(1 zi ) ln P 1;1(yi ) + zi ln 2;2(yi )+ N i=1(1 zi ) ln(1 ) + zi ln() : Since the zi are not known, the EM proceeds in a iterative fashion, by substituting their expected values: i = E(Zi j; 1; 1; 2; 2) = Pr(Zi = 1j; 1; 1; 2; 2) ; also called the responsibility of the second component for observation i .
  • 70. GMM inference: Expectation-Maximization (3) Hastie et al (2009) p 275.
  • 71. Automatic choice of K The number of components can be automatically chosen by minimizing a penalized likelihood with Akaike’s Information Criterion (AIC): K = arg min k 2l (^k ) + 2d(k) ; where ^k stands for maximum likelihood estimator of the set of model parameters and d(k) stands for the dimension (number of parameters) of the model. Schwarz’s Bayesian Information Criterion (BIC) tends to work better: K = arg min k 2l (^k ) + ln(N)d(k) ; where N is the sample size. See Chap. 7 of Hastie et al (2009) for more criteria and discussion.
  • 72. That’s all for today! Thank you for listening!