Skip to content

ComplexNetTSP/Simulation-Files-for-Large-Scale-Model-for-Information-Dissemination-with-Device-to-Device

Repository files navigation

SIR model with Gillespie (Tau-leap) algorithm Zenodo

Paper

References

Agarwal, R., Gauthier, V., Becker, M., Toukabrigunes, T., & Afifi, H. (2015). Large scale model for information dissemination with device to device communication using call details records. Computer Communications, 59, 1–11. DOI: 10.1016/j.comcom.2014.12.010

Abstract

In a network of devices in close proximity such as Device to Device (D2D) communication network, we study the dissemination of public safety information at country scale. In order to provide a realistic model for the information dissemination, we extract a spatial distribution of the population of Ivory Coast from census data and determine migration pattern from the Call Detail Records (CDR) obtained during the Data for Development (D4D) challenge. We later apply epidemic model towards the information dissemination process based on the spatial properties of the user mobility extracted from the provided CDR. We then propose enhancements by adding latent states to the epidemic model in order to model more realistic user dynamics. Finally, we study dynamics of the evolution of the information spreading through the population.

Simulator

Usage

There are three different simulations available in this package:

  1. simulation.py: is a simple SIR (Susceptible Infected Recovered) simulation
  2. simulation_latent.py: is a simple SIR simulation with latent states
  3. simulation_latent_heterogeneous.py: is a simple SIR simulation with latent states and heterogeneous return probability
Requirements
1. pyshp
2. progressbar
3. pickle
4. numpy
Install
$ tar zxvf archive.tar.gz
$ cd archive
$ pip install -r requirements.txt
Command line of the simulator
usage: simulation_latent_heterogeneous.py [-h]
                                          --output OUTPUT
                                          --duration DURATION
                                          [--tau TAU] [--mu MU]
                                          [--sim-id SIM_ID]
                                          [--cell-id CELL_ID]

Process SIR simulation with latent states and heterogeneous return probability.

optional arguments:
-h, --help           show this help message and exit
--output OUTPUT      output directory
--duration DURATION  simulation duration in days
--tau TAU            simulation step (fraction of day)
--mu MU              simulation mu for latent state (fraction of the
                     population)
--sim-id SIM_ID      simulation step (fraction of day)
--cell-id CELL_ID    initial cellID
Example of SIR Simulation with latent states
$ python simulation_latent.py --output ./output/latent/ --duration 7 --tau 0.1 --cell-id 0 --sim-id 1 --mu 0.3
Sample output of simulation.py as generated via plot.py file

alt-tag