FFT from raw data - Alpha problem
Posted: Thu Sep 12, 2024 12:39 pm
Dear James!
Thank you for the amazing app!
I'm trying to do my own FFT from the raw data because eventually I will need more detailed bands for a meditation study. (alpha1, alpha2, beta1, beta2 etc) First I tried to reproduce the precalculated bands from Muse to check my method and the closest I got is this:
The continous lines are my calculations, the dashed lines are the precalculated bands from the csv.
As you can see the shape of the lines mostly match but the values and the relative positions don't. Any idea what goes wrong?
The FFT method (calculate_band_powers_fft):
It uses a window size of 256 samples with a 90% overlap (step size of 22 samples).
It applies a Hanning window to each segment.
It calculates the FFT for each windowed segment.
It computes the power spectral density (PSD) from the FFT results.
The bands: ('Delta', (1, 4)),
('Theta', (4, 8)),
('Alpha', (7.5, 13)),
('Beta', (13, 30)),
('Gamma', (30, 44))
It takes the log10 of this sum to get the power in Bels.
I'd appreciate any help/hint/info you can give me!
Thank you for the amazing app!
I'm trying to do my own FFT from the raw data because eventually I will need more detailed bands for a meditation study. (alpha1, alpha2, beta1, beta2 etc) First I tried to reproduce the precalculated bands from Muse to check my method and the closest I got is this:
The continous lines are my calculations, the dashed lines are the precalculated bands from the csv.
As you can see the shape of the lines mostly match but the values and the relative positions don't. Any idea what goes wrong?
The FFT method (calculate_band_powers_fft):
It uses a window size of 256 samples with a 90% overlap (step size of 22 samples).
It applies a Hanning window to each segment.
It calculates the FFT for each windowed segment.
It computes the power spectral density (PSD) from the FFT results.
The bands: ('Delta', (1, 4)),
('Theta', (4, 8)),
('Alpha', (7.5, 13)),
('Beta', (13, 30)),
('Gamma', (30, 44))
It takes the log10 of this sum to get the power in Bels.
I'd appreciate any help/hint/info you can give me!