InsectSAM: Insect Segmentation for Biodiversity Monitoring

TL;DR
InsectSAM is a fine-tuned version of Meta AI’s Segment Anything model, optimized for insect segmentation and monitoring. Combined with GroundingDINO for open-set object detection, it supports zero-shot insect detection and precise mask generation in complex backgrounds.
The model accepts an image and an optional bounding-box confidence threshold, then returns an annotated .png image with segmentation masks, bounding boxes, and confidence-score labels.
What the Model Is
InsectSAM, now listed on AIOZ AI, is an insect-focused image segmentation model designed for biodiversity monitoring.
It combines InsectSAM with GroundingDINO, an open-set object detector, to improve insect segmentation in complex visual environments.
The pipeline is designed for use with DIOPSIS camera systems, algorithms, and datasets, supporting ecological monitoring and biodiversity research.

How InsectSAM Works with GroundingDINO
InsectSAM combines two complementary capabilities:
- GroundingDINO: Provides open-set object detection and bounding-box detection
- InsectSAM: Generates segmentation masks for detected insects
The optional box_threshold controls the confidence threshold for GroundingDINO bounding-box detection. Its default value is 0.3.
This combination allows the pipeline to perform zero-shot object detection and detailed insect segmentation within the same workflow.
Inputs and Output
The model accepts:
input: An image in.png,.jpg, or.jpegformatbox_threshold: Optional confidence threshold for bounding-box detection, default 0.3
The output is a .png image containing:
- Insect segmentation masks
- Bounding boxes
- Confidence-score labels
- Overlays on the original input image
Core Capabilities
- Insect-focused image segmentation
- Open-set object detection with GroundingDINO
- Zero-shot insect detection
- Segmentation in complex visual backgrounds
- Adjustable bounding-box confidence threshold
- Visual output with masks, boxes, and confidence labels
Key Technical Details
- Model: InsectSAM
- Base model: Meta AI’s Segment Anything
- Task: Insect segmentation and monitoring
- Detection component: GroundingDINO
- Detection approach: Open-set, zero-shot object detection
- Monitoring context: DIOPSIS camera systems, algorithms, and datasets
- Input formats:
.png,.jpg,.jpeg - Optional parameter:
box_threshold, default 0.3 - Output format:
.png - Developer requirement: Python 3.10 or newer
- Model checkpoint requirement: Git LFS
- Optional hardware: CUDA-capable GPU
- License: Apache-2.0
Where It Fits Best
- Insect biodiversity monitoring
- Processing images from insect-monitoring systems
- Detecting insects in complex backgrounds
- Generating insect segmentation masks
- Building ecological monitoring applications
Explore InsectSAM on AIOZ AI
InsectSAM combines insect-specialized segmentation with GroundingDINO’s open-set detection in one focused computer-vision pipeline.
Explore InsectSAM on AIOZ AI and evaluate its detection and segmentation results on insect images from your own workflow.
FAQ
Q1: What is InsectSAM?
It is a fine-tuned version of Meta AI’s Segment Anything model, optimized for insect segmentation and monitoring.
Q2: How does InsectSAM work with GroundingDINO?
GroundingDINO provides open-set object detection and bounding-box detection, while InsectSAM generates segmentation masks for detected insects.
Q3: What output does the model return?
It returns an annotated .png image with insect segmentation masks, bounding boxes, and confidence-score labels overlaid on the original image.