Escolar Documentos
Profissional Documentos
Cultura Documentos
540
520
500
Approaches to Identification of
480
0 20 40 60 80 100
t (s)
560
540
520
Nonlinear systems 500
480
0 20 40 60 80 100
t (s)
Brain Activity (fMRI):
OUTPUT #1
25
20
15
10
5
0 100 200 300 400 500 600
INPUT #1
20
Lennart Ljung 15
10
-4
0 100 200 300 400 500 600
INPUT #1
1.5
0.5
Linköping University 0
-0.5
-1
Forest Crane: 0 100 200 300 400 500 600
Sweden
Nonlinear Identification CCC Plenary AUTOMATIC CONTROL Nonlinear Identification CCC Plenary AUTOMATIC CONTROL
REGLERTEKNIK REGLERTEKNIK
Lennart Ljung July 29, 2010 Lennart Ljung July 29, 2010
LINKÖPINGS UNIVERSITET LINKÖPINGS UNIVERSITET
y(t) = g(ut , v t )
Nonlinear Identification CCC Plenary AUTOMATIC CONTROL Nonlinear Identification CCC Plenary AUTOMATIC CONTROL
REGLERTEKNIK REGLERTEKNIK
Lennart Ljung July 29, 2010 Lennart Ljung July 29, 2010
LINKÖPINGS UNIVERSITET LINKÖPINGS UNIVERSITET
Think discrete time data sequences: The predictor function ŷ(t|t − 1) = f˜(Z t−1 ) = f (ϕ(Z t−1 )) is what we try to
Z t = [u(1), u(2), ..., u(t), y(1), y(2), ..., y(t)] estimate from data.
We need to get hold of a “sim- and/or a prediction func-
ulation function” y(t) = g(ut ) tion ŷ(t|t − 1) = f˜(Z t−1 ) Two basic cases for f : (special case ϕ(t) = [u(t − 1), u(t − 2)])
5
x 10
3 4
2.5 3
2 2
*
1.5 1
******* **
******** ******
1 * ********* 0
y
y
************* ************
0.5
** ********* −1
* ********
** *** ***********
* * **** ** ****
0 −2 *** **
******** **
−0.5 −3
*******
*
−1 −4
6 6
5 5
5 5
4 4
4 4
3 3
3 3
2 2 2 2
1 1 1 1
0 0 0 0
u(t−2) u(t−2)
u(t−1) u(t−1)
Linear: ŷ(t) = a1 u(t − 1) + a2 u(t − 2) Nonlinear: ŷ(t) = f (u(t − 1), u(t − 2))
Nonlinear Identification CCC Plenary AUTOMATIC CONTROL Nonlinear Identification CCC Plenary AUTOMATIC CONTROL
REGLERTEKNIK REGLERTEKNIK
Lennart Ljung July 29, 2010 Lennart Ljung July 29, 2010
LINKÖPINGS UNIVERSITET LINKÖPINGS UNIVERSITET
A Quick Classification of Non-Linear Models 7 White to Off-White: Physical Modeling 8
2
ẋ(t) = f (x(t), u(t), θ)
1 **
******
0
y
***********
−1
* ******** y(t) = h(x(t), u(t), θ)
***********
*** *****
−2 ** *
* *
−3 ******
−4
6 (or in DAE, Differential Algebraic Equations, form.) For each parameter θ this
5
5
4
4
3
3
2 2
defines a simulated (predicted) output ŷ(t|θ) which is the parameterized
1 1
0 0
u(t−2)
How to describe the surface u(t−1) ? function
■ Parametric: fˆ(ϕ) = f (ϕ, θ̂) θ̂ = arg min y(t) − f (ϕ(t), θ)2 ŷ(t|θ) = f˜(Z t−1 , θ)
■ Nonparametric: Form the surface by smoothing the observations y(t)
in somewhat implicit form. θ is then found by optimizing the fit to
observations.
Parametric Models: A Palette from White to Black: The approach is conceptually simple, but could be very demanding in
practice.
White – Off-white – Smoke-grey – Steel-grey –Slate-grey – Black
Nonlinear Identification CCC Plenary AUTOMATIC CONTROL Nonlinear Identification CCC Plenary AUTOMATIC CONTROL
REGLERTEKNIK REGLERTEKNIK
Lennart Ljung July 29, 2010 Lennart Ljung July 29, 2010
LINKÖPINGS UNIVERSITET LINKÖPINGS UNIVERSITET
■ White: Known model Apply non-linear transformations to the measured data, so that the
■ Off-white: Careful Physical Modeling transformed data stand a better chance to describe the system in a linear
relationship.
■ Smoke-grey
■ Steel-grey “Rules: Only high-school physics and max 10 minutes”
■ Slate-grey
■
Toy Example: Immersion heater: Input: voltage to the heater. Output:
Black
temperature of the fluid. . . ..
. . .. Square the voltage! Sense morale: No excuse for not thinking over the
basic physical facts!
Another example: . . .
Nonlinear Identification CCC Plenary AUTOMATIC CONTROL Nonlinear Identification CCC Plenary AUTOMATIC CONTROL
REGLERTEKNIK REGLERTEKNIK
Lennart Ljung July 29, 2010 Lennart Ljung July 29, 2010
LINKÖPINGS UNIVERSITET LINKÖPINGS UNIVERSITET
OUTPUT #1
25 80
10 20 4
5 0
0 100 200 300 400 500 600 0 100 200 300 400 500 600
2
INPUT #1
200
0
20 150
y1
100
15 −2
50
10
0 −4
0 100 200 300 400 500 600 0 100 200 300 400 500 600
−6
Nonlinear Identification CCC Plenary AUTOMATIC CONTROL Nonlinear Identification CCC Plenary AUTOMATIC CONTROL
REGLERTEKNIK REGLERTEKNIK
Lennart Ljung July 29, 2010 Lennart Ljung July 29, 2010
LINKÖPINGS UNIVERSITET LINKÖPINGS UNIVERSITET
Now it’s time to 13 Re-sample Data 14
Perfect mixing in tank: A text-book first order system with gain=1 and time 20
constant = Volume/Flow 15
10
20
16
Let us re-sample the observed data according to this natural time variable. 14
12
10
8
0 10 20 30 40 50 60 70 80
Nonlinear Identification CCC Plenary AUTOMATIC CONTROL Nonlinear Identification CCC Plenary AUTOMATIC CONTROL
REGLERTEKNIK REGLERTEKNIK
Lennart Ljung July 29, 2010 Lennart Ljung July 29, 2010
LINKÖPINGS UNIVERSITET LINKÖPINGS UNIVERSITET
2 ■
Measured Output and Simulated Model Output Smoke-grey. Semi-physical modeling (Could be used more!)
6 0
Measured Output
y1
mves Fit: 60.39% −2
■ Steel-grey
−4
4
−6
■ Slate-grey
−8
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
4
x 10
2 ■ Black
Recall Linear model.
y1
−2 The semi-physical model gives
a sufficiently good description
−4
of the buffer, to allow proper
−6
time-marking of the pulp before
and after.
−8
0 5000 10000 15000
Nonlinear Identification CCC Plenary AUTOMATIC CONTROL Nonlinear Identification CCC Plenary AUTOMATIC CONTROL
REGLERTEKNIK REGLERTEKNIK
Lennart Ljung July 29, 2010 Lennart Ljung July 29, 2010
LINKÖPINGS UNIVERSITET LINKÖPINGS UNIVERSITET
Example: Tank with inflow u and free outflow y and level h: (Bernoulli’s) y(t) = γ(h∗ ) + α(h∗ )y(t − Ts ) + β(h∗ )u(t − Ts ) = θ T (h∗ )ϕ(t)
equations:
An ARX-model with level-dependent parameters. Now compute linearized
√
ḣ = − h + u model for d different levels, h1 , h2 , . . . , hd . Total model: select or average over
√ these local models
y= h
d
√ ŷ(t) = wk (h, hk )θ T (hk )ϕ(t)
Linearize around level h∗ with corresponding flows u∗ = y ∗ = h∗ :
k=1
1
ḣ = − √ (h − h∗ ) + (u − u∗ ) Choices of weights wk : . . ..
2 h∗
1
y = y ∗ + √ (h − h∗ )
2 h∗
Nonlinear Identification CCC Plenary AUTOMATIC CONTROL Nonlinear Identification CCC Plenary AUTOMATIC CONTROL
REGLERTEKNIK REGLERTEKNIK
Lennart Ljung July 29, 2010 Lennart Ljung July 29, 2010
LINKÖPINGS UNIVERSITET LINKÖPINGS UNIVERSITET
Data and Linear Model 19 Local Linear Models 20
Measured data: Linear Model (d = 1) Two levels (models) (d=2) Five levels (models) (d = 5)
Inflöde u 1.4 1.4
1.4 1.4
1.2
1.2 1.2
1
1.2
0.8
0.6 1 1
1
0.4
0.2
0.8 0.8
0 0.8
0 10 20 30 40 50 60 70 80
0.4 0.4
1 0.4
0.2 0.2
0.5 0.2
0 0
0 0 0 10 20 30 40 50 60 70 80 0 10 20 30 40 50 60 70 80
0 10 20 30 40 50 60 70 80 0 10 20 30 40 50 60 70 80
Nonlinear Identification CCC Plenary AUTOMATIC CONTROL Nonlinear Identification CCC Plenary AUTOMATIC CONTROL
REGLERTEKNIK REGLERTEKNIK
Lennart Ljung July 29, 2010 Lennart Ljung July 29, 2010
LINKÖPINGS UNIVERSITET LINKÖPINGS UNIVERSITET
Let the measured working point variable (tank level in example) be denoted ■ White: Known model
by ρ(t) (sometimes called regime variable). If the regime variable is ■ Off-white: Physical Modeling
partitioned into d values ρk , and model output according to value ρk is ŷ (k) (t) ■ Smoke-grey: Semi-physical modeling
the predicted output will be
■ Steel-grey: Composite (local) models (Most common NL model in
d
industry(?))
ŷ(t) = wk (ρ(t), ρk )ŷ (k) (t) ■ Slate-grey
k=1
■ Black
If the prediction ŷ (k) (t) corresponding to ρk is linear in the parameters,
ŷ (k) (t) = ϕT (t)θ (k) , and the weights w are fixed, the whole model will be a
linear regression.
Important connections to active research areas
■ LPV (Linear Parameter-Varying) Models
■ Hybrid Models (≈ w(·, ·) is estimated too.)
Nonlinear Identification CCC Plenary AUTOMATIC CONTROL Nonlinear Identification CCC Plenary AUTOMATIC CONTROL
REGLERTEKNIK REGLERTEKNIK
Lennart Ljung July 29, 2010 Lennart Ljung July 29, 2010
LINKÖPINGS UNIVERSITET LINKÖPINGS UNIVERSITET
Building Blocks:
Wiener
Hammerstein-
Wiener
Nonlinear static function
f (u)
Nonlinear Identification CCC Plenary AUTOMATIC CONTROL Nonlinear Identification CCC Plenary AUTOMATIC CONTROL
REGLERTEKNIK REGLERTEKNIK
Lennart Ljung July 29, 2010 Lennart Ljung July 29, 2010
LINKÖPINGS UNIVERSITET LINKÖPINGS UNIVERSITET
Other Combinations 25 Example: Hydraulic Crane Data 26
-2
-4
0 100 200 300 400 500 600
INPUT #1
1.5
0.5
With the linear blocks parameterized as a linear dynamic system and the
0
static blocks parameterized as a function (“curve”), this gives a -0.5
-1
parameterization of the output as 0 100 200 300 400 500 600
1
fit. The extra flexi-
3
bility offered by the
0 input nonlinearity
2
−1 is quite useful,
1
−2 (even though no
0
−3
direct physical
explanation is
−1 −4
obvious.)
−5
−2
−6
0 200 400 600 800 1000 1200
−3
−4
0 200 400 600 800 1000 1200
Nonlinear Identification CCC Plenary AUTOMATIC CONTROL Nonlinear Identification CCC Plenary AUTOMATIC CONTROL
REGLERTEKNIK REGLERTEKNIK
Lennart Ljung July 29, 2010 Lennart Ljung July 29, 2010
LINKÖPINGS UNIVERSITET LINKÖPINGS UNIVERSITET
■ Black
Intuitive picture: Think of a scalar ϕ and let κ(z) be a unit pulse for
0 ≤ z ≤ 1. Then κ(β(ϕ − γ)) is a pulse of width 1/β starting in ϕ = γ. The
sum above is then a piecewise constant function, capable of approximation
"any" function arbitrary well for large enough d.
Nonlinear Identification CCC Plenary AUTOMATIC CONTROL Nonlinear Identification CCC Plenary AUTOMATIC CONTROL
REGLERTEKNIK REGLERTEKNIK
Lennart Ljung July 29, 2010 Lennart Ljung July 29, 2010
LINKÖPINGS UNIVERSITET LINKÖPINGS UNIVERSITET
Non-Parametric Methods 31 Semi-supervised Regression: The Problem 32
5
x 10
Given a standard regression problem:
4
1 **
****** y(t) = f (ϕ(t)) + noise
0
y
************
−1
* ********
***********
*** *****
−2
*** **
−3 ******
−4
6 f unknown, y(t) and ϕ(t) observed for t = 1, . . . , NL . Find f !
5
5
4
4
3 3
2 2
1 1
0 0
u(t−2)
u(t−1)
Form the surface by smoothing over the observation points in the space!
Or rather, for any given ϕ∗ find a good value of f (ϕ∗ ) (“Model on Demand”,
■ Even Blacker!
“Just in time model”)
■ Huge literature – Mostly in the statistical community and now also in
machine learning
■ Only one aspect will be discussed here: Semi-supervised Regression Extra feature: We have several measurements of
ϕ(t), t = NL + 1, . . . , NL + NU without corresponding values of y(t) (NU
“unlabeled observations”)
Nonlinear Identification CCC Plenary AUTOMATIC CONTROL Nonlinear Identification CCC Plenary AUTOMATIC CONTROL
REGLERTEKNIK REGLERTEKNIK
Lennart Ljung July 29, 2010 Lennart Ljung July 29, 2010
LINKÖPINGS UNIVERSITET LINKÖPINGS UNIVERSITET
Yes, if the regressors live in a confined region, like a manifold: ■ Supervised: All Regressors labeled (y(t), ϕ(t)) [Standard Regression
problems]
■ Unsupervised: No labels known. [Clustering, Classification]
■ Semi-supervised: Some labels known {y(t), ϕ(t), t = 1, . . . , NL }.
Some additional regressors known without labels
{ϕ(t), t = NL + 1, . . . , NL + NU }
■ Estimation problem: still to “predict” y ∗ = f (ϕ∗ ) for any given ϕ∗
• ”predict”: .....
Nonlinear Identification CCC Plenary AUTOMATIC CONTROL Nonlinear Identification CCC Plenary AUTOMATIC CONTROL
REGLERTEKNIK REGLERTEKNIK
Lennart Ljung July 29, 2010 Lennart Ljung July 29, 2010
LINKÖPINGS UNIVERSITET LINKÖPINGS UNIVERSITET
WDMR: Weight Determination by Manifold Regression Now, weigh together the two sources of information
(Manifold) Smoothness Assumption: f (ϕ1 ) and f (ϕ2 ) close if ϕ1 and ϕ2 are
close (in a relevant metric). +NU
NL +NU
NL NL
λ (fˆi − Ki,j fˆj )2 + (1 − λ) (y(t) − fˆt )2 (∗)
Problem: associate ϕ(i) with good values fˆt = f (ϕ(t)) for all regressors, both i=1 j=1 t=1
labeled and unlabeled. Ki,j = K(ϕ(i), ϕ(j))
Take care of two kinds of information:
■ f (ϕ(t)) ≈ y(t) for the measured labels Pick a (“regularization parameter”) λ that balances the fit to measured labels
■ f (ϕ(t)) ≈ f (ϕ(j)) if ϕ(t) ≈ ϕ(j). and the smoothness prior. Minimize w.r.t. fˆt , t = 1, . . . , NL + NU .
Formalize the second information using a kernel K(·, ·): That gives the estimated function value fˆ(ϕ) for any regressor ϕ you include
among the unlabeled regressors.
+NU
NL
Note that (∗) is quadratic in fˆt , so the solution is easy to obtain.
fˆt ≈ Kt,j fˆj ; Kt,j = K(ϕ(t), ϕ(j))
Choice of kernel K(·, ·): Many possibilities ...
t=1
Nonlinear Identification CCC Plenary AUTOMATIC CONTROL Nonlinear Identification CCC Plenary AUTOMATIC CONTROL
REGLERTEKNIK REGLERTEKNIK
Lennart Ljung July 29, 2010 Lennart Ljung July 29, 2010
LINKÖPINGS UNIVERSITET LINKÖPINGS UNIVERSITET
Example 1: fMRI Signals 37 fMRI Signals, cont’d 38
Nonlinear Identification CCC Plenary AUTOMATIC CONTROL Nonlinear Identification CCC Plenary AUTOMATIC CONTROL
REGLERTEKNIK REGLERTEKNIK
Lennart Ljung July 29, 2010 Lennart Ljung July 29, 2010
LINKÖPINGS UNIVERSITET LINKÖPINGS UNIVERSITET
Conclusions 39