For now, I tried a small numerical check and looked into the dataset provenance:
Thanks for publishing the unfavorable external results alongside the strong internal score, and for making the per-run evidence available to examine.
My answer: what I would investigate first
For this project, I would start by defining what population, labels and evaluation contract each external score represents, rather than choosing one possible cause of the accuracy gap immediately. In practice, that means checking the source and selection of the test photographs, the mapping to Healthy / Brown Rust / Yellow Rust, the classes actually present in each holdout, and whether training or model selection has already used images from the same source family. I would next verify the frozen inference path on a few fixed images: checkpoint, output-class order, decoding, resizing and normalization. Once those inexpensive checks are settled, I would inspect errors by true class and source, especially Yellow Rust on JIC, before investigating acquisition conditions, symptoms or background shortcuts. Calibration, Grad-CAM and new-site data would be valuable separate follow-ups, not prerequisites for this first pass.
This is an order of investigation, not a diagnosis. The sources differ in several ways at once, so the available results do not isolate camera, lesion appearance, background, label policy, selection or preprocessing as the cause. The project already discusses its limitations and explicitly treats the classifier as a research demonstration, not a production agricultural diagnostic. I think the strongest contribution is to make its existing negative external results easier to interpret and independently extend.
One striking detail is already visible in the published JIC confusion matrix: 239/489 images are labeled Yellow Rust, but the classifier predicts Yellow Rust only 16 times. Fifteen of those 16 predictions are correct, yet just 15/239 actual Yellow Rust images are recognized as Yellow. That narrow, class-specific pattern gives a better first inspection target than an undifferentiated statement that external accuracy is low. I calculated it from the author’s table; I have not independently run the MobileNetV2 checkpoint.
A practical default path
I would keep the existing experiments and add only a small reproducibility/evaluation sheet:
- One source-and-class table. For JIC, IARI and Ethiopia, show the original source, selection rule, true-class support, excluded categories, the metric convention and whether training included other images from that same source family. Mark field-, plant- or session-disjoint status as unknown unless it is documented. This is mainly consolidation of work already present in the repository.
- A tiny prediction-contract check. Record the exact checkpoint or identifier, ordered output classes, RGB conversion, target size, resize method and inference normalization. If possible, repeat three to five fixed predictions through the documented pipeline. If they match the reference, move on; if not, make the pipelines equivalent before interpreting an aggregate difference. This is a low-cost safeguard, not an allegation of a bug.
- A focused error slice. Use the existing JIC confusion matrix to compare a few Yellow-to-Brown and Yellow-to-Healthy errors with correctly recognized Yellow cases. The published Grad-CAM examples provide a starting point, but a balanced sample would help. If per-image confidence and images are available under appropriate access terms, note symptoms, occlusion, image preparation, field/glasshouse context and background. Keep observations separate from causal interpretations.
- Only then, a stronger test if warranted. A truly unused acquisition source with compatible labels and grouping information would be a good next holdout. But it should be specified before iterating on that target. If no such set is available, JIC is still a useful external selected-sample stress test, just not automatically an unbiased estimate of typical future-farm accuracy.
The source-exclusion experiments already examine source composition. I would build on them rather than ask for a new architecture or large training sweep.
What the three external evaluations actually contain
The dataset provenance documentation distinguishes three quite different supports:
| Evaluated subset |
True Brown Rust |
True Healthy |
True Yellow Rust |
Interpretation to keep attached |
| JIC selected three-class subset |
128 |
122 |
239 |
489 of the five-class Long/CerealConv expert-comparison images; purposive selection |
| IARI holdout |
55 |
74 |
0 |
129 images; only two true classes; source family appears in some mixed training arms |
| Ethiopia holdout |
0 |
20 |
41 |
61 images; only two true classes; source family appears in some mixed training arms |
An absent true class can still be predicted incorrectly. But present-class macro-F1 on the two-class IARI/Ethiopia holdouts is not identical in meaning to three-class macro-F1 on JIC. Report the actual support and averaging convention; the methods already document this.
The author already reports zero exact SHA-256 duplicates and zero pHash near-duplicate pairs (Hamming distance at most 5) between the JIC subset and the original 3,679-image source. Those are useful checks, not work I would ask to repeat by default. Image hashes do not, however, establish independence at the plant, field, capture-session or source-family level; if that grouping is unavailable, it can simply be marked unknown.
Two small checks I actually tried
Numerical consistency of the published extension. I took the author’s 18 per-run CSV rows and six-condition summary CSV at commit 5cebbe7edbf8654a8b0747d48612b5107d7da811. Using a separate Python standard-library calculation on Linux/Python 3.12.14, I grouped the 450- and 900-image conditions by nominal additional-source share (0%, 25%, 50%; three seeds each). For each of the six accuracy/F1 metrics, I recomputed the group mean and sample SD. All 72 mean/SD values matched the published summary within 1e-12 (maximum absolute difference about 1.11e-16). This confirms the requested CSV arithmetic for Issue #5 at the frozen revision; it is not a submitted Issue comment. It does not reproduce model fitting, predictions, image labels or the train/test split.
A bounded JIC provenance check. I also tried a CPU Colab comparison of Zenodo 7307816, which presents 999 individual images, and Zenodo 7573133, which packages the relevant collection as a large ZIP referenced by the original paper. The notebook compared the public file inventory with the archive central directory through bounded HTTP byte-range requests; the roughly 1 GB archive was not fully downloaded. The returned result showed 999/999 matching case-insensitive filenames and uncompressed sizes, with no missing, extra or different-size names. Two sampled Healthy files, Healthy13.png and Healthy4.png, additionally had MD5 digests matching their individual-record metadata. Those are two byte-level spot checks, not 999 cryptographic matches: the remaining 997 image contents were not hashed. I independently validated the result ZIP checksums, class totals and metadata relationships, but that secondary audit did not re-download the original images or rerun the two MD5 calculations.
The inventory supports Brown Rust 128, Healthy 122, Yellow Rust 239, Powdery Mildew 161 and Septoria 349: 999 altogether; the first three total 489. That is strong structural support for the connection between the original five-class selected set and the three-class JIC evaluation. It is not proof that I reproduced the exact pixels passed to the author’s MobileNetV2 or its reported 188/489 predictions. The checks address two distinct questions: arithmetic consistency of author-published tables and structural provenance of a public image collection.
Why the JIC error distribution and selection both matter
The JIC published matrix, with true labels as rows and predicted labels as columns, is:
| True class |
Pred. Brown |
Pred. Healthy |
Pred. Yellow |
Row total |
| Brown Rust |
74 |
53 |
1 |
128 |
| Healthy |
23 |
99 |
0 |
122 |
| Yellow Rust |
126 |
98 |
15 |
239 |
| Predicted totals |
223 |
250 |
16 |
489 |
The diagonal gives 74 + 99 + 15 = 188, or the reported 38.45%. Yellow Rust has 15/16 = 93.75% precision among its rare positive predictions, but only 15/239 = 6.28% recall. Of 239 actual Yellow images, 126 become Brown predictions and 98 become Healthy predictions. Yellow accounts for 48.88% of true labels but 3.27% of predicted labels. This is a descriptive fact about the published predictions, not evidence of a class-index swap or shortcut by itself. The next useful question is what the correct and incorrect Yellow images have in common or differ on, with a small sample drawn by a stated rule.
The original Long et al. study selected its 999-image expert-comparison set from a five-class test pool, deliberately including 111 CerealConv errors and other class/confidence examples. This is a useful challenging population, but not a random sample of future farm submissions.
This distinction works both ways. Selection does not erase the MobileNetV2’s poor result on the 489 images. Nor do CerealConv’s 111 errors establish which examples MobileNetV2 missed, or why. I would describe 38.45% on a selected external JIC subset, neither as typical-farm accuracy nor as a result explained away by selection.
The more detailed branches below explain how I would preserve these findings while deciding what to test next.
1. Evaluation populations, labels, metrics and split units
The most useful first document may be an evaluation contract rather than a new experiment. For each holdout, I would record original collection, selection rule, included and excluded labels, true-class support, model output-index mapping, train-source exposure, split/group unit, and reported metric convention. If a value is unavailable, write unknown. The point is to make the comparison reproducible without assuming that the same label string means the same population or annotation rule everywhere.
For JIC, the three allowed labels are a subset of a five-disease study, and the particular 999-image expert-comparison pool was deliberately selected. The 489-image three-class result therefore has a population definition beyond the word external. For IARI, Brown and Healthy are present as true labels, but Yellow is not. Ethiopia has Yellow and Healthy, but no true Brown. A predicted category that is absent from the ground truth can still contribute false positives and false negatives for the supported classes. Yet an F1 averaged over the two present true classes is a different reported statistic from a three-class macro-F1. The author’s methods already note this; preserving the convention prevents accidental apples-to-oranges interpretation.
I would also label independence at the level actually established. A held-out file can be new while its acquisition source is familiar from other training images; a new file or perceptual hash does not establish a new plant, capture session, field or site. That does not make the image split invalid: it means it tests a different transfer question. A group-aware site/session split is relevant if the intended target is a new farm, while a within-source image split is relevant if the target is fresh images from a known collection. If no plant/site IDs were retained, there is no need to infer them retrospectively; the limitation can be explicit.
These distinctions provide a clean way to present two apparently contradictory facts without treating either as wrong: 98.78% on the internal evaluation and 38.45% on a different selected external evaluation. They are valid reported results for their stated protocols, but their difference is not a controlled intervention in one variable called domain shift. The WILDS benchmark paper and REFORMS reporting framework are useful general references for defining the test population and reporting choices; neither proves that this repository made a particular mistake.
2. The JIC source selection and what the Zenodo check proves
The paper points to Zenodo 7573133, whereas the project’s JIC evaluation refers to Zenodo 7307816. The former presents a large archive; the latter exposes individual image entries. Similar descriptions and equal counts were suggestive but not enough for me to declare them identical. The CPU Colab check used the public metadata of the individual entries and the packaged ZIP’s central directory to compare case-folded image names and uncompressed sizes. It also checked for collisions, missing/extra entries and size mismatches. The bounded HTTP Range method avoided downloading the entire approximately 1.03-billion-byte compressed object.
The result was: 999 entries on each side; 999/999 corresponding names and uncompressed sizes; zero missing/extra/different-size entries under the implemented match; two sampled Healthy MD5s matched. The samples were Healthy13.png and Healthy4.png. Their bytes were briefly extracted in memory and compared against metadata, not redistributed. The independent post-run checker validated the result ZIP’s CRC, its 11 checksum entries, class-count arithmetic and reported MD5-to-metadata agreement. Because the original sample-image bytes were intentionally not included in the result ZIP, that local checker could not independently repeat the raw-image MD5 computations. No full image collection was downloaded for the check, and the other 997 contents remain unverified by hashes.
This supports structural correspondence plus two spot checks. The exact class-count bridge, 128 Brown + 122 Healthy + 239 Yellow = 489, links the three-class test to the deliberately selected pool, with Mildew and Septoria excluded. It does not prove every byte, label or MobileNetV2 prediction.
If stronger identity evidence later becomes central, sample Brown and Yellow bytes too. Full archive hashing would not, by itself, isolate the classifier’s failure mechanism.
3. An inexpensive frozen-inference gate
Before attributing class-specific errors to the environment, I would make a minimal same-input prediction test reproducible. This is not because I found a preprocessing defect; I did not. It is because a model and an evaluation pipeline together produce the label, and a mismatch in either can contaminate any attempted domain-shift interpretation.
The small contract I would record is:
checkpoint: <actual immutable version/hash if available>
ordered_output_classes: <actual index-to-label list>
source_image: <exact file name/hash, if shareable>
decode_and_color: <actual mode, e.g., RGB>
size_and_interpolation: <actual values>
inference_scaling: <actual normalization/preprocess function>
source_specific_crop_or_mask: <actual operation, or none>
ordered_three_scores: <three values in output-index order>
chosen_label: <argmax mapped by recorded class order>
The placeholders are a template, not evidence that I obtained these values. A few fixed, already-evaluated images covering the supported classes, ideally with a known error, are sufficient for a smoke check. If their ordered scores and labels match the reference within a sensible numerical tolerance, stop spending effort on the software-contract branch for now. If they diverge, isolate checkpoint, class-index, decoder, resize, normalization or mask differences one at a time. Do not silently overwrite the earlier result with a corrected one; version both analyses and say what changed.
This is especially relevant when images arrive from sources with different original preparation. The IARI dataset description documents foreground/background processing, including Otsu masking, whereas a general field photograph may retain natural clutter. It matters whether that processing was part of the source image, something done during model training, or a transformation applied only during testing. Even an intentional foreground-only comparison answers a different question from a full-image test.
The repository is the natural first source for the existing path and weights. A reviewer need not reproduce all 18 training runs just to provide a useful prediction-contract example. If checkpoint access or environment compatibility prevents that small replay, a precise statement of what is unavailable is itself useful reproducibility information. It should not be called a failed biological generalization experiment.
4. Source composition, acquisition, symptoms and background cues
The original IARI collection, Ethiopian field collection and JIC field/glasshouse comparison pool differ in source preparation, class selection and acquisition. Camera, lesion stage, cultivar, foreground treatment and class mixture may change together. A dataset name is not a controlled variable.
The most useful descriptive analysis might have three levels: (i) source-by-true-class confusion, always with counts; (ii) a small selection of correct and incorrect images with confidence and visible symptoms; and (iii) acquisition notes such as field/glasshouse, foreground mask, crop, blur, background or occlusion. For JIC I would deliberately include Yellow-to-Brown, Yellow-to-Healthy and correctly classified Yellow examples. If possible, stratify selection by confidence rather than hand-picking only unusually obvious errors. A technical reviewer can describe visual patterns; only an appropriate crop-disease specialist should assert a new biological diagnosis for ambiguous lesions.
The author’s source-exclusion work already makes a valuable point. In its documented 450-image setting, the original-only condition reported approximately 42.64% IARI and 3.28% Ethiopia accuracy. With IARI images added, the corresponding figures were about 87.34% IARI and 7.10% Ethiopia; with Ethiopian images added, about 33.07% IARI and 87.98% Ethiopia. These changes make source-specific training composition hard to ignore. They do not tell us whether camera style, foreground, lesion morphology, class priors or another correlated property produced the gain. An ‘add one source’ experiment changes several of those together. This is why I would regard the study as evidence of source-conditioned response, not as a factorial isolation of a biological mechanism.
Nominal versus realized mixture also matters: one nominal 25% arm actually had 76/450, about 16.89%, additional-source photos. Use realized counts for dose interpretations. Three training seeds do not measure variability across farms.
If a background-dependence hypothesis survives, a later paired control could compare the same frozen model/images in original versus carefully foreground-controlled form. Cropping may remove lesions and masks can change color, contrast or occupancy; log visibility and quality. The Long paper illustrates related masked-image experiments, not this MobileNetV2’s behavior. One altered-input accuracy is not proof the model ignores disease cues.
The immediate result would be a descriptive error table with counterexamples. A clean close-up that fails and a cluttered image that succeeds both challenge a simplistic background story. Handpicked errors generate hypotheses; quantifying a mechanism needs declared sampling and a controlled contrast.
5. A decision path that does not require a long questionnaire
There are several plausible next moves, depending on which small check changes the picture:
- If the label crosswalk or supported classes differ, document the mapping and exclusions first. A mixed infection should not silently become a single Healthy/Brown/Yellow target. Keep two-class holdout F1 conventions explicit. Outcome: a better-defined test, whether or not its headline metric changes.
- If the frozen prediction contract differs, compare the same image under both pipelines and version the corrected result. Outcome: a reproducible software/evaluation distinction. This remains hypothetical here; no actual contract mismatch was identified.
- If labels and pipeline align but errors remain source-specific, use class-conditional examples to distinguish possible appearance, acquisition or context leads. Investigate one contrast at a time, retaining successes as controls. Outcome: a discriminating hypothesis or an honest ‘not yet distinguishable’.
- If the current JIC pool has influenced prior analysis or model choices, keep it for exploratory stress testing, but reserve a separately declared, untouched collection for a future genuinely blind estimate. Outcome: two useful test roles instead of one ambiguously named ‘external’ score.
- If the goal becomes trustworthy confidence or decision support, examine error risk, calibration and abstention on appropriately separated data. Outcome: a reliability protocol, not an automatic repair of Yellow top-1 recall.
The first two branches require little compute; the third starts from existing confusion counts. Independent field data or expert review can wait for a well-defined goal. This avoids changing checkpoint, labels and acquisition together and then mistakenly crediting one factor for the difference.
6. Confidence, abstention, Grad-CAM and out-of-scope images
The project reports confident mistakes, which is worth studying, but calibration is not a substitute for correcting class decisions. Accuracy tests the selected label; calibration compares predicted probabilities with empirical correctness frequencies on an appropriate population. For the usual positive scalar temperature T, replacing logits with logits / T changes confidence but preserves their order, and therefore cannot by itself fix a Yellow-to-Brown argmax error. Guo et al. explain temperature calibration, while Ovadia et al. examine uncertainty under shift. Neither study establishes this model’s specific mechanism.
If reliability is the next goal, I would separate model selection, threshold/calibration fitting and final evaluation. Tuning on the JIC test and then calling the resulting number a fresh independent test would blur that distinction. For abstention, report coverage and error rate among accepted images by class and source, not only average accepted accuracy; rejecting almost every Yellow case might improve an aggregate while defeating the intended use. Costs of missing rust versus false alarms would require agricultural context, so I would avoid inventing operational thresholds or farm advice.
Grad-CAM is a testable explanation, not proof of lesion-based reasoning. Record the explained class and compare heatmaps with expert lesion regions where available, parameter-randomization controls and foreground/context perturbations that preserve lesion visibility. Adebayo et al. supply a useful sanity-check principle. These controls need not delay the initial evaluation audit.
Finally, Healthy/Brown/Yellow is a closed three-class decision. A photograph of Septoria, mildew, mixed disease or an unrelated plant still receives one of those three softmax labels unless rejection/OOD machinery is separately defined. That does not undermine the present research task, which openly states its scope. It simply means that future field-facing studies should measure out-of-scope rejection and co-infection separately rather than silently folding them into this accuracy denominator.
7. When a genuinely new holdout would add information
For a later independent test, I would favor a small, well-documented new acquisition origin with the required labels over a much larger repackaging of images already used for training or model selection. Before downloading or running inference, check collector/source identity, rights to evaluate, exclusive versus multi-label annotations, class mapping, field/site/session groups, known overlaps, and whether the model has already been tuned using that source. A final holdout should have its selection and prediction rule frozen in advance. A small exploratory set can reveal failures but should not be sold as a precise population estimate.
Several related data leads need caveats:
- WFD2020 contains 2,414 wheat images with multi-label disease tags and access/usage conditions. It cannot be converted wholesale to 2,414 independent mutually exclusive Healthy/Brown/Yellow cases; eligibility, co-infection, origin and permissions need review.
- CDPNet’s wheat dataset article reports 1,340 newly acquired field photos within a combined 6,513-image six-class set that also uses Kaggle-origin material. The combined size is not the number of genuinely new field-origin images.
- FWDI is methodologically relevant to field-wheat imagery, but readily accessible, properly licensed per-image labels for an immediately compatible three-class test were not established in this review.
- PlantWild versions differ in taxonomy; the reviewed v2 omits healthy categories. Disease-only web imagery can support other robustness questions without being a drop-in three-class field holdout. The WDD2017 project likewise describes an original dataset that is not publicly redistributable.
These are conditional resources, not verified replacement benchmarks. A negative eligibility screen is useful too. GroupKFold, WILDS and REFORMS offer design tools, not evidence of this model’s specific fault.
8. Reproducibility note and source pointers
The numerical check can be repeated without wheat images or GPU: group the 18 published per-run rows by (train_images, additional_source_share_nominal_pct), require three seed entries for each of six groups, and calculate mean = sum(values)/3 and sample sd = sqrt(sum((x - mean)**2)/2) for the six JIC/IARI/Ethiopia accuracy/F1 columns. Compare each mean and SD with the six-group summary. The frozen per-run CSV and summary CSV identify the input revision; the check covers 72 derived quantities, not the underlying model runs. I have not posted that audit as an Issue #5 comment or a PR.
There are distinct levels of verification: recalculating published CSV statistics, checking source-file structure, replaying predictions with a frozen checkpoint, independently reviewing biological labels, and testing a predeclared new field population. My contribution covers the first and part of the second, with the stated limits. Keeping those levels separate makes a positive numerical finding useful without accidentally suggesting that model generalisation, label accuracy or real-world reliability has been independently proven.
In short, I would preserve the reported external failures as valuable evidence, describe the JIC selected population accurately, verify the small inference contract, and start with the unusually specific Yellow Rust error pattern. A class-by-source comparison could help decide whether acquisition, symptom appearance, label scope or a later reliability experiment is the most useful next branch. It may instead show that the current evidence cannot distinguish those explanations yet. Either result would build constructively on the project’s unusually transparent reporting of negative outcomes.