Edge-enabled smart agriculture framework: Integrating IoT, lightweight deep learning, and agentic AI for context-aware farming

Abstract

Smart farming in connectivity-limited, energy-sensitive environments demands on-device perception and decision-making to reduce latency and cloud dependence. This article proposes an edge-enabled smart agriculture framework that integrates lightweight deep learning, rule-based agentic AI, and Internet of Things (IoT) devices for real-time, autonomous farming decisions. The system features two vision-based models—one for weather classification and one for crop identification—built on the MiT-B0 Vision Transformer architecture and optimized for low-resolution (128 × 128) image inputs. These models run on resource-constrained hardware suitable for rural deployment and support efficient, on-device processing. Weather prediction spans 11 classes (e.g., frost, lightning, rain, sandstorm), while crop classification covers 5 major crops. The system achieves an accuracy of 88 % for weather and 93 % for crops, with high F1-scores and low MAE, Kappa, and Hamming loss values. Predictions are interpreted by a rule-based agentic AI layer that triggers actions across multiple IoT actuators, such as smart irrigation, NDVI sensors, frost alarms, drones, and pest detectors. The decision engine supports both joint rule logic (e.g., activating hail protectors when hail is detected in maize fields) and fallback single-condition rules. Python-implemented case studies show seamless model–AI–IoT interaction in combined and separate scenarios. By minimizing cloud dependency, reducing communication overhead, and enabling low-power operation, the proposed framework addresses critical challenges in connectivity-limited, energy-sensitive agricultural contexts. It demonstrates the potential for scalable and intelligent smart farming, aligning with the goals of sustainable Agriculture 4.0. Keywords: Agentic AI, Edge computing, Internet of things (IoT), Low-power deep learning, Precision farming

Keywords

Citation

Tariq, M. U., Saqib, S. M., Mazhar, T., Khan, M. A., Shahzad, T., & Hamam, H. (2025). Edge-enabled smart agriculture framework: Integrating IoT, lightweight deep learning, and agentic AI for context-aware farming. Results in Engineering, 107342.

Collections

Endorsement

Review

Supplemented By

Referenced By