An intelligent edge AI framework for real-time plant disease detection using deep learning under complex field environments
Sejal Rahul Trivedi, Neha SharmaPurpose
Conventional plant disease detection is time-consuming and prone to human error. The purpose of this study is to propose an edge artificial intelligence (AI)-based deep learning framework for plant disease detection under real-field conditions. The model integrates convolutional neural networks (CNNs) with a Sliding Window Mean Absolute Deviation (SWMAD) preprocessing technique to address illumination variability and complex background conditions.
Design/methodology/approach
A dual-layer CNN model is developed for plant disease classification using HSV segmentation, flood-fill segmentation and SWMAD preprocessing to handle real-field variations. The model is trained on PlantVillage and real farm images and deployed via TensorFlow Lite for real-time offline detection. TensorFlow Lite is used to enable efficient on-device inference for deployment in resource-constrained environments.
Findings
Benchmark experiments conducted on the PlantVillage dataset achieved a classification accuracy of 99.91% under controlled conditions. On the hybrid dataset comprising PlantVillage and real-field images, the optimized CNN framework achieved a validation accuracy of 95.01% following extensive evaluation of optimizers, layer architectures and worker configurations. The integration of the proposed SWMAD preprocessing technique into the finalized architecture further improved the validation accuracy to 97.38%, demonstrating enhanced robustness and classification performance under practical agricultural conditions in the final deployed model.
Originality/value
The originality of this study lies in several novel contributions. First, we introduce an SWMAD-based preprocessing technique, which enhances local statistical variations in leaf images by capturing pixel-level deviations from neighborhood intensity means. Unlike, conventional preprocessing methods, SWMAD is specifically designed to handle real-field challenges such as illumination variation, noise and complex backgrounds. The improvement in validation accuracy demonstrates the effectiveness of the proposed approach in capturing more discriminative features compared to existing techniques, thereby improving overall model robustness and reliability in practical agricultural environments.