Greetings BST Community,
I am interested in using the FOOOF algorithm as implemented in Brainstorm (with the Matlab option). I initially used the Brainstorm default values. After inspecting the results, it appears the algorithm with the default parameters may be under-fitting for my dataset. Accordingly, I was hoping to use the guidelines for this scenario as described in the FOOOF python page.
There, it states the following:
- First check and perhaps loosen any restrictions from 'max_n_peaks' and 'min_peak_height'
- Try updating 'peak_threshold' to a lower value
Within the Brainstorm implementation, 'max_n_peaks' and 'min_peak_height' are clearly there. However, I am having trouble figuring out which parameter in Brainstorm is equivalent to 'peak_threshold'.
On the python page, 'peak_threshold' is defined as:
The threshold, in terms of standard deviation of the aperiodic-removed power spectrum, above which a data point must pass to be considered a candidate peak. Once a candidate peak drops below this threshold, the peak search is halted (without including the most recent candidate).
I think I may be confusing the 'peak_threshold' and 'min_peak_height' parameters, and that one may be used (rather than both being options for different procedures). On the python page it also states:
peak_threshold (in units of standard deviation)** default: 2.0
The threshold, in terms of standard deviation of the aperiodic-removed power spectrum, above which a data point must pass to be considered a candidate peak. Once a candidate peak drops below this threshold, the peak search is halted (without including the most recent candidate).
min_peak_height (units of power - same as the input spectrum)** default: 0
The minimum height, above the aperiodic fit, that a peak must have to be extracted in the initial fit stage. Once a candidate peak drops below this threshold, the peak search is halted (without including the most recent candidate). Note that because this constraint is enforced during peak search, and prior to final peak fit, returned peaks are not guaranteed to surpass this value in height.
There are two different height-related halting conditions for the peak searching. By default, the relative (standard-deviation based) threshold is defined, whereas the absolute threshold is set to zero (this default is because there is no general way to set this value without knowing the scale of the data). If both are defined, both are used and the peak search will halt when a candidate peak fails to pass either the absolute, or relative threshold.
My question is: based on the last paragraph above, in Brainstorm, is 'peak_threshold' simply not included due to assuming the input to FOOOF will be a PSD with known units (meaning 'min_peak_height' could be used)?
Thank you,
Paul