From Benchmark Accuracy to Field Performance: Hybrid Deep Learning-Based Plant Disease Classification with IoT-Enabled Environmental Monitoring
Accurate detection of plant leaf diseases is essential for enhancing crop productivity and supporting global food security. In addition to disease classification, understanding how environmental and soil conditions affect model performance is important for developing robust real-world agricultural monitoring systems. Although deep learning (DL) models achieve high accuracy on benchmark datasets, their performance in real-world settings is often limited by variations in illumination, background complexity, and environmental conditions. This study proposes a smart DL framework for detecting and classifying multiple leaf diseases in tomato, potato, and pepper plants. The framework combines U2-Net-based leaf segmentation with a Convolutional Neural Network–Bidirectional Gated Recurrent Unit (CNN–Bi-GRU) architecture. MobileNetV2 is employed as the feature extraction backbone to capture spatial characteristics, while Bi-GRU layers model sequential feature dependencies, forming a spatio-temporal network whose architectural design prioritizes parameter efficiency through depthwise separable convolutions and reduced gating complexity. The model was trained and validated using the PlantVillage benchmark dataset and achieved a classification accuracy of 99.8% with a macro-averaged F1-score of 94%, outperforming several state-of-the-art architectures. To assess robustness under real-world conditions, the trained model was further tested on leaf images collected from open-field environments near Eluru, South India. The field evaluation revealed a reduction in classification accuracy to 61.97%, indicating the impact of domain shift and environmental variability. To investigate potential contributing factors, soil parameters, including pH, temperature, moisture, and NPK levels, were monitored using an IoT-based Arduino sensing system over ten consecutive days. Rather than serving as direct inputs to the disease classification model, these environmental measurements were analyzed to assess their potential influence on disease symptom expression and the observed reduction in model performance under field conditions. The results suggest that environmental conditions may influence disease symptom expression and model transferability. This study highlights the importance of integrating DL-based disease recognition with environmental monitoring for reliable field-level agricultural applications. Nevertheless, computational complexity metrics, including inference latency and memory footprint, were not evaluated in the present work and are identified as a priority for future edge deployment studies.