Sentiment Analysis for Financial News Headlines using Machine Learning Algorithm

  • Shuhaida Mohamed Shuhidan
  • Saidatul Rahah Hamidi
  • Soheil Kazemian
  • Shamila Mohamed Shuhidan
  • Maizatul Akmar Ismail
Conference paper
Part of the Advances in Intelligent Systems and Computing book series (AISC, volume 739)


The study covers the implementation of machine learning algorithm approaches in sentiment analysis of Malaysia financial news headlines. This study can be used for stakeholders who want to know about the financial news and seek knowledge or data in the financial world. The data are gained from Malaysia online financial news, which are from Business section of New Straits Times. Our study applies Opinion Lexicon-based algorithm and Naïve Bayes algorithm as the method to perform sentiment analysis. This study consists of several phases in pre-processing such as extract data, stop word removal, and stemming to clean the dataset and make it as data preparation before performing the sentiment analysis with the selected machine learning algorithms. In the stop word removal, tm package in R is used to clean the dataset while for stemming process, Snowball stemmer is used to set the data to its root word. Sample outcomes of analysis are explained for both algorithms. The conclusion describes the summation of the study and future works.


Data analytics Sentiment Analysis Financial headlines opinion-lexicon based algorithm 


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
    Liu, B.: Sentiment analysis and opinion mining. Synthesis lectures on human language technologies 5(1): 1-167 (2012).Google Scholar
  2. 2.
    Puteh, M., Isa, N., Puteh, S., Redzuan, N.A..: Sentiment Mining of Malay Newspaper (SAMNews) Using Artificial Immune System. Proceedings of the World Congress on Engineering, vol.3 (2013).Google Scholar
  3. 3.
    Serrano-Guerrero, J., Olivas, J. A., Romero, F. P., Herrera-Viedma, E.: Sentiment analysis: A review and comparative analysis of web services. Information Sciences, 311, 18-38 (2015).Google Scholar
  4. 4.
    Devitt, A., Ahmad, K.: Sentiment polarity identification in financial news: A cohesion-based approach (2007).Google Scholar
  5. 5.
    Ravi, K., Ravi, V. A.: Survey on opinion mining and sentiment analysis: tasks, approaches and applications. Knowledge-Based Systems, 89, 14-46 (2015).Google Scholar
  6. 6.
    Yu, Y., Duan, W., Cao, Q.: The impact of social and conventional media on firm equity value: A sentiment analysis approach. Decision Support Systems, 55(4), 919-926 (2013).Google Scholar
  7. 7.
    Tan, L. I., Phang, W. S., Chin, K. O., Anthony, P.: Rule-Based Sentiment Analysis for Financial News. In 2015 IEEE International Conference on Systems, Man, and Cybernetics (SMC), 1601-1606, IEEE (2015).Google Scholar
  8. 8.
    Younis, E. M.: “Sentiment Analysis and Text Mining for Social Media Microblogs using Open Source Tools: An Empirical Study.” International Journal of Computer Applications 112(5) (2015).Google Scholar
  9. 9.
    Zhang, H.: The optimality of naive Bayes. AA 1, no. 2 vol 3. (2004).Google Scholar
  10. 10.
    Tan, S., Xueqi, C., Yuefen, W., and Hongbo, X.: Adapting Naive Bayes to Domain Adaptation for Sentiment Analysis. Advances in Information Retrieval, 337-349 (2009).Google Scholar

Copyright information

© Springer Nature Singapore Pte Ltd. 2018

Authors and Affiliations

  1. 1.Accounting Research Institute (ARI)Universiti Teknologi MARA (UiTM)Shah AlamMalaysia
  2. 2.Faculty of Computer and Mathematical SciencesUniversiti Teknologi MARA (UiTM)Shah AlamMalaysia
  3. 3.Faculty of Information ManagementUniversiti Teknologi MARA (UiTM)Shah AlamMalaysia
  4. 4.Department of Information ScienceUniversity of MalayaKuala LumpurMalaysia

Personalised recommendations