Learning Hyperspherical Time-Frequency Representations for Time-Series Out-of-Distribution Detection

Willian T. Lunardi, Samridha Shrestha, Martin Andreoni
5/29/2026
cs.LG

Official code: tiiuae/hypertf-time-series-ood (1 star, Python, MIT, last commit 2026-07-27).

Abstract

Out-of-distribution (OOD) detection for time-series data remains comparatively underexplored compared to vision and language, with a limited principled understanding of how supervised time-series representations can be leveraged for reliable detection under distributional shifts. This work formulates time-series OOD detection as representation learning with hyperspherical embeddings, where class-conditional structure is induced by a von Mises-Fisher (vMF) likelihood-based objective on the unit sphere.

Show full abstract

The learned representation combines time- and frequency-domain views of the input signal via domain-specific encoders, integrating them into a joint embedding space for OOD detection. Detection uses distance-based scores over the learned embeddings, including k-nearest neighbors (k-NN) and Mahalanobis scores. We evaluate the approach at scale on the complete UCR and UEA time-series archives under a cross-dataset protocol. Empirical results show consistent improvements under both k-NN and Mahalanobis scoring over strong contrastive learning and post-hoc baselines in the same setting. Code is available at https://github.com/tiiuae/hypertf-time-series-ood.

View on arXivView PDF

Code Implementations(1)

MIT

Time Series Out-Of-Distribution detection with Hyperspherical Time Frequency Techniques

10Python, DockerfileApr 10, 20264 months agoMIT

Similar Papers

Cite this paper

@article{lunardi2026learning,
  title  = {Learning Hyperspherical Time-Frequency Representations for Time-Series Out-of-Distribution Detection},
  author = {Willian T. Lunardi and Samridha Shrestha and Martin Andreoni},
  year   = {2026},
  eprint = {2605.31155},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.31155v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.31155.svg)](https://codeofpaper.com/paper/2605.31155)

Discussion