System Identification
Contents
- Tags
- Modal Analysis
System Identification
Problem Definition
The goal of a system identification is to extract a model (usually a LTI transfer function) from experimental data. The system is represented in Figure 1 with one input \(u\) and one output \(y_m\) affected by some disturbances and noise \(d\).

Figure 1: Simpler Block diagram of the SISO system identification
The goal of system identification is to compute the transfer function \(G\) from known excitation signal \(u\) and from a measure of \(y_m\).
There are different ways of obtaining a model \(G\) of the system summarized in Table 1. For mechatronics systems, frequency domain identification is the norm.
| Advantages | Disadvantages | |
|---|---|---|
| Physical Modeling | Understanding dynamics, no measurements | Low accuracy, time consuming |
| Time domain identification | Parametric models, small data sets, non-linearity, MIMO | order/structure selection can be time consuming |
| Frequency domain identification | easy, intuitive, user-defined model fitting | fitting MIMO parametric model can be difficult |
As an example, a second order plant will be used:
|
|
The sampling time of the recorded digital signal is 1ms.
Open-loop identification
In open-loop identification (Figure 2), a test signal \(u\) is used to excite the system in the frequency range of interest. The signal \(u\) can typically be a swept sine, noise or multi-sine.

Figure 2: Open Loop signal identification
The plant estimate \(\hat{G}(j\omega)\) is computed as follows: \[ \hat{G}(j\omega) = \frac{\Phi_{yu}(\omega)}{\Phi_{u}(\omega)} \] with \(\phi_{u}(\omega)\) is the spectrum of \(u\) and \(\Phi_{yu}(\omega)\) is the cross-spectrum of \(u\) and \(y\).
In Matlab, the transfer function can be extracted from the data using:
|
|
Then, the bode plot of the obtained transfer function is compared against the plant model including a 1.5 sample time delay (Figure 3).

Figure 3: Comparison of the plant transfer function with the identified FRF in Open-Loop
Verification of the Identification Quality - Coherence
In order to assess the quality of the obtained FRF, the coherence can be computed using the mscohere Matlab function.
|
|
The result for the example is shown in Figure 4. At high frequency, the measurement noise dominates and the coherence is poor.

Figure 4: Comparison of the plant transfer function with the identified FRF in Open-Loop
Closed-Loop identification
If the open-loop system is unstable, a first simple controller needs to be designed to stabilizes the system. Then, the plant can be identified from closed-loop system identification (Figure 6).

Figure 5: Closed Loop signal identification
To perform plant identification in closed-loop:
- Chose \(d_u\) (sweep sine, multi-sine, noise, …)
- Measure \(u\) and \(y\)
- Compute the process sensitivity: \[ GS(j\omega) = \frac{\Phi_{yd_u}(\omega)}{\Phi_{d_u}(\omega)} \]
- Compute the Sensitivity: \[ S(j\omega) = \frac{\Phi_{ud_u}(\omega)}{\Phi_{d_u}(\omega)} \]
- Then the plan estimate \(\hat{G}(j\omega)\) can be computed: \[ \hat{G}(j\omega) = \frac{GS(j\omega)}{S(j\omega)} \]
In Matlab, this can be done with the following code:
|
|
Multi-Input Multi-Output Plant
This can be generalized to a MIMO plant (Figure 6).

Figure 6: Closed Loop signal identification (MIMO case)
Suppose a plan with \(m\) inputs and \(n\) outputs. \(\bm{G}\) is therefore a \(n \times m\) plant, and the controller \(\bm{K}\) an \(m \times n\) system. Input sensitivity is an \(m \times m\) system: \[ \bm{S}_i = (\bm{I}_{m} + \bm{K}\bm{G})^{-1} \] And process sensitivity is an \(m \times m\) system: \[ \bm{GS} = \bm{G} (I_m + KG)^{-1} \]
And the \(n \times m\) plant can be computed using: \[ GS \cdot S^{-1} = \bm{G} (I_m + KG)^{-1} (\bm{I}_{m} + \bm{K}\bm{G}) = G \]
To estimate the full plant, \(m\) separate identification needs to be performed (one for each input):
- Chose the excitation signal for the \(i^{th}\) input: \(d_{ui}\) (sweep sine, multi-sine, noise, …)
- Measure \(u_i\) and \(\bm{y}\)
- Compute the \(i^{th}\) column of the process sensitivity (\(j\) from \(1\) to \(n\)): \[ GS_{ij}(j\omega) = \frac{\Phi_{y_jd_{ui}}(\omega)}{\Phi_{d_{ui}}(\omega)} \]
- Compute the \(i^{th}\) column of the input sensitivity (\(j\) from \(1\) to \(n\)): \[ S_{ij}(j\omega) = \frac{\Phi_{u_jd_{ui}}(\omega)}{\Phi_{d_{ui}}(\omega)} \]
When the complete \(GS\) and \(S\) matrices are identified, the plan estimate \(\hat{\bm{G}}(j\omega)\) can be computed: \[ \hat{\bm{G}}(j\omega) = \bm{GS}(j\omega) \bm{S_i}^{-1}(j\omega) \]
Design of the Excitation Signal
Introduction
There are several choices for excitation signals:
- Impulse, Steps
- Sweep Sinus
- Random noise, Periodic signals (PRBS)
- Multi-Sine
A good review is given in (Pintelon and Schoukens 2012) (chapter 5).
Random noise with specific ASD
The ASD of the measured output is:
\begin{equation} \Gamma_{y_m}(\omega) = \Gamma_d(\omega) + \Gamma_u(\omega) \cdot |G(j\omega)| \end{equation}
And we want the effect of the excitation signal to be much higher than the effect of the exogenous signals (measurement noise, input noise, disturbances).
\begin{equation} \Gamma_u(\omega) \gg \Gamma_d(\omega) \cdot |G(j\omega)|^{-1} \end{equation}
Note that \(\Gamma_d(\omega)\) can be estimated by measuring the system output in the absence of any excitation signal. The plant magnitude \(|G(j\omega)|\) can be roughly estimated from a first identification with bad coherence.
In order to design a random excitation signal with specific spectral characteristics, first a signal with an ASD equal to one is generated (i.e. white noise with unity ASD):
|
|
Then, a transfer function whose magnitude \(|G_u(j\omega)|\) has the same shape as the wanted excitation ASD \(\Gamma_u(\omega)\) is designed:
|
|
Finally lsim is used to compute the shaped excitation signal.
|
|
Choose Sampling Frequency and Duration of Excitation
The sampling frequency \(F_s\) will determine the maximum frequency \(F_{\text{max}}\) that can be estimated (see Nyquist theorem):
\begin{equation} F_{\text{max}} = \frac{1}{2} F_s \end{equation}
The duration of excitation \(T_{\text{exc}}\) will determine the minimum frequency \(F_{\text{min}}\) that can be estimated:
\begin{equation} F_{\text{min}} = \frac{1}{T_{\text{exc}}} \end{equation}
It will also corresponds to the frequency resolution \(\Delta f\):
\begin{equation} \Delta f = \frac{1}{T_{\text{exc}}} \end{equation}
In order to increase the estimation quality, averaging can be use with a longer excitation duration. A factor 10 is usually good enough, therefore the excitation time can be taken as:
\begin{equation} T_{\text{exc}} \approx \frac{10}{F_{\text{min}}} \end{equation}
Therefore, if the system has to be identified from 1Hz up to 500Hz, the sampling frequency should be:
\begin{equation} F_s = 2 F_{\text{max}} = 1\,\text{kHz} \end{equation}
Then, the excitation duration should be (10 averaging):
\begin{equation} T_{\text{exc}} = \frac{10}{1} = 10\,s \end{equation}
Multi-Sine
Multi-sine signal excitation has many advantages as compared to random noise:
- the signal power at each frequency can be precisely chosen
- the signal is periodic and therefore necessitate no windowing (therefore increasing the obtained FRF quality)
It can be generated with the following code.
|
|
The ASD of the generated signal is exactly as expected (Figure 7)
|
|

Figure 7: Amplitude Spectral Density of the multi-sine signal
In the time domain, it is shown in Figure 8.

Figure 8: Generated Multi-Sine signal
Then, the open-loop identification is performed, and the FRF is computed using the following code (not that no window is being used!). Only the first period (here of 1s) is discarded to remove transient effects.
|
|
The obtained FRF is shown in Figure 9. The quality of the obtained FRF is only good in the defined range.

Figure 9: Obtained FRF using the multi-sine excitation signal
generatemultisine - Matlab Function
The synthesis of multi-sine with minimal “crest factor” is taken from (Schroeder 1970).
The Matlab code is adapted from here.
|
|