Forecasting of Sea Level Time Series using RNN and LSTM Case Study in Sunda Strait

  • Annas Wahyu Ramadhan School of Computing, Telkom University Bandung, Indonesia
  • Didit Adytia School of Computing, Telkom University.
  • Deni Saepudin School of Computing, Telkom University Bandung, Indonesia
  • Semeidi Husrin Marine Research Centre, Ministry of Marine Affairs and Fisheries of Indonesia Jakarta, Indonesia
  • Adiwijaya Adiwijaya School of Computing, Telkom University Bandung, Indonesia


Sea-level forecasting is essential for coastal development planning and minimizing their signi?cant
consequences in coastal operations, such as naval engineering and navigation. Conventional sea
level predictions, such as tidal harmonic analysis, do not consider the in?uence of non-tidal elements
and require long-term historical sea level data. In this paper, two deep learning approaches
are applied to forecast sea level. The ?rst deep learning is Recurrent Neural Network (RNN), and
the second is Long Short Term Memory (LSTM). Sea level data was obtained from IDSL (Inexpensive
Device for Sea Level Measurement) at Sebesi, Sunda Strait, Indonesia. We trained the
model for forecasting 3, 5, 7, 10, and 14 days using three months of hourly data in 2020 from 1st
May to 1st August. We compared forecasting results with RNN and LSTM with the results of the
conventional method, namely tidal harmonic analysis. The LSTM’s results showed better performance
than the RNN and the tidal harmonic analysis, with a correlation coef?cient of R2 0.97 and
an RMSE value of 0.036 for the 14 days prediction. Moreover, RNN and LSTM can accommodate
non-tidal harmonic data such as sea level anomalies.


Download data is not yet available.


[1] A.-L. Balogun and N. Adebisi, “Sea level prediction using arima, svr and lstm neural network:
assessing the impact of ensemble ocean-atmospheric processes on models’ accuracy,” Geomatics,
Natural Hazards and Risk, vol. 12, no. 1, pp. 653–674, 2021.
[2] X.-H. Le, H. V. Ho, G. Lee, and S. Jung, “Application of long short-term memory (lstm) neural
network for flood forecasting,” Water, vol. 11, no. 7, p. 1387, 2019.
[3] G. Griggs, “Rising seas in california—an update on sea-level rise science,” in World Scientific
Encyclopedia of Climate Change: Case Studies of Climate Risk, Action, and Opportunity
Volume 3. World Scientific, 2021, pp. 105–111.
[4] G. D. Egbert and R. D. Ray, “Tidal prediction,” Journal of Marine Research, vol. 75, no. 3, pp.
189–237, 2017.
[5] C. Y. Zhang, “Non-Tidal Water Level Variability in Lianyungang Coastal Area,” Advanced
Materials Research, vol. 610-613, pp. 2705–2708, Dec. 2012. [Online]. Available:
[6] A. Amiri-Simkooei, S. Zaminpardaz, and M. Sharifi, “Extracting tidal frequencies using multi-
variate harmonic analysis of sea level height time series,” Journal of Geodesy, vol. 88, no. 10,
pp. 975–988, 2014.
[7] S. Li, L. Liu, S. Cai, and G. Wang, “Tidal harmonic analysis and prediction with least-squares
estimation and inaction method,” Estuarine, Coastal and Shelf Science, vol. 220, pp. 196–
208, 2019.
[8] Y. K. Purba, D. Saepudin, and D. Adytia, “Prediction of sea level by using autoregressive integrated
moving average (arima): Case study in tanjung intan harbour cilacap, indonesia,” in
2020 8th International Conference on Information and Communication Technology (ICoICT).
IEEE, 2020, pp. 1–5.
[9] R. Tulus, D. Adytia, N. Subasita, and D. Tarwidi, “Sea level prediction by using seasonal
autoregressive integrated moving average model, case study in semarang, indonesia,” in
2020 8th International Conference on Information and Communication Technology (ICoICT).
IEEE, 2020, pp. 1–5.
[10] D. S. Wibowo, D. Adytia, and D. Saepudin, “Prediction of tide level by using holtz-winters
exponential smoothing: Case study in cilacap bay,” in 2020 International Conference on Data
Science and Its Applications (ICoDSA). IEEE, 2020, pp. 1–5.
[11] S. Nitsure, S. Londhe, and K. Khare, “Prediction of sea water levels using wind information
and soft computing techniques,” Applied Ocean Research, vol. 47, pp. 344–351, 2014.
[12] M. Imani, H.-C. Kao, W.-H. Lan, and C.-Y. Kuo, “Daily sea level prediction at chiayi coast,
taiwan using extreme learning machine and relevance vector machine,” Global and planetary
change, vol. 161, pp. 211–221, 2018.
[13] M. A. Rizkina, D. Adytia, and N. Subasita, “Nonlinear autoregressive neural network models
for sea level prediction, study case: In semarang, indonesia,” in 2019 7th International
Conference on Information and Communication Technology (ICoICT). IEEE, 2019, pp. 1–5.
[14] A. Annunziato, G. Prasetya, and S. Husrin, “Anak krakatau volcano emergency tsunami early
warning system.” Science of Tsunami Hazards, vol. 38, no. 2, 2019.
[15] P. Schureman, Manual of harmonic analysis and prediction of tides. Washington, D.C.:
United States Government Printing Office, 1958.
[16] S. Cox, “Theory of the Harmonic Model of Tides · sam-cox/pytides Wiki.” [Online]. Available:
[17] W. Kong, Z. Y. Dong, Y. Jia, D. J. Hill, Y. Xu, and Y. Zhang, “Short-term residential load forecasting
based on lstm recurrent neural network,” IEEE Transactions on Smart Grid, vol. 10,
no. 1, pp. 841–851, 2017.
[18] K. Sandhu, A. R. Nair et al., “A comparative study of arima and rnn for short term wind
speed forecasting,” in 2019 10th International Conference on Computing, Communication
and Networking Technologies (ICCCNT). IEEE, 2019, pp. 1–7.
[19] A. Rahman, V. Srikumar, and A. D. Smith, “Predicting electricity consumption for commercial
and residential buildings using deep recurrent neural networks,” Applied energy, vol. 212, pp.
372–385, 2018.
[20] S. Hochreiter and J. Schmidhuber, “Long short-term memory,” Neural computation, vol. 9,
no. 8, pp. 1735–1780, 1997.
[21] Z. Zhao, W. Chen, X. Wu, P. C. Chen, and J. Liu, “Lstm network: a deep learning approach
for short-term traffic forecast,” IET Intelligent Transport Systems, vol. 11, no. 2, pp. 68–75,
[22] J. Zhao, Y. Fan, and Y. Mu, “Sea level prediction in the yellow sea from satellite altimetry
with a combined least squares-neural network approach,” Marine geodesy, vol. 42, no. 4, pp.
344–366, 2019.
[23] M. Lydia, S. S. Kumar, A. I. Selvakumar, and G. E. P. Kumar, “Wind resource estimation using
wind speed and power curve models,” Renewable Energy, vol. 83, pp. 425–434, 2015.
[24] R. Pal, “Chapter 4 - validation methodologies,” in Predictive Modeling of Drug
Sensitivity, R. Pal, Ed. Academic Press, 2017, pp. 83–107. [Online]. Available:
How to Cite
RAMADHAN, Annas Wahyu et al. Forecasting of Sea Level Time Series using RNN and LSTM Case Study in Sunda Strait. Lontar Komputer : Jurnal Ilmiah Teknologi Informasi, [S.l.], v. 12, n. 3, p. 130-140, oct. 2021. ISSN 2541-5832. Available at: <>. Date accessed: 27 may 2022. doi: