Abstract
Architecture rankings for maize disease and pest classification may not transfer across image collections. Using 13,413 RGB images, we trained six architectures with five seeds and evaluated them on an internal test set and three external cohorts from two provenance families. Class and source were strongly associated (Cramér’s V = 0.76 for six filename-defined components; 0.84 for four primary sources). Internal scores were nearly tied, and the validation-selected EfficientNet-B0 led no external task in the archived evaluation; its gaps to the external leaders were, however, no larger than those of a random choice among the six architectures, and only the TOM2024 gap was significant. External results also depended on the input recipe: on byte-identical rust images, recall changed by up to 0.54 between center cropping and direct resizing, and two task leaders changed when every task used direct resizing. Ranking concordance across tasks was low under every recipe (Kendall’s W = 0.06–0.16). A post hoc pixel audit found transformed copies across internal partitions; excluding them preserved the internal ordering. Internal validation therefore provided little basis for choosing among architectures of similar internal accuracy, and selection should be validated for the intended task, acquisition setting and input recipe.
1. Introduction
RGB-based classification of maize diseases and pests is increasingly used in agricultural artificial intelligence. High accuracy within a curated repository, however, is not sufficient evidence of performance in the field, where illumination, devices, cultivar, growth stage, background and image selection alter the visual distribution. This study therefore distinguishes performance on a held-out internal partition from the reliability of architecture selection when evaluation sources change [1,2,3,4].
Image repositories carry signatures of resolution, compression, device, background, framing and laboratory or field conditions. Torralba and Efros [5] showed that dataset origin can be inferred from images, and Geirhos et al. [6] described shortcut learning as reliance on accessible regularities unrelated to the intended mechanism; acquisition-site effects are documented in medical imaging [7,8]. In plant pathology, Noyan [9] reported 49.0% accuracy from only eight PlantVillage background pixels (chance, 2.6%), and dataset size does not compensate for imperfect labels, heterogeneous domains or acquisition biases [10]. The question is therefore whether learned signals are transferable and biologically pertinent, not merely predictive in one repository.
Data leakage and class–source confounding are related but distinct. Leakage occurs when duplicates, derivatives, pregenerated augmentations or near-identical images cross training, validation and test partitions. Confounding can persist without duplicates: when one disease comes mainly from one repository and another class from a different one, provenance becomes a label-associated covariate. Barz and Denzler [11], Kapoor and Narayanan [12] and Joeres et al. [13] recommend auditing identity, similarity and dependencies before benchmarking, especially in multi-source maize collections, where a repository title or DOI does not guarantee independent acquisition [14,15].
Architecture selection adds a decision problem. Small internal differences may change with training seed, optimization or evaluation composition, as distribution-shift benchmarks and model-selection studies have shown [16,17]. Related approaches include domain adaptation and cross-domain few-shot learning [18,19,20]. Here, architecture selection uses mean internal validation macro-F1, and external results assess the selected configuration retrospectively.
Initialization, data order and augmentation affect benchmark outcomes [21], so the comparison uses five shared seeds and paired resampling over common evaluation images with multiplicity correction [22,23,24,25]. A later pixel audit identified dependencies missed by the original groups; exclusion and candidate-family sensitivities assess their effect (Section 2.8).
A held-out internal test does not establish transfer to another collection, and reusing test performance to choose a model can bias assessment [26]. We therefore distinguish checkpoint selection, architecture selection and the retrospective identification of external leaders.
Recent maize studies compare field-image backbones and ensembles [27,28,29,30], and broader work addresses explainability, feature calibration, fine-tuning and field adaptation [31,32,33,34]. Our contribution is not a new architecture but an auditable characterization of selection instability in an assembled benchmark, combining corpus reconciliation with byte-, pixel- and perceptual-hash auditing, class–source controls, repeated training and external ranking assessment (related work in Table S1).
We ask whether a configuration selected by internal validation keeps its relative performance across collections with different provenance and class coverage. To answer this, we examine source–label dependence, six architectures trained with five seeds, three external cohorts and the sensitivity of the rankings to the training recipe, input recipe and evaluation composition.
2. Materials and Methods
2.1. Study Design, Corpus and Evaluation Scenarios
The reconciled inventory contains 13,413 images: 11,491 for internal development and 1922 Pandian2019 rust images reserved for external evaluation. The internal nine-class split (identifier E2-A in the archived files) comprises 8043 training, 1729 validation and 1719 test images; a preliminary one-source, seven-class benchmark (E1) is reported in Table S2. The design follows the protocol released with the original code (version 1.0), a CNN–ViT benchmark with class–source controls, group-based splitting and validation-based selection (Table S22); it was not preregistered. Initial runs used seeds 17, 42 and 73; seeds 101 and 137 were added for all six architectures after the earlier external results had been inspected. The 30 checkpoints were evaluated on four axes (120 records).
The three external cohorts represent two provenance families: PlantVillage-related (Pandian2019 and filtered PlantVillage) and TOM2024 field imagery (Table 1). Figure 1 summarizes the workflow; it is not a registered chronology, and Tables S22 and S45 give the dated records and repository commits.
Table 1.
Datasets, sample sizes and analytical roles in the principal study design.
2.2. Auditing, Grouping and External Correspondence
Apart from 3503 images added from the CCMT record [35] (Table S31), all retained internal images come from one public download of the aggregated Maize Crop Disease (Leaf) collection [14] (Mendeley Data, DOI 10.17632/6w6gsvghfw.1, CC BY 4.0). The downloaded archive (7,031,909,922 bytes; 30,121 extracted files) has been retained since 18 June 2026. The record describes eight disease and pest classes compiled from multiple sources, and the download contains these eight folders plus a healthy folder; the record does not report the contributor or capture conditions of individual images. Its 29,075 non-augmented files hold 25,067 unique SHA-256 contents.
Reconciliation of the recovered master manifest with the archived extraction gives 9910 retained exact matches and 3503 retained images absent from that extraction, all from the recorded raw_ccmt_clean component (29 healthy, 887 leaf-beetle, 742 blight, 971 leaf-spot and 874 streak-virus images); 1308 of the 4811 retained CCMT images match the extraction. Table S31 provides sequential identity accounting.
Figure 1.
Analytical workflow linking corpus reconciliation and class–source controls to validation-based selection and external assessment. Dashed boxes mark the controls and post hoc checks applied at each stage.
The archive shares 1337 unique contents with CCMT [35] and 1315 with PlantVillage (exact-content overlaps, distinct from 1337 PlantVillage perceptual matches at Hamming distance ≤8; Table S21). CIMMYT_MLND, Kaggle_HEALTHY_up and Kaggle_Healthy_paren are operational labels for filename patterns within the download (CIMMYT_MLND, for example, marks files beginning with mln_ or mln-); all 5605 of their images have complete identity metadata and exact-content links to it (Table S40). Image-by-image comparison with the primary public records traces CIMMYT_MLND (3228 of 3229 images) and Kaggle_HEALTHY_up (all 1667) to the Maize Imagery Dataset—Tanzania [36] (CC BY 4.0), which contains smartphone images from Tanzanian farm fields. Kaggle_Healthy_paren (all 709) traces to PlantVillage as 360 byte-identical copies and 349 horizontal mirrors (Supplementary Section S45). Every internal lethal_necrosis image therefore comes from one field collection in one country, and the CIMMYT_MLND label does not denote CIMMYT. All 3852 archived PlantVillage source fingerprints match the current public maize files (Supplementary Section S39).
The 13,413 images form 13,407 originally recorded similarity groups, so the split is close to image-level. These identifiers do not cross partitions, but the later pixel audit found transformed copies that they missed (Section 2.8).
PlantVillage contributes 3852 original color maize images. Historical matching linked 1330 of them to other components (970 rust images copied in Pandian2019 and 360 healthy images in the internal corpus), leaving a 2522-record filtered manifest (Table S41); the evaluated blight/leaf-spot subset contains 1498 images. Excluding rust avoids duplicating shared provenance across evaluation cohorts. Pandian2019 is the collection deposited by Arun Pandian and Geetharamani [37,38] (61,486 images, six augmentation procedures). Recomputation from the public PlantVillage files assigns all 1922 retained rust images to 1146 PlantVillage rust parents as 970 same-orientation copies (954 byte-identical) and 952 horizontal mirrors (Table S42), so Pandian2019 contains no leaves beyond PlantVillage. The local selection reproduces the 1922 master records from 2005 audited candidates after excluding 81 confirmed perceptual duplicates and two near duplicates.
From TOM2024 [39], we used the labeled maize images, which the dataset organizes in folders for diseases (suffix -D), visible pests (-P) and pest activity (-A). From 4737 such files, 96 exact redundant copies and 19 conflicting-label contents were excluded (4622 images, 4617 groups). The main evaluation maps Healthy_leaf → healthy, Rust-D → rust and Spodoptera_frugiperda-P → fall_armyworm (1230 images). The activity/damage folder Spodotera_frugiperda-A (603 images) is a separate sensitivity cohort, and Helminthosporiosis-D (154) and Curvularia-D (254) are mapped to leaf_blight and leaf_spot only in a sensitivity analysis (Supplementary Section S41).
Two assessors with maize disease diagnostic experience judged all 94 TOM2024 Rust-D images independently, blind to source labels, model predictions and each other’s responses. They were an entomology lecturer and an entomologist at the Instituto Nacional de Investigaciones Agropecuarias (INIAP, Ecuador), each with 10 or more years of professional experience. An image-ID/SHA-256 key links each judgment to the evaluation manifest. Both classified 89 images as compatible with rust (65 common-rust and 24 southern-rust patterns), 4 as uncertain and 1 as incompatible.
2.3. Architectures and Training Protocol
We compared three CNNs (MobileNetV3-Large [40], ResNet50 [41] and EfficientNet-B0 [42]), a hybrid (MobileViT-S [43]) and two transformers (ViT-Base/16 [44] and Swin-Tiny [45]), spanning local convolution, hybrid, global and windowed attention (Table 2). All used ImageNet initialization [46], nine outputs, AdamW [47], learning rate 3 × 10−4, weight decay 1 × 10−4, up to 40 epochs, 5% warm-up, cosine decay and effective batch size 64. Weighted cross-entropy used training-only weights w_k = N_train/(9 n_k) and label smoothing 0.10 [48]. The checkpoint with the highest validation macro-F1 was kept, and early stopping used a patience of eight epochs.
Table 2.
Compared architectures and approximate trainable parameter counts.
All models use 224 × 224 inputs and ImageNet normalization. Training applies resized random crops, horizontal flips, ±15° rotation, color jitter and random erasing; validation and internal testing resize the short side to 256 and center-crop 224 pixels (Table S6), which differs from architecture-native preprocessing for some models. A retrospective two-rate follow-up covers all six architectures at 3 × 10−4 and 1 × 10−4 (seeds 17, 42 and 73; rate chosen on validation only), and a normalization check covers MobileViT-S and ViT-Base/16 at seed 17. The historical external notebooks scored PlantVillage and TOM2024 with a different recipe, resizing the cached image (short side ≤256 pixels, JPEG quality 95) directly to 224 × 224 (Supplementary Section S44). The main performance tables use the archived recipe of each axis, with which the archived predictions, paired bootstrap contrasts and audits were computed; Section 3.3 also reports every axis under both recipes.
The original 18 runs used an NVIDIA L4 with PyTorch 2.11.0+cu128, torchvision 0.26.0+cu128 and timm 1.0.15. Tables S6, S18 and S32 report model identifiers, physical batches, completed and selected epochs and the pretrained identifiers resolved from those releases. We compare trained configurations, without equal-FLOP budgets or exhaustive architecture-specific optimization.
2.4. Class–Source Controls and Cross-Repository Provenance
Class–source association was summarized by the chi-squared statistic, Cramér’s V (Equation (1)) and mutual information normalized by the geometric mean of marginal entropies. Source-majority, stochastic P(class|source) and global-prior rules predict labels without image input. A separate MobileNetV3-Large classifier (ImageNet1K-V1, seed 17, up to 12 epochs, patience three; Table S28) predicts source globally and within rust and healthy; it is a control distinct from the six disease/pest classifiers. The association measures and the image-free rules were also computed with the four primary sources to which the components were traced (Tanzania, PlantVillage, Adege and CCMT; Supplementary Section S47).
The historical overlap protocol used SHA-256 and 64-bit pHash at a Hamming distance of ≤5 (Equation (2)). The post hoc pixel audit uses an explicit implementation: EXIF correction, grayscale conversion, 32 × 32 Lanczos resizing, two-dimensional DCT-II and median thresholding of the 8 × 8 low-frequency block. Hashes are compared under all eight rotations and reflections (D4) of query and reference, with Python 3.13.18, NumPy 2.4.6, SciPy 1.16.3 and Pillow 11.3.0. Native decoded RGB pixels are then compared for candidates at a minimum D4 distance of ≤3 (Supplementary Section S31).
This audit finds no external-versus-internal candidates at a D4 distance of ≤5. At ≤8, Pandian2019 has twelve candidates against training and two against validation, filtered PlantVillage three and one and TOM2024 nineteen and five; these are similarity candidates, not confirmed duplicates.
2.5. Metrics and Statistical Analysis
Macro-F1 is the primary score for the internal nine-class, PlantVillage two-class and TOM2024 three-class tasks (Equations (3) and (4)); Pandian2019 uses rust recall. For target set T, we compute f1_score(y_true, y_pred, labels = T, average = “macro” and zero_division = 0) from the unrestricted nine-class argmax, so an out-of-set prediction is a false negative for the true class but not a false positive within T. Balanced accuracy is mean target-class recall (Equation (5)); Supplementary Section S41 adds closed-set scores, with the argmax restricted to T.
The multiclass Matthews correlation coefficient (MCC) was computed from confusion matrix C using Equation (6), where c denotes the number of correct predictions, s the total number of observations, pk the number of predictions for class k and tk its actual frequency [49]. Accuracy, per-class recall and F1 and error destinations were also reported.
The historical blocked model (Equation (7)) tests the architecture term by its F statistic under within-seed permutations of architecture labels ((6!)2 = 518,400 relative assignments for three seeds). The revised five-seed inference uses paired bootstrap comparisons instead.
The main paired bootstrap resamples similarity groups intact within class, with common draws for all architectures; the hierarchical variant also resamples the five paired seed indices. We use 5000 replicates, centered two-sided p-values and Holm adjustment across the 15 pairs within each axis and variant [24,25]; percentile 95% intervals summarize uncertainty. TOM2024 three-class macro-F1 is the principal reported contrast, and all four axes use the same framework (Table S24). Three-seed class-specific intervals are given in Table S17.
Kendall’s W summarizes ranks across four axes and six architectures (Equation (8)) [50]; its expectation under independently relabeled untied rankings is 0.25. We report both tails of the exact null distribution, obtained by enumerating all 7203 relative rank assignments; the archived 100,000-permutation Monte Carlo estimates agree within simulation error. An exact random-label reference assigns the validation-selected identity uniformly to the six architecture scores within each external axis (Table S26).
The selected architecture maximizes mean validation macro-F1 across five seeds: EfficientNet-B0 (0.9637 versus 0.9632 for MobileNetV3-Large). For external axis d, the gap Ld = Bd − Id (Equation (9)) compares the highest observed external mean Bd, identified retrospectively, with the selected model’s score Id.
Five-seed scores describe performance, paired bootstrap contrasts quantify uncertainty within each task, and W and selection-gap references describe ranking behavior; historical blocked tests, class-removal analyses, calibration (Figure S3), class-specific recall uncertainty (Figure S4) and visual diagnostics are supporting context. There is no preregistered confirmatory endpoint.
2.6. Reproducibility
All 30 principal runs and 120 evaluations are reproduced from archived prediction labels. The post hoc audit verifies the 30 checkpoint files against their recorded SHA-256 values and reads all 16,141 principal training/evaluation records (69 unreadable files occur only in the separate CCMT source inventory). Archived validation predictions (51,870 rows) reproduce the recorded macro-F1 values. Predictions, audit sensitivities and the 30 checkpoints are archived at https://doi.org/10.5281/zenodo.24284811 (Supplementary Section S38).
2.7. Exploratory Grad-CAM Analysis
Grad-CAM [51] uses the ResNet50 seed-17 checkpoint (final layer4[-1] block), a TOM2024 case-study model rather than the validation-selected architecture. The archived procedure selected four correct and four incorrect Rust-D cases by archived confidence; two of each, including a lethal_necrosis destination, are shown in Section 3.4.1, and Figure S6 retains all eight. The maps provide spatial context only [31,52]. Supplementary Section S43 applies the procedure to all six architectures on 16 Rust-D images (Figures S7 and S8).
2.8. Post Hoc Pixel Audit and Dependency Sensitivities
The post hoc audit recomputes image identities and D4-pHash comparisons from source pixels and then compares native RGB values for all 1164 pairs at a minimum D4 distance of ≤3, including 190 pairs crossing internal partitions. Exact matches require identical decoded RGB arrays after an allowed transform. Human review, recorded separately from the computational and AI-assisted results, covers all 190 critical pairs. Two colleagues of the authors (coded H01 and H02), who are not co-authors and did not take part in the rust assessment, judged disjoint subsets of 171 and 19 pairs. Using the AI-aligned thumbnails, they decided whether each pair showed the same photograph or a transformation of it; because no pair was rated twice, no agreement statistic is available (Table S39). Generative AI tools (ChatGPT, OpenAI; Claude, Anthropic) were used to write analysis code and to inspect aligned duplicate-candidate thumbnails and embedding-similarity contact sheets; the authors checked these outputs, which are reported separately from the human judgments.
Using archived predictions of the 30 selected checkpoints, we rescore the validation and test sets under four nested exclusion sets: exact native matches; plus numeric near-candidates; plus AI-supported photographic derivatives; and all strong cross-partition candidates. Validation exclusions concern training contacts, and test exclusions concern training or validation contacts. Externally, each image is weighted by the inverse size of its within-cohort D4 ≤ 3 candidate component (Supplementary Sections S31–S33). Further checks stratify healthy predictions by exact PlantVillage correspondence and compare TOM2024 lethal_necrosis probabilities by true class (Supplementary Sections S34 and S35). DINOv2 ViT-B/14 embeddings [53] define similarity families within each external cohort (cosine similarity ≥0.95; Supplementary Section S42) and were also used to search for similar images between each external cohort and the internal images (Supplementary Section S48). A retraining ablation removes all 603 PlantVillage-derived healthy training and validation images and retrains EfficientNet-B0 (seeds 17, 42 and 73) with the unchanged recipe (Supplementary Section S46).
3. Results
3.1. Dataset Provenance and Class–Source Confounding
The historical inventory comprised 30,121 files (29,075 non-augmented files, 1045 augmentations and 1 TIFF; Table 3). The 9910-image exact link to the historical extraction covers 73.9% of the final 13,413-image inventory, which internal and Pandian2019 images share for bookkeeping only, not model fitting. Table S31 gives sequential identity accounting, although the original reason for every exclusion is incompletely recorded, and Table S21 gives the record and license of each component.
Table 3.
Retrospective reconstruction of the inventory and provenance of the aggregated collection.
3.1.1. Class–Source Association and Provenance Identifiability
Across the 11,491 internal images, Cramér’s V was 0.7593 and normalized mutual information 0.7209 for the six operational components (Table 4 and Table 5). Seven of the nine classes came from a single component, five of the six components contained only one class, and the component determined the class for 1001 of the 1719 test images. These components are defined by filename patterns, and two of them (CIMMYT_MLND and Kaggle_HEALTHY_up) come from the same Tanzania record. With the four primary sources, V is 0.8398 (its normalizer falls from five to three), and normalized mutual information is 0.6274; two of the four sources contain a single class, the source determines the class for 267 test images, and the source-majority rule reaches MCC = 0.4775 instead of 0.6571 (Table S55).
Table 4.
Controls using source as an input or prediction target.
Table 5.
Class × original source contingency in the internal analysis corpus (n = 11,491 images).
The historical source-majority rule reached MCC = 0.6571 versus a mean of 0.9635 for the original 18-run image benchmark (Table S11a), and source classification reached accuracy 1.0000 within rust and 0.9948 within healthy: provenance carries substantial label information. The two rust components are filename patterns of one collection, so the within-rust result does not separate primary sources. A provenance classifier for the four primary sources reaches an accuracy of 0.9983 and MCC of 0.9972 (Table 4).
3.1.2. Cross-Repository Overlap
The post hoc D4 audit assigns all 1922 Pandian2019 images to PlantVillage rust images (970 copies and 952 horizontal mirrors) and all 709 Kaggle_Healthy_paren images to PlantVillage healthy images (360 copies and 349 horizontal mirrors). No external cohort has a match with the internal partitions at a distance of ≤5 (Table 6; Supplementary Sections S40.2 and S45). The archived same-orientation audit had detected only the 970 and 360 copies. A DINOv2 search between each external cohort and the internal images finds no evaluation image with an internal neighbor at cosine ≥0.97; four TOM2024 healthy images reach 0.95–0.96 against Tanzania healthy images, and AI-assisted inspection found no shared photograph. The same search recovers 704 of the 709 known PlantVillage–Kaggle_Healthy_paren correspondences (Supplementary Section S48).
Table 6.
Cross-repository correspondence in the post hoc D4 audit (64-bit pHash under all eight rotations and reflections).
SHA-256 confirms all 360 internal healthy correspondences (261 training, 50 validation and 49 test). Healthy recall is 1.0000 on the held-out matched subsets for all 30 checkpoints versus five-seed means of 0.9805–0.9935 (validation) and 0.9745–0.9834 (test) on the other healthy images (Table S37). Removing all 603 PlantVillage-derived healthy training and validation images (EfficientNet-B0, seeds 17, 42 and 73) lowers the share of Pandian2019 rust images predicted as healthy in every seed (mean 0.189 to 0.092), but rust recall does not rise consistently. The ablation also lowers healthy recall on PlantVillage (0.999 to 0.941) and TOM2024 (0.864 to 0.751) and changes internal macro-F1 by at most 0.004 (Supplementary Section S46).
The filtered PlantVillage cohort tests blight and leaf spot within the same provenance family as Pandian2019 rust, so comparisons between them change the target class as well as the cohort.
The 190 strong internal cross-partition pairs comprise 86 validation–training, 87 test–training and 17 test–validation relationships. Four pairs have identical native RGB pixels after a D4 transform (three validation–training and one test–training), and AI-assisted aligned-thumbnail inspection supports the same-photograph interpretation for 182 further pairs. Human review records 189 same-photograph or transformation judgments, including the 4 exact pairs, and 1 related capture (Table S39). Excluding all 190 relationships removes 73 validation and 88 test images; EfficientNet-B0 remains first (validation 0.9635; test 0.9593), and both complete six-architecture orderings are preserved (Tables S34 and S35).
3.2. Internal and External Model Performance
Five-seed internal macro-F1 ranges from 0.9480 to 0.9597, and no internal paired comparison is significant after Holm correction (minimum hierarchical adjusted p = 0.7738; Table S24; historical omnibus p = 0.5211). External leaders differ across the three tasks (Table 7; Figure 2). Exclusion-adjusted internal scores are given in Table S35.
Table 7.
Performance by architecture on the internal test and three external evaluations; the mean ± SD across five shared seeds (17, 42, 73, 101 and 137).
Figure 2.
Five-seed mean performance (points) and between-seed standard deviations (error bars) for six architectures on the internal nine-class benchmark and three external axes; the filled point marks the highest mean on each axis. Pandian2019 reports rust recall; the other axes report macro-F1 over their target classes.
The historical three-seed error analysis assigned 42.65% of PlantVillage blight and 45.86% of leaf-spot images to rust, directly reducing target-class recall. Pandian2019 rust recall cannot evaluate specificity: an always-rust predictor would score 1.0. When the 1192 PlantVillage rust images are added to the PlantVillage cohort, rust recall is 0.57–0.93, but rust precision is only 0.56–0.77 because blight and leaf-spot images are assigned to rust (Supplementary Section S41).
In the two-rate follow-up, validation favors 1 × 10−4 only for Swin-Tiny (Δ = +0.0113), but the external effect is large and architecture-specific: with the lower rate, Pandian2019 rust recall changes by −0.15 for ViT-Base/16 and by +0.52 for Swin-Tiny (three-seed means; Tables S19 and S23). Architecture-native normalization has an effect of similar size in the one-seed check: Pandian2019 rust recall of MobileViT-S falls from 0.77 to 0.29, whereas its internal macro-F1 is unchanged (Table S20).
3.3. Architecture-Selection Stability and Statistical Inference
Validation-selected EfficientNet-B0 is not the external leader on any axis: its gaps to the highest external mean are 0.1183 for Pandian2019 recall, 0.1290 for PlantVillage macro-F1 and 0.0945 for TOM2024 macro-F1 (Table 8). Under the exact random-label reference, a gap at least as large as the observed one has probability 0.83, 0.17 and 0.50 on the three axes (Table S26), so the validation-based choice cannot be distinguished from a random choice among the six architectures. Only the TOM2024 leader-versus-selected contrast is significant after Holm adjustment (p = 0.0048; 0.8574 for Pandian2019 and 0.0570 for PlantVillage).
Table 8.
Validation-selected EfficientNet-B0 and the highest observed five-seed external mean within each task.
Across the four task-specific rankings, W = 0.0571 (null expectation 0.25; exact lower-tail p = 0.0467, upper-tail p = 0.9657). Random-label selection references and seed-specific ranks appear in Tables S26 and S27. Because the historical notebooks scored the axes with two input recipes, every axis was rescored with both recipes (Table 9). With center cropping on every axis, the four leaders are those of the archived evaluation and W = 0.114; with direct resizing on every axis, ResNet50 leads the internal test, and EfficientNet-B0 leads Pandian2019 (so its selection gap on that axis is zero) and W = 0.157 (exact lower-tail p = 0.17 and 0.30; Table S52). Concordance remains low under every recipe, but whether it falls below the random-ranking expectation depends on the recipe mix.
Table 9.
Five-seed mean score (rank in parentheses) of each architecture on the four axes under the center-crop and direct-resize input recipes.
Paired Uncertainty on TOM2024
TOM2024 is the principal paired endpoint because it includes healthy, disease and visible-pest field imagery. Table 10 and Figure 3 show ResNet50-minus-competitor differences from the hierarchical bootstrap (all axes in Table S24). The difference from EfficientNet-B0 is 0.0945 (95% percentile interval 0.0446–0.1410; Holm-adjusted p = 0.0048); the smallest, with MobileNetV3-Large, is 0.0505 (interval spanning zero; adjusted p = 0.3263). ResNet50 differs from four of the five competitors under the adjusted tests.
Table 10.
Five-seed hierarchical paired bootstrap: TOM2024 macro-F1 differences between ResNet50 and the other architectures (B = 5000; Holm-adjusted p within 15 architecture pairs).
Figure 3.
ResNet50 minus each competing architecture on TOM2024: five-seed hierarchical paired differences in three-class macro-F1 with percentile 95% intervals; tests use centered bootstrap p-values with Holm correction over the 15 architecture pairs.
Historically removing the 94 Rust-D images (leaving 1136 healthy/visible-pest images; three seeds) changed the ordering to MobileNetV3-Large, Swin-Tiny and ResNet50 (Table 11), so the three-class ordering is sensitive to a small disease subset.
Table 11.
Post hoc TOM2024 two-class sensitivity analysis excluding 94 rust images; mean macro-F1 across three seeds.
3.4. Class-Specific Errors and Practical Implications
Table 12 summarizes historical three-seed error destinations (denominators in Tables S13–S17); five-seed same-class rust recall across the internal, Pandian2019 and TOM2024 cohorts is in Table S25.
Table 12.
Principal patterns of external transfer and error concentration.
All 1922 Pandian2019 rust images descend from PlantVillage (970 same-orientation copies and 952 horizontal mirrors; Table S42), and the similar errors in both historical strata of Table 13 are consistent with this shared ancestry.
Table 13.
Archived three-seed Pandian2019 rust recall and assignments to healthy by historical PlantVillage correspondence; not recalculated across the new five-seed corpus.
Across the original 18 runs, healthy was the dominant incorrect Pandian2019 destination and lethal_necrosis the dominant incorrect TOM2024 rust destination (72.52% of Rust-D predictions). The Pandian2019 pattern is largely an effect of the input recipe: on the 954 byte-identical rust images, 20–70% are predicted healthy with center crop and 2–16% with direct resize (Table S51). All internal lethal_necrosis images come from the CIMMYT_MLND component, a single smartphone field collection from Tanzania (Supplementary Section S45), so source-associated appearance is one possible explanation. Across five seeds, mean lethal_necrosis probability is 0.0098–0.0162 on TOM2024 healthy images and 0.3431–0.5668 on rust images (Table S38).
Resampling the 1146 PlantVillage parent families instead of individual Pandian2019 images widens the intervals slightly and leaves the ordering unchanged (Table S43).
Historical recall was 0.8860 for visible S. frugiperda presence and 0.4410 for its activity/damage cohort, so insect recognition and damage interpretation are separate tasks. Disease-to-healthy errors risk missed intervention, whereas disease-to-other-disease errors can misdirect management.
3.4.1. Rust Assessment and Visual Diagnostics
Both assessment forms agree on all 94 three-category judgments (κ = 1.00) and on confidence for 87 out of 94 images. ResNet50 has the highest five-seed rust recall for both visual patterns (0.27 for common rust and 0.30 for southern rust; Table S29), so its advantage does not depend on one subtype (three-seed class-specific intervals in Table S17). Excluding the five uncertain or incompatible cases leaves the five-seed ordering unchanged (maximum change in mean macro-F1, 0.0046; Table S30).
Figure 4 shows ResNet50 (seed 17) activation for two correct cases and two errors, including the dominant lethal_necrosis destination; Figure S6 gives all eight archived cases.
Figure 4.
Archived ResNet50 seed-17 Grad-CAM examples on TOM2024 Rust-D: two correct cases (001736, 001312) and two errors (000371 → lethal_necrosis; 004121 → streak_virus), with archived predicted-class probabilities; a purposive subset of the archived eight-case panel. Source: TOM2024 [39], CC BY 4.0; overlays are author-generated modifications. The colors denote the Grad-CAM activation intensity (warmer colors indicate higher attribution).
3.4.2. Historical Computational Measurements
4. Discussion
Internal selection is fragile because the internal scores are nearly tied: EfficientNet-B0’s five-seed validation lead is about 0.0005, no internal contrast is significant, and conservative candidate exclusion changes architecture means by at most 0.000348 (validation) and 0.000632 (test) without changing either ordering (Tables S34 and S35). The instability is therefore that of a near tie, not of a systematically wrong choice. The external gaps of the selected model are no larger than those of a random choice among the six architectures (Table S26), only one of the three leader-versus-selected contrasts is significant, and the ordering already changes within a single source when the class set changes (E1; Table S2). The detected overlap nevertheless prevents treating the original internal evaluation as independent evidence of generalization.
Evaluation composition is a second explanation. Pandian2019 and filtered PlantVillage share provenance but test different classes and metrics, and TOM2024 also changes the acquisition setting and class coverage. The input recipe is a further factor: on 954 byte-identical rust images, the two archived recipes change rust recall by up to 0.54 and change the leader (Supplementary Section S44). With direct resizing on every axis, the selected model leads Pandian2019, whereas ResNet50 leads the internal test (Table 9). The external scores are therefore conditional on the input recipe; under either common recipe, the axes still have different leaders and low concordance.
Our contribution complements field-oriented maize comparisons [27,28,29,30] and evidence that dataset composition and controlled-to-field shifts limit plant disease classifiers [54,55] by connecting provenance structure with a documented model-selection decision. Source-only baselines and the source classifier show that repository composition is informative, so the evaluated configuration, data composition and selection rule must be reported together.
The TOM2024 class-removal result matters agronomically: the 94-image rust subset is small but determines which architecture ranks first on the three-class task, and its common- and southern-rust patterns may differ from the internal training distribution, so the three-class advantage cannot be generalized to rust diagnosis.
Optimization is a third factor. Swin-Tiny’s lower rate changes external rust recall substantially, while other axes respond differently (Table S23); two rates and one-seed normalization checks do not identify a universally best recipe, and checkpoints selected at or near 40 epochs leave convergence uncertain for some transformer runs.
Low PlantVillage macro-F1 indicates inadequate absolute transfer, and a relative lead among poor scores is not agronomic adequacy. Closed-set scoring raises PlantVillage macro-F1 to 0.45–0.55, with MobileViT-S still first and EfficientNet-B0 fourth; adding PlantVillage rust images makes Swin-Tiny the leader, and adding TOM2024 Helminthosporiosis-D and Curvularia-D leaves ResNet50 first (Supplementary Section S41).
For agricultural monitoring, validation should match the intended decision and acquisition setting. Disease-to-healthy errors suppress alerts, and false disease labels can trigger inappropriate management. Site validation should therefore report class recall and error destinations across the relevant cameras, cultivars, growth stages, farms, seasons and severities, rather than choose an architecture from a small macro-F1 lead. Visible-insect detection and damage recognition need separate acceptance criteria. Inference latency, throughput and acquisition reliability must also be measured in the intended environment [33,34].
5. Scope and Limitations
The study is retrospective: two seeds and the optimization checks followed earlier external results, no timestamped registration was established, and the archived files are preserved artifacts, not a preregistration. The external axes differ in classes, metrics and input recipe (Supplementary Section S44), and Pandian2019 and PlantVillage share provenance, so cross-axis rank comparisons combine provenance, class composition and preprocessing. Pandian2019 parents are identified in PlantVillage, and family resampling preserves its ordering (Tables S42 and S43); for the other cohorts, candidate-family and DINOv2 family resampling preserve the external orderings (Table S36; Supplementary Section S42) without establishing parent identities. The DINOv2 search between external and internal images was inspected only with AI assistance, and embedding similarity cannot exclude images of the same plants or fields taken under different conditions.
The original group identifiers missed transformed copies across internal partitions. Exclusion sensitivities rescore already selected checkpoints: they cannot remove training exposure, undo validation-driven stopping or reconstruct selection on clean validation data. Human review covers the 190 critical pairs but not the other 974 strong candidate pairs; it was performed by two colleagues of the authors on disjoint subsets, with AI-aligned thumbnails and without an agreement measure. No audit here resolves plant-, farm- or campaign-level identities, so biological independence is not established. Per-image acquisition metadata remain unavailable beyond the traced source records (Tables S21 and S40; Supplementary Sections S39 and S45).
Training used one common recipe, without equalizing optimization or architecture-native preprocessing; normalization sensitivity uses one seed, and pretrained defaults are resolved from recorded releases without logged download hashes (Table S32). The rust assessment (September 2026, before submission; exact day not recorded) is visual rather than laboratory-confirmed, and both assessors are entomologists rather than plant pathologists, which limits its authority for a fungal disease. Internal rust subtypes, matched-FLOP cost and inference speed remain unknown. Bootstrap intervals are conditional on the recorded groups and five seeds; the seeds are paired replication indices rather than identical random perturbations, and non-significance is not equivalence. Finally, the source controls show that provenance is informative but do not establish that the six classifiers use it causally.
The public record (https://doi.org/10.5281/zenodo.24284811) provides the manifests, prediction labels, analysis code, post-review analyses and the 30 selected checkpoints; together with the public source datasets, these files allow the reported analyses to be reproduced. The findings describe the evaluated configurations and cohorts; they do not validate a selection strategy or establish farm-deployment performance.
6. Conclusions
This benchmark shows substantial class–source association and task-dependent architecture rankings across 30 checkpoints. The internal scores of the six architectures are nearly tied; the validation-selected EfficientNet-B0 leads no external task in the archived evaluation, but its external gaps are no larger than those of a randomly chosen architecture, and only the TOM2024 gap is significant. The external ordering also depends on cohort composition, on the input recipe and on a small rust subset. Internal validation on an assembled multi-source corpus therefore gives little basis for choosing among architectures of similar internal accuracy. Architecture selection for maize disease and pest diagnosis should be reported together with its data provenance and input recipe and validated on the intended task and acquisition setting, ideally prospectively across sites.
Supplementary Materials
The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/agriengineering8120515/s1, Table S1: Representative prior studies and their relationship to the present research; Table S2: Macro-F1 in the preliminary E1 benchmark and mean ± SD across three seeds; Table S3: Composition of the master corpus by operational source; Table S4: Overall distribution of the nine operational classes; Table S5: Experimental protocol scenarios and external extension; Table S6: Shared hyperparameters of the original internal training protocol and its five-seed extension; Table S7: Correspondence between analytical questions and statistical procedures; Table S8: Minimum reproducibility artifacts and preservation rules; Table S9: Methodological findings from the master corpus audit; Table S10a: Reconstruction of the 29,075-file inventory within the aggregate extraction; Table S10b: Exact links between the aggregate extraction, audited local sources and final corpus; Table S11a: Nonvisual source-based references and the historical image-model benchmark on the internal test set; Table S11b: Operational source classification on internal data partitions; Table S11c: Operational source classification while holding the class fixed; Table S12: Provenance overlap among the master corpus, PlantVillage and TOM2024; Figure S1: Historical three-seed architecture-level prediction destinations for 1922 Pandian2019 rust images; Table S13: Error concentration by architecture on Pandian2019; Figure S2: Historical pooled prediction destinations on the filtered PlantVillage evaluation; Table S14: Mean prediction destinations for PlantVillage errors; Table S15: Class-specific performance and principal error destination on TOM2024; Figure S3: Archived internal-test calibration summary across the original 18 runs; Table S16: Internal calibration diagnosis and oracle temperature sweep; Table S17: Class-specific recall on TOM2024, mean across three seeds with 95% bootstrap CIs; Figure S4: Uncertainty in class-specific recall on TOM2024; Table S18: Observed internal training time and epochs on NVIDIA L4; Figure S5: Historical three-seed comparison of the mean NVIDIA L4 training time and internal nine-class macro-F1 for the 18 original internal runs; Figure S6: Full exploratory Grad-CAM panel showing correct and incorrect TOM2024 rust predictions for ResNet50, seed 17; Table S19: Initial learning-rate sensitivity based on three-seed validation means; Table S20: Seed-17 normalization sensitivity in MobileViT-S and ViT-Base/16; Table S21: Source identity, retained counts and documented limitations; Table S22: Evidence-based chronology; Table S23: Three-seed means at both initial learning rates and paired mean change (1 × 10−4 minus 3 × 10−4); Table S24: All hierarchical five-seed comparisons (B = 5000); Table S25: Rust recall mean ± sample SD across five seeds, using the same nine-output argmax on all three cohorts; Table S26: Random-label null for selection gaps; Table S27: Within-axis ranks by seed, computed before rounding (1 = largest score); Table S28: Executed source-classifier recipe and source-only reconstruction; Table S29: Rust recall by visual subtype and mean ± sample SD across five seeds; Table S30: TOM2024 three-class macro-F1 before and after excluding the five uncertain/incompatible rust cases; Table S31: Fixed-order accounting of recorded file identities; Table S32: Default pretrained identities resolved from executed calls and the software releases recorded in all 30 run manifests; Table S33: Strong internal cross-partition pairs by native-pixel category; Table S34: Validation macro-F1 averaged across five seeds before and after candidate exclusion; Table S35: Internal test macro-F1 averaged across five seeds before and after candidate exclusion; Table S36: External point-estimate sensitivity to inverse candidate-family-size weighting and means across five seeds; Table S37: Healthy recall by exact PlantVillage correspondence, with means across five seeds; Table S38: TOM2024 lethal_necrosis output, with means across five seeds; Table S39: Completed human judgments for the 190 critical cross-partition pairs; Table S40: Identity reconciliation and canonical partition assignments for the 5605 CIMMYT/Kaggle-labeled internal images; Table S41: PlantVillage maize images from the public repository (commit 7f7ecc7) to the two-class evaluation cohort; Table S42: Assignment of the 1922 Pandian2019 rust images to public PlantVillage rust images; Table S43: Pandian2019 rust recall (five-seed mean) with percentile 95% intervals from 5000 bootstrap replicates of recorded groups (1922 units) and of PlantVillage-parent families (1146 units); Table S44: Five-seed architecture effect: additive two-way ANOVA with architecture (6 levels) and seed (5 blocks), partial η2 = SS_architecture/(SS_architecture + SS_residual); Table S45: Chronology from dated records and public repository commits (github.com/Julians30/maize-class-source-domain-shift (accessed on 12 October 2026)); Table S46: PlantVillage macro-F1 (five-seed mean, rank in parentheses) under open and closed scoring; Table S47: TOM2024 macro-F1 (five-seed mean, rank in parentheses) under open and closed scoring; Table S48: DINOv2 similarity families by cohort and cosine threshold; Table S49: Class-stratified family bootstrap (2000 replicates) of the five-seed means: selected architecture, probability of ranking first, runner-up and 95% interval of the leader–runner-up gap; Table S50: Six-architecture Grad-CAM on 16 TOM2024 Rust-D images (seed 17); Figure S7: Grad-CAM (rust target) for the six architectures, seed 17, on the eight archived TOM2024 Rust-D cases; Figure S8: Grad-CAM (rust target) for the six architectures, seed 17, on eight TOM2024 Rust-D images drawn outcome-blind with a fixed random seed (20261109); Table S51: Rust recall and healthy-prediction share on 954 byte-identical rust images under the two historical input recipes (five-seed means); Table S52: Kendall’s W over the four axes (exact lower-tail p from all 7203 relative rank assignments, E[W] = 0.25), W over the three external axes and the leader of each axis, by recipe set; Table S53: Internal operational components traced to their primary public records (Tanzania record for the first two, PlantVillage commit 7f7ecc7 for the third, D4-pHash for PlantVillage); Table S54: EfficientNet-B0 original public checkpoint → retrained without all PlantVillage-derived healthy training and validation images, by seed, with the three-seed means and their difference; Table S55: Class–source association and image-free source rules with the six operational components and with the four primary sources (internal corpus, n = 11,491; test n = 1719); Table S56: External images with at least one internal training or validation image at or above each DINOv2 cosine threshold, maximum and median nearest cosine and images with an internal test neighbor at ≥0.95.
Author Contributions
Conceptualization, H.V.-B. and J.C.-R.; methodology, H.V.-B. and J.C.-R.; software, H.V.-B. and J.C.-R.; validation, H.V.-B. and J.C.-R.; formal analysis, H.V.-B. and J.C.-R.; investigation, H.V.-B., J.C.-R., V.V.-L. and A.H.-S.; data curation, H.V.-B. and J.C.-R.; writing—original draft preparation, H.V.-B. and J.C.-R.; writing—review and editing, H.V.-B., J.C.-R., V.V.-L. and A.H.-S.; visualization, H.V.-B. and J.C.-R.; supervision, H.V.-B. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding. The article processing charge (APC), if incurred, is expected to be funded by Universidad Agraria del Ecuador.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
Research data, reproducibility code and all 30 selected model checkpoints are publicly available in Zenodo at https://doi.org/10.5281/zenodo.24284811. Its final version (1.0.0) contains 32 files: the data/code archive, an archive of the post-review analyses (MAIZ_POST_REVIEW_ANALYSES.zip; Supplementary Sections S40–S48) and 30 separate checkpoint binaries. The archive provides recovered master and split/evaluation manifests, five-seed internal/external prediction labels, recovered validation predictions, 30 run manifests, source-control reconstruction, anonymous rust assessments, pixel-audit records, exclusion masks, sensitivity code and coded judgments for all 190 critical pairs. Checkpoint filenames, byte sizes and SHA-256 hashes are listed in CHECKPOINT_FILES.csv. Public availability and verification scope are documented in Supplementary Section S38. The study repository is https://github.com/Julians30/maize-class-source-domain-shift. Original source photographs, private reviewer identities and editorial correspondence are excluded. Original derived data/documentation are licensed under CC BY 4.0; software and third-party model components retain their applicable terms. Unresolved source attribution and image-license limits are documented in Table S21 and the archive notices.
Acknowledgments
During the preparation of this manuscript and study, the authors used ChatGPT (GPT-6.1, OpenAI) for the development, organization and refinement of selected sections, including the Introduction, and for improving the clarity and structure of the text, and ChatGPT (OpenAI) and Claude (Claude Opus 5.5, Anthropic) for the purposes of supporting analysis code and the AI-assisted inspection of aligned duplicate-candidate thumbnails and DINOv2 contact sheets. That inspection is reported separately from the human assessments and does not establish biological parent identity. The authors have reviewed and edited the output and take full responsibility for the content of this publication.
Conflicts of Interest
The authors declare no conflicts of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| AI | artificial intelligence |
| ANOVA | analysis of variance |
| AUC | area under the receiver operating characteristic curve |
| CC BY | Creative Commons Attribution |
| CCMT | cashew, cassava, maize and tomato dataset of the cited crop pest and disease collection |
| CI | confidence interval |
| CIMMYT | International Maize and Wheat Improvement Center; here only part of the component label CIMMYT_MLND, which does not denote the institute |
| CNN | convolutional neural network |
| D4 | dihedral group of the eight planar rotations and reflections |
| DINOv2 | self-supervised vision transformer used here to compute image embeddings |
| DOI | digital object identifier |
| EXIF | exchangeable image file format |
| F1 | F1 score; harmonic mean of precision and recall |
| FLOP | floating-point operation |
| GPU | graphics processing unit |
| Grad-CAM | gradient-weighted class activation mapping |
| INIAP | Instituto Nacional de Investigaciones Agropecuarias (Ecuador) |
| MCC | Matthews correlation coefficient |
| pHash | perceptual hash |
| RGB | red–green–blue |
| SD | standard deviation |
| SHA-256 | Secure Hash Algorithm 256-bit |
| ViT | vision transformer |
References
- Mohanty, S.P.; Hughes, D.P.; Salathé, M. Using deep learning for image-based plant disease detection. Front. Plant Sci. 2016, 7, 1419. [Google Scholar] [CrossRef] [Scilit]
- Arsenovic, M.; Karanovic, M.; Sladojevic, S.; Anderla, A.; Stefanovic, D. Solving current limitations of deep learning based approaches for plant disease detection. Symmetry 2019, 11, 939. [Google Scholar] [CrossRef] [Scilit]
- Shoaib, M.; Shah, B.; El-Sappagh, S.; Ali, A.; Ullah, A.; Alenezi, F.; Gechev, T.; Hussain, T.; Ali, F. An advanced deep learning models-based plant disease detection: A review of recent research. Front. Plant Sci. 2023, 14, 1158933. [Google Scholar] [CrossRef] [Scilit]
- Jelali, M. Deep learning networks-based tomato disease and pest detection: A first review of research studies using real field datasets. Front. Plant Sci. 2024, 15, 1493322. [Google Scholar] [CrossRef] [Scilit]
- Torralba, A.; Efros, A.A. Unbiased Look at Dataset Bias. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Colorado Springs, CO, USA, 20–25 June 2011; pp. 1521–1528. [Google Scholar] [CrossRef] [Scilit]
- Geirhos, R.; Jacobsen, J.-H.; Michaelis, C.; Zemel, R.; Brendel, W.; Bethge, M.; Wichmann, F.A. Shortcut learning in deep neural networks. Nat. Mach. Intell. 2020, 2, 665–673. [Google Scholar] [CrossRef] [Scilit]
- Zech, J.R.; Badgeley, M.A.; Liu, M.; Costa, A.B.; Titano, J.J.; Oermann, E.K. Variable generalization performance of a deep learning model to detect pneumonia in chest radiographs: A cross-sectional study. PLoS Med. 2018, 15, e1002683. [Google Scholar] [CrossRef] [Scilit]
- DeGrave, A.J.; Janizek, J.D.; Lee, S.-I. AI for radiographic COVID-19 detection selects shortcuts over signal. Nat. Mach. Intell. 2021, 3, 610–619. [Google Scholar] [CrossRef] [Scilit]
- Noyan, M.A. Uncovering bias in the PlantVillage dataset. arXiv 2022, arXiv:2206.04374. [Google Scholar] [CrossRef] [Scilit]
- Xu, M.; Kim, H.; Yang, J.; Fuentes, A.; Meng, Y.; Yoon, S.; Kim, T.; Park, D.S. Embracing limited and imperfect training datasets: Opportunities and challenges in plant disease recognition using deep learning. Front. Plant Sci. 2023, 14, 1225409. [Google Scholar] [CrossRef] [Scilit]
- Barz, B.; Denzler, J. Do we train on test data? Purging CIFAR of near-duplicates. J. Imaging 2020, 6, 41. [Google Scholar] [CrossRef] [Scilit]
- Kapoor, S.; Narayanan, A. Leakage and the reproducibility crisis in machine-learning-based science. Patterns 2023, 4, 100804. [Google Scholar] [CrossRef] [Scilit]
- Joeres, R.; Blumenthal, D.B.; Kalinina, O.V. Data splitting to avoid information leakage with DataSAIL. Nat. Commun. 2025, 16, 3337. [Google Scholar] [CrossRef] [Scilit]
- Adege, A. Maize Crop Disease (Leaf) [Data set]. Mendeley Data, V1, 2026. [CrossRef]
- Rahman, M.S. Corn Leaf Disease Classification Dataset. Mendeley Data, V1, 2026. [CrossRef]
- Koh, P.W.; Sagawa, S.; Marklund, H.; Xie, S.M.; Zhang, M.; Balsubramani, A.; Hu, W.; Yasunaga, M.; Phillips, R.L.; Gao, I.; et al. WILDS: A Benchmark of In-The-Wild Distribution Shifts. In Proceedings of the 38th International Conference on Machine Learning (ICML); Virtual, 18–24 July 2021, PMLR: Cambridge, MA, USA, 2021; Volume 139, pp. 5637–5664. [Google Scholar]
- Gulrajani, I.; Lopez-Paz, D. In Search of Lost Domain Generalization. In Proceedings of the International Conference on Learning Representations (ICLR), Virtual, 3–7 May 2021. [Google Scholar]
- Fuentes, A.; Yoon, S.; Kim, T.; Park, D.S. Open set self and across domain adaptation for tomato disease recognition with deep learning techniques. Front. Plant Sci. 2021, 12, 758027. [Google Scholar] [CrossRef] [Scilit]
- Yang, S.; Feng, Q.; Zhang, J.; Yang, W.; Zhou, W.; Yan, W. From laboratory to field: Cross-domain few-shot learning for crop disease identification in the field. Front. Plant Sci. 2024, 15, 1434222. [Google Scholar] [CrossRef] [Scilit]
- Zhao, C.; Xu, T.; Zhang, Z.; Geng, X. Lightweight cross-domain few-shot plant disease recognition through target-domain statistical calibration. Sensors 2026, 26, 3632. [Google Scholar] [CrossRef] [Scilit]
- Bouthillier, X.; Delaunay, P.; Bronzi, M.; Trofimov, A.; Nichyporuk, B.; Szeto, J.; Sepah, N.; Raff, E.; Madan, K.; Voleti, V.; et al. Accounting for variance in machine learning benchmarks. Proc. Mach. Learn. Syst. 2021, 3, 747–769. [Google Scholar]
- Dietterich, T.G. Approximate statistical tests for comparing supervised classification learning algorithms. Neural Comput. 1998, 10, 1895–1923. [Google Scholar] [CrossRef] [Scilit]
- Demšar, J. Statistical comparisons of classifiers over multiple data sets. J. Mach. Learn. Res. 2006, 7, 1–30. [Google Scholar]
- Efron, B.; Tibshirani, R.J. An Introduction to the Bootstrap; Chapman & Hall: New York, NY, USA, 1993. [Google Scholar]
- Holm, S. A simple sequentially rejective multiple test procedure. Scand. J. Stat. 1979, 6, 65–70. [Google Scholar]
- Varma, S.; Simon, R. Bias in error estimation when using cross-validation for model selection. BMC Bioinform. 2006, 7, 91. [Google Scholar] [CrossRef] [Scilit]
- Mayo, F.; Maina, C.; Mgala, M.; Mduma, N. Deep learning models for the early detection of maize streak virus and maize lethal necrosis diseases in Tanzania. Front. Artif. Intell. 2024, 7, 1384709. [Google Scholar] [CrossRef] [Scilit]
- Nakatumba-Nabende, J.; Murindanyi, S. Deep learning models for enhanced in-field maize leaf disease diagnosis. Mach. Learn. Appl. 2025, 20, 100673. [Google Scholar] [CrossRef] [Scilit]
- Weldeslasie, D.T.; Mekonen, M.Y.; Abebe, A.M.; Desta, K.T. A statistically validated stacking ensemble of CNNs and vision transformer for robust maize disease classification. Discov. Artif. Intell. 2025, 5, 284. [Google Scholar] [CrossRef] [Scilit]
- Hu, L.; Shi, B.; Hu, S.; Song, M.; Yang, A.; Wang, Z.; Yang, J.; Tang, G.; Bai, B.; Wang, S. A paradigm-level evaluation of deep learning architectures for plant pest and disease recognition under data-scarce field conditions. Front. Plant Sci. 2026, 17, 1807927. [Google Scholar] [CrossRef] [Scilit]
- Prince, R.H.; Mamun, A.A.; Peyal, H.I.; Miraz, S.; Nahiduzzaman, M.; Khandakar, A.; Ayari, M.A. CSXAI: A lightweight 2D CNN-SVM model for detection and classification of various crop diseases with explainable AI visualization. Front. Plant Sci. 2024, 15, 1412988. [Google Scholar] [CrossRef] [Scilit]
- Li, J.; Yin, Z.; Li, D.; Zhang, H.; Xu, M. An efficient non-parametric feature calibration method for few-shot plant disease classification. Front. Plant Sci. 2025, 16, 1541982. [Google Scholar] [CrossRef] [Scilit]
- Zhang, X.; Xu, X. PlantClassiNet: A dual-modal fine-tuning framework for CNN-based plant disease classification. Appl. Sci. 2026, 16, 170. [Google Scholar] [CrossRef] [Scilit]
- Sharif, M.I.; Zhong, Y.; Sajid, M.Z.; Marinello, F. Real-field-ready and digitally sustainable plant disease recognition via federated multimodal edge learning and few-shot domain adaptation. Agriculture 2026, 16, 918. [Google Scholar] [CrossRef] [Scilit]
- Mensah, P.K.; Akoto-Adjepong, V.; Adu, K.; Ayidzoe, M.A.; Bediako, E.A.; Nyarko-Boateng, O.; Boateng, S.; Donkor, E.F.; Bawah, F.U.; Awarayi, N.S.; et al. CCMT: Dataset for crop pest and disease detection. Data Brief. 2023, 49, 109306. [Google Scholar] [CrossRef] [Scilit]
- Mduma, N.; Mayo, F. Maize Imagery Dataset—Tanzania. Mendeley Data, V1, 2023. [CrossRef]
- Arun Pandian, J.; Geetharamani, G. Data for: Identification of Plant Leaf Diseases Using a 9-Layer Deep Convolutional Neural Network. Mendeley Data, V1, 2019. [CrossRef]
- Geetharamani, G.; Arun Pandian, J. Identification of plant leaf diseases using a nine-layer deep convolutional neural network. Comput. Electr. Eng. 2019, 76, 323–338. [Google Scholar] [CrossRef] [Scilit]
- Appiah, O.; Hackman, K.O.; Diakalia, S.; Codjia, A.K.D.; Bêbê, M.; Ouedraogo, V.; Diallo, B.A.A.; Gandji, K.; Abdoul-Karim, D.; Ogunjobi, K.O.; et al. TOM2024: Datasets of tomato, onion, and maize images for developing pests and diseases AI-based classification models. Data Brief. 2025, 59, 111357. [Google Scholar] [CrossRef] [Scilit]
- Howard, A.; Sandler, M.; Chu, G.; Chen, L.-C.; Chen, B.; Tan, M.; Wang, W.; Zhu, Y.; Pang, R.; Vasudevan, V.; et al. Searching for MobileNetV3. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Seoul, Republic of Korea, 27 October–2 November 2019; pp. 1314–1324. [Google Scholar] [CrossRef] [Scilit]
- He, K.; Zhang, X.; Ren, S.; Sun, J. Deep Residual Learning for Image Recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 27–30 June 2016; pp. 770–778. [Google Scholar] [CrossRef] [Scilit]
- Tan, M.; Le, Q.V. EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks. In Proceedings of the 36th International Conference on Machine Learning (ICML), Long Beach, CA, USA, 9–15 June 2019; PMLR: Cambridge, MA, USA, 2019; Volume 97, pp. 6105–6114. [Google Scholar]
- Mehta, S.; Rastegari, M. MobileViT: Light-Weight, General-Purpose, and Mobile-Friendly Vision Transformer. In Proceedings of the International Conference on Learning Representations (ICLR), Virtual, 25–29 April 2022. [Google Scholar]
- Dosovitskiy, A.; Beyer, L.; Kolesnikov, A.; Weissenborn, D.; Zhai, X.; Unterthiner, T.; Dehghani, M.; Minderer, M.; Heigold, G.; Gelly, S.; et al. An Image is Worth 16 × 16 Words: Transformers for Image Recognition at scale. In Proceedings of the International Conference on Learning Representations (ICLR), Virtual, 3–7 May 2021. [Google Scholar]
- Liu, Z.; Lin, Y.; Cao, Y.; Hu, H.; Wei, Y.; Zhang, Z.; Lin, S.; Guo, B. Swin Transformer: Hierarchical Vision Transformer Using Shifted Windows. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Montreal, QC, Canada, 10–17 October 2021; pp. 10012–10022. [Google Scholar] [CrossRef] [Scilit]
- Deng, J.; Dong, W.; Socher, R.; Li, L.-J.; Li, K.; Fei-Fei, L. ImageNet: A Large-Scale Hierarchical Image Database. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Miami, FL, USA, 20–25 June 2009; pp. 248–255. [Google Scholar] [CrossRef] [Scilit]
- Loshchilov, I.; Hutter, F. Decoupled Weight Decay Regularization. In Proceedings of the International Conference on Learning Representations (ICLR), New Orleans, LA, USA, 6–9 May 2019. [Google Scholar]
- Müller, R.; Kornblith, S.; Hinton, G. When does label smoothing help? Adv. Neural Inf. Process. Syst. 2019, 32, 4694–4703. [Google Scholar]
- Gorodkin, J. Comparing two K-category assignments by a K-category correlation coefficient. Comput. Biol. Chem. 2004, 28, 367–374. [Google Scholar] [CrossRef] [Scilit]
- Kendall, M.G.; Smith, B.B. The problem of m rankings. Ann. Math. Stat. 1939, 10, 275–287. [Google Scholar] [CrossRef] [Scilit]
- Selvaraju, R.R.; Cogswell, M.; Das, A.; Vedantam, R.; Parikh, D.; Batra, D. Grad-CAM: Visual explanations from deep networks via gradient-based localization. Int. J. Comput. Vis. 2020, 128, 336–359. [Google Scholar] [CrossRef] [Scilit]
- Toda, Y.; Okura, F. How convolutional neural networks diagnose plant disease. Plant Phenomics 2019, 2019, 9237136. [Google Scholar] [CrossRef]
- Oquab, M.; Darcet, T.; Moutakanni, T.; Vo, H.; Szafraniec, M.; Khalidov, V.; Fernandez, P.; Haziza, D.; Massa, F.; El-Nouby, A.; et al. DINOv2: Learning robust visual features without supervision. arXiv 2024. [Google Scholar] [CrossRef] [Scilit]
- Xu, M.; Park, J.-E.; Lee, J.; Yang, J.; Yoon, S. Plant disease recognition datasets in the age of deep learning: Challenges and opportunities. Front. Plant Sci. 2024, 15, 1452551. [Google Scholar] [CrossRef] [Scilit]
- Xiang, K.; Shi, D.; Zhu, X. Quantifying the reliability gap in cross-domain plant disease classification: Benchmarking the limited efficacy of standard mitigation techniques under controlled-to-field shift. Front. Plant Sci. 2026, 17, 1826962. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.



