4.6 Article

Prediction of stock price direction using the LASSO-LSTM model combines technical indicators and financial sentiment analysis

Journal

PEERJ COMPUTER SCIENCE
Volume 8, Issue -, Pages -

Publisher

PEERJ INC
DOI: 10.7717/peerj-cs.1148

Keywords

LASSO-LSTM model; Stock price forecast; Technical indicators; Financial sentiment analysis; Variable selection

Funding

  1. Graduate Innovation Research Project of Chongqing Technology and Business University, China [yjscxx2022-112-06]

Ask authors/readers for more resources

This article proposes a methodology that combines technical analysis and sentiment analysis to predict stock movement. By crawling financial textual content and stock historical transaction data and utilizing transfer learning and the TTR package, emotions are recognized and technical indicators are calculated. The improved LASSO-LSTM model is used for variable selection, and the LASSO-LSTM model shows a significant improvement in accuracy compared to the baseline LSTM model.
Correctly predicting the stock price movement direction is of immense importance in the financial market. In recent years, with the expansion of dimension and volume in data, the nonstationary and nonlinear characters in finance data make it difficult to predict stock movement accurately. In this article, we propose a methodology that combines technical analysis and sentiment analysis to construct predictor variables and then apply the improved LASSO-LASSO to forecast stock direction. First, the financial textual content and stock historical transaction data are crawled from websites. Then transfer learning Finbert is used to recognize the emotion of textual data and the TTR package is taken to calculate the technical indicators based on historical price data. To eliminate the multi-collinearity of predictor variables after combination, we improve the long short-term memory neural network (LSTM) model with the Absolute Shrinkage and Selection Operator (LASSO). In predict phase, we apply the variables screened as the input vector to train the LASSO-LSTM model. To evaluate the model performance, we compare the LASSO-LSTM and baseline models on accuracy and robustness metrics. In addition, we introduce the Wilcoxon signed rank test to evaluate the difference in results. The experiment result proves that the LASSO-LSTM with technical and sentiment indicators has an average 8.53% accuracy improvement than standard LSTM. Consequently, this study proves that utilizing historical transactions and financial sentiment data can capture critical information affecting stock movement. Also, effective variable selection can retain the key variables and improve the model prediction performance.

Authors

I am an author on this paper
Click your name to claim this paper and add it to your profile.

Reviews

Primary Rating

4.6
Not enough ratings

Secondary Ratings

Novelty
-
Significance
-
Scientific rigor
-
Rate this paper

Recommended

No Data Available
No Data Available