Modeling and Simulation of Indoor Temperature Dynamics Using Random Forest and Multi-Layer Perceptron Methods

Authors

  • T. Tanzil Azhari Risky Universitas Islam Negeri Sumatera Utara Author
  • Nayla Faiza Universitas Islam Negeri Sumatera Utara Author
  • Mhd Fikry Hasrul Hasibuan Universitas Islam Negeri Sumatera Utara Author
  • Mhd Syahru Ramadhan Nasution Universitas Muhammadiyah Sumatera Utara Author

DOI:

https://doi.org/10.65230/jitcos.v1i2.39

Keywords:

Indoor Temperature Prediction, Random Forest, Multi-Layer Perceptron, HVAC Energy Efficiency, IoT Sensor Data

Abstract

Modeling and simulating indoor temperature changes is crucial for improving the energy efficiency of HVAC systems in smart buildings. This study created and compared two models, Random Forest and Multi-Layer Perceptron (MLP), to study indoor temperature changes and make 24-hour temperature predictions. The dataset used contained 97,606 readings from IoT sensors on Kaggle, which were then processed into 38,334 observations with a 5-minute interval. The feature engineering process included creating lag features, moving statistics, and temperature differences in order to capture the time patterns and thermal properties of the building. The Random Forest model showed better results with MAE of 0.146°C, RMSE of 0.285°C, and R² of 0.986, far better than the MLP which had MAE of 0.470°C, RMSE of 0.731°C, and R² of 0.907. A 24-hour simulation proved the Random Forest's ability to make step-by-step predictions, achieving an MAE of 0.057°C and an R² of 0.993 without any cumulative errors. Random Forest was able to capture dynamic temperature changes (29.5-35°C), while MLP provided more stable results (32.5-35°C). The results of the study show that Random Forest is more efficient in modeling temperature changes, with the potential for HVAC energy savings of 15-25% through more precise settings based on predictions.

References

Agga, A., Abbou, A., Labbadi, M., & El Houm, Y. (2021). Short-term self consumption PV plant power production forecasts based on hybrid CNN-LSTM, ConvLSTM models. Renewable Energy, 177, 101–112. https://doi.org/10.1016/j.renene.2021.05.095

Aggarwal, C., Ge, H., Defo, M., & Lacasse, M. A. (2022). Hygrothermal performance assessment of wood frame walls under historical and future climates using partial least squares regression. Building and Environment, 223, 109501. https://doi.org/10.1016/j.buildenv.2022.109501

Cerqueira, V., Torgo, L., & Mozetič, I. (2020). Evaluating time series forecasting models: an empirical study on performance estimation methods. Machine Learning, 109(11), 1997–2028. https://doi.org/10.1007/s10994-020-05910-7

Fang, X., Gong, G., Li, G., Chun, L., Peng, P., & Li, W. (2021). A general multi-source ensemble transfer learning framework integrate of LSTM-DANN and similarity metric for building energy prediction. Energy and Buildings, 252, 111435. https://doi.org/10.1016/j.enbuild.2021.111435

Fathi, S., Srinivasan, R., Fenner, A., & Fathi, S. (2020). Machine learning applications in urban building energy performance forecasting: A systematic review. Renewable and Sustainable Energy Reviews, 133, 110287. https://doi.org/10.1016/j.rser.2020.110287

Halhoul Merabet, G., Essaaidi, M., Ben Haddou, M., Qolomany, B., Qadir, J., Anan, M., … Benhaddou, D. (2021). Intelligent building control systems for thermal comfort and energy-efficiency: A systematic review of artificial intelligence-assisted techniques. Renewable and Sustainable Energy Reviews, 144, 110969. https://doi.org/10.1016/j.rser.2021.110969

Kathirgamanathan, A., De Rosa, M., Mangina, E., & Finn, D. P. (2021). Data-driven predictive control for unlocking building energy flexibility: A review. Renewable and Sustainable Energy Reviews, 135, 110120. https://doi.org/10.1016/j.rser.2020.110120

Li, X., & Chen, Q. (2021). Development of a novel method to detect clothing level and facial skin temperature for controlling HVAC systems. Energy and Buildings, 239, 110859. https://doi.org/10.1016/j.enbuild.2021.110859

Lu, H., Cheng, F., Ma, X., & Hu, G. (2020). Short-term prediction of building energy consumption employing an improved extreme gradient boosting model: A case study of an intake tower. Energy, 203, 117756. https://doi.org/10.1016/j.energy.2020.117756

Moon, J., Jung, S., Rew, J., Rho, S., & Hwang, E. (2020). Combination of short-term load forecasting models based on a stacking ensemble approach. Energy and Buildings, 216, 109921. https://doi.org/10.1016/j.enbuild.2020.109921

Olu-Ajayi, R., Alaka, H., Sulaimon, I., Sunmola, F., & Ajayi, S. (2022). Building energy consumption prediction for residential buildings using deep learning and other machine learning techniques. Journal of Building Engineering, 45, 103406. https://doi.org/10.1016/j.jobe.2021.103406

Plananska, J., & Gamma, K. (2022). Product bundling for accelerating electric vehicle adoption: A mixed-method empirical analysis of Swiss customers. Renewable and Sustainable Energy Reviews, 154, 111760. https://doi.org/10.1016/j.rser.2021.111760

Sun, Y., Haghighat, F., & Fung, B. C. M. (2020). A review of the-state-of-the-art in data-driven approaches for building energy prediction. Energy and Buildings, 221, 110022. https://doi.org/10.1016/j.enbuild.2020.110022

Wang, Z., Hong, T., & Piette, M. A. (2020). Building thermal load prediction through shallow machine learning and deep learning. Applied Energy, 263, 114683. https://doi.org/10.1016/j.apenergy.2020.114683

Zhang, L., Wen, J., Li, Y., Chen, J., Ye, Y., Fu, Y., & Livingood, W. (2021). A review of machine learning in building load prediction. Applied Energy, 285, 116452. https://doi.org/10.1016/j.apenergy.2021.116452

Downloads

Published

31-12-2025

How to Cite

Risky, T. T. A., Faiza, N., Hasibuan, M. F. H., & Nasution, M. S. R. (2025). Modeling and Simulation of Indoor Temperature Dynamics Using Random Forest and Multi-Layer Perceptron Methods. JITCoS : Journal of Information Technology and Computer System, 1(2), 64-73. https://doi.org/10.65230/jitcos.v1i2.39

Similar Articles

You may also start an advanced similarity search for this article.