Multi-Objective Safe Energy Management in Smart Buildings Using LSTM-Based Load Forecasting and Soft Actor-Critic Reinforcement Learning

Authors

Keywords:

Home Energy Management System (HEMS), Deep Reinforcement Learning, Soft Actor–Critic (SAC), Long Short, Term Memory (LSTM), Safety Layer, Load Forecasting, Smart Buildings, Energy Optimization

Abstract

This study aimed to develop and evaluate an integrated LSTM–SAC–Safety Layer framework for predictive, multi-objective, and constraint-aware energy management in smart buildings, with simultaneous consideration of energy cost, peak demand, renewable-energy utilization, thermal comfort, and operational safety. A quantitative computational and experimental design was employed using real-world residential energy-consumption data from the Pecan Street Dataport, comprising 1,185 household identifiers and measurements recorded at 15-minute intervals throughout 2023. A stacked Long Short-Term Memory (LSTM) network was developed for short-term load forecasting, and its predictions were incorporated into the state space of a continuous-action Soft Actor–Critic (SAC) reinforcement-learning agent. A Safety Layer projected generated actions onto the feasible operating region before execution. Performance was evaluated over an independent 55-day test period under four scenarios: conventional rule-based control, standard SAC, LSTM–SAC without the Safety Layer, and the complete LSTM–SAC–Safety framework. Daily energy costs were additionally subjected to paired-samples t tests and Wilcoxon signed-rank tests. Inferential analysis demonstrated that the proposed LSTM–SAC–Safety framework produced statistically significant improvements in daily energy-cost performance compared with the competing reinforcement-learning configurations. The comparison between the proposed framework and LSTM–SAC yielded t = 4.82, p < .001, while the proposed framework also differed significantly from standard SAC (p < .001). The Wilcoxon signed-rank analysis corroborated the parametric findings, indicating that the observed superiority was not attributable to random variation across the 55 test days and remained statistically significant at the 99% confidence level. Integrating short-term LSTM forecasting with continuous SAC decision-making and an explicit Safety Layer provides a statistically supported and operationally reliable approach to smart-building energy management, enabling predictive control while maintaining physical feasibility and balancing economic, environmental, and occupant-comfort objectives.

Downloads

Download data is not yet available.

References

Ali, S. M. (2025). Deep learning-enabled digital twins for prosumers: A holistic energy management framework for smart grids using deep reinforcement learning and big data analytics. International Journal of Energy Research, 2025, 6618907. https://doi.org/10.1155/er/6618907

Du, X., Luo, F., Hu, J., Zhou, W., & Wen, J. (2026). Adaptive home energy management to self-motivated user preferences via iterative LLM-augmented reinforcement learning. Applied Energy, 415, 127976. https://doi.org/10.1016/j.apenergy.2026.127976

Gao, J., Wang, W., Nikseresht, F., Govinda Rajan, V., & Campbell, B. (2023). PFDRL: Personalized federated deep reinforcement learning for residential energy management Proceedings of the 52nd International Conference on Parallel Processing (ICPP 2023), https://doi.org/10.1145/3605573.3605641 https://doi.org/10.1145/3605573.3605641

Gokhale, G., Claessens, B., & Develder, C. (2024). Explainable reinforcement learning-based home energy management systems using differentiable decision trees Proceedings of the 15th ACM International Conference on Future and Sustainable Energy Systems (e-Energy 2024), https://doi.org/10.1145/3632775.3663310 https://doi.org/10.1145/3632775.3663310

İzmitligil, H., & Karamancıoğlu, A. (2024). An online home energy management system using Q-Learning and Deep Q-Learning. Sustainable Computing: Informatics and Systems, 43, 101005. https://doi.org/10.1016/j.suscom.2024.101005

Jafari, H., Borazjani, O., & Bagheri, A. A. (2025). Simulation and online monitoring of DC-link capacitors in power electronic converters used in substation battery chargers https://civilica.com/doc/2572627 https://civilica.com/doc/2572627

Katoch, A., Wille Haußmann, B., & Pant, P. (2025). Smart home energy management using non-intrusive load monitoring integrated with deep reinforcement learning 2025 IEEE PES Innovative Smart Grid Technologies Conference Europe (ISGT Europe), https://doi.org/10.1109/ISGTEurope64741.2025.11305450 https://doi.org/10.1109/ISGTEurope64741.2025.11305450

Kelly, J., & Knottenbelt, W. (2015). Neural NILM: Deep neural networks applied to energy disaggregation Proceedings of the 2nd ACM International Conference on Embedded Systems for Energy-Efficient Built Environments, https://doi.org/10.1145/2821650.2821672 https://doi.org/10.1145/2821650.2821672

Lissa, P., Deane, C., Schukat, M., Seri, F., Keane, M. M., & Barrett, E. (2021). Deep reinforcement learning for home energy management system control. Energy and AI, 3, 100043. https://doi.org/10.1016/j.egyai.2020.100043

Ludolfinger, U., Perić, V. S., Hamacher, T., Hauke, S., & Martens, M. (2023). Transformer model based soft actor-critic learning for HEMS 2023 International Conference on Power System Technology (PowerCon), https://doi.org/10.1109/PowerCon58120.2023.10331287 https://doi.org/10.1109/PowerCon58120.2023.10331287

Ludolfinger, U., Zinsmeister, D., Perić, V. S., Hamacher, T., Hauke, S., & Martens, M. (2023). Recurrent soft actor critic reinforcement learning for demand response problems 2023 IEEE Belgrade PowerTech, https://doi.org/10.1109/PowerTech55446.2023.10202844 https://doi.org/10.1109/PowerTech55446.2023.10202844

Mazhar, T., Guizani, S., & Hamam, H. (2026). Deep reinforcement learning and IoT for renewable energy optimization in smart buildings: A comprehensive review. IET Generation, Transmission & Distribution, 20(1), e70255. https://doi.org/10.1049/gtd2.70255

Pinthurat, W., Surinkaew, T., & Hredzak, B. (2024). An overview of reinforcement learning-based approaches for smart home energy management systems with energy storages. Renewable and Sustainable Energy Reviews, 202, 114648. https://doi.org/10.1016/j.rser.2024.114648

Rahman, A., Srikumar, V., & Smith, A. D. (2018). Predicting electricity consumption for commercial and residential buildings using deep recurrent neural networks. Applied Energy, 212, 372-385. https://doi.org/10.1016/j.apenergy.2017.12.051

Real, A. C., Luz, G. P., Sousa, J. M. C., Brito, M. C., & Vieira, S. M. (2024). Optimization of a photovoltaic-battery system using deep reinforcement learning and load forecasting. Energy and AI, 16, 100347. https://doi.org/10.1016/j.egyai.2024.100347

Ren, K., Liu, J., Wu, Z., Liu, X., Nie, Y., & Xu, H. (2024). A data-driven DRL-based home energy management system optimization framework considering uncertain household parameters. Applied Energy, 355, 122258. https://doi.org/10.1016/j.apenergy.2023.122258

Wei, G., Chi, M., Liu, Z. W., Ge, M. F., Li, C., & Liu, X. (2023). Deep reinforcement learning for real-time energy management in smart home. IEEE Systems Journal, 17(2), 2489-2499. https://doi.org/10.1109/JSYST.2023.3247592

Wu, X., Zhang, Y., Chen, L., & Luo, X. (2024). Multi-step prioritized deep reinforcement learning method for home energy management Proceedings of the IEEE International Conference on Smart City (SmartCity 2024), https://doi.org/10.1109/SmartCity64275.2024.00012 https://doi.org/10.1109/SmartCity64275.2024.00012

Wu, Z., Chen, X., Lin, Y., Wen, J., & Chen, Y. (2024). A smart home energy management system based on human activity recognition and deep reinforcement learning. Energy and Buildings, 325, 114951. https://doi.org/10.1016/j.enbuild.2024.114951

Xiong, S. (2024). A deep reinforcement learning approach based energy management strategy for home energy system considering the time-of-use price and real-time control of energy storage system. Energy Reports, 11, 3501-3508. https://doi.org/10.1016/j.egyr.2024.03.003

Yang, Y., Hao, J., Zheng, Y., & Yu, C. (2019). Large-scale home energy management using entropy-based collective multiagent deep reinforcement learning framework Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence (IJCAI-19), https://doi.org/10.24963/ijcai.2019/89 https://doi.org/10.24963/ijcai.2019/89

Yu, L., Xie, W., Xie, D., Zou, Y., Zhang, D., Sun, Z., Zhang, L., Zhang, Y., & Jiang, T. (2019). Deep reinforcement learning for smart home energy management. Ieee Internet of Things Journal, 7(4), 2751-2762. https://doi.org/10.1109/JIOT.2019.2957289

Downloads

Publication Timeline

Published
Submitted
Revised
Accepted

How to Cite

Asadi Chaharrahe Gashin, S. ., Malek Hosseini, R., Bagherifard , K. ., Yaghoobian , S. H. ., & Ranjbar, H. (2026). Multi-Objective Safe Energy Management in Smart Buildings Using LSTM-Based Load Forecasting and Soft Actor-Critic Reinforcement Learning. Digital Transformation and Administration Innovation, 4(1), 1-23. https://journaldtai.com/index.php/jdtai/article/view/337