ORIGINAL RESEARCH article

Front. Plant Sci.

Sec. Technical Advances in Plant Science

Volume 16 - 2025 | doi: 10.3389/fpls.2025.1612642

P4CN-YOLOv5s: A Passion Fruit Pests Detection Method Based on Lightweight-Improved YOLOv5s

Provisionally accepted
Zhiping  TanZhiping Tan1,2*Dapeng  YeDapeng Ye1Jiancong  WangJiancong Wang1Wenxiang  WangWenxiang Wang3
  • 1Fujian Agriculture and Forestry University, Fuzhou, Fujian Province, China
  • 2Guangdong Polytechnic Normal University, Guangzhou, Guangdong, China
  • 3Gannan University of Science and Technology, Gannan, China

The final, formatted version of the article will be published soon.

Passion fruit pests are characterized by their high species diversity, small physical size, and dense populations.Traditional algorithms often face challenges in achieving high detection accuracy and efficiency when addressing the complex task of detecting densely distributed small objects. To address this issue, this paper proposed an enhanced lightweight and efficient deep learning model, termed P4CN-YOLOv5s, which is developed based on YOLOv5s for detecting passion fruit pests.In P4CN-YOLOv5s, the Mosaic-9 and Mixup algorithms are initially used for data augmentation to augment the training dataset and enhance data complexity. Secondly, after analyzing the image set characteristics to be detected in this research, the point-line distance bounding box loss function is utilized to calculate the coordinate distance of the prediction box and target box, and aimed at improving detection speed. Subsequently, a convolutional block attention module (CBAM) and optimized anchor boxes are employed to reduce the false detection rate of the model. Finally, a dataset consisting of 6,000 images of passion fruit pests is used to evaluate the performance of the proposed model. The experimental data analysis reveals that the proposed P4CN-YOLOv5s model achieves superior performance, with an accuracy of 96.99%, an F1-score of 93.99%, and a mean detection time of 7.2 milliseconds. When compared to other widely used target detection models, including SSD, Faster R-CNN, YOLOv3, YOLOv4, YOLOv5, and P4C-YOLOv5s, on the same dataset, the P4CN-YOLOv5s model demonstrates distinct advantages, such as a low false positive rate and high detection efficiency. Therefore, the proposed model proves to be more effective for detecting passion fruit pests in natural orchard environments.

Keywords: Passion fruit pests detection, Lightweight deep learning algorithm, YOLOv5S, Attention module, Pests detection

Received: 16 Apr 2025; Accepted: 20 May 2025.

Copyright: © 2025 Tan, Ye, Wang and Wang. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence: Zhiping Tan, Fujian Agriculture and Forestry University, Fuzhou, 350002, Fujian Province, China

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.