Abstract
Temperature and humidity prediction are important aspects of indoor environmental condition monitoring. This study evaluates and compares three models: Long Short-Term Memory (LSTM), Gated Recurrent Unit (GRU), and Temporal Convolutional Network (TCN). The dataset consists of temperature and humidity measurements collected from four rooms, totaling eight observed variables. Dataset construction was performed using a sliding window approach with a lookback configuration of 6 steps and two forecasting horizons (2-step and 4-step), with a data sampling interval of 30 minutes. The experimental results indicate that model performance varies by variable type and forecasting horizon. For temperature prediction, the TCN model achieves the best performance at the 2-step forecasting horizon, with MAE of 0.281, RMSE of 0.344, and R² of 0.97. At the 4-step forecasting horizon, the GRU model outperforms the other models, achieving MAE of 0.403, RMSE of 0.519, and R² of 0.933. For humidity prediction, the GRU model demonstrates the best performance at both forecasting horizons, with MAE of 1.786 and R² of 0.897 at the 2-step forecasting horizon, and MAE of 2.014 and R² of 0.867 at the 4-step forecasting horizon. Furthermore, longer forecasting horizons lead to higher prediction errors. These findings indicate that the GRU model performs most consistently across the experiments, particularly for humidity prediction. In contrast, the TCN model shows promising potential for short-term temperature forecasting. This study highlights the potential of deep learning models to support multivariate data-driven indoor environmental monitoring and forecasting systems.
Keywords
Article Details
How to Cite
Citation FormatReferences
20 References- Attoue, N., Shahrour, I., & Younes, R. (2018). Smart building: Use of the artificial neural network approach for indoor temperature forecasting. Energies, 11(2), Article 395. https://doi.org/10.3390/en11020395
- Chhetri, M., Kumar, S., Roy, P. P., & Kim, B. G. (2020). Deep BLSTM-GRU model for monthly rainfall prediction: A case study of Simtokha, Bhutan. Remote Sensing, 12(19), Article 3174. https://doi.org/10.3390/rs12193174
- 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, Article 111053. https://doi.org/10.1016/j.enbuild.2021.111053
- Fredyan, R., & Kusuma, G. P. (2022). Spatiotemporal convolutional LSTM with attention mechanism for monthly rainfall prediction. Communications in Mathematical Biology and Neuroscience, 2022(1), 1–25. https://doi.org/10.28919/cmbn/7761
- Hampo, C. C., Schinasi, L. H., & Hoque, S. (2026). Indoor temperature and humidity prediction in residential buildings: A review of the white box and black box modeling techniques. Building and Environment, 290, Article 114125. https://doi.org/10.1016/j.buildenv.2025.114125
- Khan, M. I., & Maity, R. (2020). Hybrid deep learning approach for multi-step-ahead daily rainfall prediction using GCM simulations. IEEE Access, 8, 52774–52784. https://doi.org/10.1109/ACCESS.2020.2980977
- Li, B., Wang, Z., Guo, Y., Zhou, X., Qiao, B., & Han, L. (2026). LSTM-GRU hybrid model for multi-layer microclimate prediction in solar greenhouse. Scientific Reports, 16(1), Article 18625. https://doi.org/10.1038/s41598-026-49691-w
- Liu, S., Xu, T., Du, X., Zhang, Y., & Wu, J. (2024). A hybrid deep learning model based on parallel architecture TCN-LSTM with Savitzky-Golay filter for wind power prediction. Energy Conversion and Management, 302, Article 118122. https://doi.org/10.1016/j.enconman.2024.118122
- Lv, R., Yuan, Z., Lei, B., Zheng, J., & Luo, X. (2022). Building thermal load prediction using deep learning method considering time-shifting correlation in feature variables. Journal of Building Engineering, 61, Article 105316. https://doi.org/10.1016/j.jobe.2022.105316
- Mba, L., Meukam, P., & Kemajou, A. (2016). Application of artificial neural network for predicting hourly indoor air temperature and relative humidity in modern building in humid region. Energy and Buildings, 121, 32–42. https://doi.org/10.1016/j.enbuild.2016.03.046
- Muslimsyah, M., Safwan, S., & Novandri, A. (2025). Comprehensive assessment of indoor thermal in vernacular building using machine learning model with GAN-based data imputation: A case of Aceh region, Indonesia. Buildings, 15(14), Article 2448. https://doi.org/10.3390/buildings15142448
- Muslimsyah, Munir, A., Away, Y., Abdullah, Arif, T. Y., & Novandri, A. (2024). A model of indoor thermal condition based on traditional Acehnese houses using artificial neural network. Heliyon, 10(23), Article e40644. https://doi.org/10.1016/j.heliyon.2024.e40644
- Mustafaraj, G., Lowry, G., & Chen, J. (2011). Prediction of room temperature and relative humidity by autoregressive linear and nonlinear neural network models for an open office. Energy and Buildings, 43(6), 1452–1460. https://doi.org/10.1016/j.enbuild.2011.02.007
- Nuo, M., Zou, D., Liang, X., & Gao, D. (2025). Research on short-term energy consumption forecasting for cold regions based on the TCN–Transformer model. Sustainability, 17(22), Article 10230. https://doi.org/10.3390/su172210230
- Özbalta, T. G., Sezer, A., & Yildiz, Y. (2012). Models for prediction of daily mean indoor temperature and relative humidity: Education building in Izmir, Turkey. Indoor and Built Environment, 21(6), 772–781. https://doi.org/10.1177/1420326X11422163
- Siregar, S. P., & Wanto, A. (2017). Analysis of artificial neural network accuracy using backpropagation algorithm in predicting process (forecasting). International Journal of Information System & Technology, 1(1), 34–42. https://doi.org/10.30645/ijistech.v1i1.4
- Wei, Z., Deng, Z., Dai, R., Zhang, H., & You, H. (2026). Operational functional-zone proxies as learnable context for TCN-based indoor temperature forecasting. Buildings, 16(15), Article 2966. https://doi.org/10.3390/buildings16152966
- Yousaf, J., Harseno, R. W., & Yee, J.-J. (2026). Lightweight IoT-edge framework with attention-enhanced GRU for closed-loop real-time indoor environmental monitoring and prediction. Measurement: Sensors, 44, Article 101994. https://doi.org/10.1016/j.measen.2026.101994
- Zheng, P., Zhang, W., Gao, B., Ma, Y., & Chen, C. (2025). Multi-step apparent temperature prediction in broiler houses using a hybrid SE-TCN–Transformer model with Kalman filtering. Sensors, 25(19), Article 6124. https://doi.org/10.3390/s25196124
- Zhou, C., Xu, Z., Wu, J., Liu, K., & Guan, X. (2021). Multi-zone indoor temperature prediction based on graph attention network and gated recurrent unit. In 2021 IEEE 17th International Conference on Automation Science and Engineering (CASE) (pp. 1973–1978). IEEE. https://doi.org/10.1109/CASE49439.2021.9551630
License
Copyright (c) 2026 Muslimsyah Muslimsyah, Nizarli Nizarli, Sofyan Sofyan, Andri Novandri

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 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 PluginRecommended Articles
Journal Transparency
Additional InformationLearn more about how this journal ensures quality, ethics, and transparency.