How AI Models Optimize COVID-19 Mitigation Policies

Peter Bubenik · Sony AI · · Source

Defined Learning Outcomes

After studying this material, a student should be able to:

  1. Explain how epidemiological modeling works and its limitations
  2. Understand how Agent-Based Models (ABMs) differ from traditional pandemic models
  3. Understand how Reinforcement Learning (RL) optimizes mitigation policies
  4. Understand how Hidden Markov Models (HMMs) predict infection states under uncertainty
  5. Evaluate how these three components integrate into a unified pandemic response system

Step-by-Step Teaching Guide


STEP 1: The Problem Context

Why Do We Need Models for Pandemics?

During COVID-19, governments faced a dual objective:

Minimize Deaths ←——TENSION——→ Minimize Economic Damage

Traditional approaches relied on heuristics (educated guesses):

  • "Close restaurants if cases exceed X"
  • "Mandate masks when hospitalizations rise"

The core problem: Heuristics are reactive, not optimal.

Traditional Epidemiological Models (The Baseline)

The most common traditional model is SIR:

S → I → R
(Susceptible) → (Infected) → (Recovered)
CompartmentMeaning
SPeople who CAN get infected
IPeople currently infected
RPeople recovered/immune

Limitations of SIR:

  • Treats population as a homogeneous mass
  • Cannot model WHERE people interact
  • Cannot model WHO interacts with whom
  • Produces average predictions, not individual-level insights

🔑 Key Insight: Traditional models lack granularity. They cannot distinguish between a grocery store interaction vs. a household interaction.


STEP 2: Agent-Based Modeling (ABM)

What Is an Agent-Based Model?

Instead of tracking population-level statistics, ABMs simulate individual people (agents) and their specific interactions.

Traditional Model:          Agent-Based Model:
                           
[Population %]             [Person A]──[Location: Grocery]──[Person B]
    ↓                           ↓                                ↓
[Infection Rate]           [Gets infected]              [Spreads to Person C]

Core Components of the ABM in This Paper

1. Agents

  • Each person is individually simulated
  • Each agent has a state (Susceptible, Infected, Recovered, etc.)
  • Each agent has behaviors (goes to work, shops, stays home)

2. Locations

  • Specific places modeled: homes, workplaces, stores, hospitals
  • Interactions only happen at shared locations

3. Interactions

  • Infection probability depends on:
    • How long agents share a location
    • How many people are at that location
    • Whether mitigation measures are active

Visual Example

Morning:                    Afternoon:
                           
[Person A] → [Workplace]   [Person A] → [Grocery Store]
[Person B] → [Workplace]   [Person C] → [Grocery Store]
[Person C] → [Home]        [Person B] → [Home]

Result: A and B may interact   Result: A and C may interact
        in the morning                 in the afternoon

🔑 Key Insight: ABMs capture fine-grained interactions that aggregate models miss. This makes them far more realistic for policy testing.

Why ABMs Are Better for Policy Testing

FeatureTraditional ModelAgent-Based Model
Individual tracking
Location-specific spread
Policy granularityLowHigh
Computational costLowHigh
RealismLowHigh

STEP 3: Reinforcement Learning for Policy Optimization

What Is Reinforcement Learning?

RL is a type of machine learning where an agent learns by trial and error to maximize a reward.

         ┌─────────────────────────────────┐
         ↓                                 |
    [Environment]  →  [State]  →  [Agent]  →  [Action]
         ↑                                 |
         └──────── [Reward] ───────────────┘

In the pandemic context:

RL ComponentPandemic Equivalent
EnvironmentThe ABM simulator
StateCurrent infection levels, hospital capacity
AgentThe policy-maker (government)
ActionOpen/close locations, mandate masks
RewardLow infections + low economic damage

The Policy Optimization Problem

The RL agent must learn:

Given current pandemic state → Choose best mitigation action

Example Actions:

  • Close all restaurants (high economic cost, high health benefit)
  • Close only indoor dining (medium cost, medium benefit)
  • Require masks only (low cost, low-medium benefit)
  • Do nothing (no cost, high health risk)

The Reward Function

The reward function encodes the dual objective:

Reward = α × (Economic Activity) - β × (Hospital Overflow Penalty)

Where:

  • α weights economic importance
  • β weights health system protection
  • Hospital Overflow = catastrophic penalty when capacity exceeded

🔑 Key Insight: RL finds policies that are provably better than heuristics because it systematically explores the policy space and learns from outcomes.

Why Use the ABM as the RL Environment?

Real World Testing:          ABM Simulator Testing:
- Unethical                  - Safe
- Irreversible               - Repeatable  
- Slow (months)              - Fast (minutes)
- Uncontrolled               - Controlled

The ABM acts as a safe sandbox where the RL agent can test thousands of policies without real-world consequences.


STEP 4: Hidden Markov Models for Infection Prediction

The Observation Problem

In reality, we cannot directly observe who is infected:

True State:    [Infected] ←── HIDDEN
                   ↓
Observations:  [Test Result] [Symptoms] [Contact History] ←── VISIBLE

This is the classic Hidden Markov Model (HMM) problem.

What Is a Markov Model?

A Markov Model assumes the future depends only on the current state, not history:

P(State at t+1) = f(State at t)    ← Markov Property

Disease progression as a Markov Chain:

Susceptible → Exposed → Infectious → Recovered
     ↑______________|                    |
                                    (or Dead)

Each arrow has a transition probability.

What Makes It "Hidden"?

In an HMM, the true states are hidden but produce observable outputs:

Hidden States:    [S] → [E] → [I] → [R]
                   ↓     ↓     ↓     ↓
Observations:    [neg] [neg] [pos] [neg]  ← Test Results
                 [none][none][fever][none] ← Symptoms

The Three Key HMM Questions

QuestionMeaningAlgorithm
EvaluationWhat's the probability of these observations?Forward Algorithm
DecodingWhat's the most likely hidden state sequence?Viterbi Algorithm
LearningWhat parameters best explain observations?Baum-Welch (EM)

Application to COVID-19

Inputs (Observations):

  • Test results (positive/negative)
  • Symptom presence (fever, cough, etc.)
  • Contact history (who did this person meet?)

Output (Hidden State Estimate):

  • Probability that each individual is currently infected
Person X:
- Test: Negative (but tests have false negative rates!)
- Symptoms: Mild cough
- Contacts: Met Person Y who tested positive

HMM Output: 73% probability Person X is infected

🔑 Key Insight: HMMs handle uncertainty and partial information — critical because COVID-19 tests are imperfect and many cases are asymptomatic.

Why Bayesian Inference?

Bayesian inference updates beliefs based on new evidence:

Prior Belief + New Evidence → Updated Belief (Posterior)

P(Infected | Observations) ∝ P(Observations | Infected) × P(Infected)

This allows the model to:

  • Start with population-level infection rates (prior)
  • Update based on individual test results and symptoms
  • Continuously refine estimates as new data arrives

STEP 5: System Integration

How All Three Components Work Together

┌─────────────────────────────────────────────────────────┐
│                    COMPLETE SYSTEM                       │
│                                                         │
│  [Real World Data]                                      │
│        ↓                                                │
│  [HMM + Bayesian Inference]                             │
│  "Who is likely infected?"                              │
│        ↓                                                │
│  [ABM Simulator]  ←──────────────────────────┐         │
│  "Simulate community spread"                  │         │
│        ↓                                      │         │
│  [RL Policy Agent]                            │         │
│  "What restrictions should we impose?"        │         │
│        ↓                                      │         │
│  [Policy Actions] ────────────────────────────┘         │
│  "Close X, Open Y, Mandate Z"                           │
└─────────────────────────────────────────────────────────┘

Information Flow Summary

  1. HMM estimates who is infected from partial observations
  2. ABM simulates how the disease spreads given current infection estimates
  3. RL Agent observes the simulation state and selects optimal policies
  4. Policies are fed back into the ABM to simulate their effects
  5. Cycle repeats → continuously improving policy recommendations

STEP 6: Key Takeaways & Synthesis

Conceptual Summary Table

ComponentProblem SolvedKey Strength
ABMUnrealistic aggregate modelsFine-grained individual interactions
RLHeuristic-based policiesSystematic optimization
HMMUnobservable infection statesProbabilistic inference under uncertainty
Bayesian InferenceStatic beliefsDynamic belief updating

Critical Thinking Questions

  1. Why can't we just use RL directly on real populations?

    • Unethical, irreversible, too slow → Need the ABM simulator
  2. Why not just test everyone to know who's infected?

    • Tests have false negatives, asymptomatic cases exist, testing capacity is limited → Need HMM
  3. Why is RL better than expert heuristics?

    • RL explores the full policy space systematically; experts rely on intuition and limited experience
  4. What are the limitations of this approach?

    • ABM must accurately reflect real community → garbage in, garbage out
    • RL requires many simulation runs → computationally expensive
    • HMM assumptions may not perfectly match disease biology

Final Knowledge Check

✅ Can you explain why traditional SIR models are insufficient for fine-grained policy making?

✅ Can you describe what an "agent" does in an Agent-Based Model?

✅ Can you map the RL components (state, action, reward) to the pandemic scenario?

✅ Can you explain why infection status is a "hidden" state and what observations reveal it?

✅ Can you trace how data flows through the complete integrated system?

More to study