Polynomial model families
All families in GreenBox write the output as a sum of candidate terms (regressors) φi, each a product of lagged signals, multiplied by an unknown coefficient θi:
y(k) = Σi θi φi(k) + e(k), e.g. φ = y(k−1), u(k−2), y(k−1)·u(k−1), u(k−1)², …
The model is nonlinear in the signals but linear in the parameters, so θ is estimated by least squares, and the structure (which terms to keep) is chosen with the forward orthogonal least squares algorithm and the Error Reduction Ratio (ERR), the fraction of output variance explained by each term [Kor88] [Bil89] [Che89]. General references are the books by Ljung [Lju99] and Billings [Bil13]. The families differ only in which signals and powers may appear.
| Family | Past outputs y | Nonlinear terms | Noise model e | Typical use |
|---|---|---|---|---|
| FIR | no | no | no | linear, stable systems with short memory |
| ARX | yes | no | no | linear dynamics, compact models |
| ARMAX | yes | no | yes | linear dynamics with coloured noise |
| Volterra | no | yes | no | nonlinear systems with fading memory, no feedback |
| NARX | yes | yes | no | general nonlinear dynamics |
| NARMAX | yes | yes | yes | nonlinear dynamics with coloured or nonlinear noise |
FIR: finite impulse response
y(k) = θ0 + Σj=0..nu bj u(k−j)
The output is a weighted window of past inputs: the truncated impulse response of a linear system. FIR models are always stable and easy to estimate, but need many lags when the system responds slowly, because they have no output feedback [Lju99].
ARX and ARMAX: linear models with output feedback
y(k) = Σi ai y(k−i) + Σj bj u(k−j) + e(k) [+ Σl cl e(k−l) for ARMAX]
Feeding back past outputs captures slow or oscillatory dynamics with a few coefficients. ARMAX adds a moving-average model of the noise, which avoids biased parameters when the disturbance is coloured [Lju99].
Volterra series (truncated)
y(k) = h0 + Σj h1(j) u(k−j) + Σj₁≤j₂ h2(j₁,j₂) u(k−j₁) u(k−j₂) + …
The nonlinear extension of the impulse response: kernels of increasing order multiply products of past inputs. It represents systems with fading memory without output feedback [Sch80], but the number of terms grows quickly with degree and memory, which is exactly where a complexity criterion matters.
NARX and NARMAX
y(k) = F[ y(k−1), …, y(k−ny), u(k−1), …, u(k−nu), e(k−1), …, e(k−ne) ] + e(k)
The Nonlinear AutoRegressive Moving Average model with eXogenous inputs represents a wide class of discrete-time nonlinear systems [Leo85] [Bil13]. With F a polynomial of degree ℓ, it contains all the families above as special cases. NARX drops the noise terms. In NARMAX the e(k) terms form a noise model, estimated iteratively from the residuals (extended least squares); it removes bias from the process parameters, but e(k) is set to zero in free-run simulation.
Choosing the structure
Keeping too many terms gives over-parametrised models that fit the data but can show spurious dynamics or diverge in simulation [Agu95]. The classical procedure ranks terms by ERR and chooses the size with an information criterion such as AIC [Aka74], computed on one-step-ahead residuals. Because a good one-step predictor is not necessarily a good simulator, GreenBox by default selects the size and structure by free-run simulation error on test part of the estimation data, in the spirit of simulation-error-based selection [Pir03]. Residual correlation tests check the final model [Bil83], and the same reference proposes the ry′y′² test GreenBox uses to detect nonlinearity.
GreenBox identifies only Green models, one per decision method on the Pareto front of test error and complexity [Cha83]. With the structure search on, the Green search visits structures (degree and lags) on the estimation data; for every structure, candidate models from several term orders are simulated on the test part of the estimation data, and all of them form the Green candidate set. A candidate is admissible when it does not diverge and reaches a minimum test R² (0.75 by default, the "very good" level NSE > 0.75 of [Mor07]; free-run R² is the NSE). With the simulation error E and the complexity C scaled to 0–1 over the admissible candidates, each method picks one of them: the cheapest (min C); the ε-constraint (the cheapest with E ≤ ε, ε = 0.5 by default); compromise programming, the candidate closest to the ideal point (E, C) = (0, 0) with the distance (wEpEp + wCpCp)1/p for p = 1 (weighted sum), p = 2 (Euclidean) and p = ∞ (Tchebycheff, max(wEE, wCC)), with equal weights by default; and the most accurate (min E). Ties go to the cheaper candidate. Every method returns a Pareto-optimal candidate: when several methods agree, the choice does not depend on the decision rule. The classical Green procedure, which ranks terms and chooses the size from the one-step error reduction, remains available as an option.
The reference model. The most accurate Green model ignores cost. The results report the change in complexity and in validation error of every Green model relative to it.
Example systems
All examples are measured data from real systems. The DC motor comes from the SysIdentPy package [Lac20]; the others are benchmarks of the nonlinear system identification community, distributed at nonlinearbenchmark.org [NLB]. Please cite the original reference when you use them. The source of the loaded example is also shown under the data plot and under the results. Because these data belong to their authors, GreenBox does not export the measured signals of the examples: the Data button of those figures opens the original source instead, where the data can be obtained under their own terms. Figures, models and results can be exported as usual.
DC motor
Angular velocity of a DC motor driven by a two-level (0/5 V) input, the case study distributed with the SysIdentPy package [Lac20]. The data are decimated by 500 (500 samples); the first 250 are used for estimation and the rest for validation, as in the original Green-Box study [Naz23]. Because the input takes only two values, u² = u after scaling, so such terms are redundant. The response is clearly nonlinear: the best polynomial model simulates with about 90% less error than the best linear one.
Silverbox
An electronic circuit that emulates a mass–spring–damper with a cubic hardening spring (a Duffing oscillator), measured at about 610 Hz [Wig13]. GreenBox uses 10 000 samples of the filtered Gaussian excitation for estimation and 20 000 samples of the multisine experiments for validation. The nonlinearity is mild but essential: linear models reach R² ≈ 0.90, cubic NARX models above 0.99. The estimation signal is small and barely excites the nonlinearity (on the test part even linear models reach R² ≈ 0.999), so a structure chosen on estimation data alone can be less accurate on the larger validation signals: the example therefore starts from the structure listed below. Source: nonlinearbenchmark.org [NLB].
EMPS (electro-mechanical positioning system)
A prismatic joint of an industrial robot, driven by a DC motor through a ball screw, with nonlinear friction. The input is the motor force and the output is the position of the carriage. GreenBox uses the estimation and test records of the benchmark, decimated from 1 kHz to 100 Hz (2485 samples each) [Jan19]. Because the position integrates the velocity, long output lags are needed. Source: nonlinearbenchmark.org [NLB].
Three-story structure (LANL)
An aluminium frame of three floors on rails, excited at the base by an electrodynamic shaker, built at Los Alamos National Laboratory for structural health monitoring [Fig09]. The input is the shaker force and the output is the acceleration of the third floor, sampled at 320 Hz (8192 samples). GreenBox uses the undamaged state: test 1 for estimation and test 2 for validation. Autoregressive models of such responses are the standard damage-sensitive features of this data set; a cheap and accurate reference model is what a monitoring system evaluates continuously.
Wiener–Hammerstein
An electronic circuit made of a linear filter, a static diode-based nonlinearity and a second linear filter (a Wiener–Hammerstein block structure), excited by filtered Gaussian noise and sampled at 51.2 kHz [Sch09]. GreenBox uses the first 10 000 samples of the estimation record for estimation and the first 20 000 samples of the test record for validation. Source: nonlinearbenchmark.org [NLB].
Recommended structure of each model family
For every example and family, tools/tune_examples.py tried a grid of degrees and lags and kept the smallest structure whose classical
model (terms ranked by ERR, size by free-run simulation) is within 0.005 of the best validation R². Loading an example sets the NARX structure below (with Use the structure from step 2);
choosing another family in step 2 sets that family's structure. Values: degree d, output lags ny, input lags nu,
noise lags ne, and the validation R² and number of terms of that model.
References
- [Agu95] L. A. Aguirre, S. A. Billings. Dynamical effects of overparametrization in nonlinear models. Physica D, 80, 1995. doi:10.1016/0167-2789(94)00166-N
- [Aka74] H. Akaike. A new look at the statistical model identification. IEEE Trans. Automatic Control, 19(6), 1974. doi:10.1109/TAC.1974.1100705
- [Bil83] S. A. Billings, W. S. F. Voon. Structure detection and model validity tests in the identification of nonlinear systems. IEE Proc. D, 130(4), 1983. doi:10.1049/ip-d.1983.0034
- [Bil89] S. A. Billings, S. Chen, M. J. Korenberg. Identification of MIMO non-linear systems using a forward-regression orthogonal estimator. Int. J. Control, 49(6), 1989. doi:10.1080/00207178908559767
- [Bil13] S. A. Billings. Nonlinear System Identification: NARMAX Methods in the Time, Frequency, and Spatio-Temporal Domains. Wiley, 2013. doi:10.1002/9781118535561
- [Cha83] V. Chankong, Y. Y. Haimes. Multiobjective Decision Making: Theory and Methodology. North-Holland, New York, 1983.
- [Che89] S. Chen, S. A. Billings, W. Luo. Orthogonal least squares methods and their application to non-linear system identification. Int. J. Control, 50(5), 1989. doi:10.1080/00207178908953472
- [Kor88] M. Korenberg, S. A. Billings, Y. P. Liu, P. J. McIlroy. Orthogonal parameter estimation algorithm for non-linear stochastic systems. Int. J. Control, 48(1), 1988. doi:10.1080/00207178808906169
- [Lac20] W. R. Lacerda, L. P. C. Andrade, S. C. P. Oliveira, S. A. M. Martins. SysIdentPy: a Python package for system identification using NARMAX models. J. Open Source Software, 5(54), 2020. doi:10.21105/joss.02384
- [Leo85] I. J. Leontaritis, S. A. Billings. Input-output parametric models for non-linear systems, Part II: stochastic non-linear systems. Int. J. Control, 41(2), 1985. doi:10.1080/0020718508961130
- [Lju99] L. Ljung. System Identification: Theory for the User, 2nd ed. Prentice Hall, 1999.
- [Naz23] T. Nazaré, K. Mahmoodi, E. Nepomuceno. Green-Box system identification and carbon footprint analysis for sustainable computing. OCEANS 2023 – Limerick, IEEE, 2023. doi:10.1109/OCEANSLimerick52467.2023.10244352
- [NLB] Nonlinear system identification benchmarks. www.nonlinearbenchmark.org
- [Mor07] D. N. Moriasi, J. G. Arnold, M. W. Van Liew, R. L. Bingner, R. D. Harmel, T. L. Veith. Model evaluation guidelines for systematic quantification of accuracy in watershed simulations. Trans. ASABE, 50(3):885–900, 2007. doi:10.13031/2013.23153
- [Pir03] L. Piroddi, W. Spinelli. An identification algorithm for polynomial NARX models based on simulation error minimization. Int. J. Control, 76(17), 2003. doi:10.1080/00207170310001635419
- [Sch80] M. Schetzen. The Volterra and Wiener Theories of Nonlinear Systems. Wiley, 1980.
- [Sch09] J. Schoukens, J. Suykens, L. Ljung. Wiener-Hammerstein benchmark. 15th IFAC Symposium on System Identification (SYSID), Saint-Malo, France, 2009.
- [Wig13] T. Wigren, J. Schoukens. Three free data sets for development and benchmarking in nonlinear system identification. European Control Conference, 2013. doi:10.23919/ECC.2013.6669201
- [Fig09] E. Figueiredo, G. Park, J. Figueiras, C. Farrar, K. Worden. Structural health monitoring algorithm comparisons using standard data sets. Report LA-14393, Los Alamos National Laboratory, 2009.
- [Jan19] A. Janot, M. Gautier, M. Brunot. Data set and reference models of EMPS. Nonlinear System Identification Benchmarks Workshop, Eindhoven, 2019.