Preprints
https://doi.org/10.5194/hess-2023-168
https://doi.org/10.5194/hess-2023-168
26 Jul 2023
 | 26 Jul 2023
Status: a revised version of this preprint was accepted for the journal HESS and is expected to appear here in due course.

Metamorphic Testing of Machine Learning and Conceptual Hydrologic Models

Peter Reichert, Kai Ma, Marvin Höge, Fabrizio Fenicia, Marco Baity-Jesi, Dapeng Feng, and Chaopeng Shen

Abstract. Predicting the response of hydrologic systems to modified driving forces, beyond patterns that have occurred in the past, is of high importance for estimating climate change impacts or the effect of management measures. This kind of predictions requires a model, but the impossibility of testing such predictions against observed data makes it still difficult to estimate their reliability. Metamorphic testing offers a methodology for assessing models beyond validation with real data. It consists of defining input changes for which the expected responses are assumed to be known at least qualitatively, and to test model behavior for consistency with these expectations. To increase the gain of information and reduce the subjectivity of this approach, we extend this methodology to a multi-model approach and include a sensitivity analysis of the predictions to training or calibration options. This allows us to quantitatively analyse differences in predictions between different model structures and calibration options in addition to the qualitative test to the expectations. In our case study, we apply this approach to selected conceptual and machine learning hydrological models calibrated to basins from the CAMELS data set. Our results confirm the superiority of the machine learning models over the conceptual hydrologic models regarding the quality of fit during calibration and validation periods. However, we also find that the response of machine learning models to modified inputs can deviate from the expectations and the magnitude and even the sign of the response can depend on the training data. In addition, even in cases in which all models passed the metamorphic test, there are cases in which the quantitative response is different for different model structures. This demonstrates the importance of this kind of testing beyond the usual calibration-validation analysis to identify potential problems and stimulate the development of improved models.

Peter Reichert, Kai Ma, Marvin Höge, Fabrizio Fenicia, Marco Baity-Jesi, Dapeng Feng, and Chaopeng Shen

Status: closed

Comment types: AC – author | RC – referee | CC – community | EC – editor | CEC – chief editor | : Report abuse
  • CC1: 'Comment on hess-2023-168', Scott Steinschneider, 29 Jul 2023
    • CC2: 'Reply on CC1', Peter Reichert, 03 Aug 2023
    • AC1: 'Reply on CC1', Peter Reichert, 12 Feb 2024
  • RC1: 'Comment on hess-2023-168', Anonymous Referee #1, 13 Dec 2023
    • AC3: 'Reply on RC1', Peter Reichert, 12 Feb 2024
  • RC2: 'Comment on hess-2023-168', Joel Harms, 16 Jan 2024
    • AC2: 'Reply on RC2', Peter Reichert, 12 Feb 2024

Status: closed

Comment types: AC – author | RC – referee | CC – community | EC – editor | CEC – chief editor | : Report abuse
  • CC1: 'Comment on hess-2023-168', Scott Steinschneider, 29 Jul 2023
    • CC2: 'Reply on CC1', Peter Reichert, 03 Aug 2023
    • AC1: 'Reply on CC1', Peter Reichert, 12 Feb 2024
  • RC1: 'Comment on hess-2023-168', Anonymous Referee #1, 13 Dec 2023
    • AC3: 'Reply on RC1', Peter Reichert, 12 Feb 2024
  • RC2: 'Comment on hess-2023-168', Joel Harms, 16 Jan 2024
    • AC2: 'Reply on RC2', Peter Reichert, 12 Feb 2024
Peter Reichert, Kai Ma, Marvin Höge, Fabrizio Fenicia, Marco Baity-Jesi, Dapeng Feng, and Chaopeng Shen
Peter Reichert, Kai Ma, Marvin Höge, Fabrizio Fenicia, Marco Baity-Jesi, Dapeng Feng, and Chaopeng Shen

Viewed

Total article views: 1,111 (including HTML, PDF, and XML)
HTML PDF XML Total Supplement BibTeX EndNote
806 272 33 1,111 53 25 22
  • HTML: 806
  • PDF: 272
  • XML: 33
  • Total: 1,111
  • Supplement: 53
  • BibTeX: 25
  • EndNote: 22
Views and downloads (calculated since 26 Jul 2023)
Cumulative views and downloads (calculated since 26 Jul 2023)

Viewed (geographical distribution)

Total article views: 1,077 (including HTML, PDF, and XML) Thereof 1,077 with geography defined and 0 with unknown origin.
Country # Views %
  • 1
1
 
 
 
 
Latest update: 22 Apr 2024
Download
Short summary
We compared the predicted change in catchment outlet discharge to precipitation and temperature change for conceptual and machine-learning hydrological models. We found that machine-learning models, despite providing excellent fit and prediction capabilities, can be unreliable regarding the prediction of the effect of temperature change for low elevation catchments. This indicates the need for caution when applying them for the prediction of the effect of climate change.