fooof icon indicating copy to clipboard operation
fooof copied to clipboard

Parameter settings do not work

Open psychi0 opened this issue 8 months ago • 2 comments

Hi ! This is my parameter setting, but the result does not meet my parameter restrictions. For example, the lower limit of the peak width is 1.2, but the actual width is smaller than this.

settings = struct(... 'peak_width_limits', py.list({1.2, 20}), ... 'max_n_peaks', 15, ... 'min_peak_height', 0.1, ... 'peak_threshold', 2, ... 'aperiodic_mode', 'fixed'... ); f_range = [1, 98];

Image

This is the result of one of my EEG channels. You can see there are a lot of strange data. How to solve this problem?

psychi0 avatar Jun 13 '25 11:06 psychi0

hi, I have my algorithm and it works fine now. I output the power spectrum of a channel after transplantation. Is it transplanted? I think it is appropriate.

open_sub01_ch01.pdf

psychi0 avatar Jun 25 '25 10:06 psychi0

I'm not sure what you mean by "transplanted". This looks like a normal EEG spectrum with a large alpha (8-12 Hz or so) peak. Though you're likely overfitting – normally we expect no more than a few oscillations within a channel. I'd recommend limiting the number of fitted peaks to 3-4. Also, if this is scalp EEG, I'd limit the upper frequency to no more than 45 Hz or so, because much of the power above that will be dominated by non-neural sources.

voytek avatar Jun 27 '25 16:06 voytek