Problemcore
System identification
Also called identification of dynamical systems, plant identification.
Build a model of a dynamical system from measured inputs and outputs, by choosing a model set and the member that best predicts the data.
- Time
- O(N d^2 + d^3) worst
- Where
- N = the number of samples; d = the number of parameters
- Model
- Real RAM
System identification is the problem of building a mathematical model of a dynamical system from measured data: records of the input that drives the system and of the output it produces. In the parametric form, the user fixes a model set, for example the ARX models of given orders, and the method picks the member that best explains the data, most often the one with the smallest sum of squared one-step prediction errors. In the nonparametric form, the method estimates a curve such as the frequency response or the impulse response directly. There is no complexity class to state; what is known is which criterion each method minimizes, when the minimizer converges to the true system, and how large its variance is.
In plain words
You have a machine, a motor or a chemical reactor or a building, and you want an equation that tells how its output reacts to its input. You cannot take it apart, but you can push it and watch. So you apply an input signal, record what comes out, and choose an equation from a family of candidates that fits the record best. The family can be simple, such as "the next output is a weighted sum of the last few outputs and inputs", and then fitting is a least squares problem. A richer family also models the noise, and fitting then needs an iterative search. Two things decide the quality. The input must shake the machine in enough different ways, and the family must be rich enough to contain something close to the truth.
Definition
Time is discrete, , with sampling period . The data are . Write for the forward shift, .
The model set. A model structure is a map from a parameter set to pairs of transfer functions,
where is white noise with variance , is monic (), and and are BIBO stable. The model gives the one-step-ahead predictor
which uses only data up to time , and the prediction error .
The question. Given and the structure, return
or, in the nonparametric form, return an estimate of the frequency response on a grid of frequencies .
The true system. The analysis assumes that the data come from . The model set contains the system if and for some . The data are informative for the set if two models of the set that give the same predictions on the data have the same and ; for an open-loop experiment this is a condition on the input, see persistent excitation.
Variants
- Choice of structure. ARX, ARMAX, output error and Box-Jenkins models are the common linear black-box sets. State-space models of a given order are the set for subspace identification. A grey-box model has parameters with a physical meaning, for example a mass or a resistance.
- Parametric or nonparametric. A nonparametric estimate is a curve: the empirical transfer function estimate in frequency, or a long FIR model in time, possibly regularized as in kernel-based identification.
- Open or closed loop. In closed-loop identification the input depends on past outputs through a controller, which changes which models can be told apart and which methods remain consistent.
- Batch or recursive. The batch problem uses the whole record. The recursive problem updates the estimate at each sample, as the RLS algorithm does for ARX models; this is the core of adaptive control.
- Order selection. The orders are part of the question: choose them by a criterion such as the Akaike information criterion or by cross-validation on fresh data.
- Experiment design. Choose the input, within limits on its amplitude or power, to make the estimate as accurate as possible; a PRBS is the classic choice.
Examples
- A first-order ARX fit. With the six samples and , the model has the least squares estimate and . The computation is on the page least-squares identification of ARX models.
- An input that is too poor. For and the constant input , the data depend on and only through . Every pair with the same sum predicts the data equally well, so the minimizer of is not unique. A constant is persistently exciting of order 1 only, and this model needs order 2 in .
- Feedback without an external signal. For under the controller , the output obeys . All pairs with the same give the same predictor, so the open-loop system cannot be recovered. With , and the data show only . An added reference signal removes the ambiguity.
Known algorithms
- Least-squares identification of ARX models: the exact minimizer of for ARX and FIR structures in operations.
- Prediction error method: minimizes for any structure by Gauss-Newton steps, per iteration, and finds a local minimum.
- Instrumental variable identification: a linear estimate for the ARX parametrization of that stays consistent under colored noise, in .
- Empirical transfer function estimate: the ratio of the output and input Fourier transforms, in with the FFT, followed by smoothing.
- Subspace identification, with N4SID and MOESP: state-space models from projections of block Hankel matrices, without iterative search.
- Ho-Kalman algorithm: a minimal realization from Markov parameters.
- Process reaction curve method: a first order plus dead time model from one step response.
| Algorithm | Time | Space | Properties | Code |
|---|---|---|---|---|
| Dynamic mode decomposition | O(q M min(q, M) + q M r + r^4) worst | O(q M) extra | deterministicexactnot iterativeoffline | 1 language |
| Empirical transfer function estimate | O(N log N + N M) worst | O(N) extra | deterministicnot exactofflineiterative | 1 language |
| Instrumental variable identification | O(N d^2 + d^3) worst | O(N + d^2) extra | deterministicexactofflineiterative | 1 language |
| Kernel-based system identification | O(N d^2 + G d^3) worst | O(N d + d^2) extra | deterministicexactnot iterativeoffline | 1 language |
| Least-squares identification of ARX models | O(N d^2 + d^3) worst | O(d^2) extra | deterministicexactofflineiterative | 1 language |
| MOESP | O(N i^2 (m + p)^2 + i^3 p^3 + N n^3 m + N p (n m + p m + n)^2) worst | O(N i (m + p)) extra | deterministicexactnot iterativeoffline | 1 language |
| N4SID | O(N i^2 (m + p)^2 + i^3 (m + p)^3) worst | O(N i (m + p)) extra | deterministicexactnot iterativeoffline | 1 language |
| Prediction error method | O(I (N d^2 + d^3)) worst | O(N d + d^2) extra | deterministicnot exactofflineiterative | 1 language |
| Process reaction curve method | O(n) worst | O(n) extra | deterministicnot exactofflineiterative | 1 language |
| Sparse identification of nonlinear dynamics | O(n M p^3) worst | O(M p) extra | deterministicexactiterativeoffline | 1 language |
Bounds
There is no exact complexity result, because the output is an estimate, not an exact answer. The bound in the header holds for model sets in which the predictor is linear in , such as ARX and FIR; for other sets the cost depends on the number of iterations of the search. The known results are about what each criterion converges to and how fast its error falls. All operation counts are in the real RAM.
- Cost of the linear case. For a structure in which is linear in , forming the normal equations costs and solving them . Reading the data is a lower bound of .
- Convergence (theorem). If the data are quasi-stationary and the predictors are uniformly BIBO stable over a compact , then converges with probability 1 to the set of minimizers of (Ljung 1978; Ljung 1999, Chapter 8). The true system need not be in the model set: the limit is the best approximation in the sense of .
- Consistency (theorem). If the model set contains the true system, the data are informative and the parametrization is identifiable at , then is the unique minimizer of , so with probability 1 (Ljung 1999, Chapter 8).
- Variance (theorem). Under the same conditions, is asymptotically normal with covariance , where at (Ljung 1999, Chapter 9). For Gaussian this equals the Cramér-Rao bound, so no unbiased estimator does better asymptotically.
- Nonconvexity. For ARX and FIR structures is a convex quadratic. For ARMAX, output error and Box-Jenkins structures it is not convex, and a local search can stop at a local minimum.
Reductions
- ARX to linear least squares. The ARX predictor is with a regressor of past outputs and inputs, so the problem is an instance of the least squares problem, with work to build the regressors.
- Prediction errors to maximum likelihood. If is Gaussian with known variance and the effect of initial conditions is ignored, minimizing gives the maximum likelihood estimate of .
- Closed loop to open loop. The indirect method identifies the map from the reference to the output, an open-loop problem, and then solves for the plant with the known controller.
- Order to model selection. Choosing the orders is a model selection problem, solved by fitting each candidate order and comparing a penalized cost.
Applications
- Models for controller design: step tests for PID tuning, and step-response or ARX models for model predictive control in the process industry.
- Fault detection: a change in the identified parameters signals a change in the plant.
- Adaptive control and the self-tuning regulator, which identify the plant online and redesign the controller at each step.
- Vibration and modal analysis of structures, and acoustic echo paths.
- Time-series models with exogenous inputs in econometrics, in the tradition of Box and Jenkins.
References
- Lennart Ljung, System Identification: Theory for the User, second edition, Prentice Hall, 1999, Chapter 1 (the identification loop), Chapter 4 (models of linear time-invariant systems), Chapter 7 (parameter estimation methods), Chapter 8 (convergence and consistency) and Chapter 9 (asymptotic distribution of parameter estimates)
- Torsten Söderström and Petre Stoica, System Identification, Prentice Hall, 1989, the chapters on linear regression, prediction error methods and instrumental variable methods
- Karl Johan Åström and Pieter Eykhoff, System identification: a survey, Automatica 7(2), 123-162, 1971, the whole paper (least squares, maximum likelihood and instrumental variables as they stood in 1971)
- Lennart Ljung, Convergence analysis of parametric identification methods, IEEE Transactions on Automatic Control 23(5), 770-783, 1978, the convergence of prediction error estimates to the minimizers of the limit criterion, without the assumption that the true system is in the model set
Where this leads
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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag MM6501 Edit this page History Report an error Markdown