SIA - Assignment 1
SIA - Assignment 1
Assignment 1
-------------------------------------------------------------------------------------------------------------------
Instructions:
• Deadline: Ensure that your assignment is submitted by the specified deadline. A delay of one day
will result in the deduction of 0.5 marks, with further deductions made according to the number of
days delayed.
• Components:
1. PDF File:
Your submission should include the main document (a single PDF) with the following details:
o Assignment Title (e.g., Assignment 1)
o Course Name (Speech and Image Analysis)
o Full Name
o School of Study (e.g., SCDS)
o Year of Study (e.g., 3rd Year)
File Naming: Use the following naming convention for your file:
FirstName_SIA_Assignment1.pdf
Note: Submit the Python file. Also provide the screenshot of the code and the results in a PDF
file.
• Feedback and Grading: You will receive feedback on your assignment on or before 29 October
2024.
-------------------------------------------------------------------------------------------------------------------
Assignment Questions
Question 1:
Write a Python code to implement autocorrelation using convolution.
Instructions:
1. Record a real-time speech signal (in discrete form).
2. Use the convolution operation to compute the autocorrelation of the signal.
3. Plot the original signal and its autocorrelation for visualization.
[10 marks]
Question 2:
Write a Python code to implement cross-correlation using convolution.
Instructions:
1. Record a real-time speech signal (in discrete form) and consider it as the first signal.
Then, apply a time delay of your choice to this signal and use it as the second signal.
2. Use convolution to compute the cross-correlation of the two signals.
3. Plot both signals and their cross-correlation for visualization.
[10 marks]
Question 3:
Derive a closed-form expression for deconvolution to retrieve 𝑥(𝑛) from 𝑦(𝑛) = 𝑥(𝑛) ∗ ℎ(𝑛) for the
given 𝑦(𝑛) and ℎ(𝑛) without using any transforms, and implement it in Python.
Instructions: