Abstract
Social media produces enormous amounts of unutilized data. Through machine learning and text analytics techniques, organizations and individuals alike can use such data to extract a great deal of information. The type of information can be used in a plethora of ways; with techniques such as sentiment analysis allowing organizations to determine public reception to their products or finding trendy topics through the application of topic extraction. This paper outlines the process taken to develop a machine learning model that analyzes social media posts and extracts the post’s sentiment and topic. A multinomial Naïve Bayes model and a random forest model were trained for each objective to gauge which learning algorithm performs better with accuracy and F-Score being performance metrics. The results showcased that even with relatively simple implementations, and the analysis results on unseen social media posts produced promising accuracy results with short training time, with the multinomial Naïve Bayes model outperforming the random forest model.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Elyassami, S., Kaddour, A.: Implementation of an incremental deep learning model for survival prediction of cardiovascular patients. IAES Int. J. Artif. Intell. 10(1), 101–109 (2021). ISSN 2252-8938
Elyassami, S., Hamid, Y., Habuza, T.: Road crashes analysis and prediction using gradient boosted and random forest trees. 2020 6th IEEE Congress on Information Science and Technology (CiSt), Agadir-Essaouira, Morocco, pp. 520–525 (2020). https://doi.org/10.1109/CiSt49399.2021.9357298
Felix, N., Hruschka, E., Hruschka, E.: Tweet sentiment analysis with classifier ensembles. Decis. Support Syst. 66 (2014). https://doi.org/10.1016/j.dss.2014.07.003
Sailunaz, K., Alhajj, R.: Emotion and sentiment analysis from Twitter text. J. Comput. Sci. 36, 101003 (2019). ISSN 1877-7503, https://doi.org/10.1016/j.jocs.2019.05.009
Martínez-Cámara, E., Martín-Valdivia, M., Ureña-López, L., Montejo-Ráez, A.: Sentiment analysis in Twitter. Nat. Lang. Eng. 20(1), 1–28 (2014). https://doi.org/10.1017/S1351324912000332
Gautam, G., Yadav, D.: Sentiment analysis of twitter data using machine learning approaches and semantic analysis. In: Seventh International Conference on Contemporary Computing (IC3), Noida, pp. 437–442 (2014). https://doi.org/10.1109/IC3.2014.6897213
Yu, D., Xu, D., Wang, D., Ni, Z.: Hierarchical topic modeling of twitter data for online analytical processing. IEEE Access 7, 12373–12385 (2019). https://doi.org/10.1109/ACCESS.2019.2891902
Shakeri Hossein Abad, Z., Gervase, V., Zowghi, D., Far, B.: Supporting analysts by dynamic extraction and classification of requirements-related knowledge. In: IEEE/ACM 41st International Conference on Software Engineering (ICSE), Montreal, QC, Canada, pp. 442–453 (2019). https://doi.org/10.1109/ICSE.2019.00057
Blei, D., Ng, A., Jordan, M.: Latent Dirichlet allocation. J. Mach. Learn. Res. 3 (2003). Available: https://www.jmlr.org/papers/volume3/blei03a/blei03a.pdf
Go, A., Bhayani, R., Huang, L.: Twitter sentiment classification using distant supervision. CS224N Project Report, Stanford, pp. 1–12 (2009)
Lang, K.: 20 Newsgroups, Home Page for 20 Newsgroups Data Set, (2008) (Online). Available: http://qwone.com/~jason/20Newsgroups/
Agarwal, A., Xie, B., Vovsha, I., Rambow, O., Passonneau, R.: Sentiment Analysis of Twitter Data, Aclweb.org (2011) (Online). Available: https://www.aclweb.org/anthology/W11-0705.pdf
Kouloumpis, E., Wilson, T., Moore, J.: Twitter Sentiment Analysis: The Good the Bad and the OMG! https://ojs.aaai.org/index.php/ (2011). Online. Available: https://ojs.aaai.org/index.php/ICWSM/article/view/14185/14034
Kumar, V., Khosla, C.: Data cleaning—a thorough analysis and survey on unstructured data. In: 8th International Conference on Cloud Computing, Data Science & Engineering (Confluence), Noida, pp. 305–309 (2018). https://doi.org/10.1109/CONFLUENCE.2018.8442950.00
Zhu, R., et al.: Automatic real-time mining software process activities from SVN logs using a Naive Bayes classifier. IEEE Access 7, 146403–146415 (2019). https://doi.org/10.1109/ACCESS.2019.2945608
Denisko, D., Hoffman, M.: Classification and interaction in random forests. Proc. Natl. Acad. Sci. 115, 1690–1692 (2018)
Galdi, P., Tagliaferri, R.: Data mining: accuracy and error measures for classification and prediction. In: Encyclopedia of Bioinformatics and Computational Biology, pp. 431–436 (2018)
Powers, D.: Evaluation: from precision, recall and Fmeasure to ROC, informedness, markedness and correlation. arXiv preprint arXiv:2010.16061 (2020)
Oriola, O., E. Kotzé, E.: Evaluating machine learning techniques for detecting offensive and hate speech in South African Tweets. IEEE Access 8, 21496–21509 (2020). https://doi.org/10.1109/ACCESS.2020.2968173
Devika, M., Sunitha, C., Ganesh, A.: Sentiment analysis: a comparative study on different approaches. Procedia Comput. Sci. 87, 44–49 (2016). ISSN 1877-0509. https://doi.org/10.1016/j.procs.2016.05.124
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2022 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Elyassami, S., Albloushi, S., Alnuaimi, M.A., Alhosani, O., Al Ali, H., Almarashda, K. (2022). Intelligent Models for Mining Social Media Data. In: Saeed, F., Al-Hadhrami, T., Mohammed, E., Al-Sarem, M. (eds) Advances on Smart and Soft Computing. Advances in Intelligent Systems and Computing, vol 1399. Springer, Singapore. https://doi.org/10.1007/978-981-16-5559-3_17
Download citation
DOI: https://doi.org/10.1007/978-981-16-5559-3_17
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-16-5558-6
Online ISBN: 978-981-16-5559-3
eBook Packages: Intelligent Technologies and RoboticsIntelligent Technologies and Robotics (R0)