Abstract
In real-world biological applications, image classification models frequently encounter species not seen during training. This study investigates whether standard closed-set training can generalize to open-set recognition tasks. By decoupling training from inference and utilizing a Class-wise Weighted Prototype Classifier (CWPC) alongside multi-modal metadata, the authors demonstrate that models trained on closed sets can effectively identify unknown species in the wild, suggesting that specialized open-set training modules may not be strictly necessary for robust performance.
The Challenge of Open-Set Fungi Recognition
Standard image classification assumes a closed-set environment where all test samples belong to predefined training categories. However, in fields like mycology, this assumption fails. Fungi identification presents a unique "stress test" due to its fine-grained nature, long-tailed distribution, and significant domain gaps.
The Danish Fungi 2020 dataset used in the FungiCLEF 2022 challenge exemplifies these difficulties. It contains a massive variety of visual representations, ranging from high-quality natural photographs to microscopic slides and even hand-drawn sketches. This diversity creates a massive domain gap that models must navigate while simultaneously identifying known species and rejecting unknown ones.
Methodology
The proposed solution decouples the learning of features from the logic used to identify unknown species, relying on two main pillars.
Multi-modal Closed-Set Training
The authors utilized a Meta-vision model based on the MetaFormer architecture. To incorporate rich metadata (location, substrate, habitat), they converted raw data into natural language templates (e.g., "It lives in bark of living trees"). These sentences were encoded using RoBERTa and fused with visual features from a CNN backbone using a Transformer. To address class imbalance, the model was trained using Large Margin Distribution-Aware Margin (LDAM) loss, which forces clearer boundaries for rare species.
CWPC: The Open-Set Inference Engine
The core innovation is the Class-wise Weighted Prototype Classifier (CWPC). Unlike standard methods that rely on Maximum Softmax Probability (MSP), CWPC calculates a weighted "center" or prototype for each known class in the feature space. Training images are weighted by the model's prediction confidence, ensuring that ambiguous samples do not pollute the class prototypes. During inference, test images are compared to these prototypes via cosine similarity; if the similarity to the closest known class falls below an adjustable threshold, the image is rejected as "unknown."
Dataset and Experimental Results
The models were evaluated on the Danish Fungi 2020 dataset, which includes approximately 296,000 training images (1,604 species) and 118,000 test images (3,134 species). Notably, the test set contains nearly double the species of the training set, making open-set rejection a critical performance metric.
The ensemble of seven models achieved a Mean F1 Score of 77.58% on the private leaderboard. Ablation studies confirmed that the CWPC method significantly outperformed standard MSP, improving the Macro-F1 score from 75.39% to 77.49% on the MetaFormer backbone. Additionally, their "ObservationId-awared Weighted Similarity" (OAWS) proved superior to simple average fusion when combining multiple images from the same sighting.
Conclusion and Future Work
This research suggests that effective open-set recognition can be achieved by focusing on inference-stage strategies rather than complex training modifications. By leveraging multi-modal context and refined prototype matching, models can better distinguish between known and unknown species. Future work will focus on automating the handling of extreme domain shifts and optimizing rejection thresholds for real-world deployment.
Summary updated