You are on page 1of 5

FEATURES

Downloaded from https://www.science.org at Universidad de Valencia on October 11, 2023


FREE AGENTS
Monumentally complex models are gaming out disaster
scenarios with millions of simulated people By M. Mitchell Waldrop

(DATA) NETWORK DYNAMICS AND SIMULATION SCIENCE LABORATORY (NDSSL)


CREDITS: (IMAGE) DANE WEBSTER, UNIVERSITY OF COLORADO IN DENVER;

A
t 11:15 on a Monday morning in May, an ordinary in every direction and leaves hundreds of thousands of
looking delivery van rolls into the intersection of people dead or dying in the ruins. An electromagnetic
16th and K streets NW in downtown Washington, pulse fries cellphones within 5 kilometers, and the
D.C., just a few blocks north of the White House. power grid across much of the city goes dark. Winds
Inside, suicide bombers trip a switch. shear the bomb’s mushroom cloud into a plume of
Instantly, most of a city block vanishes in a nu- radioactive fallout that drifts eastward into the Mary-
clear fireball two-thirds the size of the one that engulfed land suburbs. Roads quickly become jammed with
Hiroshima, Japan. Powered by 5 kilograms of highly en- people on the move—some trying to flee the area, but
riched uranium that terrorists had hijacked weeks ear- many more looking for missing family members or
lier, the blast smashes buildings for at least a kilometer seeking medical help.

144 13 APRIL 2018 • VOL 360 ISSUE 6385 sciencemag.org SCIENCE

Published by AAAS
NEWS

A plume of radioactive fallout (yellow) stretches east


across Washington, D.C., a few hours after a nuclear
bomb goes off near the White House in this snapshot
of an agent-based model. Bar heights show the
number of people at a location, while color indicates
their health. Red represents sickness or death.

cluster busy for a day and a half—forcing


the agents to be relatively simple-minded.
“There’s a fundamental trade-off between
the complexity of individual agents and the
size of the simulation,” says Jonathan Pfautz,
who funds agent-based modeling of social
behavior as a program manager at the De-
fense Advanced Research Projects Agency in
Arlington, Virginia.
But computers keep getting bigger and
more powerful, as do the data sets used to

Downloaded from https://www.science.org at Universidad de Valencia on October 11, 2023


populate and calibrate the models. In fields as
diverse as economics, transportation, public
health, and urban planning, more and more
decision-makers are taking agent-based mod-
els seriously. “They’re the most flexible and
detailed models out there,” says Ira Longini,
who models epidemics at the University of
Florida in Gainesville, “which makes them by
far the most effective in understanding and
directing policy.”

THE ROOTS of agent-based modeling go back


at least to the 1940s, when computer pio-
neers such as Alan Turing experimented with
locally interacting bits of software to model
It’s all make-believe, of course—but with behavior—for example, panic, flight, and complex behavior in physics and biology. But
deadly serious purpose. Known as National efforts to find family members. the current wave of development didn’t get
Planning Scenario 1 (NPS1), that nuclear at- The point of such models is to avoid de- underway until the mid-1990s.
tack story line originated in the 1950s as a scribing human affairs from the top down One early success was Sugarscape, devel-
kind of war game, a safe way for national with fixed equations, as is traditionally done oped by economists Robert Axtell of George
security officials and emergency managers in such fields as economics and epidemio- Mason University in Fairfax, Virginia, and
to test their response plans before having to logy. Instead, outcomes such as a financial Joshua Epstein of New York University
face the real thing. crash or the spread of a disease emerge from (NYU) in New York City. Because their goal
Sixty years later, officials are still reckon- the bottom up, through the interactions of was to simulate social phenomena on ordi-
ing with the consequences of a nuclear catas- many individuals, leading to a real-world nary desktop computers, they pared agent-
trophe in regular NPS1 exercises. Only now, richness and spontaneity that is otherwise based modeling down to its essence: a set of
instead of following fixed story lines and hard to simulate. simple agents that moved around a grid in
predictions assembled ahead of time, they That kind of detail is exactly what emer- search of “sugar”—a foodlike resource that
are using computers to play what-if with an gency managers need, says Christopher was abundant in some places and scarce in
entire artificial society: an advanced type Barrett, a computer scientist who directs the others. Though simple, the model gave rise
of computer simulation called an agent- Biocomplexity Institute at Virginia Polytech- to surprisingly complex group behaviors
based model. nic Institute and State University (Virginia such as migration, combat, and neighbor-
Today’s version of the NPS1 model in- Tech) in Blacksburg, which developed the hood segregation.
cludes a digital simulation of every building NPS1 model for the government. The NPS1 Another milestone of the 1990s was the
in the area affected by the bomb, as well as model can warn managers, for example, that Transportation Analysis and Simulation Sys-
every road, power line, hospital, and even a power failure at point X might well lead to tem (Transims), an agent-based traffic model
cell tower. The model includes weather data a surprise traffic jam at point Y. If they decide developed by Barrett and others at the Los
to simulate the fallout plume. And the sce- to deploy mobile cell towers in the early hours Alamos National Laboratory in New Mexico.
nario is peopled with some 730,000 agents— of the crisis to restore communications, NPS1 Unlike traditional traffic models, which used
a synthetic population statistically identical can tell them whether more civilians will take equations to describe moving vehicles en
to the real population of the affected area to the roads, or fewer. “Agent-based models masse as a kind of fluid, Transims modeled
in factors such as age, sex, and occupation. are how you get all these pieces sorted out each vehicle and driver as an agent moving
Each agent is an autonomous subroutine and look at the interactions,” Barrett says. through a city’s road network. The simula-
that responds in reasonably human ways The downside is that models like NPS1 tion included a realistic mix of cars, trucks,
to other agents and the evolving disaster tend to be big—each of the model’s initial and buses, driven by people with a realistic
by switching among multiple modes of runs kept a 500-microprocessor computing mix of ages, abilities, and destinations. When

SCIENCE sciencemag.org 13 APRIL 2018 • VOL 360 ISSUE 6385 145


Published by AAAS
NEWS | F E AT U R E S

A recipe for disaster Agent behaviors


The U.S. government relies on an agent-based Death Panic Household reconstitution Aid and assist Health care–seeking Shelter Evacuation
model to predict the effects of a nuclear
800,000
attack in downtown Washington, D.C. The
Several hours after a nuclear attack,

Population in study area


model contains many layers—infrastructure, behavior shifts from eforts to fnd family
transportation, weather—and hundreds of members to evacuation. Total numbers
thousands of “agents” interact in this virtual drop as people fee the study area.
landscape, changing their behavior in ways 400,000
thought to mimic actual human behavior. The
model helps planners identify trouble spots
and assess potential damage. It also yields
surprising patterns, such as some agents’
movements toward the blast in efforts to find 0 1 2 3 4 5 6 7 8 9 10 11 12
family members. Hours after blast

12:45 p.m. A 27-year-old 2:35 p.m. A 16-year-old boy makes


woman panics and circles his way downtown from the
a hospital while trying to Chesapeake Bay, 30 kilometers

Downloaded from https://www.science.org at Universidad de Valencia on October 11, 2023


call her roommate. away, in search of his mother.

11:15 a.m. A 10-kiloton nuclear

CREDITS: (GRAPHIC AND REPORTING) J. YOU/SCIENCE; (DATA) DAWEN XIE, HENNING MORTVEIT, BRYAN LEWIS, DANE WEBSTER/NDSSL; (MAP) STAMEN DESIGN AND OPENSTREETMAP UNDER ODBL, CC BY 3.0
bomb detonates, blasting a
50-meter-deep crater near
the White House.

All four agents 5:45 p.m. The boy reaches his


escape to Virginia. mother and fnds her dead. He
shifts to evacuation mode.

After the frst 48 hours 2:45 p.m. After getting in touch with
Radioactive fallout plume Power outage her roommate, a 26-year-old woman
makes plans to meet up and escape.
Washington, D.C.

Annapolis
5:15 p.m. The 45-year-old 3:45 p.m. After sheltering in
Area shown
Chesapeake man waits for help at an place, a 45-year-old man
Alexandria Bay overwhelmed hospital, then fnds his health deteriorating
Maryland gives up and leaves the city. because of radiation. He
Virginia heads for a hospital.

applied to the road networks in actual cities, ing the 2014 Ebola outbreak in West Africa, be spread through unprotected sex); and on
Transims did better than traditional models for example, the Virginia Tech group used factors that affect mosquito populations,
at predicting traffic jams and local pollution an agent-based model to help the U.S. mili- such as seasonal temperature swings, rain-
levels—one reason why Transims-inspired tary identify sites for field hospitals. Planners fall, and breeding sites such as caches of old
agent-based models are now a standard tool needed to know where the highest infection tires. The result is a model that not only pre-
in transportation planning. rates would be when the mobile units finally dicts how bad such an outbreak could get—
A similar shift was playing out for arrived, how far and how fast patients could something epidemiologists could determine
epidemiologists. For much of the past cen- travel over the region’s notoriously bad roads, from equations—but also suggests where the
tury, they have evaluated disease outbreaks and a host of other issues not captured in the worst hot spots might be.
with a comparatively simple set of equations equations of traditional models. In economics, agent-based models can
that divide people into a few categories—such In another example, Epstein’s laboratory be a powerful tool for understanding global
as susceptible, contagious, and immune—and at NYU is working with the city’s public poverty, says Stéphane Hallegatte, an econo-
that assume perfect mixing, meaning that health department to model potential out- mist at the World Bank in Washington, D.C.
everybody in the affected region is in con- breaks of Zika, a mosquito-borne virus that If all you look at are standard metrics such
tact with everyone else. Those equation- can lead to catastrophic birth defects. The as gross domestic product (GDP) and to-
based models were run first on paper and group has devised a model that includes tal income, he says, then in most countries
then on computers, and they are still used agents representing all 8.5 million New you’re seeing only rich people: The poor have
widely. But epidemiologists are increasingly Yorkers, plus a smaller set of agents repre- so little money that they barely register.
turning to agent-based models to include senting the entire population of individual To do better, Hallegatte and his colleagues
factors that the equations ignore, such as mosquitoes, as estimated from traps. The are looking at individual families. His team
geography, transportation networks, family model also incorporates data on how people built a model with agents representing
structure, and behavior change—all of which typically move between home, work, school, 1.4 million households around the globe—
can strongly affect how disease spreads. Dur- and shopping; on sexual behavior (Zika can roughly 10,000 per country—and looked at

146 13 APRIL 2018 • VOL 360 ISSUE 6385 sciencemag.org SCIENCE

Published by AAAS
how climate change and disasters might af- the agents to shift back and forth among way to reduce chaos: to quickly restore par-
fect health, food security, and labor produc- just a few behaviors, such as “health care– tial cell service, so that people can verify
tivity. The model estimates how storms or seeking,” “shelter-seeking,” and “evacuating.” that their loved ones are safe.
drought might affect farmers’ crop yields and Even so, field studies point to crucial nu-
market prices, or how an earthquake might ances, says Julie Dugdale, an artificial in- IF AGENT-BASED MODELERS have a top pri-
cripple factory workers’ incomes by destroy- telligence researcher at the University of ority, it’s to make the simulations easier to
ing their cars, the roads, or even the factories. Grenoble in France who studies human be- build, run, and use—not least because that
The model suggests something obvious: havior under stress. “In earthquakes,” she would make them more accessible to real-
Poor people are considerably more vulnera- says, “we find that people will be more afraid world decision-makers.
ble to disaster and climate change than rich of being without family or friends than of the Epstein, for example, envisions national
people. But Hallegatte’s team saw a remark- crisis itself.” People will go looking for their centers where decision-makers could access
able amount of variation. If the poor people loved ones first thing and willingly put them- what he calls a petabyte playbook: a library
in a particular country are mostly farm- selves in danger in the process. Likewise in containing digital versions of every large
ers, for example, they might actually ben- fires, Dugdale says. Engineers tend to assume city, with precomputed models of just about
efit from climate change when global food that when the alarm sounds, people will im- every potential hazard. “Then, if something
prices rise. But if the country’s poor people mediately file toward the exits in an orderly actually happens, like a toxic plume,” he says,
are mostly packed into cities, that price rise way. But just watch the next time your build- “we could pick out the model that’s the clos-
could hurt badly. ing has a fire drill, she says: “People don’t est match and do near–real-time calculation

Downloaded from https://www.science.org at Universidad de Valencia on October 11, 2023


That kind of granularity has made it easier evacuate without first talking to others”—and for things like the optimal mix of shelter-in-
for the World Bank to tailor its recommen- if need be, collecting friends and family. place and evacuation.”
dations to each country’s needs, Hallegatte At Virginia Tech, computer scientist
says—and much easier to explain the model’s Madhav Marathe is thinking along the same
results in human terms rather than economic lines. When a Category-5 hurricane is bear-
jargon. “Instead of telling a country that cli- “We find that people will be ing down, he says, someone like the mayor of
mate change will decrease their GDP by X%,” more afraid of being without San Juan can’t be waiting around for a week-
he says, “you can say that 10 million people long analysis of the storm’s possible impact
will fall into poverty. That’s a number that’s family or friends than of the on Puerto Rico’s power grid. She needs infor-
much easier to understand.” crisis itself.” mation that’s actionable, he says—“and that
means models with a simple interface, run-
GIVEN HOW MUCH is at stake in those simula- Julie Dugdale, University of Grenoble ning in the cloud, delivering very sophisti-
tions, Barrett says, users always want to know cated analytics in a very short period of time.”
why they should trust the results. How can The evidence also suggests that blind, Marathe calls it “agent-based modeling
they be sure that the model’s output has any- unthinking panic is rare. In an agent-based as a service.” His lab has already spent the
thing to do with the real world—especially in model published in 2011, sociologist Ben past 4 years developing and testing a web-
cases such as nuclear disasters, which have Aguirre and his colleagues at the University based tool that lets public health officials
no empirical data to go on? of Delaware in Newark tried to reproduce build pandemic simulations and do what-if
Barrett says that question has several an- what happened in a 2003 Rhode Island analyses on their own, without having to hire
swers. First, users shouldn’t expect the mod- nightclub fire. The crowds jammed together programmers. With just a few clicks, users
els to make specific predictions about, say, so tightly that no one could move, and can specify key variables such as the region
a stock market crash next Tuesday. Instead, 100 people died. Between the police, the lo- of interest, from as small as a single city to
most modelers accommodate the inevitable cal paper, and survivors’ accounts, Aguirre’s the entire United States, and the type of dis-
uncertainties by averaging over many runs of team had good data on the victims, their be- ease, such as influenza, measles, Ebola, or
each scenario and displaying a likely range havior, and their relationships to others. And something new. Then, using the tool’s built-
of outcomes, much like landfall forecasts for when the researchers incorporated those in maps and graphs, users can watch the
hurricanes. That still allows planners to use relationships into the model, he says, the simulation unfold and see the effect of their
the model as a test bed to game out the con- runs most consistent with the actual fire in- proposed treatment protocols.
sequences of taking action A, B, or C. volved almost no panic at all. “We found that Despite being specialized for epidemics,
Second, Barrett says, the modelers should people were trying to get out with friends, Marathe says, the tool’s underlying geo-
not just slap the model together and see co-workers, and loved ones,” Aguirre says. graphic models and synthetic populations
whether the final results make sense. In- “They were not trying to hurt each other. are general, and they can be applied to other
stead, they should validate the model as they That was a happenstance.” kinds of disasters, such as chemical spills,
build it, looking at each piece as they slot it The NPS1 model tries to incorporate such hurricanes, and cascading failures in power
in—how people get to and from work, for insights, sending its agents into “household networks. Ultimately, he says, “the hope is
example—and matching it to real-world data reconstitution” mode (searching for friends to build such models into services that are
from transit agencies, the census, and other and family) much more often than “panic” individualized—for you, your family, or your
sources. “At every step, there is data that mode (running around with no coherent city.” Or, as Barrett puts it, “If I send Jimmy
you’re calibrating to,” he says. goal). And the results can sometimes be to school today, what’s the probability of him
Modelers should also try to calibrate counterintuitive. For example, the model getting Zika?”
agents’ behaviors by using studies of human suggests that right after the strike, emer- So it won’t just be bureaucrats using those
psychology. Doing so can be tricky—humans gency managers should expect to see some systems, Barrett adds. It will be you. “It will
are complicated—but in crisis situations, people rushing toward ground zero, jam- be as routine as Google Maps.” j
modeling behavior becomes easier because ming the roads in a frantic effort to pick
it tends to be primal. The NPS1 model, for up children from school or find missing M. Mitchell Waldrop is a journalist based
example, gets by with built-in rules that cause spouses. The model also points to a good in Washington, D.C.

SCIENCE sciencemag.org 13 APRIL 2018 • VOL 360 ISSUE 6385 147


Published by AAAS
Free agents
M. Mitchell Waldrop

Science 360 (6385), . DOI: 10.1126/science.360.6385.144

Downloaded from https://www.science.org at Universidad de Valencia on October 11, 2023


View the article online
https://www.science.org/doi/10.1126/science.360.6385.144
Permissions
https://www.science.org/help/reprints-and-permissions

Use of this article is subject to the Terms of service

Science (ISSN 1095-9203) is published by the American Association for the Advancement of Science. 1200 New York Avenue NW,
Washington, DC 20005. The title Science is a registered trademark of AAAS.

Copyright © 2018 The Authors, some rights reserved; exclusive licensee American Association for the Advancement of Science. No claim
to original U.S. Government Works

You might also like