Epidemic ModelingData and inference

Module 9Surveillance, mobility and genomic data

What the data streams see, and what they miss. In a simulated city with a known epidemic, we treat surveillance as a measurement process (delays, a reporting share that changes), correct serosurveys for imperfect tests, see how phone-based mobility data can mislead, use genomes to follow a new variant and the bias in which samples get sequenced, and read wastewater, search and pharmacy signals, then combine the streams.

By the end you should be able to write the observation model behind a data stream, correct a serosurvey for test errors, judge mobility and genomic data by how they were sampled, and combine several streams to follow one hidden epidemic.

Key ideas, one per episode

  • Ep. 38Cases are infections seen through delays and a changing reporting share; correct serosurveys for test errors; phone data count only the phones they see.
  • Ep. 39Fifty genomes a week found a new variant around day 31, five hundred around day 10; a constant sampling bias distorts its share, not its growth.
  • Ep. 40Wastewater turned 6 to 9 days before reported cases and ignored a testing cut; combining streams beat any one alone.

Textbook: Chapter 9 of T. Lazebnik, Epidemic Modeling: Principles, Algorithms, and Applications (Academic Press, 2026). The episodes and slides follow the chapter’s topics in our own words, figures and simulations; nothing is copied from the book.

The title slide of Module 9: Surveillance, mobility and genomic data

28 slides, written to be read on your own, with worked examples, “try it” boxes, our own small simulations and check-yourself questions (answers at the end). PDF, 0.8 MB.

Watch

3 short episodes for this module. Pick one from the list, and open the transcript to read along: each timestamp plays the episode from there. The narration is generated with a voice clone of Teddy, used with his permission.

Episode 38 · 3:17

Surveillance as measurement, and mobility data

Surveillance as a measurement process: reporting delays and a changing reporting share, why cases can fall while infections rise, correcting serosurveys for imperfect tests, and how phone-based mobility data can mislead.

Cases are infections seen through delays and a changing reporting share; correct serosurveys for test errors; phone data count only the phones they see.

TranscriptEpisode 38
0:00

The end of a pipeline. A case count is not a thermometer reading of the epidemic. It's the end of a long pipeline. Welcome to Module nine: the data streams, and what each one really sees.

0:17

Infections and cases. Our simulated city has a million people, an epidemic, a lockdown on day sixty two and a relaxation on day one hundred ten. We know every infection: seventy one thousand in all. An infection becomes a case only if someone notices: symptoms after about five days, then a test and a report about four days later. Cases arrive eight days after infection on average, and only a share is ever found. That share changes. Here testing grew from fifteen to thirty five percent of infections, and then a policy change on day one hundred fifty cut it to twenty. Overall, only twenty two percent of infections became cases.

0:55

When testing changes. Watch what the policy change does. In the week after it, infections grew by more than two percent a day, while cases fell by about one percent a day. For eleven days, cases fell while infections rose. So model the measurement: write the infections, then the delays and the reporting share that turn them into data.

1:15

Serosurveys. Serosurveys measure past infection directly: test a random sample for antibodies. But tests make mistakes. With ninety percent sensitivity and ninety eight and a half percent specificity, false positives dominate when few people are truly positive. On day forty, when only 0.03 percent had been infected, a survey of two thousand people would find about one and a half percent positive: fifty times too many. The standard correction subtracts the false positive rate. Then it divides by the sum of sensitivity and specificity, minus one. On day one hundred ninety, corrected surveys ranged from 3.9 to 5.8 percent, around the truth of 4.8. Cases alone said 1.4.

2:00

Mobility data. Mobility data tell us how places connect: who travels where, and who mixes with whom. Phone data are the richest source, but they count only the phones they see. Our test: an outbreak starts in a small town whose residents make a thousand trips a day to the city. Only eight percent of the town's people use the phone company that shares data, against twenty eight percent nationally. Scaled up, the data show two hundred eighty trips. With the true flows, the city passes one infectious person per ten thousand on day twenty seven. With the phone flows, the model says day thirty two: five days of warning that don't exist. And a drop in visits is not the same as a drop in contacts: the link between them has to be estimated. Treat mobility as an input with its own uncertainty, and protect the privacy of the people behind it.

2:49

Next. Next: genomes. How sequences reveal new variants, and how sampling shapes what they can tell us.

Interactive lab

What surveillance sees

Change the reporting share and delay, correct a serosurvey for sensitivity and specificity, and see how noise, rain and sampling change what wastewater shows.

The module's simulated city runs in your browser: the true infections are known, and each panel shows what one data stream would see.

Simple math

One hidden epidemic, three views

The module's simulated city: a million people, a lockdown on day 62, a relaxation on day 110. The infections (orange) are known; each panel shows what one data stream would see. Everything runs in your browser.

Reported cases
cases(t) = Σ share × infections(t − d) × delay(d)

Only a share of infections is reported, after a delay (here a gamma distribution).

Serosurvey
true ≈ (positive + sp − 1) ÷ (se + sp − 1)

Imperfect tests: false positives dominate when few people have been infected.

Wastewater
concentration = shedding ÷ flow × noise

Shedding from all recent infections, diluted on rainy days, measured with noise.

Infections peak
–
Cases peak
–
Share reported
–
Wrong direction
–

Running…

Infections and cases

Orange: new infections; blue: reported cases ÷ the first share.

Challenges

Each one is checked on your current settings, in its own panel.

  1. Make reported cases fall for at least 10 days while infections rise.
  2. Serosurvey: with fewer than 1% ever infected, get a positive share more than 3 times the truth.
  3. Serosurvey: get the corrected 90% range narrower than 1 percentage point (with more than 0.5% infected).
  4. Wastewater: with noise of 0.5 or more, see the first wave turn at least 2 days before reported cases (and not before the infections).
Ever infected
–
Survey positive
–
Corrected, 90% of surveys
–

Running…

True and observed positivity

Black: share ever infected; orange: the expected share testing positive.

Infections turn
–
Wastewater turns
–
Cases turn
–

Running…

Infections and wastewater

Orange: infections; blue dots: samples (light blue: rainy days); dashed: the day each stream turns.