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 条
  • [31] Multi-Scale and Multi-Factor ViT Attention Model for Classification and Detection of Pest and Disease in Agriculture
    Xie, Mingyao
    Ye, Ning
    APPLIED SCIENCES-BASEL, 2024, 14 (13):
  • [32] An augmented attention-based lightweight CNN model for plant water stress detection
    Mohd Hider Kamarudin
    Zool Hilmi Ismail
    Noor Baity Saidi
    Kousuke Hanada
    Applied Intelligence, 2023, 53 : 20828 - 20843
  • [33] An augmented attention-based lightweight CNN model for plant water stress detection
    Kamarudin, Mohd Hider
    Ismail, Zool Hilmi
    Saidi, Noor Baity
    Hanada, Kousuke
    APPLIED INTELLIGENCE, 2023, 53 (18) : 20828 - 20843
  • [34] Line detection via a lightweight CNN with a Hough Layer
    Teplyakov, Lev
    Kaymakov, Kirill
    Shvets, Evgeny
    Nikolaev, Dmitry
    THIRTEENTH INTERNATIONAL CONFERENCE ON MACHINE VISION (ICMV 2020), 2021, 11605
  • [35] A Lightweight Pest Detection Model for Drones Based on Transformer and Super-Resolution Sampling Techniques
    Bai, Yuzhe
    Hou, Fengjun
    Fan, Xinyuan
    Lin, Weifan
    Lu, Jinghan
    Zhou, Junyu
    Fan, Dongchen
    Li, Lin
    AGRICULTURE-BASEL, 2023, 13 (09):
  • [36] Deep Learning Approach Combining Lightweight CNN Architecture with Transfer Learning: An Automatic Approach for the Detection and Recognition of Bangladeshi Banknotes
    Linkon, Ali Hasan Md
    Labib, Md Mahir
    Bappy, Faisal Haque
    Sarker, Soumik
    Jannat, Marium-E
    Islam, Md Saiful
    PROCEEDINGS OF 2020 11TH INTERNATIONAL CONFERENCE ON ELECTRICAL AND COMPUTER ENGINEERING (ICECE), 2020, : 214 - 217
  • [37] A novel model based on CNN for improving computation efficiency on arrhythmia detection by combining HMM
    Pan, Shing-Tai
    Wu, Cheng-Hao
    BIOMEDICAL SIGNAL PROCESSING AND CONTROL, 2025, 106
  • [38] A Unified Lightweight CNN-based Model for Disease Detection and Identification in Corn, Rice, and Wheat
    Verma, Sahil
    Kumar, Prabhat
    Singh, Jyoti Prakash
    IETE JOURNAL OF RESEARCH, 2024, 70 (03) : 2481 - 2492
  • [39] BrainNeXt: novel lightweight CNN model for the automated detection of brain disorders using MRI images
    Poyraz, Melahat
    Poyraz, Ahmet Kursad
    Dogan, Yusuf
    Gunes, Selva
    Mir, Hasan S.
    Paul, Jose Kunnel
    Barua, Prabal Datta
    Baygin, Mehmet
    Dogan, Sengul
    Tuncer, Turker
    Molinari, Filippo
    Acharya, Rajendra
    COGNITIVE NEURODYNAMICS, 2025, 19 (01)
  • [40] Self-Supervised Lightweight Depth Estimation in Endoscopy Combining CNN and Transformer
    Yang, Zhuoyue
    Pan, Junjun
    Dai, Ju
    Sun, Zhen
    Xiao, Yi
    IEEE TRANSACTIONS ON MEDICAL IMAGING, 2024, 43 (05) : 1934 - 1944