A Multivariable Model From Records Alone
Open the Multivariable Model Identification app
Advanced Control Exercise 4 of 30 in Dynamic Models · All exercises · Time: 15 minutes
A data-driven model starts from records, not equations. The identification studio fits five model families to the same multivariable record and ranks them on data held out from the fit. This exercise uses that ranking to decide a structural question that physics can sometimes answer and data must confirm: is a small path really there?
Learning Outcomes
- Fit transfer-function, ARX, FIR and state-space models to the same multivariable record.
- Use a validation split to judge whether a path in the model is real or absent.
- Compare an identified model against naive baselines and explain what the comparison shows.
Book Chapter
Process Dynamics, Modeling, and Identification (Volume 1), Chapter 12, Multivariable Plant Identification Workbench with Exact Structural Zeros. Read the chapter, open the PDF, or watch the lecture slides.
Theory in Brief
A first-order-plus-dead-time matrix models each output `y_i` as a sum over inputs `u_j`:
$$Y_i(s) = \sum_j \frac{K_{ij}\, e^{-\theta_{ij} s}}{\tau_{ij} s + 1}\, U_j(s)$$
An ARX model is linear in its coefficients, so least squares fits it in one step:
$$y_k = \sum_{i=1}^{n_a} a_i\, y_{k-i} + \sum_{j=1}^{n_b} b_j\, u_{k-j} + e_k, \qquad \hat\theta = \left(\Phi^T \Phi\right)^{-1} \Phi^T y$$
where each row of `\Phi` holds past outputs and inputs. A FIR model keeps only the `b_j`, and a state-space model `x_{k+1} = A x_k + B u_k`, `y_k = C x_k` is fitted by its own method. All five are scored the same way, by the free-run error on a validation interval the fit never saw:
$$\mathrm{NRMSE} = \frac{1}{\sigma_y} \sqrt{\frac{1}{n} \sum_{k=1}^{n} \left(y_k - \hat y_k\right)^2}$$
with `\sigma_y` the output's standard deviation in the training data, averaged over the outputs. Setting a path to zero is a structural assumption: it removes parameters, and if the path is real the validation error rises. More parameters always lower the training error; only validation error can say whether they model the plant or the noise.
Model: Data-driven. Five linear model families fitted to the same records, with optional structural zeros from process knowledge.
Decision: The model structure and its parameters, chosen by least squares and by the validation ranking.
Learning: Supervised learning on time series, with a held-out interval as the test set; exercise 16 runs an MPC on a model like these.
Exercise
Read 2 min · Predict 1 min · Run 7 min · Explain 3 min · Check your AI 2 min.
Predict. The board's heater 2 warms sensor 1 only a little: its gain to T1 is about a seventh of heater 1's. If you remove that path, will the validation error get better (fewer parameters) or worse? Will removing a path that is truly absent in the column change anything?
Run the Multivariable Model Identification app. Each fit takes a few seconds; there is no simulation clock.
- On Import choose the example TCLab two-heater test. On Identify press Fit selected methods. On Validate read the Valid. NRMSE of First order + dead time and of the persistence baselines.
- Back on Identify, with the FOPDT tab selected, click the cell for T1 from Q2 in the step-response matrix and press Set response to zero. If Refit all candidates appears, press it. Read the validation NRMSE again.
- On Import choose Distillation column (2 MVs, feed DV), fit, and read the FOPDT validation NRMSE. Set Pressure from Reflux to zero the same way and read it again.
Explain.
- Removing T1 from Q2 took away parameters. Why did the validation error rise instead of fall?
- The one-step persistence baseline scores almost as well as the FOPDT model on the two-heater record. What does that baseline do, and why is it not a useful model for control?
Generative AI Learning
Check the answer against your run: A good answer says to decide on held-out data and on physics, not on the size of the gain, and that a small real path costs validation accuracy when removed. Your step 2 numbers are the test. The assistant is your tutor and reviewer; you answer for every claim you turn in.
What to Turn In
A table with the FOPDT validation NRMSE before and after each zero, for both records, your written prediction, and three sentences that answer the two questions.

On the two-heater record the FOPDT model's validation NRMSE is 0.0232, with 14 parameters. Setting T1 from Q2 to zero leaves 11 parameters and raises it to 0.0853. The path is small but physical: heater 2 does warm sensor 1 through the board, and without it the model cannot explain part of T1. Fewer parameters only help when the parameters were fitting noise.
On the column, Pressure from Reflux is absent in the plant. Zeroing it moves the validation NRMSE from 0.109 to 0.108 and removes 3 parameters. The data agree with the process knowledge, and the model is simpler at no cost.
The one-step persistence baseline predicts each sample as the last measured one. Its NRMSE on the two-heater record, 0.026, is close to the model's because temperatures change slowly between samples. It says nothing about how an input moves an output, which is the only thing a controller needs. A model that does not beat the naive baselines by a clear margin has not shown that it learned the dynamics.
Measured with the app build of December 3, 2026 by a scripted replay of the steps above. Numbers that no tile shows come from the replay's record; your readings from the trends will be close. A later app release may move the last digit.
MIMO Model ID fits an ARX model in GEKKO with `m.sysid`. Export the two-heater record from the studio (Export step), fit ARX orders 1 to 4 on the first 70 % and score each on the last 30 %. Plot training and validation error against order: the validation curve's minimum is the model to keep.
Related
- Check yourself: three-question quiz
- Course pages: MIMO Model ID, SISO Model ID, Regression, Statistics
- Exercises: previous: 3 · Fit an Energy Balance to Data; next: 5 · Principal Components on Plant Data
References
- Hedengren, J. D. (ed.), Process Dynamics, Modeling, and Identification, Volume 1 of Interactive Control Engineering, Chapter 12, "Multivariable Plant Identification Workbench with Exact Structural Zeros", pp. 284–314, Advanced Process Solutions, 2026. PDF (CC BY 4.0).
