SEIRx disease and vaccination behaviour

b_seirx_tc · tipbox.models.SEIRx

Usage

from tipbox.models import SEIRx

model = SEIRx()
result = model.make_trajectory(num_samples=1800, noise=0.01, seed=43)
infectious, vaccinators = result.trajectory.T

control = model.make_trajectory(num_samples=1800, noise=0.01, seed=43, null_simulation=True)
Infectious population under changing vaccination risk. Dashed lines mark the behavioural threshold.

Infectious population under changing vaccination risk. Dashed lines mark the behavioural threshold.

Equations and forcing

The physical state is susceptible \(S\), exposed \(E\), infectious \(I\), and vaccinator fraction \(x\). Recovered individuals are implicit in the total population \(N\):

\[\begin{split}dS &= [\mu N(1-x)-\beta SI/N-\mu S]dt+\eta\sigma_S dW_S,\\ dE &= [\beta SI/N-(\epsilon+\mu)E]dt+\eta\sigma_E dW_E,\\ dI &= [\epsilon E-(\gamma+\mu)I]dt+\eta\sigma_I dW_I,\\ dx &= \kappa x(1-x)[-\omega(t)+I+\delta(2x-1)]dt +\eta\sigma_x dW_x.\end{split}\]

Time is measured in weeks. The vaccination-risk forcing ramps from omega_min to omega_max over \(T/\text{param_end_multiplier}\) and then stays constant. The automatic null cap is \(\max(\omega_{\min},2\omega_c-\omega_{\max})\); omega_null overrides it. The disease-free behavioural marker is \(\omega_c=\delta\), unless an explicit omega_bifurcation is supplied.

The initial state is \((0,0,0,1)\). Each Euler–Maruyama update first floors all four coordinates at 1e-8, then clips \(x\) to \([0,1]\) and rescales \((S,E,I)\) if their sum exceeds \(N\). This retained numerical floor seeds tiny exposed and infectious populations even with noise=0; the implemented disease-free boundary is therefore approximate. Observations contain \((I,x)\); all four sampled physical coordinates remain in result metadata.

Parameters and defaults

Default critical parameter: 50.

Parameter

Default

Units

Meaning

N

100000

individuals

Total population including the unobserved recovered compartment.

mu

0.00038461538

1 / week

Birth and death rate.

beta

10.5

1 / week

Transmission rate in frequency-dependent incidence beta*S*I/N.

epsilon

0.7

1 / week

Progression rate from exposed to infectious.

gamma

0.7

1 / week

Recovery rate.

kappa

0.007

model payoff scaling / week

Social-learning rate.

delta

50

payoff units

Injunctive social-norm strength; the disease-free behavioural threshold is omega=delta.

sigma_S

5

individuals / sqrt(week)

Susceptible diffusion amplitude before the noise multiplier.

sigma_E

5

individuals / sqrt(week)

Exposed diffusion amplitude before the noise multiplier.

sigma_I

5

individuals / sqrt(week)

Infectious diffusion amplitude before the noise multiplier.

sigma_x

0.0005

1 / sqrt(week)

Vaccinator-fraction diffusion amplitude before the noise multiplier.

omega_null

automatic

payoff units

Optional null cap; None uses max(omega_min, 2*omega_critical-omega_max).

omega_min

0

payoff units

Initial perceived vaccination risk.

omega_max

100

payoff units

Forced ramp endpoint and cap.

omega_bifurcation

automatic

payoff units

Optional behavioural marker; None uses delta.

dt

0.01

week

Default integration step.

t_start

0

week

Simulation start time.

t_end

100

week

End time when make_trajectory is called without num_samples; explicit num_samples sets the end time.

References: Oraby et al. (2014), Pananos et al. (2017), and the benchmark formulation in Bury et al. (2021).