Abstract: Time-series classification is often hindered by intra-class variability, where temporal shifts and scaling distortions make standard distance metrics unreliable. This paper presents Invariant Factorization (INFA), a framework that learns a latent "vocabulary" of patterns for a dataset. By decomposing series into these patterns and aggregating their membership weights, INFA creates a representation invariant to common distortions. Experimental results across 43 standard datasets show that INFA significantly outperforms existing state-of-the-art methods.
The Challenge of Intra-Class Variability
Standard classifiers often struggle with time-series data because they rely on point-to-point comparisons. In real-world scenarios, such as medical ECGs or sensor data, critical patterns may shift in time or vary in duration. If a defining feature occurs even slightly later in one recording than another, standard Euclidean distance metrics fail to recognize the similarity. While Dynamic Time Warping (DTW) addresses some of these issues by aligning series, it is computationally intensive and may still struggle with complex scaling and noise.
The INFA Framework
The authors propose INFA to learn a robust, invariant representation by treating a time series as a collection of overlapping segments composed of hidden, or latent, patterns. The process begins by segmenting time series using sliding windows. Each segment is then factorized into a set of $K$ learned latent patterns ($P$) and their corresponding membership weights ($D$). Unlike methods that select existing segments as a dictionary, INFA learns these patterns through a constrained optimization problem, allowing it to discover idealized structures.
The final feature vector for a time series is constructed by summing these membership weights across all segments, effectively creating a "bag-of-patterns." This aggregation ensures that the exact timing of a pattern does not affect the final classification, providing inherent shift invariance. Scale invariance is further achieved by repeating the process across multiple window sizes and concatenating the resulting features.
Experimental Evaluation and Results
INFA was tested on the UCR Time Series Classification Archive, encompassing 43 datasets from diverse domains including medicine, astronomy, and industrial sensing. The method was compared against six leading baselines, including TSBF, DTW, and Shapelets.
INFA demonstrated dominant performance, securing 19.33 absolute wins—more than double the nearest competitor (TSBF with 9 wins). Statistical analysis via the Wilcoxon Signed-Rank test confirmed that INFA's improvements were significant ($p < 0.05$) across all comparisons.
Beyond accuracy, INFA showed superior scalability. On the large StarLightCurves dataset, it completed processing in 48.4 hours, nearly half the time required by DTW (87 hours). This efficiency makes it a viable candidate for massive time-series archives.
Conclusion
INFA represents a significant step forward in time-series representation learning. By moving from fixed-segment selection to learning latent patterns through soft-membership factorization, it provides a nuanced and robust feature set for classification. While the current implementation uses a standard polynomial kernel SVM, future research may explore how these invariant representations pair with modern deep learning architectures or automated hyperparameter tuning.
Summary updated