Home / Journals / CMC / Online First / doi:10.32604/cmc.2026.075539
Special Issues
Table of Content

Open Access

ARTICLE

QPred: A Lightweight Deep Learning-Based Web Pipeline for Accessible and Scalable Streamflow Forecasting

Randika K. Makumbura1, Hasanthi Wijesundara2, Hirushan Sajindra1, Upaka Rathnayake1,*, Vikram Kumar3, Dineshbabu Duraibabu1, Sumit Sen3
1 Faculty of Engineering and Design, Atlantic Technological University, Sligo, F91 YW50, Ireland
2 Department of Civil Engineering, Sri Lanka Institute of Information Technology, Malabe, 10115, Sri Lanka
3 Department of Hydrology, Indian Institute of Technology, Roorkee, 247667, India
* Corresponding Author: Upaka Rathnayake. Email: email

Computers, Materials & Continua https://doi.org/10.32604/cmc.2026.075539

Received 03 November 2025; Accepted 30 December 2025; Published online 26 January 2026

Abstract

Accurate streamflow prediction is essential for flood warning, reservoir operation, irrigation scheduling, hydropower planning, and sustainable water management, yet remains challenging due to the complexity of hydrological processes. Although data-driven models often outperform conventional physics-based hydrological modelling approaches, their real-world deployment is limited by cost, infrastructure demands, and the interdisciplinary expertise required. To bridge this gap, this study developed QPred, a regional, lightweight, cost-effective, web-delivered application for daily streamflow forecasting. The study executed an end-to-end workflow, from field data acquisition to accessible web-based deployment for on-demand forecasting. High-resolution rainfall data were recorded with tipping-bucket gauges and loggers, while river water depth in the Aglar and Paligaad watersheds was converted to discharge using site-specific rating curves, resulting in a daily dataset of precipitation, river water level and discharge. Four DL architectures were trained, including vanilla Long Short-Term Memory (LSTM), stacked LSTM, bidirectional LSTM, and Gated Recurrent Unit (GRU), and evaluated using Nash-Sutcliffe Efficiency (NSE), Coefficient of Determination (R2), Root-Mean-Square-Error-Standard-Deviation Ratio (RSR), and Percentage Bias (PBIAS) metrics. Performance was watershed-specific, as the vanilla LSTM demonstrated the best generalisation for the Aglar watershed (R2 = 0.88, NSE = 0.82, RMSE = 0.12 during validation), while the GRU achieved the highest validation accuracy in Paligaad (R2 = 0.88, NSE = 0.88, RMSE = 0.49). All models achieved satisfactory to excellent performance during calibration (R2 > 0.91, NSE > 0.91 for both watersheds), demonstrating strong capability to capture streamflow dynamics. The highest performing models were selected and embedded into the QPred application. QPred was developed as a lightweight web pipeline, utilising Google Colab as the primary execution environment, Flask as the backend inference framework, Google Drive for artefact storage, and Ngrok for secure HTTPS tunnelling. A user-friendly front end utilises range sliders (bounded by observed minima and maxima) to gather inputs and provides discharge data along with metadata, thereby enhancing transparency. This work demonstrates that accurate, context-aware deep learning models can be delivered through low-cost, web-based platforms, providing a reproducible and scalable pipeline for hydrological applications in other watersheds and for practitioners.

Keywords

Deep learning; GRU; LSTM; Ngrok; sreamflow prediction; web-based application
  • 190

    View

  • 52

    Download

  • 0

    Like

Share Link