MobilePlantViT: A Mobile-friendly Hybrid ViT for Generalized Plant Disease Image Classification
Moshiur Rahman Tonmoy, Md. Mithun Hossain, Nilanjan Dey, M. F. Mridha
TL;DR
MobilePlantViT tackles the challenge of on-device plant disease classification by introducing a lightweight, hybrid Vision Transformer architecture that balances accuracy and efficiency. The model uses DepthConv stems, hierarchical GroupConv blocks with CBAM attention, patch embeddings, and a linear self-attention encoder to achieve strong performance with only 0.69M parameters. Across PlantVillage, CCMT, Sugarcane, and Coconut datasets, it delivers high accuracies and demonstrates benefits from domain-specific pretraining, outperforming equivalent lightweight ViTs despite fewer parameters. The results highlight the model’s potential for practical, resource-efficient AI-powered plant health monitoring on mobile and edge devices, with avenues for future domain expansion and pretraining strategies.
Abstract
Plant diseases significantly threaten global food security by reducing crop yields and undermining agricultural sustainability. AI-driven automated classification has emerged as a promising solution, with deep learning models demonstrating impressive performance in plant disease identification. However, deploying these models on mobile and edge devices remains challenging due to high computational demands and resource constraints, highlighting the need for lightweight, accurate solutions for accessible smart agriculture systems. To address this, we propose MobilePlantViT, a novel hybrid Vision Transformer (ViT) architecture designed for generalized plant disease classification, which optimizes resource efficiency while maintaining high performance. Extensive experiments across diverse plant disease datasets of varying scales show our model's effectiveness and strong generalizability, achieving test accuracies ranging from 80% to over 99%. Notably, with only 0.69 million parameters, our architecture outperforms the smallest versions of MobileViTv1 and MobileViTv2, despite their higher parameter counts. These results underscore the potential of our approach for real-world, AI-powered automated plant disease classification in sustainable and resource-efficient smart agriculture systems. All codes will be available in the GitHub repository: https://github.com/moshiurtonmoy/MobilePlantViT
