[Paper Review] Stock Market Price Prediction: A Hybrid LSTM and Sequential Self-Attention based Approach
This paper proposes a hybrid deep learning model, LSTM-SSAM, combining Long Short-Term Memory networks with a Sequential Self-Attention Mechanism to improve stock price prediction accuracy. The model leverages historical price trends and seasonality, achieving state-of-the-art performance on SBIN, HDFCBANK, and BANKBARODA datasets with superior RMSE and R² scores compared to existing methods.
One of the most enticing research areas is the stock market, and projecting stock prices may help investors profit by making the best decisions at the correct time. Deep learning strategies have emerged as a critical technique in the field of the financial market. The stock market is impacted due to two aspects, one is the geo-political, social and global events on the bases of which the price trends could be affected. Meanwhile, the second aspect purely focuses on historical price trends and seasonality, allowing us to forecast stock prices. In this paper, our aim is to focus on the second aspect and build a model that predicts future prices with minimal errors. In order to provide better prediction results of stock price, we propose a new model named Long Short-Term Memory (LSTM) with Sequential Self-Attention Mechanism (LSTM-SSAM). Finally, we conduct extensive experiments on the three stock datasets: SBIN, HDFCBANK, and BANKBARODA. The experimental results prove the effectiveness and feasibility of the proposed model compared to existing models. The experimental findings demonstrate that the root-mean-squared error (RMSE), and R-square (R2) evaluation indicators are giving the best results.
Motivation & Objective
- To develop a deep learning model that improves stock price prediction accuracy by leveraging historical price trends and seasonality.
- To integrate sequential self-attention mechanisms into LSTM to better capture long-range dependencies and critical price patterns.
- To evaluate the proposed model on real-world stock datasets and compare its performance against existing state-of-the-art models.
- To minimize prediction errors using RMSE and maximize predictive power using R² as key evaluation metrics.
Proposed method
- The model uses a Long Short-Term Memory (LSTM) network as the primary sequence encoder to learn temporal dependencies in historical stock prices.
- A Sequential Self-Attention Mechanism is applied after the LSTM layers to dynamically weigh the importance of different time steps in the sequence.
- The attention mechanism computes context-aware representations by focusing on relevant historical price patterns and trends.
- The final prediction head generates future price forecasts based on the enhanced contextual features from the attention-modulated LSTM outputs.
- The model is trained end-to-end using mean squared error loss to minimize prediction error.
- The architecture is evaluated on three Indian banking stocks: SBIN, HDFCBANK, and BANKBARODA.
Experimental results
Research questions
- RQ1Can a hybrid LSTM and sequential self-attention model improve stock price prediction accuracy compared to standalone LSTM or other deep learning models?
- RQ2To what extent does the self-attention mechanism enhance the model's ability to capture long-term dependencies and critical price trends?
- RQ3How does the proposed LSTM-SSAM model perform on diverse stock datasets in terms of RMSE and R² metrics?
- RQ4Does the integration of sequential self-attention lead to more robust and generalizable predictions across different market conditions?
Key findings
- The LSTM-SSAM model achieved the lowest Root-Mean-Squared Error (RMSE) among all compared models on the SBIN, HDFCBANK, and BANKBARODA datasets.
- The model recorded the highest R-squared (R²) values, indicating strong explanatory power and fit to actual price movements.
- The integration of sequential self-attention significantly improved the model's ability to focus on salient price patterns and reduce noise in predictions.
- The proposed model outperformed baseline models, including standard LSTM and other attention-enhanced architectures, in both RMSE and R² metrics.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.