When the COVID-19 pandemic hit in 2020, shoppers around the world stripped supermarket shelves of toilet paper. Australians alone bought 39.7 million rolls from the Woolworths chain in a single week, according to the store's 2020 annual report. A similar panic swept the U.S. in 2012 after Hostess announced it was shutting down, triggering a "Twinkie apocalypse" as people stockpiled the snack cakes. One Florida man bought 20 boxes of Twinkies and Ding Dongs for about $100 and resold them for $1,000 per box, Wired reported at the time.
These kinds of cascading reactions are not random, according to Babak Heydari, a professor of mechanical and industrial engineering at Northeastern University. "Everyone in the supply chain starts reacting to other parts of the chain," Heydari told Northeastern Global News. That insight applies to customers and suppliers alike, he said.
Accurately simulating how people make decisions — including their tendency to overreact — could help businesses and policymakers anticipate problems before they happen. In a study published Nov. 16 in Nature Computational Science, Heydari and graduate student Hongan Zhu demonstrated that AI models can reproduce human decision-making more closely when they account for the way people actually think, flaws and all.
The findings could help scientists build more realistic simulations of human behavior across many situations, Heydari said. If researchers can predict how people will respond to a change, they can test interventions — such as price adjustments, new laws or evacuation orders — before implementing them in the real world. For example, officials could test which evacuation instructions help residents reach safety and which ones might funnel drivers into gridlock. Transit planners could test whether lower fares would encourage drivers to take the bus. A business could explore whether moving a pharmacy to a new location would attract customers or make it harder for existing clients to reach it.
The idea of simulating human decisions goes back to a 1971 experiment by Nobel laureate Thomas Schelling, who used coins and dice on a grid to show how small individual choices can lead to large-scale segregation patterns. Scientists eventually replaced coins with computers, laying the groundwork for agent-based simulation, Heydari explained.
"Human studies take time and money, which limits how many experiments we can run in practice," said Jakob Kaiser, senior researcher at the Nuremberg Institute for Market Decisions, a nonprofit in Germany. AI offers a faster alternative. Simulations also bypass ethical concerns, added Sangeet Khemlani, senior cognitive scientist at the U.S. Naval Research Laboratory in Washington, D.C. AI can test scenarios that would be too risky to try on real people, he said. But simulations must be accurate to be useful — incorrect predictions can backfire, Khemlani noted.
To test how closely AI could mimic people, Heydari and Zhu had agents from seven AI models play the "beer game," a classic supply-chain simulation. Four agents — a retailer, a wholesaler, a distributor and a factory — run a pretend supply chain in response to customer demand. Each player sees only part of the picture and decides how much beer to order or supply. Deliveries take time, so players must track what is on the way. The goal is to keep enough beer on hand without accumulating too much surplus.
Left to their own devices, the AI agents made odd choices. Some ordered far too much even after demand leveled off, instead of adjusting as a human might. Then Zhu and Heydari added "cognitive grounding" — teaching the agents how people estimate demand, respond to shortages or excess, and sometimes fail to account for supply already in transit. The information came from earlier experiments analyzing how humans play the beer game.
"It is just a paraphrase of the mathematical model of how to play the game," Zhu said. "It doesn't contain anything that explicitly tells them how much they should buy."
Across 231 sessions, the beer-buying bots moved closer to human behavior. Some nearly matched it. "Basically, they internalized what humans would do," Zhu said.
In another round of testing, the researchers described what people might experience during the game — such as uncertainty, pressure to order more or an urge to overcorrect — instead of explaining their decisions directly. Agents from six of the seven models responded more like people as a result. Still, some bots were set in their ways. One cut back from ordering 1,000 beers to 100 or 50.
Zhu compared the lab's approach to AI to how psychologists treat patients. "We don't go into the neural pathways," he said. Instead, they observe how the agents behave and use language to redirect their choices.
For Heydari, better predictions translate to practical improvements. "Our lab has one leg in engineering and one leg in computational social sciences and economics," he said. "We care about understanding things, but once we get that understanding, we want to use it to design better ways to improve the systems."