Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 8

Optimum Noise Filtering

Overview of Noise Filtering


Introduction: The goal of noise filtering is to extract the signal of interest from
random noise.
Important factors:
o Signal information
o Noise information
o Signal-to-noise (S/N) ratio
o Distortion
o Implementation
Signal information:
o Deterministic signalsThe signal of interest is known. The goal is to detect the
signal with the presence of noise. For examples: Radar or sonar echoes,
tracking device signals, and digital signals
o Random signalsOnly the statistical properties of the signal of interest are
known. The goal is to detect and/or estimate the signal with the presence of
noise. For examples: Radio signals, image data, and seismic signals.
Noise information:
o White noise The spectrum of white noise is constant. This assumption is
appropriate for many kinds of noise phenomena. White noise can be handled
easily but sometimes this assumption oversimplifies the problem.
o Band-limited white noise The spectrum of band-limited white noise is
constant within a specified frequency band and is zero outside the band.
Unlike a white noise process, a band-limited white noise process has finite
energy, a requirement that must be satisfied for any physical process.
o 1/f noise The spectrum of 1/f noise is proportional to 1/f

. As a result, the
1/f noise process mainly produces noise components at low frequencies.
o Other noise types Man-make noise, atmospheric disturbances, and

White noise
Low-pass white
noise

Band-pass white
noise

1/f noise
Signal-to-noise (S/N) ratio:
o Maximizing signal energy To maximize received signal energy we need to
increase the gain (decrease the loss) at the frequency bands where the signal
of interest is strong compare to noise.
o Minimizing noise energy To minimize received noise energy we need to
decrease the gain (increase the loss) at the frequency bands where the signal
of interest is weak compare to noise. For example, the gain should be 0 (loss =
) at frequencies where the signal energy is negligible.
o The gain should be zero (the loss should be infinite) outside the signal
frequency band.
Distortion:
o Maximum S/N ratio usually requires the system to have a non-uniform
frequency response.
o Non-uniform frequency responses introduce distortion because signal
components at different frequencies are amplified (attenuated) differently.
o A practical system has to consider the trade-offs between noise and distortion.
Implementation:
o A physical system cannot provide infinite energy an all-pass filter is
impossible to build.
o A physical system must be casual discontinuities in the response spectrum
cannot be realized.
o A physical system must be stable RHP poles are not allowed.
Matched Filters
Introduction: When the signal of interest is known and the goal is to detect its
presence, a matched filter is used to maximize the S/N ratio of the detection process.
Basic principles:
o Background noise is assumed to be white noise or band-limited white noise
with the noise bandwidth encompasses the entire signal spectrum.
o The signal of interest is deterministic.
o Background noise is assumed to be additive: Input = signal + noise

h(t)
n(t)
s(t)
y(t)
y
o
(t)
o If the frequency response of the filter matches the frequency spectrum of the
signal, the S/N ratio is maximized.
At frequencies where the signal is strong, the system gain should also
be high to enhance the difference between the signal and the noise.
At frequencies where the signal is weak, the system gain should also
be low to de-emphasize the noise energy at these frequencies.
At frequencies where the signal energy is negligible, the system gain
should be zero to filter out the out-of-band noise.
o Because of the non-uniform frequency response, the filter output is distorted.
o This technique is ideal for signal detection since in this case only the signal
energy (with respect to noise), not the actual shape, is.
o This technique is not useful if the shape of the signal waveform is unknown.
Mathematical details:
o From linear system theory the output is obtained from the convolution
integral:
) ( ) ( ) ( ) ( ) ( ) (
) ( ) ( ) ( ) ( ) (
t n t s d t n h d t s h
d t y h d y t h t y
o o
o
+ +





For a white noise input with unity magnitude the S/N ratio at t = T is:


1
]
1


1
]
1

1
]
1






d h
d T s d h
d h
d T s h
T n E
T s
N S
o
o
T
) (
) ( ) (
) (
) ( ) (
)] ( [
) (
) / (
2
2 2
2
2
2
2
2
Note: The inequality is the direct result of the Schwarz inequality. The
equality holds if the following is true:


d T s d h ) ( ) (
2 2
, which means:


d T s N S
T
) (
max
) / (
2
,
2
.
o In general, the following filter response can maximize the S/N ratio if the
autocorrelation function (or the auto-spectrum) of the input noise is known:
process. noise the of um autospectr the is ) ( and period, n observatio
the is constant, arbitary an is where
2
) (
) (
) (
f S
T
T f j
e
f S
f S
f H
nn
nn


1
]
1

o For white noise process, the impulse response of the matched filter is:
0 for ) ( ) ( t t T s t h

t
T 0
h(t) s(t)
Numerical examples:
o Rectangular pulses:
N
n
n
100 200
5
0
5
20 log N_F
n
n
1 10 100
20
0
20
S
n
n
100 200
5
0
5
20 log S_F
n
n
1 10 100
40
20
0
T
n
n
100 200
5
0
5
20 log T_F
n
n
1 10 100
20
0
h0
n
n
100 200
5
0
5
20 log H0
n
n
1 10 100
40
20
0
out
n
2
n 20
100 200
0
200
400
20 log out_F
n
n
1 10 100
0
20
40
Noise Noise Spectrum
Signal Signal Spectrum
S + N Spectrum
Frequency Response
Output Spectrum
Signal + Noise
Impulse Response
Output
o Saw-tooth pulses:
Shape
n
0 n W < ( ) n W 20 > ( ) if
n W
20
otherwise
N
n
n
100 200
5
0
5
20 log N_F
n
n
1 10 100
20
0
20
S
n
n
100 200
5
0
5
20 log S_F
n
n
1 10 100
40
20
0
T
n
S
n
N
n
T
n
n
100 200
5
0
5
20 log T_F
n
n
1 10 100
20
0
h
m n ,
0 n m < ( ) n m 20 > ( ) if
n m
20
otherwise
h0
n
h
900 1000 n ,
h0
n
n
100 200
5
0
5
20 log H0
n
n
1 10 100
40
20
0
out
n
2
n 20
100 200
0
50
100
20 log out_F
n
n
1 10 100
0
20
40
Noise
Noise Spectrum
Signal Signal Spectrum
S + N Spectrum
Frequency Response
Output Spectrum
Signal + Noise
Impulse Response
Output
Examples:
o White noise process:

'

otherwise 0
for
) (
2 1
) ( 2
) (
2 1
2
) (
2 1
1
) ( 0 for
0
T t
t T -
e
df
f j
t T f -j
e
t h
f j
T f -j
e
f H
f j
f S t
-t
e s(t)

o Realistic low-pass noise:


[ ]
) ( 2 cos
constant
4 1
) ( 2 ) ( 2
4 1
2
) (
) (
4 1
2
} { ) (
)] ( ) ( [ , 0 )] ( [
) ( ) (
2
} 2 cos { ) (
0 for ) (
) (
2 cos ) (
2 2 2 2
*
1
2 2
t T f
f
A t T f
e
t T f
e
f
A
T f j
e
f S
f S
F h
f
e F f S
e t n t n E t n E
f f f f
A
t f A F f S
T t t n
t s
t f A t y
C
C C
nn
nn
C C c
C

1
]
1


+

+

'

+
+ +
+



Radar echo detection:
Matched filter implementation
X

Matched filter

T
0
s(t)
y(t) y
o
(t)
Matched
filter
Detector
Display

+
T T T
o
d s y d T T s y d T h y t y
0 0 0
) ( ) ( ) ( ) ( ) ( ) ( ) (
Wiener Filters
Introduction: The matched filter technique requires the exact knowledge of the signal
and thus is used for detection only. If we need to reconstruct a signal with minimum
distortion and only the statistical properties of the signal is available, the Wiener filter
technique can be used for this purpose (signal estimation).
Basic principles:
o The filter that minimizes the mean-square error (minimum distortion) has the
following transfer function H( f ).
) ( ) (
) (
) (
) (
) (
f S f S
f S
f S
f S
f H
nn ss
ss
yy
ss
+

o It is called the Wiener filter. More information on optimum filtering can be
found in Cooper; Probabilistic Methods of Signal and System Analysis, 2
nd

edition, p. 402-411.
o The above transfer function can be implemented numerically for pre-recorded
data but is not physically realizable because it is non-casual. The following
steps convert the non-casual Wiener filter into a casual one.
1) Express S
yy
( f ) as a product of two factors:
) ( ) ( ) ( ) ( ) ( f A f A f S f S f S
yy yy nn ss yy
+
+
where
) ( f A
yy
+
has all of the LHP poles and zeros and
) ( f A
yy

has all
of the RHP poles and zeros. Split the poles and zeros on the j axis
evenly to both planes.
2) Use partial fraction expansion:
) ( ) (
) (
) (
f B f B
f A
f S
yy
ys +

+
where ) ( f B
+
has all of the LHP poles and zeros and ) ( f B

has all
of the RHP poles and zeros. Split the poles and zeros on the j axis
evenly to both planes.
Note: if n(t) and s(t) are uncorrelated,
( ) ( ) f S f S
ss ys

3) The transfer function of the casual Wiener filter is given by:


+
+
+
+
df e
f A
f B
t h
f A
f B
f H
t f j
yy yy
2
) (
) (
) (
) (
) (
) (
Example:
1)
0
) ( N S e t R
nn
t
ss


) (
4 1
2
} 2 { )} ( { ) (
2 2
f S
f
e F t R F f S
ys
t
ss ss

+

j
For a non-casual filter:
( )
( ) ( ) [ ]

yy yy yy
nn ss
ss
S
f N
S
N f
f
S
f S f S
f S
f H
2
0 0
2 2
2 2
) 2 ( 1 2 1
1
4 1 2
4 1 2
) ( ) (
) (
) (

+ +

+ +
+

Step 1:
( ) [ ]
( ) ( ) ( ) ( )
( ) ( ) ( ) ( )
f j
f j N N N
f A
f j
f j N N N
f A
f j f j
f j N N f j N N N
f
f N N N
N
f
f S f S S
yy yy
nn ss yy

2 1
2 2
) ( ,
2 1
2 2
) (
) 2 1 )( 2 1 (
2 2 2 2
) 2 ( 1
) 2 ( 2
4 1
2
) ( ) (
0 0 0 0 0 0
0 0 0 0 0
2
2
0 0 0
0 2 2

+
+ +

+
+ + +

+
+ +
+
+
+
+
Step 2:
( )
( ) ( ) ( )
[ ]
( ) ( ) ( )
( ) ( ) ( )
( ) ( )
( )
( )
( ) ( ) ( )
( ) ( )
( )
( ) ( ) ( ) ( )
( ) f j N N
N N N
f B
f j
N N N
f B
f j N N f j
N N N
f j N N f j N N N f A
f S
K
N N f j
K
N N f j N N
K
f j N N
K
f j
K
N f j f j N N N
f j f j N N N
f j f j
f j f j N N N
f
f A
f S
f A
f S
yy
ys
N N f j
f j
yy
ss
yy
ys


2 2
1 2
) ( ,
2 1
1 2
) (
2 2
1
2 1
1
1 2
2 2
1
2 1
1
2 1
2
) (
) (
2 1
1
2 1
1
,
1 2
1
2 2
1
2 2 2 1
2
) 2 1 ( 2 2
2
2 1 2 2
) 2 1 )( 2 1 ( 2
2 1 2 2
4 1 2
) (
) (
) (
) (
0 0
0 0 0 0 0 0
0 0
0 0 0
0 0 0 0 0
1
0 0 2 2
2
0 0
1 2
0 0
1
0 0
2 1
0 0 0 0
0 0 0
0 0 0
2 2
0 0
+
+

+
+

,
_

+
+
+
+

,
_

+
+
+ + +

+ +

+ +

,
_

+
+
+

+ +

+
+

+
+

+

+


Step 3:
( ) ( ) ( )
( ) ( ) ( )
( )
( )
[ ] ( ) ( ) ( ) ( ) [ ] ) ( 2 exp 1 2 ) ( ) ( ) (
2 2
1 2
2 1 2 2
2 1 1 2
) (
) (
) (
0 0 0 0
2
0
0 0
0 0
0 0 0
0 0 0
0
t u t N N N N df e f A f B t h
f j N N
N N
f j f j N N N
f j N N N
f A
f B
f H
t f j
yy
yy
+ +
+ +
+

+ + +
+ +


+ +
+
+

You might also like