Title Making Smart Contracts Predict and Scale
Publication Type Conference Paper
Year of Publication 2022
Authors Badruddoja, S, Dantu, R, He, Y, Thompson, M, Salau, A, Upadhyay, K
Conference Name 2022 Fourth International Conference on Blockchain Computing and Applications (BCCA)
Abstract

The machine learning algorithms can predict the events based on the trained models and datasets. However, a reliable prediction requires the model to be trusted and tamper-resistant. Blockchain technology provides trusted output with consensus-based transactions and an immutable distributed ledger. The machine learning algorithms can be trained on blockchain smart contracts to produce trusted models for reliable prediction. But most smart contracts in the blockchain do not support floating-point data type, limiting computations for classification, which can affect the prediction accuracy. In this work, we propose a novel method to produce floating-point equivalent probability estimation to classify labels on-chain with a Naive Bayes algorithm. We derive a mathematical model with Taylor series expansion to compute the ratio of the posterior probability of classes to classify labels using integers. Moreover, we implemented our solution in Ethereum blockchain smart-contract with the Solidity programming language, where we achieved a prediction accuracy comparable to the scikit-learn library in Python. Our derived method is platform-agnostic and can be supported in any blockchain network. Furthermore, machine learning and deep-learning algorithms can borrow the derived method.

DOI 10.1109/BCCA55292.2022.9922480

Publication Status:

UNT Department:

UNT Center:

UNT Lab: