Immune System vs Infection illustration

Immune System vs Infection

This agent-based model pits a spreading infection against an immune response inside a patch of tissue. Pathogens drift, divide on a timer and infect nearby healthy cells; immune cells patrol, chase pathogens they sense and destroy them, and their numbers grow as the infection recruits more of them. The outcome hangs on a race between how fast the pathogen multiplies and how fast the immune response ramps up and finds it. Seed an infection with a click, tune the pathogen growth rate, immune speed, detection range and recruitment, and watch the population curves of healthy cells, pathogens and immune cells rise and fall as the body either clears the infection or loses.

Runs 100% in your browser — simulations are computed locally on your device.

Notes

  • The result is a race between exponential pathogen growth and the immune ramp-up: catch it early and the response clears it, fall behind and the pathogen wins — the same logic behind why early treatment matters.
  • Immune cells use local sensing to chase pathogens, so detection range and speed matter as much as sheer numbers, echoing how real immune cells follow chemical gradients.
  • This is a caricature, not immunology: it captures the predator–prey-style dynamics of infection and response, not the real molecular machinery of antibodies and T-cells.
  • Runs 100% in your browser — simulations are computed locally on your device.