Abstract
Despite extensive research, time series classification and forecasting on noisy data remain highly challenging. The main difficulties lie in finding suitable mathematical concepts to describe time series and effectively separate noise from the true signals. Unlike traditional methods treating time series as static vectors or fixed sequences, we propose a novel framework that views each time series, regardless of length, as a realization of a continuous-time stochastic process. This mathematical approach captures dependencies across timestamps and detects hidden, time-varying signals within the noise. However, real-world data often involves multiple distinct dynamics, making it insufficient to model the entire process with a single stochastic model. To address this, we assign each dynamic a unique signature vector and introduce the concept of "most informative timestamps" to infer a sparse approximation of the individual dynamics from these vectors. The resulting model, called Motion Code, includes parameters that fully capture diverse underlying dynamics in an integrated manner, enabling simultaneous classification and forecasting of time series. Extensive experiments on noisy datasets, including real-world Parkinson's disease sensor tracking, demonstrate Motion Code's strong performance against established benchmarks for time series classification and forecasting.
Introduction
Analyzing real-world time series data is notoriously difficult because it is often "messy"—riddled with noise, sampled at irregular intervals, and varying in length. Traditional methods typically treat time series as fixed-length vectors or sequences. These approaches often fail when noise levels are high or when data points are out-of-sync, as they struggle to distinguish between random fluctuations and the true underlying dynamics. Deep learning models like LSTMs or CNNs can capture complex patterns but often require large amounts of clean data and struggle with the higher-order correlations found in small, noisy datasets. Motion Code addresses this gap by providing a mathematical representation that can "see through" noise to recover the continuous-time signal governing a group of related time series.
The Motion Code Framework
Motion Code is based on Sparse Variational Multi-Stochastic Processes Learning. Instead of modeling individual points, it models the stochastic process that generates them. Key innovations include:
- Most Informative Timestamps (MITs): Generalizing the concept of "inducing points" from Gaussian Processes, MITs are a small, learned subset of timestamps that capture the "skeleton" of a signal. They minimize the mismatch between the original noisy data and a reconstructed approximation.
- Motion Codes ($z$): Each distinct dynamic (or class) is assigned a unique $d$-dimensional signature vector. These codes are jointly optimized with the model parameters.
- Joint Learning Framework: The model uses a common mapping to transform motion codes into the most informative timestamps for each process. This allows the model to learn where to look for the most important features across an entire collection of series simultaneously.
- Continuous-Time Modeling: Because it uses kernelized Gaussian Processes, Motion Code naturally handles varying lengths and missing data without needing interpolation or alignment.
Interpretability and Robustness
The learned MITs are highly interpretable. In audio data, these points align with significant phonetic components. In Parkinson's data, they capture the characteristic "twists and turns" of tremors that are otherwise hidden in noisy sensor readings. By treating time as a continuous variable, the model avoids "alignment distortions" common in traditional methods, making it naturally resilient to asynchronous or missing data.
Experimental Evaluation
The model was evaluated on 12 noisy UCR datasets, pronunciation audio recordings, and real-world Parkinson’s Disease sensor data from Apple Watch devices.
Classification
On noisy UCR datasets, Motion Code outperformed 11 established algorithms (including DTW, Rocket, and LSTM-FCN) on more than half the sets. On real-world Parkinson's data, it achieved a classification accuracy of 70.81% for recovery stages, significantly higher than benchmarks like Rocket (61.49%) or catch22 (68.94%).
Forecasting
Motion Code demonstrated superior performance in predicting future values. Unlike most models that specialize in either classification or forecasting, Motion Code performs both. The learned "mean signal" serves as a robust forecast, while the proximity of a new series to learned motion codes provides the classification.
Conclusion
Motion Code offers a robust framework for time series analysis by treating data as continuous-time stochastic processes. While currently reliant on Gaussian assumptions, its ability to extract "skeletons" from noisy, irregular data provides a significant step forward in both interpretability and performance for real-world sensor applications.
Summary updated