%0 Journal Article %T Anomaly Detection in Smart Homes Using Deep Learning %J Iranica Journal of Energy & Environment %I Babol Noshirvani University of Technology %Z 2079-2115 %A Moallem, M. %A Hassanpour, H. %A Pouyan, A. A. %D 2019 %\ 06/01/2019 %V 10 %N 2 %P 126-135 %! Anomaly Detection in Smart Homes Using Deep Learning %K Anomaly Detection %K Beam Search %K Deep Learning %K Long Short Term Memory %K Smart Homes %R 10.5829/ijee.2019.10.02.10 %X Smart homes enable many people, especially the elderly and patients, to live alone and maintain their independence and comfort. The realization of this goal depends on monitoring all activities in the house to report any observed anomaly immediately to their relatives or nurses. Anomaly detection in smart homes, just by existing data, is not an easy task. In this work, we train a recurrent network with raw outputs of binary sensors, including motion and door sensors, to predict which sensor will be switched on/off in the next event, and how long this on/off mode will last. Then, using Beam Search, we extend this event into k sequences of consecutive events to determine the possible range of upcoming activities. The error of this prediction  i.e., the distance between these possible sequences and the real string of events is evaluated using several innovative methods for measuring the spatio-temporal similarity of the sequences. Modeling this error as a Gaussian distribution allows to assess the likelihood of anomaly scores. The input sequences that are ranked higher than a certain threshold will be considered as abnormal activities. The results of the experiments showed that this method enables the detection of abnormal activities with desirable accuracy. %U https://www.ijee.net/article_90081_f67fa283fdc615acbe173f5737ac8edf.pdf