Multi-Class Pest Recognition in Agricultural Environment: From Efficient Training to Deployment
Author (s)
Adamsay Turay
Abstract
Agriculture sustains the livelihoods of millions across Sierra Leone and sub-Saharan Africa, yet insect pests cause substantial crop losses each year. Traditional pest identification depends on informal farmer experience, delaying effective intervention. Although deep learning has demonstrated strong potential for automated pest recognition, most studies focus narrowly on classification accuracy and overlook the practical challenge of deploying models in resource-limited settings. This study proposes an integrated pipeline combining model training, comparative architectural evaluation, compiler-based deployment optimization, and end-user interface development, designed explicitly for the hardware constraints of sub-Saharan agricultural environments. Two architectures MobileNetV2 (a lightweight convolutional neural network) and Vision Transformer (ViT-B/16) were trained and evaluated under identical conditions on the IP102 benchmark dataset, which contains over 75,000 images across 102 pest categories. Classification performance was assessed using accuracy, precision, recall, and F1-score, alongside deployment metrics including parameter count, model size, and inference latency. Trained models were compiled using Apache TVM and executed on CPU-only hardware to assess deployment feasibility. Numerical verification confirmed that compiled models retained high consistency with PyTorch outputs (cosine similarity ≈ 0.9963). Vision Transformer achieved 69.17% test accuracy, outperforming MobileNetV2 (53.8%) by 15.37 percentage points a statistically significant difference (z ≈ 30.1, p < 0.0001) while MobileNetV2 offered substantially lower computational cost (4.2M parameters, 16 MB versus 87.3M parameters, 349 MB). A web-based application achieved average inference latency of 241 ms under CPU-only conditions. Field validation on locally collected Sierra Leonean pest images remains an important avenue for future work. These findings provide empirical guidance for selecting between accuracy-optimized and efficiency-optimized architectures and demonstrate that compiler-based deployment is a scientifically viable pathway for agricultural AI in low-resource settings.
Key words: Agricultural pest recognition, Deep learning, MobileNetV2, Vision Transformer, Apache TVM, IP102, Edge AI, Resource-constrained deployment.
| Title: | Multi-Class Pest Recognition in Agricultural Environment: From Efficient Training to Deployment |
|---|---|
| Author: | Adamsay Turay |
| Journal Name: | Journal of Scientific Reports |
| Website: | http://ijsab.com/jsr |
| ISSN: | ISSN: 2708-7085 (Online), ISSN: 3079-9317 (Print) |
| Publisher | IJSAB International |
| DOI: | https://doi.org/10.58970/JSR.1186 |
| Media: | Online |
| Volume: | 13 |
| Issue: | 1 |
| Acceptance Date: | 15/07/2026 |
| Date of Publication: | 19/07/2026 |
| PDF URL: | http://ijsab.com/wp-content/uploads/1186.pdf |
| Free download: | Available |
| Page: | 290-310 |
| First Page: | 290 |
| Last Page: | 310 |
| Paper Type: | Research Paper |
| Current Status: | Published |
Cite This Article:
Turay, A. (2026). Multi-Class Pest Recognition in Agricultural Environment: From Efficient Training to Deployment, Journal of Scientific Reports, 13(1), 290-310. DOI: https://doi.org/10.58970/JSR.1186
About Author (s)
Adamsay Turay, School of Software Engineering, Nankai University, Tianjin, China. ORCID: https://orcid.org/0009-0007-3813-5110
DOI: https://doi.org/10.58970/JSR.1186
