IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v11y2023i9p2212-d1141713.html
   My bibliography  Save this article

Blockchain Transaction Fee Forecasting: A Comparison of Machine Learning Methods

Author

Listed:
  • Conall Butler

    (School of Computing, Dublin City University, Glasnevin, D09 PX21 Dublin, Ireland)

  • Martin Crane

    (School of Computing, Dublin City University, Glasnevin, D09 PX21 Dublin, Ireland
    ADAPT Research Centre, Dublin City University, Glasnevin, D09 PX21 Dublin, Ireland)

Abstract

Gas is the transaction-fee metering system of the Ethereum network. Users of the network are required to select a gas price for submission with their transaction, creating a risk of overpaying or delayed/unprocessed transactions involved in this selection. In this work, we investigate data in the aftermath of the London Hard Fork and shed insight into the transaction dynamics of the network after this major fork. As such, this paper provides an update on work previous to 2019 on the link between EthUSD/BitUSD and gas price. For forecasting, we compare a novel combination of machine learning methods such as Direct-Recursive Hybrid LSTM, CNN-LSTM, and Attention-LSTM. These are combined with wavelet threshold denoising and matrix profile data processing toward the forecasting of block minimum gas price, on a 5-min timescale, over multiple lookaheads. As the first application of the matrix profile being applied to gas price data and forecasting that we are aware of, this study demonstrates that matrix profile data can enhance attention-based models; however, given the hardware constraints, hybrid models outperformed attention and CNN-LSTM models. The wavelet coherence of inputs demonstrates correlation in multiple variables on a 1-day timescale, which is a deviation of base free from gas price. A Direct-Recursive Hybrid LSTM strategy is found to outperform other models, with an average RMSE of 26.08 and R 2 of 0.54 over a 50-min lookahead window compared to an RMSE of 26.78 and R 2 of 0.452 in the best-performing attention model. Hybrid models are shown to have favorable performance up to a 20-min lookahead with performance being comparable to attention models when forecasting 25–50-min ahead. Forecasts over a range of lookaheads allow users to make an informed decision on gas price selection and the optimal window to submit their transaction in without fear of their transaction being rejected. This, in turn, gives more detailed insight into gas price dynamics than existing recommenders, oracles and forecasting approaches, which provide simple heuristics or limited lookahead horizons.

Suggested Citation

  • Conall Butler & Martin Crane, 2023. "Blockchain Transaction Fee Forecasting: A Comparison of Machine Learning Methods," Mathematics, MDPI, vol. 11(9), pages 1-26, May.
  • Handle: RePEc:gam:jmathe:v:11:y:2023:i:9:p:2212-:d:1141713
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/11/9/2212/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/11/9/2212/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Tim Roughgarden, 2021. "Transaction Fee Mechanism Design," Papers 2106.01340, arXiv.org, revised Dec 2023.
    2. Jason Scharfman, 2022. "Cryptocurrency Compliance and Operations," Springer Books, Springer, edition 1, number 978-3-030-88000-2, December.
    3. Salinas, David & Flunkert, Valentin & Gasthaus, Jan & Januschowski, Tim, 2020. "DeepAR: Probabilistic forecasting with autoregressive recurrent networks," International Journal of Forecasting, Elsevier, vol. 36(3), pages 1181-1191.
    4. Sam M. Werner & Paul J. Pritz & Daniel Perez, 2020. "Step on the Gas? A Better Approach for Recommending the Ethereum Gas Price," Springer Proceedings in Business and Economics, in: Panos Pardalos & Ilias Kotsireas & Yike Guo & William Knottenbelt (ed.), Mathematical Research for Blockchain Economy, pages 161-177, Springer.
    5. Yulin Liu & Yuxuan Lu & Kartik Nayak & Fan Zhang & Luyao Zhang & Yinhong Zhao, 2022. "Empirical Analysis of EIP-1559: Transaction Fees, Waiting Time, and Consensus Security," Papers 2201.05574, arXiv.org, revised Apr 2023.
    6. Sun, Qi & Xu, Weidong, 2018. "Wavelet analysis of the co-movement and lead–lag effect among multi-markets," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 512(C), pages 489-499.
    7. Jiayu Qiu & Bin Wang & Changjun Zhou, 2020. "Forecasting stock prices with long-short term memory neural network based on attention mechanism," PLOS ONE, Public Library of Science, vol. 15(1), pages 1-15, January.
    8. Giulio Caldarelli, 2022. "Overview of Blockchain Oracle Research," Future Internet, MDPI, vol. 14(6), pages 1-38, June.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Julien Riposo & Maneesh Gupta, 2024. "A Crypto Yield Model for Staking Return," FinTech, MDPI, vol. 3(1), pages 1-19, February.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Eduard Hartwich & Alexander Rieger & Johannes Sedlmeir & Dominik Jurek & Gilbert Fridgen, 2023. "Machine economies," Electronic Markets, Springer;IIM University of St. Gallen, vol. 33(1), pages 1-13, December.
    2. Spiliotis, Evangelos & Makridakis, Spyros & Kaltsounis, Anastasios & Assimakopoulos, Vassilios, 2021. "Product sales probabilistic forecasting: An empirical evaluation using the M5 competition data," International Journal of Production Economics, Elsevier, vol. 240(C).
    3. Janusz Gajda & Rafał Walasek, 2020. "Fractional differentiation and its use in machine learning," Working Papers 2020-32, Faculty of Economic Sciences, University of Warsaw.
    4. Yousaf, Imran & Jareño, Francisco & Tolentino, Marta, 2023. "Connectedness between Defi assets and equity markets during COVID-19: A sector analysis," Technological Forecasting and Social Change, Elsevier, vol. 187(C).
    5. Lorenzo Menculini & Andrea Marini & Massimiliano Proietti & Alberto Garinei & Alessio Bozza & Cecilia Moretti & Marcello Marconi, 2021. "Comparing Prophet and Deep Learning to ARIMA in Forecasting Wholesale Food Prices," Forecasting, MDPI, vol. 3(3), pages 1-19, September.
    6. Bojer, Casper Solheim & Meldgaard, Jens Peder, 2021. "Kaggle forecasting competitions: An overlooked learning opportunity," International Journal of Forecasting, Elsevier, vol. 37(2), pages 587-603.
    7. Ying Shu & Chengfu Ding & Lingbing Tao & Chentao Hu & Zhixin Tie, 2023. "Air Pollution Prediction Based on Discrete Wavelets and Deep Learning," Sustainability, MDPI, vol. 15(9), pages 1-19, April.
    8. Andrew Komo & Scott Duke Kominers & Tim Roughgarden, 2024. "Shill-Proof Auctions," Papers 2404.00475, arXiv.org.
    9. Luyao Zhang & Fan Zhang, 2023. "Understand Waiting Time in Transaction Fee Mechanism: An Interdisciplinary Perspective," Papers 2305.02552, arXiv.org.
    10. Anna Almosova & Niek Andresen, 2023. "Nonlinear inflation forecasting with recurrent neural networks," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 42(2), pages 240-259, March.
    11. Philippe Goulet Coulombe & Mikael Frenette & Karin Klieber, 2023. "From Reactive to Proactive Volatility Modeling with Hemisphere Neural Networks," Working Papers 23-04, Chair in macroeconomics and forecasting, University of Quebec in Montreal's School of Management, revised Nov 2023.
    12. Kuşkaya, Sevda & Bilgili, Faik & Muğaloğlu, Erhan & Khan, Kamran & Hoque, Mohammad Enamul & Toguç, Nurhan, 2023. "The role of solar energy usage in environmental sustainability: Fresh evidence through time-frequency analyses," Renewable Energy, Elsevier, vol. 206(C), pages 858-871.
    13. Sam M. Werner & Daniel Perez & Lewis Gudgeon & Ariah Klages-Mundt & Dominik Harz & William J. Knottenbelt, 2021. "SoK: Decentralized Finance (DeFi)," Papers 2101.08778, arXiv.org, revised Sep 2022.
    14. Jayesh Thaker & Robert Höller, 2022. "A Comparative Study of Time Series Forecasting of Solar Energy Based on Irradiance Classification," Energies, MDPI, vol. 15(8), pages 1-26, April.
    15. Kandaswamy Paramasivan & Brinda Subramani & Nandan Sudarsanam, 2022. "Counterfactual analysis of the impact of the first two waves of the COVID-19 pandemic on the reporting and registration of missing people in India," Palgrave Communications, Palgrave Macmillan, vol. 9(1), pages 1-14, December.
    16. Akash Doshi & Alexander Issa & Puneet Sachdeva & Sina Rafati & Somnath Rakshit, 2020. "Deep Stock Predictions," Papers 2006.04992, arXiv.org.
    17. Bojer, Casper Solheim, 2022. "Understanding machine learning-based forecasting methods: A decomposition framework and research opportunities," International Journal of Forecasting, Elsevier, vol. 38(4), pages 1555-1561.
    18. Stefenon, Stefano Frizzo & Seman, Laio Oriel & Aquino, Luiza Scapinello & Coelho, Leandro dos Santos, 2023. "Wavelet-Seq2Seq-LSTM with attention for time series forecasting of level of dams in hydroelectric power plants," Energy, Elsevier, vol. 274(C).
    19. Sergio Consoli & Luca Tiozzo Pezzoli & Elisa Tosetti, 2022. "Neural forecasting of the Italian sovereign bond market with economic news," Journal of the Royal Statistical Society Series A, Royal Statistical Society, vol. 185(S2), pages 197-224, December.
    20. Subba Rao Polamuri & K. Srinnivas & A. Krishna Mohan, 2023. "Prediction of stock price growth for novel greedy heuristic optimized multi-instances quantitative (NGHOMQ)," International Journal of System Assurance Engineering and Management, Springer;The Society for Reliability, Engineering Quality and Operations Management (SREQOM),India, and Division of Operation and Maintenance, Lulea University of Technology, Sweden, vol. 14(1), pages 353-366, February.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:11:y:2023:i:9:p:2212-:d:1141713. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.