Science Score: 57.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.0%) to scientific vocabulary
Last synced: 7 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: yoohj0416
  • License: cc0-1.0
  • Language: Python
  • Default Branch: main
  • Size: 18.6 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 1 year ago · Last pushed 11 months ago
Metadata Files
Readme License Citation

README.md

Efficient CNN-Based System for Automated Beetle Elytra Coordinates Prediction

This repository contains code and resources for our deep learning framework to localize beetles in images (object detection) and predict elytra coordinates (regression), enabling automated measurement of beetle morphological traits.


1. Installation

Install via pip: bash pip install torch opencv-python tqdm

2. Dataset

Our dataset is hosted on Hugging Face for easy download and version control. \ Hugging Face Dataset Link

It includes: - High-resolution images containing multiple beetles (grouped and individual). - Corresponding bounding box annotations for object detection. - Manually annotated elytra coordinates for regression tasks.

It is re-created from the original beetle dataset found here: \ 2018-NEON-beetles

3. Pre-trained Models

We provide two sets of pre-trained models:

  1. Object Detection Models (YOLO)
  2. Regression Models (for beetle elytra coordinates)

3.1. Object Detection (YOLO)

Below is a summary of YOLOv8 models we trained (or fine-tuned) for beetle detection, along with their AP50 and mAP on our test set.

| Model | AP50 | mAP | Download Link | | ----- | ---- | --- | ------------- | |YOLOv8n|0.968|0.800|Download| |YOLOv8s|0.970|0.805|Download| |YOLOv8m|0.971|0.804|Download|

For additional details on how to install and run YOLOv8, please refer to the official Ultralytics YOLOv8 documentation.

3.2 Regression Models

Below is a summary table for our Regression Models using various backbones. Each row includes a download link and its corresponding Mean Squared Error (MSE) and Points Defference performances on our test set.

| Backbone | MSE | Points Difference (cm) | Params | Download Link | | -------- | --- | ---------------------- | ------ | ------------- | |ResNet50|1.941E-03|0.128|23.5M|Download| |ResNet101|1.971E-03|0.132|42.5M|Download| |MobileNetV3-Large|1.952E-03|0.118|4.2M|Download| |EfficientNetV2-S|1.870E-03|0.110|20.2M|Download| |EfficientNetV2-M|1.756E-03|0.110|52.9M|Download|

4. Train & Test

A. Update the Config File

Before training or testing, edit your config file (e.g., config.yaml) and ensure:

swift dataset: source_dir: /absolute/path/to/individual/images Here, source_dir should point to the folder where you downloaded and extracted the individual images from our dataset on Hugging Face.

B. Train

Run:

bash python train.py --config /path/to/config/file

  • Parses the specified config file
  • Loads the dataset
  • Initializes and trains the selected model (backbone, epochs, etc.)

C. Test / Inference

For inference or to evaluate a trained model, run:

bash python predict.py --config /path/to/config/file

  • Loads the trained weights from the config
  • Runs prediction on the test set or custom images
  • Outputs bounding boxes or elytra keypoints, plus measurement logs

4. Citation

BibTeX:

@inproceedings{Yoo2025EfficientCNN, author = {Yoo, H. and Somasundaram, D. and Oh, H.}, title = {{Efficient CNN-Based System for Automated Beetle Elytra Coordinates Prediction}}, booktitle = {Proceedings of the 20th International Joint Conference on Computer Vision, Imaging and Computer Graphics Theory and Applications ({VISIGRAPP} 2025) - Volume 2: {VISAPP}}, pages = {934--941}, year = {2025}, publisher = {{SCITEPRESS – Science and Technology Publications, Lda.}}, doi = {10.5220/0013264600003912}, isbn = {978-989-758-728-3}, issn = {2184-4321}, series = {{VISIGRAPP} 2025} }

Original Dataset:

@misc{Fluck2018_NEON_Beetle, author = {Isadora E. Fluck and Benjamin Baiser and Riley Wolcheski and Isha Chinniah and Sydne Record}, title = {2018 {NEON} Ethanol-preserved Ground Beetles (Revision 7b3731d)}, year = {2024}, url = {https://huggingface.co/datasets/imageomics/2018-NEON-beetles}, doi = { 10.57967/hf/5252 }, publisher = {Hugging Face} }

5. Acknowledgements

This work was supported by the NSF OAC 2118240 Imageomics Institute award and was initiated at Beetlepalooza 2024. More details about Beetlepalooza can be found on https://github.com/Imageomics/BeetlePalooza-2024.

Owner

  • Login: yoohj0416
  • Kind: user

Citation (CITATION.cff)

abstract: "Beetles represent nearly a quarter of all known animal species and play crucial roles in ecosystems. A keymorphological feature, the elytra, provides essential protection and adaptability but measuring their size man-ually is labor-intensive and prone to errors, especially with large datasets containing multiple specimens perimage. To address this, we introduce a deep learning-based framework that automates the detection and mea-surement of beetle elytra using Convolutional Neural Networks (CNN). Our system integrates advanced objectdetection techniques to accurately localize individual beetles and predict elytra coordinates, enabling precisemeasurement of elytra length and width. Additionally, we recreated an existing beetle dataset tailored forelytra coordinate prediction. Through comprehensive experiments and ablation studies, we optimized ourframework to achieve a measurement accuracy with an error margin of only 0.1 cm. This automated approachsignificantly reduces manual effort and facilitates large-scale beetle trait analysis, thereby advancing biodiver-sity research and ecological assessments. Code is available at https://github.com/yoohj0416/predictbeetle."
authors:
- family-names: Yoo
  given-names: Hojin
  orcid: "https://orcid.org/0000-0002-4291-0745"
- family-names: Somasundaram
  given-names: Dhanyapriya
  orcid: "https://orcid.org/0009-0000-7606-4623"
- family-names: Oh
  given-names: Hyunju
  orcid: "https://orcid.org/0009-0006-8600-1208"
cff-version: 1.2.0
date-released: "2025-02-26"
keywords:
  - Beetle Elytra, Convolutional Neural Networks, Object Detection, Regression Models
license: 
message: "If you find this software helpful in your research, please cite both the software and our paper."
repository-code: "https://github.com/Imageomics/<repo>"
title: "Efficient CNN-Based System for Automated Beetle Elytra CoordinatesPrediction"
version: 1.0.0
doi: 10.5220/0013264600003912
type: software
preferred-citation:
  type: article
  authors:
    - family-names:
      given-names:
    - family-names:
      given-names:
  title: 
  year:
  journal:
  doi: 
references:
  - authors:
      - family-names:
        given-names:
      - family-names:
        given-names:
    title: 
    version:
    type:
    doi: 
    date-released:

GitHub Events

Total
  • Public event: 1
  • Push event: 4
  • Create event: 2
Last Year
  • Public event: 1
  • Push event: 4
  • Create event: 2