A Novel Model to Minimize Time Series Forecasting Error using Convolutional Attention

Authors

  • Pranav Pathak Westmount Charter School
  • Daniel Plymire

DOI:

https://doi.org/10.47611/jsrhs.v13i2.6809

Keywords:

Time series, forecasting, deep learning, stock price, covid

Abstract

The main consideration of this paper is time series forecasting using machine learning methods. While hundreds of studies have been conducted on this topic, we propose a novel, yet intuitive model, using technical indicators in combination with a focus on lagged relationships and the machine learning technique called BEDCA (Belief Encoder-Decoder with Convolutional Attention). BEDCA takes into consideration technical indicators to improve predictive accuracy. To evaluate our model, we used historical Coca-Cola stock data, room temperature data, and daily data including the number of COVID-19 case data. We found that our model trained relatively quickly and had a high accuracy (low loss). Overall, BEDCA outperformed the standard Long-Short Term Memory (LSTM) network on all three datasets, achieving MAE reduction of 74.1%, 41.3%, and 69.0%, respectively, although it took 3.05, 3.26, and 3.20 times longer to train on each dataset respectively. Our results highlight that convolutional attention is a promising form of attention and that technical indicators are important considerations for time series data.

Downloads

Download data is not yet available.

References or Bibliography

Anthony, Q., Biderman, S., & Schoelkopf, H. (2023, August 18). Transformer Math 101. EleutherAI. https://blog.eleuther.ai/transformer-math/

Chen, J. (2022, September 18). Triple Exponential Average (TRIX): Overview, calculations. Investopedia. https://www.investopedia.com/terms/t/trix.asp

Coca Cola stock - live and updated. (2024, January 28). Kaggle. https://www.kaggle.com/datasets/kalilurrahman/coca-cola-stock-live-and-updated/

Hayes, A. (2023, September 30). Bollinger Bands®: What They Are, and What They Tell Investors. Investopedia. https://www.investopedia.com/terms/b/bollingerbands.asp

IBM. (n.d.). What are recurrent neural networks? https://www.ibm.com/topics/recurrent-neural-networks

Latest COVID-19 confirmed cases Kerala. (2022, May 22). Kaggle. https://www.kaggle.com/datasets/anandhuh/covid19-confirmed-cases-kerala

Lee, M. C., Chang, J. W., Yeh, S. C. et al. (2022, January 28). Applying attention-based BiLSTM and technical indicators in the design and performance analysis of stock trading strategies. Neural Comput & Applic 34, 13267–13279. https://doi.org/10.1007/s00521-021-06828-4

Li, A. W., Bastos, G. S. (2020, October 12). Stock Market Forecasting Using Deep Learning and Technical Analysis: A Systematic Review. IEEE, 8. https://doi.org/10.1109/ACCESS.2020.3030226

Padial, D. L. (2022, August 23). Technical Analysis Library in Python Documentation. Technical Analysis Library in Python. https://technical-analysis-library-in-python.readthedocs.io/_/downloads/en/latest/pdf/

Sharkawy, A. N. (2020, August 20). Principle of Neural Network and Its Main Types: Review. Journal of Advances in Applied & Computational Mathematics, 7. https://doi.org/10.15377/2409-5761.2020.07.2

Sang, C., & Pierro, M. D. (2018, November 14). Improving trading technical analysis with TensorFlow Long Short-Term Memory (LSTM) Neural Network. The Journal of Finance and Data Science, 5(1), 1–11. https://doi.org/10.1016/j.jfds.2018.10.003

Tableau. (n.d.). Time Series Forecasting: Definition, Applications, and Examples. https://www.tableau.com/learn/articles/time-series-forecasting#::text=It%20has%20tons%20of%20pr

Time series room temperature data. (2022, November 21). Kaggle. https://www.kaggle.com/datasets/vitthalmadane/ts-temp-1?select=MLTempDataset1.csv

Zhang, L., Wang, R., Li, Z., Li, J., Ge, Y., Wa, S., Huang, S., & Lv, C. (2023, September 13). Time-Series Neural Network: A High-Accuracy Time-Series forecasting method based on kernel filter and time attention. Information, 14(9), 500. https://doi.org/10.3390/info14090500

Published

05-31-2024

How to Cite

Pathak, P., & Plymire, D. (2024). A Novel Model to Minimize Time Series Forecasting Error using Convolutional Attention. Journal of Student Research, 13(2). https://doi.org/10.47611/jsrhs.v13i2.6809

Issue

Section

HS Research Articles