Predicting Consumer Sentiment from Social Media by Text Mining

Authors

  • Fatima Hassan Fadel college of science, university of Baghdad

DOI:

https://doi.org/10.29304/jqcsm.2025.17.42551

Keywords:

Feature Extraction, Machine learning, Sentiment Analysis, Sentiment Classification, Text Mining

Abstract

Currently, social media has expanded and disseminated, and a vast quantity of information is available to individuals of all ages and is being disseminated over the Internet. This information is not only vast, but also rapidly disseminated and diverse. Consequently, conventional tools and methodologies are inadequate for managing this information. Given the rapid advancement of this field, it is imperative to cultivate capabilities and investigate solutions that enable the extraction of specific values from data sets and their accurate analysis. Data analysis is one of these solutions. For example, the classification of emotions through data mining, which employs machine learning, involves the treatment of information that is transmitted through a variety of communication channels as emotions and the development of analytical models. Using three text mining and machine learning techniques: k-means, Decision Tree, and Classification and Regression Tree (CART), a significant amount of information was collected in this study and transmitted to individuals via Twitter from the Amazon website (comments). The results indicated that the utmost accuracy was achieved by employing two methods to extract properties from non-structural data and convert them into usable numerical representations. It is obtained at a rate of 95% through the use of Bag of Word feature extraction in conjunction with CART. So, it outperformed to Decision Tree, while K-means, which the desired outcome did not get.

Downloads

Download data is not yet available.

References

Alam, S., Mrida, S. H. & Rahman, A., 2025. SENTIMENT ANALYSIS IN SOCIAL MEDIA: HOW DATA SCIENCE IMPACTS PUBLIC OPINION KNOWLEDGE INTEGRATES NATURAL LANGUAGE PROCESSING (NLP) WITH ARTIFICIAL INTELLIGENCE (AI). American Journal of Scholarly Research and Innovation, 04(01), pp. 63-100.

Alfina, I., Sigmawaty, D., Nurhidayati, F. & Hidayanto, A. N., 2017. Utilizing Hashtags for Sentiment Analysis of Tweets in The Political Domain. Proceedings of the 9th international conference on machine learning and computing, pp. 43-47.

Alqaryouti, O., Siyam, N., Monem, A. A. & Shaalan, K., 2020. Aspect-based sentiment analysis. Applied Computing and Informatics, 20(2), pp. 142-161.

Alzubaidi, L. et al., 2021. Review of deep learning: concepts, CNN. Journal of big Data, 8(1), p. 53.

Araque, O., Zhu, G. & Iglesias, C. A., 2019. A semantic similarity-based perspective of affect lexicons for sentiment analysis. Knowledge-Based Systems, Volume 165, pp. 346-359.

Bayhaqy, A., Sfenrianto, S., Nainggolan, K. & Kaburuan, E. R., 2018. Sentiment Analysis about E-Commerce from. nternational conference on orange technologies (ICOT), pp. 1-6.

Chen, F. et al., 2015. Data Mining for the Internet of Things:. International Journal of Distributed Sensor Networks, p. 14.

Cichosz, . P., 2024. Active Learning for Biomedical Article Classification with Bag of Words and FastText Embeddings. Applied Sciences, 14(17), p. 7945.

Dey, L. et al., 2016. Sentiment Analysis of Review Datasets using. arXiv preprint arXiv.

Fadel, F. H. & Behadili, S. F., 2022. A Comparative Study for Supervised Learning Algorithms to Analyze Sentiment Tweets. Iraqi Journal of Science, 63(6), pp. 2712-2724.

Hassan, F. and Behadili, S. F., 2022. Modeling social networks using data mining approaches – review. Iraqi Journal of Science, 63(4), pp. 1313–1338

Hossain, A., Karimuzzaman, M., Moyazzem Hossain, M. & Rahman, A., 2021. Text Mining and Sentiment Analysis of Newspaper Headlines. Information, 12(10), p. 414.

Hossain, M. Z., Akhtar, M. N., Ahmad, R. B. & Rahman, M., 2019. A dynamic K-means clustering for data mining. Indonesian Journal of Electrical engineering and computer science, 13(2), pp. 521-526.

Khan, M. Z., 2023. AN INSIGHT ON MACHINE LEARNING ALGORITHMS AND. European Chemical Bulletin, pp. 6029-6034.

Medhat, W., Yousef, A. H. & Korashy, H., 2014. Sentiment analysis algorithms and applications: A survey. Ain Shams Engineering Journal, 5(4), pp. 1093-1113.

Polaka, I. & Borisov, A., 2010. CLUSTERING-BASED DECISION TREE CLASSIFIER CONSTRUCTION. Technological and economic development OF ECONOMY, 16(4), p. 765–781.

Riaz, S., Fatima, M., Kamran, M. & Nisar, M. W., 2019. Opinion mining on large scale data using sentiment analysis. Cluster Computing, 22(3), pp. 7149-7164.

Rustam, F. et al., 2021. A performance comparison of supervised machine learning models for Covid-19 tweets sentiment analysis. Plos one, 16(2), p. 0245909.

Younis, E. M., 2015. Sentiment Analysis and Text Mining for Social Media. International Journal of Computer Applications, 112(5), p. 0975 – 8887.

.M, V. & Reddy, L. C., 2011. A Review on Data mining from Past to the Future. International Journal of Computer Applications, 15(7), p. (0975 – 8887.

Alatabi, H. & Abbas, . A., 2020. Sentiment Analysis in Social Media using Machine Learning Techniques. Iraqi Journal of Science, 61(1), pp. 193-201.

Anisur, R., 2019. Rare sequential pattern mining of critical infrastructure control logs for anomaly detection. Doctoral dissertation, Queensland University of Technology.

Cai , T. & Zhang , X., 2023. Imbalanced Text Sentiment Classification Based on Multi-Channel BLTCN-BLSTM Self-Attention. Sensors, 23(4), pp. 1-15.

Martinovic, M., Domovic, J. & Piric, V., 2018. PERCEPTION OF HEALTH PRODUCTS AND TRENDS IN ONLINE SHOPPING AND PROMOTION OF HEALTH PRODUCTS IN CROATIA. Вісник Національної академії керівних кадрів культури і мистецтв, Issue 1, pp. 1446-1452.

Nalini, C. et al., 2021. Text mining with sentiment analysis on seafarers’ medical documents. International Journal of Information Management Data, 1(1).

Srujan, K. S. et al., 2018. Classification of Amazon Book Reviews Based. Information Systems Design and Intelligent Applications, pp. 401-411.

Zhang, H., Sun, S., Hu, Y. & Liu, u., 2020. Sentiment classification for Chinese text based on interactive multitask learning. IEEE Access, Volume 8, pp. 129626-129635.

Downloads

Published

2025-12-30

How to Cite

Fatima Hassan Fadel. (2025). Predicting Consumer Sentiment from Social Media by Text Mining. Journal of Al-Qadisiyah for Computer Science and Mathematics, 17(4), Comp 184–197. https://doi.org/10.29304/jqcsm.2025.17.42551

Issue

Section

Computer Articles