|
The spectrogram
If we consider the squared modulus of the STFT, we obtain a spectral
energy density of the locally windowed signal
 :
This defines the spectrogram, which is a
real-valued and non-negative distribution. Since the window  of the STFT
is assumed of unit energy, the spectrogram satisfies the global energy
distribution property:
Thus, we can interpret the spectrogram as a measure of the energy of the signal
contained in the time-frequency domain centered on the point  and
whose shape is independent of this localization.
- Properties
- Time and frequency covariance
A direct consequence of the definition of the spectrogram is that it
preserves time and frequency shifts:
Thus, the spectrogram is an element of the class of quadratic
time-frequency distributions that are covariant by translation in time and
in frequency. This class, developed in the next chapter, is called the
Cohen's class.
- Time-frequency resolution
The spectrogram being the squared magnitude of the STFT, it is obvious that
the time-frequency resolution of the spectrogram is limited exactly as it
is for the STFT. In particular, it exists again a trade-off between time
resolution and frequency resolution. This poor resolution property is the
main drawback of this representation.
- Interference structure
As it is a quadratic (or bilinear) representation, the spectrogram of the
sum of two signals is not the sum of the two spectrograms (quadratic
superposition principle):
where
is the
cross-spectrogram and denotes the real part. Thus, as every
quadratic distribution, the spectrogram presents interference terms, given
by
. However, one can show [Hla91] that these
interference terms are restricted to those regions of the time-frequency
plane where the auto-spectrograms
and
overlap. Thus, if the signal components and are
sufficiently distant so that their spectrograms do not overlap
significantly, then the interference term will nearly be identically zero.
This property, which is a practical advantage of the spectrogram, is in fact
a consequence of the spectrogram's poor resolution.
- Examples
To illustrate the resolution trade-off of the spectrogram and its
interference structure, we consider a two-component signal composed of two
parallel chirps, and we analyze it with the M-file tfrsp.m of the Time-Frequency Toolbox (the M-file
specgram.m of the Signal Processing Toolbox is equivalent,
except that tfrsp.m offers the possibility to change the
analysis window) (see fig. 3.15 and fig. 3.16).
>> sig=fmlin(128,0,0.4)+fmlin(128,0.1,0.5);
>> h1=window(23,'gauss');
>> figure(1); tfrsp(sig,1:128,128,h1);
>> h2=window(63,'gauss');
>> figure(2); tfrsp(sig,1:128,128,h2);
Figure 3.15:
Spectrogram of two parallel chirps, using a short
gaussian analysis window : cross-terms are present between the two FM
components
 |
Figure 3.16:
Spectrogram of two parallel chirps, using a long
gaussian analysis window : cross-terms are still present, due to the too
small distance in the time-frequency plan between the FM components
 |
In these two cases, the two FM components of the signal are not
sufficiently distant to have distinct spectrograms, whatever the window
length is. Consequently, interference terms are present, and disturb the
readability of the time-frequency representation. If we consider more
distant components (see fig. 3.17 and fig. 3.18),
>> sig=fmlin(128,0,0.3)+fmlin(128,0.2,0.5);
>> h1=window(23,'gauss');
>> figure(1); tfrsp(sig,1:128,128,h1);
>> h2=window(63,'gauss');
>> figure(2); tfrsp(sig,1:128,128,h2);
Figure 3.17:
Spectrogram of two more distant parallel chirps,
using a short gaussian analysis window
 |
Figure 3.18:
Spectrogram of two parallel chirps, using a long
gaussian analysis window
 |
the two auto-spectrograms do not overlap and no interference term
appear. We can also see the effect of a short window (h1) and a
long window (h2) on the time-frequency resolution. In the
present case, the long window h2 is preferable since as the
frequency progression is not very fast, the quasi-stationary assumption
will be correct over h2 (so time resolution is not as important
as frequency resolution in this case) and the frequency resolution will be
quite good ; whereas if the window is short (h1), the time
resolution will be good, which is not very useful, and the frequency
resolution will be poor.
Eric Chassande-Mottin
2005-10-26
|