Tidal level forecasting: a comparative study of random forest and long short-term memory networks
Abstract
Increasing coastal risks necessitate reliable tidal forecasts for coastal planning and disaster risk reduction. This study evaluates random forest (RF) and long short-term memory (LSTM) models for next-day, daily-averaged tidal-level forecasting, utilizing five years (2020–2024) of multivariate environmental data (humidity, rainfall, solar radiation, wind speed, and tidal series) from South Kalimantan, Indonesia. Missing data were linearly interpolated, and tidal extremes prone to leakage were excluded. RF incorporated 35 flattened seven-day lag features, while LSTM employed normalized seven-day sliding-window sequences. On the withheld 2024 test set, LSTM demonstrated lower root mean square error (RMSE) and higher coefficient of determination (R²)/Nash–Sutcliffe efficiency (NSE) than RF (RMSE 0.200 vs 0.208; R²/NSE 0.181 vs 0.118), whereas RF achieved a marginally lower mean absolute error (MAE) (0.124 vs 0.126). A paired Wilcoxon test indicated a modest but statistically significant LSTM advantage (p = 0.049), not supported by a paired t-test (p = 0.663). Both models exhibited limited explanatory power and missed the most volatile periods. RF feature importance analysis revealed that short-term persistence in the tidal series, rather than individual covariates, primarily influenced performance. Supported by bootstrap confidence and prediction intervals, these results offer a regional case study for environmentally informed tidal forecasting in data-constrained Indonesian coastal environments.
Keywords
Environmental data; Long short-term memory; Random forest; Tidal level prediction; Time series forecasting
Full Text:
PDFDOI: http://doi.org/10.11591/ijai.v15.i6.pp5745-5754
Refbacks
- There are currently no refbacks.
Copyright (c) 2026 Dhiyaussalam Dhiyaussalam, Farid Dwi Murdianto, Fajar Jamil

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
IAES International Journal of Artificial Intelligence (IJ-AI)
ISSN/e-ISSN 2089-4872/2252-8938
This journal is published by the Institute of Advanced Engineering and Science (IAES).