Epidemiological Modelling

SEIRS Compartmental Model

? Click on the boxes to remove/show the corresponding graphs on the plot.

Parameters
? Change the parameters of the model by dragging the sliders or entering numbers in the fields.

Comparison Graph

? Create a temporary graph with the current data points and compare it with a new graph. The temporary graph will disappear if the number of days is changed.

Fixed Population

Initial Exposed (E0)

Amount of people who are exposed to the disease but not yet infectious.

Initial Infected (I0)

Amount of people that are infectious.

Initial Removed (R0)

Amount of people who has either recovered from the disease or who are deceased.

\(\beta\)

The rate at which the disease spreads.

\(\sigma\)

The rate at which individuals who are exposed become infectious.

\(\gamma\)

The rate at which individuals recover.

\(\epsilon\)

The rate at which recovered individuals regain susceptibility.

Days

Total number of days.

The Runge-kutta 4th order method is applied to approximate the graphs.

Step size = 0.01


Change the total number of days by dragging the slider or entering a number in the field.

The SEIRS Compartmental Model

The underlying system of the SEIRS model is a system of coupled ordinary differential equations that describe the rate of change in the amount of individuals in each of the compartments. The system is expressed as

\({dS \over dt} = -{\beta SI \over N} + \epsilon R\)
\({dE \over dt} = {\beta IS \over N} - \sigma E\)
\({dI \over dt} = \sigma E - \gamma I\)
\({dR \over dt} = \gamma I - \epsilon R\),

where \(N=S+E+I+R\) is the total population. The functions \(S,E,I,R\) respectively represent

The constants \(\beta,\sigma,\gamma,\epsilon\) respectively represent

Based on the SEIRS system and the expression for the total population, the initial conditions are

\((S_0,E_0,I_0,R_0)\in\{(S,E,I,R)\in[0,N]^4\,|\,S\leq0,\,E\leq0,\,I\leq0,\,R\leq0,\,N=S+E+I+R\}\).

In order to perform simulations using the SEIRS model, the system of coupled ordinary differential equations is solved using a numerical method. The system is solved using the Runge-Kutta 4th order method.

The Runge-Kutta 4th Order Method

The Runge-Kutta 4th order method is also referred to as RK4. The method is a fourth order method since the global truncation error of the method is \(O(h^4)\).
The incrementing function \(\Phi(t_n,\hat{x}_n,h)\) for RK4 consists of a weighted average of four functions. The functions are

\(k_1=f(t_n,\hat{x}_n)\)
\(k_2=f\Bigl(t_n+\frac{h}{2},\hat{x}_n+\frac{h}{2}k_1\Bigr)\)
\(k_3=f\Bigl(t_n+\frac{h}{2},\hat{x}_n+\frac{h}{2}k_2\Bigr)\)
\(k_4=f(t_n+h,\hat{x}_n+hk_3)\).

The incrementing function is

\(\Phi(t_n,\hat{x}_n,h)=\frac{1}{6}(k_1+2(k_2+k_3)+k_4)\).

By applying the incrementing function, the iterative approximation with step size \(h\) is given by

\(\hat{x}_{n+1}=\hat{x}_n+\frac{h}{6}(k_1+2(k_2+k_3)+k_4)\).

Through the application of the iterative approximation above, the simulations of the SEIRS model are performed.



Help

To reset everything, press this button \(\rightarrow\)

To show the popup message again, press this button \(\rightarrow\)

Information
? Essential information about the current simulation.

Total Population (N)
Peak Infected
Peak Infected in Percentage
Peak Exposed
Peak Exposed in Percentage

Download Current Data
? Click on the button to download the data of the current simulation to a CSV file.

Save Parameters
? Click the button to save the current parameters of the simulation. These are only available on this device.

Click on one of the arrows below to sort the list.

File Name
Date
Peak Inf.
Peak Exp.
Load Delete