DEQ
Inverse SIR model
Uses Python 'minimize' in a system of ODE's.
2025.Feb.22 22:28:47
File to upload (Optional) Such as data_invSIR.xlsx (table of data)
Data table Data (matrix or 'csv').
Activation Vaccine activation time (≤ final time).
Initial guesses Initial guesses for the parameters (α, β, γ, and ν).
Computation mode     Mode ("bounded" ≡ ¬ < 0), and termination tolerance.
Method        Method of integration.
Show values Show graph coordinates.

Performs a regression from given data ('Data table' or Excel), to find the underlying parameters (here, n = 4) in a set of multiple (here, 3) functions of a single variable (t, as usual).

The embedded 3 ODE's can be seen here.

For ease of use, an Excel file is provided (same data) that can be downloaded and uploaded with other data.

This is an application of the Python 'minimize' function, in the 'scipy.optimize' module, a part of the Python 'SciPy' library.

Draws: a plot of the original and the adjusted data; and a plot of the residuals.


Computation structure — A PHP file (this page: 'P-invSIR.php') calls (via 'action=...') an intermediate PHP file ('InvSIR.php'), which (through $_POST) sends the problem data as command line arguments to a Python script. This last does the computing, and makes 'system' call(s) to 'gnuplot', for the final (temporary) webpage.

Advantage is taken from: PHP, for the web page; Python for the numerical segment; and 'gnuplot', for plotting.

Files involved: P-invFIT.php (this one), InvSIR.php, invSIR.py.

Keywords: SIR model, PHP, command line arguments, Python script, gnuplot.

References: Plate: InvSIR

• (Wikipedia) PHP (from Personal Home Page)

• Python minimize [in Optimization and root finding (scipy.optimize)], accessed 14-Nov-2024.

• BIBM 2024, 2024 IEEE International Conference on Bioinformatics and Biomedicine, Lisbon (Portugal), 03–06 December 2024.

• 1845-11-14: Dini, Ulisse (†1918-10-28, 72 yrs.).

 
 
Valid HTML 5! IST http://web.ist.utl.pt/~ist11038/compute/imulossvac/P-invSIR.php
Created: 2024-11-11 — Last modified: 2024-11-26