System identification
How system identification builds mathematical models of dynamic systems from measured input and output data, covering excitation design, model structures, estimation, order selection and validation.
What it is
System identification is the discipline of building mathematical models of dynamic systems from measured data. Instead of deriving equations from physical laws alone, an engineer applies a designed input to the system (a motor, a heating process, an aircraft, a battery, a bridge), records the response, and estimates a model, such as a transfer function or state-space model, that reproduces the observed behavior. The field was shaped by Lennart Ljung, Karl Åström and others from the 1960s. Models obtained are used to design controllers (see control design), simulate and predict behavior, detect faults, build digital twins and understand physical processes. Identification is especially useful when the physics is too complex or uncertain to model from first principles, or when some parameters (friction, thermal resistance, aerodynamic coefficients) must be measured.
It answers questions such as: What is the transfer function of this process, including its delay and time constants? What are the natural frequencies and damping of this structure? Which parameters of a physical model fit the measurements? How well can the output be predicted several steps ahead? The result is a model valid for the operating conditions and input types used in the experiment.
Fundamentals
Model structures
Choices fall on a spectrum. White-box models come entirely from physics, black-box models are purely data-driven with generic structure, and grey-box models have a physical structure with unknown parameters estimated from data. Nonparametric methods give the response directly: step or impulse response tests, correlation analysis, and frequency response from sine sweeps or spectral analysis (FFT of input and output, with estimates H(f) = Syu(f)/Suu(f)). Parametric discrete-time models include ARX, A(q)y(t) = B(q)u(t − nk) + e(t), where q is the shift operator, nk the input delay and e the noise, which is linear in its parameters and solved by least squares; ARMAX (a noise model C(q)e), output-error (OE) and Box–Jenkins models, which model plant and noise separately; and state-space models x(t + 1) = Ax + Bu, y = Cx + Du, estimated by subspace methods (N4SID, MOESP) or prediction error minimization, which suit multiple inputs and outputs. Nonlinear options include NARX, Hammerstein–Wiener (static nonlinearities around a linear block), neural network and sparse-regression models (see symbolic regression).
Experiment design: exciting the system
Data quality limits everything. The input must be persistently exciting, rich enough in frequency content to reveal all the dynamics of interest; a constant input teaches nothing about dynamics. Common signals: step and pulse tests (simple, for slow processes), pseudo-random binary sequences (PRBS) and random Gaussian noise (broadband), multisine signals with chosen frequencies, and chirps/sweeps. Choose amplitude large enough to beat noise but small enough to stay in the linear range and within safety limits. Choose the sampling rate to be about 5 to 10 times the bandwidth of interest, applying anti-aliasing filters before sampling (see digital signal processing); too fast makes models ill-conditioned. Record long enough to capture the slowest dynamics and several cycles. For closed-loop systems, identification is harder because feedback correlates input and noise, so use an external excitation signal added to the loop or methods designed for closed loops.
Estimation, order selection and preprocessing
Parameters are estimated by the prediction error method (PEM): choose parameters θ that minimize the sum of squared prediction errors Σ ε2(t, θ), the difference between measured output and the model’s one-step prediction; for ARX it reduces to linear least squares, and for other structures it is a nonlinear optimization that needs good initial values, and may find local minima. Maximum likelihood gives the same result for Gaussian noise. Before estimation, preprocess the data: remove means or trends (identification models deviations from an operating point), remove outliers, filter unwanted high-frequency noise, estimate time delays, and split the data into an estimation set and a separate validation set. Model order (number of poles and zeros) is chosen by balancing fit against complexity with the Akaike information criterion (AIC), final prediction error (FPE) or cross-validation, plus checks such as singular-value plots in subspace methods. Parsimonious models generalize better; too many parameters fit noise.
Validation
Always validate on data not used for estimation. Simulation fit compares the model’s free-running output with measurements, with the common metric NRMSE fit = 100 × (1 − ‖y − ŷ‖/‖y − ȳ‖) percent (100 is perfect; values near 0 mean no better than the mean). Residual analysis checks that prediction errors are white (no autocorrelation) and uncorrelated with past inputs, which would mean unmodeled dynamics or noise structure. Examine pole–zero maps (poles inside the unit circle for stable discrete models), step and Bode responses against physical expectation, and confidence intervals on parameters (large uncertainty or pole–zero near cancellation signals an over-parameterized model). Test across operating points: a linear model fitted at one level may fail elsewhere, motivating gain scheduling or nonlinear models. Report the conditions of the experiment, signals used and model uncertainty.
Typical applications and limits
Limits: models are valid only in the tested range, noise and unmeasured disturbances bias estimates, closed-loop and highly nonlinear systems complicate analysis, and good experiments can be expensive or risky on operating plants.
Basic operation
- Define the purpose. State the use, such as control design or prediction, and the frequency range and accuracy needed.
- Design the experiment. Choose input signal, amplitude, sampling rate and duration, within safety limits.
- Collect the data. Record inputs and outputs, with a separate validation record.
- Preprocess. Remove offsets and outliers, filter, and estimate delays.
- Select a model structure and order. Start simple and increase complexity only when needed.
- Estimate parameters. Use least squares, PEM or subspace methods.
- Validate. Check fit and residuals on fresh data, and examine uncertainty.
- Collect the output. You obtain a validated model with fit metrics; excitation design and order selection are covered in the video.
Good practice
- Excite the system properly. A poor input gives a poor model.
- Keep validation data separate. Fit on the training set is not evidence.
- Prefer simple models. Increase order only if validation improves.
- Check the residuals. Structure in the errors reveals missing dynamics.
- Record experimental conditions. Operating point, signals and sensors define the validity range.
- Test safely. Excitation experiments on real plants, vehicles or structures must stay within safe limits, with supervision, interlocks and a way to stop immediately.
Key terms
- Persistent excitation — an input rich enough to reveal the system’s dynamics.
- ARX model — a linear model relating output to past outputs and inputs, solved by least squares.
- Prediction error method — estimation by minimizing the error between measured and predicted outputs.
- Grey-box model — a physical model structure with parameters estimated from data.
- PRBS — a pseudo-random binary sequence used as a broadband test input.
- Residual analysis — checking that model errors look like uncorrelated noise.
- Model order — the number of poles (and zeros) in the identified model.
Video coming soon
About five minutes on System identification: how it works in detail, how the data is acquired, and how it is analyzed.
More in 4.5 Signal Processing, Control and Embedded Systems
