Abstract

Although the consortium blockchains commonly adopt consensus algorithms with Byzantine fault tolerance (such as practical Byzantine fault tolerance (PBFT)), its consensus efficiency will be degraded by the existence of malicious nodes or behaviors. However, the existing researches mainly focus on the detection of malicious behaviors for public blockchains, but are rare about consortium blockchains. In this paper, an anomaly detection model based on machine learning (ML) classification algorithm is proposed for consortium blockchains that adopt PBFT. Besides, a two-stage process is proposed to reduce the resource consumption for anomaly detection. The data needed for proposed model only has two dimensions and is convenient to obtain. The results of experiment show that ML is very effective in anomaly detection for consortium blockchains. Specifically, the algorithms with the highest accuracy are convolutional neural networks (CNN), k-nearest neighbor (KNN) and support vector machines (SVM) in turn. However, KNN and SVM are more suitable because resource consumption of both algorithms are one third of CNN, and the accuracy rates are above 0.9 which is 0.9% lower than CNN.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call