Air Temperature Forecasting Using a Long Short-Term Memory Model: A Case Study in Beykoz, Istanbul
DOI:
https://doi.org/10.64470/elene.2026.39Keywords:
Air temperature forecasting, Machine learning, Long short-term memory, Optimization methodsAbstract
Human activities contribute to the production of greenhouse gases, which in turn lead to a rise in temperature and an increase in carbon footprint. With increasing frequency of extreme temperature events due to urban heat island effects and climate change, short-term high-resolution temperature forecasting is critical for localized energy management and urban climate adaptation. In this study, real-world atmospheric data, including as wind direction and speed, temperature, humidity, and precipitation amount are collected via the PCE-FWS 20N weather station in Beykoz, Istanbul. Applying machine learning models to actual atmospheric data demonstrates the potential for enhanced environmental predictions and promotes informed decision-making to ensure a sustainable future. A Long Short-Term Memory (LSTM) machine learning model with optimization methods ADAM (Adaptive Moment Estimation), NADAM (Nesterov-accelerated Adaptive Moment Estimation), and RMSprop (Root Mean Square Propagation) are applied independently for different epoch sizes. A comparative evaluation of the selected optimization algorithms was performed using RMSE and R² metrics to identify the reliable configuration for the analyzed dataset
Downloads
References
Apaydın, M., Yumuş, M., Degirmenci, A., & Karal, Ö. (2022). Evaluation of Air Temperature with Machine Learning Regression Methods using Seoul City Meteorological Data. Pamukkale Universitesi Muhendislik Bilimleri Dergisi, 28(5), 737-747.
Bao, W., Yue, J., & Rao, Y. (2017). A Deep Learning Framework for Financial Time Series using Stacked Autoencoders and Long-Short Term Memory. Plos One, 12(7), e0180944. https://doi.org/10.1371/journal.pone.0180944.
Barhmi, K., Heynen, C., Golroodbari, S., & Van Sark, W. (2024, February). A Review of Solar Forecasting Techniques and the Role of Artificial Intelligence. In Solar (Vol. 4, No. 1, pp. 99-135). MDPI. https://doi.org/10.3390/solar4010005
Climate Change Beykoz (2024 September 17). Meteoblue. https://www.meteoblue.com/en/climate-change/beykoz_republic-of-t%c3%bcrkiye_750662?month=7
Climate Data (2024 September 17). https://tr.climate-data.org/asya/tuerkiye/istanbul/beykoz-25629/
Dadhich, S., Pathak, V., Mittal, R., & Doshi, R. (2021). Machine Learning for Weather Forecasting. Machine Learning for Sustainable Development, 10, 9783110702514-010. https://doi.org/10.1515/9783110702514-010 .
Deif, M. A., Solyman, A. A., Alsharif, M. H., Jung, S., & Hwang, E. (2021). A Hybrid Multi-Objective Optimizer-based SVM Model for Enhancing Numerical Weather Prediction: A Study for the Seoul Metropolitan Area. Sustainability, 14(1), 296. https://doi.org/10.3390/su14010296.
Dritsas, E., Trigka, M., & Mylonas, P. (2022, November). A Multi-Class Classification Approach for Weather Forecasting with Machine Learning Techniques. In 2022 17th International Workshop on Semantic and Social Media Adaptation & Personalization (SMAP) (pp. 1-5). IEEE. 10.1109/SMAP56125.2022.9942121.
Era, C. A. A., Rahman, M., & Alvi, S. T. (2023, July). Short Term Weather Forecasting Comparison Based on Machine Learning Algorithms. In 2023 Intelligent Methods, Systems, and Applications (IMSA) (pp. 369-374). IEEE. 10.1109/IMSA58542.2023.10217753.
Filipović, N., Brdar, S., Mimić, G., Marko, O., & Crnojević, V. (2022). Regional Soil Moisture Prediction System based on Long Short-Term Memory Network. Biosystems Engineering, 213, 30-38. https://doi.org/10.1016/j.biosystemseng.2021.11.019.
Fang, W., Zhuo, W., Yan, J., Song, Y., Jiang, D., & Zhou, T. (2022). Attention Meets Long Short-Term Memory: A Deep Learning Network for Traffic Flow Forecasting. Physica A: Statistical Mechanics and its Applications, 587, 126485. https://doi.org/10.1016/j.physa.2021.126485.
Findawati, Y., Astutik, I. I., Fitroni, A. S., Indrawati, I., & Yuniasih, N. (2019, December). Comparative Analysis of Naïve Bayes, K Nearest Neighbor and C. 45 Method in Weather Forecast. In Journal of Physics: Conference Series (Vol. 1402, No. 6, p. 066046). IOP Publishing. 10.1088/1742-6596/1402/6/066046.
Fischer, T., & Krauss, C. (2018). Deep Learning with Long Short-Term Memory Networks for Financial Market Predictions. European Journal of Operational Research, 270(2), 654-669. https://doi.org/10.1016/j.ejor.2017.11.054.
Gao, P., Qiu, H., Lan, Y., Wang, W., Chen, W., Han, X., & Lu, J. (2021). Modeling for the Prediction of Soil Moisture in Litchi Orchard with Deep Long Short-Term Memory. Agriculture, 12(1), 25. https://doi.org/10.3390/agriculture12010025.
Goodfellow, I., Bengio, Y., & Courville, A. (2016). Deep Learning. MIT Press.
Greff, K., Srivastava, R. K., Koutník, J., Steunebrink, B. R., & Schmidhuber, J. (2016). LSTM: A Search Space Odyssey. IEEE Transactions on Neural Networks and Learning Systems, 28(10), 2222-2232. 10.1109/TNNLS.2016.2582924.
Han, H., Choi, C., Kim, J., Morrison, R. R., Jung, J., & Kim, H. S. (2021). Multiple-depth Soil Moisture Estimates using Artificial Neural Network and Long Short-Term Memory Models. Water, 13(18), 2584. https://doi.org/10.3390/w13182584.
Hochreiter S, Schmidhuber J (1997) Long Short-Term Memory. Neural Computation, 9: 1735-1780. https://doi.org/10.1162/neco.1997.9.8.1735
Holmstrom, M., Liu, D., & Vo, C. (2016). Machine Learning Applied to Weather Forecasting. Meteorol. Appl, 10(1), 1-5.
Huang, Y., Gao, Y., Gan, Y., & Ye, M. (2021). A New Financial Data Forecasting Model using Genetic Algorithm and Long Short-Term Memory Network. Neurocomputing, 425, 207-218. https://doi.org/10.1016/j.neucom.2020.04.086.
Hull, G. (2022 December 19). Building a Neural Network Zoo From Scratch: The Long Short-Term Memory Network. https://medium.com/@CallMeTwitch/building-a-neural-network-zoo-from-scratch-the-long-short-term-memory-network-1cec5cf31b7
Jaharabi, W., Hossain, M. D., Tahmid, R., Islam, M. Z., & Rayhan, T. M. (2023). Predicting Temperature of Major Cities Using Machine Learning and Deep Learning. arXiv preprint arXiv:2309.13330. https://doi.org/10.48550/arXiv.2309.13330.
Jakaria, A. H. M., Hossain, M. M., & Rahman, M. A. (2020). Smart Weather Forecasting using Machine Learning: A Case Study in Tennessee. arXiv preprint arXiv:2008.10789. https://doi.org/10.48550/arXiv.2008.10789.
Johnstone, C., & Sulungu, E. D. (2021). Application of Neural Network in Prediction of Temperature: A Review. Neural Computing and Applications, 33(18), 11487-11498. https://doi.org/10.1007/s00521-020-05582-3.
Kareem, F. Q., Abdulazeez, A. M., & Hasan, D. A. (2021). Predicting Weather Forecasting State based on Data Mining Classification Algorithms. Asian Journal of Research in Computer Science, 9(3), 13-24. 10.9734/AJRCOS/2021/v9i330222.
Katušić, D., Pripužić, K., Maradin, M., & Pripužić, M. (2022). A Comparison of Data-Driven Methods in Prediction of Weather Patterns in Central Croatia. Earth Science Informatics, 15(2), 1249-1265. https://doi.org/10.1007/s12145-022-00792-w.
Kumar, I., Tripathi, B. K., & Singh, A. (2023). Attention-based LSTM Network-assisted Time Series Forecasting Models for Petroleum Production. Engineering Applications of Artificial Intelligence, 123, 106440. https://doi.org/10.1016/j.engappai.2023.106440.
Kumari, S., & Muthulakshmi, P. (2023). A Wide Scale Survey on Weather Prediction using Machine Learning Techniques. Journal of Information & Knowledge Management, 22(05), 2250093. https://doi.org/10.1142/S0219649222500939.
Li, Q., Zhu, Y., Shangguan, W., Wang, X., Li, L., & Yu, F. (2022). An Attention-Aware LSTM Model for Soil Moisture and Soil Temperature Prediction. Geoderma, 409, 115651. https://doi.org/10.1016/j.geoderma.2021.115651.
Moorthy, R. S., & Parameshwaran, P. (2022). An Optimal K-Nearest Neighbor for Weather Prediction using Whale Optimization Algorithm. International Journal of Applied Metaheuristic Computing (IJAMC), 13(1), 1-19. 10.4018/IJAMC.290538.
Mou, L., Zhao, P., Xie, H., & Chen, Y. (2019). T-LSTM: A Long Short-Term Memory Neural Network Enhanced by Temporal Information for Traffic Flow Prediction. IEEE Access, 7, 98053-98060. 10.1109/ACCESS.2019.2929692.
Nayak, M. A., & Ghosh, S. (2013). Prediction of Extreme Rainfall Event using Weather Pattern Recognition and Support Vector Machine Classifier. Theoretical and Applied Climatology, 114, 583-603. https://doi.org/10.1007/s00704-013-0867-3.
Parlak, B. O., & Yavasoglu, H. A. (2023). Comparison of Regression Algorithms to Predict Average Air Temperature. International Journal of Engineering Research and Development, 15(1), 312-322. https://doi.org/10.29137/umagd.1232020.
Sagheer, A., & Kotb, M. (2019). Time Series Forecasting of Petroleum Production using Deep LSTM Recurrent Networks. Neurocomputing, 323, 203-213. https://doi.org/10.1016/j.neucom.2018.09.082.
Santamouris, M., Cartalis, C., Synnefa, A., & Kolokotsa, D. (2015). On the Impact of Urban Heat Island and Global Warming on the Power Demand and Electricity Consumption of Buildings -A Review. Energy and Buildings, 98, 119-124. https://doi.org/10.1016/j.enbuild.2014.09.052.
Shao, H., & Soong, B. H. (2016, November). Traffic Flow Prediction with Long Short-Term Memory Networks (LSTMs). In 2016 IEEE region 10 conference (TENCON) (pp. 2986-2989). IEEE. 10.1109/TENCON.2016.7848593.
Sharapov, R. V. (2022, May). Using Linear Regression for Weather Prediction. In 2022 Wave Electronics and its Application in Information and Telecommunication Systems (WECONF) (pp. 1-4). IEEE. 10.1109/WECONF55058.2022.9803493.
Shrivastava, V. K., Shrivastava, A., Sharma, N., Mohanty, S. N., & Pattanaik, C. R. (2023a). Deep Learning Model for Temperature Prediction: A Case Study in New Delhi. Journal of Forecasting, 42(6), 1445-1460. https://doi.org/10.1002/for.2966.
Shrivastava, V. K., Shrivastava, A., Sharma, N., Mohanty, S. N., & Pattanaik, C. R. (2023b). Deep Learning Model for Temperature Prediction: An Empirical Study. Modeling Earth Systems and Environment, 9(2), 2067-2080. https://doi.org/10.1007/s40808-022-01609-x.
Sofi, S. S., & Oseledets, I. (2024). A Case Study of Spatiotemporal Forecasting Techniques for Weather Forecasting. GeoInformatica, 1-24. https://doi.org/10.1007/s10707-024-00530-y.
Suleman, M. A. R., & Shridevi, S. (2022). Short-Term Weather Forecasting using Spatial Feature Attention based LSTM Model. IEEE Access, 10, 82456-82468. 10.1109/ACCESS.2022.3196381.
Wang, H., Yang, J., Chen, G., Ren, C., & Zhang, J. (2023). Machine Learning Applications on Air Temperature Prediction in the Urban Canopy Layer: A Critical Review of 2011–2022. Urban Climate, 49, 101499. https://doi.org/10.1016/j.uclim.2023.101499.
Xiao, Y., & Yin, Y. (2019). Hybrid LSTM Neural Network for Short-Term Traffic Flow Prediction. Information, 10(3), 105. https://doi.org/10.3390/info10030105.
Downloads
Published
Data Availability Statement
The atmospheric dataset collected and analyzed during the current study is available from the corresponding author upon reasonable request
Issue
Section
License
Copyright (c) 2026 Inal Begum Turna Demirel, Gizem Temelcan Ergenecoşar

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors retain copyright of their work and grant the journal the right to publish it under the Creative Commons Attribution 4.0 International License (CC BY 4.0). This allows for maximum dissemination and reuse with appropriate citation.
ORCID 