Hydrologic theory · Hypothesis testing · Large-sample data

Understanding catchments,
one hypothesis at a time.

SAGE framework illustrated through catchment attributes and parameters, hydrology, learning, and sensitivities around a central brain

Notes from the development and application of SAGEhydrology and SITEhydrology, by Jasper A. Vrugt.

SAGE · Rainfall–runoff modeling

CaRT and CaRT+ in SAGE

SAGE startup icon On Saturday, my colleague and co-author Jonathan Frame shared a preprint by Xilin Xia of the University of Birmingham, United Kingdom. The abstract caught our attention. CaRT+, a differentiable, process-based rainfall–runoff model, matched or exceeded individual LSTM benchmarks in several comparisons across three continents. The LSTM ensembles retained a small edge in the reported paired comparisons.

I implemented CaRT and CaRT+ in SAGE and extended Xilin’s implementation to propagate sensitivity states. SAGE can now return an analytic Jacobian showing how simulated discharge responds to changes in the model parameters. I’ll release the Python-based SAGE GUI and its source code on GitHub soon. In the GUI, you’ll find both models under Project 6 on the Project tab. Training an LSTM can take considerable time. In our setup, SAGE can train CaRT in under an hour, which makes it practical to try different configurations.

Map of CAMELS-US training and evaluation basins
Figure 1. CAMELS-US basin split. Blue circles show the 597 training basins. Orange squares show the 68 held-out evaluation basins.

I tested CaRT+ using Xilin’s daily CAMELS-US dataset, with training from 1989 through 2008 and evaluation from 2009 through 2019. I also ran it on the built-in CAMELS-GB and CAMELS-AUS datasets. All three datasets are available through the SAGE GUI. In the US evaluation period, the median Nash–Sutcliffe efficiency was 0.759 across the 597 training basins and 0.704 across the 68 held-out basins.

Distributions of six performance metrics across four color-coded training and evaluation scenarios
Figure 2. CaRT+ performance across CAMELS-US. Each colored row combines a basin set with either the training period (1989–2008) or the evaluation period (2009–2019). Each column shows a performance metric, and black squares mark the basin medians. The bottom row shows the 68 held-out basins in 2009–2019.
Maps of normalized CaRT+ parameters across CAMELS-US
Figure 3. How CaRT+ parameters vary across CAMELS-US. This panel shows 18 of the 35 model parameters. Each map shows how one parameter varies across catchments on a normalized scale.

I’ve just started a SAGE run with CaRT+ using hourly meteorological and discharge data from CAMELS-GB v2 (Coxon et al., 2025). Xilin’s paper evaluated the model at a daily time step. As Xilin points out, inertia can matter for channel flow at hourly resolution. Where it does, the model needs a momentum state and an energy balance that accounts for kinetic energy. Figure 5 is a screenshot from SAGE’s Live Diagnostics tab showing how the hourly run is progressing.

Figure 4. Selected CAMELS-GB basins. Blue circles indicate training basins, and orange squares indicate evaluation basins. The map shows 669 selected basins. Figure 5 reports scores for 488 training basins and 166 held-out evaluation basins.

Figure 4. Selected CAMELS-GB basins.
SAGE Live Diagnostics for the ongoing hourly CAMELS-GB CaRT+ run
Figure 5. Live diagnostics from an ongoing hourly CaRT+ run on CAMELS-GB. At iteration 94, median Nash–Sutcliffe efficiency (NSE) was 0.753 across 488 training basins during the training period and 0.727 across 166 held-out basins during the evaluation period. These are interim scores and may improve as training continues.
Table 1. Median NSE for hourly and daily CaRT+ runs on CAMELS-GB.
SAGE CAMELS-GB runTraining basins, training periodHeld-out basins, evaluation period
Hourly, iteration 940.753 (488 basins)0.727 (166 basins)
Daily, Nov. 9 report0.843 (602 basins)0.696 (64 basins)
Daily, Nov. 8 report0.870 (498 basins)0.789 (169 basins)

The interim hourly run has a lower training median than both daily runs. Its held-out median falls between the two daily scores. The runs use different basin splits, time windows, and scoring resolutions. To isolate the effect of time step, we would need to use the same basins and dates and score both sets of predictions at a common resolution.

Figure 6. Hourly CaRT+ performance across CAMELS-GB.
Figure 6. Hourly CaRT+ performance across CAMELS-GB. The six panels map discharge performance during the evaluation period for the ongoing run. Each metric has its own color scale.

It’s exciting to have a conceptual rainfall–runoff model in SAGE that can compete with LSTMs. More analysis is needed to understand where CaRT+ works well and where it falls short. That includes comparing it with other SAGE models, such as HYMOD, HMODEL, SAC-SMA, Xinanjiang, GR4J, and HBV, under the same conditions. My trial runs are consistent with the encouraging performance reported in the paper, and some have produced higher scores. Those early results give me plenty of reason to be optimistic about the future of scientific hydrology. Xilin’s paper is a must-read for hydrologists and a beautiful example of how to use AI in science. Hydrological theory set the rules for what could change in the model, and AI helped Xilin test more ideas within those rules. In a world increasingly driven by technology companies and by data mining, analysis, and prediction, that makes academic hydrology feel especially relevant: theory can still guide what we build and what we learn from it.

CANVAS · SAGE · Soil science

CANVAS in Portland: Fall leaves, soil moisture, and an SSSA Fellowship

I booked the Hotel Grand Stark at the last minute for CANVAS, and it turned out to be much better than I expected. The walk to the Oregon Convention Center took eight to ten minutes, just long enough to enjoy the fresh morning air. Fall had definitely arrived in Portland. Leaves were everywhere.

Seeing all those leaves made me think of the Netherlands, where leaves on the tracks can disrupt train service. In Portland, I found myself wondering what they do to the hydrology. How much rain does a layer of leaves hold before water reaches the soil? And what happens when those same leaves collect over a storm drain? Eight minutes is plenty of time to get distracted.

The leaves also reminded me of work I did as an undergraduate at the University of Amsterdam. I wrote a computer model for how water and heat are stored and move through the A horizon, the upper soil layer enriched with organic matter. The model worked much as it would for any other soil horizon, with somewhat different hydraulic functions governing how the soil holds and transmits water. It was part of a larger effort to model water transport in a tree and use sap flow measurements to “train” the model.

My talk on soil moisture modeling with SAGE went well. It was a pleasure to share the work at CANVAS, especially after spending the walk thinking about what happens to rain before it even gets into the soil.

The highlight of the trip was being elected a 2026 Fellow of the Soil Science Society of America (SSSA), the Society’s highest recognition. I’m honored to receive it, and I took a photo of the award to bring home the proof.

2026 Soil Science Society of America Fellow award presented to Jasper A. Vrugt
My 2026 SSSA Fellow award.

My warm thanks to Jan Hopmans, professor emeritus at UC Davis, for nominating me, and to the colleagues who took the time to write letters in support. I’m grateful to all of you for making this possible.

Jasper A. Vrugt and Jan Hopmans in Portland
With Jan Hopmans, who nominated me for the SSSA Fellowship, in Portland.

Thanks also to CIROH for supporting the trip. And yes, the reimbursement request is in!

CIROH · Visiting Scholars Program · Research to operations

From catchment science to useful forecasts: reflections on my CIROH visit

I have just returned from my visit to the Cooperative Institute for Research to Operations in Hydrology (CIROH) as part of its Visiting Scholars Program. It was a wonderful opportunity to exchange ideas, strengthen collaborations, and reflect on how our research—including SAGE and SITEhydrology—might contribute to operational water forecasting.

CIROH connects water-science research with operational practice, bringing together hydrologic science, computer science, and social science to support NOAA in providing useful water information for flood, drought, and water-quality decisions and community resilience. Its Visiting Scholars Program supports focused research and education while fostering collaborations at The University of Alabama and across the CIROH consortium, strengthening the connection between research and operational forecasting. It was a great pleasure to discuss my work with the students and staff, hear their perspectives, and exchange ideas.

Conceptual watercolor illustration linking an airplane-window view of varied catchments, SAGE and SITE research, and conversations with operational water forecasters
Connecting catchment science with operational forecasting.

A special thank you to Pia van Benthem for her work in making the visit a success, and to Steve Burian, Executive Director of CIROH, for his leadership, support, and commitment to the Visiting Scholars Program. It was also a pleasure to see and work with Jonathan Frame, a former UCI student and co-author on many of our recent research efforts related to SAGE and SITE. He was an excellent host, and I greatly appreciated the time we had to work together and exchange ideas.

One highlight was visiting the operational floor inside the National Water Center and speaking with the people who actually make forecasts. During a future visit, I hope to spend more time learning from them: what goes into a good forecast, which uncertainties matter most, and where research can make a practical difference. I would like to better understand how we can help shorten the path from academic advances to operational implementation.

The flight home offered another perspective. Looking down across the United States, I was reminded of how much work remains to make our models more realistic. Mountains, forests, fields, cities, reservoirs, and river networks form an extraordinary patchwork. Even from an airplane window, the heterogeneity and intricate connections are striking. Representing these landscapes in a hydrological model—and making that model work across the contiguous United States—is a formidable challenge.

Thank you to everyone who made the visit so welcoming and productive. I look forward to continuing the conversations and collaborations.

Publication news · SAGE GUI · Environmental Modelling & Software

The SAGE GUI paper is now published

Our paper introducing the SAGE graphical user interface is now available online in Environmental Modelling & Software.

SAGE GUI: Fast and flexible differentiable hydrologic modeling with analytic gradients
Jasper A. Vrugt and Jonathan M. Frame
Environmental Modelling & Software, 2026, Article 107194
Read the paper · DOI: 10.1016/j.envsoft.2026.107194

Researchers use SAGE GUI to connect catchment datasets, hydrological models, analytic gradients, diagnostics and MATLAB script export
From catchment data to model training, diagnostics and reproducible experiments within SAGE GUI.

SAGE GUI brings the complete modeling workflow into one application: preparing data, configuring hydrological models and neural networks, training, examining diagnostics, and exporting reproducible experiments. Analytically calculated sensitivities connect the hydrological models to gradient-based learning.

The paper describes 44 datasets across 38 regions, most corresponding to individual countries. Some collections span national borders, such as CAMELS_AT, which covers Austria and surrounding countries.

Development has continued since the version documented in the paper. The latest release adds CHAMELLION, covering catchments across multiple European countries, and CAMELS_SPAT, covering catchments in the United States and Canada. These additions bring the total to 46 datasets and expand the opportunities for cross-border hydrological modeling, as discussed in our first blog post.

Accessibility and transparency are central to the design. Researchers and students can configure experiments graphically, then export MATLAB scripts to inspect, modify and execute the workflow themselves. Windows and macOS applications run with the freely available MATLAB Runtime, without requiring a licensed MATLAB installation. Python source code and standalone applications for Windows and macOS are in the final stages of testing and will be released soon on GitHub.

We hope the paper provides a useful starting point for applying SAGE to test hydrological hypotheses and develop new theory about how catchments store, transmit and release water.

Read the article · Explore SAGEhydrology

Software update · Python · Windows + macOS

SAGE and SITEhydrology: Python versions are coming

Python implementations of SAGEhydrology and SITEhydrology are nearly ready for release. Alongside the Python source code, we are preparing desktop applications for Windows and macOS.

Researchers carry SAGE and SITE model notebooks across a river bridge from MATLAB to Python, with Windows and macOS users in a mountain watershed
SAGE and SITEhydrology are making their way from MATLAB to Python, with desktop applications for Windows and macOS.

The goal remains the same: provide practical tools for exploring hydrological models, estimating their parameters, and comparing model performance across catchments and datasets. The Python versions bring these capabilities to a widely used scientific computing environment, with graphical applications for configuring runs and inspecting results.

We are now in the final stages of testing the source code and applications. Once testing is complete, we plan to upload the Python source and the Windows and macOS applications to the respective GitHub repositories.

We will share the download links and getting-started instructions here when the release is available.

Stay tuned, and thank you to everyone helping us test and improve SAGE and SITEhydrology.

SITE update · Shared benchmarks · Second post

SITE Hydrology builds shared performance benchmarks

How optimization trials contribute better solutions across nine loss functions.

SITE Hydrology now uses global file updating to share improvements across runs and users. Results found on one computer can improve the reference solutions available to everyone through GitHub.

Four users exchange local results with SITE Hydrology and GitHub. Orange arrows follow an improved solution from the office user through GitHub to the watershed user.
Blue arrows show uploads and downloads. Orange follows a better solution from user 1 at work to GitHub, then to user 3 in the watershed.

Every trial can improve several criteria

A run performs ntrials optimization trials using a selected loss function and algorithm. For each trial’s optimized solution, SITE computes all nine commonly used loss functions and compares them with the best results in the respective files for the same configuration. A better solution replaces the corresponding entry; otherwise, the existing result is retained.

This means a run that maximizes Kling–Gupta efficiency (KGE) can also improve Nash–Sutcliffe efficiency (NSE). For example, a trial might fall short of the stored KGE record but exceed the stored NSE record. SITE then updates the NSE solution while keeping the existing KGE solution. Each trial contributes information beyond the objective that guided its search.

Comparisons follow each criterion’s direction: higher efficiencies or lower losses. The files contain the best known results found so far, which may come from different trials, algorithms, and users.

Download locally and share improvements

For runs using the default SITE benchmark settings, the exchange follows three steps:

  1. Download: At the start of a run, SITE downloads the latest results files from GitHub.
  2. Compute and store: Trials run locally. Their optimized solutions are evaluated, and results are stored in local files.
  3. Upload: Improvements are uploaded to GitHub and replace the respective shared entries, making them available to subsequent runs.

The cartoon shows how an improvement found at work reaches a user in the watershed. Users at home participate in the same exchange; the phone illustrates checking shared results on the go.

Which results belong in the shared benchmarks

The GitHub results files cover all countries and regions represented by SITE’s supported datasets, the available time resolutions (15-minute, hourly, and daily), hydrologic models, and choices of meteorological products. Results are kept separately for each configuration so that comparisons use the same dataset, time resolution, model, and meteorological inputs.

Shared benchmarks use the default SITE settings for the training and evaluation periods, spin-up period, initial model states, and ordinary differential equation (ODE) variables. If a user chooses a different training or evaluation period, results are stored locally only, without updating GitHub. Restricting the shared collection to the default settings keeps comparisons consistent and avoids an unlimited number of results for custom configurations.

Our aim is to build a benchmark of each model’s performance for each dataset, time resolution, and meteorological product across nine commonly used loss functions. Contributions from different users can improve these benchmarks over time.

Each shared solution records the user, computer, and platform that created it. Its origin remains traceable as the shared collection improves, allowing SITE to use both the computational effort and discoveries of its users efficiently.

What’s new · Why SAGE · First post

From prediction to understanding: testing hydrologic hypotheses across countries

I developed SAGE to make it easier to test hydrologic hypotheses against large-sample datasets, in pursuit of new theory about how catchments store, transmit, and release water. Faster training is useful because it makes more scientific experiments possible. The ultimate aim is a better understanding of how catchments function.

The blog will combine capability extensions—new modules, models, datasets, and options—with project descriptions, practical tutorials, bug fixes, and release notes. I also want to share general observations and research ideas, discuss numerical and modeling choices, and feature applications and questions contributed by users.

My hope is that this blog becomes a place to exchange experiments and questions. If you use SAGE or SITE in your research, I would be interested to hear what you tested, what failed, and what you discovered about catchment behavior. This first post is longer because it introduces the purpose of SAGE and the scope of the blog. Future posts will be much shorter, each focused on one update, experiment, or idea, so they are easier to read and use.

What did the model learn?

We can train an LSTM with tens of thousands of adjustable parameters to obtain excellent predictions of river discharge. But what did it learn about the watershed? Which parts of its behavior reflect storage, connectivity, thresholds, or delayed responses—and which relationships will hold under conditions outside the training data?

Machine learning offers powerful tools for prediction and discovery. My concern is what happens if predictive accuracy becomes the sole measure of progress. Hydrology risks becoming a number-crunching discipline in which improving a score takes precedence over explaining the system that produced the observations.

A scientific discipline needs theory on which it can build. Theory allows us to state assumptions explicitly, derive testable consequences, design experiments that distinguish competing explanations, and revise our understanding when observations contradict it. It also gives us a basis for asking when a relationship should transfer to a new catchment, climate, or time scale.

SAGE as a framework for hypothesis testing

SAGE trains hydrologic models across a collection of basins. It learns a relationship between catchment attributes and model parameters, allowing information from the training basins to inform predictions in other basins. Analytic forward sensitivities provide the gradients used in training.

This makes it practical to express a hypothesis in a model’s equations, compare alternative formulations under aligned conditions, and examine whether their behavior transfers beyond the calibration sample. We might ask whether a different storage–discharge relationship explains recession behavior, whether a delayed response improves the representation of transport, or whether a proposed mechanism remains useful across contrasting catchments.

A good fit alone does not establish that a mechanism is correct. Different models can reproduce similar discharge records. Testing against independent basins and periods, examining model states and fluxes, and using additional observation types where available can provide stronger constraints. SAGE is intended to make that cycle of proposing, testing, rejecting, and refining hypotheses easier. For example, HYD-RESPONSES allows hypotheses to be tested against discharge, snow water equivalent, and soil moisture using the seven built-in models or user_model.

Extending those tests across countries

Most datasets available in SAGE are organized by country, with several countries offering more than one collection. Examples include CAMELS-US, MACH-US, and CAMELSH-US for the United States; CAMELS-KR and CAMELSH-KR for South Korea; and CAMELS-ES and BULL-ES for Spain.

Multi-country training was already possible in v1.0.3 with CAMELS-AT, based on LamaH-CE, which includes Austria and neighboring countries such as Czechia and Hungary. The new CHAMELLION integration brings together European catchments, while the combined CAMELS-SPAT integration covers the United States and Canada. These additions broaden the range of environments available for training and testing hydrologic hypotheses across countries.

These collections allow training and evaluation to span national boundaries within a dataset. Country boundaries are useful for organizing data, but the scientific questions concern differences in climate, soils, geology, topography, and hydrologic response. Does a proposed relationship explain behavior across those differences? Where does it fail, and what might that failure tell us about the processes missing from the model?

Development status: CHAMELLION and the combined US–Canada CAMELS-SPAT integration are additions being prepared for v1.0.4; they are not features of the published v1.0.3 application.

A basin-by-basin benchmark with SITE

SITE calibrates a separate parameter vector for each basin. It provides a complementary benchmark: how well can the same model perform when its parameters are estimated independently for each watershed?

Comparing SAGE and SITE helps us examine the benefits and limitations of learning across basins. The comparison is most informative when the model, observations, time periods, objective function, and numerical settings are aligned. Neither approach establishes a theory by itself; both support experiments that can challenge it.

Making experiments easier to repeat

I developed the graphical interfaces to make these experiments easier to configure, inspect, and repeat. The workflow brings together dataset installation, basin selection, model settings, training or calibration, and diagnostic plots. The computational source is also available for researchers who want to inspect or extend the methods.

Where to begin

Download the application for your operating system from the SAGEhydrology releases or SITEhydrology releases page. Start with a supported dataset and a small experiment before expanding to a larger basin collection. While you explore SAGE’s current capabilities, I am preparing v1.0.4 with AI-assisted modeling and developing two further modules: multi-objective training to explore Pareto trade-offs, and frequentist uncertainty analysis to quantify parameter uncertainty and assess model misspecification.

About this blog

Hydrologic hypothesis testing, capability extensions, project descriptions, tutorials, bug fixes, research ideas, and community applications with SAGEhydrology and SITEhydrology. Written by Jasper A. Vrugt, University of California, Irvine.

Try the software