Abstract
We consider $N$-way data arrays and low-rank tensor factorizations where the time mode is coded as a sparse linear combination of temporal elements from an over-complete library. Our method, Shape Constrained Tensor Decomposition (SCTD) is based upon the CANDECOMP/PARAFAC (CP) decomposition which produces $r$-rank approximations of data tensors via outer products of vectors in each dimension of the data. By constraining the vector in the temporal dimension to known analytic forms which are selected from a large set of candidate functions, more readily interpretable decompositions are achieved and analytic time dependencies discovered. The SCTD method circumvents traditional flattening techniques where an $N$-way array is reshaped into a matrix in order to perform a singular value decomposition. A clear advantage of the SCTD algorithm is its ability to extract transient and intermittent phenomena which is often difficult for SVD-based methods. We motivate the SCTD method using several intuitively appealing results before applying it on a number of high-dimensional, real-world data sets in order to illustrate the efficiency of the algorithm in extracting interpretable spatio-temporal modes.
Introduction
Modern data collection often results in multi-dimensional arrays, or tensors, such as video sequences (spatial dimensions $\times$ time) or socio-economic statistics (category $\times$ location $\times$ time). A common approach to analyzing such data is "flattening" it into a 2D matrix to apply standard techniques like Singular Value Decomposition (SVD) or Principal Component Analysis (PCA). However, this process destroys the inherent multi-way structure and often leads to results that are difficult to interpret physically.
While standard tensor decompositions like CANDECOMP/PARAFAC (CP) preserve this structure, they frequently produce noisy temporal modes. Furthermore, methods like Dynamic Mode Decomposition (DMD) are often limited to Fourier-based (oscillatory) modes, struggling to capture transient or intermittent events. This paper introduces Shape Constrained Tensor Decomposition (SCTD), which addresses these limitations by enforcing sparsity over a library of predefined analytic functions.
Methodology
The SCTD framework is built upon the CP decomposition, which approximates a tensor $\mathcal{X}$ as a sum of $R$ rank-1 components. Each component is an outer product of vectors from each dimension (e.g., $a_j \circ b_j \circ c_j$).
The core innovation of SCTD lies in the treatment of the temporal factor matrix $C$. Instead of allowing arbitrary values, each temporal vector $c_j$ is constrained to be a sparse linear combination of functions from an over-complete library $D$. This library contains a vast array of candidate functions, such as windowed sines, Gaussians, and wrapped cosines.
By applying $\ell_1$ regularization (lasso), the algorithm selects only a few relevant functions from the library. This "shape constraint" acts as a powerful regularizer, making the decomposition robust to noise and ensuring that the resulting modes correspond to recognizable analytic forms. The optimization is performed using a Block Coordinate Ascent (BCA) approach, cycling through updates for each dimension.
Applications and Results
The authors demonstrated the efficacy of SCTD across several domains:
- Simulated Data: In high-noise environments (SNR $\approx$ 0.137), SCTD successfully recovered clean spatial modes and exact analytic temporal expressions. In contrast, standard CP produced noisy results, and DMD failed to separate overlapping spatial structures.
- Houston Crime Data: Analyzing crime counts across beats and hours, SCTD identified distinct "social signatures." For example, it isolated evening theft patterns with much greater clarity than standard methods like CP-APR, providing actionable insights.
- Climate Science (El Niño): When applied to Pacific Sea Surface Temperature data, SCTD effectively isolated the 1997–1998 El Niño event as a single, sparse temporal component, distinguishing it from regular seasonal cycles.
Conclusion
SCTD provides a robust framework for extracting interpretable, analytic patterns from complex multi-dimensional data. By leveraging over-complete libraries and sparse regression, it bridges the gap between purely data-driven decomposition and physically-informed modeling. Future work may involve extending these shape constraints to spatial or categorical dimensions and optimizing library search for even larger datasets.
Summary updated