Fourier Transform vs Short Time Fourier Transform...

  • #1
fog37
1,568
108
TL;DR Summary
Fourier Transform vs Short Time Fourier Transform: why no always use the STFT?
Hello,

I understand how the FT and the STFT work. The STFT provides time-frequency localization, i.e. it can tell us when the spectral components are acting in the time-domain signal...The STFT is also useful for non-stationary signals which are signals whose statistical characteristics are changing in time...

That said, why don't we always use the STFT given its extra benefits?

I guess that if a deterministic signal is stationary, it means that it looks "the same" over different intervals and the STFT will output identical results for each different window...

Thanks!
 
Engineering news on Phys.org
  • #2
To put it simply edge effects at the limit of each section of time makes the output inaccurate there. I think that is called the uncertainty principle.
 
  • Like
Likes fog37
  • #3
osilmag said:
To put it simply edge effects at the limit of each section of time makes the output inaccurate there. I think that is called the uncertainty principle.
Yes, the bigger is the window the lesser the edge effects. But regardless of these effects, the STFT at least gives time localization while in the case of the FT the spectral components are global and spread across the entire duration of the signal in the time domain....
 
  • #4
Ya pays your money and you makes your choices. If you want an exact answer you need to use a complete set of functions. The full space FT is, in principle, exact.
 
  • Like
Likes osilmag
  • #5
It only takes a few hundred pixels to display a dynamic spectrogram. Frequency resolution is the reciprocal of the data block acquisition time. STFT is a compromise that provides both a time and a frequency distribution, in one dynamic display, with only the pixel resolution and computation required.

Maybe only 90% of the FFT processing time is needed for the STFT, but:
Frequency resolution is reduced in the STFT.
Phase information is ignored by the STFT.
Signal-to-noise ratio is greatly reduced in the STFT.

The STFT can be extended in time by power spectrum accumulation, PSA, to recover a broad signal channel, with discontinuous phase, from the noise.
 
  • Informative
  • Like
Likes DeBangis21 and hutchphd
  • #6
There are numerous trade-offs for one over the other. Edge effects are obviously one that was already cited, but also frequency resolution. By limiting the size of your window, you are sacrificing frequency resolution, which can be important at the lower end of your spectrum.

Another thing to consider is that, when calculating something like a power spectrum, it's not typical to use FFT on the whole signal anyway. Instead you segment it (much like the STFT) and apply a window function to reduce edge effects, then average all of the windowed segments together to reduce the variance of the estimate (Welch's method). You can't do that with a STFT.

In short, it's context-specific. You have to consider the trade-offs of each method against the needs of the analyst.
 
  • Informative
  • Like
Likes DeBangis21 and berkeman

What is the difference between the Fourier Transform and the Short Time Fourier Transform?

The Fourier Transform (FT) converts a signal from the time domain into the frequency domain, providing information about the frequency content of the entire signal. In contrast, the Short Time Fourier Transform (STFT) breaks the signal into shorter segments of time and applies the Fourier Transform to each segment, thus providing frequency information over time. This makes STFT useful for analyzing non-stationary signals where frequency components vary over time.

Why would one use the STFT instead of the traditional Fourier Transform?

The STFT is particularly useful for signals whose frequency content changes over time, such as audio signals. While the Fourier Transform gives a good frequency analysis for the entire duration, it cannot pinpoint when specific frequencies occur. STFT, on the other hand, provides both time and frequency information, making it ideal for time-varying signals.

What are the limitations of the Fourier Transform that are addressed by the STFT?

The main limitation of the Fourier Transform is its inability to provide localized time-frequency information for non-stationary signals. The STFT addresses this by using a sliding window to analyze the signal in short segments, allowing it to capture variations in the signal’s frequency content over time. However, the resolution of the STFT depends on the size of the window, leading to a trade-off between time and frequency resolution.

How does the window size affect the results of the STFT?

The window size in STFT plays a crucial role in determining the time-frequency resolution of the analysis. A larger window provides better frequency resolution but poorer time resolution, and vice versa. This is because a larger window includes more cycles of a wave, leading to a more precise frequency estimate, but it also averages over a longer time period, blurring any rapid changes in the signal.

Can the Fourier Transform be used for real-time signal analysis?

While the Fourier Transform itself is not typically used for real-time analysis due to its global nature, the STFT can be adapted for real-time applications. By processing segments of the signal as they are acquired and adjusting the window size and overlap appropriately, STFT can be effectively used for real-time analysis, providing updates on the frequency content as new data becomes available.

Similar threads

  • Classical Physics
2
Replies
47
Views
2K
  • Linear and Abstract Algebra
Replies
3
Views
928
  • Electrical Engineering
Replies
3
Views
1K
  • Atomic and Condensed Matter
Replies
1
Views
893
  • Electrical Engineering
Replies
2
Views
1K
  • Linear and Abstract Algebra
2
Replies
43
Views
5K
  • Calculus and Beyond Homework Help
Replies
1
Views
788
  • General Math
Replies
4
Views
4K
  • Set Theory, Logic, Probability, Statistics
Replies
8
Views
487
  • Engineering and Comp Sci Homework Help
Replies
2
Views
1K
Back
Top