Skip to main content
QUICK REVIEW

[Paper Review] Transaction Confirmation Time Prediction in Ethereum Blockchain Using Machine Learning

Harsh Jot Singh, Abdelhakim Hafid|arXiv (Cornell University)|Nov 25, 2019
Blockchain Technology Applications and SecurityComputer Science1 references7 citations
TL;DR

This paper proposes a machine learning approach to predict Ethereum transaction confirmation times using block-level features, comparing Random Forest Regressor and Multilayer Perceptron against a statistical regression model. It demonstrates that machine learning models significantly improve prediction accuracy over traditional statistical methods.

ABSTRACT

Blockchain offers a decentralized, immutable, transparent system of records. It offers a peer-to-peer network of nodes with no centralised governing entity making it unhackable and therefore, more secure than the traditional paper-based or centralised system of records like banks etc. While there are certain advantages to the paper-based recording approach, it does not work well with digital relationships where the data is in constant flux. Unlike traditional channels, governed by centralized entities, blockchain offers its users a certain level of anonymity by providing capabilities to interact without disclosing their personal identities and allows them to build trust without a third-party governing entity. Due to the aforementioned characteristics of blockchain, more and more users around the globe are inclined towards making a digital transaction via blockchain than via rudimentary channels. Therefore, there is a dire need for us to gain insight on how these transactions are processed by the blockchain and how much time it may take for a peer to confirm a transaction and add it to the blockchain network. This paper presents a novel approach that would allow one to estimate the time, in block time or otherwise, it would take for a mining node to accept and confirm a transaction to a block using machine learning. The paper also aims to compare the predictive accuracy of two machine learning regression models- Random Forest Regressor and Multilayer Perceptron against previously proposed statistical regression model under a set evaluation criterion. The objective is to determine whether machine learning offers a more accurate predictive model than conventional statistical models. The proposed model results in improved accuracy in prediction.

Motivation & Objective

  • To develop a machine learning-based model for predicting transaction confirmation times in the Ethereum blockchain.
  • To evaluate the predictive performance of Random Forest Regressor and Multilayer Perceptron against a conventional statistical regression model.
  • To determine whether machine learning techniques offer superior accuracy in transaction confirmation time prediction compared to classical statistical methods.
  • To provide a practical, data-driven tool for users and systems to estimate transaction confirmation latency in Ethereum.

Proposed method

  • The model uses historical Ethereum block data, extracting features such as block size, transaction count, gas limit, and gas price.
  • Transaction confirmation time is defined as the number of blocks elapsed from transaction inclusion to final confirmation, measured in block time.
  • Two machine learning models—Random Forest Regressor and Multilayer Perceptron—are trained on the extracted features to predict confirmation time.
  • A baseline statistical regression model is also trained and compared using the same dataset and evaluation criteria.
  • Model performance is evaluated using standard regression metrics such as Mean Absolute Error (MAE), Mean Squared Error (MSE), and R-squared.
  • The training and evaluation are performed on a real-world Ethereum dataset collected from the blockchain.

Experimental results

Research questions

  • RQ1Can machine learning models predict Ethereum transaction confirmation times more accurately than traditional statistical regression models?
  • RQ2How do the predictive performances of Random Forest Regressor and Multilayer Perceptron compare in the context of Ethereum transaction confirmation time prediction?
  • RQ3Which set of blockchain features provides the most informative input for accurate confirmation time prediction?
  • RQ4What is the relative improvement in prediction accuracy when using ML models versus statistical models?

Key findings

  • The Random Forest Regressor achieved the lowest Mean Absolute Error (MAE) among all models, indicating superior predictive accuracy.
  • The Multilayer Perceptron model outperformed the statistical regression model in terms of R-squared and MSE, showing improved fit and prediction consistency.
  • Both machine learning models significantly reduced prediction error compared to the baseline statistical model, confirming the advantage of ML in this task.
  • The model's performance was robust across varying network conditions, with consistent improvements in prediction accuracy under high and low transaction load scenarios.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.