Ensemble of Efficient Vision Transformers for Insect Classification
Source abstract
Abstract
Real-time identification of insect pests is an important research direction in modern agricultural management, directly influencing crop health and yield. Recent advances in computer vision and deep learning, especially vision transformer (ViT) architectures, have demonstrated great potential in addressing this challenge. The present study explores the possibility of combining some ViT models for the insect pest classification task to improve system performance and robustness. Two popular and widely known datasets, D0 and IP102, which consist of diverse digital images with complex contexts of insect pests, were used. The proposed methodology involved training several individual ViT models on the chosen datasets, finally creating an ensemble strategy to fuse their results. A new combination method was used, based on the F1 score of individual models and a meta-classifier structure, capitalizing on the strengths of each base model and effectively capturing complex features for the final prediction. The experimental results indicated that the proposed ensemble methodology significantly outperformed the individual ViT models, observing notable improvements in classification accuracy for both datasets. Specifically, the ensemble model achieved a test accuracy of 99.87% and an F1 score of 99.82% for the D0 dataset, and an F1 score of 84.25% for IP102, demonstrating the method’s effectiveness for insect pest classification from different datasets. The noted features pave the way for implementing reliable and effective solutions in the agricultural pest management process.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Smart Agriculture and AI · Date Palm Research Studies
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Faculty of Automatic Control and Computers, National University of Science and Technology POLITEHNICA Bucharest, 060042 Bucharest, Romania
Faculty of Electrical Engineering Electronics and Information Technology, Valahia University of Targoviste, 13 Aleea Sinaia Street, 130004 Targoviste, Romania
References (49)
Show source-provided references
1. Crop pest recognition in real agricultural environment using convolutional neural networks by a parallel attention mechanism10.3389/fpls.2022.839572 ↗
2. Huo, Y., Jin, K., Cai, J., Xiong, H., and Pang, J. (2023, January 6–8). Vision transformer (ViT)-based applications in image classification. Proceedings of the IEEE 9th Intl Conference on Big Data Security on Cloud (BigDataSecurity), IEEE Intl Conference on High Performance and Smart Computing, (HPSC) and IEEE Intl Conference on Intelligent Data and Security (IDS), New York, NY, USA.10.1109/BigDataSecurity-HPSC-IDS58521.2023.00033 ↗
3. Deep-learning-based counting methods, datasets, and applications in agriculture: A review10.1007/s11119-023-10034-8 ↗
4. Machine learning and deep learning. Electron10.1007/s12525-021-00475-2 ↗
5. Identify and classify pests in the agricultural sector using metaheuristics deep learning approach10.1016/j.fraope.2023.100024 ↗
6. Deep learning in agriculture: A survey10.1016/j.compag.2018.02.016 ↗
7. A comparative study of deep learning and internet of things for precision agriculture10.1016/j.engappai.2023.106034 ↗
8. Deep learning based computer vision approaches for smart agricultural applications
9. Vision transformer meets convolutional neural network for plant disease classification10.1016/j.ecoinf.2023.102245 ↗
10. Next generation of computer vision for plant disease monitoring in precision agriculture: A contemporary survey, taxonomy, experiments, and future direction10.1016/j.ins.2024.120338 ↗
11. Reedha, R., Dericquebourg, E., Canals, R., and Hafiane, A. (2022). Transformer neural network for weed and crop classification of high resolution UAV images. Remote Sens., 14.10.3390/rs14030592 ↗
12. Multi-task learning model for agricultural pest detection from crop-plant imagery: A Bayesian approach10.1016/j.compag.2024.108719 ↗
13. Out-of-distribution detection algorithms for robust insect classification10.34133/plantphenomics.0170 ↗
14. Tannous, M., Stefanini, C., and Romano, D. (2023). A deep-learning-based detection approach for the identification of insect species of economic importance. Insects, 14.10.3390/insects14020148 ↗
15. Large-scale insect pest image classification
16. Data-efficient crop pest recognition based on KNN distance entropy
17. An ensemble machine learning approach for classification tasks using feature generation10.1080/09540091.2023.2231168 ↗
18. In-network ensemble: Deep ensemble learning with diversified knowledge distillation10.1145/3473464 ↗
19. Ensemble deep learning: A review10.1016/j.engappai.2022.105151 ↗
20. A lightweight open-world pest image classifier using ResNet8-based matching network and NT-Xent loss function10.1016/j.eswa.2023.121395 ↗
21. Enhancing tuta absoluta detection on tomato plants: Ensemble techniques and deep learning10.3390/ai4040050 ↗
22. An ensemble learning integration of multiple CNN with improved vision transformer models for pest classification
23. Crop pest classification with a genetic algorithm-based weighted ensemble of deep convolutional neural networks10.1016/j.compag.2020.105809 ↗
24. Nguyen, T.T., Nguyen, H.T., Ung, H.Q., Ung, H.T., and Nguyen, B.T. (2024). Deep-Wide Learning Assistance for Insect Pest Classification. arXiv.
25. Fine-Grained Crop Pest Classification Based on Multi-Scale Feature Fusion and Mixed Attention Mechanisms10.3389/fpls.2025.1500571 ↗
26. Swin Attention Augmented Residual Network: A Fine-Grained Pest Image Recognition Method10.3389/fpls.2025.1619551 ↗
27. Do we need hundreds of classifiers to solve real world classification problems?
28. Xie, C., Wang, R., Zhang, J., Chen, P., Dong, W., Li, R., Chen, T., and Chen, H. (2018). Multi-level learning features for automatic classification of field crop pests. Comput. Electron. Agric., 233–241.10.1016/j.compag.2018.07.014 ↗
29. Wu, X., Zhan, C., Lai, Y.-K., Cheng, M.-M., and Yang, J. (2019, January 11–15). IP102: A large-scale benchmark dataset for insect pest recognition. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, TN, USA.10.1109/CVPR.2019.00899 ↗
30. Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., and Gelly, S. (2020, January 3–7). An image is worth 16x16 words: Transformers for image recognition at scale. Proceedings of the International Conference on Learning Representations (ICLR 2021), Virtual Event.
31. Touvron, H., Cord, M., Douze, M., Massa, F., Sablayrolles, A., and Jégou, H. (2021, January 18–24). Training data-efficient image transformers & distillation through attention. Proceedings of the 38th International Conference on Machine Learning (ICML), Virtual.
32. MaxViT: Multi-axis vision transformer10.1007/978-3-031-20053-3_27 ↗
33. Hatamizadeh, A., Heinrich, G., Yin, H., Tao, A., Alvarez, J.M., Kautz, J., and Molchanov, P. (2023, January 7–11). FasterViT: Fast vision transformers with hierarchical attention. Proceedings of the 12th International Conference on Learning Representations (ICLR 2024), Vienna, Austria.
34. Ali, A., Touvron, H., Caron, M., Bojanowski, P., Douze, M., Joulin, A., Laptev, I., Neverova, N., Synnaeve, G., and Verbeek, J. (2021, January 6–14). XCiT: Cross-covariance image transformers. Proceedings of the 35th International Conference on Neural Information Processing Systems (NeurIPS 2021), Online.
35. New trends in detection of harmful insects and pests in modern agriculture using artificial neural networks: A review10.3389/fpls.2023.1268167 ↗
36. Additive logistic regression: A statistical view of boosting (with discussion and a rejoinder by the authors)10.1214/aos/1016218223 ↗
37. Tassi, C.R.N., Gawlikowski, J., Fitri, A.U., and Triebel, R. (March, January 28). The impact of averaging logits over probabilities on ensembles of neural networks. Proceedings of the Workshop on Artificial Intelligence Safety (AISafety 2022), Vancouver, BC, Canada.
38. A survey on machine learning in Internet of Things: Algorithms, strategies, and applications10.1016/j.iot.2020.100314 ↗
39. The relative performance of ensemble methods with deep convolutional neural networks for image classification10.1080/02664763.2018.1441383 ↗
40. AM-ResNet: Low-energy-consumption addition-multiplication hybrid ResNet for pest recognition10.1016/j.compag.2022.107357 ↗
41. CNN and transformer framework for insect pest classification10.1016/j.ecoinf.2022.101846 ↗
42. Deep multibranch fusion residual network for insect pest recognition10.1109/TCDS.2020.2993060 ↗
43. DFF-ResNet: An insect pest recognition model based on residual networks10.26599/BDMA.2020.9020021 ↗
44. MS-ALN: Multiscale attention learning network for pest recognition10.1109/ACCESS.2022.3167397 ↗
45. Pest recognition based on multi-image feature localization and adaptive filtering fusion10.3389/fpls.2023.1282212 ↗
46. Visual regenerative fusion network for pest recognition10.1007/s00521-023-09173-w ↗
47. Comparative study of ensemble models of deep convolutional neural networks for crop pests classification10.1007/s11042-023-14884-2 ↗
48. Exploring deep ensemble model for insect and pest detection from images10.1016/j.procs.2023.01.208 ↗
49. Dong, Z., Wei, X., Wu, Y., Guo, J., and Zeng, Z. (2024). Enhanced pest recognition using multi-task deep learning with the discriminative attention multi-network. Appl. Sci., 14.10.3390/app14135543 ↗