MATLAB Project Description - Signal Processing
MATLAB Project Description - Signal Processing
An auditory system mimics the behaviour of a biological cochlea found in humans and other
mammals. The system converts a 1D discrete-time audio signal to a 2D time-frequency signal
called an auditory spectrogram. From this spectrogram, audio information can be extracted
as shown in Table 1. Its application include hearing aids, speech and musical information
retrieval, audio multimedia systems, and brain modelling.
The objective of this project is to model an auditory system using MATLAB. Note that this
project is an individual task.
A gammatone filter behaves like a bandpass filter. Each gammatone filter is tuned to a specific
centre frequency so that it only responds to a specific frequency. So when the input signal
resonates close to the centre frequency of the filter, the filter will output a resonating signal
at its centre frequency. Hence, a filterbank will have a bank of gammatone filters whose
centre frequencies are tuned from low to high for the entire spectrum of a sound signal.
1
Figure 1: Increasing bandwidth with increasing centre frequency in the gain response of gammatone filters. (a) x-axis is
linearly scaled where intervals between frequencies are the same; (b) x-axis is logarithmically-scaled where intervals between
frequencies are nonlinear.
Ideally, the varying filters tuned differently will react to the different frequencies in the input
signal and will output multiple signals. These signals are then half-wave rectified, where all
negative values are set to 0 and only positive values are maintained. They can be visualised
as a 2D image known as an auditory spectrogram, as shown in Figure 2.
2
Assessment 1 – Assignment 1 (25%)
Design an auditory system in MATLAB.
1. Build a cochlear filterbank using the sample code in gammatonegram.tgz. Select your
specifications from Table 2 based on your right-most digit in your student number.
Note that the gammatone filter order column in Table 2 is meant for assignment 2.
After your changes are introduced, ensure the following:
a) The heights of the two spectrograms are the same as the number of channels in
your setting;
b) The lowest centre frequency in your gain response display should be within ±8 Hz
of your lowest centre frequency setting.
Right-most index of Gammatone filter Number of channels Gammatone
your student with lowest centre (gammatone filters) filter order
number frequency
0 60 Hz 90 2
1 70 Hz 92 3
2 80 Hz 94 4
3 90 Hz 96 5
4 100 Hz 98 6
5 110 Hz 100 2
6 120 Hz 102 3
7 130 Hz 104 4
8 140 Hz 106 5
9 150 Hz 108 6
Table 2: Cochlear filterbank specification
3
page on bandpower command. Also, the 𝑡2 time vector from assignment 2 task
4 is helpful for display of the graphs and axis labels.
Add comments to the code you have modified or introduced in MATLAB. Prepare a progress
report describing what tasks you have completed. Include an introduction, completed tasks
description (and/or any working tasks), challenges experienced, conclusion, and references.
Include figures in your report where necessary.
Use any online English grammar and vocabulary checking application to ensure that your
report is coherent and clear, e.g. Grammarly – marks will be given if you are able to convey
your ideas clearly and concisely. Your report should be at least 2 pages. On the due date of
16 Apr 2021 (11.59pm), submit only the MATLAB script files that you have modified and your
progress report (via Turnitin) on vUWS submission link under “Assessment 1”.
4
b. The spectral profile from the auditory spectrogram on the top-right corner in
MATLAB figure 5;
c. The temporal profile from the STFT spectrogram on the bottom-left corner in
MATLAB figure 5.
d. The temporal profile from the auditory spectrogram on the bottom-right
corner in MATLAB figure 5.
6. Use 2D correlation coefficient (CC) to show the quantitative difference between the
following comparisons (note that only one CC should be generated per comparison).
Use fprintf to display the comparisons below one line at a time in your comman
window.
a. Auditory spectrogram versus STFT spectrogram generated in assignment 1.
b. Auditory spectrogram bandpower versus STFT spectrogram bandpower
generated in assignment 1.
c. Auditory spectrogram temporal profile versus STFT spectrogram temporal
profile.
d. Auditory spectrogram spectral profile versus STFT spectrogram spectral
profile.
7. Use symbolic variables and display the impulse response of an 𝑛-order gammatone
filter where 𝑛 can be found from Table 2 based on your right-most index of your
student number. The impulse response equation is defined by g[n] in the Auditory
Signal Processing.pdf slides.
Add comments to the code you have modified or introduced in MATLAB. On the due date of
04 Jun 2021 (11.59pm), submit only the MATLAB script files that you have modified on vUWS
submission link under “Assessment 3” as well as your final report detailed below.
5
equation from assignment 2). Comment on the CC results to indicate the degree of
difference between pairs of vectors and matrices in assignment 2, task 6.
a. Address which CC result is highest and thus, most similar.
b. Conversely, address which CC result is lowest and thus, least similar.
5. Conclusion (discuss your experience in using MATLAB for modelling of the auditory
model, its usefulness, and difficulties).
6. References. IEEE-style referencing preferred – See the last slide in Auditory Signal
Processing.pdf as an example.
Please submit your final report using the Turnitin link in vUWS under “Assessment 3”.
Resources
• Signal Processing Toolbox.
• Audio Toolbox.
• Auditory Filterbank Sample Code.
• Auditory Filterbank Documentation.