Coder Social home page Coder Social logo

Comments (6)

fastlib avatar fastlib commented on August 15, 2024

It is not possible to answer your question without more information. Can you specify model architecture, STFT and fCWT parameters, datasets, frequency range, performances, statistical significance of these tests, etc.

from fcwt.

whip123 avatar whip123 commented on August 15, 2024

The EEG signal that I used is the Alpha band(8-12Hz) of the difference between 2 eeg signals with a sampling frequency of 200Hz (SEED dataset). To have a fair comparison between fCWT and STFT, I have tried to generate the spectrogram with different window lengths (Hanning window) that range from 5 to 13 seconds with 50% overlapping. Coming to fCWT, I have also tried to generate scalograms with different sigma values ( 10, 15, 20 ,25, 30) (Morlet Wavelet) and set the number of frequencies to 480, frequency limits = 0.25 to 20. All the generated scalograms and spectrograms will then be fed into the pre-trained CNN model for training and determining which data set has the highest accuracy. Consequently, I found that spectogram with 11 seconds window length and scalogram with a sigma value of 20 has the highest accuracy. But the model trained with spectrogram has higher accuracy than the model trained with Scalogram

from fcwt.

fastlib avatar fastlib commented on August 15, 2024

Thank you for the information.

Can you post time-frequency plots of both techniques on a small segment of EEG data?

Additionally, what are the performances and what is their statistical significance? Did you do multiple runs of both models or is this based on one run?

from fcwt.

whip123 avatar whip123 commented on August 15, 2024

Sure, the following are the plots of both techniques

STFT (window length = 11 seconds) (Accuracy = 75%)
image
fCWT (sigma = 20) (Accuracy = 70%)
image

As the available data is very limited. Hence, all these results are based on one run and the accuracy difference between these 2 techniques is around 5%.

from fcwt.

fastlib avatar fastlib commented on August 15, 2024

Alright, we do see more detail in the fCWT analysis, which is what you would expect. My best guess, is that the difference in classification is because your CNN model overfits on the extra amount of detail the fCWT provides. That in combination with your statement of the limited data, I would advice against using a CNN on raw time-frequency spectra. Use the time-frequency spectrum as input for further feature extraction to reduce dimensionality in the search space. Does that makes sense?

from fcwt.

whip123 avatar whip123 commented on August 15, 2024

Yeah, it makes sense to me. Apart from using the Alpha band eeg, I also have tried using EEG signals with all frequency bands on the same experiment, and the difference between fCWT and STFT is a lot bigger as shown below.

STFT (window length = 0.07 seconds) (Accuracy = 56.7%)
image
fCWT(Sigma = 2 ) (Accuracy =61.7%)
image

Could this suggest that, for this method, the STFT is able to extract the frequency effectively due to the narrow band frequency? However, for wideband frequency, the fCWT is more suitable. Although the resolution of fCWT is higher than the STFT. But the resolution difference between the 2 is not as big as compared to the one with all frequency bands eeg.

from fcwt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.