Proceedings

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

Download BibTeX Cite

Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Main Track. Pages 2888-2896.

https://doi.org/10.24963/ijcai.2026/321

© 2026 International Joint Conferences on Artificial Intelligence

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. 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.

  1. Method Near-OOD Far-OOD F1 HAR AUDIO MOTION ECG SPECTRO OTHER UCR (Univariate) MSP 54.45 / 66.99 55.69 / 60.69 43.38 / 79.75 42.22 / 78.48 70.01 / 45.49 38.82 / 78.51 49.87 / 67.16 78.99 Mahalanobis 91.90 / 15.83 97.03 / 6.04 74.73 / 40.47 84.85 / 23.35 97.03 / 4.48 99.56 / 0.92 95.81 / 6.11 78.99 Center Loss 92.73 / 14.43 98.58 / 3.36 84.21 / 31.14 85.45 / 22.89 98.43 / 3.11 99.90 / 0.32 96.89 / 4.59 78.81 SimCLR+CE 91.44 / 18.37 96.31 / 9.23 66.03 / 51.27 88.86 / 23.92 98.71 / 3.97 99.03 / 2.76 94.82 / 8.86 72.16 KNN+ 93.14 / 14.45 96.50 / 8.88 91.49 / 24.16 93.82 / 14.46 99.69 / 0.89 99.70 / 0.49 96.12 / 5.20 67.49 SSD+ (w/ Maha++) 93.83 / 12.93 97.85 / 5.57 92.99 / 17.24 92.01 / 15.10 99.76 / 0.64 99.64 / 0.49 97.08 / 3.89 67.49 CIDER 92.78 / 15.38 96.38 / 9.01 89.20 / 27.53 93.15 / 16.15 99.41 / 1.61 99.61 / 1.04 96.53 / 5.65 78.88 HyperTF 93.94 / 12.91 99.13 / 2.42 94.63 / 13.61 93.91 / 13.53 99.48 / 1.34 99.95 / 0.19 99.40 / 1.41 82.53 + Auxiliary Outlier Data 94.11 / 12.56 99.31 / 1.92 95.24 / 12.43 93.19 / 14.81 99.58 / 1.16 99.97 / 0.12 99.45 / 1.13 79.14 UEA (Multivariate) MSP 55.19 / 62.54 49.22 / 65.79 14.82 / 96.95 72.58 / 41.89 32.18 / 81.59 38.96 / 61.56 61.02 / 51.84 70.64 Mahalanobis 87.56 / 18.21 88.53 / 15.75 99.87 / 0.35 98.35 / 4.20 91.20 / 12.06 92.32 / 7.78 82.77 / 19.63 70.64 Center Loss 89.17 / 15.12 90.02 / 13.36 99.83 / 0.37 99.25 / 1.71 95.06 / 6.90 96.17 / 3.92 84.73 / 18.33 70.00 SimCLR+CE 90.35 / 18.57 94.08 / 11.09 92.18 / 14.95 99.50 / 1.39 94.66 / 11.87 89.85 / 10.92 90.87 / 12.60 76.14 KNN+ 91.62 / 12.31 92.44 / 10.30 97.96 / 5.06 99.71 / 0.62 96.52 / 7.30 54.74 / 45.85 91.07 / 9.81 70.16 SSD+ (w/ Maha++) 93.44 / 10.03 93.91 / 9.02 99.39 / 1.64 99.87 / 0.38 96.85 / 7.22 92.20 / 7.86 91.16 / 9.60 70.16 CIDER 92.74 / 13.81 95.55 / 7.49 93.63 / 11.45 99.55 / 0.78 92.23 / 12.98 91.44 / 9.23 90.90 / 10.75 77.75 HyperTF 97.76 / 6.05 96.61 / 5.56 98.65 / 2.72 99.94 / 0.31 95.24 / 10.91 99.77 / 0.26 99.55 / 1.32 81.74 + Auxiliary Outlier Data 98.23 / 4.94 97.12 / 4.54 98.47 / 2.66 99.97 / 0.16 95.52 / 10.67 99.88 / 0.16 96.16 / 5.55 80.73
  2. [Baek et al., 2024] Eunsu Baek, Keondo Park, Jiyoon Kim, and Hyung-Sin Kim. Unexplored faces of robustness and out-of- distribution: Covariate shifts in environment and sensor do- mains. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 22294-22303, 2024.
  3. [Belkhouja et al., 2023] Taha Belkhouja, Yan Yan, and Janard- han Rao Doppa. Out-of-distribution detection in time-series do- main: A novel seasonal ratio scoring approach. ACM Transac- tions on Intelligent Systems and Technology, 15(1):1-24, 2023.
  4. [Burapacheep and Li, 2024] Jirayu Burapacheep and Yixuan Li. Your classifier can be secretly a likelihood-based OOD detector. Transactions on Machine Learning Research, 2024.
  5. [Chen et al., 2020] Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for con- trastive learning of visual representations. In International Con- ference on Machine Learning, pages 1597-1607, 2020.
  6. [Chen et al., 2021] Jiefeng Chen, Yixuan Li, Xi Wu, Yingyu Liang, and Somesh Jha. ATOM: Robustifying out-of-distribution detec- tion using outlier mining. In Machine Learning and Knowledge Discovery in Databases. Research Track, pages 430-445, 2021.
  7. [Djurisic et al., 2023] Andrija Djurisic, Nebojsa Bozanic, Arjun Ashok, and Rosanne Liu. Extremely simple activation shaping for out-of-distribution detection. In International Conference on Learning Representations, 2023.
  8. [Du et al., 2022] Xuefeng Du, Gabriel Gozum, Yifei Ming, and Yixuan Li. SIREN: Shaping representations for detecting out- of-distribution objects. In Advances in Neural Information Pro- cessing Systems, pages 20434-20449, 2022.
  9. [Gao et al., 2023] Ruiyuan Gao, Chenchen Zhao, Lanqing Hong, and Qiang Xu. DiffGuard: Semantic mismatch-guided out- of-distribution detection using pre-trained diffusion models. In IEEE/CVF International Conference on Computer Vision, pages 1579-1589, 2023.
  10. [Gungor et al., 2025] Onat Gungor, Amanda Sofie Rios, Nilesh Ahuja, and Tajana Rosing. TS-OOD: Evaluating time-series out- of-distribution detection and prospective directions for progress. arXiv preprint arXiv:2502.15901, 2025.
  11. [Hendrycks and Gimpel, 2017] Dan Hendrycks and Kevin Gimpel. A baseline for detecting misclassified and out-of-distribution ex- amples in neural networks. In International Conference on Learning Representations, 2017.
  12. [Hendrycks et al., 2019] Dan Hendrycks, Mantas Mazeika, and Thomas Dietterich. Deep anomaly detection with outlier expo- sure. In International Conference on Learning Representations, 2019.
  13. [Hendrycks et al., 2022] Dan Hendrycks, Steven Basart, Mantas Mazeika, Andy Zou, Joe Kwon, Mohammadreza Mostajabi, Ja- cob Steinhardt, and Dawn Song. Scaling out-of-distribution de- tection for real-world settings. In International Conference on Machine Learning, pages 8759-8773, 2022.
  14. [Huang et al., 2021] Rui Huang, Andrew Geng, and Yixuan Li. On the importance of gradients for detecting distributional shifts in the wild. In Advances in Neural Information Processing Systems, pages 677-689, 2021.
  15. [Huang et al., 2022] Wenjian Huang, Hao Wang, Jiahao Xia, Chengyan Wang, and Jianguo Zhang. Density-driven regular- ization for out-of-distribution detection. In Advances in Neural Information Processing Systems, pages 887-900, 2022.
  16. [Ismail Fawaz et al., 2020] Hassan Ismail Fawaz, Benjamin Lu- cas, Germain Forestier, Charlotte Pelletier, Daniel F Schmidt, Jonathan Weber, Geoffrey I Webb, Lhassane Idoumghar, Pierre- Alain Muller, and Franc ¸ois Petitjean. InceptionTime: Finding AlexNet for time series classification. Data Mining and Knowl- edge Discovery, 34(6):1936-1962, 2020.
  17. [Khosla et al., 2020] Prannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna, Yonglong Tian, Phillip Isola, Aaron Maschinot, Ce Liu, and Dilip Krishnan. Supervised contrastive learning. In Advances in Neural Information Processing Systems, pages 18661-18673, 2020.
  18. [Lai et al., 2021] Kwei-Herng Lai, Daochen Zha, Junjie Xu, Yue Zhao, Guanchu Wang, and Xia Hu. Revisiting time series outlier detection: Definitions and benchmarks. In Neural Information Processing Systems Track on Datasets and Benchmarks, 2021.
  19. [Lee et al., 2018] Kimin Lee, Kibok Lee, Honglak Lee, and Jin- woo Shin. A simple unified framework for detecting out-of- distribution samples and adversarial attacks. In Advances in Neu- ral Information Processing Systems, pages 7167-7177, 2018.
  20. [Li et al., 2023a] Jinglun Li, Xinyu Zhou, Pinxue Guo, Yixuan Sun, Yiwen Huang, Weifeng Ge, and Wenqiang Zhang. Hierarchical visual categories modeling: A joint representation learning and density estimation framework for out-of-distribution detection. In IEEE/CVF International Conference on Computer Vision, pages 23425-23435, 2023.
  21. [Li et al., 2023b] Jingyao Li, Pengguang Chen, Zexin He, Shaozuo Yu, Shu Liu, and Jiaya Jia. Rethinking out-of-distribution (OOD) detection: Masked image modeling is all you need. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11578-11589, 2023.
  22. [Liang et al., 2018] Shiyu Liang, Yixuan Li, and Rayadurgam Srikant. Enhancing the reliability of out-of-distribution image detection in neural networks. In International Conference on Learning Representations, 2018.
  23. [Liu et al., 2020] Weitang Liu, Xiaoyun Wang, John Owens, and Yixuan Li. Energy-based out-of-distribution detection. In Ad- vances in Neural Information Processing Systems, pages 21464- 21475, 2020.
  24. [Liu et al., 2023] Xixi Liu, Yaroslava Lochman, and Christopher Zach. GEN: Pushing the limits of softmax-based out-of- distribution detection. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 23946-23955, 2023.
  25. [Lu et al., 2024a] Haodong Lu, Dong Gong, Shuo Wang, Jason Xue, Lina Yao, and Kristen Moore. Learning with mixture of pro- totypes for out-of-distribution detection. In International Confer- ence on Learning Representations, 2024.
  26. [Lu et al., 2024b] Wang Lu, Jindong Wang, Xinwei Sun, Yiqiang Chen, Xiangyang Ji, Qiang Yang, and Xing Xie. Diversify: A general framework for time series out-of-distribution detection and generalization. IEEE Transactions on Pattern Analysis and Machine Intelligence, 46(6):4534-4550, 2024.
  27. [Lunardi et al., 2025] Willian T. Lunardi, Abdulrahman Banabila, Dania Herzalla, and Martin Andreoni. Contrastive representa- tion modeling for anomaly detection. In European Conference on Artificial Intelligence, pages 2594-2601, 2025.
  28. [Ming et al., 2022] Yifei Ming, Ying Fan, and Yixuan Li. POEM: Out-of-distribution detection with posterior sampling. In Inter- national Conference on Machine Learning, pages 15650-15665, 2022.
  29. [Ming et al., 2023] Yifei Ming, Yiyou Sun, Ousmane Dia, and Yix- uan Li. How to exploit hyperspherical embeddings for out-of- distribution detection? In International Conference on Learning Representations, 2023.
  30. [Müller and Hein, 2025] Maximilian Müller and Matthias Hein. Mahalanobis++: Improving OOD detection via feature normal- ization. In International Conference on Machine Learning, pages 45151-45184, 2025.
  31. [Park et al., 2023] Jaewoo Park, Yoon Gyo Jung, and Andrew Beng Jin Teoh. Nearest neighbor guidance for out-of-distribution detection. In IEEE/CVF International Conference on Computer Vision, pages 1686-1695, 2023.
  32. [Peng et al., 2024] Bo Peng, Yadan Luo, Yonggang Zhang, Yixuan Li, and Zhen Fang. ConjNorm: Tractable density estimation for out-of-distribution detection. In International Conference on Learning Representations, 2024.
  33. [Regmi et al., 2024] Sudarshan Regmi, Bibek Panthi, Yifei Ming, Prashnna K Gyawali, Danail Stoyanov, and Binod Bhattarai. ReweightOOD: Loss reweighting for distance-based OOD detec- tion. In IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, pages 131-141, 2024.
  34. [Sehwag et al., 2021] Vikash Sehwag, Mung Chiang, and Prateek Mittal. SSD: A unified framework for self-supervised outlier de- tection. In International Conference on Learning Representa- tions, 2021.
  35. [Sun et al., 2021] Yiyou Sun, Chuan Guo, and Yixuan Li. ReAct: Out-of-distribution detection with rectified activations. In Ad- vances in Neural Information Processing Systems, pages 144- 157, 2021.
  36. [Sun et al., 2022] Yiyou Sun, Yifei Ming, Xiaojin Zhu, and Yixuan Li. Out-of-distribution detection with deep nearest neighbors. In International Conference on Machine Learning, pages 20827- 20840, 2022.
  37. [Tack et al., 2020] Jihoon Tack, Sangwoo Mo, Jongheon Jeong, and Jinwoo Shin. CSI: Novelty detection via contrastive learn- ing on distributionally shifted instances. In Advances in Neural Information Processing Systems, pages 11839-11852, 2020.
  38. [Wang et al., 2022] Haoqi Wang, Zhizhong Li, Litong Feng, and Wayne Zhang. ViM: Out-of-distribution with virtual-logit match- ing. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4921-4930, 2022.
  39. [Wei et al., 2022] Hongxin Wei, Renchunzi Xie, Hao Cheng, Lei Feng, Bo An, and Yixuan Li. Mitigating neural network over- confidence with logit normalization. In International Conference on Machine Learning, pages 23631-23644, 2022.
  40. [Wen et al., 2016] Yandong Wen, Kaipeng Zhang, Zhifeng Li, and Yu Qiao. A discriminative feature learning approach for deep face recognition. In European Conference on Computer Vision, pages 499-515, 2016.
  41. [Winkens et al., 2020] Jim Winkens, Rudy Bunel, Abhijit Guha Roy, Robert Stanforth, Vivek Natarajan, Joseph R Ledsam, Pa- tricia MacWilliams, Pushmeet Kohli, Alan Karthikesalingam, Simon Kohl, et al. Contrastive training for improved out-of- distribution detection. arXiv preprint arXiv:2007.05566, 2020.
  42. [Wu et al., 2025] Yingwen Wu, Ruiji Yu, Xinwen Cheng, Zheng- bao He, and Xiaolin Huang. Pursuing feature separation based on neural collapse for out-of-distribution detection. In Interna- tional Conference on Learning Representations, 2025.
  43. [Yang et al., 2021] Jingkang Yang, Haoqi Wang, Litong Feng, Xi- aopeng Yan, Huabin Zheng, Wayne Zhang, and Ziwei Liu. Se- mantically coherent out-of-distribution detection. In IEEE/CVF International Conference on Computer Vision, pages 8301-8309, 2021.
  44. [Yang et al., 2022a] Jingkang Yang, Pengyun Wang, Dejian Zou, Zitang Zhou, Kunyuan Ding, Wenxuan Peng, Haoqi Wang, Guangyao Chen, Bo Li, Yiyou Sun, et al. OpenOOD: Bench- marking generalized out-of-distribution detection. In Advances in Neural Information Processing Systems, pages 32598-32611, 2022.
  45. [Yang et al., 2022b] Yijun Yang, Ruiyuan Gao, and Qiang Xu. Out- of-distribution detection with semantic mismatch under masking. In European Conference on Computer Vision, pages 373-390, 2022.
  46. [Yao et al., 2024] Haiyun Yao, Zongbo Han, Huazhu Fu, Xi Peng, Qinghua Hu, and Changqing Zhang. Out-of-distribution detec- tion with diversification (provably). In Advances in Neural Infor- mation Processing Systems, pages 22690-22719, 2024.
  47. [Yu and Aizawa, 2019] Qing Yu and Kiyoharu Aizawa. Unsuper- vised out-of-distribution detection by maximum classifier dis- crepancy. In IEEE/CVF International Conference on Computer Vision, pages 9518-9526, 2019.
  48. [Yue et al., 2022] Zhihan Yue, Yujing Wang, Juanyong Duan, Tian- meng Yang, Congrui Huang, Yunhai Tong, and Bixiong Xu. TS2Vec: Towards universal representation of time series. In AAAI Conference on Artificial Intelligence, pages 8980-8987, 2022.
  49. [Zhang and Xiang, 2023] Zihan Zhang and Xiang Xiang. Decou- pling maxlogit for out-of-distribution detection. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3388-3397, 2023.
  50. [Zhang et al., 2023] Jingyang Zhang, Nathan Inkawhich, Randolph Linderman, Yiran Chen, and Hai Li. Mixture outlier expo- sure: Towards out-of-distribution detection in fine-grained envi- ronments. In IEEE/CVF Winter Conference on Applications of Computer Vision, pages 5531-5540, 2023.
  51. [Zhang et al., 2024] Jingyang Zhang, Jingkang Yang, Pengyun Wang, Haoqi Wang, Yueqian Lin, Haoran Zhang, Yiyou Sun, Xuefeng Du, Yixuan Li, Ziwei Liu, Yiran Chen, and Hai Li. OpenOOD v1.5: Enhanced benchmark for out-of-distribution de- tection. Journal of Data-centric Machine Learning Research, 2024.
  52. [Zhou et al., 2021] Zhi Zhou, Lan-Zhe Guo, Zhanzhan Cheng, Yu- Feng Li, and Shiliang Pu. STEP: Out-of-distribution detection in the presence of limited in-distribution labeled data. In Advances in Neural Information Processing Systems, pages 29168-29180, 2021.
  53. [Zhu et al., 2023] Jianing Zhu, Yu Geng, Jiangchao Yao, Tongliang Liu, Gang Niu, Masashi Sugiyama, and Bo Han. Diversified out- lier exposure for out-of-distribution detection via informative ex- trapolation. In Advances in Neural Information Processing Sys- tems, pages 22702-22734, 2023.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards