# Crop Pest Identification and Real-Time Monitoring System Design Based on Improved YOLOv8s

**Authors:** Qiang Gao, Chongchong Shi, Yu Ji, Meili Wang

PMC · DOI: 10.3390/s26020404 · Sensors (Basel, Switzerland) · 2026-01-08

## TL;DR

This paper improves the YOLOv8 model for better crop pest detection accuracy and adaptability, and develops a real-time monitoring system.

## Contribution

A lightweight attention mechanism and feature enhancement module are introduced to enhance YOLOv8s for pest detection.

## Key findings

- The improved model increased mAP0.5 and mAP0.5–0.95 by 0.6% and 0.8% on a self-constructed pest dataset.
- The model achieved 249.76 frames per second inference speed, a modest improvement over the original model.

## Abstract

This study aims to address the limitations of the YOLOv8 model in terms of low detection accuracy and poor deployment adaptability in the context of crop pest detection. To this end, a lightweight attention mechanism and a feature enhancement module were incorporated into the structure of YOLOv8s, with a view to optimizing its detection performance across a range of insects. Based on this improved model, a real-time pest monitoring system was further developed. Results showed that on the self-constructed pest dataset, the proposed improved model increased mAP0.5, and mAP0.5–0.95 by 0.6% and 0.8%, respectively, and reducing the number of model parameters from 11.1 × 106 to 10.2 × 106 compared to the original YOLOv8s model. Using an A40 graphics card at 640 × 640 resolution with a batch size of 32, the inference speed reached 249.76 frames per second, representing a modest improvement over the original model’s 225.38 frames per second. On the IP102 dataset, the proposed improved model increased Precision (P), mAP0.5 and mAP0.5–0.95 by 2.6%, 2.7% and 1.4%, respectively, compared to the original YOLOv8s model. This study demonstrated that the proposed model exhibited a high level of recognition accuracy for pests in different states, thereby providing a valuable reference for the accurate identification of crop pests.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12846215/full.md

## Figures

9 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12846215/full.md

## References

34 references — full list in the complete paper: https://tomesphere.com/paper/PMC12846215/full.md

---
Source: https://tomesphere.com/paper/PMC12846215