In progress · Case study
HYDRA
DirectFlow streamflow forecasting and auditable reforecast software
In progress
KeywordsPython · PyTorch · LSTM · Transformer · GRU–Transformer · Mamba2–Transformer · HRRR · USGS · NextGen
Summary
The problem, and where it stands
Problem
How well can discharge history, issued weather forecasts, and initial soil information predict hourly streamflow, including extreme events?
Where it stands
Completed development training and an independently audited assessment of frozen DirectFlow models at three Appalachian gauges. Findings vary by site and model; they do not establish a blanket improvement over the National Water Model.
Case study
How it was built
01Technical Approach
- Built traceable data workflows for revised historical USGS discharge, issued HRRR weather forecasts, and initial soil information, predicting streamflow 1–18 hours ahead.
- Compared LSTM, Transformer, GRU–Transformer, and Mamba2–Transformer models with fixed temporal splits and all declared seeds retained.
- Assessed saved checkpoints without retraining or refitting transforms. Matched National Water Model comparisons cover H1–16; independent DirectFlow forecasts cover H1–18.
- Developed NextGen reforecast planning, provenance, and diagnostic software as a separate research-software track; it is not a hosted forecasting service.
02Architecture Decisions
- DirectFlow predicts discharge directly from discharge history, issued HRRR weather, and initial soil information; NWM is an external comparator rather than the forecast being corrected.
- Four PyTorch model families run on CPU or Apple MPS, with reproducible configurations and saved weights.
- NextGen Reforecast Software is a separate planning/provenance package and local browser prototype with a narrowly qualified Watauga diagnostic execution path.
03Reliability and Evaluation
- Assessment reused frozen checkpoints without retraining, transform refits, clipping, repair, or seed selection.
- Matched NWM results cover H1–16 under the exact two-hour-old issue rule; H17–18 NWM comparisons are unsupported.
- Retrospective observation timing is simulated. Results do not establish an operational forecast service or blanket skill improvement.
04Delivery and Operations
- Published source, assessment reports, peak diagnostics, and provenance for scientific review.
- NextGen software has offline planning and diagnostic engineering evidence; hosted automatic execution and scientific release remain unfinished.
- A HYDRA results manuscript is in preparation and a NextGen software paper is planned; neither is represented as a published paper.
05Results
- Development training, saved-model assessment, and extreme-peak diagnostics are complete. Scientific review and manuscript preparation continue.
- NWM had higher matched mean NSE at Jefferson and Galax; Sugar Grove varied by model and seed. These are descriptive comparisons, not a universal improvement or significance claim.
- The saved models substantially underpredicted extreme peaks. These diagnostics describe the assessed checkpoints, not every possible model in those architecture families.
- The two-hour observation delay is simulated using revised historical USGS data; it does not reconstruct original publication availability. No verified 48% improvement is claimed.
06What I Learned
- Separate average skill, extreme-event behavior, and forecast availability when assessing a model.
- Keep the independent DirectFlow experiment distinct from NWM correction, older thesis results, and NextGen reforecast generation.
- An assessment that has informed new model proposals is no longer a fresh confirmatory test for those proposals.