University of Bahrain
Scientific Journals

A Secure IoT Framework Based on Blockchain and Machine Learning

Show simple item record

dc.contributor.author Shahin, Rawan
dc.contributor.author Sabri, Khair Eddin
dc.date.accessioned 2021-07-14T21:45:29Z
dc.date.available 2021-07-14T21:45:29Z
dc.date.issued 2021-07-14
dc.identifier.issn 2210-142X
dc.identifier.uri https://journal.uob.edu.bh:443/handle/123456789/4303
dc.description.abstract Internet of Things (IoT) network consists of many devices that are communicating together and exchanging data. IoT network has many applications such as in smart city and smart campus. IoT devices usually produce a huge amount of data that are stored in the cloud to be analyzed later. Data in general and IoT devices data in particular suffers from major security issues such as the availability and the integrity of data. Blockchain is a new technology that offers an interesting solution for the security of sensitive IoT data by protecting data against malicious tampering. However, the data stored in the blockchain cannot be altered, therefore, it should be validated before being stored in the blockchain especially that IoT devices are vulnerable to attacks. Machine learning algorithms are very useful to detect compromised IoT devices to ensure that only reliable data are stored in the blockchain.The main aim of this paper is to propose a framework for storing reliable IoT data in a secure way that preserves the integrity and availability properties. First, to detect compromised IoT devices, several machine learning algorithms are evaluated. The IoTID20 dataset for anomalous activity detection in IoT network is used to build our machine learning model. IoTID20 dataset contains 80 network features and 625783 records. For our experiment, 4000 records are selected randomly from the dataset. Two algorithms are used to select features namely Logistic Regression and Pearson’s correlation. A total of 15 feature are selected in order to classify packets (Normal, Anomaly). Several machine learning algorithms are trained: Logistic Regression, Random Forest, Decision Tree, K Nearest Neighbors, AdaBoost, and Naïve Bayes. These algorithms are compared based on the following measurements: accuracy, precision, recall, F1 score, and the time for classification. The results reveal that Random Forest and AdaBoost classifiers give very close results and are considered the best classifiers based on all performance metrics used in the paper except the time. Regarding the time required to detect malicious records, Decision Tree and Naïve Bayes are the best where the time required to predict 4000 records is 0.015 second. A private blockchain is built to store normal data received from IoT devices after being filtered. The data is signed and then distributed to all nodes in the network for verification. To provide scalability, the consensus algorithm of the blockchain is based on the proof of authority algorithm. As a proof of concepts, the blockchain is developed using Python programming language and the time required to verify the signatures is computed. en_US
dc.language.iso en en_US
dc.publisher University of Bahrain en_US
dc.rights Attribution-NonCommercial-NoDerivatives 4.0 International *
dc.rights.uri http://creativecommons.org/licenses/by-nc-nd/4.0/ *
dc.subject Blockchain en_US
dc.subject IoT en_US
dc.subject Machine Learning en_US
dc.subject Anomaly Detection en_US
dc.title A Secure IoT Framework Based on Blockchain and Machine Learning en_US
dc.identifier.doi https://dx.doi.org/10.12785/ijcds/110154
dc.contributor.authorcountry Jordan en_US
dc.contributor.authorcountry Jordan en_US
dc.contributor.authoraffiliation The University of Jordan en_US
dc.contributor.authoraffiliation The University of Jordan en_US
dc.source.title International Journal of Computing and Digital System en_US
dc.abbreviatedsourcetitle IJCDS en_US


Files in this item

The following license files are associated with this item:

This item appears in the following Issue(s)

Show simple item record

Attribution-NonCommercial-NoDerivatives 4.0 International Except where otherwise noted, this item's license is described as Attribution-NonCommercial-NoDerivatives 4.0 International

All Journals


Advanced Search

Browse

Administrator Account