Bjerge et al. (2025)
YOLOv5 model and several ResNet50 classifiers trained to identify moths to species and other broad groups of night-active insects.
- Object Detection
- Classification
- YOLOv5
- ResNet50
- closed vocabulary
4 assets
- weights
- insectMoths-bestF1-1280m6insectMoths-bestF1-1280m6.pt
- 100524_dhc_best_128dhc_best_128.pth
- 251224_dhc_best_128dhc_best_128.pth
YOLOv5/ResNet50 model trained to detect and classify moths and other night flying insects.
Intended use. Detecting and classifying insects landing on a white screen, attracted to a UV lamp. Moths are classified to species, other insects to order or similar.
Architecture and training
- Architecture: YOLOv5/ResNet50
- Task: Object Detection (bounding boxes) and classification
- Trained on: images from light traps for detection and GBIF examples for classification
- Taxonomic coverage: night-active insects, see the source publication for the exact class list
- Framework: ultralytics YOLOv5/ResNet50
Inputs and outputs
- Input size: 1280x1280
- Channel order: RGB
- Outputs: bounding boxes
- Input modality: image only (discriminative model)
The documented MCC24 CSV profile follows detectClassifySpecies.py at revision a817f57. It combines pixel boxes and detector scores with order/species classifications in a 19-column CSV. This is source-inspected only: the retained full-pipeline probe failed when the author classifier label-map URL returned HTTP 403. Both architecture entries refer to this combined pipeline export.
Performance
See the source publication.
| Metric | Value | Evaluation set |
|---|---|---|
| see source publication | — | — |
Limitations
License and rights
- License: CC-BY-4.0
- Commercial use: allowed
- Restrictions: Attribution is required by the license. Cite the source publication listed under Citation below.
- Upstream source: https://github.com/kimbjerge/MCC24-trap
Citation
@article{https://doi.org/10.1002/rse2.70007,
author = {Bjerge, Kim and Karstoft, Henrik and Høye, Toke T.},
title = {Towards edge processing of images from insect camera traps},
journal = {Remote Sensing in Ecology and Conservation},
volume = {11},
number = {5},
pages = {573-589},
keywords = {biodiversity monitoring, camera trap, computer vision, edge processing, insect classification, tracking},
doi = {https://doi.org/10.1002/rse2.70007},
url = {https://zslpublications.onlinelibrary.wiley.com/doi/abs/10.1002/rse2.70007},
eprint = {https://zslpublications.onlinelibrary.wiley.com/doi/pdf/10.1002/rse2.70007},
abstract = {Abstract Insects represent nearly half of all known multicellular species, but knowledge about them lags behind for most vertebrate species. In part for this reason, they are often neglected in biodiversity conservation policies and practice. Computer vision tools, such as insect camera traps, for automated monitoring have the potential to revolutionize insect study and conservation. To further advance insect camera trapping and the analysis of their image data, effective image processing pipelines are needed. In this paper, we present a flexible and fast processing pipeline designed to analyse these recordings by detecting, tracking and classifying nocturnal insects in a broad taxonomy of 15 insect classes and resolution of individual moth species. A classifier with anomaly detection is proposed to filter dark, blurred or partially visible insects that will be uncertain to classify correctly. A simple track-by-detection algorithm is proposed to track classified insects by incorporating feature embeddings, distance and area cost. We evaluated the computational speed and power performance of different edge computing devices (Raspberry Pi's and NVIDIA Jetson Nano) and compared various time-lapse (TL) strategies with tracking. The minimum difference of detections was found for 2-min TL intervals compared to tracking with 0.5 frames per second; however, for insects with fewer than one detection per night, the Pearson correlation decreases. Shifting from tracking to TL monitoring would reduce the number of recorded images and would allow for edge processing of images in real-time on a camera trap with Raspberry Pi. The Jetson Nano is the most energy-efficient solution, capable of real-time tracking at nearly 0.5 fps. Our processing pipeline was applied to more than 5.7 million images recorded at 0.5 frames per second from 12 light camera traps during two full seasons located in diverse habitats, including bogs, heaths and forests. Our results thus show the scalability of insect camera traps.},
year = {2025}
}
How to obtain the weights
From GitHub (https://github.com/kimbjerge/MCC24-trap). No authentication is required. The record contains several files, the YOLO weights are in the google drive link.