Broadly Applicable Approximate MCMC for Switching Stochastic Differential Equations Using Uniformization and Time-Conditioned Factorized Neural Likelihood Estimation
Organizations: Waseda University · National Institute of Advanced Industrial Science and Technology · Nippon Medical School
Abstract
Switching stochastic differential equations (SSDEs) describe continuous-time dynamics whose parameters switch according to a latent regime process that follows a continuous-time Markov chain (CTMC). By allowing dynamics to change between regimes, SSDEs represent heterogeneous system behavior and have been applied across diverse fields. However, Bayesian inference for SSDEs remains difficult, and existing SSDE inference methods have limited applicability, with restrictions such as noise-free observations, univariate states, linear drift, or state-independent diffusion. In this study, we propose an approximate Markov chain Monte Carlo sampler for SSDEs using uniformization and factorized neural likelihood estimation (FNLE), a simulation-based inference method. Uniformization provides an exact representation of the CTMC but requires SDE transition densities over arbitrary time intervals. We approximate these densities by training a time-conditioned FNLE model. The resulting sampler is broadly applicable to SSDEs without requiring analytically tractable transition densities. In synthetic-data experiments, our method recovered regime paths and parameters for three SSDE models for which previous methods have limited applicability. We also applied our method to a real dataset and detected a regime transition.
Figures & tables
| Method | Observation error | Nonlinear drift | State-dependent diffusion | Intractable transition density | Multivariate states |
|---|---|---|---|---|---|
| Blackwell et al. [3] | |||||
| Hibbah et al. [13] | |||||
| Köhs et al. [19] | |||||
| Köhs et al. [20] | |||||
| Stumpf-Fétizon et al. [32] | |||||
| Proposed method |
| Model | Observation error | Nonlinear drift | State-dependent diffusion | Intractable transition density | Multivariate states |
|---|---|---|---|---|---|
| Ornstein–Uhlenbeck | |||||
| Lotka–Volterra | |||||
| Gene-expression CLE | |||||
| Susceptible–infected–recovered epidemic model |
Appendix figures & tables13 assets
Supplementary material from the paper’s appendix.
Appendix
| Experiment | ||
|---|---|---|
| Synthetic-data OU (approx. MCMC with Euler–Maruyama FNLE) | 100 | 1.00 |
| Synthetic-data LV | 100 | 1.00 |
| Synthetic-data gene-expression CLE | 25 | 0.25 |
| Synthetic-data susceptible–infected–recovered | 20 | 0.20 |
| Real-data LV | 98 | 0.98 |
| Experiment | Component | Prior |
|---|---|---|
| Synthetic-data OU | scalar state | |
| Synthetic-data LV | predator | |
| Synthetic-data LV | prey | |
| Synthetic-data gene-expression CLE | mRNA | |
| Synthetic-data gene-expression CLE | protein fluorescence | |
| Synthetic-data susceptible–infected–recovered | susceptible |
| Experiment | State path | Parameters |
|---|---|---|
| Synthetic-data OU (exact MCMC) | ||
| Synthetic-data OU (approx. MCMC with exact FNLE) | ||
| Synthetic-data OU (approx. MCMC with Euler–Maruyama FNLE) | ||
| Synthetic-data LV | ||
| Synthetic-data gene-expression CLE | ||
| Synthetic-data susceptible–infected–recovered |
| Experiment | Chains | Sweeps | Burn-in | Retained |
|---|---|---|---|---|
| Synthetic-data OU (exact MCMC) | 4 | 10,000 | 5,000 | 5,000 |
| Synthetic-data OU (approx. MCMC with exact FNLE) | 4 | 10,000 | 5,000 | 5,000 |
| Synthetic-data OU (approx. MCMC with Euler–Maruyama FNLE) | 4 | 10,000 | 5,000 | 5,000 |
| Synthetic-data LV | 4 | 10,000 | 5,000 | 5,000 |
| Synthetic-data gene-expression CLE | 4 | 10,000 | 5,000 | 5,000 |
| Synthetic-data susceptible–infected–recovered | 4 | 10,000 | 5,000 | 5,000 |
| Model | Parameter | Regime 1 | Regime 2 | Structure |
|---|---|---|---|---|
| OU | 0.15 | 0.15 | shared | |
| -1.2 | 1.2 | regime-specific | ||
| 0.05 | 0.05 | shared | ||
| LV | 1.0 | 0.5 | regime-specific | |
| 1.0 | 0.5 | regime-specific | ||
| 1.0 | 0.2 | regime-specific |
| Model | Parameter | Structure | FNLE range | Prior |
|---|---|---|---|---|
| OU | shared | |||
| regime-specific | ||||
| shared | ||||
| LV | regime-specific | |||
| regime-specific | ||||
| regime-specific |
| Parameter | Structure | FNLE range | Prior |
|---|---|---|---|
| regime-specific | |||
| regime-specific | |||
| regime-specific | |||
| regime-specific | |||
| shared | |||
| shared |
| OU sampler | Parameter | Bulk ESS | Tail ESS | |
|---|---|---|---|---|
| Exact MCMC | 1.015 | 198.4 | 1,004.2 | |
| 1.004 | 1,187.8 | 6,199.0 | ||
| 1.005 | 1,478.3 | 5,050.6 | ||
| 1.004 | 1,519.8 | 2,234.7 | ||
| 1.000 | 16,311.0 | 19,035.3 | ||
| 1.000 | 16,972.1 | 18,373.4 |
| Parameter | Bulk ESS | Tail ESS | |
|---|---|---|---|
| 1.006 | 421.2 | 1,090.5 | |
| 1.007 | 406.2 | 777.6 | |
| 1.006 | 395.9 | 973.0 | |
| 1.006 | 385.9 | 771.1 | |
| 1.028 | 217.1 | 893.4 | |
| 1.038 | 143.4 | 301.5 |
| Parameter | Bulk ESS | Tail ESS | |
|---|---|---|---|
| 1.003 | 805.9 | 1,595.1 | |
| 1.001 | 1,274.5 | 3,142.3 | |
| 1.011 | 211.0 | 333.4 | |
| 1.007 | 334.2 | 691.6 | |
| 1.007 | 335.3 | 681.7 | |
| 1.018 | 201.7 | 358.9 |
| Parameter | Bulk ESS | Tail ESS | |
|---|---|---|---|
| 1.019 | 481.9 | 1,013.8 | |
| 1.054 | 61.6 | 338.2 | |
| 1.065 | 66.2 | 485.9 | |
| 1.003 | 645.6 | 1,278.9 | |
| 1.000 | 15,315.1 | 18,870.5 | |
| 1.001 | 10,209.2 | 14,825.5 |
| Parameter | Bulk ESS | Tail ESS | |
|---|---|---|---|
| 1.004 | 442.4 | 987.0 | |
| 1.005 | 929.8 | 909.5 | |
| 1.003 | 466.3 | 1,065.3 | |
| 1.005 | 871.0 | 888.9 | |
| 1.011 | 298.2 | 732.9 | |
| 1.007 | 1,160.2 | 2,167.1 |