TomaNet-6H: towards transparent plant disease detection using a modified CNN with Grad-CAM for tomato leaves
Abstract
Plant diseases pose a critical challenge to agricultural productivity, underscoring the need for rapid and reliable automated detection methods. Manual disease identification is labor-intensive and error-prone, whereas deep learning techniques offer scalable alternatives. This study evaluates five convolutional neural network (CNN) architectures—XceptionNet, DenseNet121, a baseline five-layer CNN, a six-layer CNN, and a proposed custom architecture, TomaNet-6H—for classifying tomato leaf conditions using the PlantVillage dataset. Image preprocessing combines color space transformations and Contrast Limited Adaptive Histogram Equalization (CLAHE), alongside targeted data augmentation to mitigate class imbalance. Experimental results demonstrate that TomaNet-6H achieves a test accuracy of 97.42% and a macro F1-score of 96.60%, while maintaining moderate computational complexity (∼7M parameters) and an inference latency of 68.4 ms per image. Furthermore, Grad-CAM visualizations qualitatively indicate that the network predominantly focuses on symptomatic leaf areas rather than background artifacts. These findings highlight TomaNet-6H as an effective, resource-conscious framework for precision agriculture deployment.