← All field notesAI

Why AI agents need a model of the process they control

Araadhita Dewan ·

Close-up of a green circuit board

An AI agent that controls a physical process needs a model of that process because the same warning sign can have more than one cause, and the right fix for one cause can be the wrong fix for the other. Without a model, the agent can only guess. With one, it can test each explanation against the physics and chemistry of the process before it changes anything real.

This post walks through a bioreactor example from Achyuraa's research paper, "The Need for a Digital Twin to Support AI Reasoning Over Bioreactor Processes." The numbers below come from that paper. The lesson applies to any agent that acts on a real system, from a production line to a cooling plant.

What goes wrong when an AI agent acts on readings alone?

An AI agent, in this context, is software that reads data from a system, decides what to do, and then takes an action, such as changing a setting. Most agents learn patterns from past data. That works well when every pattern points to one cause. It breaks down when two different problems look the same in the data.

A bioreactor is a vessel where living cells grow to make a product, such as a medicine. Operators feed the cells glucose, a sugar the cells use for energy, and track readings like glucose level and cell count. When glucose drops lower than expected, there are at least two possible reasons. The cells may be using it faster, or the feed may not be delivering enough. These two causes call for opposite responses.

In the paper, the two causes looked the same in the readings until about day 8 of the batch. An agent working from readings alone would have to pick an explanation early, with no way to tell which was true. If it picked wrong, it would make the problem worse while believing it was fixing it.

How big is the cost of choosing the wrong fix?

The paper put numbers on the risk. If the agent chose the wrong explanation, 16 to 18% of the cells in the batch were at risk. In a process where the cells are the product, that is a large share of the output.

The paper then compared the two possible actions. Lowering the feed was the wrong fix in this case. It cost 8% and 10% of cells, in the two results reported, compared with doing nothing at all. Raising the feed was the right fix. It brought results within 8% and 2.6% of a normal batch.

Wrong fix versus right fix in a bioreactor batch

Source: Achyuraa research paper on bioreactor digital twins. Gray bars: cells lost by lowering the feed, compared with doing nothing. Olive bars: remaining gap to a normal batch after raising the feed. Lower is better for both.

Lowering the feed, result 1
8%
Lowering the feed, result 2
10%
Raising the feed, result 1
8%
Raising the feed, result 2
2.6%

Read the chart this way. The wrong fix did more harm than taking no action. The right fix did not just avoid harm. It brought the batch close to where a normal batch would have ended. The difference between those outcomes comes down to one question: which cause was real?

How does a process model tell the two causes apart?

A process model is a computer model of a real process built from the science behind it. For a bioreactor, that means equations for how cells grow, how they use glucose, and how the feed adds it back. Because the model follows the physical rules of the process, it can predict what each cause would do over time, not just what has happened so far.

When the agent sees glucose falling, it can run both explanations through the model. Each explanation predicts a different path for glucose. In the paper, the model showed about a 28% gap in glucose between the two causes. That gap gives the agent something concrete to compare against the real readings, so it can rule one cause out before it acts.

Without the model, the agent sees one falling line and must guess what drives it. With the model, it sees two predicted lines and can check which one the data is following.

Why does calibration matter so much?

A model is only useful if it matches the real process closely enough to trust. Calibration is the step where you adjust the model's settings so its predictions line up with real measurements from the system.

The paper measured model error using RMSE, short for root mean square error. RMSE is a standard way to describe the typical size of the gap between what a model predicts and what was measured. Lower numbers mean a closer match. Here, it is measured in grams of glucose per liter (g/L).

Model error before and after calibration

Source: Achyuraa research paper on bioreactor digital twins. RMSE for glucose, in g/L. Lower is better.

Before calibration
0.26 g/L
After calibration
0.13 g/L

Calibration cut the error in half, from 0.26 to 0.13 g/L. That matters because the agent relies on the model to separate two causes. If the model's own error were as large as the gap between the causes, the agent could not trust the comparison. Halving the error makes the 28% gap between the two explanations much easier to rely on.

What should a team check before letting an agent act on a process?

The bioreactor case points to a short list of questions any team can ask before giving an AI agent control over a real system.

  1. Can two different problems produce the same reading? If yes, the agent needs a way to tell them apart. Past data alone may not be enough.
  2. Do the right fixes for those problems point in opposite directions? If they do, a wrong guess will not just fail. It will make things worse.
  3. Is there a model of the process the agent can test ideas against? A model built from the physics or chemistry can predict how each cause plays out over time.
  4. Has the model been checked against real measurements? Calibration shows how far to trust it. A model with no check against real data is an untested guess.
  5. Does every prediction come with a range? A single number hides how sure the model is. A range tells the agent, and the people overseeing it, how much room for error there is.

Where else does this problem show up?

The bioreactor is one example, but the pattern is common. In a cooling system, rising temperature can come from higher load or from reduced airflow. In a production line, a drop in output can come from worn equipment or from a change in raw materials. In each case, readings alone may not separate the causes until it is too late to respond well.

The key message from the paper is simple: an AI agent needs a model of the physical process to tell causes apart before acting. Pattern-matching on past data can help an agent notice a problem. A process model helps it understand which problem it is looking at.

A test bench for your AI agent, built from the science of your process

Achyuraa is an engineering firm founded in 2012, with teams in Boston, Mexico City, London, and Bengaluru. One of the things we build is the kind of model this post describes: a computer model of a real process, built from the physics and chemistry behind it and checked against your own measurements. We call this work Process Modeling.

These models can act as a test bench for AI agents. Before an agent changes a setting on your real system, it can try that change on the model first. You can see what the agent would do, how the process would respond, and whether the agent picked the right explanation. That gives your team a safe place to find out how an agent behaves before it touches anything that matters.

Our models combine two methods. Deterministic modeling follows the physical rules of the process. Probabilistic modeling runs the model across hundreds of settings and likely inputs, so you can see the best options and how sure each prediction is. Every prediction comes with a range, and every assumption is written down in plain terms, so your engineers can check our reasoning line by line.

You do not need years of data to start. A small set of physical measurements is often enough, and a proof of concept can often begin from publicly available information. Our models support decisions. They do not replace certification or regulatory approval.

The research behind this post comes from Achyuraa's work as a research affiliate of the University of Oxford. Our published papers are written by an author with an MSc from Oxford. You can read more about our work on the case studies page.

If you are planning to put an AI agent in charge of a physical process, we would be glad to talk it through. Book a free 30-minute call or email contact@achyuraa.com. We scope and price the first phase before you commit, and we aim for a first working result in about four weeks. We reply within 1 to 2 business days.

Have a problem like this?

Tell us about it on a 30-minute call. We'll say plainly if we can help.

Book a 30-min call →