Why ConvLSTM beat my LSTM baselines for Petaling River rainfall nowcasting
Undated
Notes from the ERA5 + IMOS experiment: why sequence-only baselines fell short, what the spatial layers added, and the failure modes that remain open.
This is a working note from the Petaling River basin rainfall-forecasting study — the kind of detail that never makes it into the manuscript. The full method is in the research write-up on this site; here is the practical story.
What was actually being predicted
The target is 1–24 h lead-time rainfall over the Petaling catchment, scored against ERA5 reanalysis fields with IMOS gauging data used for ground truth. The metrics that mattered were R², NSE, RMSE and MAE at each horizon — but the honest metric was the shape of the skill decay curve across the 24 h window, not any single number.
The baseline I almost shipped
A vanilla LSTM on flattened gauging sequences. It worked well enough to look plausible in a first pass, and that was the danger. At 1–3 h lead it tracked observed events; by 12 h it had smoothed every storm into a shoulder-shaped hump and the sharp convective peaks — the ones that drive urban flooding in the Klang Valley — were essentially gone.
A short training config, representative of the baselines:
model = nn.LSTM(input_size=32, hidden_size=128, num_layers=2, batch_first=True)
loss = nn.MSELoss()
optimizer = torch.optim.Adam(model.parameters(), lr=1e-3)
What the spatial layers changed
ConvLSTM (and the Conv3D variant) keep the field structure inside the recurrent state. Two concrete differences in the outputs:
- Peak timing. ConvLSTM preserved the lead of storm-cell arrival along the upstream→downstream axis; the LSTM baseline systematically lagged events by roughly an hour at 6–12 h lead.
- Spatial consistency. With convolutions, adjacent gauging sub-catchments stayed coherent in the forecast; the sequence-only model produced uncorrelated jitter between neighbouring cells, which is invisible in aggregate metrics but fatal when a downstream engineer reads the map.
The NSE gap between the best spatial model and the LSTM baseline was largest at intermediate horizons (6–12 h) — consistent with the idea that spatial induction helps most when the dynamics are propagating, not when the local state is already known.
The failure modes that stay open
- Dry-season overconfidence. The model is calibrated on wet-season dynamics and reports high confidence for small errors during the NE monsoon's drier spells. A proper CRPS-based calibration pass is the next step.
- ERA5 bias, not model bias. Part of the "error" at extreme events is reanalysis under-capture; the IMOS comparison shows the model is closer to the gauges than to ERA5 at the 99th percentile.
- Horizon-24 collapse. Beyond ~18 h the skill decays to near persistence. No architecture fix — that is a data-limitation, and should be said plainly in any deployment claim.
Numbers to sanity-check before reuse
| Horizon | LSTM (NSE) | ConvLSTM (NSE) |
|---|---|---|
| 1 h | 0.84 | 0.87 |
| 6 h | 0.61 | 0.72 |
| 12 h | 0.38 | 0.55 |
| 24 h | 0.12 | 0.31 |
These figures are illustrative placeholders pending the final manuscript table — do not quote them externally. The relative pattern (largest gap at 6–12 h) is robust across runs.
Bottom line: for sub-daily hydrological nowcasting in a small, convectively driven basin, the spatial prior is doing real work. Sequence-only models should be the floor, not the claim.