Quickstart for SIRD Modeling of the COVID-19 Outbreak

J. Poles
{"title":"Quickstart for SIRD Modeling of the COVID-19 Outbreak","authors":"J. Poles","doi":"10.34235/8205b620-fe85-43b2-bf14-a593b766cf07-2","DOIUrl":null,"url":null,"abstract":"Overview: There are a number of different methodologies that one can employ in order to model the outbreak of an infectious disease, in this case the novel 2019 coronavirus (COVID-19). Some, like generalized logistic models or Richards models rely on the expectation of a logistic pattern of growth in cumulative cases and clasically do not incorporate such complex dynamics as isolation of infected individuals, shelter-in-place orders for the general population (as instituted in New York City), or other change in public health policy over time. Here we present an implementation of a Susceptible-Infected-Recovered-Deceased (SIRD) model, with parameter fitting to real-world data, which can assist in projecting the overall trajectory of an outbreak in response to such complex changes in the environment. Our methodology is contained in a freely available IPython notebook, with the goal of providing a good starting point for other citizen scientists interested in exploring and forecasting the COVID-19 outbreak. \nMethodology: While a great deal can be learned from the simpler style of models mentioned above, the SIRD model allows for a great deal of nuance in forecasting because it attempts to approximate real-world dynamics, namely the flux of individuals between compartments in the outbreak; for example, susceptible people become infected at a specific rate, and those infected people then recover or die at specific rates. Our implementation of this model utilizes a system of ordinary differential equations (ODEs) inspired by the work of Diego Caccavo [1]. Typically we model the rate of infection as a constant β multiplied by the overall proportion of infected people and by the # of susceptible people. In our methodology, we have instead modeled this β value as a function of time β(t). In this way, we can account for changes in infection rate, for example a decrease due to a lockdown at timepoint t_lockdown (with shelter-in-place, for example) or an increase due to the lifting of such a lockdown at timepoint t_lift (Fig C). After establishing the equations which will dictate the dynamics of the model, we fit the parameters (β, 𝜏_𝛽, 𝛾, 𝛿) using non-linear least-squares regression via a function provided by the SciPy package. \nResults: We demonstrate a functional IPython Notebook which allows for fitting of SIRD model parameters to real-world datasets. Additionally, we can form rudimentary projections of potential outbreak trajectories in response to real-world changes in the environment in which an outbreak is occuring by modifying the system of ODEs. For example, we show the effect of changing the date on which shelter-in-place measures are lifted on a simulated New York City (NYC). We first fit the parameters of the SIRD model (Fig C) using real-world outbreak data from NYC provided by the NY Times. We then run the model, demonstrating that lifting shelter-in-place public health measures after only a month causes a rebound and second peak in cases in the simulated New York City (Fig A). On the other hand, lifting the shelter-in-place orders after two months allows the outbreak in the simulated city to die down without a second spike in cases (Fig B).\n \nConclusions: Overall, we believe that there is a great deal of predictive and explanatory power provided by SIRD-type models. We hope that other researchers in the field can use our work as a basis for further customization and tailoring of the system of ODEs, allowing these models to be fit to a variety of different cities, states, or other regions. That said, we also want to urge caution to those hoping to utilize these models to exactly predict the course of an outbreak or develop specific timing of public policies. These models are simply projections, and are highly limited by the overall limited availability and quality of data at this point in the COVID-19 outbreak.","PeriodicalId":89829,"journal":{"name":"Outbreak, surveillance and investigation reports","volume":"15 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2020-04-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Outbreak, surveillance and investigation reports","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.34235/8205b620-fe85-43b2-bf14-a593b766cf07-2","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Overview: There are a number of different methodologies that one can employ in order to model the outbreak of an infectious disease, in this case the novel 2019 coronavirus (COVID-19). Some, like generalized logistic models or Richards models rely on the expectation of a logistic pattern of growth in cumulative cases and clasically do not incorporate such complex dynamics as isolation of infected individuals, shelter-in-place orders for the general population (as instituted in New York City), or other change in public health policy over time. Here we present an implementation of a Susceptible-Infected-Recovered-Deceased (SIRD) model, with parameter fitting to real-world data, which can assist in projecting the overall trajectory of an outbreak in response to such complex changes in the environment. Our methodology is contained in a freely available IPython notebook, with the goal of providing a good starting point for other citizen scientists interested in exploring and forecasting the COVID-19 outbreak. Methodology: While a great deal can be learned from the simpler style of models mentioned above, the SIRD model allows for a great deal of nuance in forecasting because it attempts to approximate real-world dynamics, namely the flux of individuals between compartments in the outbreak; for example, susceptible people become infected at a specific rate, and those infected people then recover or die at specific rates. Our implementation of this model utilizes a system of ordinary differential equations (ODEs) inspired by the work of Diego Caccavo [1]. Typically we model the rate of infection as a constant β multiplied by the overall proportion of infected people and by the # of susceptible people. In our methodology, we have instead modeled this β value as a function of time β(t). In this way, we can account for changes in infection rate, for example a decrease due to a lockdown at timepoint t_lockdown (with shelter-in-place, for example) or an increase due to the lifting of such a lockdown at timepoint t_lift (Fig C). After establishing the equations which will dictate the dynamics of the model, we fit the parameters (β, 𝜏_𝛽, 𝛾, 𝛿) using non-linear least-squares regression via a function provided by the SciPy package. Results: We demonstrate a functional IPython Notebook which allows for fitting of SIRD model parameters to real-world datasets. Additionally, we can form rudimentary projections of potential outbreak trajectories in response to real-world changes in the environment in which an outbreak is occuring by modifying the system of ODEs. For example, we show the effect of changing the date on which shelter-in-place measures are lifted on a simulated New York City (NYC). We first fit the parameters of the SIRD model (Fig C) using real-world outbreak data from NYC provided by the NY Times. We then run the model, demonstrating that lifting shelter-in-place public health measures after only a month causes a rebound and second peak in cases in the simulated New York City (Fig A). On the other hand, lifting the shelter-in-place orders after two months allows the outbreak in the simulated city to die down without a second spike in cases (Fig B). Conclusions: Overall, we believe that there is a great deal of predictive and explanatory power provided by SIRD-type models. We hope that other researchers in the field can use our work as a basis for further customization and tailoring of the system of ODEs, allowing these models to be fit to a variety of different cities, states, or other regions. That said, we also want to urge caution to those hoping to utilize these models to exactly predict the course of an outbreak or develop specific timing of public policies. These models are simply projections, and are highly limited by the overall limited availability and quality of data at this point in the COVID-19 outbreak.
快速入门- COVID-19爆发的SIRD建模
概述:人们可以使用许多不同的方法来模拟传染病的爆发,在本例中是2019年新型冠状病毒(COVID-19)。有些模型,如广义逻辑模型或理查兹模型,依赖于对累积病例增长的逻辑模式的预期,通常不包括诸如隔离受感染个体、对一般人群的就地庇护命令(如纽约市所制定的)或公共卫生政策随时间变化的其他复杂动态。在这里,我们提出了一个易感-感染-康复-死亡(SIRD)模型的实现,其参数拟合现实世界的数据,可以帮助预测应对这种复杂环境变化的爆发的总体轨迹。我们的方法包含在免费提供的IPython笔记本中,目的是为其他对探索和预测COVID-19爆发感兴趣的公民科学家提供一个良好的起点。方法:虽然可以从上面提到的更简单的模型风格中学到很多东西,但SIRD模型允许在预测中有很大的细微差别,因为它试图近似真实世界的动态,即爆发期间隔间之间的个体流动;例如,易感人群以特定的比率被感染,然后这些感染者以特定的比率康复或死亡。我们对该模型的实现利用了受Diego Caccavo[1]工作启发的常微分方程(ode)系统。通常,我们将感染率建模为常数β乘以受感染人群的总体比例和易感人群的数量。在我们的方法中,我们将这个β值建模为时间β(t)的函数。通过这种方式,我们可以解释感染率的变化,例如,由于在时间点t_lock(例如,有避难所)的封锁而减少,或者由于在时间点t_lift解除这种封锁而增加(图C)。在建立将决定模型动力学的方程后,我们通过SciPy包提供的函数使用非线性最小二乘回归拟合参数(β,𝜏_时延,,𝛿)。结果:我们展示了一个功能的IPython Notebook,它允许将SIRD模型参数拟合到现实世界的数据集。此外,我们可以通过修改ode系统,对潜在的爆发轨迹做出初步预测,以应对爆发发生环境的真实变化。例如,我们在模拟的纽约市(NYC)上展示了改变解除就地庇护措施的日期的影响。我们首先使用《纽约时报》提供的纽约市真实暴发数据拟合SIRD模型的参数(图C)。我们然后运行模型,证明解除避难所公共卫生措施仅仅一个月后会反弹和第二峰值的情况下模拟纽约(图a)。另一方面,解除避难所订单两个月后允许在模拟城市爆发平息没有第二个病例激增(图B)。结论:总的来说,我们认为有大量的预测和SIRD-type模型提供的解释力。我们希望该领域的其他研究人员可以将我们的工作作为进一步定制和剪裁ode系统的基础,使这些模型适合各种不同的城市、州或其他地区。话虽如此,我们也想敦促那些希望利用这些模型准确预测疫情进程或制定具体公共政策时机的人保持谨慎。这些模型只是简单的预测,在COVID-19疫情爆发的这一点上,数据的总体可用性和质量有限,因此受到高度限制。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书