DESA: An R Package for Detecting Epidemics using a School-Absenteeism Surveillance Framework

This paper introduces DESA, an R package available on CRAN that models, detects, and evaluates alerts for influenza epidemics using elementary school absenteeism data, while also providing simulation tools for community-level research.

Vinay Joshy, Zeny Feng, Lorna Deeth, Kayla Vanderkruk, Justin Slater

Published Wed, 11 Ma
📖 5 min read🧠 Deep dive

Imagine you are the captain of a massive ship (a city or region) trying to navigate through a foggy sea. Your biggest fear is a sudden, invisible storm (an epidemic like the flu) that could damage your crew (the population). You can't see the storm coming until the waves start crashing over the deck, but by then, it's often too late to take evasive action.

This paper introduces DESA, a new digital "radar system" built by a team of researchers to help public health officials spot these storms early. Instead of waiting for people to go to the hospital (which is slow and often happens too late), DESA listens to a different, quieter signal: school absences.

Here is how the system works, explained through simple analogies:

1. The Early Warning Signal: The "Canary in the Coal Mine"

Think of elementary school children as the "canaries in the coal mine." They are often the first to catch a cold or the flu and the first to stay home.

  • The Old Way: Waiting for doctors to report sick patients is like waiting for the ship's hull to crack before you know there's a storm.
  • The DESA Way: It watches the "attendance board." If suddenly, 10% of kids in a school are missing, DESA treats that like a flashing red light on the radar, suggesting a storm is brewing before anyone even knows they are sick.

2. The Engine: A "Weather Simulator"

To make sure their radar works, the researchers needed to test it. But you can't wait for a real flu pandemic to happen just to test a tool.

  • The Analogy: Imagine a video game where you can simulate a hurricane. You can tweak the wind speed and rain, then see if your storm shelter holds up.
  • How DESA does it: The package includes a powerful simulator. It builds a fake population (families, houses, schools) and then "infects" it with a virtual virus. It watches how the fake virus spreads and how many fake kids stay home. This allows scientists to test their detection tools thousands of times without anyone actually getting sick.

3. The Brain: The "Detective's Logic"

DESA uses a special mathematical formula (a "lag-logistic regression") to connect the dots.

  • The Analogy: Think of a detective trying to solve a mystery. The detective knows that the "crime" (the virus) happened a few days before the "clue" (the child staying home) appeared.
  • How it works: The system looks at yesterday's absence numbers to predict today's risk. It accounts for the fact that flu season happens every winter (seasonal patterns) and that some years are worse than others. It asks: "Is this spike in absences just a normal cold, or is it the start of a massive outbreak?"

4. The Scorecard: "Did the Alarm Ring at the Right Time?"

When the system raises an alert, how do we know if it was good? The paper introduces a "Scorecard" with three main ways to grade the alarm:

  • The "False Alarm" Rate (FAR): Did the system scream "Wolf!" when there was no wolf? (We don't want to panic the town for no reason).
  • The "Delay" Score (ADD): If there was a wolf, how many days late was the alarm? (An alarm that rings after the wolf has already eaten the sheep is useless).
  • The "Timing Quality" (ATQ): This is the most sophisticated score. Imagine the perfect time to ring the alarm is exactly 14 days before the storm hits.
    • Ringing it 14 days early? Perfect score.
    • Ringing it 1 day early? Good score.
    • Ringing it 20 days early? Too early, might cause panic.
    • Ringing it 1 day late? Too late, people are already wet.
    • The system tries to find the "Goldilocks" zone—not too early, not too late.

5. Why This Matters

The paper explains that DESA is a free tool (like a free app) that anyone can download. It helps public health officials:

  • Plan better: If they know a flu wave is coming in two weeks, they can send out vaccines or antiviral medicine before the hospitals get overwhelmed.
  • Save money: It's cheaper to stop a small outbreak than to fight a massive one.
  • Test ideas: They can run simulations to see, "What if we close schools earlier?" or "What if we have a different virus?" without risking real lives.

In a Nutshell

DESA is a smart, free computer program that acts like a crystal ball for flu season. By watching how many kids stay home from school, it predicts when a flu epidemic is about to hit, giving communities a head start to protect themselves. It's like having a weather forecast that tells you it's going to rain before the first cloud appears.