Learning Local Crop Calendars from Weak Labels

Satellites photograph the same farmland every few days, and crop-type maps are built from the resulting stacks of images. The time dimension carries much of the signal: winter wheat greens up months before maize. That signal is not anchored to the calendar, though. A cool valley runs two weeks behind a warm plain, so the same crop traces the same growth curve shifted or stretched in time. This is called phenological shift. At the same time, the labels used to train mapping models are usually coarse. An image or a block of fields is tagged with the crops it contains, and the model must work out which pixels, and which dates, the tag refers to. Current methods treat these two problems separately. Methods that pick out the informative growing-season dates from weak labels assume one calendar for the whole region. Methods that correct calendar shifts assume clean, field-level labels and a single shift per region.

We propose a model that learns a spatially varying "local calendar" from weak labels alone, with no weather data. It is a smooth map of how far each neighborhood's season is shifted and stretched relative to a reference. The model predicts this calendar at the coarsest level of a multi-scale image encoder, where it can attend across the whole scene at low cost. It then feeds the calendar back as the time coordinate for fine-scale processing. The premise is that climate moves every crop in a neighborhood together, while crop identity changes timing relative to the neighbors. Comparing each field against its distant surroundings therefore separates "this region is late" from "this is a late-sown crop," and that comparison is a long-range dependency.

Core Claim

Under weak supervision, temporal misalignment is itself a source of label noise. Consider a method that learns which dates are "pivotal" for a class, such as Exact, which re-weights time steps by temporal-to-class attention to suppress bare-soil and cloudy dates on PASTIS. It learns one set of pivotal dates per class. Where the local season is shifted, those dates fall on the wrong growth stage. Class activations then thin out or move to the wrong fields, and the pseudo-labels inherit the error. We claim that a class-agnostic, spatially smooth, monotone warp of time can do two things. It can be estimated from the scene itself, inside a hierarchical encoder, and trained only through weak-label losses plus a self-supervised warp-recovery loss. It should also improve weakly supervised segmentation both within a region and, by a larger margin, across regions.

The new element is the spatially resolved warp, learned without clean labels or temperature records. TimeMatch searches for a single translation per target region by maximizing a source model's confidence. It needs a cleanly labeled source and cannot express within-region variation. Thermal positional encoding (TPE) re-indexes observations by accumulated growing degree days and lifts cross-region macro F1 from 68.0% to 83.3%. It requires daily temperature grids and full supervision. PAN aligns per-pixel temporal features across regions with a distribution-matching loss and discards spatial context entirely.

Research Program

The encoder follows the multi-stage design of SegFormer. That design is a pyramid of transformer stages: overlapping patch merging shrinks the spatial grid from 1/4 to 1/32 resolution, and small depthwise convolutions inside the feed-forward layers replace explicit spatial position codes. We reuse this method directly. We extend each stage to factorized space-time processing. Temporal self-attention runs per spatial token, and spatial attention runs within windows in early stages and globally only at the 1/32 stage, where token count is small. This keeps cost far below dense attention over the full $T \times H \times W$ volume.

The alignment module is a light pre-pass. The input is downsampled to the coarsest grid and encoded with global spatial attention. For each coarse cell $x$ the module outputs a warp

$$\tau(t, x) = a(x)\,t + b(x),$$

where $t$ is acquisition day of year, $b(x)$ is a shift bounded to ±60 days (the search range TimeMatch uses), and $a(x)$ is a stretch constrained near 1. The fields $a$ and $b$ are bilinearly upsampled, so the warp is smooth by construction. They replace $t$ in the temporal positional encoding at every stage of the main encoder. The warp is shared by all classes within a cell. This constraint keeps it from erasing the timing differences that separate, for example, winter from spring barley.

The warp is trained by two signals. The first is the weak-label loss: image-level classification for PASTIS, and class-presence prediction over bags of neighboring parcels for the TimeMatch regions. Pixel maps are read out through class activation maps in the Exact style. The second is a warp-recovery loss. During training we apply random smooth synthetic warps $(\tilde a, \tilde b)$ to the input sequences and require the module to predict the composed warp relative to the unaugmented prediction. Temporal augmentation is used here to train the aligner, not to make the classifier blind to timing. We do not adopt the confusion-matrix noise model of Zhang et al. in the main system. It could be added later, but including it would blur which ingredient is responsible for any gain.

Baselines

The naive reference is a plain weakly supervised model with calendar day-of-year positional encoding, using the same hierarchical encoder and activation-map readout but no warp. A second reference is the same model with no temporal positional encoding. TPE found that dropping calendar encoding beats keeping it under geographic transfer, so "No-PE" is a non-trivial floor. No reported number found on Lacuna for No-PE in that paper.

The strongest existing in-domain weakly supervised method is Exact. It reports 61.8% mIoU on PASTIS from image-level labels, against a 65.1% fully supervised upper bound, which is about 95% of full supervision. We will rerun Exact's released pipeline, or a faithful reimplementation, on our splits so that the numbers are directly comparable. Our system beats it in-domain if it exceeds Exact's mIoU on identical splits by more than seed variance; we will report three seeds.

For cross-region transfer, the strongest competitor is a two-stage pipeline: Exact trained on the source, followed by TimeMatch-style global shift search on each target region. TimeMatch reports 58.2% average F1 over five adaptation scenarios, against 47.4% for the best prior adaptation baseline (CDAN+E), using clean source labels. Our weak-label protocol differs, so we will rerun TimeMatch's shift search inside our pipeline rather than quote that figure as a target.

TPE with real growing-degree-day encoding serves as an oracle that sees temperature data. It reports 83.3% macro F1 under leave-one-region-out transfer with full labels. We run it under our weak labels, and closing a large share of the gap between calendar encoding and TPE without weather data counts as success.

Two ablations isolate the key ingredient. The first is a single global warp per scene instead of the spatial field. The second keeps the full warp module but removes the warp-recovery loss. All models share backbone size, epochs, augmentation pool, and a fixed hyperparameter-search budget of equal trial count.

Why not just…?

Why not just run Exact and then apply one TimeMatch shift per target region? This is the most serious threat. If phenological shift within a region is small compared with the shift between regions, a single offset captures most of the benefit. The single-global-warp ablation settles this directly. We will also report, per region, the spread of predicted shifts $b(x)$. If that spread is under one revisit interval (about five days) and the global variant matches ours, we will conclude that spatial resolution of the warp is unnecessary and say so.

Why not just augment training with random time shifts and stretches so the classifier becomes invariant? Invariance is cheap, but it throws away absolute timing, and absolute timing is what separates several crop pairs. TPE's results suggest that properly aligned time (83.3%) beats both calendar encoding and no encoding, which an invariant model approximates. Our design uses the same augmentations, but only to supervise the aligner. The baseline that applies identical augmentations directly to the classifier tests whether that distinction matters. If the augmented baseline matches us, the proposed mechanism is unnecessary.

Why not just use thermal time where temperature records exist? Where reliable daily grids exist, TPE is the right tool, and we treat it as an oracle rather than a competitor. Our target is the many regions without such data. The relevant question is how much of TPE's gain a weather-free learned warp recovers, and whether the learned shift tracks the thermal one, which we test explicitly below.

Why not align each field to class templates with dynamic time warping first? Dynamic time warping is a classical method that stretches one curve to best match another, used for corn phenology in Ye et al.. It needs a clean reference curve per class, and weak labels do not provide one. It also aligns each field independently, which absorbs crop-specific timing into the warp. We include a template variant built from fields whose bag contains a single class. We expect it to fail on timing-defined class pairs, and per-class F1 will show whether it does.

Proposed Experiments and Decisive Checks

In-domain, we train on PASTIS with image-level labels and report mIoU against Exact. Across regions, we use the TimeMatch benchmark of Austria, Denmark and two French regions, with parcel labels hidden behind bag-level class-presence labels. We report macro F1 per parcel under leave-one-region-out, matching TPE's protocol. BreizhCrops departments provide a milder, within-country shift as a third setting.

Three checks decide the claim. The first is synthetic recovery. On PASTIS we inject known smooth warp fields and measure the error between recovered and injected shift. If the aligner cannot recover warps it was trained to see, the rest is moot. The second is physical grounding. On the TimeMatch regions we correlate predicted $b(x)$ with the offset implied by growing-degree days computed from E-OBS temperatures, the same records TPE uses. The model never sees these records, so a strong correlation would show that it learned climate-driven timing rather than an arbitrary reparameterization. The third is attribution. We report per-class F1 on timing-defined pairs such as winter versus spring cereals. A warp that is too free will hurt exactly these pairs, while a correct one should help them most. If the full model beats the single-global-warp and augmentation-only baselines across regions while matching or beating Exact in-domain, the claim holds. Otherwise the ablations will show which simpler explanation suffices.