Respiratory infections are a major public health issue in hospital settings. They can be transmitted from patient to patient, as well as between patients and healthcare workers, resulting in nosocomial or hospital-acquired infections. These infections contribute to the worsening of patients' health and complicate their care.
Pathogens can be transmitted in different ways:
- Large droplets emitted during speech or coughing, which can lead to short-distance transmission
- Small aerosols emitted during breathing, which can remain suspended in the air and cause long-distance transmission
A thorough understanding of the respective roles of these transmission modes is essential for developing effective strategies to prevent nosocomial respiratory infections. To date, no model simultaneously integrates these two modes of transmission, and the relative importance of each remains to be evaluated.
The aim of this project is to develop a mathematical model of respiratory pathogen transmission in a hospital ward, combining inter-individual transmission (via an epidemiological model) and airborne transmission (via a biophysical model).
R
- dplyr (1.1.4)
- epicontacts (1.1.4)
- gifski (1.12.0)
- gganimate (1.0.9)
- ggborderline (0.2.0)
- ggplot2 (3.5.0)
- ggh4x (0.2.8)
- hrbrthemes (0.8.7)
- igraph (2.0.3)
- lubridate (1.9.3)
- purrr (1.0.2)
- Rcpp (1.0.12)
- tidyr (1.3.1)
- tidyverse (2.0.0)
- viridis (0.6.5)
- visNetwork (2.1.2)
c++
- c++ 11
The project is divided into 4 dependent R scripts:
1. interaction-nodscov2.Rmd
This script loads Nods-Cov-2 local data (private), filters it to keep only intensive care units, then does an analysis of the distribution of individuals' categories, type of interactions etc. this script led us to choose (for now) Raymond Poincaré hospital's intensive care unit (Garches, France).
An analysis on healthcare worker cumulative time spent interacting with patients is also done.
2. localization-nodscov2.Rmd
This script loads Nods-Cov-2 local data (private), filters it to keep only data relating to Raymond Poincaré hospital's reanimation ward and reconstructs the localizations of individuals using interactions, inferred healthcare workers' shifts, individual category and comportemental rules. Localizations and other important data are saved as /out/loc-nodscov2/localization-nodscov2.RData.
An analysis on healthcare worker cumulative time spent in the corridor and HCW's restroom is also done.
Details on the assumptions made in a future document.
3. model-nodscov2.Rmd
This script loads Nods-Cov-2 localization data (& other related objects) from _/out/loc-nodscov2/localization-nodscov2.RData_, defines the objects needed for the simulation (parameters etc...) then compiles model-nodscov2.cpp (and its dependency model-nodscov2_fun.cpp) that is used for the epidemic simulation.model-nodscov2_fun.cpp breakdown
This c++ file contains parameters and functions used by model-nodscov2.cpp, here is a non-exhaustive list:Update_environment
This function update the viral load in each room for each time step. It is taking into account viral inactivation of the previous time step viral load and different scenarios depending on the hospital rooms (FUTURE IMPLEMENTATION). For the time step t, the steps are the following: 1. We apply an exponential decayUpdate_environment
This function update the viral load in each room for each time step. It is taking into account viral inactivation of the previous time step viral load and different scenarios depending on the hospital rooms (FUTURE IMPLEMENTATION). For the time step t, the steps are the following: 1. We apply an exponential decay4. visualization-nodscov2.Rmd
This script loads Nods-Cov-2 epidemic simulation results (& other related objects such as localizations, simulations, number of days simulated and model parameters used) from /out/sim-nodscov2/<id_sim>-simulation-nodscov2.RData then proceeds to generate multiple plots such as:
- SEIR population dynamic over time
- Viral load in each room over time
- Lambda_e (environmental) and Lambda_c (close-contact) for patients (PA) and healthcare workers (PE) over time
- Force of Infection (FOI) for patients (PA) and healthcare workers (PE) over time
- Infection network (thanks to the epicontacts R package)
- Individual's trajectories over time
Distributed under the GNU General Public License. See COPYING
for more information.
Project Link: https://github.com/nollive/projet-pacri