Pandemic Modeling - Disease Dynamics on Networks

LESSON

System Dynamics and Causal Modeling

002 30 min intermediate

Day 370: Pandemic Modeling - Disease Dynamics on Networks

The core idea: Pandemic models become decision-useful when infection follows real contact structure instead of an imaginary average population, because outbreaks accelerate through hubs, bridges, and timing patterns that a uniform-mixing curve hides.

Today's "Aha!" Moment

In 01.md, Harbor City learned to describe Seawall District in terms of stocks, flows, and delays. That framing still matters once the problem changes from traffic and runoff to disease spread. Susceptible, infected, isolated, hospitalized, and recovered people are all stocks. Exposure, infection, testing, isolation, and recovery are all flows. But the city makes a costly mistake if it stops there and assumes every resident mixes with everyone else.

The first Seawall Festival weekend proves why. Most early cases are not scattered evenly across Harbor City. They appear in three linked clusters: food-stall workers who shared prep space, secondary-school students who rode the same tram branch home, and care-home staff who also work part-time in waterfront hospitality. A citywide average can estimate that the outbreak is growing. It cannot tell the mayor whether closing the festival grounds, thinning tram loads, moving the school to remote instruction, or protecting care-home staff will bend the curve fastest.

That is the network insight: infection does not flow through a city the way dye spreads through a well-stirred tank. It flows along actual contact opportunities. Some people have many contacts, some communities are tightly clustered, and a few individuals act as bridges between otherwise separate groups. If the pathogen reaches a bridge, the outbreak can jump neighborhoods. If it stays trapped inside one cluster, the same pathogen may burn out locally.

The misconception to discard is that pandemic modeling is mostly about picking an R0 and projecting a smooth curve. R0 is a summary of transmission under particular contact patterns; it is not a substitute for those patterns. Once Harbor City starts asking intervention questions instead of dashboard questions, the contact network stops being detail and becomes mechanism.

Why This Matters

Public-health teams rarely choose between "do nothing" and "lock down everything." They choose between constrained interventions under time pressure: who gets limited vaccine doses first, which workplaces should be cohorted, whether a school closure is worth the disruption, whether a transit schedule change reduces spread or only moves crowding to another platform. Those are network questions because the answer depends on who meets whom, how often, and in what sequence.

If Harbor City uses only a homogeneous-mixing model, it can still estimate a rough outbreak size. What it misses is structure. A tram operator who sees hundreds of riders in short bursts is not interchangeable with a remote office worker. A care-home aide who connects a vulnerable facility to the broader community is not interchangeable with a resident whose contacts stay inside one household. Treating them as statistically identical can push scarce interventions toward the wrong places.

The production value of network modeling is therefore not "more realism" in the abstract. It is the ability to test targeted actions before spending political capital and operational capacity. Harbor City can compare broad citywide distancing, station-specific load controls, staff cohorting in care facilities, and school schedule changes by asking how each intervention removes edges, weakens bridges, or changes contact timing. That is the difference between forecasting cases and designing control.

Learning Objectives

By the end of this session, you will be able to:

  1. Explain why contact topology changes epidemic behavior - Show how hubs, bridges, clustering, and timing alter transmission even when pathogen biology stays the same.
  2. Trace how a network epidemic model works internally - Describe how nodes, edges, transmission probabilities, and state transitions combine into simulated spread.
  3. Evaluate when network models are worth the added complexity - Compare their policy value against their data, calibration, privacy, and uncertainty costs.

Core Concepts Explained

Concept 1: Network models refine the stock-flow picture by saying where infection can travel

The Harbor City team starts with a familiar compartment view from 01.md: residents are susceptible, infected, isolated, recovered, or hospitalized, and those counts change over time. That is still true. What changes is how the infection flow is computed. In a mass-action SIR model, new infections are often approximated from average mixing, which assumes each susceptible person experiences something like the same exposure pressure from the infected population. That assumption breaks down the moment contact opportunities are uneven.

In Seawall District, they are uneven everywhere. Food vendors work shoulder to shoulder for hours. Students mix intensely during school and then split into household clusters. Care-home staff have repeated close contact with residents and then disperse across the city at shift change. The relevant unit is no longer just "how many infected people exist?" but "which infected people are connected to which susceptible people right now?"

A network model represents that structure directly. Nodes stand for people, households, classrooms, or workplaces depending on the model scale. Edges represent contacts that could transmit infection. Those edges may be weighted by duration, proximity, mask use, or setting, and they may change over time as shifts end, schools close, or travel patterns change.

festival workers -> tram staff -> commuters -> households
        |                               |
        v                               v
   school parents ----------------> care-home staff -> residents

Once the graph exists, infection is no longer a citywide average pressure. A susceptible node's risk is driven by infected neighbors and the characteristics of those contacts. If one student has three infected classmates and another has none, the model should not assign them the same hazard just because they live in the same city. A simple way to express this is:

P(infection this step) = 1 - (1 - p)^k

where p is per-contact transmission probability and k is the number of infectious contacts in that time step. Real models are more detailed than this, but the mechanism is the same: infection follows edges.

The trade-off is immediate. Harbor City gets a model that can distinguish a sealed household cluster from a busy transfer station, but only by making explicit assumptions about the network. If those assumptions are weak, the added realism can turn into false precision.

Concept 2: Network topology determines which interventions punch above their weight

Once Harbor City maps the contact structure, intervention design changes. The team notices that most festival cases are inside dense local clusters, but the citywide growth risk comes from a smaller set of bridges: tram operators, split-shift hospitality workers, and secondary-school students who connect Seawall to older family members in North Point. Closing the festival grounds helps, but protecting those bridges helps more because it interrupts spread between communities rather than only inside one.

This is why network properties matter. High-degree nodes create many transmission opportunities. Bridge nodes connect otherwise separate communities. Clustering can trap infection locally for a while, yet repeated contacts inside that cluster can still drive high attack rates. Temporal ordering matters too: if a worker does a morning shift at the tram depot and an evening shift at the care home, the sequence of those contacts changes which edges matter on which day.

A compartment model can say that reducing transmission by 20% is beneficial. A network model can ask where that 20% should come from. Harbor City compares four options:

The broad closure removes many edges at high social cost. The targeted options remove fewer edges, but they target high-leverage parts of the graph. If the bridges drive cross-neighborhood spread, targeted measures can outperform blanket restrictions.

The mechanism is closely related to percolation. An outbreak becomes citywide when enough transmission-capable paths remain connected for infection to keep hopping from cluster to cluster. Break a few critical paths and the pathogen may still circulate locally without sustaining a large cascade. Leave those paths intact and a modest-looking cluster can suddenly become system-wide.

The trade-off is that targeted policies depend on better data and better governance. Harbor City must know enough about staffing patterns, transit use, and household mixing to identify critical connectors, and it must manage the fairness and privacy implications of acting on that knowledge.

Concept 3: Real network epidemic modeling is an uncertainty-management exercise, not a perfect map of reality

The hardest part of Harbor City's outbreak response is not writing the simulator. It is deciding which network to trust. The city has fragments of evidence: school rosters, care-home staffing records, transit tap-in data, voluntary contact-tracing interviews, wastewater signals, and hospitalization counts. None of those sources is the contact network by itself. Each one is incomplete, biased, or delayed.

That means a production-grade network model usually runs as a family of plausible worlds rather than one authoritative graph. The team may build a baseline network from rosters and household structure, test alternative assumptions about after-work social mixing, and simulate how behavior changes once the festival is canceled. If the conclusion only holds under one fragile contact pattern, it is not ready to drive policy.

This is also where model validation becomes practical. Harbor City checks whether the simulated outbreak reproduces the observed pattern that matters for decisions: school-linked onset first, then growth along a tram branch, then delayed penetration into care facilities. If the model gets total cases roughly right but spreads them through the wrong pathways, it may still be useless for intervention design because it is answering the wrong causal question.

Operationally, the output must connect to actions. The model should tell the city what to watch after intervening: absenteeism in the secondary school, positive tests among tram operators, staff shortages at care facilities, and whether household clusters are replacing workplace clusters. If the model changes no thresholds, no monitoring plan, and no fallback strategy, it is decoration.

The main trade-off is familiar from all serious systems modeling. Network structure gives Harbor City a better chance of finding high-leverage interventions, but it also increases dependence on hidden assumptions, sensitive data, and behavior changes that can invalidate yesterday's graph. That is why the next lesson in 03.md moves from outbreak thresholds to climate tipping points: in both cases, the strategic question is not whether the system is complicated, but which couplings make a gradual pressure turn into a discontinuous shift.

Troubleshooting

Issue: The team treats R0 as a fixed biological constant and assumes the same value should drive every scenario.

Why it happens / is confusing: Published reproduction numbers are easy to quote, so people forget they summarize transmission under particular contact patterns, behavior, and control measures.

Clarification / Fix: Separate pathogen parameters from network parameters. Infectious period and per-contact transmission are not the same thing as who meets whom, how often, and in what order.

Issue: A static contact graph looks plausible, but the intervention recommendations fail once schedules change.

Why it happens / is confusing: Real networks are temporal. School closure, remote work, festival cancellation, and testing rules all reshape the graph after the first announcement.

Clarification / Fix: Model the network in layers or time slices, and rerun scenarios with post-intervention behavior instead of assuming yesterday's contact map still applies.

Issue: The model recommends a narrowly targeted intervention, but leaders do not trust it.

Why it happens / is confusing: Targeted policies feel brittle when the contact data is incomplete, privacy constraints limit visibility, or the simulation only works under one parameter set.

Clarification / Fix: Show sensitivity ranges, identify the assumptions doing the real work, and keep a broader fallback intervention ready if observed spread diverges from the modeled pathways.

Advanced Connections

Connection 1: Pandemic Networks ↔ Cascades in Distributed Infrastructure

A disease outbreak on a contact graph behaves a lot like a fault moving through a dependency graph. Most nodes fail locally; a few connectors propagate the problem across subsystems. In practice, SRE teams learn the same lesson Harbor City learns here: if you protect or isolate the bridges, you often prevent a citywide or system-wide cascade without shutting everything down.

Connection 2: Pandemic Networks ↔ Climate Tipping Systems

Network epidemiology and climate modeling both care about thresholds created by coupling structure rather than by averages alone. In Harbor City, a handful of bridges can move the outbreak past a connectivity threshold. In 03.md, coupled ocean, ice, and atmospheric processes create similar questions at planetary scale: which links keep a disturbance local, and which ones let it tip the whole system into a new regime?

Resources

Key Insights

  1. Infection follows edges, not averages - A useful pandemic model must represent who can actually infect whom, not only how many cases exist citywide.
  2. Topology changes intervention value - Hubs, bridges, clustering, and temporal order determine whether targeted controls outperform blanket restrictions.
  3. Network realism buys leverage at the cost of uncertainty - Better intervention design depends on better contact assumptions, stronger validation, and explicit sensitivity analysis.
PREVIOUS System Dynamics - Stocks, Flows, and Feedback Loops NEXT Climate Systems - Planetary Complexity and Tipping Points

← Back to System Dynamics and Causal Modeling

← Back to Learning Hub