Stock Sentiment Prediction of LQ-45 Based on News Articles Using LSTM
DOI:
https://doi.org/10.30871/jaic.v9i4.9699Keywords:
LQ-45, Realtime Sentiment Prediction, LSTM, Financial News RSS, Stock MarketAbstract
The growth in the number of investors in the financial market indicates that the investment world is currently experiencing rapid development. One of the long-term investment instruments that has experienced significant growth in the financial market is the stock market. Growth data as of September 2024 sourced from the Indonesia Stock Exchange report reveals that the number of stock market investors has reached more than 6 million single investor identification (SID). The share price of a company can be influenced by two main factors, namely internal factors and external factors. Internal factors come from within the company itself, while external factors come from conditions outside the company. Model development uses the Long Short-Term Memory (LSTM) method to predict daily stock sentiment in realtime. Labeling is done based on the history of stock price changes taken from Yahoo Finance. Stock market news data is obtained automatically every day through Really Simple Syndication (RSS) with the help of cronjob. The results of the LSTM model showed good performance, with a macro F1-Score of 0.73, a macro precision of 0.72, and a macro recall of 0.75. When compared to baseline models such as Logistic Regression, Naive Bayes, and Random Forest which only achieve a macro F1-Score of 0.58, 0.54, and 0.65, respectively, it can be concluded that the developed LSTM model has superior performance. This research can provide new considerations to investors, so as to reduce the risk of loss due to errors in choosing companies to invest in.
Downloads
References
[1] C. Chikwira and J. I. Mohammed, ‘The Impact of the Stock Market on Liquidity and Economic Growth: Evidence of Volatile Market’, Economies, vol. 11, no. 6, May 2023, doi: 10.3390/economies11060155.
[2] BEI, ‘Detail Siaran Pers Jumlah Investor Saham di Indonesia Lampaui 6 Juta SID’, Bursa Efek Indonesia.
[3] F. Dwi Riyanto and A. Farhan Habibie, ‘Effect of Internal and External Factors on Stock Price in Companies That Conduct Rights Issue’, Jurnal Ekbis : Analisis, Prediksi dan Informasi, vol. 24, no. 2, Sep. 2023.
[4] Y. Ren, F. Liao, and Y. Gong, ‘Impact of News on the Trend of Stock Price Change: an Analysis based on the Deep Bidirectiona LSTM Model’, in Procedia Computer Science, Elsevier B.V., 2020, pp. 128–140. doi: 10.1016/j.procs.2020.06.068.
[5] S. R. Khonde, S. S. Virnodkar, S. B. Nemade, M. A. Dudhedia, B. Kanawade, and S. H. Gawande, ‘Sentiment Analysis and Stock Data Prediction Using Financial News Headlines Approach’, Revue d’Intelligence Artificielle, vol. 38, no. 3, pp. 999–1008, Jun. 2024, doi: 10.18280/ria.380325.
[6] Lakshya, Prateek, and D. Sethia, ‘Stock Price Prediction Using News Sentiment Analysis’, in 2022 2nd International Conference on Intelligent Technologies, CONIT 2022, Institute of Electrical and Electronics Engineers Inc., Jun. 2022. doi: 10.1109/CONIT55038.2022.9847747.
[7] M. Ibnu Alfarizi, L. Syafaah, and M. Lestandy, ‘Emotional Text Classification Using TF-IDF (Term Frequency-Inverse Document Frequency) And LSTM (Long Short-Term Memory)’, JUITA: Jurnal Informatika, vol. 10, no. 2, pp. 225–232, Nov. 2022, [Online]. Available: https://atapdata.ai/dataset/192/HIMPUNAN_DATA_E
[8] M. I. Saputra, E. Nurmawati, and R. Abyasa, ‘Predicting Stock Price Movements with Technical, Fundamental, and Sentiment Analysis Using the LSTM Model’, Jurnal Informatika, vol. 12, no. 1, pp. 1–9, Mar. 2025, doi: 10.31294/inf.v12i1.22299.
[9] F. Bouchra, I. M. Agus Dwi Suarjaya, and N. K. DwiRusjayanthi, ‘Analisis Sentimen Masyarakat terhadap Tayangan Televisi Nasional menggunakan Metode Deep Learning’, Jurnal Buana Informatika, vol. 15, pp. 89–99, Oct. 2024.
[10] M. Galih Pradana, A. Christian Nurcahyo, P. Hari Saputro, U. Alma Ata Yogyakarta, S. Shanti Bhuana Bengkayang, and K. Barat, ‘Pengaruh Sentimen di Sosial Media dengan Harga Saham Perusahaan’, May 2020.
[11] ‘Comparison between Primary Data and Secondary Data Basis for Comparison Primary Data Secondary Data’. [Online]. Available: www.ej-edu.orgDOI:http://dx.doi.org/19810.21091/
[12] L. Del Corro and J. Hoffart, ‘From Stock Prediction to Financial Relevance: Repurposing Attention Weights to Assess News Relevance Without Manual Annotations’, Feb. 2021, doi: 10.48550/arXiv.2001.09466.
[13] J. Zhou, Z. Ye, S. Zhang, Z. Geng, N. Han, and T. Yang, ‘Investigating response behavior through TF-IDF and Word2vec text analysis: A case study of PISA 2012 problem-solving process data’, Heliyon, vol. 10, no. 16, Aug. 2024, doi: 10.1016/j.heliyon.2024.e35945.
[14] O. I. Gifari, M. Adha, I. Rifky Hendrawan, F. Freddy, and S. Durrand, ‘Analisis Sentimen Review Film Menggunakan TF-IDF dan Support Vector Machine’, Jifotech (Journal Of Information Technology, vol. 2, no. 1, 2022.
[15] K. Das, Kamlish, and F. Abid, ‘Advancements in Word Embeddings: A Comprehensive Survey and Analysis’, Sep. 23, 2024, Pakistan Academy of Sciences. doi: 10.53560/PPASA(61-3)842.
[16] P. Liang, B. Song, X. Zhan, Z. Chen, and J. Yuan, ‘Automating the Training and Deployment of Models in MLOps by Integrating Systems with Machine Learning’.
[17] T. Antoniou and M. Mamdani, ‘Evaluation of machine learning solutions in medicine’, CMAJ, vol. 193, no. 36, pp. E1425–E1429, Sep. 2021, doi: 10.1503/cmaj.210036.
[18] S. Panggabean and A. Junika, ‘JOISTECH: Journal of Information System and Technology Sentiment Analysis on Public Opinions Regarding the 2024 Regional Elections Using Long Short-Term Memory (LSTM), Random Forest, and Naive Bayes’, JOISTECH: Journal of Information System and Technology, vol. 1, no. 2, pp. 67–75, Dec. 2024.
[19] H. Rodrigues, R. Silva, A. Avritzer, and A. R. Silva, ‘Highlights Assessment of Performance and its Scalability in Microservice Architectures: Systematic Litera-ture Review Assessment of Performance and its Scalability in Microservice Architectures: Systematic Literature Review’, Journal of Systems and Software, pp. 1–19, 2025, doi: https://doi.org/10.1016/j.jss.2025.112500.
[20] M. George and R. Murugesan, ‘Improving sentiment analysis of financial news headlines using hybrid Word2Vec-TFIDF feature extraction technique’, in Procedia Computer Science, Elsevier B.V., 2024, pp. 1–8. doi: 10.1016/j.procs.2024.10.172.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Kristina Kristina, Agus Dwi Suarjaya, Cahyawan Wiranatha

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 License (Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) ) 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 (See The Effect of Open Access).








