Consumer Behavior and Purchase Intentions: A Machine Learning-Based Sentiment Analysis of Social Media Data

Authors

  • Daniel Adi Setya Rahardjo Universitas Sains dan Teknologi Komputer
  • Myra Andriana Universitas Sains dan Teknologi Komputer, Semarang
  • Sri Heneng Prasastono Universitas Sains dan Teknologi Komputer, Semarang

DOI:

https://doi.org/10.51903/jmi.v3i1.45

Keywords:

Consumer Behavior , Purchase Intentions , Sentiment Analysis , Machine Learning , Social Media Analytics

Abstract

Social media has emerged as a critical platform for understanding consumer behavior and purchase intentions. This study applies machine learning techniques, specifically text mining and sentiment analysis, to analyze social media data collected from Twitter, Instagram, and Facebook. Using a dataset of 10,000 entries, this research employs algorithms such as Random Forest, Naive Bayes, and Logistic Regression to classify consumer sentiments as positive, negative, or neutral. The results reveal that 58% of consumer sentiments are positive, which strongly correlates with increased purchase intentions, as indicated by a correlation coefficient (r) of 0.68. Negative sentiments show a significant adverse effect, with an r value of -0.45. The Random Forest algorithm demonstrated superior performance with an accuracy of 87%, outperforming other models. Additionally, the findings emphasize that sentiment trends differ across product categories, with health and beauty products receiving the highest proportion of positive sentiments (68%), while electronics faced notable negative feedback (28%). These insights offer practical applications for data-driven marketing strategies, enabling businesses to tailor campaigns and enhance consumer engagement. This study highlights the utility of machine learning for analyzing unstructured social media data and provides actionable recommendations for leveraging consumer sentiment in marketing strategies. Future research could expand to other platforms, such as TikTok or YouTube, and explore advanced deep learning models to improve predictive accuracy and incorporate multimedia data analysis.

References

Alantari, H. J., Currim, I. S., Deng, Y., & Singh, S. (2022). An empirical comparison of machine learning methods for text-based sentiment analysis of online consumer reviews. International Journal of Research in Marketing, 39(1), 1–19. https://doi.org/10.1016/j.ijresmar.2021.10.011

Alsayat, A. (2022). Improving Sentiment Analysis for Social Media Applications Using an Ensemble Deep Learning Language Model. Arabian Journal for Science and Engineering, 47(2), 2499–2511. https://doi.org/10.1007/s13369-021-06227-w

Bharadiya, J. P. (2023). The role of machine learning in transforming business intelligence. International Journal of Computing and Artificial Intelligence, 4(1), 16–24. https://doi.org/10.33545/27076571.2023.v4.i1a.60

Busalim, A., Fox, G., & Lynn, T. (2022). Consumer behavior in sustainable fashion: A systematic literature review and future research agenda. International Journal of Consumer Studies, 46(5), 1804–1828. https://doi.org/10.1111/ijcs.12794

De Fano D, R, S., & A., R. (2022). Empowering plastic recycling: Empirical investigation on the influence of social media on consumer behavior. Resources, Conservation and Recycling, 182, 106269.

Ebrahimi, P., Salamzadeh, A., Soleimani, M., Khansari, S. M., Zarea, H., & Fekete-Farkas, M. (2022). Startups and Consumer Purchase Behavior: Application of Support Vector Machine Algorithm. Big Data and Cognitive Computing, 6(2). https://doi.org/10.3390/bdcc6020034

Eslami, S. P., Ghasemaghaei, M., & Hassanein, K. (2022). Understanding consumer engagement in social media: The role of product lifecycle. Decision Support Systems, 162. https://doi.org/10.1016/j.dss.2021.113707

Gani, M. O., Roy, H., Rahman, M. S., Faroque, A. R., Gupta, V., & Prova, H. T. (2023). Effect of social media influence on consumer’s purchase intention of organic beauty products: the role of customer’s engagement and generativity. International Journal of Spa and Wellness, 6(1), 54–77. https://doi.org/10.1080/24721735.2022.2096292

Gao, H., Liu, H., Lin, W., & Chen, C. (2023). Graph-theoretic approach to detecting real-time intents within purchase conversion funnel using clickstream data. Kybernetes, 52(11), 5139–5163. https://doi.org/10.1108/K-06-2021-0473

Goldberg, D. M., & Abrahams, A. S. (2022). Sourcing product innovation intelligence from online reviews. In Decision Support Systems (Vol. 157). https://doi.org/10.1016/j.dss.2022.113751

Gupta, V., Mishra, V. K., Singhal, P., & Kumar, A. (2022). An Overview of Supervised Machine Learning Algorithm. Proceedings of the 2022 11th International Conference on System Modeling and Advancement in Research Trends, SMART 2022, 87–92. https://doi.org/10.1109/SMART55829.2022.10047618

Gutierrez, A., Punjaisri, K., Desai, B., Syed Alwi, S. F., O’Leary, S., Chaiyasoonthorn, W., & Chaveesuk, S. (2023). Retailers, don’t ignore me on social media! The importance of consumer-brand interactions in raising purchase intention - Privacy the Achilles heel. Journal of Retailing and Consumer Services, 72. https://doi.org/10.1016/j.jretconser.2023.103272

Halkiopoulos, C., Antonopoulou, H., Gkintoni, E., & Aroutzidis, A. (2022). Neuromarketing as an Indicator of Cognitive Consumer Behavior in Decision-Making Process of Tourism destination—An Overview. Springer Proceedings in Business and Economics, 679–697. https://doi.org/10.1007/978-3-030-92491-1_41

Isnan, M., Elwirehardja, G. N., & Pardamean, B. (2023). Sentiment Analysis for TikTok Review Using VADER Sentiment and SVM Model. Procedia Computer Science, 227, 168–175. https://doi.org/10.1016/j.procs.2023.10.514

Jacobs, K., & Hörisch, J. (2022). The importance of product lifetime labelling for purchase decisions: Strategic implications for corporate sustainability based on a conjoint analysis in Germany. Business Strategy and the Environment, 31(4), 1275–1291. https://doi.org/10.1002/bse.2954

Jain, S. (2024). Factors influencing online luxury purchase intentions: the moderating role of bandwagon luxury consumption behavior. South Asian Journal of Business Studies, 13(1), 90–117. https://doi.org/10.1108/SAJBS-09-2021-0352

Javaid, M., Haleem, A., Pratap Singh, R., Suman, R., & Rab, S. (2022). Significance of machine learning in healthcare: Features, pillars and applications. International Journal of Intelligent Networks, 3, 58–73. https://doi.org/10.1016/j.ijin.2022.05.002

Khan, Y., Hameed, I., & Akram, U. (2023). What drives attitude, purchase intention and consumer buying behavior toward organic food? A self-determination theory and theory of planned behavior perspective. British Food Journal, 125(7), 2572–2587. https://doi.org/10.1108/BFJ-07-2022-0564

Khandokar, I. A., Islam, A. K. M. M., Islam, S., Shatabda, S., & others. (2023). A gradient boosting classifier for purchase intention prediction of online shoppers. Heliyon, 9(4).

Khanom, M. T. (2023). Using social media marketing in the digital era: A necessity or a choice. International Journal of Research in Business and Social Science (2147- 4478), 12(3), 88–98. https://doi.org/10.20525/ijrbs.v12i3.2507

Li, F., Larimo, J., & Leonidou, L. C. (2023). Social media in marketing research: Theoretical bases, methodological aspects, and thematic focus. Psychology and Marketing, 40(1), 124–145. https://doi.org/10.1002/mar.21746

Liu, R., Gupta, S., & Patel, P. (2023). The Application of the Principles of Responsible AI on Social Media Marketing for Digital Health. Information Systems Frontiers, 25(6), 2275–2299. https://doi.org/10.1007/s10796-021-10191-z

Moinuddin, M., Usman, M., & Khan, R. (2024). Decoding Consumer Behavior: The Role of Marketing Analytics in Driving Campaign Success. International Journal of Advanced Engineering Technologies and Innovations, 01, 4.

Narayanan, S., Gruber, J., Liedtke, G., & Antoniou, C. (2022). Purchase intention and actual purchase of cargo cycles: Influencing factors and policy insights. Transportation Research Part A: Policy and Practice, 155, 31–45. https://doi.org/10.1016/j.tra.2021.10.007

Nekmahmud, M., Naz, F., Ramkissoon, H., & Fekete-Farkas, M. (2022). Transforming consumers’ intention to purchase green products: Role of social media. Technological Forecasting and Social Change, 185. https://doi.org/10.1016/j.techfore.2022.122067

Sriram, V. P., Shaikh, A. A., Sumana, B. K., Kumar, A., Dhiman, V., & Naved, M. (2023). Consumer Behaviour on Digital Marketing Platforms—Specifically in Terms of Consumer Loyalty Using Machine Learning. Smart Innovation, Systems and Technologies, 290, 377–386. https://doi.org/10.1007/978-981-19-0108-9_40

Testa, R., Rizzo, G., Schifani, G., Tóth, J., & Migliore, G. (2024). Critical determinants influencing consumers’ decision-making process to buy green cosmetics. A systematic literature review. Journal of Global Fashion Marketing, 15(3), 357–381. https://doi.org/10.1080/20932685.2023.2268669

Van Veldhoven, Z., & Vanthienen, J. (2022). Digital transformation as an interaction-driven perspective between business, society, and technology. Electronic Markets, 32(2), 629–644. https://doi.org/10.1007/s12525-021-00464-5

Wagobera Edgar Kedi, Chibundom Ejimuda, Courage Idemudia, & Tochukwu Ignatius Ijomah. (2024). Machine learning software for optimizing SME social media marketing campaigns. In Computer Science & IT Research Journal (Vol. 5, Issue 7, pp. 1634–1647). https://doi.org/10.51594/csitrj.v5i7.1349

Zaman, S. I., & Kusi-Sarpong, S. (2024). Identifying and exploring the relationship among the critical success factors of sustainability toward consumer behavior. Journal of Modelling in Management, 19(2), 492–522. https://doi.org/10.1108/JM2-06-2022-0153

Downloads

Published

2024-04-30