Welch's method for smooth spectral decomposition

Поділитися
Вставка
  • Опубліковано 25 лип 2024
  • This video lesson is part of a complete course on neuroscience time series analyses.
    The full course includes
    - over 47 hours of video instruction
    - lots and lots of MATLAB exercises and problem sets
    - access to a dedicated Q&A forum.
    You can find out more here:
    www.udemy.com/course/solved-c...
    For more online courses about programming, data analysis, linear algebra, and statistics, see
    sincxpress.com/
  • Наука та технологія

КОМЕНТАРІ • 54

  • @estebanlopez4179
    @estebanlopez4179 3 роки тому +8

    FANTASTIC video. I have been struggling with understanding the concept of Welch's method through textbooks and papers, but this conceptual introduction without any math makes all of it make sense now. Thank you!

  • @tkguha6918
    @tkguha6918 2 роки тому

    Very clearly described, good presentation also.

  • @chansonjoy
    @chansonjoy 4 роки тому +7

    Have finished watching "New ANT2". I finally understood DFT after graduated from school many many years. This serial of videos are the best in youtub to explain fundamental DSP for people like me without tones of mathematics background (CE major here). I can tell the author put a lots of though on how to explain clearly without involving intimidating math. Many engineers (including me) hardly need to deal with continuous analog signals. DFT is only thing we need and we don't care about all the calculus in the FT. Saddly most DSP tutorial videos out there are heavily calculus mangling which shut my brain off instantly. Such good serial videos I don't understand why so few views. thanks Mike.

    • @mikexcohen1
      @mikexcohen1  4 роки тому +3

      Thank you, Chanson. That's kind of you to write! And it warms my heart on this chilly, wet Amsterdam afternoon...

    • @chansonjoy
      @chansonjoy 4 роки тому

      @@mikexcohen1 really? I stayed 3 weeks there last year working in my previous company office. drank a lots of beer too. haha. cheers.

  • @mo_lan7810
    @mo_lan7810 Рік тому

    love the way you simplified the whole thing, i just wish you did matlab coding as well

  • @ingenierocivilizado728
    @ingenierocivilizado728 Рік тому

    Very good explanation. Thanks!!

  • @nahalesotoudeh9431
    @nahalesotoudeh9431 3 роки тому

    this was really nice and clear! thanks!

  • @alfredoalarconyanez4896
    @alfredoalarconyanez4896 2 роки тому

    Love your videos, thank you very much !

  • @phungchappi9193
    @phungchappi9193 2 роки тому

    this is really amazing!

  • @refriggg
    @refriggg 4 роки тому +2

    Thank you very much for this course!

  • @Biomechan
    @Biomechan 3 роки тому

    You are a hero! Finally a to the point informative vid without the electrical engineering madness!

    • @mikexcohen1
      @mikexcohen1  3 роки тому

      It's true: EE is pure madness!

  • @harishsubramaniangopal6463
    @harishsubramaniangopal6463 Рік тому

    Superb ! Thanks a lot !

  • @JsoProductionChannel
    @JsoProductionChannel 3 роки тому

    Thank you!

  • @shaflyhamzah3848
    @shaflyhamzah3848 2 роки тому +1

    Thank you, very clear explantion!

  • @shehanijayalath9828
    @shehanijayalath9828 Рік тому

    great video! thanks

  • @jacobstech1777
    @jacobstech1777 3 роки тому

    really helpful

  • @noahdrisort2005
    @noahdrisort2005 2 роки тому

    best presentation about hann window and stfft I have ever reached

  • @sirabhop.s
    @sirabhop.s 4 роки тому

    Thank you

  • @jamesb1067
    @jamesb1067 3 роки тому

    Thank you for the series of videos. Could you elaborate what kinds of non-stationarities the Welch method is robust to? or provide some reference to it? Thanks!

    • @mikexcohen1
      @mikexcohen1  3 роки тому

      Sharp edges and sudden phase transitions are two examples of non-stationarities that have a bigger impact on the FFT than on Welch's method.

  • @AngeloYeo
    @AngeloYeo 3 роки тому +1

    Wow ... such a great lecture! Thank you for sharing with us ... I have a question. If Welch's method is fundamentally applying FFT with short time window and averaging over time, then would I get the same result when I apply STFT and average it over the time dimension?

    • @mikexcohen1
      @mikexcohen1  3 роки тому +1

      Yes, exactly correct: The STFFT averaged over all time points is essentially the same thing as Welch's method.

    • @AngeloYeo
      @AngeloYeo 3 роки тому +1

      @@mikexcohen1 OMG it feels so great that you replied me back ... ! I had studied neural engineering and had a lot of help from your book ... ! Thank you for your reply ! That's so kind :)

  • @terezamikesova1024
    @terezamikesova1024 3 роки тому

    Thank you for your videos. My task is to distinguish
    between EEG in relax condition and EEG in mental arithmetic task. For each condition I have separate signals. Do you think that Welch's method is suitable for my problem, when the features would be band power, relative band power and so on?

    • @Afr0deeziac
      @Afr0deeziac 2 роки тому

      look into short time fourier transform, its very similar

  • @shahnillarizvi7276
    @shahnillarizvi7276 4 роки тому

    worth watching!!
    As u mentioned that welch's method reduced spectral precision so can we use to plot spectral density ?? or fft is better?
    I have a time series and want to find the period of that.

    • @mikexcohen1
      @mikexcohen1  4 роки тому +1

      Well, you always use the FFT algorithm; it's a matter of whether you apply one FFT to the entire signal, or lots of FFTs on smaller segments of the signal and then average the spectra together.

    • @shahnillarizvi7276
      @shahnillarizvi7276 4 роки тому

      @@mikexcohen1 thanks a lot

  • @Brono25
    @Brono25 2 роки тому +1

    Will this method ignore frequencies that are too long for the smaller window?

    • @mikexcohen1
      @mikexcohen1  2 роки тому +2

      Great observation! Indeed, that's true, and the limited spectral precision is part of the trade-off. You can select the time window based on the lower frequencies that you want to include.

  • @JsoProductionChannel
    @JsoProductionChannel 3 роки тому

    5:56 This is done by multiplying the signal segment with the hamming window?

    • @mikexcohen1
      @mikexcohen1  3 роки тому

      In the video I showed a Hann window, but Hann and Hamming windows are very similar.

  • @jasonyong6021
    @jasonyong6021 3 роки тому +1

    I am currently enrolled to this course, but I cannot seem to find this video. Where would I be able to find this?

  • @DexM47
    @DexM47 2 роки тому

    Thanks! A question though: at 7:15, the tapering reduces the average amplitude of the signal, so I'm assuming it also reduces the amplitude of the corresponding Fourier coefficients, right? Is that compensated for in Welch's method? Are the coefficients scaled back to match what we would have without tapering?

    • @mikexcohen1
      @mikexcohen1  Рік тому

      Yes, great observation. The attenuation of signal is one of the motivations for having successive windows overlap. For example, the edges that are attenuated by the taper in segment N can have minimal attenuation in segment N+1.

    • @DexM47
      @DexM47 Рік тому

      @@mikexcohen1 Uhm, ok, I see, thanks. I would have thought it would be something quite easy to compensate for, though. By dividing by the average weight of the window or something. (Assuming the weight to be a value between 0 and 1 if the window's peak amplitude is 1).

    • @mikexcohen1
      @mikexcohen1  Рік тому

      Yes, of course it's possible to compensate for the decrement in energy if you know the overlap and the window function. But honestly, in these kinds of applications, relative energy is usually more important than absolute energy.

    • @DexM47
      @DexM47 Рік тому

      @@mikexcohen1 Indeed. I see. Thanks again!

  • @shahnillarizvi7276
    @shahnillarizvi7276 4 роки тому

    one more thing is that if the length of the segment is equal to total samples in pwelch then pwelch will become fft??

    • @mikexcohen1
      @mikexcohen1  4 роки тому +2

      Yup, also assuming you wouldn't window the entire data series.

  • @007aha1
    @007aha1 Рік тому +1

    hi how are you?
    good video thx good explained

  • @PfropfNo1
    @PfropfNo1 3 роки тому

    If the snippets are 200ms, can I discover frequencies with a period of more than 200ms in the welch's method? Because as i understood, all low frequencies are tampered out. Is this what is meant with "reduces spectral precision"?

    • @mikexcohen1
      @mikexcohen1  3 роки тому +1

      Nope, you'd need longer windows to detect lower frequencies.

  • @ananthakrishnank3208
    @ananthakrishnank3208 6 місяців тому +1

    I find this paradoxical. 2:24 We apply Fourier transform to figure out the frequencies.
    Don't we use the fact that any periodic signal can be decomposed into its set of frequencies that make it, for Fourier transform?
    So if frequencies f1,f2,f3 etc, are found to be present in the full FFT method, doesn't that mean that sin(2*pi*f1*t), sin(2pi*f2*t), etc are present every time? What am I missing?
    This means that all the frequency components with their own amplitude were present at all instances of time, which is obviously wrong.

    • @mikexcohen1
      @mikexcohen1  6 місяців тому +1

      Each Fourier coefficient is like an average of the energy from the entire time window. If the signal is non-stationary, then the Fourier coefficient could take on the same value if there is low energy at f1 all across time, or a big burst of energy at f1 for only a brief period of time. That doesn't mean the Fourier transform is wrong (it's never wrong), but it will be harder to interpret for non-stationary signals.

    • @ananthakrishnank3208
      @ananthakrishnank3208 6 місяців тому

      ​@@mikexcohen1 Thanks for the response. I understand the workings of Fourier Transform (3b1b).
      The FT tells you all the frequencies present in the complex but periodic input signal. So, by definition, when you apply FT to a certain window, the figured-out frequencies are to be interpreted as being present every time within that window.
      In the case of full FFT method, the window size is the entire length of the input signal. I find it fundamentally wrong to apply FT if something is not periodic so as to interpret that all frequencies were present all the time. I missed that we had "constructed" a periodic one by concatenating itself infinite times.
      I forgot it's true only for the artificially constructed version, but not for the aperiodic input signal.
      Thanks! The video really helps.

  • @alfredoalarconyanez4896
    @alfredoalarconyanez4896 2 роки тому

    Love your videos, thank you very much !