Abstract
Air temperature prediction is important for supporting weather monitoring and operational activities in port areas. Accurate temperature forecasting can support decision-making related to maritime transportation, logistics, and weather-based risk mitigation. This study compares the performance of Long Short-Term Memory (LSTM) and Convolutional Neural Network–Long Short-Term Memory (CNN–LSTM) models for daily air temperature prediction in the Tanjung Priok Port area. The dataset consists of daily meteorological observations collected from the Tanjung Priok Maritime Meteorological Station, Indonesia, covering the period from 2000 to 2025. Eight input variables were used, including rainfall, sunshine duration, air pressure, average humidity, average wind speed, and three lagged temperature variables. Data preprocessing included data cleaning, 7-day moving average smoothing, MinMaxScaler normalization, and sequence generation using a sliding-window approach. The dataset was divided into training (70%), validation (15%), and testing (15%) sets. Model performance was evaluated using Mean Absolute Error (MAE), Root Mean Square Error (RMSE), Mean Absolute Percentage Error (MAPE), and the coefficient of determination (R²). The results show that the LSTM model achieved the best overall performance, with an MAE of 0.1457 °C, RMSE of 0.1811 °C, MAPE of 0.5030%, and R² of 0.9423. In comparison, the CNN–LSTM model obtained an MAE of 0.2566 °C, RMSE of 0.3316 °C, MAPE of 0.8802%, and R² of 0.8065. These results indicate that the standalone LSTM model performed better than the CNN–LSTM model in predicting daily air temperature for the Tanjung Priok Port dataset.
Article Details
How to Cite
Citation FormatReferences
21 References- Akbar, G., Prajitno, P., Ariffudin, & Ananda, N. (2024). Multivariate imputation chained equation on solar radiation in automatic weather station. Jurnal Penelitian Pendidikan IPA, 10(7), 3633–3639. https://doi.org/10.29303/jppipa.v10i7.7679
- Alzubaidi, L., Zhang, J., Humaidi, A. J., Al-Dujaili, A., Duan, Y., Al-Shamma, O., Santamaría, J., Fadhel, M. A., Al-Amidie, M., & Farhan, L. (2021). Review of deep learning: Concepts, CNN architectures, challenges, applications, future directions. Journal of Big Data, 8(1). https://doi.org/10.1186/s40537-021-00444-8
- Anno, S., Hara, T., Kai, H., Lee, M.-A., Chang, Y., Oyoshi, K., Mizukami, Y., & Tadono, T. (2019). Spatiotemporal dengue fever hotspots associated with climatic factors in Taiwan including outbreak predictions based on machine-learning. Geospatial Health, 14(2). https://doi.org/10.4081/gh.2019.771
- Divyashree, M. S., Sparshakala, V. S., Sali, S., & Bhavya, B. V. (2025). Deep learning: Hybrid CNN–LSTM for multivariate weather prediction. International Advanced Research Journal in Science, Engineering and Technology, 12(10), 150–157. https://doi.org/10.17148/IARJSET.2025.121022
- Fang, Z., Crimier, N., Scanu, L., Midelet, A., Alyafi, A., & Delinchant, B. (2021). Multi-zone indoor temperature prediction with LSTM-based sequence-to-sequence model. Energy and Buildings, 245, 111053. https://doi.org/10.1016/j.enbuild.2021.111053
- Firdaus, M. D., Disastr, M. R. A., Ie, N. F., Wellyantama, P., Wicaksana, H. S., & B., F. M. (2025). Air pressure sensor data imputation models of automatic weather observation system for reliable aviation weather information. In 2025 International Symposium on Intelligent Signal Processing and Communication Systems (ISPACS) (pp. 1–5). IEEE. https://doi.org/10.1109/ISPACS68724.2025.11383440
- Furqon, A., Ananda, N., & Soekirno, S. (2025). Development of vessel automatic weather station using smart weather sensor based on Internet of Things. In 2025 International Conference on Smart-Green Technology in Electrical and Information Systems (ICSGTEIS) (pp. 123–127). IEEE. https://doi.org/10.1109/ICSGTEIS68532.2025.11284441
- Giazzi, M., Peressutti, G., Cerri, L., Fumi, M., Riva, I. F., Chini, A., Ferrari, G., Cioni, G., Franch, G., Tartari, G., Galbiati, F., Condemi, V., & Ceppi, A. (2022). Meteonetwork: An open crowdsourced weather data system. Atmosphere, 13(6), 928. https://doi.org/10.3390/atmos13060928
- Hochreiter, S., & Schmidhuber, J. (1997). Long short-term memory. Neural Computation, 9(8), 1735–1780. https://doi.org/10.1162/neco.1997.9.8.1735
- Hou, J., Wang, Y., Zhou, J., & Tian, Q. (2022). Prediction of hourly air temperature based on CNN–LSTM. Geomatics, Natural Hazards and Risk, 13(1), 1962–1986. https://doi.org/10.1080/19475705.2022.2102942
- Kopp, J., Hering, A., Germann, U., & Martius, O. (2024). Verification of weather-radar-based hail metrics with crowdsourced observations from Switzerland. Atmospheric Measurement Techniques, 17(14), 4529–4552. https://doi.org/10.5194/amt-17-4529-2024
- Lim, B., & Zohren, S. (2021). Time-series forecasting with deep learning: A survey. Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences, 379(2194). https://doi.org/10.1098/rsta.2020.0209
- Malik, H., Feng, J., Shao, P., & Abduljabbar, Z. A. (2024). Improving flood forecasting using time-distributed CNN-LSTM model: A time-distributed spatiotemporal method. Earth Science Informatics, 17(4), 3455–3474. https://doi.org/10.1007/s12145-024-01354-y
- Mateus, B. C., Mendes, M., Farinha, J. T., & Martins, A. (2025). Hybrid deep learning for predictive maintenance: LSTM, GRU, CNN, and dense models applied to transformer failure forecasting. Energies, 18(21), 5634. https://doi.org/10.3390/en18215634
- Rhamadania, K., Makhsun, M., Basir, C., & Ananda, N. (2026). Imputation of missing weather data in automatic weather station using the GRU algorithm. Journal of Applied Informatics and Computing, 10(2), 1165–1171. https://doi.org/10.30871/jaic.v10i2.12301
- Subyantara Wicaksana, H., Ananda, N., Budiawan, I., Santoso, B., Handoko, R., Irwan Maulana, A., & Utoro, A. (2022). Air temperature sensor estimation on automatic weather station using ARIMA and MLP. Ultimatics: Jurnal Teknik Informatika, 14(2), 103.
- Tajfar, E., Bateni, S. M., Lakshmi, V., & Ek, M. (2020). Estimation of surface heat fluxes via variational assimilation of land surface temperature, air temperature and specific humidity into a coupled land surface-atmospheric boundary layer model. Journal of Hydrology, 583, 124577. https://doi.org/10.1016/j.jhydrol.2020.124577
- Tran, T. T. K., Bateni, S. M., Ki, S. J., & Vosoughifar, H. (2021). A review of neural networks for air temperature forecasting. Water, 13(9), 1294. https://doi.org/10.3390/w13091294
- Utku, A., & Kaya, S. K. (2025). LSTM-based deep learning model for air temperature prediction. IDUNAS Natural & Applied Sciences, 26(32), 26–32. https://doi.org/10.38061/idunas.1596669
- Xie, N., & Zhang, W. (2024). Empowering big data analytics through machine learning: Applications, challenges, and future directions. Applied and Computational Engineering, 93(1), 76–82. https://doi.org/10.54254/2755-2721/93/20240917
- Yin, J., Deng, Z., Ines, A. V. M., Wu, J., & Rasu, E. (2020). Forecast of short-term daily reference evapotranspiration under limited meteorological variables using a hybrid bi-directional long short-term memory model (Bi-LSTM). Agricultural Water Management, 242, 106386. https://doi.org/10.1016/j.agwat.2020.106386
License
Copyright (c) 2026 Erian Tasa, Tukiyat Tukiyat, Yan Mitha Djaksana

This work is licensed under a Creative Commons Attribution 4.0 International License.
This is an open-access journal distributed under the Creative Commons Attribution 4.0 International License (CC BY 4.0), which permits unrestricted use, distribution, reproduction, and adaptation in any medium (even commercially), provided appropriate credit is given to the original author(s), a link to the license is provided, and any changes made are indicated. Authors retain copyright without restrictions and grant the journal the right of first publication as well as non-exclusive publishing rights for archiving, indexing, and scholarly dissemination.
Downloads
OJS UsageStats PluginSimilar Articles
- Implementation of the Hybrid ARIMA-LSTM Model for Gold Price Prediction Based on Yahoo Finance Data Talitha Hananta Nurendasari, Gentur Wahyu Nyipto Wibowo, Harminto Mulyo · International Journal Software Engineering and Computer Science (IJSECS) · Vol. 5 No. 3 (2025): DECEMBER 2025
- Predicting Peak Ground Acceleration Using RNN and LSTM Model on MCGuire’s Empirical Calculation Irna Purwanti, Taswanda Taryo, Ferhat Aziz · International Journal Software Engineering and Computer Science (IJSECS) · Vol. 6 No. 2 (2026): AUGUST 2026
- A Comparative Performance Analysis of Naïve Bayes, LSTM, and BiLSTM with Data Balancing Techniques for Sentiment Analysis of EasyCash Application Reviews Fitri Abelia, Fitriyani Fitriyani · International Journal Software Engineering and Computer Science (IJSECS) · Vol. 6 No. 1 (2026): APRIL 2026
- Analysis of Multilayer Perceptron, Long Short-Term Memory, and Temporal Convolutional Network Modeling Algorithms for Rainfall Prediction at Soekarno–Hatta Airport Eko Widyantoro, Eko Widyantoro HS, Sajarwo Anggai, Sudarno Wiharjo · International Journal Software Engineering and Computer Science (IJSECS) · Vol. 6 No. 2 (2026): AUGUST 2026
- Development of a Financial Prediction System Based on Machine Learning: A Case Study on Financial Data Management Using Time Series Analysis Davy Jonathan, Memed Saputra · International Journal Software Engineering and Computer Science (IJSECS) · Vol. 5 No. 3 (2025): DECEMBER 2025
You may also start an advanced similarity search for this article.
Most read articles by the same author(s)
- Analysis of Early Detection of Automatic Weather Station Sensor Failures: A Comparative Study of Supervised Deep Neural Networks and Unsupervised Autoencoders Hasbullah Zuhri Hasibuan, Sudarno Wiharjo, Yan Mitha Djaksana · Vol. 6 No. 2 (2026): AUGUST 2026
- Nationwide PM2.5 Concentration Prediction in Indonesia Using GRU, GRU-Attention, and BiGRU-Attention Models with Sentinel-5P and ERA5-Land Data Lina Adrianti, Tukiyat Tukiyat, Makhsun Makhsun, Tri Ubaya · Vol. 6 No. 2 (2026): AUGUST 2026
Recommended Articles
Journal Transparency
Additional InformationLearn more about how this journal ensures quality, ethics, and transparency.