Skip to main content

02.03.2024 | Research

Ensemble of temporal Transformers for financial time series

verfasst von: Kenniy Olorunnimbe, Herna Viktor

Erschienen in: Journal of Intelligent Information Systems

Einloggen

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

The accuracy of price forecasts is important for financial market trading strategies and portfolio management. Compared to traditional models such as ARIMA and other state-of-the-art deep learning techniques, temporal Transformers with similarity embedding perform better for multi-horizon forecasts in financial time series, as they account for the conditional heteroscedasticity inherent in financial data. Despite this, the methods employed in generating these forecasts must be optimized to achieve the highest possible level of precision. One approach that has been shown to improve the accuracy of machine learning models is ensemble techniques. To this end, we present an ensemble approach that efficiently utilizes the available data over an extended timeframe. Our ensemble combines multiple temporal Transformer models learned within sliding windows, thereby making optimal use of the data. As combination methods, along with an averaging approach, we also introduced a stacking meta-learner that leverages a quantile estimator to determine the optimal weights for combining the base models of smaller windows. By decomposing the constituent time series of an extended timeframe, we optimize the utilization of the series for financial deep learning. This simplifies the training process of a temporal Transformer model over an extended time series while achieving better performance, particularly when accounting for the non-constant variance of financial time series. Our experiments, conducted across volatile and non-volatile extrapolation periods, using 20 companies from the Dow Jones Industrial Average show more than 40% and 60% improvement in predictive performance compared to the baseline temporal Transformer.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Anhänge
Nur mit Berechtigung zugänglich
Fußnoten
1
simfin.com
 
2
investopedia.com/terms/v/vix.asp
 
Literatur
Zurück zum Zitat Akiba, T., Sano, S., Yanase, T., Ohta, T., & Koyama, M. (2019). Optuna: A next-generation hyperparameter optimization framework. In: Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining. ACM Akiba, T., Sano, S., Yanase, T., Ohta, T., & Koyama, M. (2019). Optuna: A next-generation hyperparameter optimization framework. In: Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining. ACM
Zurück zum Zitat Armbrust, M., Ghodsi, A., Xin, R., & Zaharia, M. (2021). Lakehouse: A new generation of open platforms that unify data warehousing and advanced analytics. In: 11th Conference on Innovative Data Systems Research. www.cidrdb.org Armbrust, M., Ghodsi, A., Xin, R., & Zaharia, M. (2021). Lakehouse: A new generation of open platforms that unify data warehousing and advanced analytics. In: 11th Conference on Innovative Data Systems Research. www.​cidrdb.​org
Zurück zum Zitat Borovkova, S., & Tsiamas, I. (2019). An ensemble of LSTM neural networks for high-frequency stock market classification. 38(6) Borovkova, S., & Tsiamas, I. (2019). An ensemble of LSTM neural networks for high-frequency stock market classification. 38(6)
Zurück zum Zitat Challu, C., Olivares, K.G., Oreshkin, B.N., Garza, F., Mergenthaler-Canseco, M., & Dubrawski, A. (2022). N-HiTS: Neural Hierarchical Interpolation for Time Series Forecasting. arXiv Challu, C., Olivares, K.G., Oreshkin, B.N., Garza, F., Mergenthaler-Canseco, M., & Dubrawski, A. (2022). N-HiTS: Neural Hierarchical Interpolation for Time Series Forecasting. arXiv
Zurück zum Zitat Chan, E.P.: Quantitative Trading: How to Build Your Own Algorithmic Trading Business, 2 edition edn. Wiley Chan, E.P.: Quantitative Trading: How to Build Your Own Algorithmic Trading Business, 2 edition edn. Wiley
Zurück zum Zitat Chan, E. P. (2016). Machine Trading: Deploying Computer Algorithms to Conquer the Markets, 1st (edition). Wiley. Chan, E. P. (2016). Machine Trading: Deploying Computer Algorithms to Conquer the Markets, 1st (edition). Wiley.
Zurück zum Zitat Chen, A., Chow, A., Davidson, A., DCunha, A., Ghodsi, A., Hong, S. A., Konwinski, A., Mewald, C., Murching, S., Nykodym, T., Ogilvie, P., Parkhe, M., Singh, A., Xie, F., Zaharia, M., Zang, R., Zheng, J., & Zumar, C. (2020). Developments in MLflow: A system to accelerate the machine learning lifecycle. ACM Chen, A., Chow, A., Davidson, A., DCunha, A., Ghodsi, A., Hong, S. A., Konwinski, A., Mewald, C., Murching, S., Nykodym, T., Ogilvie, P., Parkhe, M., Singh, A., Xie, F., Zaharia, M., Zang, R., Zheng, J., & Zumar, C. (2020). Developments in MLflow: A system to accelerate the machine learning lifecycle. ACM
Zurück zum Zitat Chong, L. S., Lim, K. M., & Lee, C. P. (2020). Stock market prediction using ensemble of deep neural networks. In: 2020 IEEE 2nd International Conference on Artificial Intelligence in Engineering and Technology (IICAIET). IEEE Chong, L. S., Lim, K. M., & Lee, C. P. (2020). Stock market prediction using ensemble of deep neural networks. In: 2020 IEEE 2nd International Conference on Artificial Intelligence in Engineering and Technology (IICAIET). IEEE
Zurück zum Zitat Chu, J., Cao, J., & Chen, Y. (2022). An ensemble deep learning model based on transformers for long sequence time-series forecasting. In: Zhang, H., Chen, Y., Chu, X., Zhang, Z., Hao, T., Wu, Z., Yang, Y. (eds.) Neural Computing for Advanced Applications vol. 1638. Springer Chu, J., Cao, J., & Chen, Y. (2022). An ensemble deep learning model based on transformers for long sequence time-series forecasting. In: Zhang, H., Chen, Y., Chu, X., Zhang, Z., Hao, T., Wu, Z., Yang, Y. (eds.) Neural Computing for Advanced Applications vol. 1638. Springer
Zurück zum Zitat Corizzo, R., & Rosen, J. (2023). Stock market prediction with time series data and news headlines: a stacking ensemble approach Corizzo, R., & Rosen, J. (2023). Stock market prediction with time series data and news headlines: a stacking ensemble approach
Zurück zum Zitat Dong, X., Yu, Z., Cao, W., Shi, Y., & Ma, Q. (200). A survey on ensemble learning. 14(2) Dong, X., Yu, Z., Cao, W., Shi, Y., & Ma, Q. (200). A survey on ensemble learning. 14(2)
Zurück zum Zitat Fort, S., Hu, H., & Lakshminarayanan, B. (2020). Deep Ensembles: A Loss Landscape Perspective. arXiv Fort, S., Hu, H., & Lakshminarayanan, B. (2020). Deep Ensembles: A Loss Landscape Perspective. arXiv
Zurück zum Zitat Franses, P. H. (2016). A note on the mean absolute scaled error. 32(1) Franses, P. H. (2016). A note on the mean absolute scaled error. 32(1)
Zurück zum Zitat Ganaie, M. A., Hu, M., Malik, A. K., Tanveer, M., & Suganthan, P. N. (2022). Ensemble deep learning: A review. 115 Ganaie, M. A., Hu, M., Malik, A. K., Tanveer, M., & Suganthan, P. N. (2022). Ensemble deep learning: A review. 115
Zurück zum Zitat Goerg, S. J., & Kaiser, J. (2009). Nonparametric testing of distributions – the Epps-Singleton two-sample test using the empirical characteristic function. The Stata Journal. 9(3) Goerg, S. J., & Kaiser, J. (2009). Nonparametric testing of distributions – the Epps-Singleton two-sample test using the empirical characteristic function. The Stata Journal. 9(3)
Zurück zum Zitat Goodfellow, I., Bengio, Y., & Courville, A. (2016). Deep Learning. Cambridge, MA: The MIT Press. Goodfellow, I., Bengio, Y., & Courville, A. (2016). Deep Learning. Cambridge, MA: The MIT Press.
Zurück zum Zitat Hollander, M., Wolfe, D. A., & Chicken, E. (2013). Nonparametric Statistical Methods (3rd ed.). Wiley. Hollander, M., Wolfe, D. A., & Chicken, E. (2013). Nonparametric Statistical Methods (3rd ed.). Wiley.
Zurück zum Zitat Hu, X. (2021). Stock price prediction based on temporal fusion transformer. In: 2021 3rd International Conference on Machine Learning, Big Data and Business Intelligence (MLBDBI) Hu, X. (2021). Stock price prediction based on temporal fusion transformer. In: 2021 3rd International Conference on Machine Learning, Big Data and Business Intelligence (MLBDBI)
Zurück zum Zitat Hyndman, R. J., & Koehler, A. B. (2006). Another look at measures of forecast accuracy. International Journal of Forecasting. 22(4). Hyndman, R. J., & Koehler, A. B. (2006). Another look at measures of forecast accuracy. International Journal of Forecasting. 22(4).
Zurück zum Zitat Hyndman, R., & Athanasopoulos, G. (2021). Forecasting: Principles and Practice (3rd ed.). OTexts: Melbourne, Australia. Hyndman, R., & Athanasopoulos, G. (2021). Forecasting: Principles and Practice (3rd ed.). OTexts: Melbourne, Australia.
Zurück zum Zitat Leskovec, J., Rajaraman, A., & Ullman, J. D. (2020). Mining of Massive Datasets (3rd ed.). Cambridge University Press. Leskovec, J., Rajaraman, A., & Ullman, J. D. (2020). Mining of Massive Datasets (3rd ed.). Cambridge University Press.
Zurück zum Zitat Li, Y., & Pan, Y. (2022). A novel ensemble deep learning model for stock prediction based on stock prices and news. 13(2) Li, Y., & Pan, Y. (2022). A novel ensemble deep learning model for stock prediction based on stock prices and news. 13(2)
Zurück zum Zitat Li, S., Jin, X., Xuan, Y., Zhou, X., Chen, W., Wang, Y.-X., & Yan, X. (2019). Enhancing the locality and breaking the memory bottleneck of transformer on time series forecasting. In: Advances in Neural Information Processing Systems, vol. 32. Curran Associates, Inc. Li, S., Jin, X., Xuan, Y., Zhou, X., Chen, W., Wang, Y.-X., & Yan, X. (2019). Enhancing the locality and breaking the memory bottleneck of transformer on time series forecasting. In: Advances in Neural Information Processing Systems, vol. 32. Curran Associates, Inc.
Zurück zum Zitat Lim, B., Arik, S. O., Loeff, N., & Pfister, T. (2021). Temporal fusion transformers for interpretable multi-horizon time series forecasting. International Journal of Forecasting. 37(4), Lim, B., Arik, S. O., Loeff, N., & Pfister, T. (2021). Temporal fusion transformers for interpretable multi-horizon time series forecasting. International Journal of Forecasting. 37(4),
Zurück zum Zitat Lim, B., Zohren, S.: Time-series forecasting with deep learning: a survey. 379(2194) Lim, B., Zohren, S.: Time-series forecasting with deep learning: a survey. 379(2194)
Zurück zum Zitat Majiid, M. R. N., Fredyan, R., & Kusuma, G.P. (2023). Application of ensemble transformer-RNNs on stock price prediction of bank central asia. 11(2) Majiid, M. R. N., Fredyan, R., & Kusuma, G.P. (2023). Application of ensemble transformer-RNNs on stock price prediction of bank central asia. 11(2)
Zurück zum Zitat Mendes-Moreira, J., Soares, C., Jorge, A. M., & Sousa, J. F. D. (2012). Ensemble approaches for regression: A survey. 45(1) Mendes-Moreira, J., Soares, C., Jorge, A. M., & Sousa, J. F. D. (2012). Ensemble approaches for regression: A survey. 45(1)
Zurück zum Zitat Mustapa, F. H., & Ismail, M. T. (2019). Modelling and forecasting S &P 500 stock prices using hybrid arima-garch model. Journal of Physics. 1366 Mustapa, F. H., & Ismail, M. T. (2019). Modelling and forecasting S &P 500 stock prices using hybrid arima-garch model. Journal of Physics. 1366
Zurück zum Zitat Olorunnimbe, K., & Viktor, H. L. (2022a). Deep learning in the stock market - a systematic survey of practice, backtesting and applications. Artificial Intelligence Review. Olorunnimbe, K., & Viktor, H. L. (2022a). Deep learning in the stock market - a systematic survey of practice, backtesting and applications. Artificial Intelligence Review.
Zurück zum Zitat Olorunnimbe, K., & Viktor, H. L. (2023). Towards efficient similarity embedded temporal Transformers via extended timeframe analysis. Submitted to Complex & Intelligent Systems. Olorunnimbe, K., & Viktor, H. L. (2023). Towards efficient similarity embedded temporal Transformers via extended timeframe analysis. Submitted to Complex & Intelligent Systems.
Zurück zum Zitat Olorunnimbe, K., Viktor, H.L. (2022). Similarity embedded temporal transformers: Enhancing stock predictions with historically similar trends. In: 26th International Symposium on Methodologies for Intelligent Systems (ISMIS) Olorunnimbe, K., Viktor, H.L. (2022). Similarity embedded temporal transformers: Enhancing stock predictions with historically similar trends. In: 26th International Symposium on Methodologies for Intelligent Systems (ISMIS)
Zurück zum Zitat Ong, E.-J., & Bober, M. (2016). Improved hamming distance search using variable length hashing. In: IEEE Conference on Computer Vision and Pattern Recognition (CVPR). IEEE Ong, E.-J., & Bober, M. (2016). Improved hamming distance search using variable length hashing. In: IEEE Conference on Computer Vision and Pattern Recognition (CVPR). IEEE
Zurück zum Zitat Paquet, E., & Soleymani, F. (2022). QuantumLeap: Hybrid quantum neural network for financial predictions. Expert Systems with Applications. 195 Paquet, E., & Soleymani, F. (2022). QuantumLeap: Hybrid quantum neural network for financial predictions. Expert Systems with Applications. 195
Zurück zum Zitat Pradeepkumar, D., & Ravi, V. (2017). Forecasting financial time series volatility using particle swarm optimization trained quantile regression neural network. 58 Pradeepkumar, D., & Ravi, V. (2017). Forecasting financial time series volatility using particle swarm optimization trained quantile regression neural network. 58
Zurück zum Zitat Prado, M.L.d. Advances in Financial Machine Learning. Wiley Prado, M.L.d. Advances in Financial Machine Learning. Wiley
Zurück zum Zitat Raghubir, P., & Das, S. R. (2010). The long and short of it: Why are stocks with shorter runs preferred? 36(6) Raghubir, P., & Das, S. R. (2010). The long and short of it: Why are stocks with shorter runs preferred? 36(6)
Zurück zum Zitat Russell, S., & Norvig, P. (2016). Artificial Intelligence: A Modern Approach, Global Edition, 4th edn. Pearson Russell, S., & Norvig, P. (2016). Artificial Intelligence: A Modern Approach, Global Edition, 4th edn. Pearson
Zurück zum Zitat Salinas, D., Flunkert, V., Gasthaus, J., & Januschowski, T. (2020). DeepAR: Probabilistic forecasting with autoregressive recurrent networks. 36(3) Salinas, D., Flunkert, V., Gasthaus, J., & Januschowski, T. (2020). DeepAR: Probabilistic forecasting with autoregressive recurrent networks. 36(3)
Zurück zum Zitat Santana Correia, A., & Colombini, E. L. (2022). Attention, please! a survey of neural attention models in deep learning. Artificial Intelligence Review. Santana Correia, A., & Colombini, E. L. (2022). Attention, please! a survey of neural attention models in deep learning. Artificial Intelligence Review.
Zurück zum Zitat Sezer, O. B., Gudelek, M. U., & Ozbayoglu, A. M. (2020). Financial time series forecasting with deep learning: A systematic literature review: 2005-2019. Applied Soft Computing. 90 Sezer, O. B., Gudelek, M. U., & Ozbayoglu, A. M. (2020). Financial time series forecasting with deep learning: A systematic literature review: 2005-2019. Applied Soft Computing. 90
Zurück zum Zitat Soleymani, F., & Paquet, E. (2020). Financial portfolio optimization with online deep reinforcement learning and restricted stacked autoencoder–DeepBreath. Expert Systems with Applications. 156 Soleymani, F., & Paquet, E. (2020). Financial portfolio optimization with online deep reinforcement learning and restricted stacked autoencoder–DeepBreath. Expert Systems with Applications. 156
Zurück zum Zitat Tay, Y., Dehghani, M., Bahri, D., & Metzler, D. (2023). Efficient transformers: A survey. 55(6) Tay, Y., Dehghani, M., Bahri, D., & Metzler, D. (2023). Efficient transformers: A survey. 55(6)
Zurück zum Zitat Taylor, J.W. (2000). A quantile regression neural network approach to estimating the conditional density of multiperiod returns. 19(4) Taylor, J.W. (2000). A quantile regression neural network approach to estimating the conditional density of multiperiod returns. 19(4)
Zurück zum Zitat Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017). Attention is all you need. In: Advances in Neural Information Processing Systems Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017). Attention is all you need. In: Advances in Neural Information Processing Systems
Zurück zum Zitat Wen, M., Li, P., Zhang, L., & Chen, Y. (2019). Stock market trend prediction using high-order information of time series. IEEE Access. 7 Wen, M., Li, P., Zhang, L., & Chen, Y. (2019). Stock market trend prediction using high-order information of time series. IEEE Access. 7
Zurück zum Zitat Wen, R., Torkkola, K., Narayanaswamy, B., Madeka, D. (2017). A multi-horizon quantile recurrent forecaster. In: NIPS’17: Proceedings of the 31st International Conference on Neural Information Processing Systems. Curran Associates Inc. Wen, R., Torkkola, K., Narayanaswamy, B., Madeka, D. (2017). A multi-horizon quantile recurrent forecaster. In: NIPS’17: Proceedings of the 31st International Conference on Neural Information Processing Systems. Curran Associates Inc.
Zurück zum Zitat Wen, Q., Zhou, T., Zhang, C., Chen, W., Ma, Z., Yan, J., Sun, L. (2022). Transformers in Time Series: A Survey. arXiv Wen, Q., Zhou, T., Zhang, C., Chen, W., Ma, Z., Yan, J., Sun, L. (2022). Transformers in Time Series: A Survey. arXiv
Zurück zum Zitat Wilkinson, M.D., Dumontier, M., Aalbersberg, I.J., et al. (2016). The FAIR guiding principles for scientific data management and stewardship. 3(1) Wilkinson, M.D., Dumontier, M., Aalbersberg, I.J., et al. (2016). The FAIR guiding principles for scientific data management and stewardship. 3(1)
Zurück zum Zitat Yang, B., Gong, Z.- J., & Yang, W. (2017). Stock market index prediction using deep neural network ensemble. In: 2017 36th Chinese Control Conference (CCC). IEEE Yang, B., Gong, Z.- J., & Yang, W. (2017). Stock market index prediction using deep neural network ensemble. In: 2017 36th Chinese Control Conference (CCC). IEEE
Metadaten
Titel
Ensemble of temporal Transformers for financial time series
verfasst von
Kenniy Olorunnimbe
Herna Viktor
Publikationsdatum
02.03.2024
Verlag
Springer US
Erschienen in
Journal of Intelligent Information Systems
Print ISSN: 0925-9902
Elektronische ISSN: 1573-7675
DOI
https://doi.org/10.1007/s10844-024-00851-2