Transformer Versus LSTM: A Comparison of Deep Learning Models for Karst Spring Discharge Forecasting

Author:

Pölz Anna12ORCID,Blaschke Alfred Paul12,Komma Jürgen1,Farnleitner Andreas H.234,Derx Julia12ORCID

Affiliation:

1. Institute of Hydraulic Engineering and Water Resources Management 222/2 TU Wien Vienna Austria

2. Interuniversity Cooperation Centre Water and Health Vienna Austria

3. Institute of Chemical, Environmental and Bioscience Engineering Research Group Microbiology and Molecular Diagnostics 166/5/3 TU Wien Vienna Austria

4. Division Water Quality and Health, Department for Pharmacology, Physiology and Microbiology Karl Landsteiner University for Health Sciences Krems Austria

Abstract

AbstractKarst springs are essential drinking water resources, however, modeling them poses challenges due to complex subsurface flow processes. Deep learning models can capture complex relationships due to their ability to learn non‐linear patterns. This study evaluates the performance of the Transformer in forecasting spring discharges for up to 4 days. We compare it to the Long Short‐Term Memory (LSTM) Neural Network and a common baseline model on a well‐studied Austrian karst spring (LKAS2) with an extensive hourly database. We evaluated the models for two further karst springs with diverse discharge characteristics for comparing the performances based on four metrics. In the discharge‐based scenario, the Transformer performed significantly better than the LSTM for the spring with the longest response times (9% mean difference across metrics), while it performed poorer for the spring with the shortest response time (4% difference). Moreover, the Transformer better predicted the shape of the discharge during snowmelt. Both models performed well across all lead times and springs with 0.64–0.92 for the Nash–Sutcliffe efficiency and 10.8%–28.7% for the symmetric mean absolute percentage error for the LKAS2 spring. The temporal information, rainfall and electrical conductivity were the controlling input variables for the non‐discharge based scenario. The uncertainty analysis revealed that the prediction intervals are smallest in winter and autumn and highest during snowmelt. Our results thus suggest that the Transformer is a promising model to support the drinking water abstraction management, and can have advantages due to its attention mechanism particularly for longer response times.

Funder

Austrian Science Fund

Publisher

American Geophysical Union (AGU)

Reference49 articles.

1. Simulation of karst spring discharge using a combination of time–frequency analysis methods and long short-term memory neural networks

2. Brown T. B. Mann B. Ryder N. Subbiah M. Kaplan J. Dhariwal P. et al. (2020).Language models are few‐shot learners. [Preprint].arXiv:2005.14165 [cs]. Retrieved fromhttp://arxiv.org/abs/2005.14165

Cited by 3 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3