Research manuscript
Agentic development of machine-learning hydrological models
Abstract excerpt
Large-language-model agents can automate increasingly complex modelling tasks, but their scientific value depends on controlled evaluation of adaptive decisions.
Read full abstract
We developed a reproducible agent-assisted workflow for regional daily rainfall–runoff modelling in LamaH-CE, in which an agent proposed bounded configuration changes, executed fixed-budget experiments, evaluated a hydrological scorecard, and retained or rejected modifications while logging the full trajectory. Across 71 development iterations in four recurrent, attention-based, and tree-based model families, agent-generated proposals were compared with a matched-budget random-proposal control. Selected configurations were then frozen and assessed during temporal confirmation and in 50 held-out catchments; neither domain entered the reported development loop, although both had been evaluated in an earlier methodological pilot. Random proposals reached an equal or higher development score in three of four model families. Only XGBoost and the Transformer showed hydrological changes resolved against catchment sampling variability, with XGBoost median Kling–Gupta efficiency gains of 0.189 on validation, 0.164 in temporal confirmation, and 0.092 in held-out catchments. Alternative scorecards changed the top-ranked configuration in 7 of 12 cases. Agent assistance therefore improved traceability and control more clearly than search efficiency.