Stock price forecasting using PSO hypertuned neural nets and ensembling

被引:8
作者
Chauhan, Akshat [1 ]
Shivaprakash, S. J. [1 ]
Sabireen, H. [1 ]
Quadir, Md Abdul [1 ]
Venkataraman, Neelanarayanan [1 ]
机构
[1] Vellore Inst Technol, Sch Comp Sci Engn, Chennai 600127, India
关键词
Stock price movement; LSTM; GRU; Time series; Artificial intelligence; Nifty; 50; Binary classification; Particle swarm optimization; PREDICTION;
D O I
10.1016/j.asoc.2023.110835
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
The stock market is a platform that allows individuals and organizations to buy stocks of publicly listed companies. It is imperative for investors and traders to utilize the platform to buy and sell stocks efficiently, but they must also determine when to do it in order to maximize profits. As trading involves holding stocks for shorter periods, projecting the future direction of a stock's price becomes essential. In recent years, deep neural network-based trading strategies have been researched and implemented to identify when a stock's price will increase or decrease. The main issues in implementing such solutions are that they need to deal with the noisy nature of the stock market and the problem of overfitting. The objective of the paper is to put forth an approach that utilizes deep learning techniques to predict price movements in the Nifty 50 index. The paper will explore the use of Recurrent Neural Networks (RNNs) for the given task. The paper will also look into applying metaheuristic algorithms to further improve the results of the prediction models. In this approach, RNNs, including Long ShortTerm Memory (LSTM) and Gated Recurrent Units (GRU), are utilized to predict the movement of the index. The models are trained on a unique and efficient feature set that takes into consideration the stock price of large market capitalization companies present in the National Stock Exchange (NSE). Our findings show that ensembled architectures produce better results than individual models. An LSTM and GRU ensembled architecture produced an accuracy of 56.66% and a precision of 0.4734. Particle swarm optimization (PSO) was put forth as a method to hypertune the models to improve their performance. The LSTM, hypertuned with PSO, produced an accuracy of 57.64% and a precision of 0.2882. To further enhance the model's stock price prediction performance, the LSTM and GRU ensembled architecture was ensembled with the PSO hypertuned LSTM architecture to produce a model that gives the highest accuracy of 57.72%. The proposed ensemble approach outperforms the other cutting edge techniques used to forecast how the stock price of the NSE will move. Additionally, the ensemble method increased precision from 0.2882 to 0.5485, demonstrating that ensembling and the PSO algorithm combine to produce models with superior performance. Based on the results, combining PSO hyper parameter optimized models with ensembling provides a good approach towards price movement predictions and also shows the potential of using this approach in other Artificial Intelligence (AI) fields to improve the performance of deep learning models.(c) 2023 Elsevier B.V. All rights reserved.
引用
收藏
页数:20
相关论文
共 31 条
[1]   Review of ML and AutoML Solutions to Forecast Time-Series Data [J].
Alsahref, Ahmad ;
Aggarwal, Karan ;
Sonia ;
Kumar, Manoj ;
Mishra, Ashutosh .
ARCHIVES OF COMPUTATIONAL METHODS IN ENGINEERING, 2022, 29 (07) :5297-5311
[2]   A Prediction of Stock Price Movements Using Support Vector Machines in Indonesia [J].
Ardyanta, Ervandio Irzky ;
Sari, Hasrini .
JOURNAL OF ASIAN FINANCE ECONOMICS AND BUSINESS, 2021, 8 (08) :399-407
[3]  
Bhardwaj K, 2021, Arxiv, DOI arXiv:2106.01920
[4]  
Bollinger J., 1992, Stocks and Commodities, V10, P47
[5]  
Staudemeyer RC, 2019, Arxiv, DOI arXiv:1909.09586
[6]   Technical analysis and the London stock exchange: testing the MACD and RSI rules using the FT30 [J].
Chong, Terence Tai-Leung ;
Ng, Wing-Kam .
APPLIED ECONOMICS LETTERS, 2008, 15 (14) :1111-1114
[7]  
Cooijmans T., 2016, Recurrent Batch Normalization
[8]   Stock Prediction Based on Optimized LSTM and GRU Models [J].
Gao, Ya ;
Wang, Rong ;
Zhou, Enmin .
SCIENTIFIC PROGRAMMING, 2021, 2021
[9]  
Gers FA, 1999, IEE CONF PUBL, P850, DOI [10.1162/089976600300015015, 10.1049/cp:19991218]
[10]   Predicting stock price trends based on financial news articles and using a novel twin support vector machine with fuzzy hyperplane [J].
Hao, Pei-Yi ;
Kung, Chien-Feng ;
Chang, Chun-Yang ;
Ou, Jen-Bing .
APPLIED SOFT COMPUTING, 2021, 98