AnomalyMatch: Discovering Rare Objects of Interest with Semi-supervised and Active Learning
Pablo Gómez, Laslo E. Ruhberg, Maria Teresa Nardone, David O'Ryan
TL;DR
AnomalyMatch tackles the challenge of discovering rare anomalies in large image datasets under severe label scarcity by integrating a FixMatch-based semi-supervised binary classifier with an active-learning loop and a user-friendly GUI. The approach uses EfficientNetLite0 as a backbone, robust two-tier augmentations, and scalable data handling to achieve high AUROC and AUPRC across astronomy- and vision-based benchmarks, while drastically reducing labeling effort. Key findings show strong performance starting from only five to ten labeled anomalies, rapid gains in the initial cycles, and manageable overfitting when training iterations are kept modest. The work demonstrates practical utility for upcoming surveys and datasets within ESA Datalabs, with implications for explainability, multimodal extensions, and domain-specific anomaly discovery in astronomy and beyond.
Abstract
Anomaly detection in large datasets is essential in astronomy and computer vision. However, due to a scarcity of labelled data, it is often infeasible to apply supervised methods to anomaly detection. We present AnomalyMatch, an anomaly detection framework combining the semi-supervised FixMatch algorithm using EfficientNet classifiers with active learning. AnomalyMatch is tailored for large-scale applications and integrated into the ESA Datalabs science platform. In this method, we treat anomaly detection as a binary classification problem and efficiently utilise limited labelled and abundant unlabelled images for training. We enable active learning via a user interface for verification of high-confidence anomalies and correction of false positives. Evaluations on the GalaxyMNIST astronomical dataset and the miniImageNet natural-image benchmark under severe class imbalance display strong performance. Starting from five to ten labelled anomalies, we achieve an average AUROC of 0.96 (miniImageNet) and 0.89 (GalaxyMNIST), with respective AUPRC of 0.82 and 0.77. After three active learning cycles, anomalies are ranked with 76% (miniImageNet) to 94% (GalaxyMNIST) precision in the top 1% of the highest-ranking images by score. We compare to the established Astronomaly software on selected 'odd' galaxies from the 'Galaxy Zoo - The Galaxy Challenge' dataset, achieving comparable performance with an average AUROC of 0.83. Our results underscore the exceptional utility and scalability of this approach for anomaly discovery, highlighting the value of specialised approaches for domains characterised by severe label scarcity.
