MSc in Computer Engineering, Cybersecurity and Artificial - - PowerPoint PPT Presentation

msc in computer engineering cybersecurity and artificial
SMART_READER_LITE
LIVE PREVIEW

MSc in Computer Engineering, Cybersecurity and Artificial - - PowerPoint PPT Presentation

MSc in Computer Engineering, Cybersecurity and Artificial Intelligence Course FDE , a.a. 2019/2020, Lecture 21 Residual generation via parameter estimation methods Prof. Mauro Franceschelli Dept. of Electrical and Electronic Engineering


slide-1
SLIDE 1

MSc in Computer Engineering, Cybersecurity and Artificial Intelligence Course FDE , a.a. 2019/2020, Lecture 21 Residual generation via parameter estimation methods

  • Prof. Mauro Franceschelli
  • Dept. of Electrical and Electronic Engineering

University of Cagliari, Italy

Wednesday 27th May 2020

1 / 28

slide-2
SLIDE 2

Outline

Introduction Parameter estimation for linear systems System order estimation

2 / 28

slide-3
SLIDE 3

Introduction

Introduction

  • In the previous lectures we have discussed how to generate residual signals via

state observers.

  • State observers are a great tool to detect and isolate additive faults, either

abrupt (step-like functions) or incipient (ramp-like functions).

  • On the other hand, multiplicative faults, i.e., faults which affect the values of

the parameters of a formal model instead of influencing directly its state variables are hard to detect via state observers.

3 / 28

slide-4
SLIDE 4

Introduction

Introduction

  • In the previous lectures we have discussed how to generate residual signals via

state observers.

  • State observers are a great tool to detect and isolate additive faults, either

abrupt (step-like functions) or incipient (ramp-like functions).

  • On the other hand, multiplicative faults, i.e., faults which affect the values of

the parameters of a formal model instead of influencing directly its state variables are hard to detect via state observers.

3 / 28

slide-5
SLIDE 5

Introduction

Introduction

  • In the previous lectures we have discussed how to generate residual signals via

state observers.

  • State observers are a great tool to detect and isolate additive faults, either

abrupt (step-like functions) or incipient (ramp-like functions).

  • On the other hand, multiplicative faults, i.e., faults which affect the values of

the parameters of a formal model instead of influencing directly its state variables are hard to detect via state observers.

3 / 28

slide-6
SLIDE 6

Introduction

Multiplicative fault model

  • Consider signal fc(k) and let it represent a component fault in the plant/system
  • Signal fu(k) and fy(k) are input and output sensors faults which we do no

4 / 28

slide-7
SLIDE 7

Introduction

Fault models

The system and sensor fault model is: ①(k + 1) = ❆①(k) + ❇(✉⋆(k) + ❢ u(k)) + ❢ c(k) ②(k) = ❈①(k) + ❢ y(k) where ✉(k) = ✉⋆(k) + ❢ u(k) and ②(k) = ② ⋆(k) + ❢ y(k).

  • We now focus on the process/component fault and assume it is of the

multiplicative kind, i.e., ❢ c(k) = δA①(k) where δA is a n × n matrix.

  • Let us consider no sensor faults for sake of simplicity, i.e., ❢ u(k) = 0 and

❢ y(k) = 0.

5 / 28

slide-8
SLIDE 8

Introduction

Fault models

The system and sensor fault model is: ①(k + 1) = ❆①(k) + ❇(✉⋆(k) + ❢ u(k)) + ❢ c(k) ②(k) = ❈①(k) + ❢ y(k) where ✉(k) = ✉⋆(k) + ❢ u(k) and ②(k) = ② ⋆(k) + ❢ y(k).

  • We now focus on the process/component fault and assume it is of the

multiplicative kind, i.e., ❢ c(k) = δA①(k) where δA is a n × n matrix.

  • Let us consider no sensor faults for sake of simplicity, i.e., ❢ u(k) = 0 and

❢ y(k) = 0.

5 / 28

slide-9
SLIDE 9

Introduction

Fault models

The system and sensor fault model is: ①(k + 1) = ❆①(k) + ❇(✉⋆(k) + ❢ u(k)) + ❢ c(k) ②(k) = ❈①(k) + ❢ y(k) where ✉(k) = ✉⋆(k) + ❢ u(k) and ②(k) = ② ⋆(k) + ❢ y(k).

  • We now focus on the process/component fault and assume it is of the

multiplicative kind, i.e., ❢ c(k) = δA①(k) where δA is a n × n matrix.

  • Let us consider no sensor faults for sake of simplicity, i.e., ❢ u(k) = 0 and

❢ y(k) = 0.

5 / 28

slide-10
SLIDE 10

Introduction

Fault models

Our fault model is now: ①(k + 1) = ❆①(k) + ❇✉(k) + δ❆①(k) ②(k) = ❈①(k)

  • Thus, a state observer would experience the fault as a change in its transient

behavior, and possibly its stability properties, because now the system dynamics modeled with matrix ❆ changed to ❆ + δ❆.

  • To identify a multiplicative fault we need a way to identify the changes in the

parameters of the system model while the plant/process is operating. To solve this issue we now introduce a simple method to identify the system dynamics from measurements on its input and output.

6 / 28

slide-11
SLIDE 11

Introduction

Fault models

Our fault model is now: ①(k + 1) = ❆①(k) + ❇✉(k) + δ❆①(k) ②(k) = ❈①(k)

  • Thus, a state observer would experience the fault as a change in its transient

behavior, and possibly its stability properties, because now the system dynamics modeled with matrix ❆ changed to ❆ + δ❆.

  • To identify a multiplicative fault we need a way to identify the changes in the

parameters of the system model while the plant/process is operating. To solve this issue we now introduce a simple method to identify the system dynamics from measurements on its input and output.

6 / 28

slide-12
SLIDE 12

Introduction

Fault models

Our fault model is now: ①(k + 1) = ❆①(k) + ❇✉(k) + δ❆①(k) ②(k) = ❈①(k)

  • Thus, a state observer would experience the fault as a change in its transient

behavior, and possibly its stability properties, because now the system dynamics modeled with matrix ❆ changed to ❆ + δ❆.

  • To identify a multiplicative fault we need a way to identify the changes in the

parameters of the system model while the plant/process is operating. To solve this issue we now introduce a simple method to identify the system dynamics from measurements on its input and output.

6 / 28

slide-13
SLIDE 13

Outline

Introduction Parameter estimation for linear systems System order estimation

7 / 28

slide-14
SLIDE 14

Parameter estimation for linear systems

Parameter estimation

Consider the next dynamical system: ①(k + 1) = ❆①(k) + ❇u(k) ②(k) = ❈①(k)

  • We consider the single input/single output (SISO) case.
  • Let the output y(k) and input u(k) be the signals measured by sensors at

regular sampling intervals.

  • We would like to estimate an equivalent model, i.e.,the coefficients of the

matrices, by using only input/output data instead of the information regarding the physical structure of the system.

8 / 28

slide-15
SLIDE 15

Parameter estimation for linear systems

Parameter estimation

Consider the next dynamical system: ①(k + 1) = ❆①(k) + ❇u(k) ②(k) = ❈①(k)

  • We consider the single input/single output (SISO) case.
  • Let the output y(k) and input u(k) be the signals measured by sensors at

regular sampling intervals.

  • We would like to estimate an equivalent model, i.e.,the coefficients of the

matrices, by using only input/output data instead of the information regarding the physical structure of the system.

8 / 28

slide-16
SLIDE 16

Parameter estimation for linear systems

Parameter estimation

Consider the next dynamical system: ①(k + 1) = ❆①(k) + ❇u(k) ②(k) = ❈①(k)

  • We consider the single input/single output (SISO) case.
  • Let the output y(k) and input u(k) be the signals measured by sensors at

regular sampling intervals.

  • We would like to estimate an equivalent model, i.e.,the coefficients of the

matrices, by using only input/output data instead of the information regarding the physical structure of the system.

8 / 28

slide-17
SLIDE 17

Parameter estimation for linear systems

Parameter estimation

Consider the next dynamical system: ①(k + 1) = ❆①(k) + ❇u(k) ②(k) = ❈①(k)

  • We consider the single input/single output (SISO) case.
  • Let the output y(k) and input u(k) be the signals measured by sensors at

regular sampling intervals.

  • We would like to estimate an equivalent model, i.e.,the coefficients of the

matrices, by using only input/output data instead of the information regarding the physical structure of the system.

8 / 28

slide-18
SLIDE 18

Parameter estimation for linear systems

Parameter estimation

Consider the next dynamical system: ①(k + 1) = ❆①(k) + ❇u(k) ②(k) = ❈①(k)

  • We consider the single input/single output (SISO) case.
  • Let the output y(k) and input u(k) be the signals measured by sensors at

regular sampling intervals.

  • We would like to estimate an equivalent model, i.e.,the coefficients of the

matrices, by using only input/output data instead of the information regarding the physical structure of the system.

9 / 28

slide-19
SLIDE 19

Parameter estimation for linear systems

Parameter estimation

Consider the next dynamical system: ①(k + 1) = ❆①(k) + ❇u(k) ②(k) = ❈①(k)

  • We consider the single input/single output (SISO) case.
  • Let the output y(k) and input u(k) be the signals measured by sensors at

regular sampling intervals.

  • We would like to estimate an equivalent model, i.e.,the coefficients of the

matrices, by using only input/output data instead of the information regarding the physical structure of the system.

9 / 28

slide-20
SLIDE 20

Parameter estimation for linear systems

Parameter estimation

Consider the next dynamical system: ①(k + 1) = ❆①(k) + ❇u(k) ②(k) = ❈①(k)

  • We consider the single input/single output (SISO) case.
  • Let the output y(k) and input u(k) be the signals measured by sensors at

regular sampling intervals.

  • We would like to estimate an equivalent model, i.e.,the coefficients of the

matrices, by using only input/output data instead of the information regarding the physical structure of the system.

9 / 28

slide-21
SLIDE 21

Parameter estimation for linear systems

Parameter estimation

Consider the next dynamical system: ①(k + 1) = ❆①(k) + ❇u(k) ②(k) = ❈①(k)

  • We consider the single input/single output (SISO) case.
  • Let the output y(k) and input u(k) be the signals measured by sensors at

regular sampling intervals.

  • We would like to estimate an equivalent model, i.e.,the coefficients of the

matrices, by using only input/output data instead of the information regarding the physical structure of the system.

9 / 28

slide-22
SLIDE 22

Parameter estimation for linear systems

Parameter estimation

  • The measured output y(k) and input u(k) are, in general, affected by noise.
  • We now consider the case where the signal to noise ratio is high.
  • If the signal to noise ratio is low, then either it is mitigated by improving the

sensing equipment or specific techniques based on Kalman filters or the so- called Frisch scheme ( which we do not cover in this course) exploiting models of the noise need to be employed.

10 / 28

slide-23
SLIDE 23

Parameter estimation for linear systems

Parameter estimation

  • The measured output y(k) and input u(k) are, in general, affected by noise.
  • We now consider the case where the signal to noise ratio is high.
  • If the signal to noise ratio is low, then either it is mitigated by improving the

sensing equipment or specific techniques based on Kalman filters or the so- called Frisch scheme ( which we do not cover in this course) exploiting models of the noise need to be employed.

10 / 28

slide-24
SLIDE 24

Parameter estimation for linear systems

Parameter estimation

  • The measured output y(k) and input u(k) are, in general, affected by noise.
  • We now consider the case where the signal to noise ratio is high.
  • If the signal to noise ratio is low, then either it is mitigated by improving the

sensing equipment or specific techniques based on Kalman filters or the so- called Frisch scheme ( which we do not cover in this course) exploiting models of the noise need to be employed.

10 / 28

slide-25
SLIDE 25

Parameter estimation for linear systems

Parameter estimation

  • The input / output discrete time model behavior can be mathematically

described from a data driven perspective as an Auto Regressive eXogenous (ARX) model of the type (in this case SISO): y(k) =

n

  • j=1

αj−1y(k − j) +

r

  • j=1

βj−1u(k − j) + ε(k) where ε(k) represents some measurement or modeling error

  • Clearly, once coefficients αj and βj are estimated, we can easily put the system

into a state space representation to then be used to design state feedback control and state observers or other model based FDI methods.

11 / 28

slide-26
SLIDE 26

Parameter estimation for linear systems

Parameter estimation

  • The input / output discrete time model behavior can be mathematically

described from a data driven perspective as an Auto Regressive eXogenous (ARX) model of the type (in this case SISO): y(k) =

n

  • j=1

αj−1y(k − j) +

r

  • j=1

βj−1u(k − j) + ε(k) where ε(k) represents some measurement or modeling error

  • Clearly, once coefficients αj and βj are estimated, we can easily put the system

into a state space representation to then be used to design state feedback control and state observers or other model based FDI methods.

11 / 28

slide-27
SLIDE 27

Parameter estimation for linear systems

Parameter estimation

  • We observe the system input and output for at least L sampling intervals
  • Our objective is to estimate a vector of parameters which we call

θ = [αn−1, . . . , α0, βn−1, . . . , β0] to build a system in state space form ˆ ①(k + 1) = ❆ˆ ①(k) + ❇u(k) ˆ y(k) = ❈ ˆ ①(k) such that the objective with N = L − n J(θ) = 1 N

L

  • k=n−1

(ˆ y(k) − y(k))2 is minimized. (n is the order of the system ˆ y(k) the predicted output (function of θ) and y(k) is the measured output)

12 / 28

slide-28
SLIDE 28

Parameter estimation for linear systems

Parameter estimation

  • We observe the system input and output for at least L sampling intervals
  • Our objective is to estimate a vector of parameters which we call

θ = [αn−1, . . . , α0, βn−1, . . . , β0] to build a system in state space form ˆ ①(k + 1) = ❆ˆ ①(k) + ❇u(k) ˆ y(k) = ❈ ˆ ①(k) such that the objective with N = L − n J(θ) = 1 N

L

  • k=n−1

(ˆ y(k) − y(k))2 is minimized. (n is the order of the system ˆ y(k) the predicted output (function of θ) and y(k) is the measured output)

12 / 28

slide-29
SLIDE 29

Parameter estimation for linear systems

Parameter estimation

  • The objective J(θ) represents a quadratic prediction error between the measured

signal y(k) and the predicted output ˆ y if to a system with estimated parameters θ as opposed to the real parameters corresponding to ❆, ❇ and ❈ matrices, with zero initial state was given the measured input u(k) for L sampling intervals.

  • Note that vector

θ = [α0, . . . , αn−1, β0, . . . , βn−1] may also contain zero elements.

13 / 28

slide-30
SLIDE 30

Parameter estimation for linear systems

Parameter estimation

  • The objective J(θ) represents a quadratic prediction error between the measured

signal y(k) and the predicted output ˆ y if to a system with estimated parameters θ as opposed to the real parameters corresponding to ❆, ❇ and ❈ matrices, with zero initial state was given the measured input u(k) for L sampling intervals.

  • Note that vector

θ = [α0, . . . , αn−1, β0, . . . , βn−1] may also contain zero elements.

13 / 28

slide-31
SLIDE 31

Parameter estimation for linear systems

Parameter estimation procedure

  • Note that by exploiting the I/O model we can impose that

y(n + 1) =α0y(1) + α1y(2), . . . , αn−1y(n) + β0u(1) + β1u(2) . . . βn−1u(n) y(n + 2) =α0ˆ y(2) + α1y(3), . . . , αn−1y(n + 1) + β0u(2) + β1u(3) . . . βn−1u(n + 1) . . . y(L) =α0y(L − n) + α1y(L − n + 2), . . . , αn−1y(L) + β0u(L − n) + β1u(L − n + 1) . . . βn−1u(L)

14 / 28

slide-32
SLIDE 32

Parameter estimation for linear systems

Parameter estimation procedure

  • By rearranging the equations, it holds

   y(n + 1) . . . y(L)    =    y(1) . . . y(n) u(1) . . . u(n) . . . ... . . . . . . ... . . . y(L − n) . . . y(l − 1) u(L − n) . . . u(l − 1)              α0 . . . αn−1 β0 . . . βn−1          

15 / 28

slide-33
SLIDE 33

Parameter estimation for linear systems

Parameter estimation procedure

  • By denoting matrices Hn(y) and Hn(u), known as Henkel matrices, where n

stands for the order of the system Hn(y) =    y(1) . . . y(n) . . . ... . . . y(L − n) . . . y(L − 1)    Hn(u) =    u(1) . . . u(n) . . . ... . . . u(L − n) . . . u(L − 1)    it holds    y(n + 1) . . . y(L)    = [Hn(y), Hn(u)] θ where θ is the vectors of parameters to be estimated.

16 / 28

slide-34
SLIDE 34

Parameter estimation for linear systems

Parameter estimation procedure

  • Now let letting Hn = [Hn(y), Hn(u)], y ⋆ = [y(n + 1), . . . , y(L)]T and

ˆ y ⋆ = Hnθ

  • Now, given that y ⋆ is a L − n element vector, let ˆ

y ⋆ be the a vector with the same dimensions representing the predicted outputs with parameters θ. It follows that the estimation error to minimize is J = 1 N

L

  • k=n−1

(ˆ y(k) − y(k))2 = 1 N ˆ y ⋆ − y ⋆2

17 / 28

slide-35
SLIDE 35

Parameter estimation for linear systems

Parameter estimation procedure

  • Clearly, it follows

J(θ) = 1 N Hnθ − y ⋆2

  • Thus we wish to find the argument θ which minimizes J(θ), i.e,

arg min

θ J(θ) = arg min θ Hnθ − y ⋆2

  • The above optimization problem is a standard least-square minimization

problem where θ is the unknown.

18 / 28

slide-36
SLIDE 36

Parameter estimation for linear systems

Parameter estimation procedure

  • Clearly, it follows

J(θ) = 1 N Hnθ − y ⋆2

  • Thus we wish to find the argument θ which minimizes J(θ), i.e,

arg min

θ J(θ) = arg min θ Hnθ − y ⋆2

  • The above optimization problem is a standard least-square minimization

problem where θ is the unknown.

18 / 28

slide-37
SLIDE 37

Parameter estimation for linear systems

Parameter estimation procedure

  • Clearly, it follows

J(θ) = 1 N Hnθ − y ⋆2

  • Thus we wish to find the argument θ which minimizes J(θ), i.e,

arg min

θ J(θ) = arg min θ Hnθ − y ⋆2

  • The above optimization problem is a standard least-square minimization

problem where θ is the unknown.

18 / 28

slide-38
SLIDE 38

Parameter estimation for linear systems

Parameter estimation procedure

  • Since

J(θ) = Hnθ − y ⋆2 = (Hnθ − y ⋆)T(Hnθ − y ⋆) = θTHT

n Hnθ − 2y ⋆THnθ + y ⋆Ty ⋆

  • The minimum of J(θ) is obtained for ∇J(θ) = 0, thus

∇J(θ) = 2HT

n Hnθ − 2HT n y ⋆ = 0

  • and finally

θ = (HT

n Hn)−1HT n y ⋆ = H+ n y ⋆

19 / 28

slide-39
SLIDE 39

Parameter estimation for linear systems

Parameter estimation procedure

  • Since

J(θ) = Hnθ − y ⋆2 = (Hnθ − y ⋆)T(Hnθ − y ⋆) = θTHT

n Hnθ − 2y ⋆THnθ + y ⋆Ty ⋆

  • The minimum of J(θ) is obtained for ∇J(θ) = 0, thus

∇J(θ) = 2HT

n Hnθ − 2HT n y ⋆ = 0

  • and finally

θ = (HT

n Hn)−1HT n y ⋆ = H+ n y ⋆

19 / 28

slide-40
SLIDE 40

Parameter estimation for linear systems

Parameter estimation procedure

  • Since

J(θ) = Hnθ − y ⋆2 = (Hnθ − y ⋆)T(Hnθ − y ⋆) = θTHT

n Hnθ − 2y ⋆THnθ + y ⋆Ty ⋆

  • The minimum of J(θ) is obtained for ∇J(θ) = 0, thus

∇J(θ) = 2HT

n Hnθ − 2HT n y ⋆ = 0

  • and finally

θ = (HT

n Hn)−1HT n y ⋆ = H+ n y ⋆

19 / 28

slide-41
SLIDE 41

Parameter estimation for linear systems

Parameter estimation procedure

  • Thus, the estimated paramters of the linear systems are

θ = (HT

n Hn)−1HT n y ⋆ = H+ n y ⋆

  • All elements on the right hand side are direct measurements of the input and
  • utput in a time window of length L.
  • Also, we can repeat the estimation at each instant k simply by adding recent

measurements and removing old measurements.

20 / 28

slide-42
SLIDE 42

Parameter estimation for linear systems

Parameter estimation procedure

  • Thus, the estimated paramters of the linear systems are

θ = (HT

n Hn)−1HT n y ⋆ = H+ n y ⋆

  • All elements on the right hand side are direct measurements of the input and
  • utput in a time window of length L.
  • Also, we can repeat the estimation at each instant k simply by adding recent

measurements and removing old measurements.

20 / 28

slide-43
SLIDE 43

Parameter estimation for linear systems

Parameter estimation procedure

  • Thus, the estimated paramters of the linear systems are

θ = (HT

n Hn)−1HT n y ⋆ = H+ n y ⋆

  • All elements on the right hand side are direct measurements of the input and
  • utput in a time window of length L.
  • Also, we can repeat the estimation at each instant k simply by adding recent

measurements and removing old measurements.

20 / 28

slide-44
SLIDE 44

Parameter estimation for linear systems

Parameter estimation procedure

  • Then, it is straightforward to generate a residual signal as

r(k) = |θ(k) − θ| where θ(k) are the parameters estimated online and θ are the parameters of the process/plant which are derived from first principles or estimated offline in absence of multiplicative faults.

  • When a multiplicative faults occurs, one or more elements r(k) deviate from

zero a trigger a diagnostic logic designed ad-hoc for the process (for instance, a threshold).

21 / 28

slide-45
SLIDE 45

Parameter estimation for linear systems

Parameter estimation procedure

  • Then, it is straightforward to generate a residual signal as

r(k) = |θ(k) − θ| where θ(k) are the parameters estimated online and θ are the parameters of the process/plant which are derived from first principles or estimated offline in absence of multiplicative faults.

  • When a multiplicative faults occurs, one or more elements r(k) deviate from

zero a trigger a diagnostic logic designed ad-hoc for the process (for instance, a threshold).

21 / 28

slide-46
SLIDE 46

Parameter estimation for linear systems

Persistently exciting inputs

  • The proposed method of parameter estimation requires the system to be

actuated with an input u(k) which excites all its modes of evolution to obtain a good estimation of its parameters.

  • If we consider a constant input, then after a brief transient behavior if the

system is asymptotically stable the output will be constant and minimizing function J(θ) will not give correct coefficients. In this case, increasing the number

  • f samples behind the reaching of the steady-state for the system will worsen the

estimation accuracy.

  • Thus, the proposed method is suitable for those processes or plants which can

be persistently excited with small inputs to generate residual signals via parameter estimation.

  • The design of proper inputs depends on specific the application.

22 / 28

slide-47
SLIDE 47

Parameter estimation for linear systems

Persistently exciting inputs

  • The proposed method of parameter estimation requires the system to be

actuated with an input u(k) which excites all its modes of evolution to obtain a good estimation of its parameters.

  • If we consider a constant input, then after a brief transient behavior if the

system is asymptotically stable the output will be constant and minimizing function J(θ) will not give correct coefficients. In this case, increasing the number

  • f samples behind the reaching of the steady-state for the system will worsen the

estimation accuracy.

  • Thus, the proposed method is suitable for those processes or plants which can

be persistently excited with small inputs to generate residual signals via parameter estimation.

  • The design of proper inputs depends on specific the application.

22 / 28

slide-48
SLIDE 48

Parameter estimation for linear systems

Persistently exciting inputs

  • The proposed method of parameter estimation requires the system to be

actuated with an input u(k) which excites all its modes of evolution to obtain a good estimation of its parameters.

  • If we consider a constant input, then after a brief transient behavior if the

system is asymptotically stable the output will be constant and minimizing function J(θ) will not give correct coefficients. In this case, increasing the number

  • f samples behind the reaching of the steady-state for the system will worsen the

estimation accuracy.

  • Thus, the proposed method is suitable for those processes or plants which can

be persistently excited with small inputs to generate residual signals via parameter estimation.

  • The design of proper inputs depends on specific the application.

22 / 28

slide-49
SLIDE 49

Parameter estimation for linear systems

Persistently exciting inputs

  • The proposed method of parameter estimation requires the system to be

actuated with an input u(k) which excites all its modes of evolution to obtain a good estimation of its parameters.

  • If we consider a constant input, then after a brief transient behavior if the

system is asymptotically stable the output will be constant and minimizing function J(θ) will not give correct coefficients. In this case, increasing the number

  • f samples behind the reaching of the steady-state for the system will worsen the

estimation accuracy.

  • Thus, the proposed method is suitable for those processes or plants which can

be persistently excited with small inputs to generate residual signals via parameter estimation.

  • The design of proper inputs depends on specific the application.

22 / 28

slide-50
SLIDE 50

Outline

Introduction Parameter estimation for linear systems System order estimation

23 / 28

slide-51
SLIDE 51

System order estimation

System order estimation

  • The residual generation via parameter estimation requires a model derived from

first principles to compare the the parameters estimated online.

  • Sometimes, it is possible to estimate the system model directly from a

parameter estimation procedure if the structure of the system and its properties are known (linear, stationary system etc).

  • If we use a model estimated from input/output data to design state feedback,

state observers or generate residual signals for fault diagnosis we need to first estimate the order of the system.

24 / 28

slide-52
SLIDE 52

System order estimation

System order estimation

  • The residual generation via parameter estimation requires a model derived from

first principles to compare the the parameters estimated online.

  • Sometimes, it is possible to estimate the system model directly from a

parameter estimation procedure if the structure of the system and its properties are known (linear, stationary system etc).

  • If we use a model estimated from input/output data to design state feedback,

state observers or generate residual signals for fault diagnosis we need to first estimate the order of the system.

24 / 28

slide-53
SLIDE 53

System order estimation

System order estimation

  • The residual generation via parameter estimation requires a model derived from

first principles to compare the the parameters estimated online.

  • Sometimes, it is possible to estimate the system model directly from a

parameter estimation procedure if the structure of the system and its properties are known (linear, stationary system etc).

  • If we use a model estimated from input/output data to design state feedback,

state observers or generate residual signals for fault diagnosis we need to first estimate the order of the system.

24 / 28

slide-54
SLIDE 54

System order estimation

System order estimation

  • If there are no disturbances or noise acting on the measurements, then it can be

proven that, if we let matrix H⋆

k = [Hk(y), Hk(u), y ⋆] where k is the number of

columns of the Hankel matrices and L − k the number of rows, then

  • rank(H⋆

k ) = 2k + 1 for k < n, i.e., full rank

  • and rank(H⋆

k ) = 2k for k ≥ n, i.e., rank deficient

  • It is thus possible to estimate the order of the system by trial and error and

verifying for which k matrix H⋆,T

k

H⋆

k looses rank. Thus the order n of the system

is set for the smallest k such that rank(H⋆,T

k

H⋆

k ) = 2k.

25 / 28

slide-55
SLIDE 55

System order estimation

System order estimation

  • If there are no disturbances or noise acting on the measurements, then it can be

proven that, if we let matrix H⋆

k = [Hk(y), Hk(u), y ⋆] where k is the number of

columns of the Hankel matrices and L − k the number of rows, then

  • rank(H⋆

k ) = 2k + 1 for k < n, i.e., full rank

  • and rank(H⋆

k ) = 2k for k ≥ n, i.e., rank deficient

  • It is thus possible to estimate the order of the system by trial and error and

verifying for which k matrix H⋆,T

k

H⋆

k looses rank. Thus the order n of the system

is set for the smallest k such that rank(H⋆,T

k

H⋆

k ) = 2k.

25 / 28

slide-56
SLIDE 56

System order estimation

System order estimation

  • If there are no disturbances or noise acting on the measurements, then it can be

proven that, if we let matrix H⋆

k = [Hk(y), Hk(u), y ⋆] where k is the number of

columns of the Hankel matrices and L − k the number of rows, then

  • rank(H⋆

k ) = 2k + 1 for k < n, i.e., full rank

  • and rank(H⋆

k ) = 2k for k ≥ n, i.e., rank deficient

  • It is thus possible to estimate the order of the system by trial and error and

verifying for which k matrix H⋆,T

k

H⋆

k looses rank. Thus the order n of the system

is set for the smallest k such that rank(H⋆,T

k

H⋆

k ) = 2k.

25 / 28

slide-57
SLIDE 57

System order estimation

System order estimation

  • If there are no disturbances or noise acting on the measurements, then it can be

proven that, if we let matrix H⋆

k = [Hk(y), Hk(u), y ⋆] where k is the number of

columns of the Hankel matrices and L − k the number of rows, then

  • rank(H⋆

k ) = 2k + 1 for k < n, i.e., full rank

  • and rank(H⋆

k ) = 2k for k ≥ n, i.e., rank deficient

  • It is thus possible to estimate the order of the system by trial and error and

verifying for which k matrix H⋆,T

k

H⋆

k looses rank. Thus the order n of the system

is set for the smallest k such that rank(H⋆,T

k

H⋆

k ) = 2k.

25 / 28

slide-58
SLIDE 58

System order estimation

System order estimation

  • In practice, even a small amount of noise or numerical errors can be matrix H⋆

n

full rank thus making the estimation of the order of the system challenging.

  • To mitigate this issue, it can be shown that if modeling error/noise ε affect the

I/O model of the system, then if the number of observed samples minus the system order N = L − n is large enough, the standard deviation of ε can be estimated as σε =

  • det(H⋆,T

n

H⋆

n )

NHT

n Hn

26 / 28

slide-59
SLIDE 59

System order estimation

System order estimation

  • In practice, even a small amount of noise or numerical errors can be matrix H⋆

n

full rank thus making the estimation of the order of the system challenging.

  • To mitigate this issue, it can be shown that if modeling error/noise ε affect the

I/O model of the system, then if the number of observed samples minus the system order N = L − n is large enough, the standard deviation of ε can be estimated as σε =

  • det(H⋆,T

n

H⋆

n )

NHT

n Hn

26 / 28

slide-60
SLIDE 60

System order estimation

System order estimation

  • If we plot for each k the value of (for N = L − k):

σε(k) =

  • det(H⋆,T

k

H⋆

k )

NHT

k Hk

  • Then it can be shown that

σε(k) > σε(n) for k < n and that σε(k) ≈ σε(n) for k ≥ n

27 / 28

slide-61
SLIDE 61

System order estimation

System order estimation

  • If we plot for each k the value of (for N = L − k):

σε(k) =

  • det(H⋆,T

k

H⋆

k )

NHT

k Hk

  • Then it can be shown that

σε(k) > σε(n) for k < n and that σε(k) ≈ σε(n) for k ≥ n

27 / 28

slide-62
SLIDE 62

System order estimation

System order estimation

  • Furthermore,

σ2

ε(k) = Jk(θ) =

1 L − k

L

  • j=k−1

(ˆ y(j) − y(j))2 for the ARX model discussed before.

  • Below we find an example related to a second order linear system

28 / 28