Compartmental epidemic model to assess undocumented infections: applications to SARS-CoV-2 epidemics in Brazil - Datasets and Codes

Overview

Compartmental epidemic model to assess undocumented infections: applications to SARS-CoV-2 epidemics in Brazil - Datasets and Codes

The codes for simulations were written in Fortran and compiled with the Intel Fortran Compiler. Data analysis and figures were done Python 3.10 and the following open source libraries: pandas, matplotlib and seaborn.

In this repository we show codes for simulations and processing data, as well as datasets used.

The preprint is available at https://arxiv.org/abs/2201.03476. The following BibTeX code can be used to cite it:

@misc{costa2022compartmental,
      title={Compartmental epidemic model to assess undocumented infections: applications to SARS-CoV-2 epidemics in Brazil}, 
      author={Guilherme S. Costa and Wesley Cota and Silvio C. Ferreira},
      year={2022},
      eprint={2201.03476},
      archivePrefix={arXiv},
      primaryClass={q-bio.PE}
}

See also Effects of infection fatality ratio and social contact matrices on vaccine prioritization strategies and Outbreak diversity in epidemic waves propagating through distinct geographical scales.

Dictionaries

Municipalities :The files (a) dictES.csv and (b) dictPR.csv yield some information about municipalities of (a) ES (B) PR states. These files have six columns:

  1. ID: numeric key regarding calibration of confirmed cases time series
  2. ibgeID: official code to identify the city
  3. name: name of the city
  4. intermID: official code of intermediate region to which the city belongs
  5. imedID: official code of immediate region to which the city belongs
  6. totPop2019: population of the city estimated in 2019

Immediate and intermediate regions The files (a) dictImed.csv and (b) dictInterm.csv yield some information about (a) Immediate and (b) Intermediate regions of PR and ES. These files have five columns:

  1. ID: numeric key regarding calibration of confirmed cases time series
  2. imedID or \verb|intermID|: official code to identify the region
  3. name: name of the region
  4. state: state to which the region belongs
  5. totPop2019: population of the region estimated in 2019

States The file dictUF.csv yield some information about PR and ES states. These files have five columns:

  1. ID: numeric key regarding calibration of confirmed cases time series
  2. ibgeID: official code to identify the state
  3. name: name of the state
  4. uf: abbreviation of the state's name
  5. totPop2019: population of the state estimated in 2019

Time series

Cases and deaths: The files (a) PR.csv, (b) ES.csv, (c) saopaulo.csv and (d) manaus.csv yield the time series of confirmed cases and deaths since April 1, 2020 for (a) All cities of PR state, (b) All cities of ES state, (c) São Paulo city and (d) Manaus city. These files have seven columns:

  1. date: date
  2. ibgeID: official code to identify the city
  3. newCases: new confirmed cases on that day
  4. newDeaths: new confirmed deaths on that day
  5. city: name of the city
  6. totalCases: accumulated cases
  7. totalDeaths: accumulated deaths

Calibration: Within files (a) imed.zip and (b) state.zip we have the time series of accumulated cases and fatality ratio, aggregated for different geographical levels. In this, we have two types of files: casesXX.dat (XX refers to the calibrating IDs mentioned before) are accumulated cases while lethXX.dat are the daily fatalities).

Calibration Code

The file calibra.f90 is a program written in Fortran that executes the calibration algorithm described on Methods section of the main paper $1000$ times with different epidemiological parameters. This program has four inputs: the time series of accumulated cases and fatality, the initial date for calibration and the population of the region (state, city, etc). Besides that, this program has two output files: epiQuantities.dat and hiddenCompart.dat. The first has seven columns:

  1. Days from the initial time
  2. Calibrated confirmed cases
  3. Reference cases
  4. Effective reproductive number
  5. Fraction of susceptible population
  6. Underreporting coefficient
  7. Sample

On hiddenCompart.dat, we have time series for some compartments in the model: from left to right S, E, A, I, CA + CI, R + RI + RA + D and sample number.

Python scripts and figures

Calculation of underreporting coefficient: the file underreporting.ipynb is a I-python script that calculates the underreporting coefficient starting from a time series of confirmed cases and deaths. At the end, it exhibits a graphic showing the evolution of this coefficient.

Template for figures The majority of figures in this work were generated with matplotlib and seaborn packages of Python 3.7. File format_covid19br.mplstyle contains the template (font family and sizes) for generating those figures and graphics.

Fashion Entity Classification

Fashion-Entity-Classification - Fashion-MNIST is a dataset of Zalando's article images—consisting of a training set of 60,000 examples and a test set of 10,000 examples. Each example is a 28x28 grays

ADITYA SHAH 1 Jan 04, 2022
Multi-Glimpse Network With Python

Multi-Glimpse Network Multi-Glimpse Network: A Robust and Efficient Classification Architecture based on Recurrent Downsampled Attention arXiv Require

9 May 10, 2022
Animate molecular orbital transitions using Psi4 and Blender

Molecular Orbital Transitions (MOT) Animate molecular orbital transitions using Psi4 and Blender Author: Maximilian Paradiz Dominguez, University of A

3 Feb 01, 2022
TensorFlow Ranking is a library for Learning-to-Rank (LTR) techniques on the TensorFlow platform

TensorFlow Ranking is a library for Learning-to-Rank (LTR) techniques on the TensorFlow platform

2.6k Jan 04, 2023
Semi-Supervised Graph Prototypical Networks for Hyperspectral Image Classification, IGARSS, 2021.

Semi-Supervised Graph Prototypical Networks for Hyperspectral Image Classification, IGARSS, 2021. Bobo Xi, Jiaojiao Li, Yunsong Li and Qian Du. Code f

Bobo Xi 7 Nov 03, 2022
Fine-tune pretrained Convolutional Neural Networks with PyTorch

Fine-tune pretrained Convolutional Neural Networks with PyTorch. Features Gives access to the most popular CNN architectures pretrained on ImageNet. A

Alex Parinov 694 Nov 23, 2022
This is the workbook I created while I was studying for the Qiskit Associate Developer exam. I hope this becomes useful to others as it was for me :)

A Workbook for the Qiskit Developer Certification Exam Hello everyone! This is Bartu, a fellow Qiskitter. I have recently taken the Certification exam

Bartu Bisgin 66 Dec 10, 2022
Official pytorch code for SSAT: A Symmetric Semantic-Aware Transformer Network for Makeup Transfer and Removal

SSAT: A Symmetric Semantic-Aware Transformer Network for Makeup Transfer and Removal This is the official pytorch code for SSAT: A Symmetric Semantic-

ForeverPupil 57 Dec 13, 2022
PyTorch implementation of probabilistic deep forecast applied to air quality.

Probabilistic Deep Forecast PyTorch implementation of a paper, titled: Probabilistic Deep Learning to Quantify Uncertainty in Air Quality Forecasting

Abdulmajid Murad 13 Nov 16, 2022
Wenzhou-Kean University AI-LAB

AI-LAB This is Wenzhou-Kean University AI-LAB. Our research interests are in Computer Vision and Natural Language Processing. Computer Vision Please g

WKU AI-LAB 10 May 05, 2022
Implementing Vision Transformer (ViT) in PyTorch

Lightning-Hydra-Template A clean and scalable template to kickstart your deep learning project 🚀 ⚡ 🔥 Click on Use this template to initialize new re

2 Dec 24, 2021
PerfFuzz: Automatically Generate Pathological Inputs for C/C++ programs

PerfFuzz Performance problems in software can arise unexpectedly when programs are provided with inputs that exhibit pathological behavior. But how ca

Caroline Lemieux 125 Nov 18, 2022
buildseg is a building extraction plugin of QGIS based on PaddlePaddle.

buildseg buildseg is a building extraction plugin of QGIS based on PaddlePaddle. TODO Extract building on 512x512 remote sensing images. Extract build

Yizhou Chen 11 Sep 26, 2022
Attention-based CNN-LSTM and XGBoost hybrid model for stock prediction

Attention-based CNN-LSTM and XGBoost hybrid model for stock prediction Requirements The code has been tested running under Python 3.7.4, with the foll

zshicode 84 Jan 01, 2023
The official github repository for Towards Continual Knowledge Learning of Language Models

Towards Continual Knowledge Learning of Language Models This is the official github repository for Towards Continual Knowledge Learning of Language Mo

Joel Jang | 장요엘 65 Jan 07, 2023
STYLER: Style Factor Modeling with Rapidity and Robustness via Speech Decomposition for Expressive and Controllable Neural Text to Speech

STYLER: Style Factor Modeling with Rapidity and Robustness via Speech Decomposition for Expressive and Controllable Neural Text to Speech Keon Lee, Ky

Keon Lee 114 Dec 12, 2022
Western-3DSlicer-Modules - Point-Set Registrations for Ultrasound Probe Calibrations

Point-Set Registrations for Ultrasound Probe Calibrations -Undergraduate Thesis-

Matteo Tanzi 0 May 04, 2022
Notebooks for my "Deep Learning with TensorFlow 2 and Keras" course

Deep Learning with TensorFlow 2 and Keras – Notebooks This project accompanies my Deep Learning with TensorFlow 2 and Keras trainings. It contains the

Aurélien Geron 1.9k Dec 15, 2022
Code for the paper "Jukebox: A Generative Model for Music"

Status: Archive (code is provided as-is, no updates expected) Jukebox Code for "Jukebox: A Generative Model for Music" Paper Blog Explorer Colab Insta

OpenAI 6k Jan 02, 2023
BEAS: Blockchain Enabled Asynchronous & Secure Federated Machine Learning

BEAS Blockchain Enabled Asynchronous and Secure Federated Machine Learning Default Network Configuration: The default application uses the HyperLedger

Harpreet Virk 11 Nov 20, 2022