Professional Documents
Culture Documents
Lecture 12:
The system identification cycle
System identification
Is there more then fitting a model to the data?
2/39
System identification
Is there more then fitting a model to the data?
2/39
Design
Model
validation
Yes
ok?
End
No
Model
structure
selection
3/39
Overview
Experiment design
Data pre-processesing
Model validation
4/39
Experiment design
Choice of
Sampling frequency
Experiment duration
5/39
6/39
6/39
7/39
7/39
0.8
0.6
0.4
0.2
0
0
10
20
30
40
50
60
Step response
8/39
0.8
0.6
0.4
0.2
0
0
10
20
30
40
50
60
Step response
Transient analysis
The use of the response to simple inputs (steps,
impulses, . . . ) to retrieve info on:
9/39
Transient analysis
The use of the response to simple inputs (steps,
impulses, . . . ) to retrieve info on:
1.6
1.4
1.2
1
0.8
0.6
0.4
0.2
0
0
10
15
9/39
Experiment duration
In PEM, the covariance matrix of the estimated
parameter vector equals
" N 1
#1
e2 1 X
Select large N .
(k)(k)T
N N
k=0
10/39
Experiment duration
In PEM, the covariance matrix of the estimated
parameter vector equals
" N 1
#1
e2 1 X
Select large N .
(k)(k)T
N N
k=0
Experiment duration
A rule of tumb: experiment duration 10 times
the largest time constant.
11/39
Experiment duration
A rule of tumb: experiment duration 10 times
the largest time constant.
1
Example: Consider G(s) = (1+1 s)(1+
2 s)
1 = 1 sec. and 2 = 0.01 sec.
1 rad
Sampling frequency: s = 10. 0.01
sec 160 Hz
Experiment duration: 10 1 sec.
11/39
Experiment duration
A rule of tumb: experiment duration 10 times
the largest time constant.
1
Example: Consider G(s) = (1+1 s)(1+
2 s)
1 = 1 sec. and 2 = 0.01 sec.
1 rad
Sampling frequency: s = 10. 0.01
sec 160 Hz
Experiment duration: 10 1 sec.
What efficiency do we gain if we could handle
multi-rate (double-rate) sampled data
sequences?
11/39
Step
0
1
Harmonic
c
a
Short pulse
0
1
Doublet
b
Gaussian
white noise
Frequency
sweep
a
n steps
Staircase
0
1
PRBS
0
1
Persistency of excitation
Example Consider the input u(k):
(
sin k k = 1, 2, , N
u(k) =
0
k0
Can we estimate the parameters of the following
model uniquely?
y(k) = 1 u(k) + 2 u(k 1) + 3 u(k 2)
13/39
Persistency of excitation
The sequence {u(k)}N
k=1 is persistently exciting
of order n if and only if there exists an integer N
such that the matrix:
u(0)
u(1)
u(N 1)
u(1)
u(2)
u(N
)
U1,n,N =
.
.
.
.
.
.
u(n 1) u(n) u(N + n 2)
has full column rank n.
14/39
Overview
Experiment
Start
Design
Model
validation
Yes
ok?
End
No
Model
structure
selection
16/39
Data pre-processing
Decimation
Detrending
Pre-filtering
17/39
Decimation
Definition: Taking every jn + 1-th sample (for
j N and n = 0, 1, ) of the original
input-output data sequences. S jS
Caution: Make use of a digital anti-aliasing filter
with cut-off 2jS ( rad
s ).
18/39
Decimation
When is decimation necessary?
The effect of having selected a too high (original)
sampling frequency may reflect into:
T 0
Why Detrending?
Example: Consider the nonlinear system,
x(k + 1) = f x(k)
y(k) = x(k)
Linearization of f (x) = x2 in
the point (1, 1)
x(k + 1)
x2 (k)
Local coordinates x
(k)
x(k + 1)
x
(k + 1)
2x(k) 1
x
(k)
1
x(k)
-1
x(k)
-1
20/39
Detrending
A linear model approximation in a limited region
of the operation envelope:
x
e(k + 1) = Ae
x(k) + B(u(k) u) x
e(k0 ) = x0
y(k) = C x
e(k) + y
21/39
22/39
Data pre-filtering
+ He:
\ = y = Gu
Given {uk , yk } and a linear filter L(q), and SGM
what system is identified using {L(q)uk , L(q)yk }?
23/39
Data pre-filtering
+ He:
\ = y = Gu
Given {uk , yk } and a linear filter L(q), and SGM
what system is identified using {L(q)uk , L(q)yk }?
23/39
Data pre-filtering
+ He:
\ = y = Gu
Given {uk , yk } and a linear filter L(q), and SGM
what system is identified using {L(q)uk , L(q)yk }?
1
JN () =
2
2
2
|L|
|L|
v
u
2
b
|G G|
+
d
2
2
b
b
|H|
|H|
23/39
Overview
Experiment
Start
Design
Model
validation
Yes
ok?
End
No
Model
structure
selection
24/39
25/39
10
10
The computed
singular values
10
10
10
10
15
20
VAF for
different
model orders
85
80
75
70
65
60
2
1
N
PN
2
ky(k)
y
b
(k,
)k
2
k=1
P
N
1
2
ky(k)k
2
k=1
N
10
12
100%
28/39
An illustrative example
Consider a schematic view of our acoustical duct:
Noise
Speaker
Second Speaker
Microphone
u(k)
y(k)
We determine the parameters of a sixth order
state space model [A, B, C, D] given
{u(k), y(k)}6000
k=1 with subspace identification using
s = 40.
The results are compared with PEM.
29/39
An illustrative example
Distribution of the VAF values
for 100 identification experiments
on the acoustical duct
100
100
90
53.1 %
90
100
89.5 %
90
80
80
80
70
70
70
60
60
60
50
50
50
40
40
40
30
30
30
20
20
20
10
10
10
0
0
20
40
60
80
100
0
0
20
PEM
40
SI
60
80
100
0
0
96.9 %
20
40
60
80
100
SI and PEM
30/39
Overview
Experiment
Start
Design
Model
validation
Yes
ok?
End
No
Model
structure
selection
31/39
Model Validation
u(k)
G(q)
+
+
v(k)
y(k)
b )
H(q,
b )
G(q,
e(k)
y(k)
b ) (H(q,
b )) such that
Objective determine G(q,
e(k) is small as possible.
32/39
Model Validation
u(k)
G(q)
+
+
v(k)
y(k)
b )
H(q,
b )
G(q,
e(k)
y(k)
b ) (H(q,
b )) such that
Objective determine G(q,
e(k) is small as possible.
What is small?
32/39
33/39
Validation tests:
33/39
34/39
34/39
34/39
Auto-correlation residuals
34/39
noise
test
Auto-correlation
by
residual
Cross-correlation
residual
test
and
input
0.1
0.5
0
0.5
1
20
10
10
20
0.1
20
10
10
20
ARX
10
10
20
OE
10
10
20
0.1
0.5
0
0.5
1
20
10
10
20
0.1
20
0.1
0.5
0
0.5
1
20
10
10
20
time lag
0.1
20
ARMAX
time lag
35/39
36/39
Summary of Lecture 12
The system identification cycle
Experiment
Start
Design
Model
validation
Yes
ok?
No
Model
structure
selection
37/39
End
38/39
38/39
38/39
38/39
Next ...
Wednesday Jan 9, 2013: Q&A and old exam
review
39/39