Back to Blog

How to Predict the Effect of a Setpoint Change: A Technical Overview

The causal inference engine at the core of AMI Labs: how it represents control variables, state, and response trajectories for forward prediction.

Theodore Baudin Technical

Abstract technical visualization of predicted equipment response to a setpoint change

When an engineer asks "what happens if I raise the reactor feed temperature by 5 degrees?", the answer depends on more than the current temperature reading. It depends on the current values of every correlated state variable, the recent history of how those variables have been moving, and the causal structure connecting the feed temperature control loop to the downstream process outputs. Most prediction approaches fail at one of these three dependencies. This post walks through how we represent and solve the problem.

The Fundamental Problem: Correlation Is Not Causation, but You Still Need History

The classical machine learning framing treats prediction as a function: given current inputs X, predict output Y. For process control, this framing has two problems. First, it conflates correlation with causal effect. A model that learns that high temperature correlates with high product quality is useless for optimization if the causal direction is reversed (high quality runs tend to be run at higher temperature because operators chose to, not because temperature causes quality). Second, it discards process history, which often encodes current trajectory and rate-of-change information that matters for predicting where the system goes next.

The structural causal model framework, developed in the statistics and AI communities over the past two decades, addresses the first problem. The key distinction is between observational prediction (given what we observe, what do we expect?) and interventional prediction (if we force a variable to take a specific value, what will happen?). Pearl's do-calculus notation distinguishes P(Y | X = x) from P(Y | do(X = x)). The first conditions on observing X = x. The second models the effect of setting X = x externally. For setpoint optimization, the second is what matters.

State Representation: What the Model Sees

At each prediction timestep, the model receives a state vector that encodes both current values and recent history. We concatenate the last T timesteps of all relevant sensor readings into a fixed-length context window. For a typical process application with 20 to 50 relevant tags at a 5-second sampling rate, a 5-minute context window produces a state vector on the order of 1,200 to 3,000 values before any dimensionality reduction.

Within that state vector, we distinguish three variable types. Observable process states are variables the engineer cannot directly control: downstream temperature, product concentration, vibration levels, pressure drops. Control inputs are variables the engineer can set directly: setpoints for temperature controllers, flow rate setpoints, pressure regulators. Disturbance variables are inputs the engineer cannot control but which affect the system: feed composition, ambient temperature, utility pressure variations. Getting this classification right for a specific machine is a domain question, and we always do it in collaboration with the process engineer who knows the equipment.

The Forward Prediction Problem

Given the current state and a proposed control intervention (raise setpoint u from u0 to u1 at time t0), we want to predict the trajectory of the observable process states over a prediction horizon. This is a multi-step conditional generation problem: generate the sequence of states s(t0+1), s(t0+2), ..., s(t0+H) under the intervention do(u = u1), conditioned on the history up to t0.

The naive approach is to train a one-step-ahead predictor and then autoregressively roll it forward for H steps. This works but accumulates error: mistakes in step 1 become inputs to step 2, and the errors compound. For short horizons (a few minutes at 5-second resolution, say 36 steps) this compounding is usually acceptable. For longer horizons, we use a direct multi-step prediction approach that trains separate output heads for each prediction horizon, which avoids error propagation at the cost of training separate parameters for each horizon.

Uncertainty Quantification

A point prediction for a setpoint change response is only useful if the engineer also knows how confident to be in it. A predicted temperature increase of 3.2 degrees with an 80% credible interval of [2.4, 4.1] degrees is actionable. A predicted temperature increase of 3.2 degrees with no uncertainty information might be dangerously overconfident for a safety-critical decision.

We use conformal prediction as the primary uncertainty quantification mechanism. Conformal prediction is a distribution-free approach that produces provably valid prediction intervals: a 90% conformal prediction interval contains the true value at least 90% of the time, regardless of the underlying data distribution. This validity guarantee holds even when the model is misspecified, which is the normal case for complex physical systems where no model is exact. The intervals are calibrated on held-out data from the same machine, so they reflect actual prediction error on that machine rather than generic uncertainty estimates.

We also propagate uncertainty through multi-step predictions. When you roll a prediction forward, the uncertainty band widens with horizon because earlier prediction errors affect later ones and because disturbance effects accumulate. The widening rate varies by variable type: well-controlled temperatures tend to have slowly-widening bands while flow-dependent quality metrics tend to diverge more rapidly.

What the Model Cannot Tell You

We are not claiming the model predicts everything. It predicts the causal effect of control changes within the regime it was trained on. Three cases where it gives unreliable results: first, interventions that push the machine outside its training regime (raising a setpoint far beyond any historical operating point extrapolates into territory where the learned causal structure may not hold). Second, novel disturbance conditions not present in the training data (a new raw material formulation, an unusual ambient temperature extreme). Third, equipment state changes like bearing degradation or fouling that shift the underlying dynamics mid-deployment without the model being retrained on the new data.

The solution to the third problem is continuous model monitoring: tracking prediction residuals over time to detect when the world model is drifting relative to actual machine behavior, and triggering a retraining cycle when drift exceeds a threshold. This is not a solved problem in general, but for most process applications the drift is slow enough that a monthly or quarterly retraining cycle keeps the model accurate.

Putting It Together in Practice

An engineer working with the AMI Labs interface proposes a setpoint change: feed temperature from 180 to 185 degrees C. The system takes the current sensor context window, applies the proposed intervention, and generates a trajectory prediction for the next 30 minutes across the relevant output variables, with uncertainty bands. The prediction is conditional on the current machine state, not on a generic model of temperature-in-pressure-out. If the machine has been running for three hours at steady state, the prediction reflects that. If the machine just came out of a startup transient, the prediction reflects that too.

This specificity, the fact that the prediction is for this machine in this current operating condition, is what distinguishes a world model from a lookup table of engineering rules of thumb. Rules of thumb tell you what typically happens. The world model tells you what is likely to happen to this machine, given where it is right now.

Build a model of your machine

Start with one production line and 90 days of historian data. Live predictions in under 48 hours from first connection.