Introduction To System Identification
Introduction To System Identification
1
D.E. Rivera, Introduction to System Identification, ChE 494/598, January 20, 2004
-2
Power [%]
-4
-6
-8
0 200 400 600 800 1000 1200 1400 1600 1800 2000
Time [seconds]
solid:master; dashed:side; dotted:front; d-dotted:rear
10
-10
-20
-30
-40
0 200 400 600 800 1000 1200 1400 1600 1800 2000
Time [seconds]
2
D.E. Rivera, Introduction to System Identification, ChE 494/598, January 20, 2004
Load
LT
Demand
Outs
LT Real
SFGI Shipments
A/T: Assembly/Test Facility
Starts
ADI: Assembly-Die Inventory LT
D1 t Time
D3 D2
5
Excitation
0 • Economic/financial systems
-5
-10
• modeling economic indicators such as the Dow Jones,
0 1 2 3 4
Time [s]
5 6 7 8
S&P 500 indices
Filtered data used for modeling
5
• Behavioral/social systems
Response
0
• time-varying adaptive interventions for the prevention of
chronic, relapsing disorders (such as alcoholism, smoking
-5
0 1 2 3 4
Time [s]
5 6 7 8 and drug abuse)
• artificial mechanical vibrations (top) introduced to a wing at certain flight
conditions; responses shown on bottom
3
D.E. Rivera, Introduction to System Identification, ChE 494/598, January 20, 2004
Experimental Design
and Execution
• Experimental Design and Execution
( Step, Pulse, or PRBS-Generated Data)
"Identification"
• Data Preprocessing • Data Preprocessing
• Model Structure Determination
• Parameter Estimation
• Model Structure Selection
( Linear Plant and Disturbance Models)
Yes
End
Experiment
design in Practice
Pre-treat
data
Choose
• Understanding the various identification methods and
model associated decision variables in terms of bias-variance
structure
Choose tradeoffs
performance
criterion
Parameter estimation
Validate
• Effective use of a priori knowledge regarding the system
model Not OK revise! to be identified and the intended application (e.g.,
Not OK revise prior?
OK accept model! simulation, prediction, control)
Controller Design & Commissioning
4
D.E. Rivera, Introduction to System Identification, ChE 494/598, January 20, 2004
KA
Transportation lag -θs
Makes this a difficult p(s) = K e ,
τ s+1
control problem...
Many references for this technique, example: Seborg, Edgar, and Mellichamp,
Process Dynamics and Control, Wiley, 1989, Chapter 7.
5
D.E. Rivera, Introduction to System Identification, ChE 494/598, January 20, 2004
6
D.E. Rivera, Introduction to System Identification, ChE 494/598, January 20, 2004
20
• Input Signal Design and Nonparametric Estimation
15
Measured
10
Output
5
0
• Parametric Model Estimation and Validation
-5
0 500 1000 1500 2000 2500 3000 3500 4000 4500 5000
Time[Min]
15
Input • Control-Relevant and Closed-Loop Identification
10
Input 5
0 • Multivariable Identification
-5
-10
-15
0 500 1000 1500 2000 2500
Time[Min]
3000 3500 4000 4500 5000 • Issues in nonlinear and semiphysical identification
Furnace example with PRBS input, PID with filter controller
{
Linearization
}
- Linear or Nonlinear? (Mostly) LINEAR
T
- Continuous or Discrete? DISCRETE State-Space Sampling Discrete-time
Model S-S Model Discrete-
- Parametric or nonparametric? BOTH Step/ time
Impulse Laplace Realization Step/
Response transforms Impulse
- Time or frequency domain? BOTH and Response
T
Frequency and
Response s-domain Sampling z-domain Frequency
Transfer Function Transfer Function Response
Model Model
(difference equation)
7
D.E. Rivera, Introduction to System Identification, ChE 494/598, January 20, 2004
Examples
System Identification Structure
time s-domain z-domain
y(t) = p(z)u(t) + H(z)a(t)
Impulse δ (t) 1 1
a Random Signal
1 t ≥ 0 1 z
Step s(t) =
0 t < 0 s z −1
First-Order ZOH Pulse H(z)
K K(1 - exp(-T/τ))
Lag Transfer Input Signal
Function τs + 1 z - exp(-T/τ) υ Disturbance Signal
u + +
P(z)
Integrating/ ZOH Pulse K KT y
Output Signal
Transfer
Ramp
Function s z −1
P(z) and H(z) are discrete-time (z-domain)
First-Order ZOH Pulse K exp(−θ s) K(1 - exp(-T/τ))z -N transfer functions
with Delay Transfer τ s + 1 z - exp(-T/τ)
Function
θ = NT
8
D.E. Rivera, Introduction to System Identification, ChE 494/598, January 20, 2004
rhok
phi
• Crosscorrelated versus uncorrelated signals
0.5 0.5
0.5 1
0
0
-1
-0.5
-2
-1
0 200 400 600 800 1000 1200 1400 1600 1800 2000 -3
Sample Number 0 200 400 600 800 1000 1200 1400 1600 1800 2000
Sample Number
Autocorrelation Coefficients 0
Power Spectral Density
1 10 Autocorrelation Coefficients Power Spectral Density
1 10 1
0.5 0
0.5 10
rhok
-1
10
rhok
0 -1
0 10
-2
-0.5 10 -2
-2 -1 0
-20 0 20 40 10 10 10 -0.5 10
-2 -1 0
Lag k Frequency [Radians/Time] -20 0 20 40 10 10 10
Lag k Frequency [Radians/Time]
9
D.E. Rivera, Introduction to System Identification, ChE 494/598, January 20, 2004
0
1 Shift Registers nr
-0.5
1 0 1 1 0 1 1 0 1 -1
0 5 10 15 20 25 30 35 40 45
Time[Min]
Power Spectrum of the PRBS input
0
10
-1
10
AR
Exclusive OR -2
(Modulo 2 Adder) 10
-3
10 0
10
Test Signal Radians/Min
10
D.E. Rivera, Introduction to System Identification, ChE 494/598, January 20, 2004
Correlation Analysis Results, Hairdryer Data Wing Flutter Example, Spectral Analysis
Smoothed SPA model (solid). Raw ETFE (*).
0
Covf for filtered y Covf for prewhitened u
0.15 1.5
-5
Amplitude [dB]
1
0.1 -10
0.5
-15
0.05
0
-20
0 -0.5
-20 -10 0 10 20 -20 -10 0 10 20 -25
4 5 6 7 8 9 10 11
Frequency [Hz]
Smoothed SPA model (solid). Raw ETFE (*).
0.6 Correlation from u to y (prewh) 0.15 Impulse response estimate 150
Phase [degree]
0.4 0.1
100
0.2 0.05
0 0 50
-0.2 -0.05
-20 -10 0 10 20 -20 -10 0 10 20
0
4 5 6 7 8 9 10 11
Frequency [Hz]
11
D.E. Rivera, Introduction to System Identification, ChE 494/598, January 20, 2004
Prediction-Error Family
Prediction-Error Model of Models
Structures
Smoothing, Filtering, Prediction e
C(z)
D(z)
u B(z) −nk 1 y
z +
F(z) + A(z)
B(z) C(z)
A(z)y(t) = u(t − nk) + e(t)
F (z) D(z)
A(z)y(t) = u(t − nk) + e(t) leads to the well-established linear least-squares solution
F (z) D(z) −1
1 N
1 N
y(t) = p̃(z)u(t) + p̃e(z)e(t) θ̂ = ϕ(t)ϕT (t) ϕ(t)y(t)
N t=1 N t=1
12
D.E. Rivera, Introduction to System Identification, ChE 494/598, January 20, 2004
Modeling/
• Impulse, step, and frequency responses (compare with physical insight Control
regarding process).
Control
• Scatter Plots/correlation analysis on the prediction errors (make sure they
resemble white noise).
Overhead Temperature
Solid: Raw Data; Dashed: Prefiltered Data
4
2
Reflux Flow
0
• Brief comments on uncertainty estimation from id data
-2
0 20 40 60 80 100 120 140 160 180 200
Time
• Integrated system id and PID controller design
The purpose of c-r prefiltering is to emphasize
information in the data most important for control
purposes
13
D.E. Rivera, Introduction to System Identification, ChE 494/598, January 20, 2004
ud CF Pd FC
υ REFLUX FLOW
+ -
r+ C u P + + + + y
+ FEED FLOW FEED TEMP
- F T
BOTTOMS TEMP
away" at excitation
REBOIL FEED TEMP
Temperature and
Fuel Gas Flow SP
14
D.E. Rivera, Introduction to System Identification, ChE 494/598, January 20, 2004
y1[T21]
0
Input Design Estimation Parameter
-0.02
0.02
0 100 200 300 400 500 600 700 800 Estimation
Schroeder-Phased
DFT
y2[T7]
0
SIMO Analysis Frequency-Weighted
-0.02
0x 10 -3 100 200 300 400 500 600 700 800
1
Curvefitting
u1[L]
0
PRBS and
-1
0x 10 -3 100 200 300 400 500 600 700 800
SIMO Controller Design
1
High-Order
MIMO
u2[V]
0
ARX Estimation
-1
0 100 200 300 400
Time[Min]
500 600 700 800 Random Binary
L H max
Sequence
PRBS: Specifying τdom = 5, τdom = 33, αs = 2, βs = 3, Tsettle = 165, SIMO: Single-Input, Multi-Output
and Tsampl = 2 min leads to nr = 7, Tsw = 6 min, and D = 168 min. SIMO MIMO:Multi-Input, Multi-Output
Signal magnitude set at usat = 0.001. MIMO
O O O
O
^
y(k) O O
O
O
O
O
O
O
O u(k)
O Move Horizon
Keep
controlled variables
at setpoint
p
2
min
ΓY (y(k + | k) − r(k + ))
[∆u(k),...,∆u(k+m)] =1
Move suppression Consider the dynamics of a tank mixing
+
m
Γu∆u(k + − 1) 2 fresh and brine flow streams
=1
15
D.E. Rivera, Introduction to System Identification, ChE 494/598, January 20, 2004
16