💉 Vaccination effect — quick prediction
The model runs twice, once with and once without vaccination, starting from the sick sheep & goats (I_X) and vaccination numbers in the inputs. Results cover the next — days (Simulation Days in the toolbar).
| Without vaccination | With vaccination | |
|---|---|---|
| Predicted sheep & goat cases (new infections) | — | — |
| Share of sheep & goats infected | — | — |
| Peak day (most infected sheep & goats) | — | — |
| Infected sheep & goats at the peak | — | — |
| Risk | — | — |
How this is calculated
Both runs use the dashboard's own model (simulatePPR) and every parameter from the last simulation, over the Simulation Days.
Without vaccination: the already-vaccinated animals (V_X) and their day-0 vaccine immunity (λ·V_X) are counted as susceptible and ω = 0.
With vaccination: V_X and ω from the inputs, plus the round entered above. Of the doses given on that day, the share that reaches susceptible animals is protected (exposed, sick or recovered animals gain nothing).
Vaccine: a vaccinated animal's infection risk is cut by the protection %; protection wears off after the number of days entered, on average (V_X → S_X; the V_X → R_X flow λ is off, as in Step 4 Path 2). The model treats protection as immediate, while in the field it takes about 2 weeks to build.
Cases = new sheep & goat infections acquired in the flock (S_X → E_X plus breakthrough V_X → E_X). Restocked animals that arrive already exposed or infected (α₂·B_X, α₃·B_X) are imports and are not counted. Peak day = day with the most infected sheep & goats (I_X). Vaccination effectiveness = cases prevented ÷ cases without vaccination.
Risk: High if 5% or more of sheep & goats are infected over the period, or 1% or more while cases are still rising. Medium if 1% or more, or cases are still rising. Low otherwise. "Still rising" means the peak comes after day 0 and is at least 10% above today's infected count.
📊 Year-wise Simulation Validation — District
Each year is predicted by the RK4 model from earlier years only, then compared with the PPR attacks actually reported. Independent of the parameter section.
District — Jharkhand districts (built-in) or your own file.
State — ICAR-NIVEDI state-wise outbreak series.
ODE parameters (σ, γ₁, γ₂, θ₁, θ₂, δ_X, μ_X, b_X, ω = V_X/N_X) come only from the selected state's ICAR-NIVEDI parameter table — nothing is read from, or written to, the parameter section. β_X is fitted from earlier years' observed attacks.
The first year of a series only seeds the next year, so it is not scored.
How the hindcast validation works (RK4 method)
Validation is independent of the parameter section: it uses only the selected data (attack counts + animal population) and the ICAR-NIVEDI state-wise parameters of that state (Jharkhand for district-level data). For each historical year:
- The year's small ruminant (goat + sheep) population is used as NX.
- The previous year's observed attacks seed IX — the target year is never used as input.
- βX is fitted by RK4 bisection on earlier years only (geometric mean of their calibrated β).
- The full SEIVRBR ODE system is solved with Runge-Kutta 4th order (RK4) for 365 days with adaptive sub-steps.
- Predicted = annual new cases from the RK4 run (cumulative σ·EX) — the same unit as observed attacks. The first year of a series has no previous year and is not scored.
- Rule: T = median of the series' reported (non-zero) years. Reported? = Yes if observed attacks ≥ T; Predicted? = Yes if RK4 predicted ≥ T. Reported Yes & Predicted Yes → YES (TP) · Reported No & Predicted No → YES (TN) · Reported No & Predicted Yes → NO (FP) · Reported Yes & Predicted No → NO (FN).
Metrics: Accuracy = (TP+TN)/n, Sensitivity = TP/(TP+FN), Specificity = TN/(TN+FP), each with a 95% Clopper-Pearson exact binomial CI. MAPE = mean of |Observed − Predicted| / Observed. AIC, McFadden R² and the likelihood-ratio test compare the hindcast YES rate with a 50% coin-flip model.
🛡️ With Control — Intervention Scenario Simulator
| Metric | Without Control | With Control | Change |
|---|---|---|---|
| Adjust control parameters above — comparison updates automatically. | |||
\(\displaystyle\frac{dS_X}{dt} = b_X - \left(\beta_X\frac{I_N}{N_X}S_X * f_{env}\right) - \omega S_X + \alpha_1 B_X - \mu_X S_X + \epsilon V_X\)
\(\displaystyle\frac{dE_X}{dt} = \left(\beta_X\frac{I_N}{N_X}S_X * f_{env}\right) - \sigma E_X + \alpha_2 B_X - \mu_X E_X\)
\(\displaystyle\frac{dI_X}{dt} = \sigma E_X + \alpha_3 B_X - \gamma_2 I_X - (\mu_X + \delta_X)I_X\)
\(\displaystyle\frac{dI_Q}{dt} = \theta_1(\sigma E_X + \alpha_3 B_X) - (\gamma_1 + \gamma_2 + \mu_X + \delta_X)I_Q, \qquad I_N = I_X - I_Q\)
\(\displaystyle\frac{dR_X}{dt} = \gamma_2 I_X - \mu_X R_X + \lambda V_X\)
\(\displaystyle\frac{dV_X}{dt} = \omega S_X - \mu_X V_X - \lambda V_X - \epsilon V_X\)
\(\displaystyle\frac{dB_X}{dt} = \kappa_X - (\alpha_1 + \alpha_2 + \alpha_3)B_X + \mu_X B_X\)
\(\displaystyle\frac{dS_Y}{dt} = b_Y - \beta_{XY}\frac{I_N}{N_X}S_Y * f_{env} - \mu_Y S_Y\)
\(\displaystyle\frac{dI_Y}{dt} = \beta_{XY}\frac{I_N}{N_X}S_Y * f_{env} - \mu_Y I_Y\)
\(\displaystyle\frac{dS_Z}{dt} = b_Z - \beta_{XZ}\frac{I_N}{N_X}S_Z * f_{env} - \mu_Z S_Z\)
\(\displaystyle\frac{dI_Z}{dt} = \beta_{XZ}\frac{I_N}{N_X}S_Z * f_{env} - \mu_Z I_Z\)
\(\displaystyle\frac{dS_X}{dt} = b_X - \left(\beta_X\frac{I_N}{N_X}S_X * f_{env}\right)(1-\Omega_{MR})(1-\vartheta_{FA}) - \omega S_X + \alpha_1 B_X - \mu_X S_X + \epsilon V_X(1-\varphi_{Ve})\)
\(\displaystyle\frac{dE_X}{dt} = \left(\beta_X\frac{I_N}{N_X}S_X * f_{env}\right)(1-\Omega_{MR})(1-\vartheta_{FA}) - \sigma E_X + \alpha_2 B_X(1-\rho_{QR}) - \mu_X E_X\)
\(\displaystyle\frac{dI_X}{dt} = \sigma E_X + \alpha_3 B_X(1-\rho_{QR}) - \gamma_2 I_X - (\mu_X+\delta_X)I_X - C_X I_X - (1+\delta_{OM})(1+\eta\_sr)\,I_X\)
\(\displaystyle\frac{dI_Q}{dt} = \theta_1\left(\sigma E_X + \alpha_3 B_X(1-\rho_{QR})\right) - \left(\gamma_1 + \gamma_2 + \mu_X+\delta_X + C_X + (1+\delta_{OM})(1+\eta\_sr)\right)I_Q, \qquad I_N = I_X - I_Q\)
\(\displaystyle\frac{dR_X}{dt} = \gamma_2 I_X - \mu_X R_X + \lambda V_X(1+\varphi_{Ve})\)
\(\displaystyle\frac{dV_X}{dt} = \omega S_X - \mu_X V_X - \lambda V_X(1+\varphi_{Ve}) - \epsilon V_X(1-\varphi_{Ve})\)
\(\displaystyle\frac{dB_X}{dt} = \kappa_X - (\alpha_1+\alpha_2+\alpha_3)B_X + \mu_X B_X\)
\(\displaystyle\frac{dS_Y}{dt} = b_Y - \beta_{XY}\frac{I_N}{N_X}S_Y(1-\mu_1)(1-\Omega_{MR})(1-\vartheta_{FA}) * f_{env} - \mu_Y S_Y\)
\(\displaystyle\frac{dI_Y}{dt} = \beta_{XY}\frac{I_N}{N_X}S_Y * f_{env} - \mu_Y I_Y\)
\(\displaystyle\frac{dS_Z}{dt} = b_Z - \beta_{XZ}\frac{I_N}{N_X}S_Z(1-\mu_1)(1-\Omega_{MR})(1-\vartheta_{FA}) * f_{env} - \mu_Z S_Z\)
\(\displaystyle\frac{dI_Z}{dt} = \beta_{XZ}\frac{I_N}{N_X}S_Z * f_{env} - \mu_Z I_Z\)
\(\Omega_{MR}\) = Movement restriction
\(\vartheta_{FA}\) = Farmer Awareness
\(\varphi_{Ve}\) = vaccine efficacy
\(\delta_{OM}\) = outbreak management
\(\eta\_sr\) = sero surveillance
\(\rho_{QR}\) = Quarantine
\(C_X\) = culling
\(\mu_1\) = Biosecurity measures
| Metric | Baseline | Minimal (mean±SD) | Moderate (mean±SD) | Maximum (mean±SD) |
|---|---|---|---|---|
| Run the N-Scenario Monte Carlo to see results. | ||||
| Parameter | ODE Effect | Baseline | Minimal | Moderate | Maximum |
|---|