Submitted:
15 March 2025
Posted:
17 March 2025
You are already at the latest version
Abstract

Keywords:
1. Introduction
2. Research Gap
- The proposed model optimizes indoor temperatures to enhance occupant well-being while reducing energy use and protecting building loads during peak hours. It uses an adaptive thermal comfort framework that adjusts the indoor environment in real-time based on ambient temperature. This data, combined with energy consumption and timestamps, feeds into a CNN-M-LSTM architecture for smarter climate control.
- The CNN module is tailored to efficiently reduce dimensionality and extract critical spatial features from the input data, isolating patterns related to temperature, energy consumption, and temporal markers. Meanwhile, the M-LSTM network is specifically designed to model long-term temporal dependencies and capture trends across historical sequences. Together, this integrated architecture enables precise forecasting of future HVAC loads and indoor temperatures, leveraging the synergistic extraction of spatial and temporal features for enhanced predictive performance.
- The proposed model uses Bayesian theory to fine-tune hyperparameters based on data characteristics. We tested it on commercial buildings in Jacksonville, Florida; Berkeley, California; and Hawthorn, Victoria. Since hotter regions (Florida, California) have higher energy use, we evaluated how well the model improves efficiency. Hawthorn’s unpredictable climate helped test its adaptability to rapid weather shifts and seasonal changes. These real-world conditions ensure the model works across different climates and building types.
3. Thermal Comfort Adaptive Model
4. Methodology
4.1. Data Collection and Preprocessing
4.2. Bayesian Optimization
4.3. Model Architecture
4.4. Benchmark Model
4.4.1. BO ANN
4.4.2. BO CNN
4.4.3. BO LSTM
4.4.4. BO M-LSTM
4.5. Metrics
5. Results and Discussions
6. Conclusion
- In Dataset S1, the MAPE value of BO CNN-M-LSTM is 0.1163, which higher than that of BO ANN by 10%. The NRMSE of BO CNN-M-LSTM and BO Bi-LSTM is 0.0322 and 0.0388, respectively. The score of BO CNN-M-LSTM is the highest at 0.8676, indicating a strong correlation between the predicted and actual energy consumption.
- In Dataset S2, the NRMSE value of BO CNN-M-LSTM is 0.0385, which is lower than that of BO ANN by 12%. This metric indicated that the proposed model exhibits a slight increase in error variance. The MAPE of BO CNN-M-LSTM and BO CNN-Bi-M-LSTM is 0.1939 and 0.1946, respectively. Furthermore, the score of BO CNN-M-LSTM is the highest at 0.7805. This finding highlights that BO CNN-M-LSTM can produce precise energy consumption predictions, but might exhibit error variance. Hence, to improve the NRMSE metric of the proposed model, the future work can increase the training iterations.
- In Dataset S3, the MAPE value of BO CNN-M-LSTM is 0.049, which is higher than that of BO M-LSTM by 1%. The NRMSE of BO CNN-M-LSTM is 0.0166, and that of BO Bi-LSTM is 0.0170. The score of BO CNN-M-LSTM is the highest at 0.9896. This finding shows a strong correlation between the predicted and actual energy consumption.
- In Dataset S4, the NRMSE value of BO CNN-M-LSTM is 0.0370, which is better than BO M-LSTM by 3%. The MAPE of BO CNN-M-LSTM is 0.0311, and that of BO Bi-LSTM is 0.0313. The score of BO CNN-M-LSTM is the highest at 0.9872. This result indicates a proportional relationship between the predicted and actual energy consumption.
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Abbreviations
| SVM | Supervised Vector Machine |
| ANN | Artificial Neural Network |
| DDPG | Deep Deterministic Policy Gradient |
| CNN | Convolutional Neural Network |
| LSTM | Long Short-Term Memory |
| Bi-LSTM | Bidirectional Long Short-Term Memory |
| AE–DDPG | Autoencoder–Deep Deterministic Policy Gradient |
| ED-LSTM with MP | Encoder–Decoder LSTM with Multi-Layer Perceptron |
| ED-LSTM with SMP | Encoder–Decoder LSTM with Shared Multi-Layer Perceptron |
References
- International Energy Agency. 2023, "Buildings - Energy System," IEA, Jul. 11. [Online]. Available: https://www.iea.org/energy-system/buildings.
- U.S. Energy Information Administration. 2022, "Consumption & Efficiency - U.S. Energy Information Administration (EIA)," www.eia.gov, Dec. [Online]. Available: https://www.eia.gov/consumption/commercial/data/2018/pdf/CBECS%202018%20CE%20Release%202%20Flipbook.pdf.
- T. J. Associates, "How HVAC System Works: Basic Functionality & Types," Tejjy Inc., Dec. 2024. [Online]. Available:https://www.tejjy.com/hvac-system-work/. [Accessed: 09-Dec-2024].
- , "Demand Response in Buildings: A Comprehensive Overview of Current Trends, Approaches, and Strategies," Buildings, vol. 13, no. 10, p. 2663, Oct. [CrossRef]
- Agouzoul, A., and E. Simeu. 2024, "Predictive Control Method for Comfort and Thermal Energy Enhancement in Buildings," presented at the 2024 International Conference on Computer-Aided Design (ICCAD), May. [CrossRef]
- Wang, H., S. Wang, and R. Tang. 2019, "Development of grid-responsive buildings: Opportunities, challenges, capabilities and applications of HVAC systems in non-residential buildings in providing ancillary services by fast demand responses to smart grids," Applied Energy, vol. 250, pp. 697–712. [CrossRef]
- Goodman, D., J. Chen, A. Razban, and J. Li. 2016, "Identification of Key Parameters Affecting Energy Consumption of an Air Handling Unit," in ASME 2016 International Mechanical Engineering Congress and Exposition (IMECE2016), 2016. [CrossRef]
- Kharseh, M., L. Altorkmany, M. Al-Khawaj, and F. Hassani. 2014, "Warming impact on energy use of HVAC system in buildings of different thermal qualities and in different climates," Energy Conversion and Management, vol. 81, pp. 106–111, May. [CrossRef]
- Zheng, P., H. Wu, Y. Liu, Y. Ding, and L. Yang. 2022, "Thermal comfort in temporary buildings: A review," Building and Environment, vol. 221, p. 109262.
- Wang, H., D. Mai, Q. Li, and Z. Ding. 2024, "Evaluating Machine Learning Models for HVAC Demand Response: The Impact of Prediction Accuracy on Model Predictive Control Performance," Buildings, vol. 14, no. 7, p. 2212, Jul. [CrossRef]
- Liu, T., C. Xu, Y. Guo, and H. Chen. 2019, "A novel deep reinforcement learning based methodology for short-term HVAC system energy consumption prediction," International Journal of Refrigeration, vol. 107, pp. 39–51, Nov. [CrossRef]
- Mohan, D. P., and M. Subathra. 2022, "A comprehensive review of various machine learning techniques used in load forecasting," Recent Advances in Electrical & Electronic Engineering, vol. 15, Sep. [CrossRef]
- Liu, J., Z. Zhai, Y. Zhang, Y. Wang, and Y. Ding. 2024, "Comparison of energy consumption prediction models for air conditioning at different time scales for large public buildings," Journal of Building Engineering, vol. 96. [CrossRef]
- Lara-Benítez, P., M. Carranza-García, and J. C. Riquelme. 2021, "An Experimental Review on Deep Learning Architectures for Time Series Forecasting," International Journal of Neural Systems, vol. 31, no. 03, p. 2130001, Feb. [CrossRef]
- Agga, F. A., S. A. Abbou, Y. E. Houm, and M. Labbadi. 2022, "Short-Term Load Forecasting Based on CNN and LSTM Deep Neural Networks," IFAC-PapersOnLine, vol. 55, no. 12, pp. 777–781. [CrossRef]
- Bohara, B., R. Fernandez, V. Gollapudi, and X. Li. 2022, "Short-Term Aggregated Residential Load Forecasting using BiLSTM and CNN-BiLSTM," presented at the 2022 International Conference on Innovation and Intelligence for Informatics, Computing, and Technologies (3ICT), Nov. [CrossRef]
- Li, H., Y. Dai, X. Liu, T. Zhang, J. Zhang, and X. Liu. 2023, "Feature extraction and an interpretable hierarchical model for annual hourly electricity consumption profile of commercial buildings in China," Energy Conversion and Management, vol. 291, p. 117244, Sep. [CrossRef]
- Reveshti, A. M., E. Khosravirad, A. K. Rouzbahani, S. K. Fariman, H. Najafi, and A. Peivandizadeh. 2024, "Energy consumption prediction in an office building by examining occupancy rates and weather parameters using the moving average method and artificial neural network," Heliyon, vol. 10, no. 4, p. e25307, Feb. [CrossRef]
- Afroz, Z., M. Goldsworthy, and S. D. White. 2023, "Energy flexibility of commercial buildings for demand response applications in Australia," Energy and Buildings, vol. 300, p. 113533, Sep. [CrossRef]
- Mayer, P., W. Meyer, and R. Nussbaum. 2009, "Performance of Demand Side Management for Building HVAC Systems," in 2009 IEEE Power and Energy Society General Meeting, 2009, pp. 1–6.
- Guo, J., W. Liu, W. Yang, and Y. Liu. 2020, "A Novel Deep Learning Framework for HVAC Energy Consumption Prediction," Sustainability, vol. 12, no. 12, p. 5060, Jun. [CrossRef]
- Q. Zhao, Z. Lian, and D. Lai, "Thermal comfort models and their developments: A review," Energy and Built Environment, vol. 2, no. 1, pp. 21–33, 2021. [CrossRef]
- E. de Vet and L. Head, “Everyday weather-ways: Negotiating the temporalities of home and work in Melbourne, Australia,” Geoforum, vol. 108, pp. 267–274, 2020. [CrossRef]
- de Dear, R., and B. G. S. 2017, "Developing an adaptive model of thermal comfort and preference," Escholarship. [Online]. Available: https://escholarship.org/uc/item/4qq2p9c6.
- L. Yang, H. Yan, and J. C. Lam, “Thermal comfort and building energy consumption implications – A review,” Applied Energy, vol. 115, pp. 164–173, 2014. [CrossRef]
- R. Yao et al., “Evolution and performance analysis of adaptive thermal comfort models – A comprehensive literature review,” Building and Environment, vol. 217, p. 109020, 2022. [CrossRef]
- Q. Zhao, Z. Lian, and D. Lai, “Thermal comfort models and their developments: A review,” Energy and Built Environment, vol. 2, no. 1, pp. 21–33, 2021. [CrossRef]
- H. Alibrahim and S. A. Ludwig, “Hyperparameter Optimization: Comparing Genetic Algorithm against Grid Search and Bayesian Optimization,” in 2021 IEEE Congress on Evolutionary Computation (CEC), Kraków, Poland, 2021, pp. 1551–1559. [CrossRef]
- J. Wu et al., “Hyperparameter Optimization for Machine Learning Models Based on Bayesian Optimization,” Journal of Electronic Science and Technology, vol. 17, no. 1, pp. 26–40, 2019. [CrossRef]
- H. Cho et al., “Basic Enhancement Strategies When Using Bayesian Optimization for Hyperparameter Tuning of Deep Neural Networks,” IEEE Access, vol. 8, pp. 52588–52608, 2020. [CrossRef]
- A. Klein et al., “Fast Bayesian Optimization of Machine Learning Hyperparameters on Large Datasets,” in Proceedings of the 20th International Conference on Artificial Intelligence and Statistics, 2017, pp. 528–536. Available: https://proceedings.mlr.press/v54/klein17a.html.
- M. Zulfiqar et al., “Hyperparameter Optimization of Bayesian Neural Network Using Bayesian Optimization and Intelligent Feature Engineering for Load Forecasting,” Sensors, vol. 22, no. 4446, 2022. [CrossRef]
- N. Aloysius and M. Geetha, “A review on deep convolutional neural networks,” in 2017 International Conference on Communication and Signal Processing (ICCSP), Chennai, India, 2017, pp. 588–592. [CrossRef]
- W. Hao et al., “The Role of Activation Function in CNN,” in 2020 2nd International Conference on Information Technology and Computer Application (ITCA), Guangzhou, China, 2020, pp. 429–432. [CrossRef]
- A. Tomar and H. Patidar, "Analysis of Activation Function in the Convolution Neural Network Model (Best Activation Function Sigmoid or Tanh)," COMPUTER, vol. 20, no. 2, 2020.
- S. Mastromichalakis, "ALReLU: A Different Approach on Leaky ReLU Activation Function to Improve Neural Networks Performance," arXiv preprint arXiv:2012.07564, 2020.
- M. Alhussein, K. Aurangzeb, and S. I. Haider, "Hybrid CNN-LSTM Model for Short-Term Individual Household Load Forecasting," IEEE Access, vol. 8, pp. 180544-180557, 2020. [CrossRef]
- X. Guo et al., "A Short-Term Load Forecasting Model of Multi-Scale CNN-LSTM Hybrid Neural Network Considering the Real-Time Electricity Price," Energy Reports, vol. 6, Suppl. 9, pp. 1046-1053, 2020. [CrossRef]
- T. N. Dinh, G. S. Thirunavukkarasu, M. Seyedmahmoudian, S. Mekhilef, and A. Stojcevski, "Robust-mv-M-LSTM-CI: Robust Energy Consumption Forecasting in Commercial Buildings during the COVID-19 Pandemic," Sustainability, vol. 16, no. 6699, 2024. [CrossRef]
- S. Nosouhian, F. Nosouhian, and A. Kazemi Khoshouei, "A Review of Recurrent Neural Network Architecture for Sequence Learning: Comparison between LSTM and GRU," Preprints, 2021. [CrossRef]
- A. Sherstinsky, "Fundamentals of Recurrent Neural Network (RNN) and Long Short-Term Memory (LSTM) Network," Physica D: Nonlinear Phenomena, vol. 404, p. 132306, 2020. [CrossRef]
- C. Nichiforov, G. Stamatescu, I. Stamatescu, and I. Făgărăşan, "Evaluation of Sequence-Learning Models for Large-Commercial-Building Load Forecasting," Information, vol. 10, no. 189, 2019. [CrossRef]
- Z. Jing et al., "Commercial Building Load Forecasts with Artificial Neural Network," in 2019 IEEE Power & Energy Society Innovative Smart Grid Technologies Conference (ISGT), Washington, DC, USA, 2019, pp. 1-5. [CrossRef]
- A. Vaisnav, S. Ashok, S. Vinaykumar, and R. Thilagavathy, "FPGA Implementation and Comparison of Sigmoid and Hyperbolic Tangent Activation Functions in an Artificial Neural Network," in 2022 International Conference on Electrical, Computer and Energy Technologies (ICECET), Prague, Czech Republic, 2022, pp. 1-4. [CrossRef]
- C. Bircanoğlu and N. Arıca, "A Comparison of Activation Functions in Artificial Neural Networks," in 2018 26th Signal Processing and Communications Applications Conference (SIU), Izmir, Turkey, 2018, pp. 1-4. [CrossRef]
- C. Cai, Y. Tao, T. Zhu, and Z. Deng, "Short-Term Load Forecasting Based on Deep Learning Bidirectional.
- P. Piotrowski, I. Rutyna, D. Baczyński, and M. Kopyt, "Evaluation Metrics for Wind Power Forecasts: A Comprehensive Review and Statistical Analysis of Errors," Energies, vol. 15, no. 9657, 2022. [CrossRef]


















| ID | Forecasting Model | Year | Forecasting Horizon | RMSE | MAE | Score |
| 1 | SVM [10] | 2024 | 10 min ahead | 35,189 W | 25,653 W | 0.930 |
| 2 | ANN [10] | 2024 | 10 min ahead | 24,704 W | 18,081 W | 0.966 |
| 3 | XGBoost [10] | 2024 | 10 min ahead | 16,149 W | 11,354 W | 0.978 |
| 4 | LightGBM [10] | 2024 | 10 min ahead | 24,218 W | 15,827 W | 0.967 |
| 5 | DDPG [11] | 2019 | 5 min ahead | 19.092% | 3.858% | 0.992 |
| 6 | AE–DDPG [11] | 2019 | 5 min ahead | 15.321% | 3.470% | 0.992 |
| 7 | ED-LSTM with MP [12] | 2017 | 83 days ahead | 15.400% | ||
| 8 | ED-LSTM with SMP [12] | 2017 | 83 days ahead | 11.200% |
| Dataset | Model | Metrics | Values | ||
| MPAE | NRMSE | score | |||
| Dataset S1 | BO CNN-M-LSTM | 0.1163 | 0.0322 | 0.8676 | |
| BO CNN | 0.1259 | 0.0398 | 0.8551 | ||
| BO ANN | 0.1177 | 0.0365 | 0.8625 | ||
| BO M-LSTM | 0.1248 | 0.0408 | 0.8478 | ||
| BO LSTM | 0.1324 | 0.0429 | 0.8315 | ||
| BO CNN-Bi-M-LSTM | 0.1244 | 0.0404 | 0.8505 | ||
| BO Bi-LSTM | 0.1176 | 0.0388 | 0.8625 | ||
| Dataset S2 | BO CNN-M-LSTM | 0.1939 | 0.0385 | 0.7805 | |
| BO CNN | 0.2744 | 0.0427 | 0.7297 | ||
| BO ANN | 0.1964 | 0.0339 | 0.7788 | ||
| BO M-LSTM | 0.2052 | 0.0420 | 0.7376 | ||
| BO LSTM | 0.2256 | 0.0419 | 0.7388 | ||
| BO CNN-Bi-M-LSTM | 0.1946 | 0.0394 | 0.7692 | ||
| BO Bi-LSTM | 0.1964 | 0.0386 | 0.7788 | ||
| Dataset S3 | BO CNN-M-LSTM | 0.0499 | 0.0166 | 0.9896 | |
| BO CNN | 0.1002 | 0.0449 | 0.9221 | ||
| BO ANN | 0.0510 | 0.0232 | 0.9880 | ||
| BO M-LSTM | 0.0500 | 0.0189 | 0.9861 | ||
| BO LSTM | 0.0570 | 0.0245 | 0.9768 | ||
| BO CNN-Bi-M-LSTM | 0.0579 | 0.0224 | 0.9806 | ||
| BO Bi-LSTM | 0.0511 | 0.0170 | 0.9880 | ||
| Dataset S4 | BO CNN-M-LSTM | 0.0311 | 0.0370 | 0.9872 | |
| BO CNN | 0.0673 | 0.0536 | 0.9590 | ||
| BO ANN | 0.0313 | 0.0399 | 0.9739 | ||
| BO M-LSTM | 0.0371 | 0.0471 | 0.9684 | ||
| BO LSTM | 0.0390 | 0.0494 | 0.9652 | ||
| BO CNN-Bi-M-LSTM | 0.0399 | 0.0380 | 0.9794 | ||
| BO Bi-LSTM | 0.0313 | 0.0428 | 0.9739 | ||
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).