neuropsychology / NeuroKit.py

A Python Toolbox for Statistics and Neurophysiological Signal Processing (EEG, EDA, ECG, EMG...).
http://neurokit.rtfd.io
MIT License
365 stars 102 forks source link

Question about SCR detection #74

Closed zqkhan closed 5 years ago

zqkhan commented 6 years ago

I'm using your Neurokit toolbox for SCR detection. Would it be possible to have the pseudocode or a detailed description of the 'makowski' method that you use for SCR detection in nk.eda_scr? and which method is used when method='fast', as in Gamboa, Kim or Makowski?

DominiqueMakowski commented 6 years ago

"kim" and "gamboa" are provided through the biosppy package with the biosppy.eda.kbk_scr and biosppy.eda.basic_scr functions, respectively.

Makowski is the neurokit's alrogithm (see the code) with additional artifact detection and rejection. However, it's an unpublished code per se.

"fast" uses biosppy.tools.find_extrema() function while "slow" uses derivatives.

While the default method worked in my case, do not hesitate to compare the different methods on a signal sample (and let us know about your observations and thougths ;)