arXiv:2610.13610cs.CVOct 2026

Manuscript Offprint

arXiv:2610.13610

CUBE: Class-conditioned Unknown Boundary Evidence for Open-Set Insect Species Recognition

Hao Tan, Qimin Zhang, Zhe Xiao, Zekai Zuo, Wanting Liu, Jinghui Qin

ABSTRACT

Open-set insect species recognition requires models capable of detecting and categorizing unknown or novel species that are never seen during training but often resemble known classes. Unlike generic out-of-distribution samples, the feature representations of these unknown species may lie near a particular known-species boundary and induce confident errors. To address this, we propose Class-conditioned Unknown Boundary Evidence (CUBE), which models unknown species locally around each known species rather than as a single global unknown class. CUBE exploits auxiliary species to learn class-conditioned boundaries and preserves their species prototypes as shadow references during inference. It further combines visual boundary evidence with taxonomic evidence and candidate calibration. When location metadata are available, we propose CUBE-E to incorporate ecological consistency. Extensive experiments on Open-Insect C-America show that our method achieves state-of-the-art performance, reaching 98.4% mean AUROC and 95.2% closed-set accuracy.

Index Terms— Open-set recognition, out-of-distribution detection, fine-grained recognition, insect species recognition

1. INTRODUCTION

Automated species recognition has become an important tool for biodiversity monitoring, ecological surveys, and large-scale insect observation [1, 2, 3]. However, biodiversity data are inherently open-ended, and deployed systems inevitably encounter species absent from the training set. A robust recognition system should recognize known species while reliably rejecting unknown ones. This is particularly difficult for insects because unknown species are often not visually anomalous, but local unknowns may share wing shapes, textures, and colors with known species. Thus, Open-set insect recognition is a fine-grained boundary problem rather than simple anomaly detection [4, 3].

Existing out-of-distribution (OOD) and open-set recognition methods mainly rely on post-hoc confidence or feature scores, training regularization, or auxiliary outliers [5, 6, 7, 8]. Despite their effectiveness, many methods still model unknown species globally: an unknown sample should have low confidence, lie far from all known classes, or belong to a shared negative group. This assumption is poorly matched to fine-grained species recognition. The hardest unknown insects may be close to only a few known species and can be confidently absorbed by one of them. Rejecting such samples requires estimating the credible boundary of the particular known species they resemble, rather than measuring deviation from the known distribution as a whole. Moreover, auxiliary species provide a natural means of learning these local boundaries, but treating them as an undifferentiated negative pool discards useful information. Samples from the same auxiliary species form coherent visual groups, while each auxiliary species is typically confusable with only a small subset of known species. Therefore, they can serve as boundary probes during training and as structured nearby-unknown references during inference [9, 10, 11]. Besides, species recognition offers biological context unavailable in generic OOD detection. Taxonomic relations provide semantic cues about biological similarity [12, 13, 14], while location metadata reflects species distributions [2, 3]. These cues can help verify whether a visually plausible prediction is also biologically plausible.

Therefore, we propose Class-conditioned Unknown Boundary Evidence (CUBE), a class-conditioned framework that judges each fine-grained unknown species relative to the known species it most closely resembles. CUBE associates auxiliary samples with locally confusable known species to learn rejection boundaries and preserves auxiliary prototypes as inference-time shadow references. Taxonomic candidate calibration is introduced to further reduce confusion among plausible known species, while CUBE-E optionally incorporates ecological consistency. Extensive experiments on Open-Insect C-America demonstrate state-of-the-art (SOTA) OOD detection performance while preserving strong closed-set recognition performance. Overall, our contributions are two-fold. First, we formulate fine-grained unknown detection as class-conditioned boundary estimation instead of global unknown species modeling. Second, we develop structured

∗^{*}These authors contributed equally.

†^{\dagger}Corresponding author.

Figure

Fig. 1. Class-conditioned boundary learning and auxiliary shadow-bank construction in CUBE.

auxiliary boundary evidence that unifies local boundary learning and inference-time shadow referencing, leading to SOTA open-set recognition performance.