Journal of Computer Science

A Clustering based Approach for Contextual Anomaly Detection in Internet of Things

Dina ElMenshawy, Waleed Helmy and Neamat El-Tazi

DOI : 10.3844/jcssp.2019.1195.1202

Journal of Computer Science

Volume 15, Issue 8

Pages 1195-1202


Internet of Things (IoT) is a network which connects different communication devices with the internet to attain quick, robust and real-time information transfer and communication, achieving intelligent management. IoT is still in its infancy so it faces numerous challenges varying from data management to security concerns. Sensors generate enormous quantities of data that need to be handled efficiently to have successful deployment of IoT applications. Concerning data management, a great challenge that faces the IoT environment is the detection of contextual anomalies. Contextual anomaly detection is a sophisticated task because the context has to be taken into consideration in the anomaly detection process rather than checking only the deviation of the data value as in point anomaly detection. As a result, in this paper, a novel clustering based algorithm is proposed to detect contextual anomalies in Internet of Things. Attributes were separated into two different categories, namely contextual attributes and behavioral attributes. K-Means clustering technique was applied on the contextual and behavioral attributes separately, then the intersection between the contextual and behavioral clusters was used to detect the contextual anomalies. Moreover, the algorithm was applied on a real room occupation dataset of size around 20,000 records and the experiments showed promising results.


© 2019 Dina ElMenshawy, Waleed Helmy and Neamat El-Tazi. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.