GithubHelp home page GithubHelp logo

adaptivesurveillance.jl's Introduction

Adaptive Surveillance for Endemic Disease Outbreaks

This repository is the official implementation of Surveillance for Endemic Infectious Disease Outbreaks: Adaptive Sampling Using Profile Likelihood Estimation

Outbreaks of an endemic infectious disease can occur when the disease is introduced into a highly susceptible subpopulation or when the disease enters a network of connected individuals. For example, significant HIV outbreaks among people who inject drugs have occurred in at least half a dozen U.S. states in recent years. This motivates the current study: how can limited testing resources be allocated across geographic regions to rapidly detect outbreaks of an endemic infectious disease?

We develop an adaptive sampling algorithm that uses profile likelihood to estimate the distribution of the number of positive tests that would occur for each location in a future time period if that location were sampled. Sampling is performed in the location with the highest estimated probability of triggering an outbreak alarm in the next time period. The alarm function is determined by a semiparametric likelihood ratio test. We compare the profile likelihood sampling (PLS) method numerically to uniform random sampling (URS) and Thompson sampling (TS). TS was worse than URS when the outbreak occurred in a location with lower initial prevalence than other locations. PLS had lower time to outbreak detection than TS in some but not all scenarios, but was always better than URS even when the outbreak occurred in a location with a lower initial prevalence than other locations. PLS provides an effective and reliable method for rapidly detecting endemic disease outbreaks that is robust to this uncertainty

Running the Model

For a fair comparison of the different methods, we set the ARL runtime when there is no alarm for the different methods to be the same. For our paper, we first ran our EVSI method with an alpha value of 2 which resulted in an ARL value of 56 for the three different scenarios. To do this, we ran the following code.

# case 1
julia --project=. -t 4 results/result_scripts/gq_tests.jl 0.1 0.1 Lr 1 0.01 0.01 1000 300 1 0
# case 2
julia --project=. -t 4 results/result_scripts/gq_tests.jl 0.1 0.1 Lr 1 0.01 0.02 1000 300 1 0
# case 3
julia --project=. -t 4 results/result_scripts/gq_tests.jl 0.1 0.1 Lr 1 0.02 0.01 1000 300 1 0

We then calibrate the values of alpha for the other methods to have the same value ARL value of 56. This can be achieved by changing the target arl parameter in the atd_compare.jl script. We also provide our values of alpha for the different methods summarized in the table below. The gq_test.jl script can be modified to run the different methods with different values of alpha.

Screen Shot 2022-04-17 at 2 21 28 PM

Finally, the atd_compare.sh file provides a template to run the script in parallel on a shared computing environment via SLURM.

Running the analysis

The plots and tables in the paper can be generated by running the performance_analysis_gq R script.

adaptivesurveillance.jl's People

Contributors

mfairley avatar gqia189 avatar

Watchers

 avatar Isabelle Rao 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.