Ijraset Journal For Research in Applied Science and Engineering Technology
Authors: Yash Gaur, Yash Singh, Utkarsh Singh, Mr. Pramit Kumar Samant
DOI Link: https://doi.org/10.22214/ijraset.2023.57673
Certificate: View Certificate
This research proposes an innovative approach involving the implementation of an LSTM (Long Short-Term Memory) model for forecasting stock prices. The predictive analysis relies on historical data to anticipate future stock movements. The utilization of a Stacked LSTM is advocated for this prediction task, as it effectively incorporates past information, enhancing the accuracy of predictions. The Stacked LSTM model proves advantageous in capturing long-term dependencies within the data, rendering it well-suited for the dynamic and intricate nature of stock market prediction. Following the model\'s training phase, its efficacy will be evaluated using test data, and subsequently, the model will be applied to forecast stock prices for the upcoming 30 days.
I. INTRODUCTION
Stock market prediction involves forecasting the future value of individual stocks through fundamental analysis of a company's economic health and historical stock performance. The inherently volatile stock market is influenced by global economic conditions, unforeseen events, and a company's financial track record, posing challenges for accurate predictions. Rational and irrational behavior, shaped by physical and psychological factors, adds complexity. Despite these challenges, stock market prediction is crucial for investors to identify optimal times to buy or sell equities. The potential for data analysis to revolutionize this field is significant. The efficient market hypothesis posits that stock prices already incorporate all available information, reacting swiftly to developments. Analyzing historical spot prices influenced by market events enables forecasting future behavior. In predictive analysis, Machine Learning (ML) techniques on historical stock prices play a pivotal role. ML, particularly recurrent neural networks like Long Short-Term Memory (LSTM) networks, excels in uncovering hidden patterns, enhancing forecast accuracy. LSTMs, with long-term memory capabilities, prove effective in modeling sequential data and understanding the intricate dynamics of human behavior, making them suitable for accurate stock price prediction.
II. LITERATURE SURVEY
Table 1: Literature Survey Overview
S. NO |
Paper |
Author Name |
Year |
Key Points |
1 |
Survey of stock market prediction using machine learning approach |
Ashish Sharma et al. |
2017 |
Improving stock market prediction, the paper advocates a multiple regression method using diverse market data to boost accuracy with additional variables. |
2 |
Short-term prediction for opening price of stock market based on self-adapting variant PSO-Elman neural network |
Ze Zhang et al. |
2017 |
Examining stock market dynamics as non-linear, they employ Elman neural network, augmented by self-adapting PSO algorithm, demonstrating superior empirical validation against traditional models. |
3 |
Using social media mining technology to assist in price prediction of stock market. |
Yaojun Wang and Yaoqing Wang |
2016 |
They emphasize on sentiment analysis through social media mining. Their model, integrating multiple factors, enhances accuracy in short-term stock price predictions. |
4 |
Stock Price Prediction Using LSTM |
Pramod B S and Mallikarjuna Shastry P. M. |
2021 |
It address stock value prediction complexities using the LSTM algorithm, incorporating market data and recurrent neural networks and Stochastic gradient descent algorithm improves accuracy. |
5 |
Deep Learning-Based Stock Price Prediction Using LSTM and Bi-Directional LSTM Model |
Md. Arif Istiake Sunny et al. |
2020 |
Sunny, Maswood and team unveil a stock price prediction framework with LSTM and BI-LSTM RNN models, emphasizing hyper-parameter tuning for heightened accuracy and validation through RMSE measurement. |
6 |
Stock price prediction using LSTM, RNN and CNN-sliding window model |
R Vinaya-kumar et al. |
2017 |
They suggest a model-independent stock price forecasting using deep learning for NSE-listed firms, comparing three models with sliding window evaluation via percentage error. |
7 |
Efficacy of News Sentiment for Stock Market Prediction |
Jay Shankar Prasad et al. |
2019 |
Kalra and Prasad tackle stochastic stock market forecasting, integrating historical data and news articles. Achieving 65.30% to 91.2% accuracy, they use Naïve Bayes classifier and sentiment analysis. |
8 |
Literature review on Artificial Neural Networks Techniques Application for Stock Market Prediction and as Decision Support Tools |
Dionysia Kowanda et al. |
2018 |
It reviews ANN applications in stock market prediction finding high accuracy in four studies, with the Signal Processing / Gaussian Zero-Phase Filter achieving 98.7% accuracy. |
9 |
Stock Market Movement Prediction using LDA-Online Learning Model. |
Nuanwan Soonthomphisaj et al. |
2018 |
Introducing LDA-Online for stock prediction, it outperforms ANN, KNN, and Decision Tree on NASDAQ stocks, achieving the highest accuracies for GOOGLE, AMAZON, APPLE, and FACEBOOK stocks.
|
10 |
Stock Market Prediction Analysis by Incorporating Social and News Opinion and Sentiment |
Zhiping Lin et al. |
2018 |
Their method, incorporating news sentiments, surpasses existing methods in minimizing Mean Square Error with actual stock price datasets. |
11 |
Stock Price Prediction Using News Sentiment Analysis. |
Vijayvergia et al. |
2019 |
They improve stock price prediction by merging S&P500 prices with 265,000 news articles, leveraging deep learning and cloud computing for enhanced accuracy. |
12 |
Combining of random forest estimates using LSboost for stock market index prediction. |
Akanksha Juneja et al. |
2017 |
They forecast stock market indices with a decade of Indian stock market data. Their LS-RF model, incorporating LSboost in a Random Forest, outperforms Support Vector Regression, showing promise in stock price forecasting. |
13 |
Research on Stock Price Prediction Method Based on Convolutional Neural Network |
Sayavong Lounnapha et al |
2019 |
They introduces a stock price prediction model using CNNs, excelling in trend identification and accuracy |
14 |
Enhancing Profit by Predicting Stock Prices using Deep Neural Networks |
Soheila Abrishami, et al. |
2019 |
It present a deep learning system for NASDAQ stock value forecasting, excelling in multi-step-ahead predictions with an autoencoder and Stacked LSTM Autoencoder, outperform-ing existing methodolog-ies. |
15 |
Stock Price Prediction Using LSTM on Indian Share Market |
Soumik Bose et al. |
2019 |
Addressing stock market prediction challenges, they employ machine learning, particularly the LSTM model, aligned with efficient market theory. Their framework analyzes and predicts future growth using historical stock price data. |
16 |
A graph-based CNN-LSTM stock price prediction algorithm with leading indicators. |
Jimmy Ming-Tai Wu et al. |
2021 |
SACLSTM addresses challenges in financial market trend forecasting by combining convolution and LSTM. Outperforming statistical methods, traditional CNN, and LSTM, it enhances accuracy through data integration and leading indicators. |
III. PROPOSED WORK
In the pursuit of accurate stock market predictions, this project leveraged the advanced Long Short-Term Memory (LSTM) model—a sophisticated Recurrent Neural Network (RNN) variant designed to overcome the challenges associated with handling long-term dependencies and information retention. The LSTM model, featuring Forget, Input, and Output gates, excels in remembering crucial information over extended periods, a limitation faced by traditional RNNs due to vanishing gradients. The Forget gate assesses the relevance of previous data, the Input gate learns from current input, and the Output gate passes updated information to subsequent timestamps. Acknowledging the necessity of a model capable of leveraging historical data while retaining memory, the LSTM model emerged as a fitting choice for stock price prediction. Amidst alternative methods like Regression and Support Vector Regression (SVR), LSTM proved advantageous. The constructed LSTM model demonstrated its efficacy in predicting stock prices, evaluated through a thorough train-test assessment. This model was then deployed to forecast stock values for the upcoming 30 days, showcasing its practical applicability in the dynamic realm of stock market forecasting.
[1] Survey of stock market prediction using machine learning approach Authors: Ashish Sharma, Dinesh Bhuriya, Upendra Singh 2017 International conference of Electronics, Communication and Aerospace Technology (ICECA) [2] Short-term prediction for opening price of stock market based on self-adapting variant PSO-Elman neural network. Authors: Ze Zhang, Yongjun Shen, Guidong Zhang, Yongqiang Song, Yan Zhu. Proceedings of the 8th IEEE International Conference on Software Engineering and Service Science (ICSESS), 2017. [3] Using social media mining technology to assist in price prediction of stock market. Authors: Yaojun Wang, Yaoqing Wang. Proceedings of the 2016 IEEE International Conference on Big Data Analysis (ICBDA). [4] Stock Price Prediction Using LSTM, January 2021 at TEST ENGINEERING AND MANAGEMENT Authors: Pramod B S, Mallikarjuna Shastry P. M. [5] Deep Learning-Based Stock Price Prediction Using LSTM and Bi-Directional LSTM Model, IEEE-2020. Authors: Md. Arif Istiake Sunny, Mirza Mohd Shahriar Maswood et al. [6] Stock price prediction using LSTM, RNN and CNN-sliding window model, IEEE-2017. Authors: Sreelekshmy Selvin, R Vinayakumar et al. [7] Efficacy of News Sentiment for Stock Market Prediction. Authors: Sneh Kalra, Jay Shankar Prasad. Proceedings of the 2019 International Conference on Machine Learning, Big Data, Cloud, and Parallel Computing (COMITCON). [8] Literature review on Artificial Neural Networks Techniques Application for Stock Market Prediction and as Decision Support Tools published in 2018 Third International Conference on Informatics and Computing (ICIC) Authors: Muhammad Firdaus, Swelandiah Endah Pratiwi , Dionysia Kowanda , Anacostia Kowanda [9] Stock Market Movement Prediction using LDA-Online Learning Model. Authors: Tanapon Tantisripreecha, Nuanwan Soonthomphisaj, 2018 19th IEEE/ACIS International Conference on Software Engineering, Artificial Intelligence, Networking and Parallel/Distributed Computing (SNPD). [10] Stock Market Prediction Analysis by Incorporating Social and News Opinion and Sentiment. Authors: Zhaoxia Wang, Seng-Beng Ho, Zhiping Lin, 2018 IEEE International Conference on Data Mining Workshops (ICDMW) [11] Stock Price Prediction Using News Sentiment Analysis. Authors: Vijayvergia, David C. Anastasiu,2019 IEEE Fifth International Conference on Big Data Computing Service and Applications (BigDataService). [12] Combining of random forest estimates using LSboost for stock market index prediction. Authors: Nonita Sharma, Akanksha Juneja 2017 2nd International Conference for Convergence in Technology (I2CT) [13] Research on Stock Price Prediction Method Based on Convolutional Neural Network, IEEE 2019. Authors: Sayavong Lounnapha et al. [14] Enhancing Profit by Predicting Stock Prices using Deep Neural Networks, IEEE 2019. Authors: Soheila Abrishami, et al. [15] Stock Price Prediction Using LSTM on Indian Share Market, in 2019 at the Proceedings of 32nd International Conference on Computer Applications in Industry and Engineering. Authors: Achyut Ghosh, Soumik Bose et al. [16] A graph-based CNN-LSTM stock price prediction algorithm with leading indicators, 2021. Authors: Jimmy Ming-Tai Wu, Zhongcui Li, Norbert Herencsar, Bay Vo & Jerry Chun-Wei Lin. [17] Stock Market Prediction with Gaussian Naïve Bayes Machine Learning Algorithm. Authors: Emest Kwame Ampomah, Gabriel Nyame, Zhiguang Qin, Prince Clement Addo, Enoch Opanin Gyamfi and Michael Gyan. [18] Efficient Stock-Market Prediction Using Ensemble Support Vector Machine, 2020. Authors: Isaac Kofi Nti*, Adebayo Felix Adekoya, and Benjamin Asubam Weyori. [19] Stock Market Prediction, International Journal of Innovative Technology and Exploring Engineering (LJITEE), July 2020. Authors: Sharanya Banerjee, Neha Dabeeru, R. Lavanya. [20] Sentiment Analysis of Twitter Data for Predicting Stock Market Movements at International conference on Signal Processing, Communication, Power and Embedded System (SCOPES)-2016. Author: Venkata Sasank Pagolu, Kamal Nayan Reddy Challa, Ganapati Panda and Babita Majhi. [21] Stock market prediction using deep learning algorithms Authors: Mukherjee, S., Sadhukhan, B., Sarkar, N., Roy, D., & De, S. (2021) at CAAI Transactions on Intelligence Technology. [22] John, A., & Latha, T. (2023). Stock market prediction based on deep hybrid RNN model and sentiment analysis. [23] Koukaras, P., Nousi, C., & Tjortjis, C. (2022). Utilizing Microblogging Sentiment Analysis and Machine Learning for Stock Market Prediction at Telecom. [24] Mintaryaa, L. N., Halima, J. N. M., Angie, C., Achmada, S., & Kurniawana, A. (2022). A Systematic Literature Review on Machine Learning Approaches in Stock Market Prediction. In *Proceedings of the 7th International Conference on Computer Science and Computational Intelligence. [25] Awad, A. L., Elkaffas, S. M., & Fakhr, M. W. (2023). Stock Market Prediction Using Deep Reinforcement Learning. Applied System Innovation
Copyright © 2023 Yash Gaur, Yash Singh, Utkarsh Singh, Mr. Pramit Kumar Samant. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
Paper Id : IJRASET57673
Publish Date : 2023-12-21
ISSN : 2321-9653
Publisher Name : IJRASET
DOI Link : Click Here