JEL Forecast

JEL Forecast

Forecast plant variables from the inputs you plan to set. Everything runs in your browser.

Example data. Six weeks of synthetic hourly aeration data, made up to show how the tool works. Upload your own file to replace it.

Future inputs

Set what each input does over the forecast. The forecast updates as you change these.

Inputs: history and scenario

Dotted lines mark the range seen in the history. Scenario values outside it are extrapolation.

Backtest

Typical forecast error (RMSE) over the holdout.

Steady-state gains

From the linear model: the eventual change in each output for a sustained +1 unit change in one input, others held.

How it works

The linear model (ARX)

ARX stands for AutoRegressive with eXogenous inputs. Each output at the next time step is predicted as a weighted sum of its own recent values, the other outputs' recent values, and the current and recent values of the inputs:

y(t) = Σ a·y(t−1…t−na) + Σ b·u(t…t−nb+1) + daily and weekly terms + c

It is the discrete-time version of a transfer function, the same family as the FOPDT model in JEL Tune. Output lags capture how sluggish the process is. Input lags capture dead time and how a change works through. The weights are fitted by least squares with a small ridge penalty, which keeps the fit steady when lagged values are strongly correlated.

Forecasting forward

The forecast is built one step at a time. Each predicted output is fed back in as the "recent value" for the next step, while the inputs follow your scenario. This is a simulation, so errors can accumulate as the horizon grows.

The backtest

The last part of your data (20% by default) is kept back. The model is fitted on the earlier data only, then forecasts are launched from many starting points through the held-back period, each running the full horizon on the inputs that actually happened. The errors give:

  • RMSE: the typical size of the forecast error, in the output's own units.
  • Persistence comparison: the error you would get by simply assuming the output stays at its last value. A model that can't beat this adds nothing.
  • The shaded band: ±1.96 × RMSE at each step ahead, roughly a 95% range if errors behave like they did in the backtest. Beyond the backtested horizon the band is held at its last width, so it is likely too narrow there.

Auto lags are chosen using the training data alone, so the holdout stays an honest test. The final forecast uses a model refitted on all the data.

Machine learning (boosted trees)

Gradient-boosted regression trees use the same lagged values but can capture thresholds and interactions a straight-line model misses, such as ammonia that bottoms out near zero. The catch: trees can't extrapolate. Push an input beyond anything in the history and the prediction flattens at the edge. Use them only when they clearly win the backtest and your scenario stays within the historical range. "Best on backtest" picks trees only when they cut the error by more than 10%.

Two things the tool can't judge for you

  • Cause and effect. The model learns correlations. If an input is set from an output, such as a dose controlled from a measured concentration, the fit can look excellent on history and still forecast nonsense when you change that input. The tool flags inputs whose movements are predicted by an output's past, but the call is yours.
  • Changed conditions. The model only knows the operating conditions in your data. A new process configuration, a failed instrument or a season not in the history breaks it.

Templates

Download data template gives the history layout: a timestamp column, then one column per variable named as Name (unit). It uses your current variable names, or the example names if none are loaded. Download future inputs template gives your input columns with timestamps already filled for the forecast horizon, continuing from the last history time, and pre-loaded with the current scenario values. Edit the numbers in Excel, save as CSV and upload it with Upload future inputs.

Data handling

The first column must hold timestamps (ISO, day/month/year, PI-style "9-Oct-2026 13:00" or Excel dates). Data is averaged onto a regular time step. Gaps of up to three steps are filled by straight-line interpolation; longer gaps are left out of the fit. Text such as "Bad Input" or "I/O Timeout" is treated as missing.