Environmental pollution and energy saving are particularly relevant issues nowadays due to their direct consequences on our daily life and on the future of our planet. Possible countermeasures to reduce pollution and to facilitate energy saving include detecting faults and abnormal usage patterns in the electricity consumption of buildings, which account for 38% of global energy use. In this paper, we focus on data-driven anomaly detection and experimentally compare several topologies of deep autoencoders for detecting anomalies in the electrical energy consumption of buildings. We consider both plain and variational autoencoders, with different mixtures of recurrent, convolutional, and attention layers, and two different anomaly scores, based on reconstruction error and on reconstruction probability. Experiments are performed on two datasets collected from real office buildings. Results suggest that autoencoders represent a valuable tool for detecting anomalies in the electricity consumption of buildings. However, depending on the regularity and noise of the data, the choice of the right autoencoder topology and anomaly score can become important, as some combinations may be better suited than others. Results also show that integrating attention in autoencoders requires particular care due to the bypassing phenomenon. In response, we propose a novel self-attention mechanism, which is less susceptible to bypassing.

An empirical evaluation of deep autoencoders for anomaly detection in the electricity consumption of buildings

Azzalini D.;Flammini B.;Ragaini E.;Amigoni F.
2025-01-01

Abstract

Environmental pollution and energy saving are particularly relevant issues nowadays due to their direct consequences on our daily life and on the future of our planet. Possible countermeasures to reduce pollution and to facilitate energy saving include detecting faults and abnormal usage patterns in the electricity consumption of buildings, which account for 38% of global energy use. In this paper, we focus on data-driven anomaly detection and experimentally compare several topologies of deep autoencoders for detecting anomalies in the electrical energy consumption of buildings. We consider both plain and variational autoencoders, with different mixtures of recurrent, convolutional, and attention layers, and two different anomaly scores, based on reconstruction error and on reconstruction probability. Experiments are performed on two datasets collected from real office buildings. Results suggest that autoencoders represent a valuable tool for detecting anomalies in the electricity consumption of buildings. However, depending on the regularity and noise of the data, the choice of the right autoencoder topology and anomaly score can become important, as some combinations may be better suited than others. Results also show that integrating attention in autoencoders requires particular care due to the bypassing phenomenon. In response, we propose a novel self-attention mechanism, which is less susceptible to bypassing.
2025
Anomaly detection
Deep autoencoders
Electricity consumption
Self-attention
File in questo prodotto:
File Dimensione Formato  
Paper Energy and Buildings 2024 [original].pdf

Accesso riservato

: Publisher’s version
Dimensione 1.33 MB
Formato Adobe PDF
1.33 MB Adobe PDF   Visualizza/Apri

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11311/1308349
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 6
  • ???jsp.display-item.citation.isi??? 4
social impact