AI-Powered Predictive Energy Monitoring System Using Open-Source Tools: A Smart Building Case Study with Node-RED and InfluxDB

Authors:

Abstract
Short-term energy forecasting plays a critical role in optimizing power usage, improving operational efficiency, and reducing costs in modern smart buildings and industrial facilities. Accurate forecasts allow operators to plan production schedules, balance energy loads, and detect abnormal patterns before they escalate into costly inefficiencies. Despite the rapid advancement of artificial intelligence and Internet of Things technologies, integrated real-time systems that are both cost-effective and based on open-source tools remain limited, particularly in developing regions where proprietary platforms are financially prohibitive. This paper presents the design and implementation of an AI-powered predictive energy monitoring system that integrates Node-RED, InfluxDB, and Python-based machine learning in a modular and deployable architecture. Real-time energy data is collected from industrial-grade sensors and transmitted using MQTT, stored as time-series data in InfluxDB. A Random Forest regression model is employed to forecast short-term consumption based on sliding-window representations of historical patterns, while Linear Regression serves as a baseline for comparison. The system is deployed in a live industrial environment, operating continuously on a 24/7 basis. Experimental results demonstrate that the Random Forest model reduces RMSE and MAE by approximately 39% and 37%, respectively, compared to the baseline. These findings confirm the system’s effectiveness in capturing non-linear energy usage patterns. This work contributes a practical, low-cost, and replicable solution for real-time smart energy management using widely available open-source platforms, while also opening opportunities for future extensions such as anomaly detection and automated optimization.

This publication has 10 references indexed in Scilit: