Irregularities in the use of electrical energy could result in failure of power grids and blackouts. Anomaly detection is required not only for ensuring grid safety, but also to prevent illegal hacking. Long-term data are recorded for such anomaly detection. However, due to the nonlinear characteristics of the time series data, correlation regression becomes difficult when using non-deep learning techniques. To address this issue, we use Long-Short Term Memory (LSTM) recurrency techniques. We experiment with two datasets from two different smart meters, which are sampled once every 30 seconds for one month. A total of 120,000 data samples were used for training and 40,000 data samples for testing. From the experiment results, the testing accuracy, True-Positive Rate, and False Positive Rate were 0.92, 0.81, and 0.50, respectively. Further, to demonstrate that the LSTM model can actually be designed at the network edge, we implemented the model and the trained weights on a Raspberry Pi platform. The inference time for each sample was 935 μs, which is short enough for realizing edge-based anomaly detection.
[1]
Jaime Lloret,et al.
An Integrated IoT Architecture for Smart Metering
,
2016,
IEEE Communications Magazine.
[2]
Tomasz Andrysiak,et al.
Anomaly Detection in Smart Metering Infrastructure with the Use of Time Series Analysis
,
2017,
J. Sensors.
[3]
Jürgen Schmidhuber,et al.
Long Short-Term Memory
,
1997,
Neural Computation.
[4]
Alex Rogers,et al.
A comparison of non-intrusive load monitoring methods for commercial and residential buildings
,
2014,
ArXiv.
[5]
Suat Özdemir,et al.
A fog computing based smart grid model
,
2016,
2016 International Symposium on Networks, Computers and Communications (ISNCC).
[6]
Miriam A. M. Capretz,et al.
An ensemble learning framework for anomaly detection in building energy consumption
,
2017
.