Bayesian Modeling For Infectious Diseases Using PyMC3
Bayesian Modeling For Infectious Diseases Using PyMC3
Institute
African Institute for Mathematical Sciences Cameroon
Joseph Romaric Cheuteu Tazopap Diseases Bayesian Modeling November 14, 2024 1 / 31
Table of Contents
1 Context
7 Acknowledgement
Joseph Romaric Cheuteu Tazopap Diseases Bayesian Modeling November 14, 2024 2 / 31
Context
Context
Joseph Romaric Cheuteu Tazopap Diseases Bayesian Modeling November 14, 2024 3 / 31
Context
Context
Joseph Romaric Cheuteu Tazopap Diseases Bayesian Modeling November 14, 2024 4 / 31
Problematic and Objectives
Joseph Romaric Cheuteu Tazopap Diseases Bayesian Modeling November 14, 2024 5 / 31
Problematic and Objectives
Problematic
How Bayesian modeling using PyMC3 we help us to understand an Infectious
Disease such as COVID-19?
General Objective
Estimation of parameters of an SEIR model type of COVID-19 by considering
vaccination, asymptomatic and hospitalization.
Specific Objectives
1 Provide a comprehensive overview of Bayesian inference.
2 Implement a Mathematical model that incorporates the dynamics of
COVID-19 transmission.
3 Implement Bayesian models in PyMC3 to estimate crucial epidemiological
parameters of COVID-19.
Joseph Romaric Cheuteu Tazopap Diseases Bayesian Modeling November 14, 2024 6 / 31
Bayesian Modeling and PyMC3
Joseph Romaric Cheuteu Tazopap Diseases Bayesian Modeling November 14, 2024 7 / 31
Bayesian Modeling and PyMC3
Bayes’s Formula
Let D1 , · · · , Dn be a set of events associated with a sample space Ω, where all
the events have non-zero probability of occurrence and they form a partition
of Ω. Let B be any event which occurs with D1 or · · · or Dn , then on the
probabilistic space (Ω, A, P) we have:
P(Di )P(B/Di )
P(Di /B) = PB (Di ) = . (1)
∑
n
P(Dk )P(B/Dk )
k=1
Joseph Romaric Cheuteu Tazopap Diseases Bayesian Modeling November 14, 2024 8 / 31
Bayesian Modeling and PyMC3
P(D/θ)P(θ) P(D/θ)P(θ
P(θ/D) = =∫ . (2)
P(D)
P(D/θ)P(θ)dθ
θ
Joseph Romaric Cheuteu Tazopap Diseases Bayesian Modeling November 14, 2024 9 / 31
Bayesian Modeling and PyMC3
Joseph Romaric Cheuteu Tazopap Diseases Bayesian Modeling November 14, 2024 10 / 31
Bayesian Modeling and PyMC3
Joseph Romaric Cheuteu Tazopap Diseases Bayesian Modeling November 14, 2024 11 / 31
Bayesian Modeling and PyMC3
Metropolis-Hastings algorithm
PyMC3
1 Probabilistic programming
2 Model specification
3 Automatic differentiation
4 Markov Chain Monte Carlo
5 Variational inference
Joseph Romaric Cheuteu Tazopap Diseases Bayesian Modeling November 14, 2024 13 / 31
Application: Mathematical Model of COVID-19
Joseph Romaric Cheuteu Tazopap Diseases Bayesian Modeling November 14, 2024 14 / 31
Application: Mathematical Model of COVID-19
Joseph Romaric Cheuteu Tazopap Diseases Bayesian Modeling November 14, 2024 15 / 31
Application: Mathematical Model of COVID-19
Positivity of solutions
∀t > 0 (S(t), V1 (t), V2 (t), E(t), A(t), I(t), H(t), R(t)) ∈ R8+ .
Boundedness of Trajectories
Then the domain
{( ) ( )}
θ
Ω= S, V1 , V2 , E, A, I, H, R ∈ R8+ , N ≤ max N(0), , (5)
µ
Joseph Romaric Cheuteu Tazopap Diseases Bayesian Modeling November 14, 2024 17 / 31
Application: Mathematical Model of COVID-19
Mathematical Analysis
Disease Free Equilibrium (DFE)
θ(τ + σ + µ)
S∗ = ,
µτ + (σ + µ)(µ + ϕ)
θϕ
V∗1 = ,
µτ + (σ + µ)(µ + ϕ)
θϕσ
V∗2 = ,
(η + µ) [µτ + (σ + µ)(µ + ϕ)]
θϕση
R∗ = .
µ(η + µ) [µτ + (σ + µ)(µ + ϕ)]
Here, we use the next generation matrix of Van Den Driessche and Watmough
methods.
R0 = ρ(FV−1 ). (6)
We obtain:
R0 = RA + RI + RH . (7)
where,
αS∗ βA ϵk5 αS∗ βI ϵ(ψk5 k7 + κk6 )
RA = , R I = , and
N∗ k4 k6 N∗ k4 k6 k8
αS∗ βH ϵωk9 (ψk5 k7 + κk6 ) θ
RH = ∗
, with N∗ = .
N k4 k6 k8 k10 µ
where k4 = ϵ + µ, k5 = 1 − κ, k6 = µ + ψ, k7 = 1 − ρ, k8 = µ + δ + ω, k9 =
1 − b and k10 = µ + δ + d.
Joseph Romaric Cheuteu Tazopap Diseases Bayesian Modeling November 14, 2024 19 / 31
Application: Mathematical Model of COVID-19
θ = (βA , βH ).
D = The rolling 7-day average of the number of reported incidences.
Poisson distribution is chosen as the likelihood, meaning that if we have n
reported cases and D = {d1 , · · · , dn }, then
exp(−λi ) × λdi i
f(di ) = . (8)
di !
where λi is assumed to be the model’s answer.
Joseph Romaric Cheuteu Tazopap Diseases Bayesian Modeling November 14, 2024 21 / 31
Application: Mathematical Model of COVID-19
We assume
βA follows the Normal distribution.
βH follows the Lognormal distribution.
where the 2-norm of a vector is denoted by ||·||. NMSE ∈ [−∞, 1], where 1
denotes a perfect fit and −∞ denotes a poor fit.
Joseph Romaric Cheuteu Tazopap Diseases Bayesian Modeling November 14, 2024 22 / 31
Results and Discussion
Joseph Romaric Cheuteu Tazopap Diseases Bayesian Modeling November 14, 2024 23 / 31
Results and Discussion
Joseph Romaric Cheuteu Tazopap Diseases Bayesian Modeling November 14, 2024 24 / 31
Results and Discussion
Joseph Romaric Cheuteu Tazopap Diseases Bayesian Modeling November 14, 2024 25 / 31
Results and Discussion
(e)
(f)
Figure: (e) Posterior distribution of βA and (f) Posterior distribution of βH .
Joseph Romaric Cheuteu Tazopap Diseases Bayesian Modeling November 14, 2024 26 / 31
Results and Discussion
Figure: Cumulative data and Model data simulated with estimated parameters.
Joseph Romaric Cheuteu Tazopap Diseases Bayesian Modeling November 14, 2024 27 / 31
Conclusion and Perspectives
Joseph Romaric Cheuteu Tazopap Diseases Bayesian Modeling November 14, 2024 28 / 31
Conclusion and Perspectives
Conclusion
We presented Bayesian statistical inference (Bayesian statistics, Bayesian
inference, Bayesian approach to data analysis).
We took from the literature a mathematical model of COVID-19 with
double-dose vaccination.
We estimated the parameters of the model by using PyMC3 and real data,
we obtain NMSE=0.88 which showed the model fits accurately the real
data.
Perspectives
We plan to extend this model to incorporate granular data.
We will apply Bayesian statistical inference (MCMC) method and other
estimation methods such as the Least Square approximation method to
compare the results.
Joseph Romaric Cheuteu Tazopap Diseases Bayesian Modeling November 14, 2024 29 / 31
Acknowledgement
Acknowledgement
Joseph Romaric Cheuteu Tazopap Diseases Bayesian Modeling November 14, 2024 30 / 31
Acknowledgement
Acknowledgment
Joseph Romaric Cheuteu Tazopap Diseases Bayesian Modeling November 14, 2024 31 / 31