Meta-Learning Guided Pruning for Few-Shot Plant Pathology on Edge Devices
Shahnawaz Alam, Mohammed Mudassir Uddin, Mohammed Kaif Pasha
TL;DR
This work tackles deploying plant-disease detectors on edge devices under limited labeled data by integrating pruning with few-shot learning. The DACIS scoring mechanism combines gradient sensitivity, activation variance, and Fisher-based class separability to identify disease-relevant channels, within a Prune-then-Meta-Learn-then-Prune (PMP) three-stage pipeline that alternates pruning and episodic meta-learning. Empirical results on PlantVillage and PlantDoc show substantial compression (up to 78% fewer parameters) with minimal accuracy loss (about 92% of the full model) and edge-appropriate throughput (e.g., 67 FPS on target hardware), along with deployment-focused metrics such as the Deployment Efficiency Score (DES). The framework advances practical edge deployment for smallholder farmers, enabling real-time disease diagnosis with limited data and resources, while remaining extensible to other domains through its modular DACIS components and PMP structure.
Abstract
Farmers in remote areas need quick and reliable methods for identifying plant diseases, yet they often lack access to laboratories or high-performance computing resources. Deep learning models can detect diseases from leaf images with high accuracy, but these models are typically too large and computationally expensive to run on low-cost edge devices such as Raspberry Pi. Furthermore, collecting thousands of labeled disease images for training is both expensive and time-consuming. This paper addresses both challenges by combining neural network pruning -- removing unnecessary parts of the model -- with few-shot learning, which enables the model to learn from limited examples. This paper proposes Disease-Aware Channel Importance Scoring (DACIS), a method that identifies which parts of the neural network are most important for distinguishing between different plant diseases, integrated into a three-stage Prune-then-Meta-Learn-then-Prune (PMP) pipeline. Experiments on PlantVillage and PlantDoc datasets demonstrate that the proposed approach reduces model size by 78\% while maintaining 92.3\% of the original accuracy, with the compressed model running at 7 frames per second on a Raspberry Pi 4, making real-time field diagnosis practical for smallholder farmers.
