Skip to main content

Machine Learning Based Sentiment Analysis on Spanish Financial Tweets

  • Conference paper
Trends and Advances in Information Systems and Technologies (WorldCIST'18 2018)

Abstract

Nowadays, financial data on social networks play an important role to predict the stock market. However, the exponential growth of financial information on social networks such as Twitter has led to a need for new technologies that automatically collect and categorise large volumes of information in a fast and easy manner. The Natural Language Processing (NLP) and sentiment analysis areas can solve this problem. In this respect, we propose a supervised machine learning method to detect the polarity of financial tweets. The method employs a set of lexico-morphological and semantic features, which were extracted with UMTextStats tool. Furthermore, we have conducted a comparison of the performance of three classification algorithms (J48, BayesNet, and SMO). The results showed that SMO provides better results than BayesNet and J48 algorithms, obtaining an F-measure of 73.2%.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 259.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 329.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    http://semantics.inf.um.es/joseagd/financial-tweets-ids.rar.

References

  1. Loughran, T., Mcdonald, B.: Textual analysis in accounting and finance: a survey. J. Account. Res. 54, 1187–1230 (2016)

    Article  Google Scholar 

  2. del Pilar Salas-Zarate, M., Valencia-García, R., Ruiz-Martínez, A., Colomo-Palacios, R.: Feature-based opinion mining in financial news: an ontology-driven approach. J. Inf. Sci. 43(4), 458–479 (2016). https://doi.org/10.1177/0165551516645528

    Article  Google Scholar 

  3. Tetlock, P.C.: Giving content to investor sentiment: the role of media in the stock market. J. Finance 62, 1139–1168 (2007)

    Article  Google Scholar 

  4. Azar, P.D.: Sentiment analysis in financial news (2009)

    Google Scholar 

  5. Cambria, E., Schuller, B., Xia, Y., Havasi, C.: New avenues in opinion mining and sentiment analysis. IEEE Intell. Syst. 28, 15–21 (2013)

    Article  Google Scholar 

  6. Strapparava, C., Valitutti, A., et al.: WordNet affect: an affective extension of WordNet. In: LREC, pp. 1083–1086 (2004)

    Google Scholar 

  7. Baccianella, S., Esuli, A., Sebastiani, F.: SentiWordNet 3.0: an enhanced lexical resource for sentiment analysis and opinion mining. In: LREC, pp. 2200–2204 (2010)

    Google Scholar 

  8. Cruz, N.P., Taboada, M., Mitkov, R.: A machine-learning approach to negation and speculation detection for sentiment analysis. J. Assoc. Inf. Sci. Technol. 67, 2118–2136 (2016)

    Article  Google Scholar 

  9. Montejo-Ráez, A., Martínez-Cámara, E., Martín-Valdivia, M.T., Ureña-López, L.A.: Ranked WordNet graph for sentiment polarity classification in Twitter. Comput. Speech Lang. 28, 93–107 (2014)

    Article  Google Scholar 

  10. He, Y., Zhoub, D.: Self-training from labeled features for sentiment analysis. Inf. Process. Manag. 47, 606–616 (2011)

    Article  Google Scholar 

  11. Li, X., Xie, H., Chen, L., Wang, J., Deng, X.: News impact on stock price return via sentiment analysis. Knowl.-Based Syst. 69, 14–23 (2014)

    Article  Google Scholar 

  12. Smailović, J., Grčar, M., Lavrač, N., Žnidaršič, M.: Stream-based active learning for sentiment analysis in the financial domain. Inf. Sci. 285, 181–203 (2014)

    Article  Google Scholar 

  13. Atzeni, M., Dridi, A., Reforgiato Recupero, D.: Fine-Grained Sentiment Analysis on Financial Microblogs and News Headlines. Presented at the 28 May 2017 (2017)

    Chapter  Google Scholar 

  14. Kordonis, J., Symeonidis, S., Arampatzis, A.: Stock price forecasting via sentiment analysis on Twitter. In: Proceedings of the 20th Pan-Hellenic Conference on Informatics - PCI 2016. pp. 1–6. ACM Press, New York (2016)

    Google Scholar 

  15. del Pilar Salas-Zarate, M., López-López, E., Valencia-García, R., Aussenac-Gilles, N., Almela, A., Alor-Hernández, G.: A study on LIWC categories for opinion mining in Spanish reviews. J. Inf. Sci. 40(6), 749–760 (2014)

    Article  Google Scholar 

  16. del Pilar Salas-Zarate, M., Paredes-Valverde, M.A., Rodriguez-García, M.Á., Valencia-García, R., Alor-Hernández, G.: Automatic detection of satire in Twitter: a psycholinguistic-based approach. Knowl.-Based Syst. 128, 20–33 (2017)

    Article  Google Scholar 

  17. Hsu, R., See, B., Wu, A.: Machine learning for sentiment analysis on the experience project (2010)

    Google Scholar 

  18. Balage Filho, P.P., Pardo, T.A.S., Aluísio, S.M.: An evaluation of the Brazilian Portuguese LIWC dictionary for sentiment analysis. In: Proceedings of the 9th Brazilian Symposium in Information and Human Language Technology (STIL), pp. 215–219 (2013)

    Google Scholar 

  19. Hutto, C.J., Gilbert, E.: VADER: a parsimonious rule-based model for sentiment analysis of social media text. In: Eighth International AAAI Conference of Weblogs Social Media (2014)

    Google Scholar 

  20. Bouckaert, R.R., Frank, E., Hall, M.A., Holmes, G., Pfahringer, B., Reutemann, P., Witten, I.H.: WEKA—Experiences with a Java Open-Source Project. MIT Press, Cambridge (2001)

    MATH  Google Scholar 

  21. del Pilar Salas-Zarate, M., Paredes-Valverde, M.A., Limon, J., Tlapa, D.A., Báez, Y.A.: Sentiment classification of Spanish reviews: an approach based on feature selection and machine learning methods. J. UCS 22(5), 691–708 (2016)

    MathSciNet  Google Scholar 

Download references

Acknowledgements

This work has been supported by the Spanish National Research Agency (AEI) and the European Regional Development Fund (FEDER/ERDF) through project KBS4FIA (TIN2016-76323-R).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Rafael Valencia-García .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer International Publishing AG, part of Springer Nature

About this paper

Cite this paper

García-Díaz, J.A., Salas-Zárate, M.P., Hernández-Alcaraz, M.L., Valencia-García, R., Gómez-Berbís, J.M. (2018). Machine Learning Based Sentiment Analysis on Spanish Financial Tweets. In: Rocha, Á., Adeli, H., Reis, L.P., Costanzo, S. (eds) Trends and Advances in Information Systems and Technologies. WorldCIST'18 2018. Advances in Intelligent Systems and Computing, vol 745. Springer, Cham. https://doi.org/10.1007/978-3-319-77703-0_31

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-77703-0_31

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-77702-3

  • Online ISBN: 978-3-319-77703-0

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics