Skip to main content

Advertisement

Log in

Optimized long short-term memory-based stock price prediction with sentiment score

  • Original Article
  • Published:
Social Network Analysis and Mining Aims and scope Submit manuscript

Abstract

Sentiment analysis examines the emotional content of a statement, such as views, assessments, feelings, or attitudes about a topic, human, or object. Emotions can be categorized as either unbiased, good, or bad. It determines how people feel about the company online through social media. Based on the sentiments, the problem of solving the stock price prediction model is advantageous as it involves the sentiment score evaluated from the text information. This work introduces a new stock price prediction considering sentiment scores from text info in this concern. For that, we have considered news data and stock data. Moreover, this work falls under bigdata perspective by increasing the data size. The proposed model includes two major steps: feature extraction and prediction. Feature extraction takes place under two scenarios: features from news data and features from stock data. Features like Bag of words, n-Gram, TFIDF, and Improved cosine similarity are extracted from the news data, and features like improved exponential moving average and other existing technical indicator-based features such as ATR, TR are extracted from stock data. Both the feature sets are fused to determine the final prediction results. Particularly, this final observation involves the sentiments from the given news data. For this, optimized LSTM model is used, where the optimal training process will be carried out by a new Harris Hawks Induced Sparrow Search Optimization via tuning the optimal weights. The proposed model is the combination of Harris Hawks Optimization Algorithm and Sparrow Search Algorithm, respectively. Finally, the performance of proposed work will be evaluated over the other conventional models with respect to different measures.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9

Similar content being viewed by others

Data availability

The datasets (datasets 1–6) were collected. "The stock dataset includes two companies such as Reliance Communications and Relaxo Footwear and TCS. In addition, each company includes 3 datasets (a) in daily option, set start day 1–1-2019 and end day 1-12-2020, (b) in monthly option, set start jan2000 and end dec2020, and (c) in yearly option, set year 2000."

Abbreviations

SA:

Sentiment analysis

NLP:

Natural language processing

Multi-AFM:

Multi-attention fusion modeling

CNN:

Convolutional neural network

SLCABG:

Sentiment Lexicon Convolutional Neural Network and Bi-GRU

TBoC:

Tagged bag-of-concepts

Bi-GRU:

Bidirectional gated recurrent unit

ATR:

Average true range

TR:

True range

IR:

Information retrieval

ML:

Machine learning

TFIDF:

Term frequency inverse document frequency

BOW:

Bag of words

LSTM:

Long short-term memory

SSA:

Sparrow search algorithm

HHO:

Harris Hawks Optimization

ANN:

Artificial neural network

References

Download references

Funding

This research did not receive any specific funding.

Author information

Authors and Affiliations

Authors

Contributions

YA conceived the presented idea and designed the analysis. Also, he carried out the experiment and wrote the manuscript with support from SKAP. All authors discussed the results and contributed to the final manuscript. All authors read and approved the final manuscript.

Corresponding author

Correspondence to Yalanati Ayyappa.

Ethics declarations

Conflict of interest

The authors declare no conflict of interest.

Informed consent

Not applicable.

Ethical approval

The conducted research is not related to either human or animal use.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Ayyappa, Y., Siva Kumar, A.P. Optimized long short-term memory-based stock price prediction with sentiment score. Soc. Netw. Anal. Min. 13, 13 (2023). https://doi.org/10.1007/s13278-022-01004-5

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s13278-022-01004-5

Keywords

Navigation