Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2009 Sep;47(9):955-66.
doi: 10.1007/s11517-009-0451-2. Epub 2009 Feb 10.

Optimizing the automatic selection of spike detection thresholds using a multiple of the noise level

Affiliations

Optimizing the automatic selection of spike detection thresholds using a multiple of the noise level

Michael Rizk et al. Med Biol Eng Comput. 2009 Sep.

Abstract

Thresholding is an often-used method of spike detection for implantable neural signal processors due to its computational simplicity. A means for automatically selecting the threshold is desirable, especially for high channel count data acquisition systems. Estimating the noise level and setting the threshold to a multiple of this level is a computationally simple means of automatically selecting a threshold. We present an analysis of this method as it is commonly applied to neural waveforms. Four different operators were used to estimate the noise level in neural waveforms and set thresholds for spike detection. An optimal multiplier was identified for each noise measure using a metric appropriate for a brain-machine interface application. The commonly used root-mean-square operator was found to be least advantageous for setting the threshold. Investigators using this form of automatic threshold selection or developing new unsupervised methods can benefit from the optimization framework presented here.

PubMed Disclaimer

Figures

Fig. 1
Fig. 1
Spike templates used in the simulated neural waveforms. No vertical scale bar is given because the template amplitudes were scaled based on the SNR of the simulated waveform. For each template, the dotted line shows the zero-point of the vertical axis.
Fig. 2
Fig. 2
Optimality index versus multiplier value for each of the noise measures. The firing rate was 20 Hz and the window size was 4096 samples. In each plot, each curve corresponds to a different SNR. The lower SNRs are on the bottom of the envelope; the higher SNRs are on the top of the envelope. The leftmost arrow in each plot points to the curve corresponding to an SNR of 1. The rightmost arrow in each plot points to the curve corresponding to an SNR of 15. The insets are zoomed-in views of areas of interest.
Fig. 3
Fig. 3
(a) The maximum optimality index value achieved at each SNR. A curve is plotted for each of the four different noise measures. All four curves lie almost directly on top of each other. (b) The optimality score as a function of multiplier value for each of the four noise measures. The optimality score is a weighted average of the optimality index across all SNRs. The RMS, P84, and PA68 curves all lie almost directly on top of each other. The plots in this figure are based on the data presented in figure 2.
Fig. 4
Fig. 4
Optimality index and optimality score for a two-unit waveform in which the first unit has an SNR of 8, each unit has a firing rate of 20 Hz, and the window size is 4096 samples. (a) Optimality index versus multiplier value for each of the noise measures. In each plot, each curve corresponds to a different SNR (1 through 8) for the second unit. The leftmost arrow in each plot points to the curve corresponding to an SNR of 1. The rightmost arrow in each plot points to the curve corresponding to an SNR of 8. (b) The maximum optimality index value achieved at each SNR of the second unit. (c) The optimality score as a function of multiplier value for each of the four noise measures. The SNR for the second unit was used when computing the optimality score.
Fig. 5
Fig. 5
Optimality index and optimality score for a two-unit waveform in which the first unit has an SNR of 12, each unit has a firing rate of 20 Hz, and the window size is 4096 samples. (a) Optimality index versus multiplier value for each of the noise measures. In each plot, each curve corresponds to a different SNR (1 through 12) for the second unit. The leftmost arrow in each plot points to the curve corresponding to an SNR of 1. The rightmost arrow in each plot points to the curve corresponding to an SNR of 12. (b) The maximum optimality index value achieved at each SNR of the second unit. (c) The optimality score as a function of multiplier value for each of the four noise measures. The SNR for the second unit was used when computing the optimality score.
Fig. 6
Fig. 6
Examples of real neural data along with the thresholds computed using various noise measures and multipliers. Histograms are presented showing the distribution of thresholds computed over all epochs using specific combinations of noise measures and multipliers. The multiplier is shown in parentheses next to the noise measure. The histograms show the locations of the computed negative thresholds. Zoomed-in views of the histograms are shown in the boxes below the histograms. (a) The waveform shows 2 s of neural data recorded from a rat. This waveform appears to have spikes from one discernible unit. (b) The waveform shows 2 s of neural data recorded from a rat. This waveform appears to have spikes from two discernible units of noticeably different amplitudes.

References

    1. Aksenova TI, Chibirova OK, Dryga OA, Tetko IV, Benabid AL, Villa AEP. An unsupervised automatic method for sorting neuronal spike waveforms in awake and freely moving animals. Methods. 2003;30(2):178–187. - PubMed
    1. Bankman IN, Johnson KO, Schneider W. Optimal detection, classification, and superposition resolution in neural waveform recordings. IEEE Trans Biomed Eng. 1993;40(8):836–841. - PubMed
    1. Bar-Hillel A, Spiro A, Stark E. Spike sorting: bayesian clustering of non-stationary data. J Neurosci Methods. 2006;157(2):303–316. - PubMed
    1. Benitez R, Nenadic Z. Robust unsupervised detection of action potentials with probabilistic models. IEEE Trans Biomed Eng. 2008;55(4):1344–1354. - PubMed
    1. Borghi T, Gusmeroli R, Spinelli AS, Baranauskas G. A simple method for efficient spike detection in multiunit recordings. J Neurosci Methods. 2007;163(1):176–180. - PubMed

Publication types

LinkOut - more resources