Time-Series Transformer for Predicting Bitcoin Price

Authors

  • Longchen Zheng

DOI:

https://doi.org/10.54097/72afeb38

Keywords:

Time-Series Transformer, Bitcoin, Cryptocurrency.

Abstract

Bitcoin's high volatility poses significant challenges for short-term price prediction, making it a critical area of study for financial forecasting. Traditional models such as Long Short-Term Memory (LSTM) networks often encounter difficulties in handling long-range dependencies and non-stationary data, limiting their predictive accuracy under volatile conditions. This study introduces the Time-Series Transformer (TST) as a novel approach to predict Bitcoin's short-term prices. By leveraging self-attention mechanisms, TST effectively captures complex temporal patterns in historical Bitcoin data, including prices and trading volume. The data was segmented into fixed-length windows to facilitate model training and testing. Evaluation metrics such as Mean Squared Error (MSE), Mean Absolute Scaled Error (MASE), and R-squared (R²) demonstrated TST’s superior performance over LSTM, particularly during periods of high market fluctuation. Furthermore, TST exhibited notable computational efficiency when working with large datasets, underscoring its scalability. These findings not only highlight TST’s potential for enhancing cryptocurrency price prediction but also pave the way for future research integrating external data sources and exploring further model enhancements for more robust financial forecasting.

Downloads

Download data is not yet available.

References

[1] Sveriges Riksbank: Economic Commentaries: Insights on monetary policy frameworks. Sveriges Riksbank Economic Review 2014 (2), 73 (2014).

[2] Hua, Y.: Bitcoin price prediction using ARIMA and LSTM. E3S Web of Conferences 218, 01050 (2020).

[3] Wen, Q., Zhou, T., Zhang, C., Chen, W., Ma, Z., Yan, J., Sun, L.: Transformers in Time Series: A Survey. ArXiv.org (2023).

[4] Ali, M., Manthouri, M.: Enhancing Price Prediction in Cryptocurrency Using Transformer Neural Network and Technical Indicators. ArXiv.org (2024).

[5] Penmetsa, S., Vemula, M.: Cryptocurrency Price Prediction with LSTM and Transformer Models Leveraging Momentum and Volatility Technical Indicators. (2023).

[6] Bisht, G.S., Monga, T., Goel, A., Sengar, N., Bahl, V.: Cryptocurrency Price Prediction Using LSTM, ARIMA, and Linear Regression. International Research Journal of Modernization in Engineering Technology and Science (2023).

[7] Jung, H.S., Kim, J.H., Lee, H.: Decoding Bitcoin: leveraging macro- and micro-factors in time series analysis for price prediction. PeerJ Computer Science 10, e2314 (2024).

[8] Amundi: Time Series Forecasting with Transformer Models and application for Asset Management. Amundi Research Center (2023). https://research-center.amundi.com/article/time-series-forecasting-transformer-models-and-application-asset-management, last accessed 2023/10/25.

[9] Yang, Y., Dong, Y.: Informer_Casual_LSTM: Causal Characteristics and Non-Stationary Time Series Prediction. 1 – 6 (2024).

[10] Zhu, Q., Han, J., Chai, K., Zhao, C.: Time Series Analysis Based on Informer Algorithms: A Survey. Symmetry 15 (4), 951 (2023).

Downloads

Published

29-04-2025

How to Cite

Zheng, L. (2025). Time-Series Transformer for Predicting Bitcoin Price. Highlights in Business, Economics and Management, 54, 173-181. https://doi.org/10.54097/72afeb38