This page is being translated by your browser

Translation can break parts of Roboflow. If something stops working, turn translation off and reload the page.

Detection · Agriculture

Pest detection: Datasets & Models

Computer vision that detects and localizes insect pests in crop imagery, so you can identify infestations from field cameras, traps, or scouting photos.

Pest detection example
1M+
developers
16k
organizations
50B
inferences

Pest detection

This detection workflow scans crop imagery to locate insect pests such as aphids, whiteflies, and beetles, drawing bounding boxes around each one found. It accepts still photos or video frames from smartphones, drones, sticky trap cameras, or greenhouse sensors, making it usable for building or evaluating a pest insect dataset for field scouting and infestation monitoring.

Try it out

Powered by general detection model

Run on custom image

Drop an image here or click to upload

Detecting classes:

Why automate pest detection

Manual pest scouting in agriculture is slow, inconsistent, and hard to scale across acres of field or rows of greenhouse benches. Trained agronomists can't inspect every plant daily, and by the time an infestation is visible to the naked eye it may already have spread. Automating detection with computer vision lets you monitor sticky traps and canopy imagery continuously, catch outbreaks earlier, and target pesticide application only where pests actually appear. That means less crop loss, lower chemical use, and data you can act on instead of guesswork.

Key benefits

You get consistent, round-the-clock monitoring that surfaces pest pressure before it becomes a yield problem, and the detections integrate with the cameras, traps, and drones you already deploy. The approach scales from a single greenhouse to large field operations, and RF-DETR delivers strong accuracy on small, cluttered insect targets while remaining practical to run. Species-level counts and location data give you the inputs for precise, evidence-based treatment decisions.

How to use it

  1. Upload an image: Drop any photo into the widget above to try pest detection for free, right on this page.
  2. Preview instant results: The model detects aphid, whitefly, beetle, caterpillar, moth within seconds and returns an annotated image with structured predictions, so you can immediately see how well it works. Adjust the detection classes and re-run until the results fit your scenario.
  3. Like what you see?: With a free Roboflow account, you can deploy this workflow with the Serverless Cloud API, customize it in your workspace, or train RF-DETR on your own images for production accuracy.
  4. Get started for free: No code or training data required to begin: upload, review the results, and make it part of your stack in a single click.
Recommended model

Recommended model for pest detection

RF-DETR is state of the art for real-time object detection, instance segmentation, and keypoint detection, with higher accuracy and lower latency than comparable models, and it's Apache 2.0 licensed. When you're ready to build a production model for pest detection, fine-tune it on your own labeled images, then deploy to a Serverless Cloud API endpoint.

Train your own model
Roboflow Agent

Not sure where to start?

Describe your Pest Detection project to Roboflow Agent.

Agent