The section outlines the performance of the InceptionV3 model after training and testing. The dataset initially comprised 1,720 high-resolution images; however, after addressing class imbalance and applying preprocessing techniques, 1,204 images were used for model development. Of these, 688 images were used for training and 516 for testing. The training set included 315 images of alternaria leaf spot, 420 healthy leaves, 315 leaf spot (Early and late), 70 rosette and 84 rust. The test set consisted of 135 alternaria leaf spot, 180 healthy, 135 leaf spot (Early and late), 30 rosette and 36 rust images. Although the model was configured to train for 75 epochs, it stopped early at epoch 47 due to an early stopping mechanism that monitored validation loss, indicating optimal convergence.
The accuracy and loss measurements during training the model are plotted in Fig 3. In the first epoch, the model recorded a low training accuracy of 24.17% and validation accuracy of 25.39%, with high loss values (2.0032 and 1.8009, respectively), indicating the learning process had just begun. By epoch 25, the training accuracy increased significantly to 98.57% and the validation accuracy rose to 96.71%, with a considerable reduction in loss values (training loss: 0.1079, validation loss: 0.1473). At epoch 47, the model reached near-optimal performance with training accuracy of 99.84% and validation accuracy of 98.45%, accompanied by low loss values (training loss: 0.0580, validation loss: 0.1342), indicating excellent convergence and generalization.
The confusion matrix provides a clear view of the model’s classification accuracy across the five peanut leaf disease categories (Fig 4). The model correctly classified all 135 samples of alternaria leaf spot, all 30 samples of rosette and all 36 samples of rust, demonstrating perfect prediction performance for these classes. In the healthy category, 179 out of 180 samples were correctly classified, with 1 sample misclassified as alternaria leaf spot. The leaf spot (Early and late) class showed slightly more misclassification, with 127 out of 135 samples correctly identified, while 6 were misclassified as alternaria leaf spot and 2 as healthy. These minor misclassifications suggest some visual similarity between Leaf Spot symptoms and those of alternaria leaf spot or healthy leaves. Despite this, the overall distribution indicates strong class separability and high reliability of the model, particularly for underrepresented classes like Rosette and Rust, which achieved 100% accuracy.
The classification report highlights the strong predictive performance of the proposed InceptionV3-based model across all peanut leaf disease categories (Table 1). The
Alternaria Leaf Spot class achieved a precision of 0.9507, recall of 1.0000 and an F1-score of 0.9747, indicating that all 135 actual cases were correctly identified, although a few samples from other classes were misclassified as this class. The healthy class recorded a precision of 0.9890, recall of 0.9944 and F1-score of 0.9917 across 180 test samples, showing minimal misclassification. The leaf spot (Early and late) class had the lowest recall (0.9407), with a precision of 1.0000 and F1-score of 0.9695, reflecting some confusion with similar classes. Both
Rosette and
Rust achieved perfect scores across all metrics (precision, recall, F1-score = 1.000), despite having fewer test samples (30 and 36, respectively), underscoring the model’s robustness even for underrepresented categories. The model achieved an overall accuracy of 98.26%, with a macro average F1-score of 0.9872 and weighted average F1-score of 0.9825, confirming its high effectiveness in multi-class disease classification.
Fig 5 illustrates a set of representative prediction outputs from the trained model, showing the true class, the predicted class and the associated confidence score (%) for each image. All examples shown were correctly classified by the model, highlighting its robustness and high confidence across multiple peanut leaf disease categories.The predictions for leaf spot (Early and late) (top-left and bottom-left images) were made with high confidence, scoring 99.40% and 99.54%, respectively. These images clearly show visible symptoms such as dark lesions and necrotic areas, which the model correctly identified. The images classified as alternaria leaf spot (middle-right and bottom-right groups) achieved confidence scores ranging from 99.51% to 99.69%, reflecting the model’s reliability in detecting fine-grained variations in leaf texture and spot patterning.
Meanwhile, healthy leaves were also correctly classified with confidence values between 97.99% and 99.39%. These leaves appear free from visible disease symptoms and the model’s high confidence suggests that it effectively learned the distinction between healthy and infected samples. The consistent alignment between the true class, predicted class and high confidence scores across different leaf conditions demonstrates the model’s strong generalization ability and suitability for real-world application in peanut disease diagnosis.
The multi-class ROC curve illustrates the model’s excellent ability to distinguish between the five peanut leaf disease categories (Fig 6). The Area Under the Curve (AUC) values were exceptionally high for all classes: Healthy, rosette and rust each achieved a perfect score of 1.0000, while Alternaria leaf spot and leaf spot (Early and late) recorded AUCs of 0.9992 and 0.9987, respectively. These results indicate that the model has a very high true positive rate with minimal false positives across all classes. The near-perfect AUC values confirm the model’s strong discriminative capability and robust generalization in multi-class classification tasks, further supporting its suitability for practical deployment in peanut disease detection systems.
The precision-recall (PR) curve provides a deeper insight into the model’s classification performance, especially for imbalanced datasets. As shown in Fig 7, the model achieved nearly perfect average precision (AP) scores across all five peanut leaf disease classes. Rosette and rust achieved an AP of 1.0000, indicating flawless precision and recall balance. The healthy class also performed exceptionally well with an AP of 0.9999, followed by alternaria leaf spot and leaf spot (Early and late) with AP scores of 0.9978 and 0.9965, respectively. These consistently high AP values confirm that the model maintains excellent prediction quality across all classes, effectively minimizing both false positives and false negatives. The PR curves further validate the model’s reliability and robustness in real-world disease classification tasks, particularly in scenarios where class imbalance may affect performance.
To further validate the performance and reliability of the proposed model, several advanced evaluation metrics were computed. Cohen’s kappa score was 0.9762, indicating a near-perfect agreement between the predicted and true class labels, well beyond chance level. The log loss, which penalizes incorrect classifications with high confidence, was low at 0.0656, reflecting the model’s well-calibrated probability estimates and high certainty in its predictions. Additionally, the matthews correlation coefficient (MCC), a balanced measure that takes into account true and false positives and negatives, was 0.9765, further confirming the model’s strong overall predictive performance across all classes. These complementary metrics reinforce the findings from the confusion matrix, ROC and PR curves and demonstrate the robustness, reliability and clinical utility of the model in multi-class peanut leaf disease classification.
In addition to accuracy-based metrics, the computational efficiency of the model was evaluated using inference time. The model required approximately 22 seconds to process 516 test images, resulting in an average inference time of about 0.043 seconds (~43 ms) per image on a CPU-based system.
Several studies have explored peanut or groundnut leaf disease classification using both classical machine learning and deep learning techniques (Table 2).
Xu et al., (2023) reported high accuracy (99.69%) using an improved Xception-based model with attention mechanisms, while
Patayon and Crisostomo (2022) achieved 98% accuracy using DenseNet-169.
Vaishnnave et al., (2020) also demonstrated strong performance (99.88%) using a DCNN on the PlantVillage dataset. In contrast, studies using real-world datasets, such as
Aishwarya and Reddy (2023), reported slightly lower accuracy (98.46%), highlighting the challenges of field conditions.
Traditional machine learning approaches, as reported by
Bama and Priyadharsini (2022), achieved high accuracy (~100%); however, these methods rely heavily on manual feature extraction and may lack generalization across diverse datasets. Similarly,
Chetan et al., (2024) showed comparatively lower performance (92.26%) using ResNet50V2, indicating variability across architectures and datasets. More recent work by
Kaur et al., (2024) using fine-tuned InceptionV3 achieved 97.30% accuracy, which is slightly lower than the performance obtained in the present study. In comparison, the proposed model achieved 98.26% accuracy, along with strong AUC (≥0.9987), F1-score (≥0.96) and Cohen’s Kappa (0.9762). While slightly lower than some complex ensemble or attention-based models, the proposed approach provides a good balance between accuracy and computational efficiency. Overall, the results indicate that the proposed model can serve as a reliable and efficient reference for real-world agricultural applications.