LabelLens Sticky-Trap Detector - greenhouse insect detector built on YOLO26-s
2 min readupdated
This model is a specialized fine-tuned version of YOLO26-s designed to automatically detect and classify insects on yellow sticky traps inside greenhouses. It recognizes whiteflies (pests) as well as beneficial predators such as Macrolophus and Nesidiocoris. Developed as part of the LabelLens project case, it pre-labels high-resolution images to save researchers time. It significantly outperforms baseline models on this specific task and will be useful for agronomists, researchers, and pest-monitoring system developers.
Key features
- Three insect classes: separates whitefly, Macrolophus, and Nesidiocoris.
- High accuracy: achieves an mAP50 of 0.844 on test data.
- Time saving: reduces manual labeling time by 59 percent at a confidence threshold of 0.35.
- Tile optimization: trained to work with 640-pixel image patches (tiles) for accurate detection of small objects.
What you can do
- Automatic labeling: apply the model within the LabelLens project for pre-labeling large trap photos.
- Script integration: run inference on individual image fragments using the Ultralytics library.
- Population counting: automate the counting of pests and beneficial insects on farms.
Example
Example of running detection on an image fragment (tile) using Python:
from ultralytics import YOLO
model = YOLO("sticky_detector.pt")
results = model.predict("tile_640.jpg", imgsz=640, conf=0.35)
Read more
DetailsMetrics: mAP50 0.844, mAP50-95 0.360 (AP50 for whitefly: 0.737, Macrolophus: 0.868, Nesidiocoris: 0.926).
Training: COCO-pretrained YOLO26-s, 60 epochs, batch size 16, on the Yellow Sticky Traps dataset (sliced into 640 px tiles with 20 percent overlap).
Limitations: recommended to run on 640 px tiles due to the high resolution of the source images (5184×3456 px).










Comments