csn-le / wave_clus

A fast and unsupervised algorithm for spike detection and sorting using wavelets and super-paramagnetic clustering
127 stars 66 forks source link

Detection Parameters #140

Closed aswinchari closed 4 years ago

aswinchari commented 5 years ago

Hi,

I'm trying to use Waveclus via the Brainstorm interface for human microelectrode recordings and had a few questions:

Thanks, Aswin

ferchaure commented 5 years ago

Detection thresholds: What are the usual thresholds for spike detection? The default is 5SD but is that realistic with human data? Do you have an idea of what thresholds people usually use?

Usually a value of 3.5 to 4.5 is used in humans, but it could change a lot... as the quality of the record.

Detection parameters: Should they be negative or is it ok to select both?

The best practice is use 'both' first, check the results and then use 'neg' or 'pos'. The alignment of the spikes is quite better if you use pos or neg. If you have both types of polarity, sometimes the best is to make two sorting, with each polarity.

In your experience with human data, what portion of channels actually detect spikes?

That could change a lot with the region of the brain and the quality and the hand of the surgeon. Probably you have to look for bibliography close enough to your recordings to check

aswinchari commented 5 years ago

Awesome. Thank you Fernando.

This is one of my channels and, changing the thresholds to 4SD and 'both', it has given me this. I am recording at 16kHz - do you think these looks like APs? I am not convinced, both by their shape and the ISI histograms. Would you have an example of what one is meant to look like?

Thanks, Aswin

Screenshot 2019-08-16 at 14 22 57
ferchaure commented 5 years ago

Hi Aswin, They don't look like AP, just noise filtered and aligned. Please notice that 16kHz is quite low for a decent spike sorting. Probably you will have to change the parameters w_pre and w_post to 12 and 20. Otherwise you are taking a lot of non AP waveform to the signal segment to sort.