Abstract
Recent breakthroughs in natural language processing and computer vision, driven by efficient pre-training on large datasets, have enabled foundation models to excel on a wide range of tasks. However, this potential has not yet been fully realised in time series analysis, as existing methods fail to address the heterogeneity in large time series corpora. Prevalent in domains ranging from medicine to finance, time series vary substantially in characteristics such as variate count, inter-variate relationships, temporal patterns, and sampling frequency. To address this, we introduce a novel pre-training paradigm specifically designed to handle time series heterogeneity. We propose a tokeniser with learnable domain signatures, a dual masking strategy, and a normalised cross-correlation loss, enabling our open model for general time series analysis (OTiS) to efficiently learn from large time series corpora. Extensive benchmarking on diverse tasks, such as classification, regression, and forecasting, demonstrates that OTiS outperforms state-of-the-art baselines. Our code and pre-trained weights are available at https://github.com/oetu/otis.
Introduction: The Challenge of Time Series Heterogeneity
In the fields of Natural Language Processing (NLP) and Computer Vision (CV), foundation models like GPT or DINOv2 have revolutionized data processing. However, time series analysis has historically lagged behind due to extreme heterogeneity. Unlike images (pixels) or text (words), time series data from different domains are fundamentally distinct. For instance, an EEG recording might involve 256 variables sampled at 500Hz, whereas weather data might track 21 variables hourly.
Existing attempts to build general models often rely on naive standardization—such as cropping or resampling—which can destroy critical temporal patterns and inter-variable relationships. OTiS (Open model for general Time Series analysis) is designed to ingest any time series from any domain without these destructive preprocessing steps.
The OTiS Framework
The OTiS architecture is built on three novel technical pillars designed to handle diverse data streams:
- Domain-Specific Tokenizer: Instead of a uniform approach, OTiS utilizes a universal patch projector combined with learnable domain signatures. These embeddings allow the model to account for unique domain characteristics, such as the physical arrangement of EEG electrodes or the physiological relationships in ECG leads.
- Dual Masking Strategy: During pre-training, the model employs two masking techniques. Random masking (75% frequency) encourages the model to learn inter-variable relationships. Post-fix masking (25% frequency) hides the latter half of the series, forcing the model to learn temporal causality, which is vital for forecasting.
- Normalized Cross-Correlation (NCC) Loss: While standard models often rely solely on Mean Squared Error (MSE) for point-to-point accuracy, OTiS incorporates an NCC loss term. This addition helps capture "global" temporal patterns and long-range dependencies, ensuring the model understands the overall structural shape of the data.
Large-Scale Pre-training Corpus
The authors compiled a massive pre-training corpus spanning eight distinct domains to ensure broad generalisability:
- Medicine: ECG (MIMIC-IV) and EEG (TDBrain, SEED).
- Natural Sciences: Temperature (DWD) and Weather data.
- Audio: AudioSet (stereo and mono).
- Engineering: Electromechanical vibration signals.
- Finance/Economics: Banking cash withdrawals and exchange rates.
In total, the pre-training data includes over 640,000 samples and 11 billion time points. Evaluation was conducted across 15 different applications covering classification, regression, and forecasting tasks.
Analysis of Latent Representations
One of the most significant findings is that OTiS's learnable embeddings effectively reconstruct physical and mathematical realities:
- Physical Mapping: Visualizing EEG and ECG embeddings using PCA revealed that the model "discovered" the 3D spatial arrangement of scalp electrodes and physiological heart lead relationships without prior biological information.
- Mathematical Understanding: In zero-shot tests, the model demonstrated a continuous understanding of sine wave properties. It correctly organized representations of frequency, amplitude, and phase within its latent space, mirroring their mathematical definitions.
- Cross-Domain Synergy: Pre-training on diverse domains improved performance on specific tasks. For example, a model trained on the full multi-domain corpus outperformed a model trained exclusively on EEG data for EEG-specific tasks, suggesting the existence of "universal" time series features.
Experimental Results
OTiS demonstrated state-of-the-art performance, outperforming 27 baseline models on 10 out of 15 tasks:
- Classification: On the FD-B fault detection benchmark, OTiS-Base achieved 99.24% accuracy, a significant improvement over the previous state-of-the-art (~69%).
- Forecasting: OTiS set new benchmarks in 5 out of 6 forecasting tasks (including ETTh2, Weather, and Electricity), validating the effectiveness of the dual-masking strategy.
- Zero-Shot Capability: Without any fine-tuning, OTiS achieved 95.18% accuracy on Epilepsy detection, highlighting the high generalisability of its pre-trained features.
Discussion and Future Directions
While OTiS represents a major advancement, several challenges remain. Unlike NLP, time series models still lack a "web-scale" automated data pipeline, relying instead on curated datasets. Furthermore, scaling model size (from Base to Huge) did not yield the same exponential gains seen in Large Language Models, suggesting that time series scaling laws may differ or require even larger datasets. Future work will explore multi-modal integration, combining time series with clinical text or medical imaging for enhanced contextual understanding.
Summary updated