Abstract
Many time series can be modeled as a sequence of segments representing high-level discrete states, such as running and walking in a human activity application. Flexible models should describe the system state and observations in stationary "pure-state" periods as well as transition periods between adjacent segments, such as a gradual slowdown between running and walking. However, most prior work assumes instantaneous transitions between pure discrete states. We propose a dynamical Wasserstein barycentric (DWB) model that estimates the system state over time as well as the data-generating distributions of pure states in an unsupervised manner. Our model assumes each pure state generates data from a multivariate normal distribution, and characterizes transitions between states via displacement-interpolation specified by the Wasserstein barycenter. The system state is represented by a barycentric weight vector which evolves over time via a random walk on the simplex. Parameter learning leverages the natural Riemannian geometry of Gaussian distributions under the Wasserstein distance, which leads to improved convergence speeds. Experiments on several human activity datasets show that our proposed DWB model accurately learns the generating distribution of pure states while improving state estimation for transition periods compared to the commonly used linear interpolation mixture models.
Introduction
In time-series modeling, researchers often face a trade-off between continuous state spaces (e.g., Kalman filters) and discrete states (e.g., Hidden Markov Models). Many real-world systems, particularly human activity tracking via wearables, exhibit distinct "pure" states like standing, walking, or running, but with gradual, continuous transitions between them.
Standard discrete-state mixture models rely on linear interpolation during these transitions. This mathematical approach implies that halfway through a transition from walking to running, the model's data-generating distribution becomes multi-modal—effectively assuming the subject is simultaneously walking and running. This "ghosting" effect fails to capture the physical reality of the transition. The Dynamical Wasserstein Barycentric (DWB) model addresses this by physically shifting probability mass, accurately representing intermediate dynamics like jogging through displacement interpolation.
Methodology
The DWB model operates in an unsupervised manner using three core components:
- Emissions via Wasserstein Barycenters: Pure states are modeled as multivariate Gaussians. During transitions, the model computes their Wasserstein barycenter rather than a linear mixture. This acts as "displacement interpolation," smoothly sliding the mean and covariance from one pure state to the next, mirroring physical momentum.
- Simplex-Valued State Dynamics: The system state is a weight vector on a simplex. To model its evolution, we utilize a novel random walk driven by a two-component Beta-mixture prior. This allows the model to alternate between "sticky" stationary dynamics (staying in a pure state) and smooth transition dynamics.
- Riemannian Optimization: To accelerate parameter learning, the model exploits the natural Riemannian geometry of Gaussian distributions under the Wasserstein distance (the Wasserstein-Bures manifold), significantly reducing convergence time compared to standard Euclidean methods.
Experimental Results
The model was evaluated on two human activity datasets: a proprietary Beep Test (BT) dataset and the public Microsoft Research Human Activity (MSR) dataset.
Performance vs. Mixture Models
On the MSR dataset, DWB significantly outperformed standard Gaussian Mixture Models (GMM). DWB achieved an average Wasserstein error ($e_W$) of 0.27, whereas GMMs struggled specifically during transition periods due to the aforementioned ghosting effects.
Efficiency vs. Deep Learning
When compared to a Deep State Space (DSS) neural network with a similar parameter count (~94 parameters), DWB demonstrated superior performance ($e_W$ of 0.27 vs 4.34). While massive DSS models (88,000+ parameters) can achieve better log-likelihoods, DWB remains highly competitive and far more parameter-efficient.
Interpretability
Unlike deep continuous state-space models where the latent space is often opaque, DWB is inherently interpretable. The state vector directly quantifies the blend of pure activities occurring at any moment, eliminating the need for post-hoc clustering.
Conclusion and Future Work
The DWB model provides a robust framework for modeling time series with gradual transitions between discrete states. By respecting the underlying geometry of the data distributions, it achieves high accuracy and interpretability. Future work includes extending the framework to non-Gaussian distributions using non-parametric models and developing a fully probabilistic model to allow for automatic deduction of the optimal number of states ($K$).
Summary updated