GithubHelp home page GithubHelp logo

gshartnett / network_vaccination Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 22.05 MB

Contains code used to simulate simple epidemic models on network datasets.

License: MIT License

Jupyter Notebook 99.86% Python 0.14%

network_vaccination's Introduction

Network Vaccination

This repository contains the code and data used in two recent publications that used mobile device data to model the spread of COVID-19 throughout a partially vaccinated population:

Project description

Motivated by the (then) imminent availability of COVID-19 vaccines, this repository was used to compare the efficacies of different network-based vaccination strategies. It is a well-known result in network science that targeted strategies, where more connected nodes are vaccinated first, can sometimes far outperform the strategy where nodes are vaccinated uniformly at random. 1 It also seems plausible that vaccinating nodes with low connectivities is an even worse strategy.

We investigated these hypotheses using a real-world person-to-person contact network derived from mobile device data obtained from the company Uber Media. Rather than attempting to faithfully simulate the spread of COVID-19 on this network, we instead simulated two rather simple contagion models (SIR and SEIR). Consequently, we are simulating a very idealized contagion model on a realistic network - in future work we would like to improve this by considering more realistic contagion models.

How to use this repository

Installation

  • Download the repo: git clone https://github.com/RANDCorporation/network_vaccination
  • Navigate to repo: cd network_vaccination
  • Install required packages: pip install -r requirements.txt

It is recommended to use a conda environment, in which case the command sequence should be modified to

  • conda create -n network_env
  • conda activate network_env
  • git clone https://github.com/RANDCorporation/network_vaccination
  • cd network_vaccination
  • pip install -r requirements.txt

Data

The mobile device data was used to create 3 different anonymized contact networks:

  • G_pre capturing interactions before social distancing measures were enacted
  • G_post capturing interactions during social distancing
  • G_superposition representing a combined network which is described in the Perspective report in more detail

The weighted adjacency lists for these anonymized contact networks are located in the data directory.

Code

The repository is primarily organized into multiple Jupyter notebooks, each accomplishing a different task.

  • Contact Network Analysis.ipynb: This notebook analyzes the person-to-person contact networks used in the simulations.
  • Code used in Protecting the Most Vulnerable by Vaccinating the Most Active:
    • SIR Model.ipynb: This notebook carries out the SIR simulation over G_superposition.
    • SIR Data Analysis.ipynb: This notebook analyzes the results of the simulation and makes some plots.
  • Code used in Using Mobile Device Data to Measure The Impact of Social Distancing Measures and Optimal Vaccination Strategies for COVID-19:
    • SEIR Model.ipynb: This notebook carries out the SEIR simulation over the G_pre and G_post contact networks.
    • SEIR Data Analysis.ipynb: This notebook analyzes the results of the simulation and makes some plots.

The utils.py folder also contains some useful functions used by the various notebooks.

Contact

Code developed and maintained by Gavin Hartnett ([email protected]).

1 Pastor-Satorras, Romualdo, and Alessandro Vespignani. "Immunization of complex networks." Physical review E 65.3 (2002): 036104. ArXiv link. โ†ฉ

network_vaccination's People

Contributors

gshartnett avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.