*Article* **Analysis of the Integration of Drift Detection Methods in Learning Algorithms for Electrical Consumption Forecasting in Smart Buildings**

**Deyslen Mariano-Hernández 1,2,\*, Luis Hernández-Callejo 2,\*, Martín Solís 3, Angel Zorita-Lamadrid 4, Oscar Duque-Pérez 4, Luis Gonzalez-Morales 5, Felix Santos García 6, Alvaro Jaramillo-Duque 7, Adalberto Ospino-Castro 8, Victor Alonso-Gómez <sup>9</sup> and Hugo J. Bello <sup>10</sup>**


**Abstract:** Buildings are currently among the largest consumers of electrical energy with considerable increases in CO2 emissions in recent years. Although there have been notable advances in energy efficiency, buildings still have great untapped savings potential. Within demand-side management, some tools have helped improve electricity consumption, such as energy forecast models. However, because most forecasting models are not focused on updating based on the changing nature of buildings, they do not help exploit the savings potential of buildings. Considering the aforementioned, the objective of this article is to analyze the integration of methods that can help forecasting models to better adapt to the changes that occur in the behavior of buildings, ensuring that these can be used as tools to enhance savings in buildings. For this study, active and passive change detection methods were considered to be integrators in the decision tree and deep learning models. The results show that constant retraining for the decision tree models, integrating change detection methods, helped them to better adapt to changes in the whole building's electrical consumption. However, for deep learning models, this was not the case, as constant retraining with small volumes of data only worsened their performance. These results may lead to the option of using tree decision models in buildings where electricity consumption is constantly changing.

**Keywords:** drift detection; electrical consumption forecasting; energy forecasting; machine learning; smart buildings
