From raw Sentinel-2 pixels to a verification decision
processing/change_detection.py.Pipeline · this run
- 01ObservedData ingestionSTAC search, scene selection, windowed COG reads2 Sentinel-2 L2A scenes (tile 35VMJ) + 16 Sentinel-1 RTC dates
- 02ObservedGeospatial normalizationCommon CRS, 10 m grid, AOI clipEPSG:32635, 10 m grid, 311×309 px
- 03InferredCloud & quality maskingSentinel-2 SCL classes; valid-pixel fractionSCL classes 4/5 kept; 91% of AOI usable. ESA WorldCover mask drops change on cropland, built-up, water
- 04ObservedHistorical baselineEarlier cloud-free summer scene, same tile2019-08-06 vs 2024-07-23, both June–August
- 05UnavailableSuper-resolution (optional)SEN2SR adapter — estimated detail, never evidenceNot executed. SEN2SR investigated; all results use native 10 m pixels
- 06InferredChange detectionΔNDVI threshold + morphology + clusteringΔNDVI < -0.25, min 0.5 ha → 5 clusters
- 07InferredRisk classificationHazard × proximity × size × criticalityRule-based, against synthetic corridor geometry
- 08InferredConfidence estimationMagnitude, size, valid-pixel fractionHeuristic ranking, not a calibrated probability
- 09InferredVerification recommendationCost-aware next observation, human decidesRecommendation only; a human authorises any tasking
Evidence · real Sentinel-2 scenes
Observed

C1C2C3C4C52019-08-062024-07-2310 m native · ~3 kmResult
Inferred| Cluster | Area | Mean ΔNDVI | Confidence |
|---|---|---|---|
| C1 | 3.70 ha | -0.359 | 76% Moderate |
| C2 | 3.45 ha | -0.425 | 81% High |
| C3 | 1.79 ha | -0.376 | 67% Moderate |
| C4 | 0.96 ha | -0.332 | 57% Moderate |
| C5 | 0.50 ha | -0.346 | 56% Moderate |
Land-cover mask removed 1 cluster (0.54 ha) on cropland, a typical false positive from harvest. Source: ESA WorldCover 10 m 2021 v200, CC BY 4.0.
Inferred vegetation change (NDVI decrease). Not a verified event; cause unknown.
Sentinel-1 radar cross-check · all-weather
Observed


Orbit 58 ascending · 8 dates 2019-06-03→2019-08-26 vs 8 dates 2024-06-06→2024-08-29 · temporal mean in linear power, 10 m RTC. Radar sees through cloud and at night.
| Optical | SAR loss share | Mean ΔVH | Verdict |
|---|---|---|---|
| C1 | 16% | -1.35 dB | Not confirmed |
| C2 | 50% | -1.73 dB | Supports |
| C3 | 29% | -1.27 dB | Supports |
| C4 | 17% | -1.44 dB | Not confirmed |
| C5 | 4% | +1.36 dB | Not confirmed |
Supported = at least 25% of the optical cluster shows ΔVH below -2 dB. Independent sensors agreeing raises trust; disagreement is shown, not hidden.
- S1 · 2.21 ha · ΔVH -3.32 dB= C2 · orbit 87 ✓
- S2 · 0.61 ha · ΔVH -3.16 dBno optical match · orbit 87 —
- S3 · 0.59 ha · ΔVH -3.45 dBno optical match · orbit 87 ✓
- S4 · 0.56 ha · ΔVH -3.44 dB= C3 · orbit 87 ✓
- S5 · 0.55 ha · ΔVH -2.91 dBno optical match · orbit 87 ✓
AOI median ΔVH +0.52 dB (no scene-wide darkening). Contains modified Copernicus Sentinel-1 data 2019, 2024 (RTC by Microsoft Planetary Computer).
No-change tests (2019 vs 2019, 33 km2 tested) gave 0 false clusters, so at most ~0.8 expected over this AOI by speckle alone (95% bound); stable forest 2019->2024 gave 0. Per-pixel noise std 1.00 dB, threshold = 2.0 sigma. 3 radar-only cluster(s) found, 2 of them (S3, S5) also seen from orbit 87. They are unlikely to be pure speckle, but the cause (field, grass, moisture or forest change) is unverified.
Second geometry (orbit 87 ascending) confirms 4 of 5 radar clusters but reaches the 25% rule on 0 optical clusters; optical and radar agree at C2/S1 and C3/S4.
Risk classification · severity is separate from confidence
Scenes used
- Baseline
- S2A_35VMJ_20190806_1_L2A
- 2019-08-06 09:53 UTC · 0.52% cloud · baseline 05.00
- Comparison
- S2A_35VMJ_20240723_0_L2A
- 2024-07-23 10:03 UTC · 0% cloud · baseline 05.11
Contains modified Copernicus Sentinel data 2019, 2024 (via Element 84 Earth Search, sentinel-2-l2a)
Method (reproducible)
- index
- NDVI=(B08-B04)/(B08+B04) on L2A surface reflectance (DN/10000; BOA +1000 offset removed for baseline>=04.00 unless Earth Search already applied it)
- mask
- valid only where SCL in [4, 5] (vegetation, not-vegetated) in both scenes; clouds, shadows, water, snow, saturated, unclassified masked
- dndvi
- NDVI_after - NDVI_before
- threshold
- -0.25
- morphology
- 3x3 binary opening then closing
- connectivity
- 8
- min area ha
- 0.5
- confidence formula
- 0.5*min(1,|mean_dNDVI|/0.5) + 0.3*min(1,area_ha/5) + 0.2*valid_fraction; a ranking heuristic, not a calibrated probability
- landcover mask
- ESA WorldCover 2021 v200 (10 m): change ignored on classes [40, 50, 80] (cropland, built-up, permanent water)
Super-resolution · ESAOpenSR SEN2SR
UnavailableInvestigated models include SEN2SRLite (CPU), SEN2SR (GPU) and LDSR-S2. Reconstructed detail is estimated by a neural network and is never treated as an independent observation. It would be used for visualisation only, with measurements kept on native pixels.