ADSP Assignment
ADSP Assignment
To obtain the frequency spectrum of the signal we perform Fourier analysis of the signal which
is done to obtain the magnitude of the frequency components in the signal. This can be
pictorially shown as in Fig. 1.
1 𝑇
𝑐𝑘 = 𝑇 ∫0 𝑝 𝑥(𝑡)𝑒 −𝑗2𝜋𝐹0 𝑡 𝑑𝑡 (1)
𝑝
• By using Fourier we loose the time information about a signal as to when did a particular
event take place.
• It cannot locate drift, sudden changes, beginning and end of events etc.
1, 𝑘 = 𝑡
𝜓𝑘 = 𝛿𝑘 (𝑡) = { (2)
0, 𝑘 ≠ 𝑡
This function can show the time information of the signal but it cannot show the frequency
information of the signal.
Let's take a closer look at this stationarity concept more closely, since it is of paramount
importance in signal analysis. Signals whose frequency content do not change in time are called
stationary signals. In other words, the frequency content of stationary signals do not change in
time. In this case, one does not need to know at what times frequency components exist , since
all frequency components exist at all times.
Fig.3 Stationary Signal and its Fourier Transform
Note that the Fourier transform tells whether a certain frequency component exists or not. This
information is independent of where in time this component appears. It is therefore very
important to know whether a signal is stationary or not, prior to processing it with the FT.
that is , it has four frequency components of 5, 10, 20, and 50 Hz., all occurring at all times. Its
FT is also Shown in the figure.
Fig. 3 Non-stationary signal and its Fourier Transform.
Now, look at Fig. 4: Here the signal is again the cosine signal, and it has the same four
frequencies. However, these components occur at different times. The FT of the signal is also
shown in the subsequent figure.
We see in the above figure, it is (almost) same with the previous FT figure. There are major four
peaks corresponding to 5, 10, 20, and 50 Hz, and all the peaks occur at different times, But this
time information is lost.
STFT is compromise between time frequency representation of the signal, here both time and
frequency are represented in limited precision. The precision is represented by the size of the
window, a particular size of the window is same for all the frequency.
• This approach makes sense especially when the signal at hand has high frequency
components for short durations and low frequency components for long durations.
• The signals that are encountered in practical applications are often of this type.
Wavelet Analysis
A wavelet is a waveform of effectively limited duration that has an average value of zero. Fig.7
shows Daubechies 10 wavelet.
Wavelet Transform is An alternative approach to the short time Fourier transform to overcome
the resolution problem.
Flexibility.
t
CWTx , s xt .
1
dt
*
(4)
s
s
The wavelet is placed at the beginning of the signal at the point which corresponds to time=0.
The wavelet function at scale ``1'' is multiplied by the signal and then integrated over all times.
The result of the integration is then multiplied by the constant number 1/sqrt{s}. This
multiplication is for energy normalization purposes so that the transformed signal will have the
same energy at every scale. The final result is the value of the transformation, i.e., the value of
the continuous wavelet transform at time zero and scale s=1. In other words, it is the value that
corresponds to the point tau =0 , s=1 in the time-scale plane.
The wavelet at scale s=1 is then shifted towards the right by tau amount to the location t=tau ,
and the above equation is computed to get the transform value at t=tau , s=1 in the time-
frequency plane.
Let us consider scale s=1 Fig. 7 illustrates how the window is shifted and the wavelet analysis is
done. Similarly Fig.8 shows wavelet analysis for s=5.
Fig.10 shows the waveform corresponding to normal person and its corresponding wavelet
transform and Fig.11 shows waveform corresponding to a person suffering from Alzheimer's
disease and its corresponding wavelet transform.
Discrete Wavelet Transform (DWT)
The continuous wavelet transform was computed by changing the scale of the analysis window,
shifting the window in time, multiplying by the signal, and integrating over all times.
In the discrete case, filters of different cutoff frequencies are used to analyze the signal at
different scales. The signal is passed through a series of highpass filters to analyze the high
frequencies, and it is passed through a series of lowpass filters to analyze the low frequencies.
The resolution of the signal, which is a measure of the amount of detail information in the
signal, is changed by the filtering operations
The scale is changed by upsampling and downsampling operations.
Fig.12 shows DWT tree, the process halves time resolution, but doubles frequency resolution.
Here g[n] and h[n] are quadrature mirror filter.
References
[1] https://www.eecis.udel.edu/~amer/CISC651/IEEEwavelet.pdf
[3] S. Mallat, Academic press - A Wavelet Tour of Signal Processing 2/E. San Diego, Ca:
Academic Press, 1999, pp. 2-121
[4] http://web.iitd.ac.in/~sumeet/WaveletTutorial.pdf
[5] https://www.math.aau.dk/digitalAssets/120/120646_r-2003-24.pdf
[6] http://www.wavelet.org
[7] Robi Polikar, Multiresolution Wavelet Analysis of Event Related Potentials for the Detection
of Alzheimer's Disease, Iowa State University, 06/06/1995
[8] Amara Graps, An Introduction to Wavelets, IEEE Computational Sciences and Engineering,
Vol. 2, No 2, Summer 1995, pp 50-61.
[10] R. Crandall, Projects in Scientific Computation, Springer-Verlag, New York, 1994, pp. 197-
198, 211-212.
[11] Y. Meyer, Wavelets: Algorithms and Applications, Society for Industrial and Applied
Mathematics, Philadelphia, 1993, pp. 13-31, 101-105.
[12] G. Kaiser, A Friendly Guide to Wavelets, Birkhauser, Boston, 1994, pp. 44-45.
[13] W. Press et al., Numerical Recipes in Fortran, Cambridge University Press, New York,
1992, pp. 498-499, 584-602.
[14] M. Vetterli and C. Herley, "Wavelets and Filter Banks: Theory and Design," IEEE
Transactions on Signal Processing, Vol. 40, 1992, pp. 2207-2232.
[15] I. Daubechies, "Orthonormal Bases of Compactly Supported Wavelets," Comm. Pure Appl.
Math., Vol 41, 1988, pp. 906-966.