CodeForPhilly / CodeForPhilly/chime

Improve Model

オープン
#99 コメント 7 件 リアクション 4 件 担当者 0 名 GitHub で見る
documentation models
主要言語
Python
スター
210
フォーク
153
PR マージ指標
30日以内にマージされた PR はありません

説明

## Overview

Currently, we use a deterministic SIR model (see `sir` and `sim_sir` in [models.py](https://github.com/CodeForPhilly/chime/blob/develop/penn_chime/models.py)) to predict everything. It does not have many parameters, which I think contributes to the ease of use and adoption of the tool... however, accuracy is also of paramount importance. There have been multiple proposed improvements.

## Proposed Improvements

* [This repo](https://github.com/twiecki/covid19) uses MCMC sampling to do more probabilistic models. @sam-qordoba is trying to get the Bayesian SIR model working, but it has [obscure requirements](https://github.com/twiecki/covid19/issues/14). Here is a [colab notebook of the main model](https://colab.research.google.com/drive/1yALbtOk4x7_koKyNt4jW5EgleUBdtuPD) - the repo works but there are a few setup steps
* Paper suggestion via Google AI: [Bayesian Models for Heterogeneous Personalized Health Data](https://arxiv.org/abs/1509.00110) - [src](https://codeforphilly.slack.com/archives/C01080RBV3Q/p1584635931101200)
* Possibly-useful Transformer model from Google: [interpretable multi-horizon forecasting with deep learning](https://github.com/google-research/google-research/tree/master/tft), but, " unfortunately for this task at the moment, the amount of data seems very limited and expert human biases (e.g. it takes X days to show symptoms/recover etc.) seem more important." [src](https://codeforphilly.slack.com/archives/C01080RBV3Q/p1584567838085000)
* Model should incorporate potential incoming infections from neighboring areas (etc), rather than the assumption of jurisdiction lockdown

## Concerns

* "my understanding is the SIR model's more of a guesstimate that can be fit retrospectively but isn't that predictive for changing circumstances. It doesn't account for household contact, or hordes of folks driving their dying relatives from one jam-packed hospital to the next, or the larger consequences of jamming 200 octogenarians into a group home manned by underpaid attendants with a shortage of tests and protective gear. But we're fighting the epidemic blind, so it's what we've got." [src](https://codeforphilly.slack.com/archives/C01080RBV3Q/p1584590737094600?thread_ts=1584568339.087600&cid=C01080RBV3Q)
* "There has been a lot of talk about using more complex models, but the hurdles are (1) usability (2) uncertainty/unavailability of the required inputs. I think that the consensus is that better models would be better if they had well-constrianed inputs and didn't make the tool harder for users to adapt to their local contexts. Otherwise better models would be worse." [src](https://codeforphilly.slack.com/archives/C01080RBV3Q/p1584637089101400?thread_ts=1584635931.101200&cid=C01080RBV3Q)
* "What are some additional inputs that are missing? Am very interested in modelling with different values for various activities, e.g. school transmission, intrahousehold transmission, workplace transmission. Obviously this is not straightforward. Moreover the SIR model totally leaves out the fact that different populations are more or less vulnerable, if one is looking at hospital capacity there are pretty sizeable regional population variations. For a first order guess it's useful, but the real world is full of cascading impacts that are very hard to guess." [src](https://codeforphilly.slack.com/archives/C01080RBV3Q/p1584638113104200?thread_ts=1584635931.101200&cid=C01080RBV3Q)

## Definition of Done

This ticket is complete when we have a plan for improving the model, which takes into account the concerns.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず penn_chime/models.py の sir と sim_sir から始め、ユーザビリティと入力に関する懸念と併せて、リンクされているベイズおよび予測に関する提案を確認します。このチケットは、プロジェクトがそれらの懸念に対処するモデル改善の合意済み計画を持った時点で完了です。現時点では、具体的な実装やテストはまだ特定していません。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
data
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
20/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。