Conformal Prediction Where Spectra Overlap: Parcel-Level Calibration Stratified by Spectral Confusability

When two land-cover classes reflect light almost identically, a satellite or hyperspectral classifier has little basis for telling them apart. Examples include wheat and barley at peak greenness, or stomach and jejunum tissue under a surgical camera. This is called spectral signature overlap. Conformal prediction is a wrapper that turns any classifier's scores into a set of candidate labels guaranteed to contain the truth with a chosen probability, say 95%. It is an attractive way to make such maps honest: output {wheat, barley} instead of a confident wrong answer. The guarantee, however, is an average over all pixels in the evaluation. In a scene dominated by easy, spectrally distinct pixels, the method can meet 95% on average while covering far less where the spectra actually overlap, which is where users most need it to hold. The guarantee also assumes calibration and test examples are interchangeable. Remote-sensing practice warns that this assumption breaks once calibration and test pixels come from spatially separate fields.

We propose two changes to make conformal coverage hold where confusion lives. First, treat whole parcels (fields, connected regions, or individual subjects), not pixels, as the interchangeable unit. This makes the guarantee survive honest spatially disjoint splits. Second, calibrate separately within bins of a model-independent "spectral confusability" score. For each input, this score measures how mixed the training labels are among its nearest neighbours in raw spectral or spectro-temporal space. The result is a coverage guarantee that holds within the high-overlap bin itself, not only on average. The question the work settles is concrete. Does the leading spatial conformal method silently under-cover spectrally confused regions under honest splits, and does confusability-stratified parcel calibration fix this at modest cost in set size?

Core Claim

The closest existing work is Spatial-Aware Conformal Prediction for Trustworthy Hyperspectral Image Classification (SACP). It averages classifier probabilities over a uniform spatial window before conformal calibration. On Indian Pines with a 3D-CNN, this cuts the average set size from 5.73 to 3.27 labels at 95% coverage. SACP supplies our starting method, but it leaves three gaps.

The first gap is that its exchangeability argument, Theorem 2, covers overlapping patches drawn from one contiguous scene with random splits. ASSESSING THE CONTRIBUTION OF SPECTRAL AND TEMPORAL FEATURES FOR ANNUAL LAND COVER AND CROP TYPE MAPPING shows that exactly this kind of split leaks spatial autocorrelation. It inflates Random Forest accuracy from about 93% to 98% compared with polygon-level splits. The second gap is that its uniform window crosses parcel boundaries. The third is that its guarantee is purely marginal, so it says nothing about the confused strata.

We claim that a single change of calibration unit and stratification restores a statement practitioners can use. Suppose parcels are assigned to calibration and test at random, and a stratifier $G$ is fixed before calibration using training data only. Then for every confusability bin $g$,

$$P\big(Y \in C(X) \mid G(X) = g\big) \ge 1 - \alpha,$$

where $X$ is a test parcel and $Y$ its label. $C(X)$ is its conformal set, formed by thresholding the parcel's non-conformity score $S(X,y)$ at the $\lceil (n_g+1)(1-\alpha)\rceil / n_g$ empirical quantile of the $n_g$ calibration scores in bin $g$.

This is the standard Mondrian (group-wise) conformal guarantee. The contribution does not lie in the inequality. It lies in choosing the unit and the grouping so that the guarantee is both valid under polygon-level splits and aimed at the physical source of error.

Research Program

The work has three parts.

Parcel as the unit. For crop mapping, parcels come from cadastral polygons. The Greek tile's ground truth from paying-agency field visits is polygon-based, so parcels are available there. For the benchmark hyperspectral scenes (Indian Pines, Pavia University, Salinas), ground-truth regions would leak label information at test time. We therefore define test-time parcels by unsupervised superpixel segmentation and report both variants. For the porcine surgical atlas in Spectral organ fingerprints for machine learning-based intraoperative tissue classification with hyperspectral imaging in a porcine model, the natural unit is the annotated region within held-out animals. That paper already evaluates on hold-out subjects, reporting 95.4% ± 3.6% 1D-CNN accuracy.

Within each parcel we aggregate pixel probabilities by averaging. This is SACP's smoothing idea, but bounded by the parcel rather than a square window, so it cannot pull labels across field edges. We then apply the adaptive cumulative-probability score of Classification with Valid and Adaptive Coverage, which lets sets grow on ambiguous inputs.

The confusability stratifier. For a training fold held out from the classifier, we compute the entropy of labels among the $k$ nearest training neighbours in raw spectral space. For time series, we use the annual summary metrics that the Greek study showed separate cereals. We average this entropy over the parcel and cut it into three to five quantile bins.

The stratifier is deliberately independent of the classifier's own confidence. The failure we target is metamerism, where the model is confidently wrong. A low-entropy softmax would place those cases in the "easy" bin. The phenology work in An Identification Method for Spring Maize in Northeast China Based on Spectral and Phenological Features motivates computing the stratifier in feature spaces where physically confusable crops are known to sit together.

In-season analysis. On the Greek Sentinel-2 series, we recompute the stratifier and conformal sets after two, four, six, eight, and all ten acquisition dates. The expectation is that parcels migrate out of the high-overlap bin and sets for pairs like wheat and barley contract as phenological differences emerge. This tests whether stratified coverage stays valid as the input grows. Each truncation length is calibrated separately, so no new theory is needed.

We will implement everything on top of the PyCP toolkit (PyCP: An Open-Source Conformal Predictions Toolkit). That toolkit separates score computation from model training, which lets every baseline share the same trained classifiers.

Baselines

The naive reference point is uncalibrated softmax. We output the top label and flag pixels whose maximum probability falls below a threshold. The threshold is tuned on the calibration split to give 95% accuracy on non-flagged pixels. We also report top-$k$ lists with $k$ chosen the same way. Our method beats this baseline if it covers the truth at the nominal rate in every confusability bin while top-$k$ does not.

Standard pixel-wise split conformal prediction uses the same adaptive score, no spatial aggregation, and one global threshold. It isolates the value of spatial pooling.

The strongest existing competitor is SACP (Spatial-Aware Conformal Prediction for Trustworthy Hyperspectral Image Classification). It is the only published conformal method built for spectral imagery, and it reports an average set size of 3.27 on Indian Pines with a 3D-CNN at 95% coverage. We will first reproduce that figure under its random patch split, to confirm our implementation. We will then rerun SACP under our spatially disjoint block and parcel splits. SACP's window size and weighting will be tuned on the same calibration budget our method gets. All methods will use the same backbones: 1D-CNN, 3D-CNN, and HybridSN, as in SACP. For Pavia University and Salinas, no scalar set-size figure was found on Lacuna, so we will report our own reproduction. For the Greek Sentinel-2 tile and the porcine atlas, no reported conformal result was found on Lacuna. Their best reported point-classifier figures are 93.55% overall accuracy under polygon splits and 95.4% hold-out accuracy respectively; these give context, not comparison.

Beating SACP means one of two outcomes under honest splits. Either we hold coverage within 1.5 points of 95% in the highest-overlap bin where SACP falls short, or we match SACP's worst-bin coverage with smaller sets.

Class-conditional conformal prediction calibrates one threshold per label. It is the textbook response to uneven coverage, and it is conceptually what STRATCP in Act or Defer: Error-Controlled Decision Policies for EHR Foundation Models exploits. That paper shows standard conformal prediction covering only about 10% of a rare positive class where the target was 90%, while its stratified variant exceeded 99%.

Two ablations isolate our ingredients. The first replaces the spectral-neighbour stratifier with bins of the classifier's own softmax entropy. The second keeps parcel aggregation but drops stratification.

Why not just…?

Why not just threshold the softmax? The softmax is least reliable exactly on metamers. The model sees nearly identical inputs with different labels and often commits to the majority class. Evaluating the Utility of Conformal Prediction Sets for AI-Advised Image Labeling found that in hard shifted settings, people given top-1 suggestions labeled about 17% correctly, compared with roughly 45–51% for people given conformal sets. Our naive baseline will show directly whether softmax flags miss the high-overlap bin.

Why not just run SACP with a polygon-level split? This is a real threat. SACP might already keep marginal coverage under block splits and even behave well in confused regions, because its smoothing expands sets at boundaries. If per-bin coverage under honest splits stays near nominal, the stratification half of this proposal is unnecessary. We would then report the result as a validation of SACP beyond its own theorem. The first decisive check below is designed to settle this before anything else is built.

Why not just calibrate per class? Per-class thresholds guarantee coverage for each true label, which is valuable. However, a per-class split-conformal threshold at 95% needs at least 19 calibration units per class to be non-trivial. Rare classes such as drip irrigation, which covers 0.08% of irrigated land in Utah per Knowledge-Informed Deep Learning for Irrigation Type Mapping from Remote Sensing, often have fewer calibration parcels than that. In those cases the rare class receives the full label set. Confusability bins pool across labels, so each bin stays populated. The two methods also answer different questions: coverage given the true class versus coverage given how the input looks. We will report both, and we will not claim rare-class coverage that our method does not guarantee.

Why not just stratify by model entropy? Entropy bins are equally valid and cost nothing extra. If they concentrate the same errors, the spectral-neighbour score adds nothing, and the correct conclusion is "stratify by entropy." The ablation settles this by measuring coverage for the lowest-entropy decile of misclassified parcels under each stratifier. Our hypothesis predicts that entropy bins hide confident metameric errors and the spectral score does not.

Proposed Experiments

We run four settings: Indian Pines, Pavia University, and Salinas with superpixel parcels and spatial block splits; the Greek Sentinel-2 tile with polygon splits; and the porcine atlas with animal-level splits. Each uses 20 random assignments of units to calibration and test. We measure marginal coverage, coverage per confusability bin, worst-bin coverage, per-class coverage, and average set size overall and per bin. We add the fraction of sets that stay within a known confusion group, such as the cereals or stomach/jejunum.

Three checks are decisive. First, we measure SACP's high-overlap-bin coverage under random versus block splits. A gap of several points motivates the method; no gap retires half of it. Second, we compare the spectral-neighbour stratifier against the entropy stratifier on confidently wrong parcels. Third, we measure set size in the in-season Greek experiment as dates accrue. Sets for cereal parcels should shrink while per-bin coverage stays at 95%. If sets fail to shrink, temporal features are not resolving the overlap that our stratifier measures, and that finding is itself informative for crop mapping.