This repository contains the implementation codes to our cross-domain few-shot plant identification experiments. This work investigates the robustness of cross-domain plant features learned using the triplet loss metric learning approach (HFTL Network) compared to the supervised classification approach (OSM Network) under general and few-shot experimental settings.
Detailed experiments show that the HFTL model outperformed the OSM model in the few-shot setting and achieved comparable results in the general experimental setting.
In addition, the feature dictionary generation schemes composed of various herbarium field feature combinations we proposed boost our models’ performance significantly compared to a single feature type dictionary strategy.
Figure 1
Figure 2
Figure 1 and Figure 2 show the T-SNE visualizations constructed with the herbarium-field embeddings generated by the HFTL model and the OSM model. The images are grouped according to how similar their embeddings are to one another. The closer the images are stacked together, the more similar their embeddings are to one another.
Figure 1 is built from 4,402 herbarium and field images (embeddings) of 261 species from the training dataset. We randomly selected two species from all the available family taxon to balance out the samples. The images are accompanied by their respective species id and each color represents a unique species id.
Meanwhile, Figure 2 is built from 392 images of 25 species. We randomly selected 25 species from 25 different family taxon to allow a clearer observation of the visualizations. The close-up images’ different border colors represent the different species. Additionally, the white numbered text in the images represent the species id number.
In our experiments, we find that the triplet model is able to further harness the similarity between different domain embeddings compared to the conventional supervised model.
How Transferable are Herbarium-Field Features in Few-Shot Plant Identification with Triplet Loss? https://doi.org/10.1109/APSIPAASC58517.2023.10317564
- TensorFlow 1.12
- TensorFlow-Slim library
- Pre-trained models (Inception-ResNet-v2)
- PlantCLEF 2021
- Dataset label map labels_classid_map.csv
Training scripts
- HFTL Network
- OSM Network
Validation scripts
- HFTL Network
- OSM Network
Training lists
-
HFTL Model
-
HFTL-435 Model
-
HFTL-435-5 Model
-
HFTL-608 Model
-
HFTL-608-5 Model
-
OSM Model
-
OSM-435 Model
-
OSM-435-5 Model
-
OSM-608 Model
-
OSM-608-5 Model
Testing lists