Hybrid Knowledge Transfer through Attention and Logit Distillation for On-Device Vision Systems in Agricultural IoT
Mugisha, Stanley, Kisitu, Rashid, Tushabe, Florence
–arXiv.org Artificial Intelligence
--Integrating deep learning applications into agricultural IoT systems faces a serious challenge of balancing the high accuracy of Vision Transformers (ViTs) with the efficiency demands of resource-constrained edge devices. Large transformer models like the Swin Transformers excel in plant disease classification by capturing global-local dependencies. Lightweight models such as MobileNetV3 and TinyML would be suitable for on-device inference but lack the required spatial reasoning for fine-grained disease detection. T o bridge this gap, we propose a hybrid knowledge distillation framework that synergistically transfers logit and attention knowledge from a Swin Transformer teacher to a MobileNetV3 student model. Our method includes the introduction of adaptive attention alignment to resolve cross-architecture mismatch (resolution, channels) and a dual-loss function optimizing both class probabilities and spatial focus. On the PlantVillage-T omato dataset (18,160 images), the distilled MobileNetV3 attains 92.4% accuracy relative to 95.9% for Swin-L but at an 95% reduction on PC and 82% in inference latency on IoT devices. Key innovations include IoT - centric validation metrics (13 MB memory, 0.22 GFLOPs) and dynamic resolution-matching attention maps. Comparative experiments show significant improvements over standalone CNNs and prior distillation methods, with a 3.5% accuracy gain over MobileNetV3 baselines. Significantly, this work advances real-time, energy-efficient crop monitoring in precision agriculture and demonstrates how we can attain ViT -level diagnostic precision on edge devices. Code and models will be made available for replication after acceptance. The integration of artificial intelligence (AI) into agricultural vision systems has revolutionized precision farming, enabling real-time crop disease detection, yield prediction, and resource optimization [1]-[4].
arXiv.org Artificial Intelligence
Apr-24-2025
- Country:
- Africa
- Tanzania > Dar es Salaam Region
- Dar es Salaam (0.04)
- Uganda (0.04)
- Tanzania > Dar es Salaam Region
- Asia > India (0.04)
- Europe
- Estonia > Tartu County
- Tartu (0.04)
- France > Pays de la Loire
- Loire-Atlantique > Nantes (0.04)
- Italy (0.04)
- Netherlands > Groningen (0.04)
- Estonia > Tartu County
- North America > United States
- New Jersey > Middlesex County > Piscataway (0.04)
- Africa
- Genre:
- Research Report (1.00)
- Industry:
- Education (1.00)
- Food & Agriculture > Agriculture (1.00)
- Information Technology (1.00)
- Technology: