Skip to content

How Transferable are Herbarium-Field Features in Few-Shot Plant Identification with Triplet Loss?

License

Notifications You must be signed in to change notification settings

NeuonAI/hftl_fewshot

Repository files navigation

Herbarium-Field Features in Few-Shot Plant Identification with Triplet Loss

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.

Overview Dictionary schemes

T-SNE Visualizations of the HFTL Model (a) and the OSM Model (b)

T-SNE Visualization

Figure 1

T-SNE Visualization

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.

Research article

How Transferable are Herbarium-Field Features in Few-Shot Plant Identification with Triplet Loss? https://doi.org/10.1109/APSIPAASC58517.2023.10317564

Requirements

Dataset

Scripts

Training scripts

Validation scripts

Lists

Training lists

Testing lists

Herbarium-Field Feature Dictionary Generation Scheme Lists

Model Method 1 Method 2 Method 3 Method 4
HFTL dictionary_method1.txt dictionary_method2.txt dictionary_method3_herbarium.txt dictionary_method3_field.txt dictionary_method4_herbarium.txt dictionary_method4_field.txt
HFTL-435 dictionary_method1.txt dictionary_method2.txt dictionary_method3_herbarium_435.txt dictionary_method3_field_435.txt dictionary_method4_herbarium_435.txt dictionary_method4_field_435.txt
HFTL-435-5 dictionary_method1.txt dictionary_method2.txt dictionary_method3_herbarium.txt dictionary_method3_field.txt dictionary_method4_herbarium.txt dictionary_method4_field.txt
HFTL-608 dictionary_method1.txt dictionary_method2.txt dictionary_method3_herbarium_608.txt dictionary_method3_field_608.txt dictionary_method4_herbarium_608.txt dictionary_method4_field_608.txt
HFTL-608-5 dictionary_method1.txt dictionary_method2.txt dictionary_method3_herbarium.txt dictionary_method3_field.txt dictionary_method4_herbarium.txt dictionary_method4_field.txt
OSM dictionary_method1.txt dictionary_method2.txt dictionary_method3_herbarium.txt dictionary_method3_field.txt dictionary_method4_herbarium.txt dictionary_method4_field.txt
OSM-435 dictionary_method1.txt dictionary_method2.txt dictionary_method3_herbarium_435.txt dictionary_method3_field_435.txt dictionary_method4_herbarium_435.txt dictionary_method4_field_435.txt
OSM-435-5 dictionary_method1.txt dictionary_method2.txt dictionary_method3_herbarium.txt dictionary_method3_field.txt dictionary_method4_herbarium.txt dictionary_method4_field.txt
OSM-608 dictionary_method1.txt dictionary_method2.txt dictionary_method3_herbarium_608.txt dictionary_method3_field_608.txt dictionary_method4_herbarium_608.txt dictionary_method4_field_608.txt
OSM-608-5 dictionary_method1.txt dictionary_method2.txt dictionary_method3_herbarium.txt dictionary_method3_field.txt dictionary_method4_herbarium.txt dictionary_method4_field.txt

About

How Transferable are Herbarium-Field Features in Few-Shot Plant Identification with Triplet Loss?

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages