An Attention-Based Deep Learning Framework for Detecting Water Stress in Basil (Ocimum basilicum L.) Plants
Oğuzhan Kilim, Tuncay Yiğit, Hamit ArmağanWith the occurrence of global climate change and the depletion of agricultural water resources, there is a growing need to develop rapid, non-destructive, and autonomous plant health monitoring systems. As an economically valuable crop, Ocimum basilicum L. (basil) is sensitive to changes in water availability and may exhibit stress-related morphological variations under drought and over-irrigation conditions. However, due to the visual similarity of leaf symptoms under drought stress, waterlogging stress, and optimal irrigation conditions, accurately distinguishing these conditions remains challenging in practical applications. To address this challenge, this paper presents an attention-based dual-branch deep learning framework designed to extract both subtle leaf details and channel-related features from high-resolution plant images. By combining the Convolutional Block Attention Module (CBAM) and Squeeze-and-Excitation (SE) mechanism in a parallel structure, the proposed network improves the analysis of high-resolution images with an input size of 720 × 720 pixels. Under controlled environmental conditions, with ground-truth labels obtained using soil moisture sensor measurements, the proposed model was compared with eight deep learning architectures, including DenseNet121, InceptionV3, and VGG16. The proposed model achieved a hold-out evaluation accuracy of 99.54%, outperforming the second-best model, DenseNet121, which achieved 96.43%. In addition, the proposed model reached a class-specific precision value of 100% for the Drought Stress category and achieved an area under the receiver operating characteristic curve of 1.00 under the controlled experimental setting. Taylor Diagram analysis also indicated that the model closely preserved the variability pattern of the reference data. These results suggest that the proposed application-specific framework may support non-destructive basil water-stress detection under controlled conditions. After further validation with larger datasets, different cultivars, variable environmental conditions, and real-world agricultural scenarios, the proposed approach may contribute to precision irrigation management and sustainable agricultural production. The contribution of this study should be interpreted as an application-specific implementation and evaluation of complementary attention mechanisms for controlled-environment basil water-stress classification, rather than as the introduction of a fundamentally new deep learning methodology.