Few-shot Camouflaged Animal Detection and Segmentation

Thanh-Danh Nguyen, Anh-Khoa Nguyen Vu, Nhat-Duy Nguyen, Vinh-Tiep Nguyen, Thanh Duc Ngo, Thanh-Toan Do, Minh-Triet Tran, Tam V. Nguyen · DOI

Introduction

Camouflaged Object Detection (COD) represents a significant challenge in computer vision. Unlike standard object detection, where targets typically exhibit high contrast with their surroundings, camouflaged animals have evolved to blend seamlessly into their environments. Their boundaries are often indistinct, and their textures and colors mimic the background, making them difficult to distinguish even for human observers.

A major bottleneck in advancing COD research is the scarcity of high-quality, annotated data. Manual annotation of camouflaged objects is labor-intensive and prone to error. While few-shot learning (FSL) offers a potential solution by enabling models to learn from limited examples, existing FSL methods often struggle with the subtle discriminative features required to break camouflage. This paper introduces FS-CDIS, a framework designed to address these challenges through specialized loss functions and memory mechanisms.

The FS-CDIS Framework

The proposed Few-Shot Camouflaged Detection and Instance Segmentation (FS-CDIS) framework utilizes a two-stage transfer learning approach. Initially, the model is pre-trained on the large-scale COCO dataset to learn general object representations. It is then fine-tuned on a limited set of camouflaged images using two novel components:

  1. Instance Triplet Loss (ITL): To improve local discrimination, ITL forces the model to maximize the feature distance between the camouflaged foreground (the "anchor") and the surrounding background. This helps the model identify subtle differences in texture and pattern that reveal the hidden animal.
  2. Instance Memory Storage (IMS): To enhance global generalization, IMS maintains a memory bank of features for each animal category. By aggregating information across different images of the same species, the model learns class-level characteristics that remain consistent despite varying environmental contexts.

The CAMO-FS Dataset

To evaluate the framework, the researchers curated CAMO-FS, a new benchmark for few-shot camouflaged animal research. This dataset is primarily derived from the CAMO++ collection, supplemented by 163 manually collected images for rare classes. It comprises 2,852 images across 47 fine-grained animal categories, such as leaf insects, flatfish, and snow leopards.

Distribution of instances per category in the CAMO-FS dataset.

The dataset exhibits a long-tail distribution, reflecting the real-world difficulty of capturing images of certain camouflaged species. For evaluation, a "5-shot" protocol was adopted, where the model is provided with only five examples per category during the fine-tuning phase.

Experimental Results

The FS-CDIS framework demonstrates state-of-the-art performance on the CAMO-FS benchmark. In the 5-shot instance segmentation task, the IMS-enhanced model achieved an Average Precision (AP) of 7.35%, a significant improvement over the baseline MTFA model's 5.34%. Similarly, for object detection, the ITL-enhanced model reached 7.14% AP, compared to the baseline's 5.11%.

Qualitative results of FS-CDIS showing successful detection and segmentation of various camouflaged animals.

Qualitative analysis (see above) shows that the model can successfully delineate complex shapes, such as the spindly legs of insects or the mottled patterns of giraffes, even in highly cluttered environments. The combination of local feature discrimination (ITL) and global class knowledge (IMS) allows the model to overcome the inherent ambiguity of camouflage boundaries.

Conclusion and Future Work

FS-CDIS represents a significant step forward in few-shot camouflaged object detection. By integrating instance-level triplet loss and category-level memory, the framework effectively learns to "see" hidden animals from minimal data. Future research will focus on improving contextual modeling to better leverage environmental cues and optimizing the memory system for greater computational efficiency as the number of shots and classes increases.

Summary updated

BibTeX
@article{nguyen2024few,
  author = {Thanh-Danh Nguyen and Anh-Khoa Nguyen Vu and Nhat-Duy Nguyen and Vinh-Tiep Nguyen and Thanh Duc Ngo and Thanh-Toan Do and Minh-Triet Tran and Tam V. Nguyen},
  title = {{Few-shot Camouflaged Animal Detection and Segmentation}},
  journal = {IEEE Access},
  year = {2024},
  doi = {10.1109/access.2024.3432873},
}
Figure