Soft targets & weights

Soft targets & weights converts hard or probabilistic class labels into model-ready supervision layers: soft class targets, uncertainty, confidence and training weights. UST means Uncertainty-aware Soft Targets.

Minimum inputs

InputNeeded forNotes
Hard label rasterHard-to-soft modeConverted to one-hot class probabilities.
Probability stackProbabilities-to-UST modeOne band per class, normalized internally. UST = Uncertainty-aware Soft Targets.
Class schema CSVRecommendedDefines class order, names and optional quality values.
Edge, temporal, source, context inputsOptionalIncrease smoothing/risk and reduce reliability where labels are less certain.

Important controls

ControlEffect
Base smoothing alpha and max alphaControl how strongly the original label is softened.
Edge/temporal/source/context contributionsWeights for risk terms in the smoothing strength.
Quality prior QGlobal prior reliability of the label source.
Class balancingOptional inverse or square-root inverse class-frequency weights.

Core calculations

α(x) = clip(α0 + βee(x) + βtrt(x) + βsrs(x) + βcrc(x), 0, αmax)

Smoothing strength: risk terms increase label softening. e is edge risk, rt temporal risk, rs source risk and rc context risk.

psoft,c(x) = (1 − α(x)) · pc(x) + α(x) · uc(x)

Soft target: the original class probability pc is mixed with a smoothing target uc. The smoothing target is uniform unless class-context information is supplied.

H(x) = −∑c psoft,c(x) · ln(psoft,c(x)) / ln(C)

Entropy: normalized uncertainty of the soft target over C classes.

U(x) = max(1 − maxc psoft,c(x), H(x))

Uncertainty: combines low class dominance and high entropy into one 0..1 uncertainty layer.

R(x) = Qeff(x) · (1 − U(x)) · (1 − 0.5e) · (1 − 0.5rt) · (1 − 0.5rs) · (1 − 0.5rc)

Reliability: separates usable training weight from uncertainty. Temporal risk is 1 − qt when temporal quality is supplied.

wc(x) = psoft,c(x) · R(x) · qc · bc

Class weight: combines soft membership, pixel reliability, optional per-class quality qc and optional balancing factor bc.

Main outputs

OutputMeaning
Soft target stackOne probability-like supervision band per class.
UncertaintyOverall uncertainty derived from dominance and entropy.
Training weightsOverall reliability/weight raster.
Class confidence, uncertainty and weightsOptional per-class supervision diagnostics.
Report JSONInputs, parameters, source mode and output paths.

Related supervision work

The quality-aware and ageing-aware supervision idea is applied in: Hauser, S., Dachsberger, S., Schmitt, A., & Hinz, S. (2026). Calibrated U-Net with HELIX-Based Label Enrichment for Ageing-Aware Spatio-Temporal Urban Change Detection. ISPRS Annals of the Photogrammetry, Remote Sensing and Spatial Information Sciences. Accepted / in press; DOI not publicly available yet.