HCFormer: A Lightweight Pest Detection Model Combining CNN and ViT

被引:1
|
作者
Zeng, Meiqi [1 ]
Chen, Shaonan [1 ]
Liu, Hongshan [1 ]
Wang, Weixing [2 ]
Xie, Jiaxing [1 ,3 ]
机构
[1] South China Agr Univ, Coll Elect Engn, Coll Artificial Intelligence, Guangzhou 510642, Peoples R China
[2] South China Agr Univ, Zhujiang Coll, Guangzhou 510900, Peoples R China
[3] Engn Res Ctr Monitoring Agr Informat Guangdong Pro, Guangzhou 510642, Peoples R China
来源
AGRONOMY-BASEL | 2024年 / 14卷 / 09期
关键词
pest detection; image processing; deep learning; vision transformer; lightweight; INSECT PESTS;
D O I
10.3390/agronomy14091940
中图分类号
S3 [农学(农艺学)];
学科分类号
0901 ;
摘要
Pests are widely distributed in nature, characterized by their small size, which, along with environmental factors such as lighting conditions, makes their identification challenging. A lightweight pest detection network, HCFormer, combining convolutional neural networks (CNNs) and a vision transformer (ViT) is proposed in this study. Data preprocessing is conducted using a bottleneck-structured convolutional network and a Stem module to reduce computational latency. CNNs with various kernel sizes capture local information at different scales, while the ViT network's attention mechanism and global feature extraction enhance pest feature representation. A down-sampling method reduces the input image size, decreasing computational load and preventing overfitting while enhancing model robustness. Improved attention mechanisms effectively capture feature relationships, balancing detection accuracy and speed. The experimental results show that HCFormer achieves 98.17% accuracy, 91.98% recall, and a mean average precision (mAP) of 90.57%. Compared with SENet, CrossViT, and YOLOv8, HCFormer improves the average accuracy by 7.85%, 2.01%, and 3.55%, respectively, outperforming the overall mainstream detection models. Ablation experiments indicate that the model's parameter count is 26.5 M, demonstrating advantages in lightweight design and detection accuracy. HCFormer's efficiency and flexibility in deployment, combined with its high detection accuracy and precise classification, make it a valuable tool for identifying and classifying crop pests in complex environments, providing essential guidance for future pest monitoring and control.
引用
收藏
页数:21
相关论文
共 50 条
  • [21] A Lightweight CNN Model for Refining Moving Vehicle Detection From Satellite Videos
    Chen, Renxi
    Li, Xinhui
    Li, Shengyang
    IEEE ACCESS, 2020, 8 : 221897 - 221917
  • [22] LSDNet: Lightweight CNN Model Driven by PNF for PolSAR Image Ship Detection
    Bai, Qilin
    Gao, Gui
    Zhang, Xi
    Yao, Libo
    Zhang, Chuan
    IEEE Journal on Miniaturization for Air and Space Systems, 2022, 3 (03): : 135 - 142
  • [23] An efficient lightweight CNN model for real-time fire smoke detection
    Bangyong Sun
    Yu Wang
    Siyuan Wu
    Journal of Real-Time Image Processing, 2023, 20
  • [24] CCBLA: a Lightweight Phishing Detection Model Based on CNN, BiLSTM, and Attention Mechanism
    Zhu, Erzhou
    Yuan, Qixiang
    Chen, Zhile
    Li, Xuejian
    Fang, Xianyong
    COGNITIVE COMPUTATION, 2023, 15 (04) : 1320 - 1333
  • [25] An Efficient and Lightweight CNN Model With Soft Quantification for Ship Detection in SAR Images
    Yang, Xi
    Zhang, Jianan
    Chen, Chengzeng
    Yang, Dong
    IEEE TRANSACTIONS ON GEOSCIENCE AND REMOTE SENSING, 2022, 60
  • [26] CCBLA: a Lightweight Phishing Detection Model Based on CNN, BiLSTM, and Attention Mechanism
    Erzhou Zhu
    Qixiang Yuan
    Zhile Chen
    Xuejian Li
    Xianyong Fang
    Cognitive Computation, 2023, 15 : 1320 - 1333
  • [27] A Novel Model Based on CNN-ViT Fusion and Ensemble Learning for the Automatic Detection of Pes Planus
    Dogan, Kamil
    Selcuk, Turab
    Yilmaz, Abdurrahman
    JOURNAL OF CLINICAL MEDICINE, 2024, 13 (16)
  • [28] Combining CNN and MRF for road detection
    Geng, Lei
    Sun, Jiangdong
    Xiao, Zhitao
    Zhang, Fang
    Wu, Jun
    COMPUTERS & ELECTRICAL ENGINEERING, 2018, 70 : 895 - 903
  • [29] LDC: Lightweight Dense CNN for Edge Detection
    Soria, Xavier
    Pomboza-Junez, Gonzalo
    Domingo Sappa, Angel
    IEEE ACCESS, 2022, 10 : 68281 - 68290
  • [30] TinySegformer: A lightweight visual segmentation model for real-time agricultural pest detection
    Zhang, Yan
    Lv, Chunli
    COMPUTERS AND ELECTRONICS IN AGRICULTURE, 2024, 218