Multi-Site Hidden Markov Model (Gold et al., 2024)¶
| Type | Parametric |
| Resolution | Annual |
| Sites | Multisite |
Overview¶
The Multi-Site HMM generates synthetic streamflow across multiple sites by coupling a hidden Markov chain of discrete hydrologic regimes (e.g., dry and wet states) with state-specific multivariate Gaussian emission distributions. Temporal persistence arises from the Markov transition structure, while spatial dependence is captured by the full covariance matrix within each state. The model is well suited for representing drought dynamics and spatially compounding water scarcity, where distinct hydroclimatic regimes produce qualitatively different joint flow distributions.
Notation¶
| Symbol | Description |
|---|---|
| \(\mathbf{Q}_t \in \mathbb{R}^S\) | Observed annual flow vector at time \(t\) across \(S\) sites |
| \(\hat{\mathbf{Q}}_t\) | Synthetic annual flow vector at time \(t\) |
| \(\mathbf{Y}_t \in \mathbb{R}^S\) | Log-transformed flow vector, \(Y_{t,s} = \ln(Q_{t,s} + \delta)\) |
| \(K\) | Number of hidden states |
| \(s_t \in \{1, \ldots, K\}\) | Hidden state at time \(t\) |
| \(\boldsymbol{\mu}_k \in \mathbb{R}^S\) | Emission mean vector for state \(k\) |
| \(\boldsymbol{\Sigma}_k \in \mathbb{R}^{S \times S}\) | Emission covariance matrix for state \(k\) |
| \(\mathbf{A} \in \mathbb{R}^{K \times K}\) | Transition probability matrix, \(A_{ij} = P(s_{t+1} = j \mid s_t = i)\) |
| \(\boldsymbol{\pi} \in \mathbb{R}^K\) | Stationary distribution of the Markov chain |
| \(\delta\) | Additive offset before log transform (default 1.0) |
| \(N\) | Number of years in the historical record |
Formulation¶
Model Structure¶
The model defines a discrete-time hidden Markov process with \(K\) states. The state sequence \(\{s_t\}\) evolves according to the transition matrix \(\mathbf{A}\):
Conditional on the hidden state \(s_t = k\), the log-transformed flow vector is drawn from a multivariate Gaussian:
States are ordered by the mean of the first site so that state 1 corresponds to the driest regime and state \(K\) to the wettest.
Parameter Estimation¶
All parameters \(\{\boldsymbol{\mu}_k, \boldsymbol{\Sigma}_k, \mathbf{A}\}\) are estimated jointly via the Baum-Welch (Expectation-Maximization) algorithm on the log-transformed observations \(\{\mathbf{Y}_t\}\):
- E-step: Compute state posterior probabilities using the forward-backward algorithm.
- M-step: Update emission means, covariances, and transition probabilities to maximize the expected log-likelihood.
The covariance structure may be full (\(S(S+1)/2\) free parameters per state), diagonal (\(S\) parameters), or spherical (1 parameter). Full covariance preserves inter-site spatial correlations within each regime.
Stationary Distribution¶
The stationary distribution \(\boldsymbol{\pi}\) satisfies \(\boldsymbol{\pi}^\top \mathbf{A} = \boldsymbol{\pi}^\top\) with \(\sum_k \pi_k = 1\). It is computed as the normalized eigenvector of \(\mathbf{A}^\top\) corresponding to eigenvalue 1:
and provides the initial state distribution for generation.
Synthesis Procedure¶
- Draw the initial state from the stationary distribution: \(s_1 \sim \text{Categorical}(\boldsymbol{\pi})\).
- For each subsequent year \(t = 2, \ldots, T\), sample the next state from the transition row:
- For each year \(t\), draw the log-transformed flow vector from the state-specific emission:
- Back-transform: \(\hat{Q}_{t,s} = \exp(Y_{t,s}) - \delta\), then enforce non-negativity.
Statistical Properties¶
The model captures regime-dependent multivariate distributions, preserving the distinct mean levels, variances, and spatial correlation structures associated with each hydroclimatic state. Temporal persistence is governed by the diagonal elements of the transition matrix (state self-transition probabilities), which determine the expected duration of dry and wet regimes.
Spatial correlations are preserved within each state through the full covariance matrices. However, the marginal distributions of the overall mixture are constrained to be a weighted sum of log-normals, which may not match the true marginals exactly. Higher-order temporal dependence (lag \(> 1\)) is not explicitly modeled; any apparent longer-memory structure arises solely from the state persistence. The model assumes stationarity of the transition dynamics.
Limitations¶
- First-order Markov assumption; multi-year drought persistence depends entirely on state self-transition probabilities.
- Full covariance estimation becomes expensive and data-hungry for more than roughly 20 sites.
- EM algorithm may converge to local optima; results can vary across random initializations.
- Requires approximately 20+ years for 2 states and 50+ years for additional states.
- Log-normal emissions may not capture heavy-tailed or multi-modal within-state behavior.
References¶
Primary: Gold, D.F., Reed, P.M., and Gupta, R.S. (2024). Exploring the spatially compounding multi-sectoral drought vulnerabilities in Colorado's West Slope river basins. Earth's Future. https://doi.org/10.1029/2024EF004841
See also: - Rabiner, L.R. (1989). A tutorial on hidden Markov models and selected applications in speech recognition. Proceedings of the IEEE, 77(2), 257-286. - Akintug, B., and Rasmussen, P.F. (2005). A Markov switching model for annual hydrologic time series. Water Resources Research, 41(9).
Implementation: src/synhydro/methods/generation/parametric/multisite_hmm.py