Forecasting results for stock markets exhibit variabilities in forecasting accuracy as the tenure of prediction is varied. Typically stocks are predicted for long, short as well as mid term tenures based on the tenure of prediction. While longer tenures have relatively much larger data to be trained as training data, divergences are also potentially large as the forecasting period may render higher randomness due to unprecedented events. The short term forecasting is relatively less prone to unprecedented events due to the tenure of forecasting. However, the lesser amount of training data may result in less accurate pattern recognition. A common ground is typically found in terms of mid term forecasting. This paper presents an experimental evaluation of all three formats of forecasting based on the training, testing split. The deep neural network model is used for the forecasting purpose and the forecasting MAPE and accuracy has been tabulated for a multitude of stocks. The comparative values of the MAPE for prediction have been tabulated to estimate prediction performance of the proposed approach.
Introduction
Stock movement forecasting is vital for navigating the volatile financial markets and making informed investment decisions. It helps investors manage risk, optimize portfolios, and time buy/sell actions effectively. Forecasting can be short-, mid-, or long-term, and increasingly incorporates global factors via opinion mining and sentiment analysis from financial news and social media to capture investor sentiment.
The proposed forecasting model uses a combination of data preprocessing with Discrete Wavelet Transform (DWT) to filter noise from stock price signals and a deep neural network (DNN) for pattern recognition. A moving window technique captures recent trends, improving prediction accuracy over varying time horizons. The training algorithm includes momentum-based weight updates to ensure convergence.
Experimental results on Tesla stock data over 10 years demonstrate the model’s strong performance, with mean absolute percentage errors (MAPE) of 2.64% for long-term (1 year), 5.14% for mid-term (100 days), and 4.46% for short-term (10 days) forecasts, achieving overall accuracy around 97%. Compared to other models and previous studies, the proposed method yields lower prediction errors across multiple stocks, indicating its effectiveness in stock market forecasting.
Conclusion
This paper presents a DWT-Neural Network based approach for forecasting stock trends over a varied interval period. The categorization of the forecasting has been done based on the number of samples ahead in forecasting. A 365, 100 and 10 day split has been chosen for the long, mid and short term forecasts respectively.
An illustration analysis has been made for the Tesla stocks over the variable forecasting period. The prediction MAPE analysis shows that the accuracy achieved is 97.36%, 94.86% and 95.54% for long, mid and short term forecasts respectively, with a mean MAPE of 3% across all intervals of forecast. The model also attains an MAPE of around 3% across various stocks for benchmark S&P 500 dataset obtained from Yahoo Finance. Low values of the MAPE ascertains accurate prediction of the stock trends.
References
[1] Y. Soun, J. Yoo, M. Cho, J. Jeon and U. Kang, \"Accurate Stock Movement Prediction with Self-supervised Learning from Sparse Noisy Tweets,\" 2022 IEEE International Conference on Big Data (Big Data), Osaka, Japan, 2022, pp. 1691-1700.
[2] F. Juairiah, M. Mahatabe, H. B. Jamal, A. Shiddika, T. Rouf Shawon and N. Chandra Mandal, \"Stock Price Prediction: A Time Series Analysis,\" 2022 25th International Conference on Computer and Information Technology (ICCIT), IEEE, 2022, pp. 153-158
[3] Jithin Eapen; Doina Bein; Abhishek Verma, “Novel Deep Learning Model with CNN and Bi-Directional LSTM for Improved Stock Market Index Prediction”, 2019 IEEE 9th Annual Computing and Communication Workshop and Conference (CCWC), IEEE 2019 pp. 0264-0270.
[4] Min Wen; Ping Li; Lingfei Zhang; Yan Chen, “Stock Market Trend Prediction Using High-Order Information of Time Series”, IEEE Access 2019, Volume 7, pp : 28299 – 28308.
[5] Y Guo, S Han, C Shen, Y Li, X Yin, Y Bai, “An adaptive SVR for high-frequency stock price forecasting”, Volume-6, IEEE Access 2018, pp: 11397 – 11404.
[6] MS Raimundo, J Okamoto, “SVR-wavelet adaptive model for forecasting financial time series”, 2018 International Conference on Information and Computer Technologies (ICICT), IEEE 2018, pp. 111-114.
[7] Y Baek, HY Kim, “ModAugNet: A new forecasting framework for stock market index value with an overfitting prevention LSTM module and a prediction LSTM module” Journal of Expert System and Applications, Elsevier 2018, Volule-113, pp: 457-480.
[8] S Selvin, R Vinayakumar, E. A Gopalakrishnan ; Vijay Krishna Menon; K. P. Soman, “Stock price prediction using LSTM, RNN and CNN-sliding window model”, 2017 International Conference on Advances in Computing Communications and Informatics (ICACCI), IEEE 2017, pp. 1643-1647.
[9] Z Zhao, R Rao, S Tu, J Shi, “Time-weighted LSTM model with redefined labeling for stock trend prediction”, 2017 IEEE 29th International Conference on Tools with Artificial Intelligence (ICTAI), pp. 1210-1217.
[10] DMQ Nelson, ACM Pereira, Renato A. de Oliveira , “Stock market\'s price movement prediction with LSTM neural networks”, 2017 International Joint Conference on Neural Networks (IJCNN), IEEE 2017, pp. 1419-1426
[11] M Billah, S Waheed, A Hanifa, “Stock market prediction using an improved training algorithm of neural network”, 2016 2nd International Conference on Electrical, Computer & Telecommunication Engineering (ICECTE), IEEE 2016, pp. 1-4,
[12] HJ Sadaei, R Enayatifar, MH Lee, M Mahmud, “A hybrid model based on differential fuzzy logic relationships and imperialist competitive algorithm for stock market forecasting”, Journal of Applied Soft Computing, Elsevier 2016, Volume 40, pp: 132-149.
[13] GRM Lincy, CJ John, “A multiple fuzzy inference systems framework for daily stock trading with application to NASDAQ stock exchange”, Journal of Expert Systems with Applications, Volume-44, Issue-C, ACM 2016.
[14] YE Cakra, BD Trisedya, “Stock price prediction using linear regression based on sentiment analysis”, 2015 International Conference on Advanced Computer Science and Information Systems (ICACSIS), IEEE 2015, pp: 147-154.
[15] GV Attigeri, MP MM, RM Pai, “Stock market prediction: A big data approach”, TENCON 2015 - 2015 IEEE Region 10 Conference”, pp: 1-5.
[16] J Patel, S Shah, P Thakkar, K Kotecha, “Predicting stock market index using fusion of machine learning techniques”, Journal of Expert Systems with Applications, Elsevier 2015, Volume 42, Issue 4, pp: 2162-2172.
[17] M Xu, Y Lan, D Jiang, “Unsupervised Learning Part-Based Representation for Stocks Market Prediction”, 2015 8th International Symposium on Computational Intelligence and Design (ISCID)”, IEEE 2015, pp: 63-66,
[18] KN Devi, VM Bhaskaran, “Cuckoo optimized SVM for stock market prediction”, 2015 International Conference on Innovations in Information, Embedded and Communication Systems (ICIIECS), IEEE 2015, , pp: 1-5
[19] A Yoshihara, K Fujikawa, K Seki, K Uehara, “Predicting stock market trends by recurrent deep neural networks”, Pacific Rim International Conference on Artificial Intelligence PRICAI 2014: PRICAI 2014: Trends in Artificial Intelligence, Lecture Notes in Computer Science, Volume-8862 , Springer 2014, pp 759-769.
[20] Alexander Porshnev; Ilya Redkin; Alexey Shevchenko, “Machine Learning in Prediction of Stock Market Indicators Based on Historical Data and Data from Twitter Sentiment Analysis”,13th International Conference on Data Mining Workshops, IEEE 2013, pp. 440-444.
[21] Chang Sim Vui; Gan Kim Soon; Chin Kim On; Rayner Alfred; Patricia Anthony, “A review of stock market prediction with Artificial neural network (ANN)”, 2013 IEEE International Conference on Control System, Computing and Engineering, IEEE 2013, pp. 477-482.
[22] Y. Li, L. Chen, C. Sun, G. Liu, C. Chen and Y. Zhang, \"Accurate Stock Price Forecasting Based on Deep Learning and Hierarchical Frequency Decomposition,\" in IEEE Access, vol. 12, pp. 49878-49894, 2024.
[23] A Subakkar, S Graceline Jasmine, L Jani Anbarasi, J Ganesh, CM Yuktha, “An Analysis on Tesla\'s Stock Price Forecasting Using ARIMA Model”, Proceedings of the International Conference on Cognitive and Intelligent Computing, Springer, 2023, pp 83–89.