Predictive AC Control Using Deep Learning: Improving Comfort and Energy Saving

Ahmad Mohd Ameeruddin - Multimedia University, Cyberjaya, 63100, Malaysia
Wooi-Nee Tan - Multimedia University, Cyberjaya, 63100, Malaysia
Ming-Tao Gan - Multimedia University, Cyberjaya, 63100, Malaysia
Sook-Chin Yip - Multimedia University, Cyberjaya, 63100, Malaysia

Citation Format:



The growing global population and the availability of energy-hungry smart devices are critical factors in today's alarmingly high electricity usage. The majority of energy used in urban areas is consumed by buildings, with heating, ventilation, and air conditioning (AC) systems accounting for a significant amount of energy use. This project proposes an AC controlling algorithm that uses the Internet of Things sensors and a deep learning framework in temperature prediction to control a single AC unit. The algorithm consists of a Long Short-Term Memory (LSTM) model to predict the indoor temperature for the next J minutes. The highlight of this model is its capacity to predict the future temperature based on the predetermined AC status, whether it is switched on or off. The AC unit will be turned off if the J-minute predicted temperature is within the desired thermal comfort range, and it will be turned back on if the sensor readings exceed the upper pre-set threshold. The experiment is performed on the dataset collected by Chulalongkorn University Building Energy Management System (CU-BEMS). The LSTM prediction model developed using CU-BEMS data yields an average Root Mean Squared Error and Mean Absolute Error of 0.08 and 0.03, respectively. A half-day simulation is also performed in controlling the AC unit from 7:39 a.m. to 11:35 a.m. The proposed algorithm shows that 49.00% of the time, the AC unit can be turned off while the thermal range is maintained between 27ºC to 27.9ºC, providing a strategy for managing the AC unit and achieving energy savings.


Energy management; air-conditioner; deep learning; temperature prediction; thermal comfort

Full Text:



F. Zamora-Martínez, P. Romeu, P. Botella-Rocamora, and J. Pardo, “Towards energy efficiency: Forecasting indoor temperature via multivariate analysis,†Energies (Basel), vol. 6, no. 9, 2013, doi: 10.3390/en6094639.

M. N. M. Nawi, F. Baharum, M. F. Rajemi, J. A. Ibrahim, and M. Z. Tahir, “Energy management: A case study on the malaysian government office building,†International Journal of Applied Engineering Research, vol. 9, no. 23, 2014.

S. Mokhtar, A. Abdullah, and Z. Mali, “Energy Malaysia Volume 23,†2022. Accessed: Oct. 20, 2023. [Online]. Available:

A. M. Omer, “Energy, environment and sustainable development,†Renewable and Sustainable Energy Reviews, vol. 12, no. 9. 2008. doi: 10.1016/j.rser.2007.05.001.

L. Pérez-Lombard, J. Ortiz, and C. Pout, “A review on buildings energy consumption information,†Energy Build, vol. 40, no. 3, 2008, doi: 10.1016/j.enbuild.2007.03.007.

A. Costa, M. M. Keane, J. I. Torrens, and E. Corry, “Building operation and energy performance: Monitoring, analysis and optimisation toolkit,†Appl Energy, vol. 101, 2013, doi: 10.1016/j.apenergy.2011.10.037.

F. Del Ama Gonzalo, B. M. Santamaria, and J. A. H. Ramos, “Designing a wireless sensor with ultra-capacitor and PV microcell for smart building energy management,†Int J Embed Syst, vol. 11, no. 1, 2019, doi: 10.1504/IJES.2019.097565.

B. Rajasekhar et al., “A Survey of computational intelligence techniques for air-conditioners energy management,†IEEE Transactions on Emerging Topics in Computational Intelligence, vol. 4, no. 4. 2020. doi: 10.1109/TETCI.2020.2991728.

V. Vakiloroaya, B. Samali, A. Fakhar, and K. Pishghadam, “A review of different strategies for HVAC energy saving,†Energy Convers Manag, vol. 77, 2014, doi: 10.1016/j.enconman.2013.10.023.

S. Wang and Z. Ma, “Supervisory and optimal control of building HVAC systems: A review,†HVAC and R Research, vol. 14, no. 1, 2008, doi: 10.1080/10789669.2008.10390991.

M. Fadzli Haniff, H. Selamat, R. Yusof, S. Buyamin, and F. Sham Ismail, “Review of HVAC scheduling techniques for buildings towards energy-efficient and cost-effective operations,†Renewable and Sustainable Energy Reviews, vol. 27. 2013. doi: 10.1016/j.rser.2013.06.041.

M. Esrafilian-Najafabadi and F. Haghighat, “Occupancy-based HVAC control using deep learning algorithms for estimating online preconditioning time in residential buildings,†Energy Build, vol. 252, 2021, doi: 10.1016/j.enbuild.2021.111377.

R. Godahewa, C. Deng, A. Prouzeau, and C. Bergmeir, “A Generative Deep Learning Framework Across Time Series to Optimize the Energy Consumption of Air Conditioning Systems,†IEEE Access, vol. 10, 2022, doi: 10.1109/ACCESS.2022.3142174.

Z. K. Ding, Q. M. Fu, J. P. Chen, H. J. Wu, Y. Lu, and F. Y. Hu, “Energy-efficient control of thermal comfort in multi-zone residential HVAC via reinforcement learning,†Conn Sci, vol. 34, no. 1, 2022, doi: 10.1080/09540091.2022.2120598.

E. W. Shaw, “Thermal Comfort: analysis and applications in environmental engineering, by P. O. Fanger. 244 pp. DANISH TECHNICAL PRESS. Copenhagen, Denmark, 1970. Danish Kr. 76, 50,†R Soc Health J, vol. 92, no. 3, 1972, doi: 10.1177/146642407209200337.

X. Zhou et al., “Data-driven thermal comfort model via support vector machine algorithms: Insights from ASHRAE RP-884 database,†Energy Build, vol. 211, 2020, doi: 10.1016/j.enbuild.2020.109795.

W. Liu, Z. Lian, and B. Zhao, “A neural network evaluation model for individual thermal comfort,†Energy Build, vol. 39, no. 10, 2007, doi: 10.1016/j.enbuild.2006.12.005.

S. Baldi, C. D. Korkas, M. Lv, and E. B. Kosmatopoulos, “Automating occupant-building interaction via smart zoning of thermostatic loads: A switched self-tuning approach,†Appl Energy, vol. 231, 2018, doi: 10.1016/j.apenergy.2018.09.188.

C. D. Korkas, S. Baldi, and E. B. Kosmatopoulos, “Grid-Connected Microgrids: Demand Management via Distributed Control and Human-in-the-Loop Optimization,†in Advances in Renewable Energies and Power Technologies, vol. 2, 2018. doi: 10.1016/B978-0-12-813185-5.00025-5.

C. D. Korkas, S. Baldi, I. Michailidis, and E. B. Kosmatopoulos, “Intelligent energy and thermal comfort management in grid-connected microgrids with heterogeneous occupancy schedule,†Appl Energy, vol. 149, 2015, doi: 10.1016/j.apenergy.2015.01.145.

X. Wu, J. He, Y. Xu, J. Lu, N. Lu, and X. Wang, “Hierarchical Control of Residential HVAC Units for Primary Frequency Regulation,†IEEE Trans Smart Grid, vol. 9, no. 4, 2018, doi: 10.1109/TSG.2017.2766880.

D. Watari et al., “Thermal Comfort Aware Online Energy Management Framework for a Smart Residential Building,†in Proceedings -Design, Automation and Test in Europe, DATE, 2021. doi: 10.23919/DATE51398.2021.9473922.

T. Zeng and P. Barooah, “An Adaptive Model Predictive Control Scheme for Energy-Efficient Control of Building HVAC Systems,†Journal of Engineering for Sustainable Buildings and Cities, vol. 2, no. 3, 2021, doi: 10.1115/1.4051482.

S. Qiu, Z. Li, Z. Li, J. Li, S. Long, and X. Li, “Model-free control method based on reinforcement learning for building cooling water systems: Validation by measured data-based simulation,†Energy Build, vol. 218, 2020, doi: 10.1016/j.enbuild.2020.110055.

S. Brandi, M. S. Piscitelli, M. Martellacci, and A. Capozzoli, “Deep reinforcement learning to optimise indoor temperature control and heating energy consumption in buildings,†Energy Build, vol. 224, 2020, doi: 10.1016/j.enbuild.2020.110225.

Z. Jiang et al., “Building HVAC control with reinforcement learning for reduction of energy cost and demand charge,†Energy Build, vol. 239, 2021, doi: 10.1016/j.enbuild.2021.110833.

T. Wei, S. Ren, and Q. Zhu, “Deep Reinforcement Learning for Joint Datacenter and HVAC Load Control in Distributed Mixed-Use Buildings,†IEEE Transactions on Sustainable Computing, vol. 6, no. 3, 2021, doi: 10.1109/TSUSC.2019.2910533.

A. Zenger, J. Schmidt, and M. Krödel, “Towards the intelligent home: Using reinforcement-learning for optimal heating control,†in Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 2013. doi: 10.1007/978-3-642-40942-4_30.

K. Kurte, K. Amasyali, J. Munk, and H. Zandi, “Comparative analysis of model-free and model-based HVAC control for residential demand response,†in BuildSys 2021 - Proceedings of the 2021 ACM International Conference on Systems for Energy-Efficient Built Environments, 2021. doi: 10.1145/3486611.3488727.

Q. Fu, X. Chen, S. Ma, N. Fang, B. Xing, and J. Chen, “Optimal control method of HVAC based on multi-agent deep reinforcement learning,†Energy Build, vol. 270, 2022, doi: 10.1016/j.enbuild.2022.112284.

M. Pipattanasomporn et al., “CU-BEMS, smart building electricity consumption and indoor environmental sensor datasets,†Sci Data, vol. 7, no. 1, 2020, doi: 10.1038/s41597-020-00582-3.


  • There are currently no refbacks.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

JOIV : International Journal on Informatics Visualization
ISSN 2549-9610  (print) | 2549-9904 (online)
Organized by Society of Visual Informatocs, and Institute of Visual Informatics - UKM and Soft Computing and Data Mining Centre - UTHM
W :
E :,,

View JOIV Stats

Creative Commons License is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.