Deep Switching State-Space Model (DSSSM)
A recurrent switching state space model that forecasts time series while identifying hidden regimes.
Time series · 1,316 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Time series
- Parameters
- 1.3K
- Operations
- 1,316
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- 2021
- Cited by
- 1 (as of 25 October 2026)
- Authors
- Xiuqin Xu, Hanqiu Peng, Ying Chen
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m15872
- Graph hash
- 829a7389612104db4dff2cd38f236f7c48be5bcbd377b154c31fa7a2b6dee231
- Skeleton hash
- 98ed6dec18d6db41c70a16d672a007e33cf393e5cb694c7cb6368ca732aaa2e4
- Architecture hash
- 089b7303418e64af4c3e61269dc483412517ff13906bd28f2d20a0c97091b799
- Diagram SHA-256
- a49ed55817a57035751f77e8813815e3e41cec4376c804e10cdf0f2c0bf2b6f6
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
DS3M, the Deep Switching State Space Model, is a forecasting model for nonlinear time series that switch irregularly between hidden regimes. It combines a recurrent neural network (RNN) with a nonlinear switching state space model in which regime switching is governed by a Markov chain. Discrete latent variables represent the regimes, and continuous latent variables stand for random driving factors.
The RNN encodes the history of the series, and both the transition of the continuous latent state and the emission of each observation depend on its hidden state. The direct connection from the hidden state to the observation was inspired, the paper says, by skip connections in ResNet, Transformers and SRNN. Training uses approximate variational inference: the discrete variables are marginalized at each time step and the reparameterization trick is applied to the continuous ones.
The paper tests DS3M on simulated and real-world datasets from healthcare, economics, traffic, meteorology and energy. It reports better forecasting accuracy than several comparison models, along with meaningful regime identifications. On the US unemployment rate it separates the series into two regimes, one of which aligns with the 2009 financial crisis and the 2020 Covid-19 pandemic. That unemployment setup, which this model follows, uses two switching states and a continuous latent variable of dimension 2.
Key idea. DS3M combines a recurrent neural network with a nonlinear switching state space model, using discrete latent variables for regimes and continuous latent variables for random driving factors.
- DS3M
- DSSSM
- Deep Switching State Space Model
- regime switching
- time series forecasting
- switching state space model
- nonlinear time series
- regime identification
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{xu2025deepswitchingstatespace,
title={Deep Switching State Space Model (DS$^3$M) for Nonlinear Time Series Forecasting with Regime Switching},
author={Xiuqin Xu and Hanqiu Peng and Ying Chen},
year={2025},
eprint={2106.02329},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2106.02329},
}