Benefits of multi-target and self-supervised LSTM models for water quantity and quality
Open Access
- 18 November 2026
- journal article
- research article
- Published by Copernicus GmbH in Hydrology and Earth System Sciences
- Vol. 30 (22) , 7149-7176
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.Keywords
All Related Versions
Funding Information
- Bundesministerium für Forschung, Technologie und Raumfahrt (16IS24088A)
- Volkswagen Foundation (0069685)
This publication has 54 references indexed in Scilit:
- Spatial and Temporal Variability of River Water QualityHydrological Processes, 2025
- The Unexploited Treasures of Hydrological Observations Beyond Streamflow for Catchment ModelingWIREs Water, 2025
- A guideline for spatio‐temporal consistency in water quality modelling in rural areasHydrological Processes, 2022
- Evaluation of SEAWAVE–QEX in a high agricultural intensity catchment in BelgiumIntegrated Environmental Assessment and Management, 2022
- Seasonal and event-based concentration-discharge relationships to identify catchment controls on nutrient export regimesAdvances in Water Resources, 2019
- High‐frequency dissolved organic carbon and nitrate measurements reveal differences in storm hysteresis and loading in relation to land cover and seasonalityWater Resources Research, 2017
- The impact of the objective function in multi-site and multi-variable calibration of the SWAT modelEnvironmental Modelling & Software, 2017
- Catchment controls on solute exportAdvances in Water Resources, 2015
- Decomposition of the mean squared error and NSE performance criteria: Implications for improving hydrological modellingJournal of Hydrology, 2009
- Biogeochemical Hot Spots and Hot Moments at the Interface of Terrestrial and Aquatic EcosystemsEcosystems, 2003