Benefits of multi-target and self-supervised LSTM models for water quantity and quality

Deep learning has become a standard tool for streamflow modelling, but its application to water quality remains challenging due to sparse, irregular, and noisy in-situ observations. Yet, water-quality variables are tightly linked to discharge and to each other through shared hydrological and biogeochemical controls, suggesting that jointly modelling water quantity and quality may help compensate for limited data availability. In this study, we compare single-target, multi-target, and self-supervised LSTM models for the joint simulation of discharge and six water-quality variables (NO 3 -N, PO 4 -P, DO, DOC, EC, and WT) across 408 German catchments. Our results highlight that extending the baseline LSTM from single-target discharge prediction to jointly predicting discharge and all six water-quality variables does not substantially degrade discharge performance (across all baseline configurations, median KGE ′ = 0.84–0.87) and yields median KGE ′ values between 0.40 (PO 4 -P) and 0.95 (WT) for the water-quality targets. Interestingly, learning discharge as a co-target matches or exceeds the performance of using observed discharge as an additional input for five of the six water-quality variables, with the clearest gain for DOC (ΔKGE ′ = +0.05). This indicates that jointly learning water quantity and quality can be more effective than using discharge as a predictor. A variable-averaged loss function is key to balance the strongly uneven observation densities of discharge and water-quality variables. Building on this multi-target framework, we further explore whether an alternative training strategy based on self-supervised learning can better exploit the incomplete and heterogeneous nature of environmental observations. Our evaluation reveals that the self-supervised LSTM yields a level of predictive skill comparable to the multi-target supervised baseline LSTM under inference conditions restricted to meteorological drivers and when contextual water-quality data is provided. Thus, while matching the baseline's skill, the self-supervised LSTM gains versatility, as a single model can be applied to many different combinations of available input data without retraining. Besides showcasing the strong performance of LSTMs in water-quality simulations with sparse and irregular data, our results demonstrate that multi-target learning provides an effective framework for coupled water quantity–quality modelling, while self-supervised learning offers additional flexibility for exploiting incomplete and heterogeneous environmental observations.

Authors

Institutions

Publication Details

Journal
Hydrology and earth system sciences
Published
2026-11-18
DOI
https://doi.org/10.5194/hess-30-7149-2026
Primary Topic
Hydrological Forecasting Using AI
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Benefits of multi-target and self-supervised LSTM models for water quantity and quality

Jens Kiesel, Ralf Loritz, Pia Ebeling, Jean-Paul Brede
1 links
Hydrology and earth system sciences
Hydrological Forecasting Using AI
article

Benefits of multi-target and self-supervised LSTM models for water quantity and quality

Jens Kiesel, Ralf Loritz, Pia Ebeling, Jean-Paul Brede
article en

Abstract

Deep learning has become a standard tool for streamflow modelling, but its application to water quality remains challenging due to sparse, irregular, and noisy in-situ observations. Yet, water-quality variables are tightly linked to discharge and to each other through shared hydrological and biogeochemical controls, suggesting that jointly modelling water quantity and quality may help compensate for limited data availability. In this study, we compare single-target, multi-target, and self-supervised LSTM models for the joint simulation of discharge and six water-quality variables (NO 3 -N, PO 4 -P, DO, DOC, EC, and WT) across 408 German catchments. Our results highlight that extending the baseline LSTM from single-target discharge prediction to jointly predicting discharge and all six water-quality variables does not substantially degrade discharge performance (across all baseline configurations, median KGE ′ = 0.84–0.87) and yields median KGE ′ values between 0.40 (PO 4 -P) and 0.95 (WT) for the water-quality targets. Interestingly, learning discharge as a co-target matches or exceeds the performance of using observed discharge as an additional input for five of the six water-quality variables, with the clearest gain for DOC (ΔKGE ′ = +0.05). This indicates that jointly learning water quantity and quality can be more effective than using discharge as a predictor. A variable-averaged loss function is key to balance the strongly uneven observation densities of discharge and water-quality variables. Building on this multi-target framework, we further explore whether an alternative training strategy based on self-supervised learning can better exploit the incomplete and heterogeneous nature of environmental observations. Our evaluation reveals that the self-supervised LSTM yields a level of predictive skill comparable to the multi-target supervised baseline LSTM under inference conditions restricted to meteorological drivers and when contextual water-quality data is provided. Thus, while matching the baseline's skill, the self-supervised LSTM gains versatility, as a single model can be applied to many different combinations of available input data without retraining. Besides showcasing the strong performance of LSTMs in water-quality simulations with sparse and irregular data, our results demonstrate that multi-target learning provides an effective framework for coupled water quantity–quality modelling, while self-supervised learning offers additional flexibility for exploiting incomplete and heterogeneous environmental observations.

Hydrology and earth system sciencesVol. 30(22)
Karlsruhe Institute of Technology (DE), Helmholtz Centre for Environmental Research (DE)
Deutsche Forschungsgemeinschaft, Volkswagen Foundation, Bundesministerium für Bildung und Forschung
Clean water and sanitation
Hydrological Forecasting Using AI
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon