Analyzing high-dimensional time series data, such as speech or physiological signals, presents a dual challenge: capturing long-range temporal dependencies while simultaneously identifying meaningful, interpretable segments. While Recurrent Neural Networks (RNNs) excel at modeling complex dynamics, they often function as "black boxes" lacking explicit structural interpretability. Conversely, Hidden Semi-Markov Models (HSMMs) provide clear segmentation and duration modeling but struggle with the non-linear dependencies inherent in high-dimensional data.
This paper introduces the Stochastic Sequential Neural Network (SSNN), a hybrid architecture that bridges this gap. By integrating the discrete structure of HSMMs with the representational power of RNNs, the SSNN enables unsupervised segmentation and labeling of complex sequences.
Methodology
The SSNN architecture is built upon discrete latent variables that represent both the state label ($z_t$) and the remaining duration ($d_t$) of a segment. This structure allows the model to learn an underlying "grammar" of sequences, such as the typical length of a specific activity.
The model consists of two primary components:
- Generative Model: Similar to an HSMM, the state is defined by discrete variables. However, the emission probabilities are governed by an RNN, allowing information to persist across segment boundaries.
- Inference Network: A bi-directional inference network (BiRNN) estimates the posterior distribution of the discrete latent variables by considering both past and future context.
To enable end-to-end training via backpropagation, the authors utilize the Gumbel-Softmax (Concrete) distribution. This provides a differentiable relaxation of the categorical variables, allowing for efficient optimization using Stochastic Gradient Variational Bayes (SGVB).
Experiments and Results
The SSNN was evaluated across several domains, demonstrating its versatility and performance:
- Speech Modeling: On the TIMIT and Blizzard datasets, the SSNN achieved significantly higher log-likelihoods compared to existing stochastic RNNs like the VRNN and SRNN.
- Behavior and Medical Segmentation: In tasks involving human activity (accelerometer data) and Drosophila movement, the SSNN outperformed specialized models like the HDP-HSMM, achieving the lowest error rates (14.70% and 34.77%, respectively).
- Spatial Modeling: When applied to the Multi-MNIST dataset, the model reliably identified the number and location of digits, surpassing the performance of the Deep Recurrent Attentive Writer (DRAW).
Key Insights
The research highlights that bi-directional context is crucial for accurate segment identification, as looking "ahead" helps determine segment boundaries. Furthermore, the use of discrete variables for duration and labels provides structured uncertainty that is more suitable for categorical tasks than continuous latent variables.
Conclusion
The SSNN demonstrates that the representational power of deep learning can be successfully combined with the interpretability of classical probabilistic graphical models. While the model shows state-of-the-art performance, future work may address its sensitivity to the Gumbel-Softmax temperature schedule and the need for manual truncation of maximum segment durations.
Summary updated