betaFeedback

WorksMathematics

Conformalized Physics-Informed Weak Regression for Parameter Estimation in Epidemic Models

Abstract

Compartment models of infectious diseases are often linear in coefficients that are physical parameters or products or ratios of them. We exploit this with closed-form least squares and equip the estimates with distribution-free uncertainty. Physics-informed regression (PIR) fits the parameters to finite-difference derivatives of the data; we introduce physics-informed weak regression (PIWR), which integrates the model in time instead, needs no derivatives of the data, estimates the initial state jointly and is high-order accurate. To quantify uncertainty we wrap both estimators in split conformal prediction, with a calibration population generated by the physics-based model itself, giving simultaneous intervals for all parameters with a finite-sample coverage guarantee. A residual-adaptive factor, computed without ground truth, scales the intervals to each data set (PIWR-RACC). On the eleven benchmark models of disease-informed neural networks (DINNs), PIWR or PIR-FD6 is one to four orders of magnitude more accurate than the reported DINN results wherever the sampling resolves the dynamics, in about a millisecond per fit instead of minutes to hours of training, and the 90% intervals achieve 87-92% coverage in all 88 settings. On the S3I3R model of the original PIR study, PIWR lowers the reported PIR errors by about three orders of magnitude. On real data from the 1978 boarding-school influenza outbreak, a variable-projection variant gives calibrated 95% intervals that overlap those of a Bayesian analysis. On a time-varying transmission benchmark, a B-spline expansion of beta(t) keeps PIR and PIWR linear; they are more accurate than physics-informed neural networks in three of four cases and comparable in the noisiest, with simultaneous bands for beta(t). The complete conformal calibration takes less than two minutes for every benchmark.

Introduction

Compartment models are the standard language of mathematical epidemiology. They are systems of ordinary differential equations (ODEs) whose coefficients for transmission, recovery, death and transition rates are the quantities of interest. They determine reproduction numbers, peak sizes and the effect of interventions. Estimating them from time series is an inverse problem, and over the last years physics-informed neural networks (PINNs) [1, 2, 3] have become a popular tool for it. An example is the family of disease-informed neural networks (DINNs) of Shaier et al. [4], which identifies the parameters of eleven compartment models, from a three-state SIDR model of COVID-19 to a nine-state host–vector model of Zika, by training a network for each disease. It is reported at the time that training takes from 20 minutes to 91 hours per disease, the search range of every parameter must be prescribed (typically ±1\pm1–10 % around the literature value), and the estimates come without any statement of their uncertainty which limits how much trust we can put into such estimates.

Almost all compartment models share a structure where their right-hand side is linear in a vector of coefficients, each of which is a physical parameter or a product of parameters (for example β0β1\beta_0\beta_1 in a seasonally forced transmission rate β0(1+β1cos⁡2πt\beta_0(1 + \beta_1 \cos2\pi t)). The coefficients then follow from a linear least-squares problem, and the physical parameters from an explicit map back. For such models, Nielsen et al. [5] proposed physics-informed regression (PIR) based on estimating the time derivatives of the states from the data, evaluate the model library at the data, and solve one ordinary least-squares problem. PIR has the same physics-informed ingredient as a PINN, namely, the residual of the governing equations, however, replaces training by a closed-form solve resulting in low computational cost and as a result achieve dramatic improvement over methods such as DINN derived from PINN for the problems considered. The accuracy of PIR is limited by the derivative estimate, which is the weak point whenever the data are coarse in time or noisy.

A point estimate of the parameters obtained through regression analysis is, however, only half of the answer. The estimated coefficients are affected by measurement noise associate with data collection, which a derivative estimate amplifies, e.g. by the truncation error of the finite differences or of the quadrature, by an errors-in-variables bias, since the library is evaluated at noisy states, by practical non-identifiability when the sampling does not resolve the dynamics, and by the inevitable mismatch between a compartment model and a real epidemic. The map ω=h(θ)\omega= h(\theta) can amplify these errors further, for example through ratios of coefficients. Since quantities such as the reproduction number are used to decide on interventions, every estimate needs an honest statement of its uncertainty. Conventional approaches are well established. Nonlinear least squares provides an asymptotic covariance from the linearized model and an assumed noise model [6]; profile likelihoods give confidence intervals and expose non-identifiable parameters [7]; parametric bootstrapping repeats the fit on resampled data [8, 9]; Bayesian inference by Markov chain Monte Carlo [10, 11] or approximate Bayesian computation [12] yields posterior distributions, also for physics-informed neural networks [13]; model discrepancy can be represented explicitly [14], and polynomial chaos expansions propagate parameter uncertainty through epidemic models at a fraction of the cost of Monte Carlo sampling and quantify the sensitivity of the predictions to each parameter [15]. These methods require repeated forward solves or likelihood evaluations, and their intervals are valid only asymptotically or conditionally on the assumed prior and noise model.

We propose to consider the perspective that physics-informed regression offers a different route. The least-squares covariance of PIR and PIWR is available at no cost, but it treats the residual as white noise and ignores the truncation bias and the correlation of the residuals, so it is not a trustworthy uncertainty on its own. Split conformal prediction [16, 17, 18, 19] turns such a heuristic uncertainty into intervals with a finite-sample, distribution-free coverage guarantee, provided that calibration examples with known truth are available. A physics-based model can supply them, because the model can be simulated numerically and the regression methods considered in this study costs about a millisecond. Hence, thousands of synthetic epidemics with known parameters can be passed through exactly the same estimator as the data. All error sources that the simulation contains, including noise, discretization and quadrature errors, the errors-in-variables bias and weak identifiability, are then calibrated jointly, without linearization and without a prior. The resulting guarantee is marginal over the calibration population rather than conditional on the observed data, and it does not cover model errors that the simulations do not contain. Conformalized physics-informed regression therefore complements rather than replaces likelihood-based and Bayesian analyses, and the two can be used together for validation, as we do for real data in § 5.6.

Contributions

This paper makes three contributions related to developing new fast and reliable numerical parameter estimation techniques based on extending the idea of physics-informed regression for parameter-linear models Nielsen et al. [5].

Physics-informed weak regression (PIWR). We integrate the model in time instead of differentiating the data. The integrated equations remain linear in the parameters, contain no derivatives of the data, and are solved jointly for the parameters and the unknown initial state. With cubic-spline quadrature the method is fourth-order accurate in the sampling interval. PIWR is the regression analogue of weak-form identification methods [20, 21] (Messenger and Bortz 2021), here with a known model structure.

Conformal prediction with physics-based models. We wrap PIR and PIWR in a split conformal layer [16, 17, 18, 19] that returns intervals for all parameters of a model simultaneously, with a finite-sample, distribution-free coverage guarantee. A model coefficient has no natural calibration set, since every data set has exactly one true parameter vector. We use the physics-based model itself to generate one: a population of epidemics with known parameters, simulated and processed exactly like the data. The least-squares covariance sets the relative widths of the intervals, the calibration sets their common scale.

Residual-adaptive conformal calibration (RACC). We introduce a residual-adaptive factor that makes the uncertainty intervals of the parameter estimates depend on the individual data set. The relative residual of the regression measures how well the data satisfy the governing equations, grows when the sampling does not resolve the dynamics or the noise is large, and is available without ground truth. Scaling the conformal scores and intervals by a factor that increases with this residual widens the intervals for difficult data sets and narrows them for easy ones, while the finite-sample coverage guarantee is retained because the same factor is applied in calibration. Combined with PIWR we refer to the full pipeline as PIWR-RACC (physics-informed weak regression with residual-adaptive conformal calibration).

We test these methods on all eleven DINN benchmarks with the original data-generating settings, without noise and with 1 % noise, and compare against the DINN results as reported in Shaier et al. [4]. We extend the study with two cases from outside the DINN set: the seven-compartment SIR3R model of Nielsen et al. [5], with their PIR and PINN results as reference, and the real 1978 boarding-school influenza outbreak Anonymous, [23], with the Bayesian analysis in Stan of Grinsz­tajn et al. [11] as reference, and the time-varying transmission benchmark of Mill­evroi et al. (2024), where β(t)\beta(t) is expanded in B-splines and the results are compared with physics-informed neural networks.

Regression framework: parameter-linear epidemic models

To present the regression frameworks used in this study, the basis is that we consider models that an be described as a dynamical system

x˙=f(x,t;ω),(1)\dot{\mathbf{x}}=f(\mathbf{x},t;\boldsymbol{\omega}), \tag*{(1)}

where the the derivative with respect to time is denoted as x˙(t)=dx/dt\dot{\mathbf{x}}(t)=\mathrm{d}\mathbf{x}/\mathrm{d}t, with nn states x(t)∈Rn\mathbf{x}(t)\in\mathbb{R}^{n} and kk physical parameters ω∈Rk\boldsymbol{\omega}\in\mathbb{R}^{k} that can be written as

x˙(t)=A(x(t),t) θ,θ=g(ω)∈Rp,(2)\dot{\mathbf{x}}(t)=A(\mathbf{x}(t),t)\,\boldsymbol{\theta},\qquad\boldsymbol{\theta}=g(\boldsymbol{\omega})\in\mathbb{R}^{p}, \tag*{(2)}

where the library A(x,t)∈Rn×pA(\mathbf{x},t)\in\mathbb{R}^{n\times p} contains no unknowns.

Together with an initial condition x(t0)=x0\mathbf{x}(t_{0})=\mathbf{x}_{0}, (2) is an initial value problem (IVP) on t∈[t0,T]t\in[t_{0},T] with solution x(t;ω,x0)\mathbf{x}(t;\boldsymbol{\omega},\mathbf{x}_{0}). We use it as the model of the data where the measured states are assumed to be this solution plus measurement noise, for some unknown ω\boldsymbol{\omega} and x0\mathbf{x}_{0}. For synthetic benchmarks where data is generated numerically this can hold by construction, however, for real data it is an assumption, and the fitted model reproduces the data only up to noise and model error.

The initial state x(t0)\mathbf{x}(t_{0}) is part of the model when stated as an IVP, but not of the physics-informed regression (PIR) Nielsen et al. [5] that uses only the derivatives and needs no x0\mathbf{x}_{0}. The derivative may be approximated by finite differences, however, these are prone to noise when applied to real data and needs mitigation (fx. via filtering time series of the data) as explained in Nielsen et al. [5]. However, given the initial state, the general solution to the IVP may be found by temporal integration stated as

x(t)=x(t0)+∫t0tf(x,t;ω) dt.(3)\mathbf{x}(t)=\mathbf{x}(t_{0})+\int_{t_{0}}^{t}f(\mathbf{x},t;\boldsymbol{\omega})\,\mathrm{d}t. \tag*{(3)}

This formulation motivates a new physics-informed weak regression (PIWR) method that can estimate the initial condition x0x_0 jointly with θ\theta (section 3.2), so that the noise of the first sample does not enter every equation. Then the model may still be formulated as linear in the coefficient vector θ\theta, while the map g:Rk→Rpg:\mathbb{R}^{k}\to\mathbb{R}^{p} from the physical parameters to the coefficients may be nonlinear. We assume a left inverse h:Rp→Rkh:\mathbb{R}^{p}\to\mathbb{R}^{k} with h(g(ω))=ωh(g(\omega))=\omega to be able to recover coefficients. This requires p≥kp\geq k and for p>kp>k the coefficients satisfy p−kp-k constraints (section 5.6). Known terms of the model enter as an offset,

x˙(t)=f0(x,t)+A(x,t)θ,(4)\dot{x}(t)=f_0(x,t)+A(x,t)\theta, \tag*{(4)}

and are subtracted from the data side of the regression. In the simplest case θ=ω\theta=\omega. In many models (4) the right-hand side is nonlinear in ω\omega but linear in products or ratios of parameters, and then θ\theta collects these products and ω=h(θ)\omega=h(\theta) is recovered in closed form. The structure also exposes identifiability: two parameters that enter only as a product correspond to a single column of AA and cannot be separated by any method. One of them is then fixed. All eleven models, their coefficient vectors and the fixed parameters are given in section A and summarized in table 1.

The framework presented is general. Let’s consider two worked examples to understand how to formulate regression problems for parameter estimation.

Worked example: COVID-19 SIDR model. The first DINN benchmark is the SIDR model with transmission rate α\alpha, recovery rate β\beta, death rate γ\gamma and known population N=59⋅106N=59\cdot10^6,

ddt[SIDR]=[−SI/N00SI/N−I−I00I0I0][αβγ],(5)\frac{d}{dt} \begin{bmatrix} S\\ I\\ D\\ R \end{bmatrix} = \begin{bmatrix} -SI/N & 0 & 0\\ SI/N & -I & -I\\ 0 & 0 & I\\ 0 & I & 0 \end{bmatrix} \begin{bmatrix} \alpha\\ \beta\\ \gamma \end{bmatrix}, \tag*{(5)}

i.e. S˙=−αSI/N\dot{S}=-\alpha SI/N, I˙=αSI/N−(β+γ)I\dot{I}=\alpha SI/N-(\beta+\gamma)I, D˙=γI\dot{D}=\gamma I, R˙=βI\dot{R}=\beta I. The data are 100 equally spaced samples on [0,500][0,500] days (Δt=5.05\Delta t=5.05 days) of the solution with (α,β,γ)=(0.191,0.05,0.0294)(\alpha,\beta,\gamma)=(0.191,0.05,0.0294) from S0=N−1S_0=N-1, I0=1I_0=1. The outbreak rises and decays within about 100 days, so it is covered by only about 20 samples. We use this example to explain every step below. □

Worked example: a mapped coefficient vector (measles). In the SIDR model every parameter multiplies its own library term, so θ=ω\theta=\omega. This is not the case in general. The seasonally forced measles model of Shaier et al. [4] (section A.10) has the state x=(S,E,I)x=(S,E,I), known population NN, and the parameters ω=(μ,β0,β1,γ,σ)\omega=(\mu,\beta_0,\beta_1,\gamma,\sigma) (birth and death rate, mean transmission rate and its seasonal amplitude, recovery rate, and a progression parameter), with the transmission rate β(t)=β0(1+β1cos⁡2πt)\beta(t)=\beta_0(1+\beta_1\cos2\pi t). The equations S˙=μ(N−S)−β(t)SI/N\dot{S}=\mu(N-S)-\beta(t)SI/N, E˙=β(t)SI/N−μE\dot{E}=\beta(t)SI/N-\mu E and I˙=σE−(μ+γ)I\dot{I}=\sigma E-(\mu+\gamma)I contain the products β0β1\beta_0\beta_1 and μσ\mu\sigma, so they are nonlinear in ω\omega. Expanding β(t)SI/N=β0SI/N+β0β1cos⁡(2πt)SI/N\beta(t)SI/N=\beta_0SI/N+\beta_0\beta_1\cos(2\pi t)SI/N and treating each product as one coefficient gives the parameter-linear form (2),

ddt[SEI]=[N−S−SI/N−cos⁡(2πt)SI/N0000SI/Ncos⁡(2πt)SI/N−E00−I000E−I][μβ0β0β1μσσγ],(6)\frac{d}{dt} \begin{bmatrix} S\\ E\\ I \end{bmatrix} = \begin{bmatrix} N-S & -SI/N & -\cos(2\pi t)SI/N & 0 & 0 & 0\\ 0 & SI/N & \cos(2\pi t)SI/N & -E & 0 & 0\\ -I & 0 & 0 & 0 & E & -I \end{bmatrix} \begin{bmatrix} \mu\\ \beta_0\\ \beta_0\beta_1\\ \mu\sigma\\ \sigma\\ \gamma \end{bmatrix}, \tag*{(6)}

with a library that depends explicitly on time through the known or assumed forcing. The coefficient map and its left inverse are

θ=g(ω)=(μ, β0, β0β1, μσ, σ, γ)∈R6,\theta=g(\omega)=(\mu,\ \beta_0,\ \beta_0\beta_1,\ \mu\sigma,\ \sigma,\ \gamma)\in\mathbb{R}^{6},
ω=h(θ)=(ϑ1, ϑ2, ϑ3/ϑ2, ϑ6, ϑ5),(7)\omega=h(\theta)=(\vartheta_1,\ \vartheta_2,\ \vartheta_3/\vartheta_2,\ \vartheta_6,\ \vartheta_5), \tag*{(7)}

where ϑc\vartheta_c denotes the cc-th entry of θ\theta. The regression problem is then formulated to be solved for the six coefficients, and the five physical parameters follow from h(θ)h(\theta). For example, the seasonal amplitude is the ratio β1=ϑ3/ϑ2\beta_1=\vartheta_3/\vartheta_2. Since p=6>k=5p=6>k=5, the coefficients satisfy one constraint, ϑ4=ϑ1ϑ5\vartheta_4=\vartheta_1\vartheta_5, which the linear regression does not impose, and hh simply does not use ϑ4\vartheta_4. The uncertainty of θ^\hat{\theta} is carried through h(θ)h(\theta) by the delta method (19) (section 3.3). The example serves only to explain how a mapped coefficient vector is formulated. □

In the following, the physics-informed regression methods is explained with the SIDR model, and the measles results are given in section A.10.

References

  1. [1]M. Raissi, P. Perdikaris, and G. E. Karniadakis. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. Journal of Computational Physics, 378:686–707, 2019. doi: 10.1016/j.jcp.2018.10.045.DOI
  2. [2]G. E. Karniadakis, I. G. Kevrekidis, L. Lu, P. Perdikaris, S. Wang, and L. Yang. Physics-informed machine learning. Nature Reviews Physics, 3(6):422–440, 2021. doi: 10.1038/s42254-021-00314-5.DOI
  3. [3]S. Cuomo, V. S. Di Cola, F. Giampaolo, G. Rozza, M. Raissi, and F. Piccialli. Scientific machine learning through physics–informed neural networks: Where we are and what’s next. Journal of Scientific Computing, 92(3):88, 2022. doi: 10.1007/s10915-022-01939-z.DOI
  4. [4]S. Shaier, M. Raissi, and P. Seshaiyer. Data-driven approaches for predicting spread of infectious diseases through DINNs: Disease informed neural networks. Letters in Biomathematics, 8(1):71–105, 2022. arXiv:2110.05445.arxiv.org/abs/2110.05445
  5. [5]J. S. Nielsen, M. G. Jacobsen, A. B. Olson, M. P. Sørensen, and A. P. Engsig-Karup. Physics-informed regression: Parameter estimation in parameter-linear nonlinear dynamic models. Preprint: arXiv:2508.19249, 2025.arxiv.org/abs/2508.19249
  6. [6]D. M. Bates and D. G. Watts. Nonlinear Regression Analysis and Its Applications. Wiley, New York, 1988. doi: 10.1002/9780470316757.DOI
  7. [7]A. Raue, C. Kreutz, T. Maiwald, J. Bachmann, M. Schilling, U. Klingmüller, and J. Timmer. Structural and practical identifiability analysis of partially observed dynamical models by exploiting the profile likelihood. Bioinformatics, 25(15):1923–1929, 2009. doi: 10.1093/bioinformatics/btp358.
  8. [8]B. Efron. Bootstrap methods: another look at the jackknife. The Annals of Statistics, 7(1):1–26, 1979. doi: 10.1214/aos/1176344552.DOI
  9. [9]G. Chowell. Fitting dynamic models to epidemic outbreaks with quantified uncertainty: a primer for parameter uncertainty, identifiability, and forecasts. Infectious Disease Modelling, 2(3):379–398, 2017. doi: 10.1016/j.idm.2017.08.001.DOI
  10. [10]B. Carpenter, A. Gelman, M. D. Hoffman, D. Lee, B. Goodrich, M. Betancourt, M. Brubaker, J. Guo, P. Li, and A. Riddell. Stan: a probabilistic programming language. Journal of Statistical Software, 76(1):1–32, 2017. doi: 10.18637/jss.v076.i01.DOI
  11. [11]L. Grinsztajn, E. Semenova, C. C. Margossian, and J. Riou. Bayesian workflow for disease transmission modeling in Stan. Statistics in Medicine, 40(27):6209–6234, 2021. doi: 10.1002/sim.9164.DOI
  12. [12]T. Toni, D. Welch, N. Strelkowa, A. Ipsen, and M. P. H. Stumpf. Approximate Bayesian computation scheme for parameter inference and model selection in dynamical systems. Journal of the Royal Society Interface, 6(31):187–202, 2009. doi: 10.1098/rsif.2008.0172.DOI
  13. [13]L. Yang, X. Meng, and G. E. Karniadakis. B-PINNs: Bayesian physics-informed neural networks for forward and inverse PDE problems with noisy data. Journal of Computational Physics, 425:109913, 2021. doi: 10.1016/j.jcp.2020.109913.DOI
  14. [14]M. C. Kennedy and A. O’Hagan. Bayesian calibration of computer models. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 63(3):425–464, 2001. doi: 10.1111/1467-9868.00294.DOI
  15. [15]B. C. S. Jensen, A. P. Engsig-Karup, and K. Knudsen. Efficient uncertainty quantification and variance-based sensitivity analysis in epidemic modelling using polynomial chaos. Mathematical Modelling of Natural Phenomena, 17:8, 2022. doi: 10.1051/mmnp/2022014.DOI
  16. [16]V. Vovk, A. Gammerman, and G. Shafer. Algorithmic Learning in a Random World. Springer, New York, 2005. doi: 10.1007/b106715.DOI
  17. [17]G. Shafer and V. Vovk. A tutorial on conformal prediction. Journal of Machine Learning Research, 9(12):371–421, 2008.arxiv.org/abs/0706.3188
  18. [18]J. Lei, M. G’Sell, A. Rinaldo, R. J. Tibshirani, and L. Wasserman. Distribution-free predictive inference for regression. Journal of the American Statistical Association, 113(523):1094–1111, 2018. doi: 10.1080/01621459.2017.1307116.DOI
  19. [19]A. N. Angelopoulos and S. Bates. Conformal prediction: A gentle introduction. Foundations and Trends in Machine Learning, 16(4):494–591, 2023. doi: 10.1561/2200000101.DOI
  20. [20]J. M. Varah. A spline least squares method for numerical parameter estimation in differential equations. SIAM Journal on Scientific and Statistical Computing, 3(1):28–46, 1982. doi: 10.1137/0903003.DOI
  21. [21]J. O. Ramsay, G. Hooker, D. Campbell, and J. Cao. Parameter estimation for differential equations: a generalized smoothing approach. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 69(5):741–796, 2007. doi: 10.1111/j.1467-9868.2007.00610.x.DOI
  22. [23]Anonymous. Influenza in a boarding school. British Medical Journal, 1(6112):587, 1978.
  23. [24]C. Millevoi, D. Pasetto, and M. Ferronato. A physics-informed neural network approach for compartmental epidemiological models. PLoS Computational Biology, 20(9):e1012387, 2024. doi: 10.1371/journal.pcbi.1012387.DOI
  24. [25]G. H. Golub and V. Pereyra. The differentiation of pseudo-inverses and nonlinear least squares problems whose variables separate. SIAM Journal on Numerical Analysis, 10(2):413–432, 1973. doi: 10.1137/0710036.DOI
  25. [26]P. H. C. Eilers and B. D. Marx. Flexible smoothing with B-splines and penalties. Statistical Science, 11(2):89–121, 1996. doi: 10.1214/ss/1038425655.DOI
  26. [27]L. Petzold. Automatic selection of methods for solving stiff and nonstiff systems of ordinary differential equations. SIAM Journal on Scientific and Statistical Computing, 4(1):136–148, 1983. doi: 10.1137/0904010.DOI

Paper details

vlnc:W_m4khp5hx
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 1

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

generative AI tools

View statement
Looking for related papers…
Contents