The accuracy, loss, validation accuracy and validation loss of the Alexnet model were reported during the course of 150 epochs of training (Fig 3). The results show that the model’s performance has been steadily improving, with notable increases in both training and validation accuracy. The model began at Epoch 1 with a high loss of 1.4608 and a low accuracy of 30.03%. With a validation loss of 1.1776, the validation accuracy was 47.57%. This suggested that the model needed additional training because it was still in its early learning stage. Performance considerably enhanced by Epoch 50. The loss decreased to 0.3643 and the training accuracy attained 84.64%. While the validation loss decreased to 0.3353, the validation accuracy rose to 85.07%. The model was learning in an efficient manner.
At Epoch 100, the training accuracy rose to 92.45%, with a lower loss of 0.1850. The validation accuracy improved to 94.79% and the validation loss dropped further to 0.1654. This showed that the model was achieving a strong classification ability. By Epoch 150, the training accuracy peaked at 96.26% and the loss reached 0.1038. The validation accuracy was 96.18%, with a slight increase in validation loss to 0.1773. This indicated that the model was well-trained and highly accurate.
The training trends showed steady improvement. The loss decreased while accuracy increased, demonstrating efficient learning. The small gap between training and validation accuracy suggested minimal overfitting. Although validation loss slightly increased towards the final epochs, the validation accuracy remained high. This suggested that the model maintained strong generalization ability. The overall improvement in accuracy proved that the model successfully learned complex features and was reliable for real-world applications.
The confusion matrix provides insights into the model’s classification performance for different leaf conditions (Fig 4). It shows the number of correctly and incorrectly classified instances for each class. The diagonal values represent correctly classified samples, while off-diagonal values indicate misclassifications. For early leaf spot, the model correctly classified 94 samples, with 8 misclassified as healthy leaf. No samples were confused with late leaf spot, nutrition deficiency, or rust. This indicates strong classification performance, with minor confusion related to healthy leaves. For healthy leaf, 107 samples were correctly classified, but 11 were misclassified as early leaf spot and 1 as nutrition deficiency. The model showed slight difficulty in distinguishing between healthy leaves and diseased ones, leading to a few misclassifications.
For late leaf spot, the model correctly classified 76 samples, with only 1 misclassified as nutrition deficiency. The model demonstrated strong performance in recognizing late leaf spot, with minimal classification errors. Regarding nutrition deficiency, 34 samples were correctly classified, with 1 misclassified as rust. The minor misclassification suggests slight similarities in visual features between these two conditions. For rust, the model achieved perfect classification, correctly identifying all 19 samples with no misclassifications. This indicates the model’s high reliability in detecting rust-affected leaves. Overall, the confusion matrix shows strong classification performance, with high accuracy across all classes. Most misclassifications occurred between early leaf spot and healthy leaf, highlighting a potential area for further improvement. Despite these minor errors, the model demonstrated excellent generalization in recognizing different leaf conditions.
The classification report provides a detailed evaluation of the model’s performance across different leaf conditions (Table 1). For early leaf spot, the model achieved a precision of 0.8952, meaning that 89.52% of the predicted cases were correct. The recall was 0.9216, showing that the model correctly identified 92.16% of actual early leaf spot cases. The F1-score, which balances precision and recall, was 0.9082, indicating strong classification performance. For healthy leaf, the precision was 0.9304 and the recall was 0.8992. This means that while most predicted healthy leaves were accurate, some were misclassified. The F1-score of 0.9145 suggests good overall classification but with minor misclassifications compared to early leaf spot.
For late leaf spot, the model performed exceptionally well, with a perfect precision of 1.000 and a recall of 0.987. This indicates that all predicted late leaf spot cases were correct, with only a small number of actual cases missed. The high F1-score of 0.9935 confirms strong classification ability for this condition. For nutrition deficiency, both precision and recall were 0.9714, resulting in the same F1-score. This suggests that the model identified and predicted this class with a high degree of accuracy. For rust, the precision was 0.9048, meaning that 90.48% of predicted rust cases were correct. The recall was 1.000, showing that all actual rust cases were detected. The F1-score of 0.9500 indicates that the model performed well in recognizing rust but had a few misclassifications.
The overall accuracy of the model was 93.75%, demonstrating its strong ability to classify different leaf conditions correctly. The macro average F1-score was 0.9475, reflecting balanced performance across all classes. The weighted average F1-score was 0.9375, confirming the model’s robustness, considering the number of samples in each class. These results indicate that the model performs well across all classes, with particularly strong accuracy for late leaf spot and nutrition deficiency. However, slight misclassifications between early leaf spot and healthy leaf suggest room for further refinement in feature differentiation.
The multi-class ROC curve illustrates the classification performance of the model across different leaf conditions (Fig 5). The true positive rate (TPR) is plotted against the false positive rate (FPR) to evaluate the model performance. The area under the curve (AUC) provides a measure of classification effectiveness, with higher values indicating better performance. For early leaf spot, the AUC was 0.8115, showing moderate classification performance. The curve suggests some false positives, indicating that the model has difficulty in distinguishing early leaf spots from other conditions. The healthy leaf class has an AUC of 0.8968, indicating good classification ability. However, some misclassifications still occur, as reflected by the curve’s shape. The late leaf spot class achieves an AUC of 0.9464, demonstrating strong performance. The steepness of the curve suggests that the model effectively distinguishes late leaf spot from other classes with minimal false positives. For nutrition deficiency, the AUC is 0.9547, showing high classification accuracy. The curve indicates that the model can reliably identify nutrition deficiency cases with minimal errors. The rust class achieves the highest AUC of 0.9680, indicating excellent classification performance. The curve is nearly optimal, suggesting that the model identifies rust cases with high accuracy and minimal misclassification. Overall, the ROC curves and AUC values indicate strong classification performance, with rust and nutrition deficiency being the most accurately classified. The early leaf spot class has the lowest AUC, indicating that the model struggles slightly in differentiating it. Future improvements in feature extraction and dataset expansion could enhance classification accuracy, especially for early leaf spot.
The classification performance of the model is demonstrated through leaf images, where the model’s predictions are compared against actual labels (Fig 6). Each image represents a different condition and the corresponding confidence scores indicate the model’s certainty in its predictions. In the first row, the model misclassified healthy leaves as early leaf spot with confidence scores of 94.19% and 86.76%, indicating a challenge in distinguishing between healthy and diseased leaves. The third image correctly identified early leaf spot with 97.55% confidence, showing strong classification ability for this disease.
In the second row, the model achieved 100% confidence in identifying late leaf spot and 99.49% confidence in identifying nutrition deficiency, suggesting high reliability in detecting these conditions. However, in the last image of this row, the model identified nutrition deficiency with only 50.6% confidence, indicating uncertainty in differentiating mild cases of nutrient deficiency from other conditions. The third row contains both correct and incorrect predictions. One case of early leaf spot was misclassified as a healthy leaf despite a 99.95% confidence score, indicating a potential overfitting issue. The next image correctly identified early leaf spot with 99.75% confidence, demonstrating the model’s ability to recognize distinct symptoms of the disease. The last image in this row shows late leaf spot correctly identified with 100% confidence, reinforcing the model’s accuracy for this class.
Overall, the model exhibits high accuracy for most conditions, particularly for late leaf spot and early leaf spot, with confidence levels above 99% in most cases. However, the misclassification of healthy leaves and uncertain predictions in mild nutrition deficiency cases highlight areas for improvement. Future enhancements could include increasing dataset diversity, refining feature extraction techniques and employing ensemble learning approaches to improve classification robustness and generalization.
Table 2 presents a comparison of the proposed work with existing studies.
Bama and Priyadharsini (2022) reported high accuracy, with SVM achieving 99.84%; however, their dataset included PlantVillage images, which may lack real-world variability.
Rakholia et al., (2022) used a CNN with progressive resizing and achieved 96.12% accuracy on a dataset from Gujarat.
Maheswaran et al., (2022) also applied CNN-based methods and reported 96.50% accuracy using real farm data.
Abhilasha et al., (2023) utilized ResNet50 and achieved a lower accuracy of 82.30% on real-time field data. More recently,
Paramanandham et al., (2024) proposed the LeafNet architecture and achieved 97.23% accuracy. In comparison, the proposed Alexnet model achieved 97.83% accuracy, demonstrating good performance.