1. Introduction
One type of nonlinear identification method is block-oriented models. They consist of linear dynamics and one or more static nonlinearities. If this nonlinearity is placed before the linear dynamics, it is called a Hammerstein model. If this nonlinearity is placed after the linear dynamics, it is called a Wiener model. If there is a nonlinearity before and after the linear dynamics, it is called a Hammerstein–Wiener model [
1,
2]. In this paper, we deal only with the Hammerstein model, whose block diagram is shown in
Figure 1.
There are many studies in the literature on modeling nonlinear systems using Hammerstein models and on the application of these models in various identification and control problems. One approach is the two-stage approximation approach, where the linear dynamics are described using the finite impulse response (FIR) in time series terms via the finite moving average (MA) model [
3]. Support vector methods (SVM) were shown to provide further possibilities to learn the nonlinearities while parameterizing the linear dynamics either by autoregressive (ARX), rational transfer function (ARMAX), or output error (OE) models.
It has been shown that the FIR and ARX cases (least-squares (LS) SVM and TSA) lead to the need for solving a weighted least-squares problem followed by a rank 1 approximation of an estimated matrix providing a Kronecker product of FIR parameters using the denominator (AR) parameters [
4]. The solution to ARMAX and OE parametrizations requires solving quadratic programs (QPs), as shown in [
5].
In this paper, a special version of the Hammerstein model is used and identified using the two-stage algorithm. The major advantage of the TSA algorithm is its ability to identify nonlinear dynamics using linear regression. Previously, this method has only worked effectively on simulated data [
3]. Our paper aims to demonstrate the effectiveness of the TSA algorithm on a real dynamical system by comparing it with the results obtained using the Hammerstein model, which was implemented in MATLAB. The linear dynamics of the system are reached using an FIR parametrization and provide a simple technique that leads to a bilinearly parameterized linear regression [
3]. We approximate a rational transfer function by truncating its infinite MA form by a finite one. These methods are compared with data from measurements of a Nissan Leaf test vehicle [
6].
The calculations in this paper were performed using MATLAB R2021b software. For Hammerstein model identifications, MATLAB built-in functions were used [
7].
2. Lateral Dynamics of an Autonomous Vehicle
The measurements were carried out using a Nissan Leaf test vehicle capable of fully autonomous driving. The data used for model identification were taken from these measurements. A high-level controller keeps the vehicle on the trajectory defined by the autonomous function, and a low-level controller determines the appropriate power steering control voltage. During the tests, this steering servo was artificially excited while the autonomous function control algorithm forced the vehicle to move in a straight line at a constant speed. The artificial excitation was a filtered pseudo random binary sequence (PRBS) signal. This is a signal with constant power within the bandwidth. The band limit is 1.59 Hz, considering the steering servo’s operating limits. Measurements were taken at five different speeds. The input to the dynamics model is therefore the steering control voltage, which is proportional to the torque delivered by the steering servo, and the output is the lateral acceleration of the vehicle. More information on the test vehicle, measurement conditions, and artificial excitation is provided in [
8]. We consider a discrete single-input single-output (SISO) Hammerstein model with input
and output
. The input nonlinearity
is assumed to be a static (memoryless) function; it is computed using a linear combination of known basis functions
and it results in
and is provided as follows:
In particular,
is set. We compute the output
passing
through the linear filter
. Finally, the output
is measured with an additive-colored noise
with delay
. More precisely,
where the transfer function
is provided in terms of a backward shift operator
(i.e.,
) as follows:
where
and
. In the sequel, we assume the following:
The orders and (, in practice), the delay from the input to the output in terms of the number of samples, and the delay of the noise are assumed to be known a priori;
The poles of the transfer function have a modulus less than 1.
3. Approximating the Hammerstein Model
The approximation of the Hammerstein model is necessary because the linear core of the Hammerstein model implemented in MATLAB is an output error model, which approximates the transfer function with a rational function. By contrast, the TSA approximates it with a moving average model. To make the two comparable, we approximate the linear core of the Hammerstein model with a moving average model.
Now consider the series expansion of the following transfer function:
This series expansion exists since the poles have a modulus less than
. The coefficients
can be recursively calculated using the method of matching coefficients, i.e.,
which provides the system of equations for finding the coefficients
. In practice, one can approximate the transfer function
using a finite sum as follows:
in other words, the Hammerstein model is ‘simplified’ using the moving average transfer function
as follows:
It is well known that a rational transfer function has priority in several ways over a moving average transfer function; nevertheless, this nonlinear model (7) makes possible the application of a simple bilinear estimation of the parameters.
Figure 2 shows the power spectrum of a Hammerstein model’s linear core, which was identified from measurement data and its approximations. The order of the numerator and denominator is three, and the order of approximations are 10, 30, 50, and 100.
4. Bilinear Parameter Estimation
Let
denote the shifted input, i.e.,
and let us rewrite Equation (7) in a more detailed form:
which is a bilinear equation in terms of the parameters
and
. This equation implies that the parameters are not unique since one can multiply one term with a nonzero constant to yield the product
and divide the other by the same constant. Without a loss of generality, we shall assume that
from now on. Equation (8) is bilinear in terms of the vectors
and
; hence, Equation (8) can be written as
where the matrix
is defined by the basis functions
and the input
as
We notice that the bilinear Equation (9) has a linear form if we replace the parameters
and
with their product:
where
is a row vector of column-wise vectorized
, and
denotes the usual Kronecker product. Now let
be the column vector of observations
and the corresponding linear system of equations is as follows:
where
and
constitute the rows of the matrix
, so
which is the subject of linear regression. The main issue here is finding the components
and
of the parameter
.
5. Two-Stage Algorithm
Let us start with the weighted LS problem; we are given the parameter
in the form
and a weighting matrix
. Consider the LS problem
under the following constraints:
, and the matrix
has a rank of
. To find the solution of Equation (14), we compute the T–derivative (
, see [
9] for details). First, recall that
, and we obtain
. If
has a full rank, then we have
.
Stage 1. The singular decomposition of , which is , , , and provides the weighting matrix , which produces the optimal solution of the nonlinear LS.
There are alternative weighting matrices for the optimal solution of the nonlinear LS problem (14), like (unweighted TSA) and , where is any positive scalar and the is the Moore–Penrose pseudoinverse of the matrix . We obtain the estimate of the parameter vector as
Stage 2. Decompose under the condition that the first nonzero entry of is positive, and . Rewrite in matrix form as follows: . Note that depends on i.e., . Consider the singular value decomposition . Denote and as the left and right singular vectors of respectively, according to the highest singular value . Compute and , where is the of the first nonzero entry of and obtain , since is assumed.
6. Results and Conclusions
The measurements were taken at five different speeds. The input of the dynamics to be identified is the excitation voltage of the steering servo, and the output is the vehicle’s lateral acceleration. In the tests, the order of the Hammerstein model was 2/3. We approximated the estimated transfer function of the Hammerstein model using an MA transfer function with an order of 100. The two-stage algorithm was also applied with an order of 10. The order of polynomial nonlinearities was 3 in all cases. In
Figure 3, the measured output is shown in blue, the output identified using the Hammerstein model is shown in red, the output identified using the Hammerstein model’s approximation is shown in green, and the output identified using the two-stage algorithm is shown in magenta. This figure shows only the first 5 s of the identification results for the 28.8 kph measurement, but all models were identified in
measurement periods.
More detailed results are shown in
Table 1, where the
and the BIC is the Bayesian information criterion.
From the results, it is clear that the Hammerstein model can be accurately approximated using a moving average transfer function, provided that the order of approximation is sufficiently high. However, using these measurements, the two-stage algorithm identified a model that was worse than the Hammerstein model, which was identified using the maximum likelihood (ML) method [
10].
Author Contributions
Conceptualization, G.T. and J.B.; methodology, D.P., G.T. and J.B.; software, G.I. and G.T.; validation, G.I. and G.T.; formal analysis, G.I. and G.T.; investigation, G.I. and G.T.; resources, D.P.; data curation, G.I. and G.T.; writing—original draft preparation, G.T.; writing—review and editing, G.I., G.T. and J.B.; visualization, G.I.; supervision, D.P. and J.B.; project administration, D.P.; funding acquisition, D.P. All authors have read and agreed to the published version of the manuscript.
Funding
This research was supported by the European Union within the framework of the National Laboratory for Autonomous Systems (RRF-2.3.1-21-2022-00002) and was also supported by the project TKP2021-NKTA of the University of Debrecen, Hungary. Project no. TKP2021-NKTA-34 was implemented with support provided by the Ministry of Culture and Innovation of Hungary from the National Research, Development and Innovation Fund, which is financed under the TKP2021-NKTA funding scheme.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The dataset is available on request from the authors.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Wills, A.; Schön, T.B.; Ljung, L.; Ninness, B. Identification of Hammerstein–Wiener models. Automatica 2013, 49, 70–81. [Google Scholar] [CrossRef]
- Giri, F.; Bai, E. Block-Oriented Nonlinear System Identification; Springer: London, UK, 2010; p. 419. [Google Scholar] [CrossRef]
- Wang, J.; Zhang, Q.; Ljung, L. Revisiting Hammerstein system identification through the two-stage algorithm for bilinear parameter estimation. Automatica 2009, 45, 2627–2633. [Google Scholar] [CrossRef]
- Castro-Garcia, R.; Suykens, J.A.K. Wiener System Identification using Best Linear Approximation within the LS-SVM framework. In Proceedings of the 2016 IEEE Latin American Conference on Computational Intelligence (LA-CCI), Cartagena, Colombia, 2–4 November 2016. [Google Scholar] [CrossRef]
- Dhaifallah, M.A.; Westwick, D.T. Support Vector Machine Identification of Output Error Hammerstein Models. IFAC Proc. Vol. 2011, 44, 13948–13953. [Google Scholar] [CrossRef]
- Rödönyi, G.; Beintema, G.I.; Tóth, R.; Schoukens, M.; Pup, D.; Kisari, Á.; Vígh, Z.; Körös, P.; Soumelidis, A.; Bokor, J. Identification of the nonlinear steering dynamics of an autonomous vehicle. IFAC-PapersOnLine 2021, 54, 708–713. [Google Scholar] [CrossRef]
- Ljung, L. System Identification Toolbox for Use with MATLAB; The MathWorks Inc.: Natick, MA, USA, 2011; p. 904. [Google Scholar]
- Pup, D.; Istenes, G.; Szauter, F.; Bokor, J. Identification of lateral dynamics of an autonomous car vehicle. In Proceedings of the 12th International Conference on Mechatronics and Control Engineering—ICMCE 2024, Budapest, Hungary, 25–27 January 2024. [Google Scholar]
- Terdik, G. Multivariate Statistical Methods: Going Beyond the Linear; Frontiers in Probability and the Statistical Sciences; Springer International Publishing: Cham, Switzerland, 2021. [Google Scholar] [CrossRef]
- Ljung, L. System Identification: Theory for the User, 2nd ed.; Prentice-Hall: Hoboken, NJ, USA, 1999; pp. 212–213. [Google Scholar]
| Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).