Open Access iconOpen Access

ARTICLE

Improving Hornet Detection with the YOLOv7-Tiny Model: A Case Study on Asian Hornets

Yung-Hsiang Hung, Chuen-Kai Fan, Wen-Pai Wang*

1 Department of Industrial Engineering & Management, National Chin-Yi University of Technology, Taichung, 411030, Taiwan

* Corresponding Author: Wen-Pai Wang. Email: email

Computers, Materials & Continua 2025, 83(2), 2323-2349. https://doi.org/10.32604/cmc.2025.063270

Abstract

Bees play a crucial role in the global food chain, pollinating over 75% of food and producing valuable products such as bee pollen, propolis, and royal jelly. However, the Asian hornet poses a serious threat to bee populations by preying on them and disrupting agricultural ecosystems. To address this issue, this study developed a modified YOLOv7tiny (You Only Look Once) model for efficient hornet detection. The model incorporated space-to-depth (SPD) and squeeze-and-excitation (SE) attention mechanisms and involved detailed annotation of the hornet’s head and full body, significantly enhancing the detection of small objects. The Taguchi method was also used to optimize the training parameters, resulting in optimal performance. Data for this study were collected from the Roboflow platform using a 640 × 640 resolution dataset. The YOLOv7tiny model was trained on this dataset. After optimizing the training parameters using the Taguchi method, significant improvements were observed in accuracy, precision, recall, F1 score, and mean average precision (mAP) for hornet detection. Without the hornet head label, incorporating the SPD attention mechanism resulted in a peak mAP of 98.7%, representing an 8.58% increase over the original YOLOv7tiny. By including the hornet head label and applying the SPD attention mechanism and Soft-CIOU loss function, the mAP was further enhanced to 97.3%, a 7.04% increase over the original YOLOv7tiny. Furthermore, the Soft-CIOU Loss function contributed to additional performance enhancements during the validation phase.

Keywords

Computer vision; object detection; YOLOv7tiny; SE; SPD; Asian hornet

Cite This Article

APA Style
Hung, Y., Fan, C., Wang, W. (2025). Improving Hornet Detection with the YOLOv7-Tiny Model: A Case Study on Asian Hornets. Computers, Materials & Continua, 83(2), 2323–2349. https://doi.org/10.32604/cmc.2025.063270
Vancouver Style
Hung Y, Fan C, Wang W. Improving Hornet Detection with the YOLOv7-Tiny Model: A Case Study on Asian Hornets. Comput Mater Contin. 2025;83(2):2323–2349. https://doi.org/10.32604/cmc.2025.063270
IEEE Style
Y. Hung, C. Fan, and W. Wang, “Improving Hornet Detection with the YOLOv7-Tiny Model: A Case Study on Asian Hornets,” Comput. Mater. Contin., vol. 83, no. 2, pp. 2323–2349, 2025. https://doi.org/10.32604/cmc.2025.063270



cc Copyright © 2025 The Author(s). Published by Tech Science Press.
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 201

    View

  • 60

    Download

  • 0

    Like

Share Link