Utilization of LSTM (Long Short Term Memory) Based Sentiment Analysis for Stock Price Prediction
DOI:
https://doi.org/10.59888/ajosh.v1i12.141Keywords:
Deep Learning, LSTM, Stock Price, Sentiment AnalysisAbstract
This study aims to utilize sentiment analysis in predicting stock price movements. Sentiment analysis can provide information to investors to understand market sentiment. This study uses a text-based approach by pre-processing data, constructing a sentiment analysis model and evaluating model performance. The collected data is analyzed to identify the text's positive, negative, or neutral sentiments. The approach used in scoring sentiment analysis is the Text blob approach and the Lexicon approach. Differences in the results of the accuracy of the two Sentiment Analysis approaches with the LSTM model have an influence on the prediction results with a better increase in accuracy using the Lexicon Sentiment Analysis approach. Then the LSTM model is implemented to classify texts into the desired sentiment categories. The results of this study are insight into the use of sentiment analysis in predicting stock price movements. The implemented sentiment analysis model can be a useful predictive tool for investors and stock practitioners in making investment decisions.
References
Aasi, B., Imtiaz, S. A., Qadeer, H. A., Singarajah, M., & Kashef, R. (2021, April 21). Stock price prediction using a multivariate multistep LSTM: A sentiment and public engagement analysis model. 2021 IEEE International IOT, Electronics and Mechatronics Conference, IEMTRONICS 2021 - Proceedings. https://doi.org/10.1109/IEMTRONICS52119.2021.9422526
Birjali, M., Kasri, M., & Beni-Hssane, A. (2021). A comprehensive survey on sentiment analysis: Approaches, challenges and trends. Knowledge-Based Systems, 226. https://doi.org/10.1016/j.knosys.2021.107134
Cheng, L. C., Huang, Y. H., & Wu, M. E. (2019). Applied attention-based LSTM neural networks in stock prediction. Proceedings - 2018 IEEE International Conference on Big Data, Big Data 2018, 4716–4718. https://doi.org/10.1109/BigData.2018.8622541
Guo, Y. (2020). Stock Price Prediction Based on LSTM Neural Network: The Effectiveness of News Sentiment Analysis. Proceedings - 2020 2nd International Conference on Economic Management and Model Engineering, ICEMME 2020, 1018–1024. https://doi.org/10.1109/ICEMME51517.2020.00206
Han, Z., Zhao, J., Leung, H., Ma, K. F., & Wang, W. (2021). A Review of Deep Learning Models for Time Series Prediction. In IEEE Sensors Journal (Vol. 21, Issue 6, pp. 7833–7848). Institute of Electrical and Electronics Engineers Inc. https://doi.org/10.1109/JSEN.2019.2923982
ICIEV.2017.8338584. (n.d.).
IEEE Staff. (2016). 2016 International Conference on Signal Processing, Communication, Power and Embedded System (SCOPES). IEEE.
IEEE Staff. (2017). 2017 International Conference on Computer and Applications (ICCA). IEEE.
Institute of Electrical and Electronics Engineers, & IEEE Industrial Electronics Society. (n.d.). Proceedings, 2019 IEEE International Conference on Industrial Cyber Physical Systems (ICPS 2019)?: Howards Plaza Hotel, Taipei, Taiwan, 06-09 May, 2019.
Jariwala, G., Agarwal, H., & Jadhav, V. (2020, November 6). Sentimental Analysis of News Headlines for Stock Market. 2020 IEEE International Conference for Innovation in Technology, INOCON 2020. https://doi.org/10.1109/INOCON50539.2020.9298333
Kong, W., Dong, Z. Y., Jia, Y., Hill, D. J., Xu, Y., & Zhang, Y. (2019). Short-Term Residential Load Forecasting Based on LSTM Recurrent Neural Network. IEEE Transactions on Smart Grid, 10(1), 841–851. https://doi.org/10.1109/TSG.2017.2753802
Liu, S., Liao, G., & Ding, Y. (2018). Stock transaction prediction modeling and analysis based on LSTM. Proceedings of the 13th IEEE Conference on Industrial Electronics and Applications, ICIEA 2018, 2787–2790. https://doi.org/10.1109/ICIEA.2018.8398183
Rafi, S. H., Al-Masood, N., Deeba, S. R., & Hossain, E. (2021). A short-term load forecasting method using integrated CNN and LSTM network. IEEE Access, 9, 32436–32448. https://doi.org/10.1109/ACCESS.2021.3060654
Sarkar, A., Sahoo, A. K., Sah, S., & Pradhan, C. (2020). LSTMSA: A Novel Approach for Stock Market Prediction Using LSTM and Sentiment Analysis. In 2020 International Conference on Computer Science, Engineering and Applications (ICCSEA).
Sharma, S. K. (2021). An Overview on Neural Network and Its Application. International Journal for Research in Applied Science and Engineering Technology, 9(8), 1242–1248. https://doi.org/10.22214/ijraset.2021.37597
Sharma, V., Singh, M., Galgotias College of Engineering and Technology, Galgotias College of Engineering and Technology. Department of Computer Science and Engineering, Galgotias College of Engineering and Technology. Department of Information Technology, Institute of Electrical and Electronics Engineers. Uttar Pradesh Section, & Institute of Electrical and Electronics Engineers. (n.d.). Proceedings, IEEE 2018 International Conference on Advances in Computing, Communication Control and Networking?: (ICACCCN)?: on 12th-13th Oct, 2018.
Shayaa, S., Jaafar, N. I., Bahri, S., Sulaiman, A., Seuk Wai, P., Wai Chung, Y., Piprani, A. Z., & Al-Garadi, M. A. (2018). Sentiment analysis of big data: Methods, applications, and open challenges. IEEE Access, 6, 37807–37827. https://doi.org/10.1109/ACCESS.2018.2851311
Downloads
Published
Issue
Section
License
Copyright (c) 2023 Muhammad Fajrul Aslim, Gerry Firmansyah, Budi Tjahjono, Habibullah Akbar, Agung Mulyo Widodo
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution-ShareAlike 4.0 International. that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work.