Introduction
Traditional time series analysis typically treats data as discrete sequences or grids. However, this approach faces significant challenges when dealing with irregularly sampled data or missing values—common occurrences in fields such as finance and medicine. Furthermore, generating realistic synthetic time series that preserve underlying frequency characteristics remains a difficult task for existing generative models like GANs.
HyperTime addresses these issues by introducing a framework that represents time series as Implicit Neural Representations (INRs). Instead of discrete points, signals are treated as continuous functions $f(t)$ encoded within the weights of a neural network. This shift allows for seamless handling of missing data and high-fidelity signal reconstruction.
The HyperTime Framework
The authors propose a two-tier architecture designed to capture both local signal details and global dataset patterns:
- Base INR (SIREN): Unlike standard networks using ReLU activations, HyperTime utilizes Sinusoidal Representation Networks (SIREN). The periodic nature of sine wave activations makes them mathematically superior for capturing the high-frequency details and derivatives inherent in complex time-series signals.
- Hypernetwork Architecture: To scale across entire datasets, a Set Encoder compresses a subset of $(t, f(t))$ pairs into a latent embedding $Z$. A HyperNet then takes this embedding to predict the weights for a secondary "HypoNet," which serves as the actual INR for that specific sample.
- FFT-Based Loss: To ensure synthetic signals maintain the correct power spectrum, the model incorporates a loss function based on the Fast Fourier Transform (FFT), forcing the network to align with the original data's frequency domain.
Experimental Results and Insights
HyperTime was evaluated against the UCR Archive, financial data, and energy datasets. The results highlight several key advantages of the INR approach:
- Superiority of Sine Activations: Periodic activations outperform ReLU, Tanh, and Sigmoid by orders of magnitude. In reconstruction tasks on the NonInvasiveFetalECG dataset, SIREN achieved an MSE of $2.3 \times 10^{-5}$, while ReLU lagged at $2.8 \times 10^{-2}$.
- Robust Imputation: Because the representation is continuous, missing data can be recovered by simply querying the network at the missing time coordinates. Even with 90% of data points missing, the combination of SIREN and a Total Variation (TV) prior outperformed classical linear and cubic interpolations.
- Generative Performance: By interpolating between latent embeddings, HyperTime generates high-quality synthetic data. With the inclusion of the FFT loss, the model achieved a Predictive Score (MAE) of 0.005 on the NonInv dataset, significantly beating TimeGAN (0.028).
Conclusion
HyperTime demonstrates that treating time series as continuous functions via Implicit Neural Representations offers a powerful alternative to discrete sequence modeling. While future work is needed to address non-stationary signals and extreme scalability, the current framework provides a robust solution for reconstruction, imputation, and synthetic data generation. The learned latent embeddings also hold potential for downstream tasks like classification and anomaly detection.
Summary updated