An Autoencoder Approach to Water Level Forecasting
Main Article Content
Abstract
Climate change exacerbates the frequency and intensity of flood events, presenting substantial threats to
human lives and infrastructure. Consequently, accurate and timely water level forecasting systems are critical
for effective early warning dissemination and rapid disaster response. While numerous studies in Vietnam
have focused on river water level prediction, a notable gap exists in the specific area of continuous, multi-hour
time series forecasting. This study addresses this gap by proposing a novel modeling approach for forecasting
future water levels at the Le Thuy station on the Kien Giang river in Quang Tri province. The proposed models
leverage historical hydrological observations from multiple upstream stations to predict water level sequences
at the Le Thuy station over continuous horizons of 6, 12, and 24 hours. The methodology employs advanced
deep learning techniques, specifically Autoencoder, Long Short-Term Memory (LSTM) networks, and Attention
mechanism, with each forecast horizon being modeled independently. Experimental results demonstrate the
models’ robust capability to accurately capture both rising and falling water level trends. The forecasted
sequences exhibit strong alignment with observed values, even during periods of rapid fluctuation. Point-wise
prediction errors are consistently low, indicating high forecasting precision. Crucially, the models maintain their
effectiveness during extreme floodevents,successfully predicting both the magnitude and timing of floodpeaks.
Keywords
Attention, LSTM Autoencoder, time series, water level sequence forecasting
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
References
[2] A. Y. Shamseldin, Artificial neural network model for river flow forecasting in a developing country, Journal of Hydroinformatics, vol. 12, pp. 22–35, 2009.
[3] J.-F. Chen, H.-N. Hsieh, and Q. H. Do, Forecasting Hoabinh reservoir’s incoming flow: An application of neural networks with the Cuckoo Search algorithm, Information, vol. 5, pp. 570–586, 2014.
[4] J. Y. Sung, J. Lee, I.-M. Chung, and J.-H. Heo, Hourly water level forecasting at tributary affected by main river condition, Water, vol. 9, 2017.
[5] W.-D. Guo, W.-B. Chen, S.-H. Yeh, C.-H. Chang, and H. Chen, Prediction of river stage using multistep-ahead machine learning techniques for a tidal river of Taiwan, Water, vol. 13, no. 7, 2021.
[6] S. Nevo, E. Morin, A. Gerzi Rosenthal, A. Metzger, C. Barshai, D. Weitzner, D. Voloshin, F. Kratzert, G. Elidan, G. Dror, G. Begelman, G. Nearing, G. Shalev, H. Noga, I. Shavitt, L. Yuklea, M. Royz, N. Giladi, N. Peled Levi, O. Reich, O. Gilon, R. Maor, S. Timnat, T. Shechter, V. Anisimov, Y. Gigi, Y. Levin, Z. Moshe, Z. Ben-Haim, A. Hassidim, and Y. Matias, Flood forecasting with machine learning models in an operational framework, Hydrology and Earth System Sciences, vol. 26, no. 15, pp. 4013–4032, 2022.
[7] Z. Vizi, B. Batki, L. R´atki, S. Szal´anczi, I. Feh´erv´ary, P. Koz´ak, and T. Kiss, Water level prediction using long short-term memory neural network model for a lowland river: a case study on the Tisza River, Central Europe, Environmental Sciences Europe, vol. 35, no. 1, pp. 92, 2023.
[8] I.-F. Kao, J.-Y. Liou, M.-H. Lee, and F.-J. Chang, Fusing stacked autoencoder and long short-term memory for regional multistep-ahead flood inundation forecasts, Journal of Hydrology, vol. 598, pp. 126371, 2021.
[9] A. S. Azad, N. Islam, M. N. Nabi, H. Khurshid, and M. A. Siddique, Developments and trends in water level forecasting using machine learning models - A review, IEEE Access, vol. 13, pp. 63048–63065, 2025.
[10] V. D. Do, T. Q. Nguyen, V. C. Vu, and V. N. Pham, The daily highest and lowest river water levels are forecasted using a hybrid model, Scientific journal - Sao Do university, vol. 1, 2021.
[11] N. Q. Dinh, Q. C. Ta, T. H. Dao, and T. K. N. Nguyen, Prediction of water level in Kien Giang river using regression-based models, Journal of Water Resources and Environmental Engineering, pp. 71–80, 80.
[12] Q. C. Ta, T. P. T. Nguyen, T. H. Dao, and T. T. H. Nguyen, Prediction of the water level at the Kien Giang River based on regression techniques, River, vol. 3, pp. 59–68, 2024.
[13] L. Huu Dung, N. Thi Thuy, L. Tuan Trung, and T. Thu Phuong, Application of machine learning for large flood identification in the Da River, Journal of Climate Change Science, vol. 34, pp. 24–30, 2025.
[14] N. Thi Thuy, L. Huu Dung, T. Thu Phuong, L. Tuan Trung, and C. Nguyen Ngoc Son, Deep learning model for flood characteristic prediction at Yen Bai hydrological station, Journal of Climate Change Science, vol. 34, pp. 32–39, 2025.
[15] S. Hochreiter and J. Schmidhuber, Long short-term memory, Neural computation, vol. 9, no. 8, pp. 1735–1780, 1997.
[16] G. E. Hinton and R. R. Salakhutdinov, Reducing the dimensionality of data with neural networks, Science, vol. 313, no. 5786, pp. 504–507, 2006.
[17] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. Kaiser, and I. Polosukhin, Attention is all you need, CoRR, vol. abs/1706.03762, 2017.