You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran a comparison on an open dataset (the FRESH audio dataset) and took some averages for each subject.
See attached folder for processing steps. mne_nirs_sci_power.zip
The QT-NIRS values look closer to ranges discussed in the PHOEBE paper.
Not sure if I'm getting some processing step wrong, or this is expected, but the scaling looks different at least.
Additional information
>>> mne.sys_info()
Platform: Windows-10-10.0.19045-SP0
Python: 3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)]
Executable: C:\Program Files (x86)\Python\python.exe
CPU: Intel64 Family 6 Model 140 Stepping 1, GenuineIntel: 8 cores
Memory: 15.7 GB
mne: 1.3.0
numpy: 1.21.2 {OpenBLAS 0.3.17 with 8 threads}
scipy: 1.9.1
matplotlib: 3.4.3 {backend=Qt5Agg}
sklearn: 1.0.2
numba: Not found
nibabel: 4.0.1
nilearn: 0.9.1
dipy: Not found
openmeeg: Not found
cupy: Not found
pandas: 2.0.0
pyvista: Not found
pyvistaqt: Not found
ipyvtklink: Not found
vtk: Not found
qtpy: 2.2.0 {PyQt5=5.15.2}
ipympl: Not found
pyqtgraph: Not found
pooch: v1.6.0
mne_bids: 0.11.1
mne_nirs: 0.6.dev0
mne_features: Not found
mne_qt_browser: Not found
mne_connectivity: Not found
mne_icalabel: Not found
The text was updated successfully, but these errors were encountered:
Issue
Hello,
I wanted to use MNE-NIRS to calculate peak spectral power as in the PHOEBE paper, or the QT-NIRS / NIRSplot paper by Hernandez and Pollonini.
However I noticed I was getting some different values in QT-NIRS (https://github.com/lpollonini/qt-nirs) and mne_nirs.preprocessing.peak_power (https://mne.tools/mne-nirs/stable/generated/mne_nirs.preprocessing.peak_power.html).
Basically, the QT-NIRS values were lower than the MNE-NIRS values (for the same cut-offs and window).
I assume one or the other is more correct!
Steps to reproduce
Comparing the used periodogram functions
https://github.com/lpollonini/qt-nirs/blob/master/qtnirs.m#L1029
and
https://github.com/mne-tools/mne-nirs/blob/main/mne_nirs/preprocessing/_peak_power.py#L104
it looks like the default in scipy.signal is to use PSD scaling, while the MATLAB implementation of qt-nirs is specifying "power" scaling.
I ran a comparison on an open dataset (the FRESH audio dataset) and took some averages for each subject.
See attached folder for processing steps.
mne_nirs_sci_power.zip
Result diff
Averages for QT-NIRS implementation
Averages for MNE-NIRS implementation
The QT-NIRS values look closer to ranges discussed in the PHOEBE paper.
Not sure if I'm getting some processing step wrong, or this is expected, but the scaling looks different at least.
Additional information
The text was updated successfully, but these errors were encountered: