Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frequency resolution and amplitude in FFT 2

Status
Not open for further replies.

GMarsh

Mechanical
Sep 30, 2011
123
Hi,

I am looking at improving the frequency resolution in FFT through zero padding. Attached is an excel sheet showing an attempt to study the frequency resolution with padding of zeros to data. Any comments ?

Another basic (and obviously could be silly and stupid) question: What does the amplitude of FFT spectrum indicate ? I asked many people, read many books, etc. but this doubt remained. All books just escape saying it is amplitude, they won't give units. For example if I have acceleration (m/sec2) vs time (sec) data and I take FFT, the units of amplitude is (m/sec2). Right ? For example, a time domain acceleration shows maximum acceleration of the order of 50 m/s2. FFT shows amplitude of the order of 1. I am puzzled with this. What is the physical meaning of this? I tried summing up magnitude of all the frequencies which obviously goes beyond 50 m/s2. So what is relation of time domain amplitude to FFT amplitude ?

Attaching a picture of this data and its FFT in another worksheet of attached excel workbook.

Many thanks
Geoff
 
Replies continue below

Recommended for you

For what it's worth, CSI (now Emerson-CSI) analyzer and software products use (or did use) spectrum interpolation to improve frequency and amplitude resolution. It works well most of the time, easy to use, and it is fast. Certainly a "no-brainer"!
Walt
 
stamford:


" Sometimes people will say that zero-padding in the time domain yields higher spectral resolution in the frequency domain. However, signal processing practitioners should not say that, because ``resolution'' in signal processing refers to the ability to ``resolve'' closely spaced features in a spectrum analysis (see Book IV [70] for details). The usual way to increase spectral resolution is to take a longer DFT without zero padding--i.e., look at more data. In the field of graphics, the term resolution refers to pixel density, so the common terminology confusion is reasonable. However, remember that in signal processing, zero-padding in one domain corresponds to a higher interpolation-density in the other domain--not a higher resolution. "


Maybe not saying it is dangerous, but certainly not giving me a warm fuzzy feeling.




Cheers

Greg Locock


New here? Try reading these, they might help FAQ731-376
 
Thanks Greg. I was reading the wrong Stanford link (the first one that popped up).

He is saying that zero padding doesn’t improve the ability to separate frequencies, which
I agree as discussed above. For him, the ability to separate frequencies is the definition of frequency resolution, different than the way I used the term (also discussed above). For me, it brings nothing new that I didn’t already address above. Of course I was a little verbose I guess. I’ll attempt to atone by making this a short post and signing off now.


=====================================
(2B)+(2B)' ?
 
Electricpete, Greg, etc. - I am happy that this thread spurred such a nice and informative discussion. Learned many new things. Thanks to you all.

Kind regards
Geoff
 
My previous comment was indeed worthless. Interpolation improves amplitude and frequency accuracy for a single sine wave frequency that does not fall in the center of an FFT bin/filter. If the bin/filter was wide enough to include two or more descrete frequencies, then the value of interpolation is perhaps of less value. Here is a practical discussion of zero padding that concludes it does not offer increased frequency resolution:
Walt
 
One thing that zero padding might improve is SNR, since the noise energy is hypothetically spread amongst more frequency bins. To that end, there could be a slight improvement in "resolution," because the SNR improvement might make two closely spaced peaks slightly more distinguishable.

TTFN
faq731-376
7ofakss
 
Good discussion.

There is one huge obstacle in this discussion: TERMINOLOGY.
Specifically, the word frequency “RESOLUTION”

Let’s go over that obstacle once and for all. People use that term differently. I used that term “resolution” wrong compared to how must in the vibration world would use it (my usage comes from the instrumetnation world.. where resolution is how finely can you read a result). In my defense, although I used the wrong term, I did explain exactly what I meant.

Many of the authors use that term to mean the ability to separate frequencies. The basis for all the statements about zero padding not improving resolution is that it does not improve the ability to separate frequencies (same for any of the techniques). I agree! (*) I have said so from the beginning.

* IRstuff makes a good point, zero padding probably does give some help for the task of closely spaced frequencies based on signal to noise considerations (excluding those spaced less than a bin width apart which can never be separated by any means). And while it’s a good point he brought up, it’s not the point I’ve been trying to make and not what I’m going to discuss here. I’m going to try to explain better what I’ve been saying all along.

The benefit I’m referring to is NOT separating closely spaced frequencies. It is getting the best possible estimate of a given frequency from the given data for all frequencies which can be improved. This excludes frequency estimates that are impossible to improve from original data (frequencies separated by less than one bin width). For the sake of argument I’ll also exclude frequencies that are close but more than a bin width because those are a grey area leading inevitably to more discussion and not necessary to make my point. I am talking about frequencies that are spaced far apart. It is STILL important to me to estimate the frequency those far-apart frequencies as best we can. Why? This was illustrated by the example 11 Jul 12 21:41 culminating in the numbers 1.000, 2.001, 3.007, 4.002, which is very typical of real-life experience that tells us it’s important to have the best available estimate available for ALL frequencies in the spectrum. To review, all numbers in this example expressed as multiples of running speed. We had running speed harmonics plus a bpfo frequency occuring at 3.014. I am assuming the 3.014 closely spaced to 3.000 cannot be reliably separated into two peaks. If we had analyzed this spectrum with original FFT bin centers (NOT using the 3 tools), then expressed all the peaks as multiple of the estimated running speed peak, we might get a series of peak something like 1.000, 2.005, 3.008, 4.010 (just an example, assumes the first peak gets estimated low so the others are high multiples) . The outlier in that pattern is not really obvious. When we apply our techniques, we improve the estimates 1, 2,4 and end up with a pattern more like 1.000, 2.001, 3.007, 4.002. Now the outlier in the pattern stands out much more prominently and we can more easily recognize the 3.007 as a deviation from the pattern which deserves further investigation. (there are likely other clues higher in the frequency spectrum to look for.). This is not a contrived example, rather this is illustrative of the technique I use almost every time I analyze a spectrum. ...I use the software peak label feature and also use the software order label feature such that each (interpolated) peak frequency is shown as a multiple of the fundamental (interpolated). I look at how close the harmonics are to exact integers and use this as a basis to identify peaks that may not fall in the pattern. And by the way even though we call it order label the same feature can be used with fundamental frequencies other than running speed.

Now that we have established that there is value to precisely identifying the frequency of peaks other than those closely spaced, let me get to my point.

There is leakage created by the windowing process. None of the three techniques I’ve mentioned does anything to reduce that (because they do not change the length of the time window hence do not change the width of the frequency sinc that gets convolved with the true spectrum). When we combine this spreading with noise that can be present, we can describe the resulting uncertainty simplistically as an uncertainty band.

Here’s what the three techniques can’t do:
They CAN’T reduce the width of that uncertainty band

Here’s what the three techniques can do:
They CAN tell us where the center of that uncertainty band should be
(And typically center of uncertainty band is also our most accurate estimate).
In the case of DTFT and zero-padding these tools can provide virtually unlimited ability to locate where the center of the uncertainty band should be.
In the case of zero padding, more zeros gets us closer to that ideal. In the case of frequency interpolation, our estimate of the peak is moved toward the same ideal point that would be predicted by the other two techniques.
This last paragraph applies where peaks are not closely spaced. Closely spaced peaks deserve separate discussion. The usefulenss is in getting best possible estimate of these peaks from available time record when more data is not available.


=====================================
(2B)+(2B)' ?
 
electricpete said:
(just an example, assumes the first peak gets estimated low so the others are high multiples)
I regret that parenthetical statement because it implies that only the error in estimating the fundamental frequency is relevant. We have errors in estimating all of the frequencies. The fundamental frequency is most important since it is divisor when we calculate all ratios, but it's not the only one...each harmonic frequency has it’s own error as well. The point of the example is simply this: By reducing all these errors where practical, we have ratios that come out closer to exact integers and therefore smaller deviations become more obvious as outliers to the pattern.


=====================================
(2B)+(2B)' ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor