Git Product home page Git Product logo

denguetweets's Introduction

Social Media as a sentinel for disease surveillance: what does sociodemographic status have to do with it?

The code in this repository was used in analyzing the data presented in the paper Social Media as a sentinel for disease surveillance: what does sociodemographic status have to do with it?

Code was written in R 3.2.2 and Python 3.4.3+

Users of this code should cite, Nsoesie EO, et al. Social Media as a Sentinel for Disease Surveillance: What Does Sociodemographic Status Have to Do with It?. PLOS Currents Outbreaks. 2016 Dec 5 . Edition 1. doi: 10.1371/currents.outbreaks.cc09a42586e16dc7dd62813b7ee5d6b6.).

For questions, please contact Adyasha at [email protected] or Elaine at [email protected] or @ensoesie.

Description of the Files

  • NBAnalysis.ipynb: This jupyter notebook contains the code to run a linear Naive Bayes Classifier to classify tweets into 'sick' and 'junk' categories, and generate the statistics for performance of the classifier along with a list of the top 10 most significant terms

  • combineData.ipynb: This jupyter notebook contains the code to combine two files, one containing the geographic location of a tweet and the other containing all other information about the tweet, related by a tweet-id. The output file is used for mapping the geo-spatial distribution of 'sick' tweets using R scripts present in the repository

  • mappingCode_new.R: This R script contains the code the variables required to generate geo-spatial mappings of tweet distributions in three of the most populated states of Brazil: Sao Paulo, Minas Gerais and Rio Janeiro

  • spatial_plots.R: This R Script generates Figure 1 from the paper i.e. the plot comparing Dengue Tweet Count and Case Count among the three states: Sao Paulo, Minas Gerais and Rio Janeiro, using the variables saved by executing the script mappingCode_new.R

  • Boxplots.R: This R script generates Figure 2 from the paper i.e. a comparison of distribution of relevant socio-demographic indices among social media users

  • Barplots_Regression.R: This R Script generates Figure 3 from the paper i.e. a time-series plot of actual dengue case and tweet counts, and a univariate regression model fitted to the time-series plots

denguetweets's People

Contributors

adymaharana avatar

Stargazers

 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.