N4SID_and_MOESP_subspace_identification_methods
N4SID_and_MOESP_subspace_identification_methods
Abstract— Multivariable Output Error State Space (MOESP) second group consists of methods that aim at approximating
and Numerical algorithms for Subspace State Space System the state sequence of the system and use the approximated
Identification (N4SID) algorithms are two well known subspace state in a second step to estimate the system matrices. The
identification techniques discussed in this paper. Due to the use of methods that constitute the second group are the N4SID
robust numerical tools such as QR decomposition and singular
value decomposition (SVD), these identification techniques are
methods [3], [7] as well as CVA methods [1]. In both groups,
often implemented for multivariable systems. Subspace before identifying system matrices, the calculation of state
identification algorithms are attractive since the state space form vector sequences make use of measured input-output data
is highly suitable to estimate, predict, filters as well as for control only. In the identification procedure, the main step is to
design. In literature, there are several simulation studies for compute the singular value decomposition (SVD) of a block
MOESP and N4SID algorithms performed in offline and online Hankel matrix, H constructed with input-output data. The
mode. In this paper, order selection, validity and the stability for computation of SVD can be done offline or online. The offline
both algorithms for model identification of a glass tube can be easily converted to an adaptive online version for a
manufacturing process system is considered. The weighting slow time varying system such as process control system.
factor α, used in online identification is obtained from trial and
error and particle swarm optimization (PSO). Utilizing PSO, the
Subspace methods have been developed for certain classes
value of α is determined in the online identification and a more
accurate result with lower computation time is obtained. of nonlinear system such as Hammerstein [8–10], Wiener [11–
14] and bilinear [15–17]. In this paper, model identification
Keywords- subspace identification; singular value is implemented to show the effectiveness of SVD
decomposition; Hankel matrices; QR decomposition; MOESP; computation. The N4SID and MOESP subspace algorithms
N4SID are used to identify state space models of a glass tube
manufacturing process system.
I. INTRODUCTION
Subspace identification methods (SIMs) have enjoyed a
great development in both theory and practice since they can II. PROBLEM FORMULATION
identify system matrices of the state space model directly from
the input and output data. Subspace methods are based on Consider the general linear discrete time invariant state
robust numerical tools such as QR factorization and singular space model:
value decomposition (SVD) which makes them attractive from
the numerical point of view. The most influential methods are x k +1 = Ak x k + B k u k + wk (1)
Canonical Variate Analysis (CVA) proposed by [1], (2)
Multivariable Output Error State Space (MOESP) by [2] and y k = C k x k + D k u k +v k
Numerical Subspace State Space System Identification
(N4SID) by [3]. Past research has revealed that the three where x k ∈ ℜ n , y k ∈ ℜ and u k ∈ ℜ n are the system state,
ny u
⎡ uk u k +1 u k + j −1 ⎤
The goal is to estimate systems matrices A, B, C and D with ⎢ ⎥
appropriate dimensions. One important equation in the ⎢ yk y k +1 y k + j −1 ⎥
derivation of subspace state space system identification ⎢ u k +1 u k +2 uk + j ⎥
algorithms is the data equation relating (block) Hankel ⎢ ⎥
H p = ⎢ y k +1 yk + 2 y k + j ⎥. (11)
matrices constructed from the input-output data samples. The ⎢ ⎥
output block Hankel matrices are defined as: ⎢ ⎥
⎢u k +i −1 u k +i u k + j +i − 2 ⎥
⎡ y1 y 2 y3 yj ⎤ ⎢y y k +i y k + j +i −2 ⎥⎦
⎣ k +i −1
⎢ y ⎥
⎢ 2 y3 y4 y j +1 ⎥
⎢ ⎥ ⎡ u k +i uk +i+1 uk + j −1 ⎤
⎢ ⎥ ⎢ ⎥
y yi +1 yi + 2 yi + j −1 ⎥ ⎡ Yp ⎤
Y =⎢ i = . (5) ⎢ y k +i yk +i +1 y k + j −1 ⎥
⎢ yi +1 yi +2 y i +3 yi + j ⎥ ⎢⎢ Y f ⎥⎥ ⎢ u k +i+1 uk + j ⎥
⎢ ⎥ ⎣ ⎦ u k +i + 2
⎢ yi + 2 yi +3 yi + 4 yi + j +1 ⎥ ⎢ ⎥
H f = ⎢ yk +i+1 y k +i + 2 yk + j ⎥. (12)
⎢ ⎥
⎢ ⎥ ⎢ ⎥
⎢⎣ y2 i y 2i +1 y 2i +2 y 2 i + j −1 ⎥⎦ ⎢ ⎥
⎢uk +2 i−1 uk +2 i u k + j +i −2 ⎥
⎢y yk +2i yk + j +i−2 ⎥⎦
where the subscript ‘p’ and ‘f’ stand for ‘past’ and ‘future’ and ⎣ k + 2i−1
i block rows and j columns. The input block Hankel matrices
Up and Uf can also be defined in the same way. The matrix
input-output plays an important role in the problem treated in A typical state space subspace system identification
linear subspace identification and it can be obtained by algorithm involves two steps:
recursive substitution of (6) and (7).
1) Identification of the extended observability matrix and a
Y p = Γi X + H tU p (6) block triangular Toeplitz matrix.
(7) 2) Estimation of the system matrices A, B, C and D from the
Y f = Γi X + H tU f
identified observability matrix and Toeplitz matrix.
The extended observability matrix is defined as N4SID projects Y f onto [Yp ;U p ;U f ] and does a singular
value decomposition (SVD) on the part corresponding to the
⎡ C ⎤ past data, the right singular vectors are estimated as state
⎢ CA ⎥ variables and fit to the state space model. Meanwhile, the
⎢ ⎥
Γ = ⎢ CA 2 ⎥. (8) original MOESP does a QR decomposition on [U f : Y f ] and
⎢ ⎥ then a SVD on part of the R matrix. Part of the singular
⎢ ⎥ matrix is taken as Γf , based on which A and C matrices are
⎢⎣CA i −1 ⎥⎦
estimated, while B and D are estimated based on least square
fitting. As mentioned before, subspace methods are based on
The sequences of state vector, X as follows: robust numerical tools such as QR factorization and singular
value decomposition (SVD). However, they are inappropriate
X = (xk xk +1 x k + 2 … x k + j −1 ). (9) for online identification because of the computational
complexity and storage costs. Thus, an online subspace
The lower block Toeplitz matrix, H, is defined as: identification which consist of recursive algorithm is
developed. A significant contribution is the ability of the
0 0⎤ algorithm to update the estimation for the extended
⎡ D
observability matrix online when new data arrives.
⎢ CB
⎢ D 0 ⎥⎥
H = ⎢ CAB CB 0 ⎥. (10)
⎢ ⎥
⎢ ⎥ A. Offline subspace identification method [18]
⎢⎣CAi − 2 B CAi −3 B D ⎥⎦
The block Toeplitz matrix, H is the concatenation of Hp and Step 1: Calculate U and S in the SVD of H as shown in
Hf, defined by 11 and 12. equations (8) and (9). Singular value decomposition produces
141
Authorized licensed use limited to: INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR. Downloaded on April 20,2025 at 15:37:17 UTC from IEEE Xplore. Restrictions apply.
2013 IEEE 9th International Colloquium on Signal Processing and its Applications, 8 - 10 Mac. 2013, Kuala Lumpur, Malaysia
a diagonal matrix S, of the same dimension as H and with III. SIMULATION RESULTS
nonnegative diagonal elements in decreasing order.
A. Offline subspace identification
⎡U U 12 ⎤ ⎡ S11 0⎤ T
H = U ⋅ S ⋅ V = ⎢ 11
T
⎥⋅⎢ ⋅V
⎣U 21 U 22 ⎦ ⎣ 0 0⎥⎦ There are several ways to estimate the order of the system.
In this project, singular value decomposition (SVD) is applied.
Figure 1(a) and (b) show the SVD based on N4SID and
Step 2: Calculate the SVD of U 12T ⋅ U 11 ⋅ S11 MOESP method respectively. The best order for both N4SID
and MOESP are six.
⎡S 0⎤ ⎡ VqT ⎤
[
U 12T ⋅ U 11 ⋅ S11 = U q ]
U q⊥ ⎢ q ⎢ T ⎥
0⎥⎦ ⎣(Vq⊥ ) ⎦
⎣0
U k ⋅ S k ⋅ VkT = [α ⋅ U k −1 ⋅ S k −1 column]
⎡U U 12 ⎤ ⎡ S11 0⎤
U k ⋅ S k = ⎢ 11 ⎥⋅⎢
⎣U 21 U 22 ⎦ ⎣ 0 0⎥⎦
142
Authorized licensed use limited to: INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR. Downloaded on April 20,2025 at 15:37:17 UTC from IEEE Xplore. Restrictions apply.
2013 IEEE 9th International Colloquium on Signal Processing and its Applications, 8 - 10 Mac. 2013, Kuala Lumpur, Malaysia
The best fitness for output 1 and 2 are 96.71% and 84.79%
respectively based on N4SID. Meanwhile, for MOESP
method, the best fitness for output 1 and output 2 are 93.07%
and 80.23% respectively. Figure 3 (a) and (b) show poles of the
system based on N4SID and MOESP respectively. The
stability is determined by checking the poles of the system or
eigenvalues of the A matrices. The eigenvalues must be inside
a unit circle. All the eigenvalues are in the unit circle, hence the
systems for both methods are stable.
(a)
(a)
(b)
Figure 5. (a) Validation based on N4SID (b) Validation based on MOESP
(a) (b)
Figure 4. (a) Singular Value Decomposition (SVD) based on N4SID (b) SVD
based on MOESP
(b)
Figure 6. (a) Poles of the estimated system based on N4SID (b) Poles of the
estimated system based on MOESP
143
Authorized licensed use limited to: INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR. Downloaded on April 20,2025 at 15:37:17 UTC from IEEE Xplore. Restrictions apply.
2013 IEEE 9th International Colloquium on Signal Processing and its Applications, 8 - 10 Mac. 2013, Kuala Lumpur, Malaysia
In this paper, an offline and online subspace identification [11] D. Westwick and M. Verhaegen, “Identifying MIMO Wiener
models of a glass tube manufacturing process system are systems using subspace model identification methods,” Signal
obtained based on two subspace algorithms which are N4SID Processing, vol. 52, no. 2, pp. 235–258, 1996.
and MOESP. For offline identification, the order of the system
is fixed and for the online identification, it can track every [12] C. T. Chou, “Identification of Wiener models with process noise,”
change of order and system matrices in the system. The in Electrical Engineering, 1999, no. December, pp. 598–603.
weighting factor, α, in online identification can be determined
by using particle swarm optimization. In term of stability, since [13] C. Xi, F. Hai-tao, and W. Xin, “Subspace Identification for Wiener
Systems with General Nonlinearity,” System, pp. 1696–1701, 2011.
both results are within a unit circle, yields a stable system.
144
Authorized licensed use limited to: INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR. Downloaded on April 20,2025 at 15:37:17 UTC from IEEE Xplore. Restrictions apply.
2013 IEEE 9th International Colloquium on Signal Processing and its Applications, 8 - 10 Mac. 2013, Kuala Lumpur, Malaysia
145
Authorized licensed use limited to: INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR. Downloaded on April 20,2025 at 15:37:17 UTC from IEEE Xplore. Restrictions apply.