SMKC: Sketch Based Kernel Correlation Images for Variable Cardinality Time Series Anomaly Detection
Haokun Zhou
TL;DR
This paper tackles anomaly detection in multivariate time series under dynamic sensor cardinality, where channels may appear or disappear across windows. It introduces SMKC, a two-stage framework that first hashes variable-cardinality inputs into fixed-width state sequences and then builds a six-channel kernel image that encodes global temporal structure via cosine and robust log-distance measures; a kernel-aware transformer with masked reconstruction and teacher–student prediction learns normal patterns, while a training-free RandProj-kNN detector demonstrates strong cold-start performance. The key findings are that robust log-distance channels dominate the discriminative signal, cosine channels alone are insufficient, and linear-in-L scalable HYB variants (bandfeat/anchorfeat) enable efficient deployment at scale. Practically, SMKC enables robust variable-cardinality anomaly detection with a continuum of deployment options, from immediate training-free detection to fully learned representations with validation-time fusion, suitable for resource-constrained environments. The results suggest representation design—via permutation-invariant hashing and kernel-based imagery—offers a primary lever for handling sensor churn, with self-supervised learning and calibration providing added gains when resources permit.
Abstract
Conventional anomaly detection in multivariate time series relies on the assumption that the set of observed variables remains static. In operational environments, however, monitoring systems frequently experience sensor churn. Signals may appear, disappear, or be renamed, creating data windows where the cardinality varies and may include values unseen during training. To address this challenge, we propose SMKC, a framework that decouples the dynamic input structure from the anomaly detector. We first employ permutation-invariant feature hashing to sketch raw inputs into a fixed size state sequence. We then construct a hybrid kernel image to capture global temporal structure through pairwise comparisons of the sequence and its derivatives. The model learns normal patterns using masked reconstruction and a teacher-student prediction objective. Our evaluation reveals that robust log-distance channels provide the primary discriminative signal, whereas cosine representations often fail to capture sufficient contrast. Notably, we find that a detector using random projections and nearest neighbors on the SMKC representation performs competitively with fully trained baselines without requiring gradient updates. This highlights the effectiveness of the representation itself and offers a practical cold-start solution for resource-constrained deployments.
