Air Temperature Prediction System Using Long Short-Term Memory Algorithm
Abstract
Air temperature is a highly essential parameter in weather forecasting methods and a critical variable for predicting future weather patterns. An accurate temperature prediction system can assist individuals and organizations in preparing for activities heavily influenced by weather conditions. Therefore, developing a precise temperature prediction model requires a reliable and effective algorithm. In this study, the Long Short-Term Memory (LSTM) algorithm, a type of artificial neural network (Recurrent Neural Network - RNN), is implemented with time series data decomposition for variable input processing. LSTM is specifically designed to handle sequential data or time series data, such as weather data. Additionally, LSTM-GRU and LSTM-Conv1D models are utilized. The dataset used in this research comprises air temperature data provided by the Meteorology, Climatology, and Geophysics Agency (BMKG) in the DKI Jakarta region. Model evaluation is conducted using criteria for the smallest Mean Absolute Error (MAE) and Root Mean Square Error (RMSE). Experiments show that the prediction system based on LSTM-GRU achieves the lowest MAE and RMSE values compared to LSTM and LSTM-Conv1D, across 10, 20, and 30-step predictions. It can be concluded that the LSTM-GRU algorithm provides the most accurate predictions compared to the LSTM and LSTM-Conv1D models for sequential temperature data, given sufficient data and a properly configured model. This is also graphically demonstrated by prediction results closely aligning with the actual data.
Keywords
Full Text:
PDFReferences
Audace, D. K. B., Richard, A. G., & Macaire, A. B. (2022). LSTM and K-means Algorithm for Irradiation and Temperature Clustering to Forecast Power Output of a PV Array Installed in Benin. 2022 International Conference on Green Energy, Computing and Sustainable Technology, GECOST 2022, 248–252. https://doi.org/10.1109/GECOST55694.2022.10010366
Cao, Y., Liu, L., & Dong, Y. (2023). Convolutional Long Short-Term Memory Two-Dimensional Bidirectional Graph Convolutional Network for Taxi Demand Prediction. Sustainability (Switzerland), 15(10). https://doi.org/10.3390/su15107903
Farooq, M. S., Tehseen, R., Qureshi, J. N., Omer, U., Yaqoob, R., Tanweer, H. A., & Atal, Z. (2023). FFM: Flood Forecasting Model Using Federated Learning. IEEE Access, 11, 24472–24483. https://doi.org/10.1109/ACCESS.2023.3252896
Kar, B., Schumann, G. J. P., Mendoza, M. T., Bausch, D., Wang, J., Sharma, P., & Glasscoe, M. T. (2024). Assessing a Model-of-Models Approach for Global Flood Forecasting and Alerting. IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, 17, 9641–9650. https://doi.org/10.1109/JSTARS.2024.3390579
Kumari, L., Kumar, U., & Kumar, N. (2024). Deep Learning Based Modal for Predicting Flooding Pattern and Climate Shifts. 4th International Conference on Innovative Practices in Technology and Management 2024, ICIPTM 2024. https://doi.org/10.1109/ICIPTM59628.2024.10563619
Le, X. H., Ho, H. V., Lee, G., & Jung, S. (2019a). Application of Long Short-Term Memory (LSTM) neural network for flood forecasting. Water (Switzerland), 11(7). https://doi.org/10.3390/w11071387
Li, Y., Li, T., Lv, W., Liang, Z., & Wang, J. (2023a). Prediction of Daily Temperature Based on the Robust Machine Learning Algorithms. Sustainability (Switzerland), 15(12). https://doi.org/10.3390/su15129289
Linzi, Z. (2023). Short-term Power Load Forecasting Based on FA-LSTM with Similar Day Selection. 2023 IEEE 3rd International Conference on Electronic Technology, Communication and Information, ICETCI 2023, 1110–1115. https://doi.org/10.1109/ICETCI57876.2023.10176616
Nizar, I. M., Adytia, D., & Ramadhan, A. W. (2021). Forecasting of Temperature by using LSTM and Bidirectional LSTM approach: Case Study in Semarang, Indonesia. 2021 International Conference on Data Science and Its Applications, ICoDSA 2021, 146–150. https://doi.org/10.1109/ICoDSA53588.2021.9617495
Prabuddhi, W. A. M., & Seneviratne, B. L. D. (2020). Long short term memory modelling approach for flood prediction: An application in deduru oya basin of Sri Lanka. 20th International Conference on Advances in ICT for Emerging Regions, ICTer 2020 - Proceedings, 226–231. https://doi.org/10.1109/ICTer51097.2020.9325438
Qifu Wang, Minglei hou, Yao Qin, & Feiyu Lian. (2022). Temperature Forecasting of Grain in Storage An Improved Approach Based on Broad Learning Network. IEEE Access.
Reza, S., Ferreira, M. C., Machado, J. J. M., & Tavares, J. M. R. S. (2022). Traffic State Prediction Using One-Dimensional Convolution Neural Networks and Long Short-Term Memory. Applied Sciences (Switzerland), 12(10). https://doi.org/10.3390/app12105149
Sharma, G., Dhumal, R., Singh, T. P., & Kumbhar, V. (2023). Analysis and Forecasting of Monthly Average Temperatures Using Timeseries Models. 2023 International Conference on Integration of Computational Intelligent System, ICICIS 2023. https://doi.org/10.1109/ICICIS56802.2023.10430229
Sri Sakthi, L., Chitra, P., Harini Sree, M. S., Subbulakshmi, P., & Umayal, C. (2023). A Hybrid Flood Forecasting Approach Using Hidden Markov Model and Machine Learning Techniques. 2023 7th International Conference On Computing, Communication, Control And Automation, ICCUBEA 2023. https://doi.org/10.1109/ICCUBEA58933.2023.10392173
Tran, T. T. K., Bateni, S. M., Ki, S. J., & Vosoughifar, H. (2021). A review of neural networks for air temperature forecasting. In Water (Switzerland) (Vol. 13, Issue 9). MDPI AG. https://doi.org/10.3390/w13091294
Tran, V., Septier, F., Murakami, D., & Matsui, T. (2024). Spatial–Temporal Temperature Forecasting Using Deep-Neural-Network-Based Domain Adaptation. Atmosphere, 15(1). https://doi.org/10.3390/atmos15010090
Wang, X., Liu, Y., Liang, X., Zhang, C., Yang, C., & Gui, W. (2024). Learning an Enhanced TCN-LSTM Network for Temperature Process Modeling in Rotary Kilns. IEEE Transactions on Automation Science and Engineering. https://doi.org/10.1109/TASE.2024.3388709
Zhang, K., Huo, X., & Shao, K. (2023). Temperature Time Series Prediction Model Based on Time Series Decomposition and Bi-LSTM Network. Mathematics, 11(9). https://doi.org/10.3390/math11092060
DOI
https://doi.org/10.21107/rekayasa.v17i3.28229Metrics
Refbacks
- There are currently no refbacks.
Copyright (c) 2024 Ria Faulina
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.