📄 Sciences Methods and Technologies
International Journal (SciMeTech)

Volume 2 · Issue 1 · 2026
ISSN: 3085-5284
AI-Driven Smart Energy Management in IoT-Enabled Buildings
ALOUACH Abdennour, BENKIRANE Said, GUEZZAZ Azidine, LAMAAKAL Ismail
Pages 116–123 · Multidisciplinary Faculty of Nador, Mohammed Premier University, Oujda 60000, Morocco · Higher School of Technology Essaouira, Cadi Ayyad University, Marrakech 40000, Morocco
Abstract
The presented study considers energy management in buildings which is a crucial issue that requires effective solutions. Specifically, it should be aimed at monitoring energy consumption, detecting potential problems and solving them automatically. In many cases, existing energy management systems are not able to make predictions regarding the possible development of circumstances and to perform actions automatically in response to abrupt changes in electricity consumption. In order to solve these shortcomings, this paper offers a holistic energy management architecture for an IoT-enabled building. It includes a multi-agent simulation using Node-RED which models realistic power consumption in functional rooms in the building, while InfluxDB is used for optimized storage of time series data. As for the reliability check, the process of dynamic anomaly injection, allowing for simulation of faults such as high-power spikes and blackouts, is used. Artificial intelligence forecasting model based on Prophet is used to predict energy consumption within six hours in the building while the threshold values for such analysis will be adjusted depending on season using Prophet's API. Once the deviation from predicted consumption is detected, real-time feedback control using MQTT will provide automatic isolation of circuits. According to findings, the system works fast enough, in about six seconds. The solution proposed in this paper can be implemented not only in smart buildings but also in the entire smart grid. In the future, reinforcement learning can be used to facilitate the work of a smart grid and to prevent faults in it.
Keywords: IoT-enabled building, Smart Building, Energy Management, Time-Series Data, MQTT, Node-RED, InfluxDB, Prophet, Real-Time Feedback Control, Artificial Intelligence

References

  1. Ghaffarianhoseini, A., et al. (2016). The essence of future smart houses: From embedding ICT to adapting to sustainability principles. Renewable and Sustainable Energy Reviews, 68, 587-603.
  2. Al-Hussein, M., Al-Sakkaf, L., & Al-Habaibeh, A. (2025). AI-driven transformations in smart buildings: A review of energy efficiency and sustainable operations. Energy Nexus, 10, 100342.
  3. Muniandi, B., et al. (2024). AI-Driven Energy Management Systems for Smart Buildings. PowerTech Journal, 1, 280. https://doi.org/10.52783/pst.280
  4. Fang, X., Misra, S., Xue, G., & Yang, D. (2012). Smart grid — The new and improved power grid: A survey. IEEE Communications Surveys & Tutorials, 14(4), 944-980.
  5. Banks, A., & Gupta, R. (2014). MQTT Version 3.1.1. OASIS Standard, 1-81.
  6. Hunkeler, U., Truong, H. L., & Stanford-Clark, A. (2008). MQTT-S — A publish/subscribe protocol for wireless sensor networks. IEEE CCNC, 302-306.
  7. O'Donovan, P., Leahy, K., Bruton, K., & O'Sullivan, D. T. J. (2015). An industrial big data pipeline for data-driven analytics maintenance applications. Journal of Big Data, 2, 25.
  8. Taylor, S. J., & Letham, B. (2018). Forecasting at scale. The American Statistician, 72(1), 37-45.
  9. Afram, A., & Janabi-Sharifi, F. (2014). Theory and applications of HVAC control systems — A review of model predictive control (MPC). Building and Environment, 72, 343-355.
  10. Ahmad, T., & Chen, H. (2019). Short and medium-term forecasting of cooling and heating load demand in buildings: A review. Energy and Buildings, 182, 25-37.
  11. Pipattanasomporn, M., Kuzlu, M., & Rahman, S. (2012). An algorithm for intelligent home energy management and demand response analysis. IEEE Transactions on Smart Grid, 3(4), 2166-2173.
  12. Kolokotsa, D., Pouliezos, A., Stavrakakis, G., & Lazos, C. (2009). Predictive control techniques for energy and indoor environmental quality management in buildings. Energy and Buildings, 43(2-3), 368-376.
  13. Wang, S., & Ma, Z. (2008). Supervisory and optimal control of building HVAC systems: A review. Renewable and Sustainable Energy Reviews, 13(6-7), 136-143.
  14. Mocanu, E., Nguyen, P. H., Gibescu, M., & Kling, W. L. (2016). Deep learning for estimating building energy consumption. Sustainable Energy, Grids and Networks, 6, 91-99.
  15. Kong, W., Dong, Z. Y., Jia, Y., Hill, D. J., Xu, Y., & Zhang, Y. (2017). Short-term residential load forecasting based on LSTM recurrent neural network. IEEE Transactions on Smart Grid, 10(1), 841-851.
  16. Marino, D. L., Amarasinghe, K., & Manic, M. (2016). Building energy load forecasting using deep neural networks. Proceedings of the 42nd Annual Conference of the IEEE Industrial Electronics Society (IECON), Florence, Italy, pp. 7046-7051.
  17. Blackstock, M., & Lea, R. (2014). IoT interoperability: A practical approach. IEEE World Forum on Internet of Things, 1-6.