Rank Considerations for the Observer-Kalman System Identification Procedure

Reading Time: 4 minutes

Last time, we looked in detail at the derivation of the OKID procedure for finding the impulse response of a system from arbitrary input-output data. However, there are some specificities to consider when collecting data, and we can derive these by looking at the rank of the matrices involved.

In this article, we’ll reconsider how the quality and uniqueness of the solution for an ordinary least-squares problem is affected by the ranks of the matrices involved. Based on that, we’ll derive a formula for determining the number of measurements we need to find a good estimate of the Markov parameter matrix.

The Result

Let’s jump to the result real quick here and then look at how it is derived. Assume that we want to determine the Markov parameters

(1)   \begin{equation*} \mathbf{M} =   \begin{bmatrix}     \mathbf{C} \mathbf{A}^{l-1} \mathbf{B} &     \ldots     \mathbf{C} \mathbf{B} &     \mathbf{D}   \end{bmatrix} \end{equation*}

of order l for a system with m inputs and p outputs.

Schematic of a Multiple-Input, Multiple-Output (MIMO) System

The number of measurement points required is given by

(2)   \begin{equation*}   n = om + \left[o\left(m+p\right)+1\right] l \end{equation*}

Here, o is the oversampling factor, which gives the number of data points we have per entry in the Markov parameter matrix. We need this oversampling to average out measurement error due to noise, and thus the larger the oversampling factor, the higher the quality of our estimate for the Markov parameter matrix.

On the other hand, a higher oversampling factor also means that we can either

  • increase the number of measurements while keeping the order of our Markov parameter matrix constant, or
  • decrease the order of our Markov parameter matrix while keeping the number of measurements.

A lower order of the Markov parameter matrix may decrease the quality of the estimate we get from the Eigensystem Realisation Algorithm. A higher number of measurements possibly increases the measurement effort and time.

Rank Considerations for OKID

Let’s review the central equation of the OKID with observer:

(3)   \begin{equation*}   \underbrace{\begin{bmatrix}     \mathbf{y}_{l} &     \mathbf{y}_{l+1} &     \cdots &     \mathbf{y}_{n-1}   \end{bmatrix}}_{=:\mathbf{Y}} \\   \approx \\   \mathbf{\tilde{M}}_l   \underbrace{\begin{bmatrix}     \mathbf{u}_0 & \cdots &\mathbf{u}_{n-l-1} \\     \mathbf{y}_0 & \cdots &\mathbf{y}_{n-l-1} \\     \vdots & \ddots & \vdots \\     \mathbf{u}_{l-1} & \cdots &\mathbf{u}_{n-2} \\     \mathbf{y}_{l-1} & \cdots &\mathbf{y}_{n-2} \\     \mathbf{u}_{l} & \cdots &\mathbf{u}_{n}   \end{bmatrix}}_{=:\mathbf{\tilde{U}}} \end{equation*}

Now have a look at the dimensions of these matrices:

  • \mathbf{Y} \in \mathbb{R}^{p \times \left(n-l\right)}
  • \mathbf{\tilde{M}} \in \mathbb{R}^{p \times \left[m+\left(m+p\right)l\right]}
  • \mathbf{\tilde{U}} \in \mathbb{R}^{\left[m+\left(m+p\right)l\right] \times \left(n-l\right)}

Thus, we have p\left[m+\left(m+p\right)l\right] unknowns and p\left(n-l\right) equations. Looking back at basic linear algebra, thus we know that we need

(4)   \begin{equation*} n-l = m+\left(m+p\right)l \end{equation*}

to hold for the solution to be uniquely determined. We might even need more than that, as this assumes that the measurement data is rich enough so that Equation 3 does not contain linearly dependent rows. However, in any case, the number of our measurements must be at least as large as given by Equation 4.

What happens if we have less measurements than this? Well, in this case the equation is not sufficiently determined, and there are arbitrarily many solutions \mathbf{\tilde{M}} to the equation. The ordinary least-squares approach will deliver a solution, but it is not clear whether that solution accurately describes the system we want to identify — although it will describe a system that will provide the same output given the inputs.

Eliminating Noise by Oversampling

However, if we follow Equation 4 exactly, i.e. if we have exactly as many measurements as specified by this equation, we will also have an exact solution. This means that we will exactly incorporate all the measurement noise into our Markov parameters. Usually, we do not want that. Instead, we want to average out that measurement noise by having multiple samples.

That means that we will need more than the number of measurements given by Equation 4 — a lot more. To quantify this number, we’ll consider an oversampling factor o. This factor gives us the number of samples per parameter we want to have. It also gives the factor by which we can diminish the influence of the measurement noise onto our estimate.

Now, if we want to oversample each parameter by factor o, we need o equations for each parameter. Thus, the following equation must hold

(5)   \begin{equation*} n-l = o\left[m+\left(m+p\right)l\right] \end{equation*}

Solving that equation for n, we get our final result, given in Equation 1.

Impact of Using an Observer

Clearly, this is the result when we use an observer for identifying the Markov parameters. If we have a system which already is sufficiently stable, we do not need the observer approach. In that case, we have a much simpler equation:

(6)   \begin{equation*}   \underbrace{\begin{bmatrix}     \mathbf{y}_{l} &     \mathbf{y}_{l+1} &     \cdots &     \mathbf{y}_{n-1}   \end{bmatrix}}_{=:\mathbf{Y}} \\   \approx \\   \mathbf{M}_l   \underbrace{\begin{bmatrix}     \mathbf{u}_0 & \cdots &\mathbf{u}_{n-l-1} \\     \vdots & \ddots & \vdots \\     \mathbf{u}_{l} & \cdots &\mathbf{u}_{n}   \end{bmatrix}}_{=:\mathbf{U}} \end{equation*}

Here we have m\left(l+1\right) rows in \mathbf{U}, so that the following relationship must hold for an oversampling factor o:

(7)   \begin{equation*} n = o m \left(l+1\right) + l \end{equation*}

This is smaller than the number required for the observer approach, as we do not have to determine many less entries of the Markov parameters. Thus, we may safe some measurement effort if we have a stable system.

Conclusions

It is quite important that we have a sufficient number of measurements

  • to get a uniquely determined set of Markov parameters, and
  • to properly average out our measurement noise.

We can get the number of measurements we need by rank considerations of our basic equations and a simple oversampling approach. If we have a sufficiently stable system, we can avoid using the observer approach and thus reduce the number of measurements required while keeping the order of the Markov parameter set constant.