neuropsychology / NeuroKit.py

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

Window size for EDA and HRV #46

Open Eichhof opened 6 years ago

Eichhof commented 6 years ago

Hi there,

I'm using EDA and HRV features. I'm extracting these features for each stimulus by positioning a window at the start of the stimulus (I think including data before the stimulus does not make sense).

What window size is recommended for EDA and HRV? I've heard that for EDA the response should appear within 5 seconds.

DominiqueMakowski commented 6 years ago

For EDA, in affective neuroscience, a window between 1 and 7 s or 1 and 5 should be ok to catch the response.

For HRV, there is no unique rule as there are like dozens of HRV indices. Again, a good start is to reproduce what was done in similar papers.

Eichhof commented 6 years ago

I have taken the usual features according to literature. HRV featues work much better than EDA featues (perhaps due to the sensor, I don't know). I also has to throw out a lot of the featues due to high correlation (especially for HRV).

Currently, I'm using a 10s window. When I shrink the window to 5s, accuracy drops to random level. But I still have to evaluate it separately for HRV and EDA.

Regarding the frequency domain of HRV, I'm always getting 0 for the low and very low frequency (only high frequency exists). Perhaps this is dur to the small window size of 10 sevonds.

DominiqueMakowski commented 6 years ago

yes, you can't estimate low or very low frequency domain HRV on 10 seconds. Well, try out a few things and find out what works better ;)