In Search of the Unknown Unknowns: A Multi-Metric Distance Ensemble for Out of Distribution Anomaly Detection in Astronomical Surveys

Siddharth Chaini, Federica B. Bianco, Ashish Mahabal
10/27/2025
astro-ph.IMcs.LG

Official code: sidchaini/DistClassiPy (16 stars, GPL-3.0, last commit 2026-04-23).

Abstract

Distance-based methods involve the computation of distance values between features and are a well-established paradigm in machine learning. In anomaly detection, anomalies are identified by their large distance from normal data points. However, the performance of these methods often hinges on a single, user-selected distance metric (e.g., Euclidean), which may not be optimal for the complex, high-dimensional feature spaces common in astronomy. Here, we introduce a novel anomaly detection method, Distance Multi-Metric Anomaly Detection (DiMMAD), which uses an ensemble of distance metrics to find novelties. Using multiple distance metrics is effectively equivalent to using different geometries in the feature space. By using a robust ensemble of diverse distance metrics, we overcome the metric-selection problem, creating an anomaly score that is not reliant on any single definition of distance. We demonstrate this multi-metric approach as a tool for simple, interpretable scientific discovery on astronomical time series -- (1) with simulated data for the upcoming Vera C. Rubin Observatory Legacy Survey of Space and Time, and (2) real data from the Zwicky Transient Facility. We find that DiMMAD excels at out-of-distribution anomaly detection -- anomalies in the data that might be new classes -- and beats other state-of-the-art methods in the goal of maximizing the diversity of new classes discovered. For rare in-distribution anomaly detection, DiMMAD performs similarly to other methods, but may allow for improved interpretability. All our code is open source: DiMMAD is implemented within DistClassiPy: https://github.com/sidchaini/distclassipy/, while all code to reproduce the results of this paper is available here: https://github.com/sidchaini/dimmad/.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

A python package for a distance-based classifier which can use several different distance metrics.

161PythonSep 30, 20236 months agoGPL-3.0

Similar Papers

Cite this paper

@article{chaini2025search,
  title  = {In Search of the Unknown Unknowns: A Multi-Metric Distance Ensemble for Out of Distribution Anomaly Detection in Astronomical Surveys},
  author = {Siddharth Chaini and Federica B. Bianco and Ashish Mahabal},
  year   = {2025},
  eprint = {2510.23702},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.23702v1}
}

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/2510.23702.svg)](https://codeofpaper.com/paper/2510.23702)

Discussion