Perkiraan Suhu Menggunakan Algoritma Recurrent Neural Network Long Short Term Memory
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
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
Pages: 244-252
Copyright (c) 2024 Ilham Zahidin, Bulkis Kanata, Lalu A. Syamsul Irfan Akbar

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).