Next Article in Journal
Evaluation of Autonomous Vehicle Takeover Performance in Work-Zone Environment
Previous Article in Journal
Learning Factories in Practice: The Example and Development Proposal of Mini Company Located in the Automotive Science Park Based on International Best Practices
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Hammerstein Model Identification for Autonomous Vehicle Dynamics by Two-Stage Algorithm †

1
Vehicle Industry Research Center, Széchenyi István University, Egyetem tér 1, 9026 Győr, Hungary
2
Department of Information Technology, Faculty of Informatics, University of Debrecen, Egyetem tér 1, 4032 Debrecen, Hungary
3
Institute for Computer Science and Control (SZTAKI), Kende u. 13-17, 1111 Budapest, Hungary
*
Author to whom correspondence should be addressed.
Presented at the Sustainable Mobility and Transportation Symposium 2024, Győr, Hungary, 14–16 October 2024.
Eng. Proc. 2024, 79(1), 54; https://doi.org/10.3390/engproc2024079054
Published: 6 November 2024
(This article belongs to the Proceedings of The Sustainable Mobility and Transportation Symposium 2024)

Abstract

:
In this paper, the nonlinear identification (ID) of the lateral dynamics of a road vehicle is presented. The mathematical description of lateral dynamics is crucial for developing various self-driving functions. One method of describing dynamics is system identification from measured data. During the measurements, the steering servo of a test vehicle kept in straight-line motion by a self-driving function was artificially excited. A Hammerstein–Wiener model was successfully applied for the identification of these measurements. A nonlinear estimator was used during the fitting, which needed high computing power. For the Hammerstein–Wiener model, we used the two-stage algorithm (TSA) with a bilinear estimation method, which makes it possible to apply linear regression. We compared these methods during simulations and real data.

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 u and output y . The input nonlinearity f is assumed to be a static (memoryless) function; it is computed using a linear combination of known basis functions ϕ j t , and it results in x t = f u t and is provided as follows:
x t = f u t = j = 1 m a j ϕ j u t
In particular, ϕ j u = u j is set. We compute the output y passing x t through the linear filter B q / F q . Finally, the output y t is measured with an additive-colored noise v t d with delay d . More precisely,
y t = B q F q x t n k + v t d ,
where the transfer function B q / F q is provided in terms of a backward shift operator q (i.e., q 1 x t = x t 1 ) as follows:
B q = k = 0 n b β k q k , F q = 1 k = 1 n φ φ k q k ,
where β 0 0 and φ n φ 0 . In the sequel, we assume the following:
  • The orders n b and n φ ( n β < n φ , n β = n φ 1 in practice), the delay n k from the input to the output in terms of the number of samples, and the delay d of the noise v are assumed to be known a priori;
  • The poles of the transfer function B / F 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:
B q F q = j = 0 c j q j
This series expansion exists since the poles have a modulus less than 1 . The coefficients c j can be recursively calculated using the method of matching coefficients, i.e.,
B q = F q j = 0 c j q j ,
which provides the system of equations for finding the coefficients c j . In practice, one can approximate the transfer function B / F using a finite sum as follows:
B q F q j = 0 n c c j q j = C q ,
in other words, the Hammerstein model is ‘simplified’ using the moving average transfer function C q as follows:
y t = C q x t n k + v t d
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 u n k denote the shifted input, i.e., u n k t = u t n k , and let us rewrite Equation (7) in a more detailed form:
y t = j = 0 n c k = 1 m c j a k ϕ k u n k t j + v t d ,
which is a bilinear equation in terms of the parameters a R m and c R n c . This equation implies that the parameters are not unique since one can multiply one term with a nonzero constant to yield the product c j a k and divide the other by the same constant. Without a loss of generality, we shall assume that c = 1 from now on. Equation (8) is bilinear in terms of the vectors a = a 1 , , a m and c = c 1 , , c n c ; hence, Equation (8) can be written as
y t = c Φ t a + v t d ,
where the matrix Φ R n c × m is defined by the basis functions ϕ j and the input u n k as
Φ t = ϕ 1 u n k t 1 ϕ 2 u n k t 1 ϕ 1 u n k t 2 ϕ 2 u n k t 2 ϕ m u n k t 1 ϕ m u n k t 2 ϕ 1 u n k t n c ϕ 2 u n k t n c ϕ m u n k t n c
We notice that the bilinear Equation (9) has a linear form if we replace the parameters a and c with their product:
y t = c Φ t a + v t d = v e c Φ t a c + v t d
where v e c Φ t is a row vector of column-wise vectorized Φ t , and denotes the usual Kronecker product. Now let y R n be the column vector of observations y 1 ,   y 2 , y n , and the corresponding linear system of equations is as follows:
y = Ψ n a c + v = Ψ n v e c c a + v = Ψ n β + v ,
where β = a c and v e c Φ t constitute the rows of the matrix Ψ n R n × m n c , so
Ψ n = v e c Φ 1 v e c Φ n ,
which is the subject of linear regression. The main issue here is finding the components a and c of the parameter β .

5. Two-Stage Algorithm

Let us start with the weighted LS problem; we are given the parameter β R m n c in the form β = a c and a weighting matrix W R n × n . Consider the LS problem
1 2 inf a , c y Ψ n β W y Ψ n β
under the following constraints: c 2 = 1 , and the matrix B = c a R n c × m has a rank of 1 . To find the solution of Equation (14), we compute the T–derivative ( D β f β = f β D β , see [9] for details). First, recall that Ψ n R n × m n c , and we obtain Ψ n W y = Ψ n W Ψ n β . If Ψ n W Ψ n has a full rank, then we have β = Ψ n W Ψ n 1 Ψ n W y .
Stage 1. The singular decomposition of Ψ n , which is Ψ n = U Ψ S Ψ V Ψ , U Ψ R n × m n c , V Ψ R m n c × m n c , and S Ψ R m n c × m n c , provides the weighting matrix W = U Ψ S Ψ 2 U Ψ , 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 W = I (unweighted TSA) and W = α Ψ n Ψ n + , where α is any positive scalar and the Ψ n Ψ n + is the Moore–Penrose pseudoinverse of the matrix Ψ n Ψ n . We obtain the estimate of the parameter vector β as β ^ = Ψ n W Ψ n 1 Ψ n W y .
Stage 2. Decompose β ^ = v e c c ^ a ^ under the condition that the first nonzero entry of c is positive, and a ^ 2 = 1 . Rewrite β ^ in matrix form as follows: B ^ R n c × m . Note that B ^ depends on W , i.e., B ^ = B ^ W . Consider the singular value decomposition B ^ = U n c × m S B V m × m . Denote u 1 and v 1 as the left and right singular vectors of B ^ W , respectively, according to the highest singular value s 1 . Compute a ^ = ϵ 1 v 1 and c ^ = ϵ 1 s 1 u 1 , where s 1 ϵ 1 is the s i g n of the first nonzero entry of u 1 , and obtain B ^ = c ^ a ^ , since B = 1 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 100   s measurement periods.
More detailed results are shown in Table 1, where the f i t = 100 1 y y ^ / y y ¯ , 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

  1. Wills, A.; Schön, T.B.; Ljung, L.; Ninness, B. Identification of Hammerstein–Wiener models. Automatica 2013, 49, 70–81. [Google Scholar] [CrossRef]
  2. Giri, F.; Bai, E. Block-Oriented Nonlinear System Identification; Springer: London, UK, 2010; p. 419. [Google Scholar] [CrossRef]
  3. 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]
  4. 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]
  5. 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]
  6. 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]
  7. Ljung, L. System Identification Toolbox for Use with MATLAB; The MathWorks Inc.: Natick, MA, USA, 2011; p. 904. [Google Scholar]
  8. 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]
  9. 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]
  10. Ljung, L. System Identification: Theory for the User, 2nd ed.; Prentice-Hall: Hoboken, NJ, USA, 1999; pp. 212–213. [Google Scholar]
Figure 1. A discrete Hammerstein model.
Figure 1. A discrete Hammerstein model.
Engproc 79 00054 g001
Figure 2. A discrete Hammerstein model.
Figure 2. A discrete Hammerstein model.
Engproc 79 00054 g002
Figure 3. The fit of the identified models for the 28.8 kph measurement dataset.
Figure 3. The fit of the identified models for the 28.8 kph measurement dataset.
Engproc 79 00054 g003
Table 1. The fit of the identified models.
Table 1. The fit of the identified models.
Vehicle’s SpeedFit/BIC of
Hammerstein Model
Fit/BIC of
Hammerstein
Model’s
Approximation
Fit/BIC of TSA Model
10.8   k p h 79.46 % / 28768 79.50 % / 28779 24.89 % / 22285
14.4   k p h 75.84 % / 26335 75.83 % / 26332 48.25 % / 22526
18.0   k p h 58.46 % / 22554 58.42 % / 22549 40.64 % / 20769
25.2   k p h 58.16 % / 24658 58.16 % / 24659 40.67 % / 22911
28.8   k p h 61.36 % / 24963 61.36 % / 24963 45.67 % / 23258
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.

Share and Cite

MDPI and ACS Style

Istenes, G.; Pup, D.; Terdik, G.; Bokor, J. Hammerstein Model Identification for Autonomous Vehicle Dynamics by Two-Stage Algorithm. Eng. Proc. 2024, 79, 54. https://doi.org/10.3390/engproc2024079054

AMA Style

Istenes G, Pup D, Terdik G, Bokor J. Hammerstein Model Identification for Autonomous Vehicle Dynamics by Two-Stage Algorithm. Engineering Proceedings. 2024; 79(1):54. https://doi.org/10.3390/engproc2024079054

Chicago/Turabian Style

Istenes, György, Dániel Pup, György Terdik, and József Bokor. 2024. "Hammerstein Model Identification for Autonomous Vehicle Dynamics by Two-Stage Algorithm" Engineering Proceedings 79, no. 1: 54. https://doi.org/10.3390/engproc2024079054

APA Style

Istenes, G., Pup, D., Terdik, G., & Bokor, J. (2024). Hammerstein Model Identification for Autonomous Vehicle Dynamics by Two-Stage Algorithm. Engineering Proceedings, 79(1), 54. https://doi.org/10.3390/engproc2024079054

Article Metrics

Back to TopTop