Algorithm Search⌘K

Modeladvanced

Hammerstein-Wiener model

Also called block-oriented model, Hammerstein model, Wiener model.

A nonlinear model made of static nonlinear blocks in series with a linear dynamic block, before it, after it or both.

A Hammerstein-Wiener model is a nonlinear dynamic model made of three blocks in series: a static nonlinearity ff on the input, a linear time-invariant system GG, and a static nonlinearity gg on the output. The two static blocks have no memory, so all the dynamics are in the linear block, and all the nonlinearity is in the static blocks. With gg equal to the identity it is a Hammerstein system, which describes, for example, an actuator with a nonlinear gain in front of a linear plant. With ff equal to the identity it is a Wiener system, which describes a linear plant read by a nonlinear sensor. The model is a small step away from a linear model: the linear block can be an ARX model or an output error model, and the nonlinear blocks are curves of one variable. It is a common member of the block-oriented structures, which also include the Wiener-Hammerstein sandwich (linear, static nonlinear, linear) and feedback connections.

The machine

Signals. Time is discrete, with sampling period hh. The input is uku_k and the output is yky_k. In the basic form both are scalars; for several inputs and outputs, ff and gg act on each channel and GG is a transfer function matrix.

The blocks. The model is

wk=f(uk),zk=G(q) wk,yk=g(zk)+ek,w_k = f(u_k), \qquad z_k = G(q)\, w_k, \qquad y_k = g(z_k) + e_k,

where qq is the shift operator, G(q)=B(q)/F(q)G(q) = B(q)/F(q) is a rational transfer function or a state-space model xk+1=Axk+Bwkx_{k+1} = A x_k + B w_k, zk=Cxk+Dwkz_k = C x_k + D w_k, and eke_k is measurement noise. The intermediate signals ww and zz are not measured.

Parametrization. The static blocks are written as sums of known basis functions, f(u)=∑l=1rclφl(u)f(u) = \sum_{l=1}^{r} c_l \varphi_l(u) and g(z)=∑l=1sdlψl(z)g(z) = \sum_{l=1}^{s} d_l \psi_l(z), for example polynomials, piecewise linear functions with fixed break points, or a saturation and a dead zone with unknown limits. Some methods parametrize the inverse g−1g^{-1} instead, which needs gg to be invertible.

Normalization. The blocks are not unique. For every α≠0\alpha \ne 0, the pair (αf,G/α)(\alpha f, G / \alpha) gives the same zz, and for every β≠0\beta \ne 0, (βG,z↦g(z/β))(\beta G, z \mapsto g(z / \beta)) gives the same yy. Constant offsets can also move between blocks. A model is fixed by a normalization, such as c1=1c_1 = 1 or ∥c∥=1\lVert c \rVert = 1 with a sign rule, and the same for gg, or a unit static gain of GG.

What it counts

  • Parameters. The linear block has nb+nfn_b + n_f parameters, or the entries of a state-space model of order nn. The static blocks have rr and ss parameters. Two of these are fixed by the normalization.
  • Cost of a simulation. One step costs one evaluation of ff, one update of the linear block, and one evaluation of gg: O(n+r+s)O(n + r + s) operations in the real RAM.
  • Identification cost. It depends on the method. A linear regression with products of parameters costs one least squares problem with (nbr+nf)(n_b r + n_f) unknowns and an SVD of an r×nbr \times n_b matrix. A prediction error fit costs an iterative search, with one simulation of NN samples per evaluation of the criterion.
  • Data. Identification needs an input with enough amplitude levels to show the curve ff, and enough frequency content to show GG. A binary input shows only two points of ff.

Relation to other models

  • Linear models. If ff and gg are linear, the model is the linear system GG with a gain. The describing function of a static nonlinearity is a way to treat it as a gain that depends on the amplitude.
  • Order matters. The blocks do not commute. A static nonlinearity before a linear system is a different input-output map from the same nonlinearity after it, unless the nonlinearity is linear. Ordinary block diagram reduction holds only for linear blocks.
  • Wiener-Hammerstein and other structures. A static nonlinearity between two linear blocks gives the sandwich structure. A static nonlinearity in a feedback loop around a linear block gives a Lur'e system, used in absolute stability theory.
  • Volterra series. A Hammerstein system with a polynomial ff of degree rr has a Volterra series with kernels of order up to rr that are nonzero only on the diagonal. A Wiener system with a polynomial gg has kernels that are products of the impulse response of GG.
  • Nonlinear state-space and NARX models. The model is a special case of a nonlinear state-space model with linear state dynamics. A Hammerstein system with an ARX linear block is a special NARX model that is linear in products of parameters.
  • Sparse regression. SINDy fits nonlinear state equations from a library of functions; a Hammerstein system with a polynomial ff is such a model with a library of powers of the input.

Known results in the model

  • Steady state (theorem). If GG is asymptotically stable with static gain G(1)G(1) and the input is constant at aa, the output tends to g(G(1)f(a))g(G(1) f(a)). So a steady-state test shows only the composite curve, not the blocks.
  • Step responses (theorem). In a Hammerstein system, the response to a step of height aa from rest is f(a)f(a) times the step response of GG, so the shape does not depend on aa; only the size does. In a Wiener system, the shape changes with aa when gg is not linear. This gives a simple test to tell the two apart.
  • Separation by correlation (theorem). If the input has zero mean and independent, identically distributed samples, and the noise is independent of the input, the cross-correlation of uu and the output of a Hammerstein system is E[uk−τyk]=E[uf(u)]⋅γτE[u_{k-\tau} y_k] = E[u f(u)] \cdot \gamma_\tau, where γτ\gamma_\tau is the impulse response of GG. So the impulse response is found up to scale without knowing ff. For a Wiener system with a Gaussian input, Bussgang's theorem gives the same proportionality with the factor E[g′(z)]E[g'(z)].
  • Overparametrization (theorem). For a Hammerstein system with an ARX block and f=∑lclφlf = \sum_l c_l \varphi_l, the output is linear in the products bjclb_j c_l and in the coefficients of FF. Least squares on these nbrn_b r products, followed by the best rank one approximation of the nb×rn_b \times r matrix of products by the SVD, gives bb and cc up to scale. Bai (1998) gives this two-stage method for Hammerstein-Wiener systems with an invertible output nonlinearity.
  • Alternating fits can fail (theorem). Narendra and Gallman (1966) fit the linear block with ff fixed and ff with the linear block fixed, in turn. Stoica (1981) gave an example in which this iteration does not converge.
  • Nonconvex criterion. The prediction error or output error criterion is not convex in the parameters, so a search can stop at a local minimum. A good starting value from a correlation or overparametrization method helps.
  • Identifiability. Without a normalization, only the composite input-output map can be identified. With one, and with an input rich enough in amplitude and in frequency, the usual parametrizations of the blocks can be identified.

Example. Take f(u)=tanh⁡(u)f(u) = \tanh(u) and G(q)=0.5 q−1/(1−0.8 q−1)G(q) = 0.5\, q^{-1} / (1 - 0.8\, q^{-1}), with static gain 2.52.5. In the Hammerstein case (gg the identity), a step of height aa gives yk=2.5tanh⁡(a)(1−0.8k)y_k = 2.5 \tanh(a) (1 - 0.8^k). After one, two and three steps the output is 0.20.2, 0.360.36 and 0.4880.488 times its final value for every aa.

In the Wiener case with the same GG and g=tanh⁡g = \tanh, the output after one step is 0.21570.2157 times its final value for a=0.2a = 0.2, 0.28870.2887 times for a=0.5a = 0.5, and 0.76170.7617 times for a=2a = 2. The large step drives zz into the flat part of tanh⁡\tanh, so the output looks much faster. The final values are tanh⁡(2.5a)\tanh(2.5 a): 0.462120.46212, 0.848280.84828 and 0.999910.99991.

References

  1. K. S. Narendra and P. G. Gallman, An iterative method for the identification of nonlinear systems using a Hammerstein model, IEEE Transactions on Automatic Control 11(3), 546-550, 1966, the series connection of a static polynomial nonlinearity and a linear system, and the iteration that fits the two parts in turn
  2. P. Stoica, On the convergence of an iterative algorithm used for Hammerstein system identification, IEEE Transactions on Automatic Control 26(4), 967-969, 1981, the example in which the iteration of Narendra and Gallman does not converge
  3. Er-Wei Bai, An optimal two-stage identification algorithm for Hammerstein-Wiener nonlinear systems, Automatica 34(3), 333-338, 1998, the overparametrized least squares step and the SVD step that recovers the parameters of the blocks
  4. Fouad Giri and Er-Wei Bai (editors), Block-oriented Nonlinear System Identification, Lecture Notes in Control and Information Sciences 404, Springer, 2010, the survey chapters on the structures with static nonlinearities and linear blocks, and on their identification
  5. Lennart Ljung, System Identification: Theory for the User, second edition, Prentice Hall, 1999, the chapter on models for time-varying and nonlinear systems (nonlinear models built from linear blocks and static nonlinearities)

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/QKK97P/text.yaml