49
1 Phil Bones Electrical & Computer Engineering Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury New Zealand NZ - Aust Semiconductor Instrumentation Workshop

Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

Embed Size (px)

Citation preview

Page 1: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

1Phil Bones Electrical & Computer Engineering

Signal Processing

Philip Bones

Department of Electrical & Computer Engineering

University of Canterbury

New Zealand

NZ - Aust Semiconductor Instrumentation Workshop

Page 2: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

2Phil Bones Electrical & Computer Engineering

Signal Processing

• Sampling

• Degradation

• Image recovery problems

• Undersampling in MRI

• Recently introduced tools

• Implementation issues and trends

Page 3: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

3Phil Bones Electrical & Computer Engineering

Sampling

Proceedings of the IEEE, 88: 569-587, April 2000.

with reference to:

Shannon, C.E. “Communication in the presence of noise”, Proc. IRE, 37: 10-21, 1949.

Shannon-Whittaker-Kotel’nikov Theorem

“. . . common knowledge in the communication art”

Page 4: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

4Phil Bones Electrical & Computer Engineering

Sampling

Shannon-Whittaker-Kotel’nikov Theorem:

If a function f(x) contains no frequencies higher than max (in radians per second),

it is completely determined by giving its ordinates at a series of points spaced

T = /max seconds apart.

The reconstruction formula which complements the sampling theorem is:

)(sinc)()( kT

xkTfxf

Zk

Page 5: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

5Phil Bones Electrical & Computer Engineering

Reconstruction from samples

In the frequency domain

In the signal domain

Page 6: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

6Phil Bones Electrical & Computer Engineering

Signal/image degradation

Our ability to use the data we measure is fundamentally limited by the errors in those measurements – the “noise”.

Noise has many causes; it is by its nature unpredictable and therefore best characterised statistically:

• a low flux of events may best be modelled by Poisson distribution

• at high fluxes, thermal effects tend to dominate Gaussian distribution

Page 7: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

7Phil Bones Electrical & Computer Engineering

Signal/image degradation

Data may also be “missing”:

e.g.

• there may be no direct way of making a measurement

• the physics of the instrument may mean that information is lost

• we cannot wait long enough to make better measurements

• the medium may introduce gross distortions

Page 8: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

8Phil Bones Electrical & Computer Engineering

Image recovery problems

Conference 5562 Monday-Tuesday 2-3 August 2004

Proceedings of SPIE Vol. 5562

Image Reconstruction from Incomplete Data III

Conference Chairs: Philip J. Bones, Univ. of Canterbury (New Zealand); Michael A. Fiddy, Univ. of North Carolina/Charlotte; Rick P. Millane, Univ. of Canterbury (New Zealand)

SESSION 1: Optics and Phase

SESSION 2: Imaging Through Turbulence

SESSION 3: Tomography

SESSION 5: Regularization and Numerical Methods

SESSION 6: Deconvolution

SESSION 7: Inverse Problems

Page 9: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

9Phil Bones Electrical & Computer Engineering

Imagerecoveryproblems

Page 10: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

10Phil Bones Electrical & Computer Engineering

Example recovery problem: MRI scanner undersampling*

* Blakeley, Bones, & Millane, JOSA A, 20: 67-77, 2003.

Page 11: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

11Phil Bones Electrical & Computer Engineering

. . . uses pulsed excitation and z field gradient

Slice selection . . .

Page 12: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

12Phil Bones Electrical & Computer Engineering

Sampling over k-space

Page 13: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

13Phil Bones Electrical & Computer Engineering

Motivation for undersampling• Decreasing MR acquisition time allows throughput to be increased

• Alternatively, more resolution can be achieved in the same time

Sampling theorem

The Nyquist limit is well known (applied here in spatial frequency space):

sample at the rate necessary to image the region of interest

Prior knowledge

The proton density can only be non-zero inside the body

- the “support constraint”

Page 14: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

14Phil Bones Electrical & Computer Engineering

N N

DFT

Dx 1/Dx

x

y

Nyquist rate sampling

kx

ky

Page 15: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

15Phil Bones Electrical & Computer Engineering

N’ N’ < N

DFT

Dx 1/Dx

x

y

Undersampling in the frequency domain

aliased image

kx

ky

Page 16: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

16Phil Bones Electrical & Computer Engineering

The Problem

• Reconstruction of a limited support object sampled in the frequency domain

• Where should the samples be placed?

• What reconstruction algorithm should be used?

x

y FOV

kx

ky

Page 17: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

17Phil Bones Electrical & Computer Engineering

An observation

• A repeated sampling pattern and iterative algorithm results in perfect reconstruction in some regions and heavy aliasing in others

Page 18: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

18Phil Bones Electrical & Computer Engineering

N N

IDFTx

y

Regular undersampling aliased image

kx

ky

Page 19: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

19Phil Bones Electrical & Computer Engineering

N

x

y

x

y

matrix solution ( 9 x 9 )

Division into subproblems

spatial domain spatial domain

Page 20: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

20Phil Bones Electrical & Computer Engineering

Imposing a support constraint

matrix solution ( 9 x 6 )

x

y

spatial domain

x

y

spatial domain

Page 21: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

21Phil Bones Electrical & Computer Engineering

Reconstruction Algorithm

• Split the large overall problem into a number of much smaller subproblems

• Solve each subproblem independently using a matrix-based direct method

• Advantages:– Non-iterative

– Conditioning information available

– Prediction of unrecoverable regions before data acquisition

Page 22: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

22Phil Bones Electrical & Computer Engineering

Results: direct partial recovery

Page 23: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

23Phil Bones Electrical & Computer Engineering

Results: direct partial recovery

original support

Page 24: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

24Phil Bones Electrical & Computer Engineering

Results: direct partial recovery

k-space sampling

Page 25: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

25Phil Bones Electrical & Computer Engineering

“Universal” sampling patterns

x

y ky

kx

Given a support . . .

?

. . . which pattern gives a completely recoverable image?

Page 26: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

26Phil Bones Electrical & Computer Engineering

Universal sampling pattern

x

y

x

y

matrix solution ( 9 x 6 )

kx

ky

?

Page 27: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

27Phil Bones Electrical & Computer Engineering

Universal sampling pattern

x

y

x

y

matrix solution ( 9 x 5 )

kx

ky

?

Page 28: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

28Phil Bones Electrical & Computer Engineering

Universal sampling pattern

x

y

x

y

matrix solution ( 9 x 4 )

kx

ky

?

Page 29: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

29Phil Bones Electrical & Computer Engineering

Finding universal patterns

• 1-D problem related to higher dimensions in certain circumstances

• There are NCp possible sampling patterns

– Which are universal?

– Which are ‘better’?

• Use heuristic metrics to

ensure a fast algorithm

– Based on distances

between sample locations 2

3

1

Page 30: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

30Phil Bones Electrical & Computer Engineering

Result: recovery from a universal sampling pattern

Page 31: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

31Phil Bones Electrical & Computer Engineering

Result: recovery from a universal sampling pattern

Page 32: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

32Phil Bones Electrical & Computer Engineering

Speed of metrics-based algorithm

A – a sequential search method based on linear algebraic properties

B – our algorithm employing the metrics in a sequential search

Time to find a pattern based on a 15 x 8 block: A 1590 sec

B 0.06 secNote that an exhaustive search becomes impractical for N >> 20

Conclude that prior information can allow the Nyquist limit to be relaxed and useful sampling patterns can be found with a fast algorithm

Page 33: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

33Phil Bones Electrical & Computer Engineering

Recently introduced tools

• Wavelets

• Neural networks

• Genetic algorithms

Valuable toolbox items or mainly fashion?

Page 34: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

34Phil Bones Electrical & Computer Engineering

Wavelets

Basis functions are compact in both signal and frequency spaces

Extent in signal space is measured in wavelengths

Both impulse-like and wave-like properties of the signal can be represented and located

Both continuous (complex) and discrete forms of transform

Discrete wavelet transform (DWT) is useful at isolating and locating features in an image

DWT is O(N) - compare: FFT is O(N logN)

2-D DWT has been incorporated into JPEG2000

Page 35: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

35Phil Bones Electrical & Computer Engineering

Wavelets - DWT

Lowpassfilter

Highpass filter

2

2

Take every 2nd

sample

1 2

3

Ideal

Ideal

fs/2 fs/4 fs/2 fs/2 fs/4

1 2 3

fs is original sampling freq

LPF

HPF

2

2

LPF

HPF

2

2

LPF

HPF

2

2

Page 36: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

36Phil Bones Electrical & Computer Engineering

Wavelets

Lowpassfilter

Highpass filter

2

2

Insert a zerobetweensamples

a

b

fs/4 fs/2 fs/2 fs/4

a b fs is original sampling freq

Page 37: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

37Phil Bones Electrical & Computer Engineering

Wavelets – “denoising”

Page 38: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

38Phil Bones Electrical & Computer Engineering

Wavelets - 2-D DWT

Lowpass x

Lowpass y

Lowpass x

Highpass y

Highpass x

Lowpass y

Highpass x

Highpass y

x

y

Page 39: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

39Phil Bones Electrical & Computer Engineering

Neural networks

Based on ideas formulated by McCulloch and Pits in the 1940s

Blossomed with the back propagation algorithm in the 1980s

Radial basis function networks and Kohonen self organising networks have since been added

Useful for providing increased performance where signals are not generated by linear, stationary and Gaussian systems

Page 40: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

40Phil Bones Electrical & Computer Engineering

Neural networks

Page 41: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

41Phil Bones Electrical & Computer Engineering

Neural networks

Page 42: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

42Phil Bones Electrical & Computer Engineering

Neural networks

Page 43: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

43Phil Bones Electrical & Computer Engineering

Genetic algorithms

Page 44: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

44Phil Bones Electrical & Computer Engineering

Genetic algorithms

Page 45: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

45Phil Bones Electrical & Computer Engineering

Genetic algorithms

Strengths - complement the conventional optimisation methods

- can be made to be adaptive

Weaknesses - difficult to predict performance for a GA

- slow

- very wide range of choices for the designer

Page 46: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

46Phil Bones Electrical & Computer Engineering

Implementation issues and trends

Industry imperatives are driven by:

Multimedia - compression of image, sound, video

Communications - error detection/correction coding

- encryption

- low power

Pattern recognition - “homeland” security and personal identification

- watermarking

- database mining

Data networks - packet processing

- smart routing

Page 47: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

47Phil Bones Electrical & Computer Engineering

Implementation issues and trends

Hardware development is dominated by:

DSP chips - more and more pipelining

- wider and wider instructions

- still based on the MAC instruction

Gate arrays - DSP cores

- general-purpose RISC cores

Page 48: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

48Phil Bones Electrical & Computer Engineering

The top of Mt Aspiring (3082 m), New Zealand

Page 49: Phil Bones Electrical & Computer Engineering 1 Signal Processing Philip Bones Department of Electrical & Computer Engineering University of Canterbury

49Phil Bones Electrical & Computer Engineering

just minutes from Christchurch