Full text
43,165 characters
· extracted from
preprint-html
· click to expand
PySIRTEM: An Efficient Modular Simulation Platform for The Analysis of Pandemic Scenarios | medRxiv /* */ /* */ <!-- <!-- /*! * yepnope1.5.4 * (c) WTFPL, GPLv2 */ (function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0];var j=d.createElement(s);var dl=l!='dataLayer'?'&l='+l:'';j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;j.type='text/javascript';j.async=true;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-P4HH5NV'); Skip to main content Home About Submit ALERTS / RSS Search for this keyword Advanced Search PySIRTEM: An Efficient Modular Simulation Platform for The Analysis of Pandemic Scenarios View ORCID Profile Preetom Biswas , View ORCID Profile Giulia Pedrielli , View ORCID Profile K. Selçuk Candan doi: https://doi.org/10.1101/2025.05.02.25326889 Preetom Biswas 1 School of Computing & Augmented Intelligence Arizona State University , 699 S Mill Ave, Tempe, AZ 85281, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Preetom Biswas For correspondence: pbiswa11{at}asu.edu Giulia Pedrielli 1 School of Computing & Augmented Intelligence Arizona State University , 699 S Mill Ave, Tempe, AZ 85281, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Giulia Pedrielli K. Selçuk Candan 1 School of Computing & Augmented Intelligence Arizona State University , 699 S Mill Ave, Tempe, AZ 85281, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for K. Selçuk Candan Abstract Full Text Info/History Metrics Data/Code Preview PDF ABSTRACT Conventional population-based ODE models struggle against increased level of resolution since incorporating many states exponentially increases computational costs, and demands robust calibration for numerous hyperparameters. PySIRTEM is a spatiotemporal SEIR-based epidemic simulation platform that provides high resolution analysis of viral disease progression and mitigation. Based on the authors-developed Matlab© simulator SIRTEM , PySIRTEM ‘s modular design reflects key health processes, including infection, testing, immunity, and hospitalization, enabling flexible manipulation of transition rates. Unlike SIRTEM , PySIRTEM uses a Sequential Monte Carlo (SMC) particle filter to dynamically learn epidemiological parameters using historical COVID-19 data from several U.S. states. The improved accuracy (by orders of magnitude) make PySIRTEM ideal for informed decision-making by detecting outbreaks and fluctuations. We further demonstrate PySIRTEM ‘s usability performing a factorial analysis to assess the impact of different hyperparameter configurations on the predicted epidemic dynamics. Finally, we analyze containment scenarios with varying trends, showcasing PySIRTEM ‘s adaptability and effectiveness. 1 INTRODUCTION The devastating outbreak of COVID-19 disease, caused by the airborne SARS-CoV-2 virus, has had a long-lasting impact around the world, with 7 million deaths to date ( Hossain et al. 2021 ). Throughout history, the human race has faced the doom of epidemics, pandemics, and outbreaks such as plague, flu, and Ebola, which pose a great threat to human life and economy. Various mitigation strategies have been employed by policymakers to curb the onslaught of infection such as lockdown, isolation, optimal vaccine allocation, preemptive quarantine, and random testing ( Anderson et al. 2020 ; Walensky and Del Rio 2020 ; Roy et al. 2021 ). Despite recent significant breakthroughs in medical science, there are substantial challenges in impeding the destruction of pandemics. The incredible advancement of transportation, especially the ease of international air travel, allows for rapid dissemination of viruses with a high reproduction number such as COVID-19. The lack of reliable testing data for early detection of a novel virus outbreak poses an added obstacle. Acquiring reliable population-level epidemiological data is another challenging task due to possibilities of underreporting, misreporting, and testing limitations ( Lau et al. 2021 ). In addition, the adaptive and mutative abilities of certain viruses lead to the inception of newer, often more virulent strains, stressing the need for a flexible and meticulous epidemiological model. Duan et al. (2015) classify epidemiological models into three categories: complex network models, agent-based models, and analytical models. Network-based models focus on person-to-person interactions, representing disease spread as a space-time graph ( Chang et al. 2021 ). Although limited by computational complexity for large-scale studies, they can be coupled with analytical models to infer inter-zonal relation and optimize containment policies. Here, each node acts as an individual zone with internal mobility and edges denote contagion influence between zones ( Roy et al. 2021a ). Agent-based models, which simulate individual behaviors and interactions, allow for high-resolution analysis of disease transmission. Various studies have employed agent-based modeling in the scope of COVID-19, Dengue, HIV, both independently and coupled with analytical models ( Hoertel et al. 2020 ; Rhee 2006 ; Miksch et al. 2015 ; Frias-Martinez et al. 2011 ). Nevertheless, their use is also limited to smaller case studies due to high computational demands. Traditional analytical models such as differential equation-based SIR, SIS, SEIR, and SEIRS models are most commonly used to study population-level pandemic progression ( Jit and Brisson 2011 ; Li and Muldowney 1995 ). To support policy optimization and decision making, these models can incorporate additional significant real-life events such as quarantine and hospitalization ( He et al. 2020 ). For example, Chu et al. (2020) incorporated mask wearing, eye protection, and social distancing to study infection reduction while Eikenberry et al. (2020) embedded the effect of masks by adjusting infection rates. Moreover, testing campaigns play a crucial role in identifying outbreaks, tracking epidemic trends, and steering interventions, particularly in diseases like COVID-19 with significant asymptomatic spread. However, testing can be costly and unreliable. So epidemic models must address challenges such as cost constraints, daily capacity, test accuracy, sensitivity and specificity. As mass testing can be costly, choosing optimal testing strategies is significant in identifying target populations that require quarantine ( Omori et al. 2020 ). Wells et al. (2021) also explored reducing the quarantine period with exit testing as an effective alternative to the 14-day full quarantine. Furthermore, embedding spatiotemporal mobility is another key factor in accurately predicting and simulating viral progression across zones and individuals ( Niehus et al. 2020 ; Roy et al. 2021b ). While effective, any singular model fails to incorporate important health processes such as immunity, quarantine, hospitalization, and multiple testing modalities while accounting for population movement and viral evolution. In our earlier work ( Azad et al. 2022 ), we introduced a spatially informed Susceptible-Exposed-Infected-Recovered-Susceptible (SEIRS) model, SIRTEM , which couples the spatio-temporal dynamics of the COVID-19 epidemic with above-mentioned compartments to solve the optimal cost-effective multi-modal COVID-19 testing strategy problem while satisfying practical constraints ( Azad et al. 2022 ). In this paper, we present PySIRTEM , which implements and extends the SIRTEM model to accommodate dynamic learning of model parameters and provides flexible manipulation to simulate real-world viral interdiction scenarios accurately. Contributions PySIRTEM builds upon the SIRTEM model with a novel Sequential Monte Carlo (SMC) particle filter approach that improves the accuracy in the implementation of transition hyperparameters. The black box nature of the particle filter allows for sensitive identification of rapid fluctuations, making PySIRTEM a powerful tool to capture intrinsic pandemic behavior. Additionally, we provide detailed analysis of the interaction between various model parameters and their impact on pandemic progression through Design of Experiments. Finally, we simulate multiple pandemic scenarios and analyze PySIRTEM ’s effectiveness in informed decision and policy making. 2 APPROACH 2.1 SEIRS Epidemic Model For PySIRTEM , we extend the Susceptible-Exposed-Infected-Recovered-Susceptible (SEIRS) model. Susceptible (S) population consists of individuals who are not exposed to infection. Once exposed, they may transition to the Exposed (E) class that denotes an asymptomatic or untested population. If tested positive, exposed individuals transfer to Infected (I) class from where they transition either to Recovered (R) or dead. SEIRS models further allow incorporation of waning immunity in disease modeling, where a recovered individual can again become susceptible over time. A set of differential equations regulate the transition between the health classes using parameters such as infection rate ( β ), recovery rate ( γ ), and loss of immunity rate ( δ ). However, the traditional SEIRS model fails to incorporate important dynamics and processes such as testing, hospitalization, quarantine, and natural and induced immunization. Download figure Open in new tab Figure 1. A brief overview of (a) SEIRS model and (b) PySIRTEM model 2.2 PySIRTEM PySIRTEM implements the extended SEIRS model, SIRTEM ( Spatially Informed Rapid Testing for Epidemic Modelling ) ( Azad et al. 2022 ), to simulate pandemic evolution. PySIRTEM builds upon the SEIRS model by incorporating additional states to account for testing, hospitalization, quarantine, and immunity loss. It also makes provisions for optimized symptomatic and asymptomatic testing strategies as well as the accuracy (false positive and false negative rate) of these test results. Furthermore, PySIRTEM is spatially informed i.e. accounts for the distribution of population in different zones and associated mixing rates. PySIRTEM includes 46 medical states by dividing individuals into five population groups or compartments: Susceptible individuals who are non-infected and display no COVID symptoms; Symptomatic Infected individuals showing COVID symptoms; Asymptomatic Infected individuals who do not exhibit symptoms; Symptomatic but not COVID-infected individuals with flu-like symptoms; and Falsely Presumed Susceptible individuals who have natural immunity but are falsely tested negative for COVID antibodies. PySIRTEM also employs delay differential equations (DDEs) instead of traditional Ordinary Differential Equations to accommodate for delays in disease progression and testing results. Analogous to conventional SEIRS models, transition between the compartments are governed by relevant transition rates and parameters such as infection rate, testing rate, hospitalization rate and so on. Comprehensive overview of the subsequent processes and parameters are detailed in the SIRTEM paper ( Azad et al. 2022 ). 2.3 Calibration of Transition Rates using Particle Filters For a given geographic location, we calibrate PySIRTEM by estimating three critical transition parameters: infection rate ( β ), testing rate ( φ ), and general non-COVID-19 sickness rate ( g ) using published reported daily positive and daily negative cases. We employ particle filters, also known as Sequential Monte Carlo (SMC) methods, that are highly effective in approximating solutions of non-linear state space systems. Unlike traditional optimization approaches or Kalman filters, particle filters are non-parametric which are ideal for non-linear, non-Gaussian epidemic processes. 2.3.1 Basics of a Particle Filter Particle filters leverage a set of weighted particles to derive the posterior distribution of latent states in a state-space model. A state-space model consists of a latent Markov process ( X t ) and a series of noisy observations ( Y t ) at discrete time. The state transition model defines the evolution of the latent state and follows the following probability, Observations are conditionally independent given the latent states and each observation is only dependant on the current latent state. where g (·) denotes the observation likelihood function. Given a set of observations Y 1: t = { Y 1 , Y 2 , …, Y t }, the particle filter estimates the posterior distribution π ( X t | Y 1: t ) by using a set of N weighted particles evolving over time, where x t is a sampled particle from the distribution of X t . The weights are normalized such that . The particle filter recursively computes importance sampling approximations of π t as follows, Here is the empirical approximation π t using weighted particles and δ represents the Dirac delta function. The value of δ is 0 everywhere except at 0, and integrates to 1. The parameters δ is used to approximate the posterior distribution as the sum of weighted point masses. The algorithm consists of three major steps: Resample: Draw (with replacement) from according to weights to discard lower weighted particle before propagation. Here is a resampled particle. Propagate: Draw from , independently for different indices i . Reweight: Set . Note that at time t = 0, particles are drawn from π 0 and is set to 1 /N . Further detailed discussions on particle filters can be found in ( Künsch 2013 ; Doucet et al. 2009 ) and related literature. 2.3.2 PySIRTEM State Space Model Setup And Particle Filter Iteration In the context of epidemic modeling and forecasting, our goal is to estimate the following latent state vector: where, β t is the infection rate for susceptible population, φ t is the diagnostic testing rate for symptomatic individuals, and g t is the ratio of susceptible population who have fever for non-COVID infections. Given a latent space vector X t , PySIRTEM model produces two predicted time series Ŷ = [ ŷ + , ŷ − ] (predicted daily positives ŷ + and negatives ŷ − ), which are compared against the actual reported case numbers Y = [ ŷ + , ŷ − ] (reported daily positives y + and negatives y − ). We assume X t evolves in a non-linear, autoregressive manner and define the state transition and observation models as where F represents the PySIRTEM simulation function that takes in the transition rates and returns . Here, both and denote small random noise. PySIRTEM utilizes a dynamic piecewise autoregressive order-2 (AR2) process to model the state transitions. We generate N = 200 initial particles from a prior uniform distribution U (0, 1). In particle filter, approximation accuracy increases with the number of particles. Since large number of particles adds significant computational cost for PySIRTEM , we use an importance density (or proposal distribution) that incorporates the previous two predicted states ( Equation 1 , 2 , 3 ), limiting search in relevant state space and providing better approximation with fewer particles ( Arulampalam et al. 2002 ). For each particle , the state transition function is called and calculated using and Only for , an AR(1) process is used. The transition rates x t = [ β t , φ t , g t ] are only updated weekly and kept constant otherwise. For a given week k , the rates are calculated as follows: Above, the weights , and are randomly sampled between [0.1, 0.8] each week so that the model does not overfit by allowing unrealistic fluctuations while providing enough flexibility to reflect real-world changes quickly. A small Gaussian perturbation ε k ~ 𝒩 (0, σ 2 ) is added for stochasticity. The new rates are bounded between [0, 1] to ensure realistic values. The PySIRTEM model simulation is run using each of the state particles as input: We compare the outputs with reported case data obtained from public sources ( CTW nd ) and update the weights by computing the following likelihood Here represents the noise in observational data. The weights are normalized and N particles are resampled at the next time point proportionate to their updated weights, but are only updated weekly. The weekly update is to ensure the model does not overfit and also to account for the delay periods in epidemic processes. The process is repeated throughout the horizon and the Maximum a Posteriori (MAP) estimation for β t , φ t , g t are recorded at each timepoint. 2.4 Factorial Analysis Factorial analysis ( Montgomery 2017 ) is a powerful approach to identify latent variables and gauge relationships between a set of observed variables. It can either be utilized as a means for identifying underlying structure or a tool for testing a hypothesized structure. In PySIRTEM , we apply factorial analysis to study the effects of various trends in transition parameters. Specifically, we analyze how different infection rate ( β ), testing rate ( φ ), and general sickness rate ( g ) impact daily case numbers. We explore both the main effects, i.e., how each factor individually influences outcome, and interaction effects, i.e., how the rates jointly impact the case trends. For PySIRTEM , we conduct a full factorial experiment by varying the three rates in three distinct temporal shapes: increasing: the rate gradually increases over time. decreasing: the rate gradually decreases over time. single-peak: the rate follows a bell-curve trajectory, peaking at an intermediate timepoint. Additionally, each shape has different bounds denoting the highest and lowest value. Specifically, we denote the bounds in three classes: high, medium, and low, which result in a total of nine unique setups for each shape. The specific bounds for the rates are listed in Table 1 . View this table: View inline View popup Download powerpoint Table 1. Range of rates for different shapes and orders for factorial analysis. Main Effects Analysis Main effect in factorial design refers to the influence of a singular independent variable on the dependent variable, ignoring the effects of other independent variables. The main effect gives insight into whether changing the level of one factor affects the outcome variable or not. The main effect of a factor A is denoted by, Algorithm 1 Particle Filter Iteration Overview Download figure Open in new tab where is the mean response for level i of factor A and is the grand mean i.e the average response of all levels. In our experiment, we denote the levels of each factor by mapping the trends to 1 and −1 if they are used in the simulation or not respectively. For example, if a simulation is run with high increasing β , high increasing φ , and low single-peak g , we map these 3 factors to level 1 and all the other factors to level −1. Interaction Plots Analysis Interaction plots provide a visual report on how the relationship between one factor and the outcome depends on the levels of another factor and reveal additional insight of combined interactions possibly overlooked by main effects analysis. The interaction between level i of factor A and level j of factor B is denoted by where is the mean response for the combination of level i of A and level j of B , is the mean response for level i of A (ignoring B ), is the mean response for level j of B (ignoring A ), and is the grand mean. A large positive or negative ( αβ ) i j value indicates strong interaction while ( αβ ) i j ≈0 means no interaction. Parallel lines in the plot denote no interaction while non-parallel lines suggest one factor’s effect depends on the level of another factor. Crossing lines indicate strong interaction where the direction of the effect reverses based on the level of the other factor. Strong interaction between two factors imply that the effect of the factors cannot be evaluated in isolation and main effect analysis should be interpreted with caution. 3 EXPERIMENTAL RESULTS 3.1 PySIRTEM Validation We confirmed the validity and accuracy of the PySIRTEM parameters through particle filter approach by comparing the the simulation results from the model against published confirmed case data from three U.S. states - Arizona, Florida, and Minnesota. PySIRTEM is implemented in Python 3.12.9 using libraries such as NumPy , SciPy , ddeint , and pfilter and run on Sol Supercomputer at Arizona State University, an environment with 12 CPUs and 8 GiB memory. The particle filter algorithm is initialized with N = 200 particles, with the infection rate ( β ), test rate ( φ ), and general sickness rate ( g ) for each state calibrated weekly. Weights were updated based on Equation 4 and importance sampling was employed to discard lower weighted particles. The full list of SIRTEM simulation parameters and their sources are detailed in the Azad et al. (2022) paper. PySIRTEM is then simulated with the calibrated rates to generate estimated daily cases and compared against reported confirmed cases. The confirmed daily positive ( y + ) and daily negative ( y − ) were obtained from public sources ( CTW nd ) between March 22, 2020 to March 1, 2021. Forecasts were made for a 7-day period after each weekly calibration of the rates. Figures 2a and 2b show that PySIRTEM is quite accurate in capturing the trends of infection for Arizona. Figure 2c displays the intrinsic parametric trends which explain the daily pandemic progression i.e., the peak in β at week 10, 30, and 40 correspond with the following rise in positive cases. In Figure 2d , we compare the mean daily error in estimation for 20 iterations from SIRTEM ’s AR(2) calibration method ( Azad et al. 2022 ) and PySIRTEM ’s particle filter approach, with PySIRTEM providing more accurate results. Comprehensive error comparisons for other states are listed in Table 2 . View this table: View inline View popup Download powerpoint Table 2. Normalized Mean-squared Error for selected U.S States from PySIRTEM vs SIRTEM Calibration results Download figure Open in new tab Figure 2. Model prediction results for the State of Arizona. 3.2. Factorial Analysis Outcomes In this section, we analyze how different infection rate ( β ), testing rate ( φ ), and general sickness rate ( g ) impact daily case numbers; in particular, we aggregate the findings from factorial analysis in pairplots in Figure 3 . For each of the experiments, we keep the infection rate trends constant, only changing the testing rate and general sickness rate trends to comparing the pairwise interaction between the factors. The diagonal plots in the matrices denote the main effects while the off-diagonal plots indicate interaction. At each cellplot at row r and column c , the red line refer to relation between factor c and the peak value (maximum daily positive cases reported) when factor r is not used in the simulation and the blue line refers to the interaction between factor c and the peak value in the presence of factor r . Download figure Open in new tab Figure 3. Factorial Analysis for different trends in PySIRTEM transition parameters (Outcome variable: maximum daily positive cases). Factors in x and y -axis are abbreviated as follows: i, t, g for infection, testing, and general sickness rate respectively; incr, decr , and 1 p for increasing, decreasing, and single-peak trends; H, M , and L for the rate bounds (high, medium, low). For space scarcity, factor names are abbreviated in Figure 3 . For example, i _ incr _ H refers to high increasing infection rate trend. The values for each trend are again generated from Table 1 . Since no two trends for the same factor are possible for an independent run of the simulation, interaction plots for same factors have been grayed out. In the plots in Figure 3a , we see non-parallel lines between increasing β and both increasing and decreasing φ , implying strong levels of interaction among these. Specifically, when φ increases, more positive cases are detected, suggesting higher testing is effective in identifying infections ( t _ incr _ M, i _ incr _ M ). However, decreasing φ leads to under-reporting ( t _ decr _ H, i _ incr _ H ) as the lines point downward (lower positive cases) even when β is increasing. We can observe that a testing policy where majority of testing is concentrated on a single timepoint ( t _ incr _ M ) is less effective in containing spread, as implied by the parallel lines ( t _1 p _ M, i _ incr _ M ). The plots in Figure 3a further show that with increasing β , non-COVID g rate has trivial impact on the peak of infection because the number of false positives due to g rate is still greatly outnumbered by true positives ( g _ incr _ M, i _ incr _ M ). The g rate, however, shows strong interaction with a single-peak testing rate policy. Particularly, when a high number of individuals are sick with non-COVID illness, high testing rate may lead to more false positives stimulating higher positive reporting ( g _1 p _ H, t _1 p _ H ). This is evident from the blue line having a steeper positive slope than the red even when β trend is constant in both cases. Figure 3b displays that if β is decreasing rapidly, a high test rate can quickly flatten the infection curve resulting in lower positive cases ( t _ incr _ H, i _ decr _ H ). However, a low increasing φ may not be sufficient to curb a slowly decreasing infection trend ( t _ incr _ L, i _ decr _ H ), stressing the significance of adaptive testing policies. Here the blue line displays positive slope implying insufficient testing which leads to higher spread and higher reporting of positive cases. Figure 3c reveals that for bell-curve β trend, a similar single-peak testing policy is mostly ineffective as indicated by parallel interaction plots for ( t _1 p _ M, i _1 p _ M ). However, increasing and decreasing test rates are capable of containing positive cases. Moreover, plot for ( t _ decr _ M, i _1 p _ M ) shows that decreasing φ (i.e. strong testing at the start) is more effective in keeping the reported cases low (the downward slope suggests lower spread and reporting) than increasing φ ( t _ incr _ M, i _1 p _ M ) where we see a positive slope which demonstrates that testing policy failed to regulate infection. 3.3. Containment Scenario Analysis In order to demonstrate the capabilities of PySIRTEM as a simulation tool, we conduct a series of experiments comparing results generated from parameter setups displaying low and strong interaction derived from factor analysis. We gauge the rate of impact when different rates change their trends. The outcomes are compared against the simulation results obtained from the setup where the rates display only one trend i.e. increasing or decreasing. Finally, we evaluate the rate of change in infection and positive cases in order for better policy-making. We run the simulation for N = 150 days and the trends are kept constant after day 100 to observe the effect of the trends. At n = 75, we toggle the trends of one of the rates. For example, testing rate ( φ ) follows a decreasing trend up to day 75 and then it gradually starts increasing in Figure 4a . In each of the experiments, we keep the other rates’ trends unchanged i.e., the infection ( β ) and general sickness rate ( g ) follow an increasing trend throughout. Similarly, when β changes trends, φ and g are kept as increasing. The positive ( y +∗ ) and infected ( I ∗ ) case numbers are compared against data obtained from PySIRTEM where the rates have unchanged trends i.e β always increasing and φ always decreasing. The rates of change are calculated as follows, As we see in Figure 4a , when φ starts to increase (after the vertical red dashed line), there is a quick surge in reported cases; however the infected numbers gradually decrease and the higher testing not only limits the peak of infection but also delays it. On the other hand, Figure 4b shows that, when β suddenly starts to increase, the infected hill is wider even though the testing is able to identify the peak; this suggests that infection is lasting and stronger contingency plans are required. These experiments, along with others involving various hyperparameters, give valuable insights in managing resources and policy making during different scenarios during the course of a pandemic. Download figure Open in new tab Figure 4. Comparison of Model prediction results for two different scenarios. 4. CONCLUSION PySIRTEM provides a powerful and flexible tool for simulating pandemic dynamics via the addition of a particle filter for dynamic estimation of parameters. Our factorial design analysis showcases that PySIRTEM is able to capture critical epidemiological factor interactions, including infection and test rates, and facilitates informed decision-making. The capability of the model to simulate various real world pandemic scenarios demonstrates its versatility. Future efforts could see us explore additional variables like vaccination techniques, mutated viral strains, and demographic traits in the context of PySIRTEM . To further enhance granularity, an agent-based model (ABM) can be added to simulate behavior and interaction at the individual level to supplement PySIRTEM ’s population-level dynamics. Data Availability All data produced in the present study are available upon reasonable request to the authors AUTHOR BIOGRAPHIES PREETOM BISWAS is an Undergraduate Student at Arizona State University for the School of Computing and Augmented Intelligence (SCAI) working with Dr. Giulia Pedrielli and Dr. K. Selçuk Candan on Pandemics modeling. His research focuses on stochastic simulation and optimization within with epidemiology applications. His email address is pbiswa11{at}asu.edu . GIULIA PEDRIELLI is currently Associate professor for the School of Computing and Augmented Intelligence (SCAI) at Arizona State University. She develops her research in design and analysis of random algorithms for global optimization, with focus on improving finite time performance and scalability of these approaches. Applications of her work are in individualized cancer care, bio-manufacturing, design and control of self-assembled RNA structures, verification of cyber-physical systems. Her email address is giulia.pedrielli{at}asu.edu and her website is https://www.gpedriel.com/ . K. SELÇUK CANDAN is a professor of computer science and engineering at Arizona State University (ASU) and the director of ASU’s Center for Assured and Scalable Data Engineering (CASCADE). His primary research interest is in the area of management and analysis of non-traditional, heterogeneous, and imprecise (such as multimedia, web, and scientific) data, with applications in public heath and sustainability, among others. He is an ACM Distinguished Scientist. His email address is candan{at}asu.edu and his website is https://kscandan.site . REFERENCES ↵ Anderson , R. M. , H. Heesterbeek , D. Klinkenberg , and T. D. Hollingsworth . 2020 , 3. “ How will country-based mitigation measures influence the course of the COVID-19 epidemic? ”. The Lancet 395 : 931 – 934 . OpenUrl ↵ Arulampalam , M. , S. Maskell , N. Gordon , and T. Clapp . 2002 . “ A tutorial on particle filters for online nonlinear/non-Gaussian Bayesian tracking ”. IEEE Transactions on Signal Processing 50 ( 2 ): 174 – 188 . OpenUrl ↵ Azad , F. T. , R. W. Dodge , A. M. Varghese , J. Lee , G. Pedrielli , K. S. Candan , and G. Chowell-Puente . 2022 , November . “ SIRTEM: Spatially Informed Rapid Testing for Epidemic Modeling and Response to COVID-19 ”. ACM Trans. Spatial Algorithms Syst . 8 ( 4 ). ↵ Chang , S. , E. Pierson , P. W. Koh , J. Gerardin , B. Redbird , D. Grusky , and J. Leskovec . 2021 . “ Mobility network models of COVID-19 explain inequities and inform reopening ”. Nature 589 ( 7840 ): 82 – 87 . OpenUrl CrossRef PubMed ↵ Chu , D. K. , E. A. Akl , S. Duda , K. Solo , S. Yaacoub , H. J. Schünemann , A. El-Harakeh , A. Bognanni , T. Lotfi , M. Loeb et al. 2020 . “ Physical distancing, face masks, and eye protection to prevent person-to-person transmission of SARS-CoV-2 and COVID-19: a systematic review and meta-analysis ”. The lancet 395 ( 10242 ): 1973 – 1987 . OpenUrl CrossRef ↵ CTW n.d.. “The Covid Tracking Project”. Retrieved from https://covidtracking.com/data . ↵ Doucet , A. , A. M. Johansen et al. 2009 . “ A tutorial on particle filtering and smoothing: Fifteen years later ”. Handbook of nonlinear filtering 12 ( 656-704 ): 3 . OpenUrl ↵ Duan , W. , Z. Fan , P. Zhang , G. Guo , and X. Qiu . 2015 . “ Mathematical and computational approaches to epidemic modeling: a comprehensive review ”. Frontiers of Computer Science 9 : 806 – 826 . OpenUrl PubMed ↵ Eikenberry , S. E. , M. Mancuso , E. Iboi , T. Phan , K. Eikenberry , Y. Kuang , E. Kostelich , and A. B. Gumel . 2020 . “ To mask or not to mask: Modeling the potential for face mask use by the general public to curtail the COVID-19 pandemic ”. Infectious disease modelling 5 : 293 – 308 . OpenUrl PubMed ↵ Frias-Martinez , E. , G. Williamson , and V. Frias-Martinez . 2011 . “ An agent-based model of epidemic spread using human mobility and social network information ”. In 2011 IEEE third international conference on privacy, security, risk and trust and 2011 IEEE third international conference on social computing , 57 – 64 . IEEE . ↵ He , S. , Y. Peng , and K. Sun . 2020 . “ SEIR modeling of the COVID-19 and its dynamics ”. Nonlinear dynamics 101 : 1667 – 1680 . OpenUrl PubMed ↵ Hoertel , N. , M. Blachier , C. Blanco , M. Olfson , M. Massetti , F. Limosin , and H. Leleu . 2020 . “ Facing the COVID-19 epidemic in NYC: a stochastic agent-based model of various intervention strategies ”. MedRxiv . ↵ Hossain , M. , M. Hassanzadeganroudsari , and V. Apostolopoulos . 2021 . “ The emergence of new strains of SARS-CoV-2. What does it mean for COVID-19 vaccines? ”. Expert review of vaccines 20 ( 6 ): 635 – 638 . OpenUrl CrossRef PubMed ↵ Jit , M. , and M. Brisson . 2011 . “ Modelling the Epidemiology of Infectious Diseases for Decision Analysis ”. PharmacoEconomics 29 : 371 – 386 . OpenUrl PubMed ↵ Künsch , H. R. 2013 , September . “ Particle filters ”. Bernoulli 19 ( 4 ). ↵ Lau , H. , T. Khosrawipour , P. Kocbach , H. Ichii , J. Bania , and V. Khosrawipour . 2021 . “ Evaluating the massive underreporting and undertesting of COVID-19 cases in multiple global epicenters ”. Pul-monology 27 ( 2 ): 110 – 115 . OpenUrl PubMed ↵ Li , M. Y. , and J. S. Muldowney . 1995 . “ Global stability for the SEIR model in epidemiology ”. Mathematical Biosciences 125 : 155 – 164 . OpenUrl CrossRef PubMed ↵ Miksch , F. , P. Pichler , K. J. Espinosa , K. S. Casera , A. N. Navarro , and M. Bicher . 2015 . “ An agent-based epidemic model for dengue simulation in the Philippines ”. In 2015 Winter Simulation Conference (WSC) , 3202 – 3203 . IEEE . ↵ Montgomery , D. C. 2017 . Design and analysis of experiments . John wiley & sons . ↵ Niehus , R. , P. M. De Salazar , A. R. Taylor , and M. Lipsitch . 2020 . “ Using observational data to quantify bias of traveller-derived COVID-19 prevalence estimates in Wuhan, China ”. The Lancet Infectious Diseases 20 ( 7 ): 803 – 808 . OpenUrl PubMed ↵ Omori , R. , K. Mizumoto , and G. Chowell . 2020 . “ Changes in testing rates could mask the novel coronavirus disease (COVID-19) growth rate ”. International Journal of Infectious Diseases 94 : 116 – 118 . OpenUrl CrossRef PubMed ↵ Rhee , A. J. 2006 . An agent-based approach to HIV/AIDS epidemic modeling: a case study of Papua New Guinea . Ph. D. thesis, Massachusetts Institute of Technology . ↵ Roy , S. , P. Biswas , and P. Ghosh . 2021a . “ Effectiveness of Network Interdiction Strategies to Limit Contagion During a Pandemic ”. IEEE Access 9 : 95862 – 95871 . OpenUrl ↵ Roy , S. , P. Biswas , and P. Ghosh . 2021b . “ Quantifying Mobility and Mixing Propensity in the Spatiotemporal Context of a Pandemic Spread ”. IEEE Transactions on Emerging Topics in Computational Intelligence 5 ( 3 ): 321 – 331 . OpenUrl PubMed ↵ Roy , S. , R. Dutta , and P. Ghosh . 2021 . “ Optimal Time-Varying Vaccine Allocation Amid Pandemics With Uncertain Immunity Ratios ”. IEEE Access 9 : 15110 – 15121 . OpenUrl ↵ Walensky , R. P. , and C. Del Rio . 2020 . “ From mitigation to containment of the COVID-19 pandemic: putting the SARS-CoV-2 genie back in the bottle ”. Jama 323 ( 19 ): 1889 – 1890 . OpenUrl PubMed ↵ Wells , C. R. , J. P. Townsend , A. Pandey , S. M. Moghadas , G. Krieger , B. Singer , R. H. McDonald , M. C. Fitzpatrick , and A. P. Galvani . 2021 . “ Optimal COVID-19 quarantine and testing strategies ”. Nature communications 12 ( 1 ): 356 . OpenUrl PubMed View the discussion thread. Back to top Previous Next Posted May 05, 2025. Download PDF Data/Code Email Thank you for your interest in spreading the word about medRxiv. NOTE: Your email address is requested solely to identify you as the sender of this article. Your Email * Your Name * Send To * Enter multiple addresses on separate lines or separate them with commas. You are going to email the following PySIRTEM: An Efficient Modular Simulation Platform for The Analysis of Pandemic Scenarios Message Subject (Your Name) has forwarded a page to you from medRxiv Message Body (Your Name) thought you would like to see this page from the medRxiv website. Your Personal Message CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions. Share PySIRTEM: An Efficient Modular Simulation Platform for The Analysis of Pandemic Scenarios Preetom Biswas , Giulia Pedrielli , K. Selçuk Candan medRxiv 2025.05.02.25326889; doi: https://doi.org/10.1101/2025.05.02.25326889 Share This Article: Copy Citation Tools PySIRTEM: An Efficient Modular Simulation Platform for The Analysis of Pandemic Scenarios Preetom Biswas , Giulia Pedrielli , K. Selçuk Candan medRxiv 2025.05.02.25326889; doi: https://doi.org/10.1101/2025.05.02.25326889 Citation Manager Formats BibTeX Bookends EasyBib EndNote (tagged) EndNote 8 (xml) Medlars Mendeley Papers RefWorks Tagged Ref Manager RIS Zotero Tweet Widget Facebook Like Google Plus One Subject Area Epidemiology Subject Areas All Articles Addiction Medicine (568) Allergy and Immunology (863) Anesthesia (299) Cardiovascular Medicine (4425) Dentistry and Oral Medicine (443) Dermatology (382) Emergency Medicine (607) Endocrinology (including Diabetes Mellitus and Metabolic Disease) (1507) Epidemiology (15221) Forensic Medicine (30) Gastroenterology (1123) Genetic and Genomic Medicine (6588) Geriatric Medicine (667) Health Economics (997) Health Informatics (4524) Health Policy (1368) Health Systems and Quality Improvement (1612) Hematology (540) HIV/AIDS (1264) Infectious Diseases (except HIV/AIDS) (15910) Intensive Care and Critical Care Medicine (1103) Medical Education (623) Medical Ethics (145) Nephrology (667) Neurology (6588) Nursing (346) Nutrition (998) Obstetrics and Gynecology (1143) Occupational and Environmental Health (956) Oncology (3331) Ophthalmology (970) Orthopedics (369) Otolaryngology (420) Pain Medicine (435) Palliative Medicine (129) Pathology (663) Pediatrics (1690) Pharmacology and Therapeutics (691) Primary Care Research (710) Psychiatry and Clinical Psychology (5440) Public and Global Health (9219) Radiology and Imaging (2195) Rehabilitation Medicine and Physical Therapy (1369) Respiratory Medicine (1196) Rheumatology (593) Sexual and Reproductive Health (710) Sports Medicine (529) Surgery (710) Toxicology (99) Transplantation (289) Urology (265) (function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'9ffabfd59e77f047',t:'MTc3OTQ0MTY3Mg=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();
Text is read by the "Ask this paper" AI Q&A widget below.
Extraction quality varies by source — PMC NXML preserves structure
cleanly, OA-HTML may include some navigation residue, and OA-PDF can
have broken hyphenation. The publisher copy
(via DOI)
is the canonical version.