Perkiraan Suhu Menggunakan Algoritma Recurrent Neural Network Long Short Term Memory


  • Ilham Zahidin Universitas Mataram, Mataram, Indonesia
  • Bulkis Kanata Universitas Mataram, Mataram, Indonesia
  • Lalu A. Syamsul Irfan Akbar * Mail Universitas Mataram, Mataram, Indonesia
  • (*) Corresponding Author
Keywords: RNN; LSTM; Temperature; Temperature Forecast; Mataram City

Abstract

Air temperature is a critical variable in weather conditions that affects various aspects of human life, including health, agriculture, and the economy. In Indonesia, particularly in Mataram City, which is situated in a tropical region, significant temperature changes can impact sectors such as tourism, agriculture, and daily activities. Accurate temperature forecasting can aid the public, industries, and the government in making more informed decisions, both for short-term and long-term planning. However, weather in tropical regions like Mataram tends to be difficult to predict accurately due to its dynamic nature and the influence of multiple atmospheric factors. Conventional weather prediction methods often fail to capture the complex patterns in historical temperature data, necessitating more advanced methods to improve forecast accuracy. Recurrent Neural Networks (RNNs), particularly the Long Short-Term Memory (LSTM) variant, have proven to be highly effective tools for modeling complex time series data. This algorithm can retain long-term information and recognize patterns in data that change over time, making it well-suited for temperature prediction challenges. In this study, the RNN-LSTM algorithm is applied to forecast temperatures in Mataram City, aiming to improve forecast accuracy and produce results useful for various purposes. The temperature prediction model using the LSTM algorithm involves several steps: data collection, data normalization, splitting data into test and training sets, building the LSTM model by determining the number of epochs, layers, and batch size, and finally, evaluating the model with RMSE. Two parameters, epoch and batch size, influence the LSTM model’s forecasting results in this study. Epochs used in this study are 5, 10, 20, 30, 40, 50, and 100, with a fixed batch size of 32. The LSTM algorithm employs the RMSProp optimizer. The temperature prediction model using the LSTM method achieved the best average accuracy with a batch size of 32 and 50 epochs, yielding an RMSE value of 0.13 and a prediction accuracy of 99.96% in forecasting Mataram City’s temperature for the year 2023.

Downloads

Download data is not yet available.

References

T. Lattifa, “Model Prediksi Cuaca Menggunakan Metode LSTM,” JITTER - J. Ilm. Teknol. dan Komput., vol. 3, 2022.

S. Hidayatullah and A. Cherid, “Prediksi Temperatur Cuaca di Negara Norwegia Menggunakan Metode LSTM,” Simkom, vol. 8, no. 2, pp. 187–198, 2023, doi: 10.51717/simkom.v8i2.192.

N. K. Manaswi, Deep Learning with Application Using Python. CA: Apress, 2018.

F. M. Madjid, “Perbandingan prediksi vidibility menggunakan LSTM dan MLP di Bandara Sultan Mahmud Badaruddin II Palembang,” JSI J. Sist. Inf., vol. 14, no. 1, pp. 2497–2507, 2022, doi: 10.18495/jsi.v14i1.16798.

A. Wahyu, D. Adytia, D. Saepudin, and S. Husrin, “Forecasting of Sea Level Time Series using RNN and LSTM Case Study in Sunda Strait,” vol. 12, 2021.

R. Tanjung, A. Listiani, and F. Lestari, “Prediksi Multivariate Time Series Parameter Cuaca Menggunakan Long Short - Term Memory ( LSTM ),” vol. 2024, no. November 2022, pp. 445–456, 2024.

A. Hanifa, S. A. Fauzan, and M. Hikal, “Perbandingan Metode LSTM dan GRU (RNN) untuk Klasifikasi Berita Palsu Berbahasa Indonesia,” Din. Rekayasa, vol. 17, 2021, [Online]. Available: http://dinarek.unsoed.ac.id/jurnal/index.php/dinarek/article/view/436

A. Khumaidi, R. Raafi’udin, and I. P. Solihin, “Pengujian Algoritma Long Short Term Memory untuk Prediksi Kualitas Udara dan Suhu Kota Bandung,” J. Telemat., vol. 15, no. 1, pp. 13–18, Dec. 2020, doi: 10.61769/telematika.v15i1.340.

E. Supriyadi, “Prediksi Parameter Cuaca Menggunakan Deep Learning Long-Short Term Memory (LSTM) Weather Parameters Prediction Using Deep Learning Long-Short Term Memory (LSTM),” J. Meteorol. Dan Geofis., vol. 21, no. 21, pp. 56–59, 2019, [Online]. Available: http://bmkgsoft.database.bmkg.go.id.

Y. E. N. Nugraha, I. Ariawan, and W. A. Arifin, “Weather Forecast From Time Series Data Using Lstm Algorithm,” J. Teknol. Inf. Dan Komun., vol. 14, no. 1, pp. 144–152, 2023, doi: 10.51903/jtikp.v14i1.531.

D. Lestari and A. Irawan, “Long Short-Term Memory Neural Network for Rainfall Prediction in Jakarta,” 2019.

H. Andre and T. Handhayani, “Implementasi Algoritma LSTM untuk Memprediksi Temperatur di Wilayah Ternate Maluku Utara,” J. Esensi Infokom J. Esensi Sist. Inf. dan Sist. Komput., 2024.

T. L. Nguyen and C. Liu, “LSTM-Based Model for Temperature Prediction in Agricultural Smart Farms,” IEEE Trans. Comput. Soc. Syst., vol. 8, 2021, doi: https://doi.org/10.1109/TCSS.2021.3068257.

X. Yin and G. Leng, “Modelling global impacts of climate variability and trend on maize yield during 1980–2010,” Int. J. Climatol., vol. 41, no. S1, Jan. 2021, doi: 10.1002/joc.6792.

W. Winata, “Prakira Suhu Udara Rata-Rata Kota-Kota Besar Dunia Menggunakan Metode Long Short-Term Memory,” 2018, [Online]. Available: repository.usu.ac.id/bitstream/123456789/30230/4/Chapter II.pdf

A. Jain and R. Singh, “A Comparative Study of Machine Learning Algorithms for Air Pollution Prediction Using LSTM and GRU,” Environ. Sci. Pollut. Res., vol. 30, 2024, doi: https://doi.org/10.1007/s11356-022-22340-6.

L. N. I. Afida, I. Putra, I. Azizah, S. Nabawi, and A. Alifia, “Forecasting Temperature Menggunakan LSTM,” Pembelajaran Mesin Lanjut, 2022, [Online]. Available: www.wunderground.com.


Bila bermanfaat silahkan share artikel ini

Berikan Komentar Anda terhadap artikel Perkiraan Suhu Menggunakan Algoritma Recurrent Neural Network Long Short Term Memory

Dimensions Badge
Article History
Submitted: 2024-11-11
Published: 2024-11-30
Abstract View: 42 times
PDF Download: 93 times
Section
Articles