RezaSaadatyar / Spike-Sorting-Techniques

This repository includes useful MATLAB codes for ENG analysis.
1 stars 0 forks source link
kmeans-clustering spike-detection spike-sorting wavelet-analysis

Analysis of Neural Data

This repository includes useful MATLAB codes for ENG analysis.

There are three main stages in the algorithm: (1) spike detection, (2) spike feature selection (Wavelet), and (3) clustering of the selected spike features (K-means).

In the first step, spikes are detected with an automatic amplitude threshold on the band-pass filtered data. In the second step, a small set of wavelet coefficients from each spike is chosen as input for the clustering algorithm. Finally, the K-means classifies the spikes according to the selected set of wavelet coefficients.

Threshold:
Detect spike times:

Please Run Code Main.m, the Software will run automatically and there is no need to run test code

Reza.Saadatyar@outlook.com

Fig 1

Fig 2

Fig 3

Fig 4

LFP and Spike Spike-field coherance