Spike detection and sorting: combining algebraic differentiations with ICA Zoran Tiganj

advertisement

Spike detection and sorting: combining algebraic differentiations with ICA

Zoran Tiganj 1 and Mamadou Mboup 2 , 1

1 Projet ALIEN, INRIA Futurs

Parc Scientifique de la Haute Borne,

40, avenue Halley Bt.A, Park Plaza, 59650 Villeneuve d’Ascq, Frace

2 UFR Math´ematiques et Informatique (CRIP5),

Universit´e Paris Descartes,

45 rue des Saints-P´eres, 75270 Paris cedex 06, France

Abstract.

A new method for action potentials detection is proposed.

The method is based on a numerical differentiation, as recently introduced from operational calculus. We show that it has good performance as compared to existing methods. We also combine the proposed method with ICA in order to obtain spike sorting.

1 Introduction

Decoding the neural information is one of the most important problems in neuroscience. As it is well known, this information is conveyed by the spike train of electrical discharges, called action potential. Action potentials are generated when the equilibrium of electrical charges across the axonal membrane of a neuron is broken [1]. Decoding of the communication between neurons is an extremely challenging problem. One of the difficulties stems from the impossibility, in general, to record the activity of a single neuron but only a mixture activity of all neurons in a measured region. Imperative requirement for the neural information decoding is the ability of action potential detection and sorting (finding out which action potentials are fired by the same neuron) [2], [3], [4], [5].

To make the detection and sorting easier, recording systems usually consist of several electrodes. Each electrode receives the action potentials from all the surrounding neurons. The contribution from a single neuron depends on its distance from the electrode and on the type of the tissue that the action potentials go through. It is shown that ICA [6], [7] has a strong potential in neural signals detection and sorting [8], [9], even though it is well known that neurons are not independent sources – they are communicating with each other and the breaking of the equilibrium of electrical charges is caused by that communication.

In this paper we show how a new algebraic technique for numerical differentiation [10] can lead to a very good performances in neural spike detection.

Further on, we use a combination of the technique with ICA to perform spike sorting.

In a neural recording settings, the number of neurons significantly exceeds that of the intracranial electrodes. We assume a measurement configuration

where the distances between the neurons and the electrodes are such that the contribution of only few closest neurons will have a strong influence on the electrodes. The spiking activity of the remaining neurons is considered as the background noise [11].

The neural signal is first represented using a local piecewise polynomial model. The occurrence of an action potential (a spike) is represented by a discontinuity point in the model. Now, such singularities are fully characterized and easy to handle by the differential algebra and operational calculus approach to parameter estimation, introduced in [12] (see also [10] and [13]). Following this approach, we give in section 2 an explicit characterization of the spiking instants, as solutions of a polynomial equation, whose coefficients are composed of a short time window iterated integrals of the signal observation. Using classical numerical integration, we implement these coefficients as outputs of FIR filters. The filters are, as a matter of fact, numerical differentiators and moreover, they inherit the very important low pass property of the iterated integrals. The proposed method is compared in section 3 with two among the most successful methods in the literature. The simulation is performed using synthetic signal.

We also combine our detection approach with ICA (see section 4). Benefit of such approach is not only a spike detection, but also a spike sorting, done by

ICA. Some concluding remarks are pointed out in section 5.

2 Characterization of the spike instants

In this section we give an explicit characterization of the spiking instants. More precisely we show that if an action potential occurs at time instant t ?

, then this may be described as a solution of a polynomial equation.

2.1

Mathematical model

To begin, the noisy observation spike train y ( t ) is represented by the piecewise regular model y ( t ) = i =1

χ

[ t i − 1

,t i

]

( t ) p i

( t − t i − 1

) + n ( t ) , (1) where χ

[ t i − 1

,t i

]

( t ) is the characteristic function of the interval [ t i − 1

, t i

], the t i are the spiking instants and n ( t ) is the noise corruption. In the sequel, we denote by x ( t ) = y ( t ) − n ( t ) the unobserved noise-free signal. Each p i

( t ) is assumed to be a polynomial. Set t

0 discontinuity point in each interval I T

τ t ) , t ∈ [0 , T ] for the restriction of the signal in I point, say t

τ

= 0. Let

, relatively to I T

τ with:

T be given such that there is at most one

= ( τ − T, τ ) , τ ≥ T . Let set x

T

τ

τ

( t ) = x ( τ − and redefine the discontinuity

– t

τ

= 0 if

– 0 < t

τ

≤ x

T

τ

( t ) is smooth otherwise

Now, the N th

[14]) satisfies order derivative of x

τ

( t ) (in the sense of distributions theory d N dt N x

τ

( t ) = [ x

( N )

τ

]( t ) + k =1

³

µ

0

N − k

δ ( t )

( k − 1)

+ µ

N − k

δ ( t − t

τ

)

( k − 1)

´ where:

– µ 0 k

– µ k

= x ( k ) (0+) − x ( k ) (0 − is the jump of the k th

) = x ( k ) (0) order derivative at the point t

τ

µ k

= x ( k ) ( t

τ +

) − x ( k ) ( t

τ −

)

(2) with:

µ

µ

0 k

= µ

1

= ...

= µ

= 0 , 0 ≤ t

τ where the notation f

N − 1

( k )

= 0 if there is no spike (action potential)

≤ T if there is a spike (action potential) means k th order derivative of

– [ x

( N )

τ

] represents the regular part of the N th f .

order derivative of the signal.

The action potential detection problem is now casted into the estimation of the location of the signal discontinuities, viz spike locations, t

τ

.

We assume that the degree of each p i

( t ) in (1) does not exceed N − 1. The regular part [ x

( N )

τ

] then vanishes. Notice that different choices for N lead to different descriptions of reduces to t

τ

. In the sequel we set N = 2. Equation (2) then d 2 dt 2 x

τ

( t ) = k =1

³

µ 0

2 − k

δ ( t ) ( k − 1) + µ

2 − k

δ ( t − t

τ

) ( k − 1)

´

(3)

2.2

Finding the firing instants

In order to solve the equation (3) for t

τ

, the problem is transferred into the operational domain (it is possible to solve the equation in the time domain too, but it is easier to handle expression like δ ( t ) using operational calculus) where equation (3) reads as: s

2 x

τ

( s ) − sx

τ

(0) − ˙

τ

(0) = µ

1 e

− t

τ s

+ sµ

0 e

− t

τ s

(4)

Unknown parameters µ

0

, µ

1 and initial conditions x

τ x

τ

(0) are irrelevant for our purpose. We consider them as undesired perturbations which are easy to eliminate by a N th order differentiation with respect to s . This results in: t

2

τ

( s

2 x

τ

)

(2)

+ 2 t

τ

( s

2 x

τ

)

(3)

+ ( s

2 x

τ

)

(4)

= 0 (5)

Multiplication by s k , k > 0 in the operational domain implies k order derivative in the time domain. Now differentiation is known to be difficult and illconditioned. On the other hand division by s ν , ν > 0 corresponds in the time domain to the ν th order iterated integral s ν

→ f ( t ) =

( ν

1

− 1)!

Z

0 t

( t − λ ) ν − 1 u ( λ ) dλ.

Let us then divide equation (5) by s ν , ν > 2. The resulting equation becomes in the time domain: t 2

τ

Z

0 t

( t − λ ) ν − 1 λ 2 x (2)

τ

( λ ) dλ − 2 t

τ

Z

0 t

( t − λ ) ν − 1 λ 3 x (2)

τ

( λ ) dλ

+

Z t

( t − λ ) ν − 1 λ 4 x (2)

τ

( λ ) dλ = 0 .

(6)

0

In the sequel we fix t to t = T . Next, we integrate by parts and we replace the unobserved signal x

τ

( t ) by its noisy observation counterpart y

τ

( t ) = x ( τ − t ) + n ( τ − t ). This leads to the explicit characterization of ˆ : y ( τ − t ) = t ˆ

2

Z

0

T £

( T − λ ) ν − 1 λ 2

¤

(2) y ( τ − λ ) dλ − 2 ˆ

+

Z

T

Z

T £

( T − λ ) ν − 1 λ 3

¤

(2) y ( τ − λ ) dλ

0

£

( T − λ ) ν − 1 λ 4

¤

(2) y ( τ − λ ) dλ = 0 (7)

0

Let us define:

£

( T − λ ) ν − 1 λ g +1

¤

(2) h g

( λ ) =

0

0 ≤ λ < T otherwise

(8) where g = 1 , 2 , 3. After inserting h g

( λ ) back in equation (7) we obtain t ˆ

τ

2

Z

0

T h

1

( λ ) y ( τ − λ ) dλ − 2 ˆ

Z

0

T h

2

( λ ) y ( τ − λ ) dλ +

Z

0

T h

3

( λ ) y ( τ − λ ) dλ = 0 (9)

The coefficients of this equation can be easily implemented as FIR filters.

Only discrete samples of the observation are available. We assume a regular sampling with the sampling period T s

. Let τ = nT numerical integration method with abscissas mT s s and T = M T s

. Using a and weight W we obtain the discrete approximation of equation (9) given by m

, m = 0 , ..., M , t ˆ

τ

2 m =0 h

1 ,m y n − m

− 2 ˆ m =0 h

2 ,m y n − m

+ m =0 h

3 ,m y n − m

= 0 (10) where: h g,m

= W m h g

( mT s

) and y m

= integration defines the parameters W m

: y ( mT s

). Trapezoidal rule for numerical

W

0

= W

M

=

T s

2

, W i

= 1 , i = 1 , 2 , ..., M − 1

3 Spike detection algorithm

Recall that if the input observation x

τ is smooth, then all the three coefficients of the second order equation (6) are equal to 0 and we have t

τ

= 0. Otherwise,

the spiking instant satisfies 0 6 t

τ the three filters { h g,m

6 T . In the discrete time domain each of these coefficients can be derived as the input observation x

τ filtered with one of

} , g = 1 , 2 , 3 from equation (10). In the presence of a noise, y

τ

= x

τ

+ n

τ

, each filter’s output will be different from 0, wether x

τ is smooth or not. But still, the values of the filters outputs will be highly correlated with the smoothness of the noise-free observation x

τ

(see [10] where it is shown that the filters behave as a numerical differentiators). Therefore we use a product of the three filter’s outputs as the final spike detection decision parameter. In this way, the occurrences of the spikes are highly emphasized with respect to the noise.

Comparison of the proposed detection method with two methods among the most accurate ones in the literature is hereafter presented. These are the method based on a combination of median filter, matched filter and nonlinear energy operator (NEO) [4] and the method based on wavelet transformation [5]. The spike train observation data are simulated 1 as in [4]. The value of the parameter T , that defines the filter window length, is set to be 20% above the simulated spike length ( T = 100 samples). Figure 1 displays the receiver operating characteristic

(ROC) curves for the different methods. These results show that the proposed

ROC curve obtained for FR of 10 samples/sec

1.0

ROC curve obtained for FR of 30 samples/sec

1.0

0.5

0.5

Algebraic

NEO

Wavelet

1.0

Algebraic

NEO

Wavelet

1.0

0.0

0.0

0.5

Pfa

0.1

0.0

0.5

Pfa

Fig. 1.

ROC curves obtained by using the proposed method (Algebraic), NEO, and wavelet based method. Figures for two different firing rates (FR) are shown.

method compares favorably with respect to the others.

4 Combination with ICA

In this section, we use a more elaborated neural model for the simulation. This is described first. The description is followed by the implementation of the algebraic differentiation filters with ICA. Finally the simulation results are presented.

1 The signal is created using a code provided by Bruce Land at http://www.nbb.cornell.edu/neurobio/land/PROJECTS/spikeSort .

4.1

Creating the model

Signals for the simulation are created from cell attached recording performed simultaneously on one of the Purkinje cells 2 (figure 2(a)). Two seconds activity, with 15kHz sampling frequency (30000 samples in total), of 1000 artificial neurons are simulated. For this, spikes extracted from the recording were aligned into three clusters by using a classical K -means algorithm. Three different templates

(figure 2(b)) are obtained by the centroids of each cluster.

2.0

1.0

0.0

−1.0

2.0

1.0

0.0

−1.0

−2.0

0 15000 30000

−2.0

10000 10500 11000

(a) Cell attached recording on one of Purkinje cells (left: 30000 recorded samples; right: zoom with 1000 samples)

1.0

0.5

0.0

−0.5

1.0

0.5

0.0

−0−5

1.0

0.5

0.0

−0.5

−1.0

0 80

−1.0

0 80

−1.0

0 40 40 40 80

(b) Three action potential templates

Fig. 2.

Cell attached recording and action potential templates

For each neuron, we simulate first the firing instants as Poisson distributed with a refractory period of 6.7ms. To each location, we then associate randomly one of the above spike templates. The neurons are spatially randomly distributed in the form of a cube, with minimal and maximal mutual distances. Four electrodes are placed on one side of the cube. We assume an isotropic medium

(constant conductivity of the tissue), so that the contribution of each neuron is determined only by its distance from each electrode.

4.2

Spike detection and sorting

Superposition of the distant neurons activity occurs as a noise on the electrodes

– original action potential shape waveforms are destroyed. Only the action potentials coming from the neurons that are close to the electrodes are recorded as spike shape waveforms. Next, signals from the four electrodes are applied to each of the three filters in order to emphasize action potential shape waveforms.

The product of the filters outputs at each electrode may be used as a decision function. This was done in the previous section. Here we use the filters outputs as inputs for ICA in order to perform both, spike detection and sorting. We apply ICA on each set of the four outputs from each of the three filters. The goal is to reconstruct the activity of one neuron per electrode (the closest one).

2 Signals are downloaded from C.

Pouzat web http://www.biomedicale.univ-paris5.fr/physcerv/C_Pouzat/Data.html

[15] for more information page: see

FastICA MATLAB toolbox 3 is used for ICA implementation. ICA gives three results for each of the three filters. The final detection and sorting result is given as a product of these three ICA outputs.

4.3

Results

To gauge the effects of the filters, we also consider the same settings, but with the filters replaced by the identity: we apply ICA directly on the signals from the electrodes and then raise each ICA output to the power 3. Figure 3 compares the two normalized results obtained with and without the filters, on one sample realization of the reconstructed activity of one neuron. The figure shows that the amplitudes of the spikes that are not fired by the neuron closest to the observed electrode are attenuated more with the proposed method than when only ICA is used. This is confirmed in Table 1 that displays the ratio of the

0

−1

0

1

0

−1

0

1

0

−1

0

1

0

Signal on the electrectrode

10000 20000

Activity of a neuron closest to the electrode

30000

−1

1

0 10000 20000 30000

Reconstruction of the neuron activity by using the combination of algebraic differentiations and ICA

10000 20000

Reconstruction of the neuron activity by using only ICA

10000 20000

30000

30000

Fig. 3.

Results of spike detection and sorting on one electrode with 30000 samples when only ICA is applied and when the combinations of algebraic differentiations and ICA is applied.

mean amplitude of the correctly detected action potentials (15 in total) over the mean amplitude of the falsely detected ones (80 in total). At a given electrode, a correct detection is meant when the detected action potential stems from the closest neuron. Otherwise, the detection is qualified as false. The first row of the table concerns the combination of the algebraic differentiations and ICA while the second row is for ICA alone. The different columns correspond to the four electrodes.

5 Conclusion

We have proposed a piecewise regular model for the spike train where the occurrence of a spike (transient) is represented by a discontinuity points. Using

3 The toolbox is developed at Laboratory of Information and Computer Science in the Helsinki University of Technology and it is available on http://www.cis.hut.fi/projects/ica/fastica/

Table 1.

Comparison of action potentials (AP) sorting when ICA is combined with the algebraic differentiation filters and when only ICA is used

Averaged normalized amplitudes of correctly detected AP / Averaged normalized amplitudes of falsely detected AP

Neuron 1

AD and ICA 29.45

ICA 19.72

Neuron 2

48.97

46.80

Neuron 3

29.76

15.41

Neuron 4

86.31

78.12

operational calculus and basic algebraic manipulations we give an explicit characterization of these discontinuity points. The characterization provides a spike detection method which compares favorably with the existing methods. By combining this approach with ICA we obtain not only good results for detection, but also for spike sorting.

References

1. Rieke, F., Warland, D., de Ruyter van Steveninck, R., Bialek, W., Spikes: Exploring the neural code, MIT Press, 1999

2. Lewicki, M. S.: A review of methods for spike sorting: the detection and classification of neural action potentials, Network: Comput. Neural Syst., 1998

3. Delescluse, M., Pouzat, C.: Efficient spike-sorting of multi-state neurons using interspike intervals information, J Neurosci Methods, vol. 150, no. 1, pp. 16-29, 2006

4. Land, B., Spence, A.: Spike (action potential) detection and sorting, Journal Club

25, April 2002

5. Nenadic, Z., Burdick, J. W.: Spike detection using the continious wavelet transform,

IEEE Trans. Biomed. Eng., vol. 52, no. 1, pp. 74-87, 2005.

6. Cardoso, J.F.: Blind signal separation: statistical principles, Proceedings of the

IEEE, vol. 10, no. 9, p.p. 2009-2025, 1998

7. Comon, P.: Independent component analysis, A new concept?, Sig. Proc. 36, 1994

8. Mamlouka, A. M., Sharp, H., Menne, K. M.L., Hofmann, U. G., Martinetz, T.:

Unsupervised spike sorting with ICA and its evaluation using GENESIS simulations,

Neurocomputing, 2005

9. Brown, G. D., Yamada, S., Sejnowski, T., J.: Independent component analysis at the neural cocktail party, TRENDS in Neurosciences, 2001

10. Mboup, M., Join, C., Fliess, M. Numerical differentiation with annihilators in noisy environment, to appear in: Numerical Algorithms, 2008.

11. Gerstner, W., Kistler W.: Spiking Neuron Models. Single neurons, Populations,

Plasticity, Cambridge University Press, 2002

12. Fliess, M., Sira-Ramirez, H.: An algebraic framework for linear identification

ESAIM Contr. Opt. Calc. Variat., VOL. 9, 2003.

13. Mboup, M.: Parameter estimation for signals described by differential equations,

To appear in Applicable Analysis, 2008. DOI: 10.1080/00036810802555441

14. Schwartz, L.: Theorie des distributions, ed. 3, Hermann, 1998

15. Pouzat, C.: Methods and Models in Neurophysics.

Les Houches

2003 Summer School, pp.

729-786, Elsevier, 2005, Available from: http://fr.arxiv.org/abs/q-bio.QM/0405012

Download