Detection and Classification of Apple Diseases using ML Techniques: A Leakage-Free Deep-Learning Framework with Honest Cross-Dataset Evaluation
DOI:
https://doi.org/10.19139/soic-2310-5070-4492Keywords:
Near-duplicate contamination, Data efficiency, Domain adaptation, Convolutional neural networks, Grad-CAM localizationAbstract
Many published apple-leaf disease systems report near-perfect accuracy on the PlantVillage collection although augmented copies of the same physical leaf are spread across the training and test partitions, so that the model is tested on images. This study rebuilds the four-class apple subset as a de-duplicated, leakage-free benchmark and measures what the leak actually changes. Retraining the same ResNet50 on the original, leaky split shows that the leak is invisible in the laboratory metric (99.98% versus 99.66% accuracy, and 100% even on test images whose leaf was never seen in training) but not in the field, where the leaky model is less accurate on the external FGVC8 dataset (39.0% versus 43.9% over three seeds). Five ImageNet-pretrained backbones fine-tuned under one protocol all reach 99.35--99.80% in-domain accuracy over five seeds, a statistical tie, so cost rather than accuracy decides deployment. External zero-shot accuracy on two real-field datasets is low and varies between training runs (PlantDoc 59.5±5.7%, FGVC8 43.9±0.5%); most errors are healthy orchard leaves predicted as diseased, and geometric augmentation is the only augmentation family that measurably narrows the gap, whereas GAN-based oversampling of the minority class widens it. Unsupervised domain-adversarial training raises FGVC8 accuracy from 37.2% to 54.4% without field labels, but fine-tuning on only 68 labelled field images reaches 76.7%. A data-efficiency study with three backbones and two fine-tuning budgets shows that leakage-free laboratory pre-training makes adaptation faster (+0.21 macro-F1 with 80 field images under a short 15-epoch budget) but does not raise the accuracy reached once fine-tuning converges. Grad-CAM places 86% of its activation inside the leaf, with the class ordering confirmed by an independent GrabCut segmentation, and a YOLO11 detector localizes diseased leaves in the field at 93.5% mAP@0.5, ahead of YOLOv8 in a matched three-seed comparison (92.9% versus 88.1%).Downloads
Published
2026-10-07
How to Cite
Malak, M. A., Thabet, M., Aziz , A. S., & Alhelbawy, A. A. (2026). Detection and Classification of Apple Diseases using ML Techniques: A Leakage-Free Deep-Learning Framework with Honest Cross-Dataset Evaluation. Statistics, Optimization & Information Computing. https://doi.org/10.19139/soic-2310-5070-4492
License
Copyright (c) 2026 Marko Alkes Malak, Mostafa Thabet, Alber Shawky Aziz , Ayman Antr Alhelbawy

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).