Skip to main content
Log in

Application of soft computing techniques for estimating emotional states expressed in Twitter® time series data

  • Original Article
  • Published:
Neural Computing and Applications Aims and scope Submit manuscript

Abstract

Because the emotional states of selected social groups may constitute a complex phenomenon, a suitable methodology is needed to analyze Twitter® text data that can reflect social emotions. Understanding the nature of social barometer data in terms of its underlying dynamics is critical for predicting the future states or behaviors of large social groups. This study investigated the use of the supervised soft computing techniques (1) fuzzy time series (FTS), (2) artificial neural network (ANN)-based FTS, and (3) adaptive neuro-fuzzy inference systems (ANFIS) for predicting the emotional states expressed in Twitter® data. The examined dataset contained 25,952 data points reflecting more than 380,000 Twitter® messages recorded hourly. The model prediction accuracy was performed using the root-mean-square error. The ANFIS approach resulted in the most accurate prediction among the three examined soft computing approaches. The findings of the study showed that the FTS, ANN-based FTS, and ANFIS models could be used to predict the emotional states of a large social group based on historical data. Such a modeling approach can support the development of real-time social and emotional awareness for practical decision-making, as well as rapid socio-cultural assessment and training.

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.

Institutional subscriptions

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

Similar content being viewed by others

References

  1. Prata DN, Soares KP, Silva MA, Trevisan DQ, Letouze P (2016) Social data analysis of Brazilian’s mood from Twitter. Int J Soc Sci Humanit 6(3):179

    Article  Google Scholar 

  2. Servi LD (2013) Analyzing social media data having discontinuous underlying dynamics. Oper Res Lett 41:581–585. https://doi.org/10.1016/j.orl.2013.07.008

    Article  MathSciNet  MATH  Google Scholar 

  3. Karwowski W (2012) A review of human factors challenges of complex adaptive systems: discovering and understanding chaos in human performance. Hum Factors 54(6):983–995

    Article  Google Scholar 

  4. Twitter (2017) Twitter analytics. https://analytics.twitter.com/. Accessed 13 Dec 2017

  5. Pennebaker JW, Boyd RL, Jordan K, Blackburn K (2015) The development and psychometric properties of LIWC2015. University of Texas at Austin, Austin

    Google Scholar 

  6. Pennebaker JW, Booth RE, Francis ME (2007) Linguistic inquiry and word count: LIWC2007—operator’s manual. LIWC.net, Austin

    Google Scholar 

  7. Pennebaker JW, Chung CK, Ireland M, Gonzales A, Booth RJ (2007) The development and psychometric properties of LIWC2007. LIWC.net, Austin

    Google Scholar 

  8. Kumar M, Dredze M, Coppersmith G, De Choudhury M (2015) Detecting changes in suicide content manifested in social media following celebrity suicides. In: 26th ACM conference on hypertext & social media; September 01–04, 2015; Guzelyurt, Northern Cyprus. ACM Press, New York, pp 85–94

  9. Kramer AD, Guillory JE, Hancock JT (2014) Experimental evidence of massive-scale emotional contagion through social networks. Proc Natl Acad Sci USA 111(24):8788–8790. https://doi.org/10.1073/pnas.1320040111

    Article  Google Scholar 

  10. De Choudhury M, Gamon M, Counts S, Horvitz E (2013) Predicting depression via social media. In: 7th international AAAI conference on weblogs and social media (ICWSM); July 8–11, 2013, Boston, USA

  11. Wang Y, Kraut R, Levine J (2012) To stay or leave? The relationship of emotional and informational support to commitment in online health support groups. In: ACM 2012 conference on computer supported cooperative work; February 11–15, 2012. ACM Press, Seattle, pp 833–842

  12. Hancock J, Gee K, Ciaccio K, Lin J (2008) I’m sad you’re sad: emotional contagion in CMC. 2008 In: ACM conference on computer supported cooperative work; November 08–12, 2008. ACM Press, San Diego, pp 295–298

  13. Hancock J, Landrigan C, Silver C (2007) Expressing emotion in text-based communication. In: SIGCHI conference on human factors in computing systems; April 28–May 03, 2007. ACM Press, San Jose, CA, pp 929–932

  14. Mogadala A, Varma V (2012) Twitter user behavior understanding with mood transition prediction. In: Proceedings of the 2012 workshop on data-driven user behavioral modelling and mining from social media ACM, pp 31–34

  15. Bing L, Chan KC (2014) A fuzzy logic approach for opinion mining on large scale twitter data. In: Proceedings of the 2014 IEEE/ACM 7th international conference on utility and cloud computing. IEEE Computer Society, pp 652–657

  16. Dash AK, Rout JK, Jena SK (2016) Harnessing twitter for automatic sentiment identification using machine learning techniques. In: Proceedings of 3rd international conference on advanced computing, networking and informatics. Springer, New Delhi, pp 507–514

  17. Wang N, Varghese B, Donnelly PD (2016) A machine learning analysis of Twitter sentiment to the Sandy Hook shootings. arXiv preprint arXiv:1609.00536

  18. Huq MR, Ali A, Rahman A (2017) Sentiment analysis on Twitter data using KNN and SVM. Int J Adv Comput Sci Appl 8(6):19–25

    Google Scholar 

  19. Mac Kim S (2011). Recognising emotions and sentiments in text. Ph.D. thesis, University of Sydney

  20. Asur S, Huberman BA (2010). Predicting the future with social media. In: 2010 IEEE/WIC/ACM international conference on, web intelligence and intelligent agent technology (WI-IAT), vol 1. IEEE, pp 492–499

  21. Gilbert E, Karahalios K (2010) Widespread worry and the stock market. In: ICWSM, pp 59–65

  22. Bollen J, Mao H, Zeng X (2011) Twitter mood predicts the stock market. J Comput Sci 2(1):1–8

    Article  Google Scholar 

  23. Chen GH, Nikolov S, Shah D (2013) A latent source model for nonparametric time series classification. In: Advances in neural information processing systems, vol. 26. pp 1088–1096

  24. Ma Z, Sun A, Cong G (2013) On predicting the popularity of newly emerging hashtags in twitter. J Assoc Inf Sci Technol 64(7):1399–1410

    Article  Google Scholar 

  25. Kong S, Mei Q, Feng L, Ye F, Zhao Z (2014) Predicting bursts and popularity of hashtags in real-time. In: Proceedings of the 37th international ACM SIGIR conference on research & development in information retrieval. ACM, pp 927–930

  26. Servi LD, Elson SE (2014) A mathematical approach to identifying and forecasting shifts in the mood of social media users. IEEE Trans Comput Soc Syst 1(4):180–190

    Article  Google Scholar 

  27. Song Q, Chissom BS (1993) Fuzzy time series and its models. Fuzzy Sets Syst 54:269–277

    Article  MathSciNet  Google Scholar 

  28. Song Q, Chissom BS (1993) Forecasting enrollments with fuzzy time series—part I. Fuzzy Sets Syst 54:1–10

    Article  Google Scholar 

  29. Chen SM (1996) Forecasting enrollments based on fuzzy time series. Fuzzy Sets Syst 81(3):311–319

    Article  MathSciNet  Google Scholar 

  30. Egrioglu E, Aladag CH, Yolcu U, Uslu VR, Basaran MA (2009) A new approach based on artificial neural networks for high order multivariate fuzzy time series. Expert Syst Appl 36(7):10589–10594

    Article  Google Scholar 

  31. Jang JSR (1993) ANFIS: adaptive-network-based fuzzy inference system. IEEE Trans Syst Man Cybern 23(5):665–685

    Article  Google Scholar 

  32. Çakıt E, Karwowski W, Bozkurt H, Ahram T, Thompson W, Mikusinski P, Lee G (2014) Investigating the relationship between adverse events and infrastructure development in an active war theater using soft computing techniques. Appl Soft Comput 25:204–214

    Article  Google Scholar 

  33. Zaheeruddin G (2006) A neuro-fuzzy approach for prediction of human work efficiency in noisy environment. Appl Soft Comput 6:283–294

    Article  Google Scholar 

  34. Çakıt E, Karwowski W (2017) Predicting the occurrence of adverse events using an adaptive neuro-fuzzy inference system (ANFIS) approach with the help of ANFIS input selection. Artif Intell Rev 48(2):139–155

    Article  Google Scholar 

  35. Nauck D, Klawonn F, Kruse R (1997) Foundations of neuro-fuzzy systems. Wiley, New York

    MATH  Google Scholar 

  36. Chai T, Draxler RR (2014) Root mean square error (RMSE) or mean absolute error (MAE)? Arguments against avoiding RMSE in the literature. Geosci Model Dev 7(3):1247–1250

    Article  Google Scholar 

  37. Rantala J, Koivisto H (2002) Optimised subtractive clustering for neuro-fuzzy models. In: 3rd WSEAS international conference on fuzzy sets and fuzzy systems

  38. Stavroulakis P (ed) (2004) Neuro-fuzzy and fuzzy-neural applications in telecommunications. Springer, Berlin

    Google Scholar 

  39. Rezaei H, Rahmati M, Modarress H (2017) Application of ANFIS and MLR models for prediction of methane adsorption on X and Y faujasite zeolites: effect of cations substitution. Neural Comput Appl 28(2):301–312

    Article  Google Scholar 

  40. Lampos V, Lansdall-Welfare T, Araya R, Cristianini N (2013) Analysing mood patterns in the united kingdom through twitter content. arXiv preprint arXiv:1304.5507

Download references

Acknowledgements

This study was supported in part by Grant No. N00014-11-1-0934 from the Office of Naval Research (ONR), Human, Social, Cultural, and Behavioral (HSCB) modeling program awarded to Waldemar Karwowski at the University of Central Florida, Orlando, Florida. Approved for Public Release; Distribution Unlimited. Case Number 17-3282 ©2017, The MITRE Corporation. All Rights Reserved.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Erman Çakıt.

Ethics declarations

Conflict of interest

The authors declare that they have no conflicts of interest.

Additional information

Publisher's Note

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

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Çakıt, E., Karwowski, W. & Servi, L. Application of soft computing techniques for estimating emotional states expressed in Twitter® time series data. Neural Comput & Applic 32, 3535–3548 (2020). https://doi.org/10.1007/s00521-019-04048-5

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00521-019-04048-5

Keywords

Navigation