MemoSimagent-based modeling studio

Library/Health and life sciences

Hospital acquired infection

Patients (turtles) move randomly around a small ward (a 31×31 patch grid).

Run in your browser Download .nlogox Get MemoSim verified in NetLogo Web · or open in MemoSim
Read the assumptions first. The model itself says it is illustrative and uncalibrated. Treat its output as a demonstration of a mechanism, not an estimate of a real system.

Category: Health and Life Sciences

This is an illustrative, uncalibrated agent-based model of how hospital-acquired (nosocomial) infections can spread through a ward. It is a teaching tool, not a scientifically validated result.

Mechanism

  • Patients (turtles) move randomly around a small ward (a 31×31 patch grid).
  • Surfaces (patches) can become contaminated when an infected patient touches them.
  • A patient with dirty hands who touches a contaminated surface can become infected.
  • Hand hygiene: each tick, a patient washes their hands with probability hand-hygiene-rate. Clean hands block transmission.
  • Hands get dirty again with probability hands-dirty-rate.
  • Surface cleaning: contaminated surfaces are decontaminated with probability cleaning-rate.
  • Recovery: infected patients recover with probability recovery-rate and become immune (yellow).

Controls

| Parameter | Meaning | Units | |---|---|---| | initial-patients | Number of patients in the ward | count | | initial-seed-infected | Patients infected at start | count | | hand-hygiene-rate | Probability a patient washes hands each tick | % | | hands-dirty-rate | Probability hands become dirty each tick | % | | cleaning-rate | Probability a contaminated surface is cleaned each tick | % | | recovery-rate | Probability an infected patient recovers each tick | % |

Monitors & Plots

  • Infected patients: current number of infected patients.
  • Total infections: cumulative infections since setup.
  • Contaminated surfaces: number of contaminated patches.
  • Infection over time plot: red line = infected, yellow line = recovered/immune.

Assumptions & Limitations

  • Patients move randomly; no room structure, no staff, no antibiotics.
  • Transmission is only via contaminated surfaces touched with dirty hands (no direct patient-to-patient contact).
  • All patients are identical; no comorbidities, no severity.
  • The model is not calibrated to any real hospital data. Parameter values are chosen for demonstration.
  • The population is bounded (max 60 patients) and the world is small (31×31 patches).
  • The model runs indefinitely (ticks advance even after all patients are recovered/immune), so it can be run for 100+ ticks.
Field
Health and life sciences
Model file
Hospital-acquired-infection-f263e9c806b5.nlogox · 41 KB
Controls
initial-patients, initial-seed-infected, hand-hygiene-rate, recovery-rate, cleaning-rate, hands-dirty-rate
Reporters
none recorded
Procedures
setup, go
Experiment
none pinned in this file
Documentation
5/7 · 300 words in the Info tab