Abstract
Linear Dynamical System (LDS) is an elegant mathematical framework for modeling and learning multivariate time series. However, in general, it is difficult to set the dimension of its hidden state space. A small number of hidden states may not be able to model the complexities of a time series, while a large number of hidden states can lead to overfitting. In this paper, we study methods that impose an $\ell_1$ regularization on the transition matrix of an LDS model to alleviate the problem of choosing the optimal number of hidden states. We incorporate a generalized gradient descent method into the Maximum a Posteriori (MAP) framework and use Expectation Maximization (EM) to iteratively achieve sparsity on the transition matrix of an LDS model. We show that our Sparse Linear Dynamical System (SLDS) improves the predictive performance when compared to ordinary LDS on a multivariate clinical time series dataset.
Introduction
Linear Dynamical Systems (LDS) are fundamental tools in time series analysis, particularly for modeling the evolution of hidden internal states that generate observable data. In clinical informatics, LDS can represent the physiological trajectories of patients based on sparse and noisy laboratory results. However, a persistent challenge in applying LDS is the "Goldilocks" problem of hidden state dimensionality. Selecting too few hidden states results in an underfit model that fails to capture the underlying biological complexity. Conversely, selecting too many hidden states leads to overfitting, where the model interprets random noise as signal, degrading its predictive power on unseen data.
In clinical settings, where data is often limited (few observations per patient) and highly variable, manually tuning the number of hidden states for every clinical metric is impractical. This research introduces the Sparse Linear Dynamical System (SLDS), which leverages $\ell_1$ regularization to automatically determine the effective dimensionality of the system, providing a robust solution for multivariate clinical time series prediction.
Methodology: The Sparse Linear Dynamical System (SLDS)
The SLDS framework modifies the standard LDS by encouraging sparsity in the state transition matrix.
Model Formulation
A standard LDS is defined by state-space equations where $z_t$ represents the hidden state and $y_t$ the observation at time $t$. The transition between consecutive hidden states is governed by a transition matrix $A$. To induce sparsity, the authors impose a Laplacian prior on each element of $A$. This is mathematically equivalent to adding an $\ell_1$ regularization term (Lasso) to the log-likelihood objective function.
Optimization via Expectation-Maximization (EM)
Learning parameters in an LDS typically employs the EM algorithm. In the SLDS framework:
- E-Step: Standard Kalman smoothing is utilized to estimate the distribution of the hidden states given the observations.
- M-Step: The objective function becomes non-differentiable due to the $\ell_1$ penalty. To address this, the authors incorporate a generalized gradient descent method using a soft-thresholding function. This operation "shrinks" small, non-essential values in the transition matrix $A$ to exactly zero, effectively pruning unnecessary hidden states.
The paper provides a theoretical guarantee of convergence for this generalized gradient descent approach, achieving a rate of $O(1/k)$, which ensures computational efficiency for practical applications.
Experimental Evaluation
The SLDS was evaluated using real-world clinical data from the PCP Database, which contains electronic health records for 4,486 post-surgical cardiac patients. The study focused on a subset of 600 patients who had at least 10 Complete Blood Count (CBC) tests.
The researchers tracked three multivariate markers: Mean Corpuscular Hemoglobin Concentration (MCHC), Mean Corpuscular Hemoglobin (MCH), and Mean Corpuscular Volume (MCV). To handle irregular testing intervals common in clinical practice, the data was discretized into 8-hour windows using linear interpolation.
Results and Discussion
The performance of SLDS was compared against Ordinary LDS (OLDS) using the Average Mean Absolute Error (AMAE) for future value prediction.
Robustness to Hidden State Dimensionality
A key finding is the stability of SLDS across varying numbers of hidden states. In standard LDS, the error typically follows a U-shaped curve: it decreases as states are added until an optimal point is reached, then increases sharply as overfitting occurs. In contrast, the SLDS error curve is significantly flatter.
As shown in the figure above, while OLDS performance deteriorates rapidly after 5 hidden states, SLDS maintains low error even as the initial state count increases to 15. This suggests that the $\ell_1$ regularization effectively "shuts off" redundant interactions, allowing researchers to initialize models with a generous number of states without the usual penalty of massive overfitting.
Performance in Low-Data Regimes
The advantage of SLDS is most pronounced when training data is scarce. With only 50 training examples, standard models are highly susceptible to noise. The sparsity constraint in SLDS acts as a powerful regularizer, fitting the underlying biological structure rather than random fluctuations.
The table above highlights the quantitative superiority of SLDS. For instance, with 50 training examples and 15 hidden states, OLDS yields an AMAE of 1.2993, whereas SLDS achieves a much lower error of 1.0430. Similar trends are observed in the 100-example scenario, confirming that sparsity-inducing priors consistently improve predictive accuracy.
Conclusion
The Sparse Linear Dynamical System (SLDS) provides a principled approach to automatic model selection in time series analysis. By incorporating $\ell_1$ regularization into the EM framework, the model successfully mitigates overfitting in noisy, small-sample clinical datasets.
Future work may explore more sophisticated regularization techniques, such as Group Lasso, to prune entire rows or columns of the transition matrix, further refining the dimensionality of the hidden state space. Additionally, extending this framework to switching-state LDS could allow for modeling non-linear transitions in patients who move between different physiological states (e.g., from stable to critical).
Summary updated