Wavelet filtering before spike detection preserves waveform shape and enhances single-unit discrimination

https://doi.org/10.1016/j.jneumeth.2008.05.016Get rights and content

Abstract

The isolation of single units in extracellular recordings involves filtering. Removing lower frequencies allows a constant threshold to be applied in order to identify and extract action potential events. However, standard methods such as Butterworth bandpass filtering perform this frequency excision at a cost of grossly distorting waveform shapes. Here, we apply wavelet decomposition and reconstruction as a filter for electrophysiology data and demonstrate its ability to better preserve spike shape. For the majority of cells, this approach also improves spike signal-to-noise ratio (SNR) and increases cluster discrimination. Additionally, the described technique is fast enough to be applied real-time.

Introduction

The removal of unwanted frequencies and artifacts is essential in the analysis of electrophysiological data, especially where the data of interest are the time stamps of neuron action potentials, also called “spikes.” In addition to high amplitude spikes, typical electrode signals include local field potentials (LFPs), instrument noise, and spikes from neurons too distant from the recording site to be effectively discriminated. An ideal filtering technique would preserve only discriminable spikes without distorting their waveforms, since differences in waveform shape are useful in clustering and also provide an important source of information about neuronal phenotypes (e.g. Csicsvari et al., 1998, Barthó et al., 2004, Berke et al., 2004). Filters commonly used in electrophysiology, such as the Butterworth filter, can be fast to compute and possess a maximally flat frequency response (Butterworth, 1930). However, they possess the undesirable side-effect of distorting the time-domain, e.g. the shape of action potentials.

After the data are filtered, they are usually thresholded to locate spike events, and then certain features of the extracted spikes are used in a manual or semi-automated clustering procedure (Lewicki, 1998). The features to be used in clustering can include spike amplitude, valley width, principal components or wavelet decomposition coefficients. Wavelets have recently gained notice as a powerful tool for signal analysis in the neurosciences and have been applied in a myriad of ways, including spike detection (Hulata et al., 2002, Nenadic and Burdick, 2005), cell classification (Cesar and Costa, 1998, Letelier and Weber, 2000, Quiroga and Garcia, 2003, Quiroga et al., 2004) and EEG/LFP analysis (Clarençon et al., 1996, Adeli et al., 2003, Markazi et al., 2006, Berke et al., 2008). Here, we apply wavelet filtering to “raw” (wide-band) electrode signals as a preprocessing stage before spike detection and sorting. This approach accurately maintains waveform shape while removing low frequency field potentials and noise artifacts. We demonstrate benefits for the later stages of spike discrimination, compared to the standard Butterworth bandpass filter.

Section snippets

Methods

Algorithms were implemented in the Python language (van Rossum, 1995) using the modules NumPy (Oliphant, 2006), SciPy (for Butterworth filter, as implemented by Jones et al., 2001), Modular toolkit for Data Processing (for principal components analysis (PCA), as implemented by Berkes et al., 2008), and PyWavelets (for wavelet transforms, as implemented by Wasilewski, 2006). Algorithms were duplicated when necessary in Matlab, using the Wavelet and Signal Processing toolboxes (Misiti et al., 2000

Results

As found in non-neural applications, WMLDR is an effective means of removing the lower frequencies from an electrophysiological signal (Fig. 2), as a preprocessing step before spike detection and sorting. To assess the distortion of waveforms produced by different filtering techniques, we first assigned spikes to single-units using standard Butterworth bandpass filtering (4-pole, 300–6000 Hz passband), detection via constant threshold, and manual clustering. From these time-stamps, we then

Discussion

We have shown several advantages for using wavelet filtering with electrophysiological data, compared to current standard methods. WMLDR can faithfully preserve spike shape, which is a useful partial indicator of neuronal phenotype. For striatal and hippocampal projection neurons, which make up the great majority of neurons in those regions, wavelet filtered spikes exhibit a significantly higher SNR, allowing for easier spike detection and enhanced spike discrimination through cluster analysis.

Acknowledgements

We thank Vaughn Hetrick and Michael Churchill for skilled technical assistance, and Loren Frank for suggesting and helping in implementing the Bessel filter. Support for this work came from the Tourette Syndrome Association, the Whitehall Foundation, and the National Institute on Drug Abuse.

References (30)

  • P. Barthó et al.

    Characterization of Neocortical principal cells and interneurons by network interactions and extracellular features

    J Neurophysiol

    (2004)
  • J. Berke et al.

    Transient 23-30 Hz oscillations in mouse hippocampus during exploration of novel environments

    Hippocampus

    (2008)
  • Berkes P, Wilbert N, Zito T. Modular toolkit for data processing. 2008....
  • S. Butterworth

    On the theory of filter amplifiers

    Wireless Eng

    (1930)
  • R.M. Cesar et al.

    Neural cell classification by wavelets and multiscale curvature

    Biol Cybern

    (1998)
  • Cited by (84)

    • Sustained effects of pleasant and unpleasant smells on resting state brain activity

      2020, Cortex
      Citation Excerpt :

      Following related studies, we used an orthogonal cubic B-spline wavelet transform in the temporal domain Eryilmaz et al. (2014), Eryilmaz, Van De Ville, Schwartz, & Vuilleumier (2011), Richiardi et al. (2011) to decompose regional brain activity into different frequency bands. It is argued that this method is a more useful way of examining quick, transient changes in brain states than other methods because of its ability to preserve signal shape Wiltschko, Gage and Berke (2008). The wavelet transform separated the extracted signal in to 4 bands: i) .125–.25 ii) .0625–.125 iii) .03125–.0625 iv) .015625–.03125, with bands 3–4 being of interest as frequencies much higher than .1 Hz tend to pertain to respiration and other types of noise Eryilmaz et al. (2014).

    • Distinguishing between Parkinson's disease patients and healthy individuals using a comprehensive set of time, frequency and time-frequency features extracted from vertical ground reaction force data

      2020, Biomedical Signal Processing and Control
      Citation Excerpt :

      For moving average procedure finite impulse response (FIR) filter was applied since due to its linear phase response it prevents time-series distortion. However, in order to preserve the pattern of VGRF data, especially during the stance phase, the IIR filtering that distorts the shape of waveform [37] was prevented. In addition, for removing unwanted pressure sensor readings during the swing phase, where there is no contact between foot and ground surface, VGRF data smaller than 5% of maximum value were set to zero for all pressure sensor values.

    View all citing articles on Scopus
    View full text