Course pages 2020–21 (these pages are still being updated)

# Digital Signal Processing

**Principal lecturer:** Dr Markus Kuhn**Taken by:** MPhil ACS, Part III**Code:** L314**Hours:** 16**Prerequisites:** basic linear algebra

## Aims

This course teaches the basic signal-processing principles necessary to understand many modern high-tech systems, with application examples focussing on audio processing, audio and image coding, and communication systems.Students will gain practical experience from numerical experiments in programming assignments (in MATLAB, NumPy or Julia).

## Lectures

Part 1 (about 9-10 lectures) focusses on basic theory and audio applications.

**Signals and systems.**Discrete sequences and systems: types and properties. Amplitude, phase, frequency, modulation, decibels, root-mean square. Linear time-invariant systems, convolution. Some examples from electronics, optics and acoustics.**Phasors.**Eigen functions of linear time-invariant systems. Review of complex arithmetic. Phasors as orthogonal base functions.**Fourier transform.**Forms and properties of the Fourier transform. Convolution theorem. Rect and sinc.**Dirac’s delta function.**Fourier representation of sine waves, impulse combs in the time and frequency domain. Amplitude-modulation in the frequency domain.**Discrete sequences and spectra.**Sampling of continuous signals, periodic signals, aliasing, interpolation, sampling and reconstruction, sample-rate conversion, oversampling, spectral inversion.**Discrete Fourier transform.**Continuous*versus*discrete Fourier transform, symmetry, linearity, FFT, real-valued FFT, FFT-based convolution, zero padding, FFT-based resampling, deconvolution exercise.**Spectral estimation.**Short-time Fourier transform, leakage and scalloping phenomena, windowing, zero padding. Audio and voice examples. DTFM exercise.**Finite impulse-response filters.**Properties of filters, implementation forms, window-based FIR design, use of frequency-inversion to obtain high-pass filters, use of modulation to obtain band-pass filters.**Infinite impulse-response filters.**Sequences as polynomials,*z*-transform, zeros and poles, some analog IIR design techniques (Butterworth, Chebyshev I/II, elliptic filters, second-order cascade form).

Part 2 (about 6-7 lectures) adds material on software-defined radio techniques, statistical signals, audio-visual signal compression and linear feedback control systems.

**Band-pass signals.**Band-pass sampling and reconstruction, IQ up and down conversion, superheterodyne receivers, software-defined radio front-ends, IQ representation of AM and FM signals and their demodulation.**Digital communication.**Pulse-amplitude modulation. Matched-filter detector. Pulse shapes, inter-symbol interference, equalization. IQ representation of ASK, BSK, PSK, QAM and FSK signals. Clock recovery. Spectral characteristics of binary sequences.[2 hours]**Random sequences and noise.**Random variables, stationary and ergodic processes, autocorrelation, crosscorrelation, deterministic cross-correlation sequences, filtered random sequences, white noise, periodic averaging.**Correlation coding.**Entropy, delta coding, linear prediction, dependence*versus*correlation, random vectors, covariance, decorrelation, matrix diagonalization, eigen decomposition, Karhunen-Loève transform, principal component analysis. Relation to orthogonal transform coding using fixed basis vectors, such as DCT.**Lossy versus lossless compression.**What information is discarded by human senses and can be eliminated by encoders? Perceptual scales, audio masking, spatial resolution, colour coordinates, some demonstration experiments.**Quantization, image coding standards.**Uniform and logarithmic quantization, A/mu-law coding, dithering, JPEG.

## Objectives

By the end of part 1 of the course students should be able to

- apply basic properties of time-invariant linear systems;
- understand sampling, aliasing, convolution, filtering, the pitfalls of spectral estimation;
- explain the above in time and frequency domain representations;
- use filter-design software;
- visualize and discuss digital filters in the
*z*-domain; - use the FFT for convolution, deconvolution, filtering;
- implement, apply and evaluate simple DSP applications;

By the end of part 2, students should be able to discuss and explain many fundamental concepts of techniques commonly used in digital communicationsystems in terms of the concepts introduced in part 1.

## Recommended reading

* Lyons, R.G. (2010). *Understanding digital signal processing.* Prentice Hall (3rd ed.).

Oppenheim, A.V. & Schafer, R.W. (2007). *Discrete-time digital signal processing.* Prentice Hall (3rd ed.).

Stein, J. (2000). *Digital signal processing - a computer science perspective.* Wiley.

## Further Information

Current Cambridge undergraduate students who are continuing onto Part III or the MPhil in Advanced Computer Science may only take this module if they did NOT take it as a Unit of Assessment in Part II.

## Assessment

- Written test about part 1, comprising 20% of the total mark.
- Three homework programming exercises, each comprising 10% of the mark.
- Individual implementation project with 8-page written report, topic agreed with lecturer, comprising 50% of the mark.

This course is borrowed from Part II of the Computer Science Tripos. As such, assessment will be adjusted to an appropriate level for those enrolled for Part III of the Tripos or the M.Phil in Advanced Computer Science. Further information about assessment and practicals will follow at the first lecture.