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.

Data, model training, and evaluation code for "PubTables-1M: Towards a universal dataset and metrics for training and evaluating table extraction models".

PubTables-1M This repository contains training and evaluation code for the paper "PubTables-1M: Towards a universal dataset and metrics for training a

Microsoft 365 Jan 04, 2023
Joint Channel and Weight Pruning for Model Acceleration on Mobile Devices

Joint Channel and Weight Pruning for Model Acceleration on Mobile Devices Abstract For practical deep neural network design on mobile devices, it is e

11 Dec 30, 2022
An Industrial Grade Federated Learning Framework

DOC | Quick Start | 中文 FATE (Federated AI Technology Enabler) is an open-source project initiated by Webank's AI Department to provide a secure comput

Federated AI Ecosystem 4.8k Jan 09, 2023
Self-Supervised Learning with Kernel Dependence Maximization

Self-Supervised Learning with Kernel Dependence Maximization This is the code for SSL-HSIC, a self-supervised learning loss proposed in the paper Self

DeepMind 29 Dec 29, 2022
GBIM(Gesture-Based Interaction map)

手势交互地图 GBIM(Gesture-Based Interaction map),基于视觉深度神经网络的交互地图,通过电脑摄像头观察使用者的手势变化,进而控制地图进行简单的交互。网络使用PaddleX提供的轻量级模型PPYOLO Tiny以及MobileNet V3 small,使得整个模型大小约10MB左右,即使在CPU下也能快速定位和识别手势。

8 Feb 10, 2022
Code of paper "Compositionally Generalizable 3D Structure Prediction"

Compositionally Generalizable 3D Structure Prediction In this work, We bring in the concept of compositional generalizability and factorizes the 3D sh

Songfang Han 30 Dec 17, 2022
Repo público onde postarei meus estudos de Python, buscando aprender por meio do compartilhamento do aprendizado!

Seja bem vindo à minha repo de Estudos em Python 3! Este é um repositório criado por um programador amador que estuda tópicos de finanças, estatística

32 Dec 24, 2022
Simple Tensorflow implementation of Toward Spatially Unbiased Generative Models (ICCV 2021)

Spatial unbiased GANs — Simple TensorFlow Implementation [Paper] : Toward Spatially Unbiased Generative Models (ICCV 2021) Abstract Recent image gener

Junho Kim 16 Apr 15, 2022
Code for our method RePRI for Few-Shot Segmentation. Paper at http://arxiv.org/abs/2012.06166

Region Proportion Regularized Inference (RePRI) for Few-Shot Segmentation In this repo, we provide the code for our paper : "Few-Shot Segmentation Wit

Malik Boudiaf 138 Dec 12, 2022
A DeepStack custom model for detecting common objects in dark/night images and videos.

DeepStack_ExDark This repository provides a custom DeepStack model that has been trained and can be used for creating a new object detection API for d

MOSES OLAFENWA 98 Dec 24, 2022
Python lib to talk to pylontech lithium batteries (US2000, US3000, ...) using RS485

python-pylontech Python lib to talk to pylontech lithium batteries (US2000, US3000, ...) using RS485 What is this lib ? This lib is meant to talk to P

Frank 26 Dec 28, 2022
The official implementation code of "PlantStereo: A Stereo Matching Benchmark for Plant Surface Dense Reconstruction."

PlantStereo This is the official implementation code for the paper "PlantStereo: A Stereo Matching Benchmark for Plant Surface Dense Reconstruction".

Wang Qingyu 14 Nov 28, 2022
A PyTorch implementation of ViTGAN based on paper ViTGAN: Training GANs with Vision Transformers.

ViTGAN: Training GANs with Vision Transformers A PyTorch implementation of ViTGAN based on paper ViTGAN: Training GANs with Vision Transformers. Refer

Hong-Jia Chen 127 Dec 23, 2022
Unofficial PyTorch implementation of Guided Dropout

Unofficial PyTorch implementation of Guided Dropout This is a simple implementation of Guided Dropout for research. We try to reproduce the algorithm

2 Jan 07, 2022
HSC4D: Human-centered 4D Scene Capture in Large-scale Indoor-outdoor Space Using Wearable IMUs and LiDAR. CVPR 2022

HSC4D: Human-centered 4D Scene Capture in Large-scale Indoor-outdoor Space Using Wearable IMUs and LiDAR. CVPR 2022 [Project page | Video] Getting sta

51 Nov 29, 2022
Defense-GAN: Protecting Classifiers Against Adversarial Attacks Using Generative Models (published in ICLR2018)

Defense-GAN: Protecting Classifiers Against Adversarial Attacks Using Generative Models Pouya Samangouei*, Maya Kabkab*, Rama Chellappa [*: authors co

Maya Kabkab 212 Dec 07, 2022
Pytorch Implementations of large number classical backbone CNNs, data enhancement, torch loss, attention, visualization and some common algorithms.

Torch-template-for-deep-learning Pytorch implementations of some **classical backbone CNNs, data enhancement, torch loss, attention, visualization and

Li Shengyan 270 Dec 31, 2022
This project uses ViT to perform image classification tasks on DATA set CIFAR10.

Vision-Transformer-Multiprocess-DistributedDataParallel-Apex Introduction This project uses ViT to perform image classification tasks on DATA set CIFA

Kaicheng Yang 3 Jun 03, 2022
Contrastively Disentangled Sequential Variational Audoencoder

Contrastively Disentangled Sequential Variational Audoencoder (C-DSVAE) Overview This is the implementation for our C-DSVAE, a novel self-supervised d

Junwen Bai 35 Dec 24, 2022
PyTorch implementation of Rethinking Positional Encoding in Language Pre-training

TUPE PyTorch implementation of Rethinking Positional Encoding in Language Pre-training. Quickstart Clone this repository. git clone https://github.com

Jake Tae 5 Jan 27, 2022