This page is the honest version, not the pitch version. It covers what was tested, two real bugs that were found and fixed along the way, and exactly what the result does and doesn't support.
Khulna's rice fields go weeks at a time without a usable cloud-free satellite image during the monsoon. A reconstruction method tries to fill those gaps — but a method that looks convincing on a smooth chart isn't the same as one that's actually reliable. This study tested three reconstruction approaches against each other by hiding real, already-observed satellite data points and checking whether each method could recover the hidden values: plain linear interpolation, Whittaker smoothing (the approach used in this project), and STMS, a published 2025 method built specifically for this exact problem.
Three sites in the Khulna rice belt, each a single fixed point (not a blended area average), selected by scoring a grid of candidate points on seasonal signal strength and then manually checking true-color imagery to rule out villages and sandbars masquerading as farmland. 2022-2024, Sentinel-2 and Landsat 8/9, all free data.
The first pass used Sentinel-2's own cloud flag, which showed almost 100% "clear" skies even in peak monsoon months for 2022 and 2023 — not plausible. Checked against Earth Engine's own documentation: that cloud flag was discontinued for over two years and silently defaulted to "no cloud detected" while it was missing, rather than "unknown." Fixed by switching to a probability-based cloud mask plus explicit cloud-shadow detection, and verified the fix by confirming monsoon cloud dropout now shows up consistently across all three years, not just the one year the old method happened to get right.
Re-running the comparison under a looser cloud-detection setting appeared to reverse the entire finding — plain interpolation suddenly looked better. Investigating why found the real cause: one single test window happened to contain a quarter of one site's entire sample, and it was being weighted by how many data points it contained rather than counted as one test case among many. Fixed by weighting every independent test case equally. The original result came back — and came back more confirmed, not less, because the bug had been caught and corrected rather than quietly reported as a finding.
The full comparison was re-run under three different cloud-detection strictness settings, not just the one that happened to look best. Lower numbers are better (they measure how far off the reconstructed values were from the real hidden ones).
| Cloud-detection setting | Linear interpolation | Whittaker smoothing | STMS (2025) |
|---|---|---|---|
| Strict | 0.154 | 0.137 | 0.157 |
| Baseline | 0.154 | 0.144 | 0.178 |
| Loose | 0.142 | 0.138 | 0.170 |
Whittaker smoothing wins at every setting tested. STMS, the more sophisticated published method, is weakest at every setting — likely because it's designed around a much larger reference network (the original study used 2,460 sites; this one had 3) rather than being a weaker method in general.
Monsoon cloud hides the ground exactly when floods happen, so flood detection leans on Sentinel-1 radar, which sees through cloud. To find out whether it works, the pipeline was run against 10 dated floods and waterlogging events in Satkhira and Khulna from 2024 to 2026, each taken from press and official reports with its source (Cyclone Remal, the Betna embankment breach, the Bichhat and Dargahpur breaches, and urban waterlogging in Khulna City and Satkhira town). Each test was also run on the same dates a year earlier, to catch a method that just fires every monsoon. The detection rule was fixed before the first run and not adjusted afterwards.
Running the pipeline on real imagery for the first time exposed three problems, each fixed before any flood result was counted:
Three ways of flagging a flood were compared. The one that holds up compares radar water with the same weeks in the five previous years, so permanent shrimp ponds and normal monsoon wetting drop out. It flagged the largest flood in the set in both radar orbit directions with a quiet control year, rarely fired when there was no flood, and caught 4 of the 10 events overall. Comparing only against water just before the event also caught 4, on weaker evidence. The original fixed flag (40% of the area wet for 14 days) caught none and fired just as often in years with no flood, wherever ponds already cover half the land, so it is being replaced by the seasonal check.
| Event | Kind | Original flag | vs. water before the event | vs. same weeks, past 5 years |
|---|---|---|---|---|
| Satkhira Sadar/Tala, Sep 2024 | breach + rain | missed | missed (just under) | caught, both orbits |
| Cyclone Remal, Satkhira, May 2024 | cyclone surge | missed | caught ¹ | caught |
| Cyclone Remal, Khulna, May 2024 | cyclone surge | missed | caught ¹ | missed (just under) |
| Ashashuni, Jul 2025 | prolonged rain | fires every year ² | caught | caught, not specific ² |
| Satkhira town, Jul 2025 | urban | missed | missed | caught |
| Satkhira town, Jul 2026 | urban | missed | caught | missed |
| Bichhat breach, Mar 2025 | breach | fires every year ² | missed | missed |
| Dargahpur breach, May 2025 | breach | fires every year ² | missed | missed |
| Khulna City, Sep 2024 | urban | missed | missed | missed |
| Khulna City, Jul 2026 | urban | missed | missed | missed |
| Caught | 0 of 10 | 4 of 10 | 4 of 10 |
¹ Rests on a single radar pass before the event, so weak evidence. ² Also fires on the same dates a year earlier, so it can't tell this flood from a normal year. "Caught" means detected in at least one of the two radar orbit directions.
What it can see: large rural floods that leave water standing across a wide area, like the September 2024 Satkhira flood. What it can't, yet: embankment breaches that flood a few hundred hectares inside a much larger search area, and urban waterlogging, where shallow street water between buildings doesn't look like water to radar and often drains before the next satellite pass.
The event list, code and every number are in the open repository.