A camera can scan every plant in a greenhouse. It cannot reliably tell one early fungal leaf spot from another. A molecular test can tell sister pathogens apart at a few copies per microlitre, but it has to destroy tissue and usually detects only one target per reaction. Field deployment therefore needs a screener that decides, image by image, whether a leaf is clear, whether it is infected with a named pathogen, or whether it needs a specific confirmatory assay, and if so which one. This proposal builds that screener under the conditions that actually hold in the field. Labeled examples of early lesions are few, healthy foliage makes up nearly all of the canopy, and the assay budget is fixed.
The core idea is to have the vision model output a small set of candidate pathogens with a guaranteed per-class hit rate, instead of a single label. That set then maps onto a molecular assay panel. The hard part is the guarantee. Rare disease classes have perhaps five labeled images, and that is too few to calibrate each class separately. We therefore pool calibration across groups of classes that the model visually confuses. We then ask whether species-marker biology can collapse a whole group into one test: an assay that targets a marker conserved across the group, followed by a hypervariable marker that splits the group.
Core Claim
The bottleneck in vision-directed molecular confirmation is not accuracy. It is whether the screener's uncertainty about rare classes can be trusted at field prevalence. Take a screener trained few-shot on imbalanced data and let it choose assays by softmax confidence. It will send most of the budget to confident-but-wrong majority cases and miss rare early infections. This is the same failure seen in clinical audio, where an unadjusted CNN reached 88.2% specificity but only 70.8% sensitivity (Classification of Heart Sound Recordings Using Convolution Neural Network).
We claim three things. First, a set-valued screener calibrated per confusion group can hold a stated sensitivity target for every disease class, not just on average. Second, at a matched assay budget it will detect measurably more rare-class infections than confidence thresholding. Third, the same confusion structure tells a lab which few assays are worth developing.
Where This Sits
Visual early detection work has pushed accuracy with specialized architectures. TomFormer pairs a CNN with a transformer detector. It reaches 87% mAP on KUTomaDATA but only 80% on Early Blight, because early blight looks like other fungal spots. WD-YOLO distills YOLOv10l into a 2.78M-parameter detector with adaptive receptive fields, reaching 65.4% mAP50 on PlantDoc. Vision-language models inject text descriptions of symptoms. CMDF-VLM does so with full supervision. VLCD does so few-shot and beats APE-T by 4.73% at one shot. All of these papers motivate the proposal, because they document a residual visual confusion that more capacity has not removed. All of them also report single-label accuracy on balanced splits. None produces an output that can drive a downstream test, and none evaluates at operational healthy-to-diseased ratios.
The molecular side supplies the actions our screener chooses among. OAR-MNA is a one-pot isothermal assay. It detects Acidovorax citrulli at 20 copies/µL in 45 minutes, with perfect specificity against 10 related pathogens and 100% agreement with qPCR on 22 seed samples. MIRA-CRISPR/Cas12a separates sister Panax species (AUC above 0.91) by targeting a mitochondrial intron after nuclear ITS2 failed to discriminate them. That second paper also constrains the design. It shows that whether one assay can split a confusion group depends on marker divergence between its members. The hotspot literature supplies the principle we reuse: universal primers sit on conserved flanks while the hypervariable core discriminates. Examples include rps3-rpl22-rps19 in Zanthoxylum (Comparative chloroplast genome analysis…) and the ITS/ITS2 overview in Targeting Hypervariable Genomic Hotspots for Species Identification. This makes a group-level test followed by a member-level test biologically natural. These molecular papers stop at the bench. Nothing in the file connects them to a scanning pipeline.
From the imbalance and small-sample literature we take two lessons. The first is that naive oversampling memorizes the few positives (Mitigating Class Imbalance in Clinical Machine Learning). The second is that structure shared across classes buys sample efficiency: MiME reports a 15% relative PR-AUC gain on small cohorts from a hard-coded hierarchy. We use structure to pool calibration data, not to shape the embedding.
Research Program
The screener is any few-shot backbone that outputs class scores. We use two: a frozen CLIP-style encoder with a VLCD-T-style adapter, and a WD-YOLO-sized detector for field images. We first correct its scores from training prevalence to a stated field prevalence by adding the log prior ratio to the logits. We then build a prediction set for each image $x$ as
$$C(x)=\{\,y:\ s(x,y)\le \hat q_{g(y)}\,\},$$
where $s(x,y)$ is a nonconformity score (one minus the adjusted probability of class $y$) and $g(y)$ is the confusion group containing $y$. The threshold $\hat q_{g}$ is the $(1-\alpha)$ quantile of scores $s(x_i,y_i)$ over held-out labeled images whose true class lies in group $g$. The guarantee is that, for images whose true class is in group $g$, the true class falls inside the set with probability at least $1-\alpha$. This follows from standard split-conformal exchangeability, applied within the group. Pooling is the point. A group of four classes with five calibration images each gives twenty scores, where each class alone gives five. The price is that coverage is guaranteed per group, not per class, and we measure how far per-class coverage drifts from the target.
Confusion groups are found without the test data. We cluster classes by the symmetric confusion rates of leave-one-out predictions on the few-shot training set. We compare this against groups defined by pathogen taxonomy and groups defined by host crop. The set $C(x)$ then maps to actions. An empty set, or a set containing only "healthy", clears the plant. A singleton disease is called directly. A multi-class set triggers the cheapest assays that cover it: a group-level assay where one exists, otherwise one single-target assay per member. Assays are ranked by adjusted posterior mass when the budget binds.
Budget-bound ranking gives the second contribution, which is panel design. Given the confusion structure and field prevalences, we choose the $K$ assays to develop so as to maximize expected rare-class detections per thousand plants scanned. We report whether the optimal panel favors group-level (conserved-marker) or species-level (hypervariable-marker) assays.
Baselines
The naive reference point is the vision-only screener that takes the top-scoring class and never tests. Its sensitivity on rare classes at field prevalence is the floor. The second naive point spends the same assay budget on randomly sampled plants, with assays chosen uniformly. This is what a scout without a camera model would achieve.
The strongest simple competitor is confidence thresholding. The same backbone, with the same prevalence correction, sends every image whose top probability falls below a threshold to the assay for its top-one class. The threshold is tuned so the assay rate matches ours exactly. This is what a practitioner would build first, and it uses every ingredient except the grouped sets. A stronger variant sends the top-$k$ classes. We tune $k$ and the threshold jointly under the same budget and the same held-out tuning data.
For backbone strength we anchor on reported numbers. For TomFormer these are 87% mAP overall and 80% on Early Blight on KUTomaDATA, and 81% mAP on PlantDoc (TomFormer). For WD-YOLO it is 65.4% mAP50 on PlantDoc (WD-YOLO). For CMDF-VLM it is 87.64% accuracy on AI Challenge 2018 (CMDF-VLM). We retrain whichever backbone we reproduce under our few-shot, imbalanced splits rather than quoting balanced-split numbers as comparable. For the quantity we actually care about, rare-class sensitivity per assay budget at field prevalence, no reported result found on Lacuna for any of these benchmarks.
We also compare against imbalance remedies applied to the thresholding baseline: oversampling of minority classes, and a triplet-loss metric-learning head following Contrastive Learning of Cough Descriptors. That paper reports 72.87% validation AUC on DiCOVA, which is a different modality and not a directly comparable number.
The key ablation replaces group-pooled calibration with two alternatives. One calibrates each class separately. The other uses a single global threshold. Everything else stays fixed, and a further arm swaps visual-confusion groups for taxonomy groups.
We count the proposal as beating the baselines if it meets two conditions on at least two datasets. The first is higher sensitivity on the rarest third of disease classes at an identical assay rate. The second is per-class coverage within five points of the $1-\alpha$ target, where the thresholding baseline misses by more.
Why not just…?
Why not just threshold softmax confidence and test the top guess? This is the real threat. If prevalence-corrected probabilities from a few-shot model are already well calibrated on rare classes, grouped sets add nothing. The TomFormer early-blight result suggests they will not be. Its errors concentrate in visually overlapping classes, which is where a top-one assay picks the wrong target. The matched-budget comparison settles this directly, and we will report a null result if thresholding ties.
Why not just use a phylogenetic prior in the embedding, the obvious bridge between markers and vision? Symptom similarity does not follow pathogen ancestry. Bacterial spot and fungal leaf spots are distant relatives that look alike. Forcing embeddings to respect genetic distance could therefore push apart exactly the classes the model must learn to confuse honestly. The file's own gap analysis (Few-Shot Image Classification…; MiME) motivates hierarchy as a data-efficiency device. We keep that role but test it where it is safer, as a calibration-pooling rule in the taxonomy-group ablation.
Why not just fix imbalance with oversampling or a balanced loss? These change the classifier, not the decision. They also carry the memorization risk documented in Mitigating Class Imbalance in Clinical Machine Learning. We include them as backbone variants under thresholding. If one of them alone closes the gap, the calibration machinery is unnecessary.
Why not just test every plant molecularly? Single-target assays scale linearly in reagents and in destroyed tissue. At field prevalence nearly every test would come back negative. The random-sampling baseline quantifies this trade-off at each budget.
Proposed Experiments
We build few-shot imbalanced splits from PlantDoc, KUTomaDATA, AI Challenge 2018, and the VLCD PlantVillage-plus-field set. Each split keeps between one and ten training images per disease class, with healthy images left abundant. Each split holds out a small calibration pool. Test sets are resampled to diseased prevalences of 5%, 1%, and 0.1%.
Assays are simulated with sensitivity and specificity taken from the cited assays. We use perfect specificity and near-perfect sensitivity after OAR-MNA, and a noisier AUC-0.91 regime after MIRA-CRISPR. Group-level assays exist only where the group's members share a genus, which is a stated assumption.
The first decisive check is rare-class sensitivity against assay rate, as a full curve, for our method and each baseline. The second is per-class coverage against nominal as calibration shots shrink from ten to one. This shows where pooling stops helping and starts hiding failing classes. The third compares the panel chosen by our design procedure with a panel of the $K$ most prevalent pathogens, by detections per thousand plants.
One limitation is fixed by the data. None of these benchmarks is labeled by disease stage, so "early" is approximated by rarity and field conditions. A small greenhouse pilot with inoculated tomatoes, imaged daily and confirmed by qPCR, would test whether the coverage guarantees hold on truly pre-symptomatic lesions. We treat the pilot as a follow-up, not a precondition.
References
- Classification of Heart Sound Recordings Using Convolution Neural Network
- Early and Accurate Detection of Tomato Leaf Diseases Using TomFormer
- A Lightweight and Efficient Plant Disease Detection Method Integrating Knowledge Distillation and Dual-Scale Weighted Convolutions
- Cross-Modal Data Fusion via Vision-Language Model for Crop Disease Recognition
- Few-Shot Image Classification of Crop Diseases Based on Vision-Language Models
- An Ultra‐Sensitive Quarantine Pathogen On‐Site Detection Based on a One‐Pot Asymmetric Recombinase Polymerase Amplification and <scp>MNAzyme</scp> ‐Assisted Target Recycling Biosensor ( <scp>OAR</scp> ‐ <scp>MNA</scp> )
- Development of a MIRA-CRISPR/Cas12a-based nucleic acid detection system for the discrimination of Panax ginseng and Panax quinquefolium
- Comparative chloroplast genome analysis of five widespread species (Zanthoxylum L.) and development of molecular markers for their discrimination
- Rapidly discriminate commercial medicinal Pulsatilla chinensis (Bge.) Regel from its adulterants using ITS2 barcoding and specific PCR-RFLP assay
- MiME: Multilevel Medical Embedding of Electronic Health Records for Predictive Healthcare
- Contrastive Learning of Cough Descriptors for Automatic COVID-19 Preliminary Diagnosis