Resources

Why AI needs simulation software to test its advice

Why AI needs simulation software: records cannot show a change nobody has made, a live trial is slow, and an AI agent needs somewhere safe to fail first.

AI needs simulation because advice about a process has consequences that the advice does not contain. A suggestion to move a nurse, open a lane or change a batch size sets off a chain of effects, and the records an AI works from describe a process where that change was never made. Simulation software supplies the missing piece: a place to carry out the suggestion, watch what follows and bring back a result. The same holds, more strongly, for AI agents that act without asking.

Why can’t past data show what a change will do?

Because past data comes from the process as it was run, under the rules in force at the time.

Take a distribution center that calls in extra pickers whenever a day looks bad. Its records will show extra pickers and late orders on the same days. A person or a program reading them can see that the two go together. The records alone do not say what would have happened on the bad days without the extra staff. The people who ran the place were already reacting, and their reactions are mixed into the data.

Other changes leave no trace at all. No history exists of a night shift that has never been worked, a ward that has not opened or a product not yet launched. A pattern learned from the old arrangement may or may not survive the new one.

A simulation is built from causes: arrivals, task times, people, rules. The rule that calls in extra staff is one line of it, and it can be taken out. The model can then be run through the same bad days with the rule and without it.

What does a suggestion leave out?

Mostly the second effect, and the third.

An emergency department is told to add a second triage nurse. Triage gets faster, so patients reach the next stage sooner. The lab receives its samples in larger bunches. Results come back later, and beds stay occupied by people waiting for results. Arrivals wait less at the door and more behind it. Whether the department gains depends on the lab’s capacity, the time of day and how many beds are free, all at the same moment.

The constraint moves when you fix it, and the place it moves to may not be on anyone’s list. A model follows the work wherever it goes, so the new queue shows up in the results even when nobody thought to ask about it.

Why does a long list of ideas make the choice harder?

Suggestions are cheap to make and costly to carry out. Ten plausible ideas for a contact center leave a manager with a harder problem than one idea would: which of them, in what combination, and at what cost to the rest.

Three things get in the way of choosing by judgment.

  • Ideas interact. A callback option and a later shift start may each help a little and together help a lot, or cancel each other. Trying one factor at a time misses that. A model can run the combinations.
  • Goals conflict. The plan that cuts waiting may raise overtime. A run reports both, along with everything else it counts, so the trade is visible.
  • Luck looks like merit. If many options are tried on a few runs each, the winner is partly the one that drew an easy week. The remedy is to give each option the same simulated days, then take the leaders and run them again on fresh ones.

A whiteboard full of ideas from a good team needs the same treatment. With AI the list can be longer, and the testing becomes the slow part.

Why not just try the AI’s advice on the real process?

Sometimes that is the right call. As a general method it has weaknesses.

It is slow, since a month of evidence takes a month. It is a single sample: the month you tried it was one month, with its own weather, absences and order mix. It is hard to read, because other things changed as well. And the people in the process bear the cost of the bad ideas along with the good ones.

A live trial is also poor at showing rare trouble. A plan for an airport checkpoint may work for weeks and fail on the morning when two lanes close at the holiday peak. A model can be given that morning on purpose.

What changes when AI agents act on their own?

Advice waits for a person. An agent that assigns field technicians, releases orders to a shop floor or moves patients between wards makes many small choices, and each choice changes the situation the next one faces.

That makes the effect hard to judge from single decisions. Sending the nearest technician to every call looks sensible each time. Over a day it may pull everyone into the city center and leave the far district uncovered by late afternoon. The harm belongs to the sequence, so the sequence is what has to be tested.

A simulated operation lets that happen in advance. The agent, or the rule it follows, is connected to the model in place of the live system and works through many simulated days. Three kinds of question become answerable:

  1. How does it compare with what we do now? Run today’s rule through the same days and compare the two.
  2. Where does it break? Add a breakdown, a surge, a late supplier or a missing shift, and watch what the agent does next.
  3. What limits should it have? The runs show which decisions do most damage when they go wrong. Those are the ones to keep behind a person’s approval.

Testing this way does not make an agent safe. It shows how it behaved under the conditions you thought to include.

What does AI get back from a simulation?

It gets figures to work from. A run returns waits by step and by hour, output, time in system, how busy each person and machine was, and how much those figures varied. Handed to an AI app, those tables support questions with an answer in the data: which step’s queue grew, in which hours, under which plan.

That turns a single exchange into a loop. A suggestion goes into the model, the model returns figures, and the figures shape the next suggestion. The loop is useful because one side of it follows fixed rules that do not bend toward the answer anyone hoped for.

How good does the simulation have to be?

Good enough for the decision, which is a stricter test than it sounds.

A model can leave things out. If it ignores the time it takes to walk between two buildings, then sharing one specialist across both will look like a bargain. A search that tries thousands of options tends to head for that gap, because the gap is where the results look best. When the best option looks too good, the first question is what the model is not charging for.

So the model needs checking before it is used as a judge. Run it as the process stands now and compare it with a period you know. Show the assumptions to people who do the work, and let them argue. Vary the inputs you are least sure of. Scenario and sensitivity analysis are different tools for that last job. Some industries also need more than a generic model offers: a plant that moves liquid through tanks, for example, has its own list of things to check for.

When can AI advice skip the simulation?

When the change is small, local and easy to undo, try it. Rewording a form, changing the order of a checklist or renaming a queue seldom deserves a model.

When the answer is arithmetic, calculate it. And when the main doubt is about people, such as whether staff will accept a new schedule or customers will use a kiosk, a pilot tells you more. A model can show what happens if a given share of customers use the kiosk. It is no guide to how many will.

Common questions about testing AI with simulation

Is a digital twin the same thing?

It is a close relative. The term usually means a model that is kept up to date with data from the live operation. A plain simulation model with current inputs is enough to test most suggestions.

Does every AI suggestion need its own model?

No. One model of the process, checked against reality, can test many suggestions, and most of the effort goes into the first one.

Who should build it?

Someone who can talk to the people doing the work. AI can help with the drafting, as a companion article on using AI and simulation together describes.